pub trait UnlockConfig: 'static {
    type AccountId: Parameter + Ord;
    type Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>;
    type PalletName: Get<&'static str>;
    type MaxVotes: Get<u32>;
    type MaxDeposits: Get<u32>;
    type DbWeight: Get<RuntimeDbWeight>;
    type BlockNumber: Parameter + Zero + Copy + Ord;
}
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 MaxVotes: Get<u32>

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

source

type MaxDeposits: Get<u32>

The maximum deposit as configured previously in the runtime.

source

type DbWeight: Get<RuntimeDbWeight>

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

source

type BlockNumber: Parameter + Zero + Copy + Ord

The block number as configured in the runtime.

Implementors§