Module pallet_democracy::pallet
source · 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.
Enums
Contains one variant per dispatchable that can be called by an extrinsic.
Custom dispatch errors
of 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.
The lowest referendum index representing an unbaked referendum. Equal to
ReferendumCount
if there isn’t a unbaked referendum.ModuleDeprecated
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.