Skip to main content

wp_solana_raydium_clmm_client/
lib.rs

1//! Raydium CLMM client library.
2//!
3//! Low-level client for the Raydium Concentrated Liquidity Market Maker
4//! program, providing account types, GPA filters, PDA derivation, and
5//! constants.
6
7#![allow(ambiguous_glob_reexports)]
8#![allow(clippy::io_other_error)]
9
10pub mod constants;
11pub mod error;
12#[cfg(feature = "fetch")]
13pub mod gpa;
14pub mod pda;
15
16// Generated code from Codama
17pub mod generated;
18
19// Re-export commonly used items
20pub use constants::{MAX_TICK_INDEX, MIN_TICK_INDEX, TICK_ARRAY_BITMAP_SIZE, TICK_ARRAY_SIZE, *};
21pub use error::{RaydiumClmmError, Result};
22// Re-export generated items for convenience
23pub use generated::accounts::*;
24#[cfg(feature = "fetch")]
25pub use generated::shared::*;
26#[cfg(feature = "fetch")]
27pub(crate) use generated::*;
28pub use generated::{
29    errors::*,
30    instructions::*,
31    programs::{AMM_V3_ID as ID, *},
32    types::*,
33};
34#[cfg(feature = "fetch")]
35pub use gpa::*;
36pub use pda::*;