Module spl_governance::state::realm
source · [−]Expand description
Realm Account
Structs
Realm Config defining Realm parameters.
Realm Config instruction args
Governance Realm Account Account PDA seeds“ [‘governance’, name]
Enums
SetRealmAuthority instruction action
Functions
Checks whether the Realm account exists, is initialized and owned by Governance program
Asserts given realm config args are correct
Returns Realm Token Holding PDA address
Returns Realm Token Holding PDA seeds
Returns Realm PDA address
Returns Realm PDA seeds
Deserializes account and checks owner program
Deserializes account and checks the given authority is Realm’s authority
Deserializes Ream account and asserts the given governing_token_mint is either Community or Council mint of the Realm
Checks if the given account type is on of the Realm account types of any version