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

    Class VotingChallenge

    VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge. Requires a weighted quorum threshold to be met through votes from specified voters. All challenges must be met with valid solutions for the transfer to be approved.

    IMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage of total possible weight (all voters), not just voted weight. If you update the proposal ID, then the vote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge to prevent overlap and unexpected behavior.

    from message badges.VotingChallenge

    Hierarchy

    Index

    Constructors

    Properties

    customData: string = ""

    Arbitrary custom data associated with this voting challenge.

    from field: string customData = 5;

    proposalId: string = ""

    The ID of this voting challenge for tracking votes (scoped like challengeTrackerId). Format: collectionId-approverAddress-approvalLevel-approvalId-challengeId

    from field: string proposalId = 1;

    quorumThreshold: string = ""

    The quorum threshold as a percentage (0-100) of total possible weight that must vote "yes". Example: 50 means 50% of total voter weight must vote yes for approval.

    from field: string quorumThreshold = 2;

    uri: string = ""

    The URI associated with this voting challenge.

    from field: string uri = 4;

    voters: badges.Voter[] = []

    List of voters with their weights. Each voter can cast a weighted vote.

    from field: repeated badges.Voter voters = 3;

    fields: FieldList = ...
    runtime: ProtoRuntime = proto3
    typeName: "badges.VotingChallenge"

    Methods