pub trait UnlockConfig: 'static {
type AccountId: Parameter + Ord;
type Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>;
type PalletName: Get<&'static str>;
type MaxVotesPerVoter: Get<u32>;
type PalletId: Get<LockIdentifier>;
type DbWeight: Get<RuntimeDbWeight>;
}
Expand description
The configuration for UnlockAndUnreserveAllFunds
.
Required Associated Types§
sourcetype Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>
type Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>
The currency type used in the runtime.
Should match the currency type previously used for the pallet, if applicable.
sourcetype PalletName: Get<&'static str>
type PalletName: Get<&'static str>
The name of the pallet as previously configured in
construct_runtime!
.
sourcetype MaxVotesPerVoter: Get<u32>
type MaxVotesPerVoter: Get<u32>
The maximum number of votes per voter as configured previously in the previous runtime.
sourcetype PalletId: Get<LockIdentifier>
type PalletId: Get<LockIdentifier>
Identifier for the elections-phragmen pallet’s lock, as previously configured in the runtime.
sourcetype DbWeight: Get<RuntimeDbWeight>
type DbWeight: Get<RuntimeDbWeight>
The DB weight as configured in the runtime to calculate the correct weight.