Module spl_governance::tools::account[][src]

Expand description

General purpose account utility functions

Traits

Trait for accounts to return their max size

Functions

Asserts the given account is not empty, owned by the given program and of the expected type Note: The function assumes the account type T is stored as the first element in the account data

Creates a new account and serializes data into it using the provided seeds to invoke signed CPI call Note: This functions also checks the provided account PDA matches the supplied seeds

Disposes account by transferring its lamports to the beneficiary account and zeros its data

Deserializes account and checks it’s initialized and owned by the specified program