Skip to main content

Module sdk

Module sdk 

Source

Re-exports§

pub use crate::math::QuoteError;

Structs§

CreateCoinParams
PumpSdk::create_coin_instructions. New mint keypair must co-sign. The initial buy is in the chosen quote_mint (Pubkey::default() → wSOL).
PumpPoolCtx
pump_amm pool after migration (BondingCurve::complete).
PumpPoolQuoteCtx
pump_amm pool quote inputs — like PumpPoolCtx but with the reserves and fee config the AMM math needs.
PumpSdk
Instruction builders (no RPC).
Quote
Quote output: amount is tokens-out or lamports-out; min_out / max_input carry slippage where relevant.
TradeQuoteParams
PumpSdk::quote_trade parameters: routes from [BondingCurve::complete], mirroring TradeTxParams. pump_pool is required when the curve is complete.
TradeTxParams
PumpSdk::trade_tx_instructions parameters: routes from [BondingCurve::complete]. pump_pool is required when the curve is complete.
TradeTxWithVenueParams
PumpSdk::trade_tx_instructions_with_venue parameters. wSOL uses wrap/unwrap; amounts come from the *_quote_* helpers.

Enums§

AmmQuoteSource
AMM quote inputs: live pool reserves, or estimated reserves from a completed curve (not on-chain AMM state).
TradeVenue
Force bonding-curve vs AMM routing for PumpSdk::trade_tx_instructions_with_venue.