subscan
Runtime Modules / PhragmenElection
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
NewTerm4400["Vec<(<T as frame_system::Config>::AccountId, BalanceOf)>"]
EmptyTerm4401
ElectionError4402
MemberKicked4403["<T as frame_system::Config>::AccountId"]
Renounced4404["<T as frame_system::Config>::AccountId"]
CandidateSlashed4405["<T as frame_system::Config>::AccountId","BalanceOf"]
SeatHolderSlashed4406["<T as frame_system::Config>::AccountId","BalanceOf"]
Storage Functions
Name
Type
Members{"origin":"PlainType","plain_type":"Vec<pallet_elections_phragmen:SeatHolder>","PlainTypeValue":476}
RunnersUp{"origin":"PlainType","plain_type":"Vec<pallet_elections_phragmen:SeatHolder>","PlainTypeValue":476}
Candidates{"origin":"PlainType","plain_type":"Vec<Tuple:AccountIdU128>","PlainTypeValue":106}
ElectionRounds{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Voting{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"pallet_elections_phragmen:Voter","keys_id":0,"value_id":478}}
Constants
Name
Type
Value
PalletId[U8; 8]706872656c656374
CandidacyBondU12800a0724e180900000000000000000000
VotingBondBaseU128005cabefb70000000000000000000000
VotingBondFactorU12800807c814a0000000000000000000000
DesiredMembersU3205000000
DesiredRunnersUpU3205000000
TermDurationU32201c0000
Error Types
Name
Docs
UnableToVoteCannot vote when no candidates or members exist.
NoVotesMust vote for at least one candidate.
TooManyVotesCannot vote more than candidates.
MaximumVotesExceededCannot vote more than maximum allowed.
LowBalanceCannot vote with stake less than minimum balance.
UnableToPayBondVoter can not pay voting bond.
MustBeVoterMust be a voter.
ReportSelfCannot report self.
DuplicatedCandidateDuplicated candidate submission.
MemberSubmitMember cannot re-submit candidacy.
RunnerUpSubmitRunner cannot re-submit candidacy.
InsufficientCandidateFundsCandidate does not have enough funds.
NotMemberNot a member.
InvalidWitnessDataThe provided count of number of candidates is incorrect.
InvalidVoteCountThe provided count of number of votes is incorrect.
InvalidRenouncingThe renouncing origin presented a wrong `Renouncing` parameter.
InvalidReplacementPrediction regarding replacement after member removal is wrong.