pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent> + TryInto<Event<Self>>;
    type Currency: ReservableCurrency<Self::AccountId>;
    type Deposit: Get<BalanceOf<Self>>;
    type ControlOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type BatchSize: Get<u32>;
    type Staking: StakingInterface<Balance = BalanceOf<Self>, AccountId = Self::AccountId>;
    type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent> + TryInto<Event<Self>>

The overarching event type.

source

type Currency: ReservableCurrency<Self::AccountId>

The currency used for deposits.

source

type Deposit: Get<BalanceOf<Self>>

Deposit to take for unstaking, to make sure we’re able to slash the it in order to cover the costs of resources on unsuccessful unstake.

source

type ControlOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin that can control this pallet.

source

type BatchSize: Get<u32>

Batch size.

This many stashes are processed in each unstake request.

source

type Staking: StakingInterface<Balance = BalanceOf<Self>, AccountId = Self::AccountId>

The access to staking functionality.

source

type WeightInfo: WeightInfo

The weight information of this pallet.

Implementors§