Name | Lookup | Parameters | |
|---|---|---|---|
| vote | 1000 | 2 | |
| remove_voter | 1001 | - | |
| report_defunct_voter | 1002 | 1 | |
| submit_candidacy | 1003 | - | |
| renounce_candidacy | 1004 | - | |
| remove_member | 1005 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| NewTerm | 0b00 | ||
| EmptyTerm | 0b01 | ||
| MemberKicked | 0b02 | ||
| MemberRenounced | 0b03 | ||
| VoterReported | 0b04 |
Name | Type | |
|---|---|---|
| Members | {"origin":"PlainType","plain_type":"Vec<(AccountId, BalanceOf)>"} | |
| RunnersUp | {"origin":"PlainType","plain_type":"Vec<(AccountId, BalanceOf)>"} | |
| ElectionRounds | {"origin":"PlainType","plain_type":"u32"} | |
| VotesOf | {"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"Vec<AccountId>","isLinked":false}} | |
| StakeOf | {"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"BalanceOf","isLinked":false}} | |
| Candidates | {"origin":"PlainType","plain_type":"Vec<AccountId>"} |
Name | Type | Value | |
|---|---|---|---|
| CandidacyBond | BalanceOf | 0x0010a5d4e80000000000000000000000 | |
| VotingBond | BalanceOf | 0x00743ba40b0000000000000000000000 | |
| DesiredMembers | u32 | 0x0d000000 | |
| DesiredRunnersUp | u32 | 0x07000000 | |
| TermDuration | BlockNumber | 0x40380000 |
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. |
| RunnerSubmit | Runner cannot re-submit candidacy. |
| InsufficientCandidateFunds | Candidate does not have enough funds. |
| InvalidOrigin | Origin is not a candidate, member or a runner up. |
| NotMember | Not a member. |