Module pallet_democracy::pallet [−][src]
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
A record of who vetoed what. Maps proposal hash to a possible existent block number (until when it may not be resubmitted) and who vetoed it.
Record of all proposals that have been subject to emergency cancellation.
Those who have locked a deposit.
True if the last referendum tabled was submitted externally. False if it was a public proposal.
Accounts for which there are locks in action which may be removed at some point in the future. The value is the block number at which the lock expires and may be removed.
The lowest referendum index representing an unbaked referendum. Equal to
ReferendumCount
if there isn’t a unbaked referendum.
Type alias to Pallet
, to be used by construct_runtime
.
The referendum to be tabled whenever it would be valid to table an external proposal. This happens when a referendum needs to be tabled and one of two conditions are met:
Map of hashes to the proposal preimage, along with who registered it and their deposit. The block number is the block at which it was deposited.
The number of (public) proposals that have been made so far.
The public proposals. Unsorted. The second item is the proposal’s hash.
The next free referendum index, aka the number of referenda started so far.
Information concerning any given referendum.
All votes for a particular voter. We store the balance for the number of votes that we have recorded. The second item is the total amount of delegations, that will be added.