Skip to content

VoteProof represents a vote cast for a voting challenge.

Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:774

VoteProof represents a vote cast for a voting challenge.

Type Parameters

T

T extends NumberType

Properties

proposalId

proposalId: string

Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:778

The proposal ID this vote is for.


votedAt?

optional votedAt?: T

Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:793

Timestamp (unix ms) when this vote was cast. Set automatically by the chain.


voter

voter: string

Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:783

The address of the voter casting the vote.


yesWeight

yesWeight: T

Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:790

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.

Edit this page on GitHub