Expand description
Helpers for working with the token extension TLV format. Taken + adapted from https://github.com/solana-labs/solana-program-library/blob/2124f7562ed27a5f03f29c0ea0b77ef0167d5028/token/program-2022/src/extension/mod.rs
The main purpose of these helpers is to graciously handle unknown extensions.
Enums§
Functions§
- get_
extension - Unpack a portion of the TLV data as the desired type
- get_
extension_ types - Fetches the “known” extension types from the TLV data.
- get_
variable_ len_ extension