dd4f42324e
- idl: pump.json and pump_amm.json updates - instruction: pumpfun.rs, pumpswap.rs and utils (pumpfun, pumpswap) - common: fast_fn.rs - docs: release_notes_v3.5.0.md Made-with: Cursor
1.3 KiB
1.3 KiB
sol-trade-sdk v3.5.0
Rust SDK for Solana DEX trading (Pump.fun, PumpSwap, Raydium, Bonk, Meteora, etc.).
What's Changed
Performance
- Executor hot path: Sample
Instant::now()only whenlog_enabledorsimulate(total, build, submit, confirm) to reduce cold-path syscalls. - SWQOS:
execute_parallelnow takes&[Arc<SwqosClient>]to avoid cloning the client list on each swap. - Constants: Named constants for instruction/account sizes and HTTP client timeouts; no magic numbers in hot paths.
Code Quality
- Protocol params: Single
validate_protocol_params()used for both buy and sell; removed duplicate match blocks inlib.rs. - Comments: Bilingual (English + 中文) doc and inline comments across execution, executor, perf (hardware_optimizations, syscall_bypass), and swqos/common.
- Prefetch/safety: Clearer docs for cache prefetch and
unsafeusage (valid read-only ref, no concurrent write).
Documentation
- README (EN/CN): Version references updated to 3.5.0 for path and crates.io usage.
Cargo
From Git (this release):
sol-trade-sdk = { git = "https://github.com/0xfnzero/sol-trade-sdk", tag = "v3.5.0" }
From crates.io:
sol-trade-sdk = "3.5.0"
Full Changelog: https://github.com/0xfnzero/sol-trade-sdk/compare/v3.4.1...v3.5.0