Trait pallet_fast_unstake::pallet::Config
source · 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§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent> + TryInto<Event<Self>>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent> + TryInto<Event<Self>>
The overarching event type.
sourcetype Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The currency used for deposits.
sourcetype Deposit: Get<BalanceOf<Self>>
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.
sourcetype ControlOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ControlOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin that can control this pallet.
sourcetype Staking: StakingInterface<Balance = BalanceOf<Self>, AccountId = Self::AccountId>
type Staking: StakingInterface<Balance = BalanceOf<Self>, AccountId = Self::AccountId>
The access to staking functionality.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
The weight information of this pallet.