pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type Currency: LockableCurrency<Self::AccountId>;
    type BlockNumberToBalance: Convert<Self::BlockNumber, <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
    type MinVestedTransfer: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
    type WeightInfo: WeightInfo;
    type UnvestedFundsAllowedWithdrawReasons: Get<WithdrawReasons>;

    const MAX_VESTING_SCHEDULES: u32;
}
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: LockableCurrency<Self::AccountId>

The currency trait.

source

type BlockNumberToBalance: Convert<Self::BlockNumber, <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

Convert the block number into a balance.

source

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

The minimum amount transferred to call vested_transfer.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type UnvestedFundsAllowedWithdrawReasons: Get<WithdrawReasons>

Reasons that determine under which conditions the balance may drop below the unvested amount.

Required Associated Constants§

source

const MAX_VESTING_SCHEDULES: u32

Maximum number of vesting schedules an account may have at a given moment.

Implementors§