Trait pallet_attesters::pallet::Config
source · 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.