Trait pallet_collator_selection::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type Currency: ReservableCurrency<Self::AccountId>;
type UpdateOrigin: EnsureOrigin<Self::Origin>;
type PotId: Get<PalletId>;
type MaxCandidates: Get<u32>;
type MinCandidates: Get<u32>;
type MaxInvulnerables: Get<u32>;
type KickThreshold: Get<Self::BlockNumber>;
type ValidatorId: Member + Parameter;
type ValidatorIdOf: Convert<Self::AccountId, Option<Self::ValidatorId>>;
type ValidatorRegistration: ValidatorRegistration<Self::ValidatorId>;
type WeightInfo: WeightInfo;
}
Expand description
Configure the pallet by specifying the parameters and types on which it depends.
Required Associated Types§
sourcetype Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The currency mechanism.
sourcetype UpdateOrigin: EnsureOrigin<Self::Origin>
type UpdateOrigin: EnsureOrigin<Self::Origin>
Origin that can dictate updating parameters of this pallet.
sourcetype MaxCandidates: Get<u32>
type MaxCandidates: Get<u32>
Maximum number of candidates that we should have. This is enforced in code.
This does not take into account the invulnerables.
sourcetype MinCandidates: Get<u32>
type MinCandidates: Get<u32>
Minimum number of candidates that we should have. This is used for disaster recovery.
This does not take into account the invulnerables.
sourcetype MaxInvulnerables: Get<u32>
type MaxInvulnerables: Get<u32>
Maximum number of invulnerables. This is enforced in code.
type KickThreshold: Get<Self::BlockNumber>
sourcetype ValidatorId: Member + Parameter
type ValidatorId: Member + Parameter
A stable ID for a validator.
sourcetype ValidatorIdOf: Convert<Self::AccountId, Option<Self::ValidatorId>>
type ValidatorIdOf: Convert<Self::AccountId, Option<Self::ValidatorId>>
A conversion from account ID to validator ID.
Its cost must be at most one storage read.
sourcetype ValidatorRegistration: ValidatorRegistration<Self::ValidatorId>
type ValidatorRegistration: ValidatorRegistration<Self::ValidatorId>
Validate a user is registered
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
The weight information of this pallet.