Module pallet_elections::pallet[][src]

Expand description

The module that hosts all the FRAME types needed to add this pallet to a runtime.

Structs

Can be used to configure the genesis state of this pallet.

The pallet implementing the on-chain logic.

Enums

Contains one variant per dispatchable that can be called by an extrinsic.

Custom dispatch errors of this pallet.

The event emitted by this pallet.

Traits

Configuration trait of this pallet.

Type Definitions

TWOX-NOTE: SAFE as AccountId is a crypto hash and SetIndex is not attacker-controlled.

Current number of active candidates

The present candidate list.

Number of accounts that should constitute the collective.

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).

Deprecated

Type alias to Pallet, to be used by construct_runtime.

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 who was registered or None if they are not currently registered.

How long each position is active for.

The total number of vote rounds that have happened or are in progress.

Current number of Voters.

Basic information about a voter.

The present voter list (chunked and capped at VOTER_SET_SIZE).