hopper-token 0.2.0

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, and InitializeAccount. 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.

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

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

Support: solanadevdao.sol / F42ZovBoRJZU4av5MiESVwJWnEx8ZQVFkc1RM29zMxNT.

License: Apache-2.0.