Crate light_token_interface

Crate light_token_interface 

Source

Re-exports§

pub use crate::state::BASE_TOKEN_ACCOUNT_SIZE;
pub use error::*;
pub use pool_derivation::*;
pub use token_2022_extensions::*;

Modules§

discriminator
Instruction discriminators for the compressed token program.
error
hash_cache
instructions
pool_derivation
SPL interface PDA derivation utilities for Light Protocol.
state
token_2022_extensions

Constants§

COMPRESSED_MINT_SEED
COMPRESSED_ONLY_EXTENSION_SIZE
Size of CompressedOnly extension (16 bytes for two u64 fields: delegated_amount and withheld_transfer_fee)
CPI_AUTHORITY
EXTENSION_METADATA
Extension metadata overhead: Vec length (4) - added when any extensions are present Note: The Option discriminator is the has_extensions bool in the base struct
LIGHT_TOKEN_PROGRAM_ID
MINT_ACCOUNT_SIZE
Size of a Token-2022 mint account
MINT_ADDRESS_TREE
NATIVE_MINT
POOL_SEED
Pool PDA seeds
RESTRICTED_POOL_SEED
TRANSFER2
Instruction discriminator for Transfer2
TRANSFER_FEE_ACCOUNT_EXTENSION_LEN
Size of TransferFeeAccountExtension: 1 discriminant + 8 withheld_amount
TRANSFER_HOOK_ACCOUNT_EXTENSION_LEN
Size of TransferHookAccountExtension: 1 discriminant + 1 transferring