Expand description
Allocation and initialization of legacy SPL and Token-2022 mints.
A MintPlan ties the exact allocation to the extension initializers it
will execute. It uses no heap allocation and initializes extensions before
the base mint. It supports the thirteen fixed-size mint extensions;
variable-length metadata and the confidential extensions are not
inferred or initialized automatically.
Re-exports§
pub use crate::token::TOKEN_2022_PROGRAM_ID;
Structs§
- Initialize
Mint2 - Low-level
InitializeMint2CPI builder for either token program. - Mint
Config - Base mint configuration. Initializing a mint does not mint any supply.
- Mint
Instruction Data - Stack-backed canonical mint instruction data, bounded at 78 bytes.
- Mint
Plan - Validated, allocation-free mint creation plan.
Enums§
- Mint
Extension - Fixed-size mint extensions supported by
MintPlan.
Type Aliases§
- Mint
Program - The token program a mint is created on: the same selector every token builder takes, under the name mint creation has always used.