Module spl_governance::state::token_owner_record
source · Expand description
Token Owner Record Account
Structs§
- Governance Token Owner Record Account PDA seeds: [‘governance’, realm, token_mint, token_owner ]
Constants§
- The current version of TokenOwnerRecord account layout Note: It’s the version of the account layout and not the version of the program or the account type
Functions§
- Returns TokenOwnerRecord PDA address
- Returns TokenOwnerRecord PDA seeds
- Deserializes TokenOwnerRecord account and checks owner program
- Deserializes TokenOwnerRecord account and checks its address is the give proposal_owner
- Deserializes TokenOwnerRecord account and asserts it belongs to the given realm
- Deserializes TokenOwnerRecord account and asserts it belongs to the given realm and is for the given governing mint
- Deserializes TokenOwnerRecord account and checks its PDA against the provided seeds