[][src]Crate srml_democracy

Democratic system: Handles administration of general stakeholder voting.

Structs

Delegations

Get the account (and lock periods) to which another account is delegating vote.

DepositOf

Those who have locked a deposit.

DispatchQueue

Queue of successful referenda to be dispatched.

GenesisConfig
LaunchPeriod

How often (in blocks) new public referenda are launched.

MaxLockPeriods

The maximum number of additional lock periods a voter may offer to strengthen their vote. Multiples of PublicDelay.

MinimumDeposit

The minimum amount to be used as a deposit for a public referendum proposal.

Module
NextTally

The next referendum index that should be tallied.

Proxy

Who is able to vote for whom. Value is the fund-holding account, key is the vote-transaction-sending account.

PublicDelay

The delay before enactment for all public referenda.

PublicPropCount

The number of (public) proposals that have been made so far.

PublicProps

The public proposals. Unsorted.

ReferendumCount

The next free referendum index, aka the number of referendums started so far.

ReferendumInfo

Info regarding an ongoing referendum.

ReferendumInfoOf

Information concerning any given referendum.

Vote

A number of lock periods, plus a vote, one way or the other.

VoteOf

Get the vote in a given referendum of a particular voter. The result is meaningful only if voters_for includes the voter when called with the referendum (you'll get the default Vote value otherwise). If you don't want to check voters_for, then you can also check for simple existence with VoteOf::exists first.

VotersFor

Get the voters for the current proposal.

VotingPeriod

How often (in blocks) to check for new votes.

Enums

Call
RawEvent

Events for this module.

VoteThreshold

A means of determining if a vote is past pass threshold.

Traits

Approved
Trait

Type Definitions

Event

RawEvent specialized for the configuration Trait

LockPeriods

A number of lock periods.

PropIndex

A proposal index.

ReferendumIndex

A referendum index.