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§

source

type AccountId: Parameter + Ord

The account ID used in the runtime.

source

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.

source

type PalletName: Get<&'static str>

The name of the pallet as previously configured in construct_runtime!.

source

type MaxVotesPerVoter: Get<u32>

The maximum number of votes per voter as configured previously in the previous runtime.

source

type PalletId: Get<LockIdentifier>

Identifier for the elections-phragmen pallet’s lock, as previously configured in the runtime.

source

type DbWeight: Get<RuntimeDbWeight>

The DB weight as configured in the runtime to calculate the correct weight.

Implementors§