Module spl_governance::state::vote_record
source · Expand description
Proposal Vote Record Account
Structs§
- Voter choice for a proposal option In the current version only 1) Single choice, 2) Multiple choices proposals and 3) Weighted voting are supported. In the future versions we can add support for 1) Quadratic voting and 2) Ranked choice voting
- Proposal VoteRecord
Enums§
- User’s vote
- VoteKind defines the type of the vote being cast
Functions§
- Returns the VoteKind for the given Vote
- Returns VoteRecord PDA address
- Returns VoteRecord PDA seeds
- Deserializes VoteRecord account and checks owner program
- Deserializes VoteRecord and checks it belongs to the provided Proposal and TokenOwnerRecord