Trait polkadot_runtime_common::purchase::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type Currency: Currency<Self::AccountId>;
type VestingSchedule: VestingSchedule<Self::AccountId, Moment = Self::BlockNumber, Currency = Self::Currency>;
type ValidityOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ConfigurationOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type MaxStatementLength: Get<u32>;
type UnlockedProportion: Get<Permill>;
type MaxUnlocked: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype VestingSchedule: VestingSchedule<Self::AccountId, Moment = Self::BlockNumber, Currency = Self::Currency>
type VestingSchedule: VestingSchedule<Self::AccountId, Moment = Self::BlockNumber, Currency = Self::Currency>
Vesting Pallet
sourcetype ValidityOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ValidityOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin allowed to set account status.
sourcetype ConfigurationOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ConfigurationOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin allowed to make configurations to the pallet.
sourcetype MaxStatementLength: Get<u32>
type MaxStatementLength: Get<u32>
The maximum statement length for the statement users to sign when creating an account.
sourcetype UnlockedProportion: Get<Permill>
type UnlockedProportion: Get<Permill>
The amount of purchased locked DOTs that we will unlock for basic actions on the chain.