This pallet is currently not maintained and should not be used in production until further notice.
Election module for stake-weighted membership selection of a collective.
The composition of a set of account IDs works according to one or more approval votes weighted by stake. There is a partial carry-over facility to give greater weight to those whose voting is serially unsuccessful.
TWOX-NOTE: SAFE as
Current number of active candidates
The present candidate list.
Number of accounts that should constitute the collective.
Genesis config for the module, allow to build genesis storage.
Get the leaderboard if we're in the presentation phase. The first element is the weight of each entry; It may be the direct summed approval stakes, or a weighted version of it. Sorted from low to high.
The current membership. When there's a vote going on, this should still be used for executive matters. The block number (second element in the tuple) is the block that their position is active until (calculated by the sum of the block number when the member was elected and their term duration).
The accounts holding the seats that will become free on the next tally.
the next free set to store a voter in. This will keep growing.
How long to give each top candidate to present themselves after the vote ends.
The vote index and list slot that the candidate
How long each position is active for.
The total number of vote rounds that have happened or are in progress.
Current number of Voters.
The activity status of a voter.
Basic information about a voter.
The present voter list (chunked and capped at
Used to demonstrate the status of a particular index in the global voter list.
Error for the elections module.
Events for this module.
NUmber of approvals grouped in one chunk.
Number of voters grouped in one chunk.
Index used to count voting rounds.