subscan
Runtime Modules / CorporateBallot
Spec Version:
Call Functions
Name
Lookup
Parameters
attach_ballot1f004
vote1f012
change_end1f022
change_meta1f032
change_rcv1f042
remove_ballot1f051
Events
Name
Lookup
Attributes
Created1f00
VoteCast1f01
RangeChanged1f02
MetaChanged1f03
RCVChanged1f04
Removed1f05
Storage Functions
Name
Type
Metas{"origin":"MapType","map_type":{"key":"CAId","hasher":"Blake2_128Concat","value":"BallotMeta","isLinked":false}}
TimeRanges{"origin":"MapType","map_type":{"key":"CAId","hasher":"Blake2_128Concat","value":"BallotTimeRange","isLinked":false}}
MotionNumChoices{"origin":"MapType","map_type":{"key":"CAId","hasher":"Blake2_128Concat","value":"Vec<u16>","isLinked":false}}
RCV{"origin":"MapType","map_type":{"key":"CAId","hasher":"Blake2_128Concat","value":"bool","isLinked":false}}
Results{"origin":"MapType","map_type":{"key":"CAId","hasher":"Blake2_128Concat","value":"Vec<Balance>","isLinked":false}}
Votes{"origin":"DoubleMapType","double_map_type":{"key":"CAId","key2":"IdentityId","hasher":"Blake2_128Concat","key2Hasher":"Identity","value":"Vec<BallotVote>","isLinked":false}}
Error Types
Name
Docs
CANotNotice A corporate ballot was made for a non `IssuerNotice` CA.
AlreadyExists A corporate ballot already exists for this CA.
NoSuchBallot A corporate ballot doesn't exist for this CA.
StartAfterEnd A corporate ballot's start time was strictly after the ballot's end.
NowAfterEnd A corporate ballot's end time was strictly before the current time.
NumberOfChoicesOverflow If some motion in a corporate ballot has more choices than would fit in `u16`.
VotingAlreadyStarted Voting started already. Amending a ballot is no longer possible.
VotingNotStarted Voting hasn't started yet.
VotingAlreadyEnded Voting ended already.
WrongVoteCount Provided list of balances does not match the total number of choices.
InsufficientVotes Voting power used by a DID on a motion exceeds that which is available to them.
NoSuchRCVFallback The RCV fallback of some choice does not exist.
RCVSelfCycle The RCV fallback points to the origin choice.
RCVNotAllowed RCV is not allowed for this ballot.