subscan
Runtime Modules / ElectionsPhragmen
Spec Version:
Call Functions
Storage Functions
Name
Type
Members{"origin":"PlainType","plain_type":"Vec<SeatHolder<AccountId, BalanceOf>>"}
RunnersUp{"origin":"PlainType","plain_type":"Vec<SeatHolder<AccountId, BalanceOf>>"}
Candidates{"origin":"PlainType","plain_type":"Vec<(AccountId, BalanceOf)>"}
ElectionRounds{"origin":"PlainType","plain_type":"u32"}
Voting{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"Voter<AccountId, BalanceOf>","isLinked":false}}
Constants
Name
Type
Value
CandidacyBondBalanceOf0x0000e8890423c78a0000000000000000
VotingBondBaseBalanceOf0x0000cf2ddc535f370000000000000000
VotingBondFactorBalanceOf0x0000c0d0d335a51a0000000000000000
DesiredMembersu320x07000000
DesiredRunnersUpu320x1e000000
TermDurationBlockNumber0xc0a80000
ModuleIdLockIdentifier0x706872656c656374
Error Types
Name
Docs
UnableToVote Cannot vote when no candidates or members exist.
NoVotes Must vote for at least one candidate.
TooManyVotes Cannot vote more than candidates.
MaximumVotesExceeded Cannot vote more than maximum allowed.
LowBalance Cannot vote with stake less than minimum balance.
UnableToPayBond Voter can not pay voting bond.
MustBeVoter Must be a voter.
ReportSelf Cannot report self.
DuplicatedCandidate Duplicated candidate submission.
MemberSubmit Member cannot re-submit candidacy.
RunnerUpSubmit Runner cannot re-submit candidacy.
InsufficientCandidateFunds Candidate does not have enough funds.
NotMember Not a member.
InvalidWitnessData The provided count of number of candidates is incorrect.
InvalidVoteCount The provided count of number of votes is incorrect.
InvalidRenouncing The renouncing origin presented a wrong `Renouncing` parameter.
InvalidReplacement Prediction regarding replacement after member removal is wrong.