Module generic_token_account

Source
Expand description

Generic Token Account, copied from spl_token::state

Constants§

ACCOUNT_INITIALIZED_INDEX
The offset of state field in Account’s C representation

Traits§

GenericTokenAccount
A trait for token Account structs to enable efficiently unpacking various fields without unpacking the complete state.

Functions§

is_initialized_account
Check if the account data buffer represents an initialized account. This is checking the state (AccountState) field of an Account object.