Trait pallet_vesting::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
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;
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 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.
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.