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 = BlockNumberFor<Self>, 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.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait.
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 = BlockNumberFor<Self>, Currency = Self::Currency>
type VestingSchedule: VestingSchedule<Self::AccountId, Moment = BlockNumberFor<Self>, 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.
sourcetype MaxUnlocked: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type MaxUnlocked: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The maximum amount of locked DOTs that we will unlock.
Object Safety§
This trait is not object safe.