From 1c43a519b2284021fc276aa1dbf247eaf7413d85 Mon Sep 17 00:00:00 2001 From: ysq Date: Mon, 11 Aug 2025 22:03:26 +0800 Subject: [PATCH] chore: bump to v0.3.1 - Update solana-streamer-sdk to 0.2.1 - Fix missing PDA accounts in PumpFun sell instruction --- Cargo.toml | 4 ++-- README.md | 4 ++-- README_CN.md | 4 ++-- src/instruction/pumpfun.rs | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7fd0127..ea5d2e9 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sol-trade-sdk" -version = "0.3.0" +version = "0.3.1" edition = "2021" authors = ["William ", "sgxiang ", "wei <1415121722@qq.com>"] repository = "https://github.com/0xfnzero/sol-trade-sdk" @@ -13,7 +13,7 @@ readme = "README.md" crate-type = ["cdylib", "rlib"] [dependencies] -solana-streamer-sdk = "0.2.0" +solana-streamer-sdk = "0.2.1" solana-sdk = "2.3.0" solana-client = "2.3.6" solana-program = "2.3.0" diff --git a/README.md b/README.md index 802119b..af0c2b5 100755 --- a/README.md +++ b/README.md @@ -31,14 +31,14 @@ Add the dependency to your `Cargo.toml`: ```toml # Add to your Cargo.toml -sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.3.0" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.3.1" } ``` ### Use crates.io ```toml # Add to your Cargo.toml -sol-trade-sdk = "0.3.0" +sol-trade-sdk = "0.3.1" ``` ## Usage Examples diff --git a/README_CN.md b/README_CN.md index 1c8c42d..0f51313 100755 --- a/README_CN.md +++ b/README_CN.md @@ -31,14 +31,14 @@ git clone https://github.com/0xfnzero/sol-trade-sdk ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.3.0" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.3.1" } ``` ### 使用 crates.io ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = "0.3.0" +sol-trade-sdk = "0.3.1" ``` ## 使用示例 diff --git a/src/instruction/pumpfun.rs b/src/instruction/pumpfun.rs index 9ddc71b..75b3be2 100755 --- a/src/instruction/pumpfun.rs +++ b/src/instruction/pumpfun.rs @@ -228,6 +228,8 @@ pub fn sell( AccountMeta::new_readonly(constants::pumpfun::accounts::TOKEN_PROGRAM, false), AccountMeta::new_readonly(constants::pumpfun::accounts::EVENT_AUTHORITY, false), AccountMeta::new_readonly(constants::pumpfun::accounts::PUMPFUN, false), + AccountMeta::new(get_global_volume_accumulator_pda().unwrap(), false), + AccountMeta::new(get_user_volume_accumulator_pda(&payer.pubkey()).unwrap(), false), ], ) }