Skip to main content

light_token_client/actions/
mod.rs

1//! Clean action interfaces for Light Token operations.
2//!
3//! These actions provide simple, ergonomic interfaces for common Light Token operations.
4//!
5//! All actions use a params struct pattern with an `execute` method:
6//! ```ignore
7//! Transfer {
8//!     source,
9//!     destination,
10//!     amount: 1000,
11//!     ..Default::default()
12//! }.execute(&mut rpc, &payer, &authority).await?;
13//! ```
14
15pub mod approve;
16pub mod create_ata;
17pub mod create_mint;
18pub mod mint_to;
19pub mod revoke;
20pub mod transfer;
21pub mod transfer_checked;
22pub mod transfer_interface;
23pub mod unwrap;
24pub mod wrap;
25
26// Re-export all action structs
27pub use approve::Approve;
28pub use create_ata::CreateAta;
29pub use create_mint::{CreateMint, TokenMetadata};
30pub use light_token::instruction::{
31    derive_associated_token_account, get_associated_token_address,
32    get_associated_token_address_and_bump,
33};
34pub use mint_to::MintTo;
35pub use revoke::Revoke;
36pub use transfer::Transfer;
37pub use transfer_checked::TransferChecked;
38pub use transfer_interface::TransferInterface;
39pub use unwrap::Unwrap;
40pub use wrap::Wrap;