Trait pallet_collator_selection::pallet::Config[][src]

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.

Associated Types

Overarching event type.

The currency mechanism.

Origin that can dictate updating parameters of this pallet.

Account Identifier from which the internal Pot is generated.

Maximum number of candidates that we should have. This is used for benchmarking and is not enforced.

This does not take into account the invulnerables.

Minimum number of candidates that we should have. This is used for disaster recovery.

This does not take into account the invulnerables.

Maximum number of invulnerables.

Used only for benchmarking.

A stable ID for a validator.

A conversion from account ID to validator ID.

Its cost must be at most one storage read.

Validate a user is registered

The weight information of this pallet.

Implementors