ValidatorsDecisionState
Hierarchy
- any
- ValidatorsDecisionState
Index
Constructors
Methods
Constructors
constructor
Returns ValidatorsDecisionState
Methods
vote
Records a vote
Parameters
validatorNullifier: Nullifier
The nullifier of the validator.
validatorsList: ValidatorsList
The ValidatorsList containing authorized validators.
votedList: ValidatorsList
The ValidatorsList tracking who has already voted.
yes: Bool
Whether this is a "yes" vote.
no: Bool
Whether this is a "no" vote.
abstain: Bool
Whether this is an "abstain" vote.
signature: Signature
The signature of the validator.
Returns ValidatorsDecisionState
A new
ValidatorsDecisionState
reflecting the vote.
staticassertEquals
Asserts that two
ValidatorsDecisionState
instances are equal.Parameters
a: ValidatorsDecisionState
First
ValidatorsDecisionState
instance.b: ValidatorsDecisionState
Second
ValidatorsDecisionState
instance.
Returns void
staticstartVoting
Parameters
decision: ValidatorsDecision
Returns ValidatorsDecisionState
Represents the state of a validators decision during the voting process.