Skip to main content

pump_rust_client/
lib.rs

1//! Rust SDK for the pump and pump_amm Solana programs.
2//!
3//! Enable the default `client` feature for [`AsyncPumpClient`] and the full
4//! `solana-sdk` / `solana-client` dependency stack. For on-chain CPI usage only,
5//! depend with `default-features = false` — instruction helpers use
6//! `solana-program` and avoid RPC crates.
7
8use anchor_lang::declare_program;
9
10declare_program!(pump);
11declare_program!(pump_amm);
12
13pub mod accounts;
14#[cfg(feature = "client")]
15pub mod async_client;
16pub mod constants;
17pub mod errors;
18pub mod fixtures;
19pub mod math;
20pub mod pda;
21pub mod sdk;
22pub mod state;
23pub mod token;
24
25pub use accounts::{decode, decode_padded};
26#[cfg(feature = "client")]
27pub use async_client::{AsyncPumpClient, ComputeBudget};
28pub use errors::{PumpClientError, Result};
29pub use sdk::{AmmQuoteSource, CreateCoinParams, PumpSdk, TradeTxParams, TradeVenue};