Skip to main content

Crate hopper_token

Crate hopper_token 

Source
Expand description

Hopper-owned SPL Token builder surface.

Thin first-class Hopper wrappers over the canonical runtime builders. This crate gives Hopper a native token CPI surface instead of forcing authored programs to depend on external helper crates.

Modules§

instructions
SPL Token instruction builders exported by Hopper.
layout
Kani proofs and golden-vector tests for the shipped SPL Token and System-program CPI instruction-data encoders.

Structs§

ApproveChecked
Builder for SPL Token ApproveChecked (instruction index 13).
BurnChecked
Builder for SPL Token BurnChecked (instruction index 15).
CheckedMintDecimals
Proof token that an SPL Mint matched expected decimals.
CheckedTokenAuthority
Proof token that an SPL TokenAccount matched an expected token authority.
CheckedTokenMint
Proof token that an SPL TokenAccount matched an expected mint.
CloseAccount
Builder for SPL Token CloseAccount (instruction index 9).
FreezeAccount
Builder for SPL Token FreezeAccount (instruction index 10).
InitializeAccount
Builder for SPL Token InitializeAccount (instruction index 1).
InitializeAccount2
Builder for SPL Token InitializeAccount2 (instruction index 16).
InitializeAccount3
Builder for SPL Token InitializeAccount3 (instruction index 18).
MintToChecked
Builder for SPL Token MintToChecked (instruction index 14).
Revoke
Builder for SPL Token Revoke (instruction index 5).
SetAuthority
Builder for SPL Token SetAuthority (instruction index 6).
SplMint
Known external SPL Mint adapter.
SplMintView
Guard-owned zero-copy SPL Mint view.
SplTokenAccount
Known external SPL TokenAccount adapter.
SplTokenAccountView
Guard-owned zero-copy SPL TokenAccount view.
SyncNative
Builder for SPL Token SyncNative (instruction index 17).
ThawAccount
Builder for SPL Token ThawAccount (instruction index 11).
TokenAmountSnapshot
Snapshot of a token account amount before CPI.
TransferChecked
Builder for SPL Token TransferChecked (instruction index 12).

Enums§

TokenAuthorityType
Authority classes accepted by SPL Token’s SetAuthority instruction.

Constants§

TOKEN_PROGRAM_ID
SPL Token program address.