Trait pallet_vesting::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type Currency: LockableCurrency<Self::AccountId>;
type BlockNumberToBalance: Convert<BlockNumberFor<Self>, <<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.
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 Currency: LockableCurrency<Self::AccountId>
type Currency: LockableCurrency<Self::AccountId>
The currency trait.
sourcetype BlockNumberToBalance: Convert<BlockNumberFor<Self>, <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type BlockNumberToBalance: Convert<BlockNumberFor<Self>, <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
Convert the block number into a balance.
sourcetype MinVestedTransfer: Get<<<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>
The minimum amount transferred to call vested_transfer
.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype UnvestedFundsAllowedWithdrawReasons: Get<WithdrawReasons>
type UnvestedFundsAllowedWithdrawReasons: Get<WithdrawReasons>
Reasons that determine under which conditions the balance may drop below the unvested amount.
Required Associated Constants§
sourceconst MAX_VESTING_SCHEDULES: u32
const MAX_VESTING_SCHEDULES: u32
Maximum number of vesting schedules an account may have at a given moment.