light_instruction_decoder/programs/
mod.rs

1//! Native Solana program decoders using macro-derived implementations.
2//!
3//! This module contains instruction decoders for native Solana programs
4//! that use various discriminator sizes:
5//! - 1-byte: SPL Token, Token 2022, Compute Budget, Light Token (CToken)
6//! - 4-byte: System Program
7//! - 8-byte: Anchor programs (Light Registry, Account Compression, Light System)
8
9// Generic Solana program decoders (always available)
10pub mod compute_budget;
11pub mod spl_token;
12pub mod system;
13pub mod token_2022;
14
15pub use compute_budget::ComputeBudgetInstructionDecoder;
16pub use spl_token::SplTokenInstructionDecoder;
17pub use system::SystemInstructionDecoder;
18pub use token_2022::Token2022InstructionDecoder;
19
20// Light Protocol program decoders (requires light-protocol feature)
21#[cfg(feature = "light-protocol")]
22pub mod account_compression;
23#[cfg(feature = "light-protocol")]
24pub mod ctoken;
25#[cfg(feature = "light-protocol")]
26pub mod light_system;
27#[cfg(feature = "light-protocol")]
28pub mod registry;
29
30#[cfg(feature = "light-protocol")]
31pub use account_compression::AccountCompressionInstructionDecoder;
32#[cfg(feature = "light-protocol")]
33pub use ctoken::CTokenInstructionDecoder;
34#[cfg(feature = "light-protocol")]
35pub use light_system::LightSystemInstructionDecoder;
36#[cfg(feature = "light-protocol")]
37pub use registry::RegistryInstructionDecoder;