Structs

Functions

assert initialized account

Create account almost from scratch, lifted from https://github.com/solana-labs/solana-program-library/tree/master/associated-token-account/program/src/processor.rs#L51-L98

cheap method to just get supply off a mint without unpacking whole object

cheap method to just get supply off a mint without unpacking whole object

Cheap method to just grab owner Pubkey from token account, instead of deserializing entire thing

Create a new account instruction

Strings need to be appended with \0s in order to have a deterministic length. This supports the memcmp filter on get program account calls. NOTE: it is assumed that the metadata fields are never larger than the respective MAX_LENGTH

Pads the string to the desired size with 0u8s. NOTE: it is assumed that the string’s size is never larger than the given size.

Pads the string to the desired size with 0u8s. NOTE: it is assumed that the string’s size is never larger than the given size.