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<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§
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<Self::BlockNumber, <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type BlockNumberToBalance: Convert<Self::BlockNumber, <<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.