Trait pallet_scored_pool::Config [−][src]
Associated Types
type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>
[src]
The currency used for deposits.
type Score: AtLeast32Bit + Clone + Copy + Default + FullCodec + MaybeSerializeDeserialize + Debug
[src]
The score attributed to a member or candidate.
type Event: From<Event<Self, I>> + Into<Self::Event>
[src]
The overarching event type.
type CandidateDeposit: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>
[src]
type Period: Get<Self::BlockNumber>
[src]
Every Period
blocks the Members
are filled with the highest scoring
members in the Pool
.
type MembershipInitialized: InitializeMembers<Self::AccountId>
[src]
The receiver of the signal for when the membership has been initialized.
This happens pre-genesis and will usually be the same as MembershipChanged
.
If you need to do something different on initialization, then you can change
this accordingly.
type MembershipChanged: ChangeMembers<Self::AccountId>
[src]
The receiver of the signal for when the members have changed.
type ScoreOrigin: EnsureOrigin<Self::Origin>
[src]
Allows a configurable origin type to set a score to a candidate in the pool.
type KickOrigin: EnsureOrigin<Self::Origin>
[src]
Required origin for removing a member (though can always be Root).
Configurable origin which enables removing an entity. If the entity
is part of the Members
it is immediately replaced by the next
highest scoring candidate, if available.