Skip to main content

ValidatorsDecisionState

Represents the state of a validators decision during the voting process.

Hierarchy

  • any
    • ValidatorsDecisionState

Index

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

staticstartVoting