Available on crate feature
token only.Expand description
SPL token operation helpers (transfer, mint, ATA, freeze, etc.). Token operations for the HPSVM.
Provides SPL token helpers (transfer, mint, ATA, freeze, etc.) for tests
built on crate::HPSVM. Enable via the token feature.
Re-exports§
pub use self::error::TokenError;pub use spl_token_2022_interface as spl_token;token-2022
Modules§
- accounts
- Account snapshot factories for fast fixture and test setup.
- error
- Error types for the token helper crate.
Structs§
- Approve
- Description
- Approve
Checked - Description
- Burn
- Description
- Burn
Checked - Description
- Close
Account - Description
- Create
Account - Description
- Create
Associated Token Account - Description
- Create
Associated Token Account Idempotent - Description
- Create
Mint - Description
- Create
Multisig - Description
- Create
Native Mint token-2022 - Description
- Freeze
Account - Description
- MintTo
- Description
- Mint
ToChecked - Description
- Revoke
- Description
- SetAuthority
- Description
- Sync
Native - Description
- Thaw
Account - Description
- Transfer
- Description
- Transfer
Checked - Description
Constants§
- TOKEN_
ID - SPL Token program ID
Functions§
- get_
spl_ account - Get an SPL account from the SVM