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

    Interface iVoteProof<T>

    VoteProof represents a vote cast for a voting challenge.

    interface iVoteProof<T extends NumberType> {
        proposalId: string;
        voter: string;
        yesWeight: T;
    }

    Type Parameters

    Implemented by

    Index

    Properties

    proposalId: string

    The proposal ID this vote is for.

    voter: string

    The address of the voter casting the vote.

    yesWeight: T

    The percentage weight (0-100) allocated to "yes" vote. The remaining percentage (100 - yesWeight) is allocated to "no" vote. Example: yesWeight=70 means 70% yes, 30% no.