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§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type Currency: Currency<Self::AccountId>

Balances Pallet

source

type VestingSchedule: VestingSchedule<Self::AccountId, Moment = Self::BlockNumber, Currency = Self::Currency>

Vesting Pallet

source

type ValidityOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin allowed to set account status.

source

type ConfigurationOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin allowed to make configurations to the pallet.

source

type MaxStatementLength: Get<u32>

The maximum statement length for the statement users to sign when creating an account.

source

type UnlockedProportion: Get<Permill>

The amount of purchased locked DOTs that we will unlock for basic actions on the chain.

source

type MaxUnlocked: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

The maximum amount of locked DOTs that we will unlock.

Implementors§