Module spl_governance::state::realm_config
source · Expand description
RealmConfig account
Structs§
- GoverningTokenConfig specifies configuration for Realm governing token (Community or Council)
- RealmConfig account The account is an optional extension to RealmConfig stored on Realm account
Enums§
- The type of the governing token defines:
Functions§
- Returns RealmConfig PDA address
- Returns RealmConfig PDA seeds
- Deserializes RealmConfig account and checks owner program
- If the account exists then deserializes it into RealmConfigAccount struct and checks the owner program and the Realm it belongs to If the account doesn’t exist then it checks its address is derived from the given owner program and Realm and returns default RealmConfigAccount
- Resolves GoverningTokenConfig from GoverningTokenConfigArgs and instruction accounts