-
Notifications
You must be signed in to change notification settings - Fork 12
api.entities.CorporateBallot.types
@polymeshassociation/polymesh-sdk / api/entities/CorporateBallot/types
Defined in: api/entities/CorporateBallot/types.ts:73
Active:
"Active"
Defined in: api/entities/CorporateBallot/types.ts:75
Closed:
"Closed"
Defined in: api/entities/CorporateBallot/types.ts:76
Pending:
"Pending"
Defined in: api/entities/CorporateBallot/types.ts:74
Defined in: api/entities/CorporateBallot/types.ts:36
motions:
BallotMotion[]
Defined in: api/entities/CorporateBallot/types.ts:45
All the motions of the ballot, with their associated titles, choices, etc.
title:
string
Defined in: api/entities/CorporateBallot/types.ts:40
Title of the ballot.
Defined in: api/entities/CorporateBallot/types.ts:3
choices:
string[]
Defined in: api/entities/CorporateBallot/types.ts:18
Choices for the motion excluding abstain.
Voting power not used is considered abstained.
infoLink:
string
Defined in: api/entities/CorporateBallot/types.ts:12
Link to more information about the motion.
title:
string
Defined in: api/entities/CorporateBallot/types.ts:7
Title of the motion.
Defined in: api/entities/CorporateBallot/types.ts:48
endDate:
Date
Defined in: api/entities/CorporateBallot/types.ts:57
End date of the ballot.
meta:
BallotMeta
Defined in: api/entities/CorporateBallot/types.ts:62
Metadata for the ballot.
rcv:
boolean
Defined in: api/entities/CorporateBallot/types.ts:70
Whether Ranked-Choice Voting (RCV) has been enabled.
Ranked-Choice Voting allows voters to select a fallback choice should their first preference fail to reach a certain threshold or, for example, be eliminated in the top-2 run-off.
startDate:
Date
Defined in: api/entities/CorporateBallot/types.ts:52
Start date of the ballot.
BallotVote =
object
Defined in: api/entities/CorporateBallot/types.ts:21
optionalfallback?:BigNumber
Defined in: api/entities/CorporateBallot/types.ts:33
The fallback vote to be used if the choice is not found in the ballot.
This is only allowed for RCV ballots.
Must point to a choice in a motion (index of the choice in the motion choices array).
Must not point to the same choice as the vote property (index != choiceIndex).
power:
BigNumber
Defined in: api/entities/CorporateBallot/types.ts:25
The power of the vote.
ChoiceWithParticipation =
object
Defined in: api/entities/CorporateBallot/types.ts:110
choice:
string
Defined in: api/entities/CorporateBallot/types.ts:114
The choice of the motion for which the votes are cast.
optionalfallback?:BigNumber
Defined in: api/entities/CorporateBallot/types.ts:124
The fallback choice for the vote.
power:
BigNumber
Defined in: api/entities/CorporateBallot/types.ts:119
The power of the vote.
ChoiceWithVotes =
object
Defined in: api/entities/CorporateBallot/types.ts:79
choice:
string
Defined in: api/entities/CorporateBallot/types.ts:83
The choice of the motion for which the votes are cast.
votes:
BigNumber
Defined in: api/entities/CorporateBallot/types.ts:88
The number of votes for the choice.
CorporateBallotMetaWithResults =
Omit<BallotMeta,"motions"> &object
Defined in: api/entities/CorporateBallot/types.ts:103
motions:
CorporateBallotMotionWithResults[]
The motions with their associated choices and votes.
CorporateBallotMotionWithParticipation =
Pick<BallotMotion,"title"|"infoLink"> &object
Defined in: api/entities/CorporateBallot/types.ts:127
choices:
ChoiceWithParticipation[]
The choices with their associated votes and fallback choices.
CorporateBallotMotionWithResults =
Pick<BallotMotion,"title"|"infoLink"> &object
Defined in: api/entities/CorporateBallot/types.ts:91
choices:
ChoiceWithVotes[]
The motion choices and their associated votes.
total:
BigNumber
The total number of votes cast for the motion.
CorporateBallotWithParticipation =
Omit<BallotMeta,"motions"> &object
Defined in: api/entities/CorporateBallot/types.ts:134
motions:
CorporateBallotMotionWithParticipation[]
The motions with their associated choices and votes.