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 account_wrapper::AccountWrapper;
pub use accounts::decode;
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§

account_wrapper
Generic newtype that lets Account<'info, T> tolerate buffers shorter than T’s current Borsh layout by zero-padding to the expected Anchor-serialized size before deserializing.
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
pump_agent_payments
pump_amm
sdk
state
token
SPL Token / Token-2022 instruction helpers used by the SDK.