Skip to main content

Crate pump_rust_client

Crate pump_rust_client 

Source
Expand description

Rust SDK for the pump and pump_amm programs.

Default features pull in solana-client for [AsyncPumpClient]. For CPI-only use, set default-features = false (instruction helpers use solana-program).

Re-exports§

pub use accounts::decode;
pub use accounts::decode_padded;
pub use errors::PumpClientError;
pub use errors::Result;
pub use sdk::AmmQuoteSource;
pub use sdk::CreateCoinParams;
pub use sdk::PumpPoolCtx;
pub use sdk::PumpPoolQuoteCtx;
pub use sdk::PumpSdk;
pub use sdk::Quote;
pub use sdk::TradeQuoteParams;
pub use sdk::TradeTxParams;
pub use sdk::TradeTxWithVenueParams;
pub use sdk::TradeVenue;

Modules§

accounts
Account decoders for the pump and pump_amm programs.
constants
Program IDs and seed constants for the pump and pump_amm programs.
errors
Error type for the offline PumpSdk and the async AsyncPumpClient.
math
Bonding-curve and AMM quote math (u128 intermediates, u64 at the boundary).
pda
PDA derivations for pump and pump_amm. Each returns (Pubkey, bump).
pump
Generated external program declaration of program pump.
pump_agent_payments
Generated external program declaration of program pump_agent_payments.
pump_amm
Generated external program declaration of program pump_amm.
sdk
state
token
SPL Token / Token-2022 instruction helpers used by the SDK.