pumpdotfun-sdk 0.1.0

Rust SDK for interacting with the pump.fun contract
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anchor_lang::prelude::*;

#[error_code]
pub enum ErrorCode {
    #[msg("Invalid Slippage")]
    InvalidSlippage,
    #[msg("Failed to fetch global state from chain")]
    GlobalNotFound,
    #[msg("Failed to deserialize global state")]
    DeserializationError,
    #[msg("Overflow")]
    Overflow,
    #[msg("Bonding curve not found")]
    BondingCurveNotFound,
}