Per-proposal vote-tally summary.

interface ProposalVoteInfo {
    approveWeight: string;
    passed: boolean;
    proposalId: string;
    rejectWeight: string;
    threshold: string;
    totalStakedWeight: string;
    votes: {
        approve: boolean;
        voter: string;
        weight: string;
    }[];
}

Properties

approveWeight: string

Staked weight of voters who approved (bigint-as-string).

passed: boolean

True iff approveWeight >= threshold.

proposalId: string
rejectWeight: string

Staked weight of voters who rejected (bigint-as-string).

threshold: string

2/3 of totalStakedWeight (bigint-as-string).

totalStakedWeight: string

Total staked weight of ALL snapshot validators (bigint-as-string).

votes: {
    approve: boolean;
    voter: string;
    weight: string;
}[]