bitbadgesjs-sdk - v0.27.2
    Preparing search index...

    Class MsgCastVote<T>

    MsgCastVote allows a voter to cast or update their vote for a voting challenge.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    approvalId: string

    The approval ID.

    approvalLevel: string

    The approval level ("collection", "incoming", or "outgoing").

    approverAddress: string

    The approver address (empty string for collection-level approvals).

    collectionId: T

    The collection ID for the voting challenge.

    creator: string

    The creator of the transaction.

    proposalId: string

    The proposal ID (challenge ID) from the VotingChallenge.

    yesWeight: T

    The percentage weight (0-100) allocated to "yes" vote. The remaining percentage (100 - yesWeight) is allocated to "no" vote.

    Methods

    • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

      If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

      Type Parameters

      Parameters

      • other: undefined | null | CustomType<U>
      • OptionalnormalizeNumberTypes: boolean

      Returns boolean