Trait noble_elections_phragmen::Config[][src]

Associated Types

type Event: From<Event<Self>> + Into<Self::Event>[src]

The overarching event type.c

type ModuleId: Get<LockIdentifier>[src]

Identifier for the elections-phragmen noble’s lock

type Currency: LockableCurrency<Self::AccountId, Moment = Self::BlockNumber> + ReservableCurrency<Self::AccountId>[src]

The currency that people are electing with.

type ChangeMembers: ChangeMembers<Self::AccountId>[src]

What to do when the members change.

type InitializeMembers: InitializeMembers<Self::AccountId>[src]

What to do with genesis members

type CurrencyToVote: CurrencyToVote<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

Convert a balance into a number used for election calculation. This must fit into a u64 but is allowed to be sensibly lossy.

type CandidacyBond: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

How much should be locked up in order to submit one’s candidacy.

type VotingBondBase: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

Base deposit associated with voting.

This should be sensibly high to economically ensure the noble cannot be attacked by creating a gigantic number of votes.

type VotingBondFactor: Get<<Self::Currency as Currency<Self::AccountId>>::Balance>[src]

The amount of bond that need to be locked for each vote (32 bytes).

type LoserCandidate: OnUnbalanced<<Self::Currency as Currency<Self::AccountId>>::NegativeImbalance>[src]

Handler for the unbalanced reduction when a candidate has lost (and is not a runner-up)

type KickedMember: OnUnbalanced<<Self::Currency as Currency<Self::AccountId>>::NegativeImbalance>[src]

Handler for the unbalanced reduction when a member has been kicked.

type DesiredMembers: Get<u32>[src]

Number of members to elect.

type DesiredRunnersUp: Get<u32>[src]

Number of runners_up to keep.

type TermDuration: Get<Self::BlockNumber>[src]

How long each seat is kept. This defines the next block number at which an election round will happen. If set to zero, no elections are ever triggered and the module will be in passive mode.

type WeightInfo: WeightInfo[src]

Weight information for extrinsics in this noble.

Loading content...

Implementors

Loading content...