feat: upgrade to v3.1.6

This commit is contained in:
ysq
2025-11-06 10:02:17 +08:00
parent 428e272623
commit 9824576164
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "sol-trade-sdk"
version = "3.1.6"
version = "3.1.7"
edition = "2021"
authors = [
"William <byteblock6@gmail.com>",
+2 -2
View File
@@ -87,14 +87,14 @@ Add the dependency to your `Cargo.toml`:
```toml
# Add to your Cargo.toml
sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.6" }
sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.7" }
```
### Use crates.io
```toml
# Add to your Cargo.toml
sol-trade-sdk = "3.1.6"
sol-trade-sdk = "3.1.7"
```
## 🛠️ Usage Examples
+2 -2
View File
@@ -87,14 +87,14 @@ git clone https://github.com/0xfnzero/sol-trade-sdk
```toml
# 添加到您的 Cargo.toml
sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.6" }
sol-trade-sdk = { path = "./sol-trade-sdk", version = "3.1.7" }
```
### 使用 crates.io
```toml
# 添加到您的 Cargo.toml
sol-trade-sdk = "3.1.6"
sol-trade-sdk = "3.1.7"
```
## 🛠️ 使用示例
+2 -2
View File
@@ -140,7 +140,7 @@ impl InstructionBuilder for PumpSwapInstructionBuilder {
// Create buy instruction
let mut accounts = Vec::with_capacity(23);
accounts.extend([
AccountMeta::new_readonly(pool, false), // pool_id (readonly)
AccountMeta::new(pool, false), // pool_id
AccountMeta::new(params.payer.pubkey(), true), // user (signer)
accounts::GLOBAL_ACCOUNT_META, // global (readonly)
AccountMeta::new_readonly(base_mint, false), // base_mint (readonly)
@@ -300,7 +300,7 @@ impl InstructionBuilder for PumpSwapInstructionBuilder {
// Create sell instruction
let mut accounts = Vec::with_capacity(23);
accounts.extend([
AccountMeta::new_readonly(pool, false), // pool_id (readonly)
AccountMeta::new(pool, false), // pool_id
AccountMeta::new(params.payer.pubkey(), true), // user (signer)
accounts::GLOBAL_ACCOUNT_META, // global (readonly)
AccountMeta::new_readonly(base_mint, false), // mint (readonly)