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 thanT’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
pumpandpump_ammprograms. - errors
- Error type for the offline
PumpSdkand the asyncAsyncPumpClient. - math
- Bonding-curve and AMM quote math (
u128intermediates,u64at the boundary). - pda
- PDA derivations for
pumpandpump_amm. Each returns(Pubkey, bump). - pump
- pump_
agent_ payments - pump_
amm - sdk
- state
- token
- SPL Token / Token-2022 instruction helpers used by the SDK.