pub trait Config: Config {
Show 19 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type ActiveSetSize: Get<u32>; type CommitteeSize: Get<u32>; type BatchingWindow: Get<BlockNumberFor<Self>>; type RepatriationPeriod: Get<BlockNumberFor<Self>>; type ShufflingFrequency: Get<BlockNumberFor<Self>>; type MaxBatchSize: Get<u32>; type RewardMultiplier: Get<BalanceOf<Self>>; type TreasuryAccounts: TreasuryAccountProvider<Self::AccountId>; type Currency: ReservableCurrency<Self::AccountId>; type RandomnessSource: Randomness<Self::Hash, BlockNumberFor<Self>>; type DefaultCommission: Get<Percent>; type MinNominatorBond: Get<BalanceOf<Self>>; type MinAttesterBond: Get<BalanceOf<Self>>; type Portal: Portal<Self>; type Rewards: RewardsWriteApi<Self::AccountId, BalanceOf<Self>, BlockNumberFor<Self>>; type ReadSFX: ReadSFX<Self::Hash, Self::AccountId, BalanceOf<Self>, BlockNumberFor<Self>>; type Xdns: Xdns<Self, BalanceOf<Self>>; type LightClientAsyncAPI: LightClientAsyncAPI<Self>;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

source

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

source

type ActiveSetSize: Get<u32>

source

type CommitteeSize: Get<u32>

source

type BatchingWindow: Get<BlockNumberFor<Self>>

source

type RepatriationPeriod: Get<BlockNumberFor<Self>>

source

type ShufflingFrequency: Get<BlockNumberFor<Self>>

source

type MaxBatchSize: Get<u32>

source

type RewardMultiplier: Get<BalanceOf<Self>>

source

type TreasuryAccounts: TreasuryAccountProvider<Self::AccountId>

source

type Currency: ReservableCurrency<Self::AccountId>

source

type RandomnessSource: Randomness<Self::Hash, BlockNumberFor<Self>>

source

type DefaultCommission: Get<Percent>

source

type MinNominatorBond: Get<BalanceOf<Self>>

source

type MinAttesterBond: Get<BalanceOf<Self>>

source

type Portal: Portal<Self>

source

type Rewards: RewardsWriteApi<Self::AccountId, BalanceOf<Self>, BlockNumberFor<Self>>

source

type ReadSFX: ReadSFX<Self::Hash, Self::AccountId, BalanceOf<Self>, BlockNumberFor<Self>>

source

type Xdns: Xdns<Self, BalanceOf<Self>>

source

type LightClientAsyncAPI: LightClientAsyncAPI<Self>

Implementors§