hopper-token 0.3.2

Hopper-owned SPL Token builder surface. Thin, no_std instruction builders over Hopper Runtime.
Documentation

hopper-token

Hopper-owned SPL Token builders. The default public API is safety-first: TransferChecked, MintToChecked, BurnChecked, ApproveChecked, plus CloseAccount, Revoke, InitializeAccount (and InitializeAccount2 / InitializeAccount3), SetAuthority, FreezeAccount, ThawAccount, and SyncNative. Stack-allocated instruction data, no heap.

Crates.io Docs.rs

Part of the Hopper framework.

use hopper::prelude::*;

hopper_token::instructions::TransferChecked {
    from,
    mint,
    to,
    authority,
    amount,
    decimals,
}
.invoke()?;

Deprecated plain builders (Transfer, MintTo, Burn, Approve) are hidden unless the non-default legacy-token-instructions feature is enabled. Use that feature only for migration tests against legacy SPL Token programs that cannot use the checked instructions.

Version 0.3.1 also exports InitializeMint2, MintConfig, MintProgram, and MintPlan. A legacy plan has no extensions, allocates exactly 82 bytes, and initializes an empty mint with the configured authorities. Creation uses live rent and supports prefunding and PDA signer seeds. These APIs are available from the verified 0.3.1 registry release.

For Token-2022 mints with extension awareness, see hopper-token-2022.

Docs: https://docs.rs/crate/hopper-token

Support: solanadevdao.sol / F42ZovBoRJZU4av5MiESVwJWnEx8ZQVFkc1RM29zMxNT.

License: Apache-2.0.