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§

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 = BlockNumberFor<Self>, 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.

Object Safety§

This trait is not object safe.

Implementors§