light_token_types/lib.rs
1//! # light-token-types
2//!
3//! Instruction data and account metadata types for compressed tokens.
4//!
5//! | Type | Description |
6//! |------|-------------|
7//! | [`TokenAccountMeta`](instruction::TokenAccountMeta) | Compressed token account metadata |
8//! | [`BatchCompressInstructionData`](instruction::BatchCompressInstructionData) | Batch compress instruction data |
9//! | [`CompressedTokenInstructionDataApprove`](instruction::CompressedTokenInstructionDataApprove) | Approve/delegation instruction data |
10//! | [`PackedMerkleContext`](instruction::PackedMerkleContext) | Merkle tree context for proofs |
11//! | [`DelegatedTransfer`](instruction::DelegatedTransfer) | Transfer with delegate as signer |
12
13pub mod account_infos;
14pub mod constants;
15pub mod error;
16pub mod instruction;
17
18// Conditional anchor re-exports
19#[cfg(feature = "anchor")]
20use anchor_lang::{AnchorDeserialize, AnchorSerialize};
21#[cfg(not(feature = "anchor"))]
22use borsh::{BorshDeserialize as AnchorDeserialize, BorshSerialize as AnchorSerialize};
23pub use constants::*;
24pub use instruction::*;