Module pallet_democracy::source ·
The module that hosts all the FRAME types needed to add this pallet to a runtime.
Auto-generated docs-only module listing all defined dispatchables for this pallet. Note that members of this module cannot be used directly and are only provided for documentation purposes.
Auto-generated docs-only module listing all defined storage types for this pallet. Note that members of this module cannot be used directly and are only provided for documentation purposes.
Can be used to configure the genesis state of this pallet.
Contains one variant per dispatchable that can be called by an extrinsic.
Custom dispatch errors of this pallet.
Configuration trait of this pallet.
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
ReferendumCountif there isn’t a unbaked referendum.
General information concerning any proposal or referendum. The
PreimageHashrefers to the preimage of the
Preimagesprovider which can be a JSON dump or IPFS hash of a JSON file.
Type alias to
Pallet, to be used by
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:
The number of (public) proposals that have been made so far.
The public proposals. Unsorted. The second item is the proposal.
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.