Commit Graph

242 Commits

Author SHA1 Message Date
ysq d3da5ed18f feat: upgrade to v0.4.2 2025-08-19 21:14:32 +08:00
ysq d27a44735a feat: Add Raydium AMM V4 support and middleware system
- Add Raydium AMM V4 trading protocol support
- Implement instruction middleware system for dynamic processing
- Refactor trade executors to support middleware parameters
- Add fee calculation and slippage protection mechanisms
- Maintain backward compatibility with optional middleware
2025-08-19 18:07:21 +08:00
ysq 4b74d3cfb4 Merge commit 'd02d734026be4568b67153618ef4997d84bb4c7b' 2025-08-18 20:42:23 +08:00
ysq d02d734026 refactor: improve trading params API and fix bonk calculation bug
- Bump version to 0.4.0 with breaking API changes
- Standardize dex params to Box<T> instead of Option<Box<T>>
- Add convenient factory methods for all trading params
- Fix critical bug in bonk sell calculation (virtual_base logic)
- Update documentation and examples with new API usage
- Improve ergonomics by removing manual params construction
2025-08-18 20:41:01 +08:00
ysq 57474bfa6e feat: major refactor with calculation utilities and instruction optimization
- Add comprehensive calculation utilities for all protocols (bonk, pumpfun, pumpswap, raydium)
- Refactor instruction modules to reduce code complexity and improve maintainability
- Optimize trading parameters structure and enhance common utilities
- Separate calculation logic from trading modules for better code organization
- Update dependencies and module exports
2025-08-18 18:00:14 +08:00
ysq 350e34e0a0 Merge commit '22c1d4ea85c5bde99d0cf2498e357764ad9c7a88' 2025-08-14 22:46:35 +08:00
ysq 63244f4073 refactor: restructure trading modules and add price calculation utilities
- Remove redundant pool.rs files from trading protocols
- Consolidate protocol logic into common.rs files
- Add comprehensive price calculation utilities for all protocols
- Add decimals constants module
- Restructure utils module for better organization
- Update documentation with price utilities information

Breaking changes:
- Removed bonding_curve.rs from pumpfun module
- Consolidated trading logic across protocols
- Refactored utils module structure
2025-08-14 22:45:33 +08:00
wei 22c1d4ea85 The buy and sell methods support passing lookup_table_pubkey 2025-08-14 22:29:21 +08:00
wei 5d96fc2a08 add platform 2025-08-14 18:53:36 +08:00
ysq 29179519a6 feat: upgrade to v0.3.4 with enhanced trading system 2025-08-13 23:57:56 +08:00
ysq 069c5e3d21 feat: upgrade to v0.3.3 2025-08-12 11:39:37 +08:00
ysq 2103ac30be feat: upgrade to v0.3.2 2025-08-12 10:33:09 +08:00
ysq 1c43a519b2 chore: bump to v0.3.1
- Update solana-streamer-sdk to 0.2.1
- Fix missing PDA accounts in PumpFun sell instruction
2025-08-11 22:03:26 +08:00
ysq 7dd77838d6 Merge commit '065d19640aea23f4879ea6378a1b5aca912542d2' 2025-08-11 01:12:58 +08:00
ysq 651a4c9ab0 chore: bump version to 0.3.0 and update solana-streamer-sdk to 0.2.0 2025-08-11 01:12:18 +08:00
wei 065d19640a update readme 2025-08-10 22:12:51 +08:00
ysq 3006bd0ced feat: upgrade dependencies and bump to v0.2.15 2025-08-05 18:30:26 +08:00
ysq 1606a82971 Merge commit '04bfd9fdfed50bbfe1b5c5414623968223e3699c' 2025-08-05 18:28:36 +08:00
ysq 49acf2d7f7 feat: upgrade dependencies and bump to v0.2.15 2025-08-05 18:28:13 +08:00
wei 04bfd9fdfe change sol_str_to_lamports to sol_to_lamports 2025-08-05 15:48:11 +08:00
ysq 1f7e60bf93 feat(jito): add API token authentication support 2025-08-04 21:31:19 +08:00
ysq 281218b15e feat(jito): add API token authentication support
- Update Jito configuration to require API token
- Add authentication headers to Jito API requests
- Bump version to 0.2.13
- Update documentation and examples
2025-08-04 21:11:06 +08:00
ysq e976af6935 feat: upgrade to v0.2.12 and refactor system instructions 2025-08-03 22:51:11 +08:00
ysq 45140ae789 feat(pumpswap): enhance flexible mint support and optimize performance
- Add base_mint/quote_mint parameters to PumpSwapParams for flexible trading pairs
- Implement pool reserves caching to reduce RPC calls and improve speed
- Refactor unified buy/sell instruction logic for different mint types
- Add volume accumulator PDA support and proper fee calculations
- Update pool discovery for both base and quote mint searches
- Bump version to 0.2.11

Breaking: PumpSwapParams now requires mint and reserves parameters
2025-08-02 23:51:04 +08:00
ysq 07a42641de feat: v0.2.10 - add PumpFun volume accumulator support
- Bump version to 0.2.10
- Upgrade solana-streamer-sdk to 0.1.8
- Add volume accumulator PDAs and functions
2025-08-01 22:59:39 +08:00
ysq e09d42531d chore: bump version to 0.2.8 and update dependencies 2025-07-29 23:15:53 +08:00
ysq 769d898088 chore: bump version to 0.2.8 and update dependencies 2025-07-29 15:10:54 +08:00
ysq 5c54b42c64 feat: Upgrade to SDK version 0.2.7 2025-07-26 22:58:01 +08:00
ysq 5cd6c6197d feat: Upgrade to SDK version 0.2.6
- Upgrade solana-streamer-sdk dependency from 0.1.4 to 0.1.5
- Enhance sell function with with_tip parameter to control tip feature
- Improve event subscription using subscribe_events_v2 API with account filtering
- Update documentation and example code for new API
2025-07-26 17:54:59 +08:00
ysq 92bc7aecfa feat: Upgrade SDK version to 0.2.5 and enhance PumpSwap functionality
- Upgrade SDK version from 0.2.4 to 0.2.5
- Update solana-streamer-sdk dependency from 0.1.3 to 0.1.4
- Enhance PumpSwap examples with pool address parameter support
2025-07-25 16:55:33 +08:00
ysq 7a05ec216c feat: Upgrade SDK version to 0.2.4 and optimize tip fee setting logic
- Upgrade SDK version from 0.2.3 to 0.2.4
- Update solana-streamer-sdk dependency to version 0.1.3
- Optimize buy_tip_fees setting logic using map function instead of hardcoded array
- Update version numbers in README documentation
2025-07-24 21:38:22 +08:00
ysq 4f4edbf00a chore: bump version to 0.2.3 and update dependencies
- Bump sol-trade-sdk version to 0.2.3
- Update solana-streamer-sdk to 0.1.2
- Sync version in documentation
- Exclude examples/ from git tracking
2025-07-22 00:03:42 +08:00
ysq c98d022ae8 refactor: migrate streaming functionality to separate SDK, bump to v0.2.2 2025-07-20 00:56:11 +08:00
ysq 7942bea571 feat: add Raydium CLMM protocol support, bump version to 0.2.1 2025-07-19 21:28:01 +08:00
ysq 2ddec98805 feat: optimize event parser performance and stability. update version. 2025-07-18 18:30:45 +08:00
ysq 58d6b5dac6 refactor(instruction): remove create functionality and restructure module
- Remove Create struct and create instruction from PumpFun module
- Clean up mod.rs by removing duplicate instruction implementations
- Maintain core buy/sell instruction functionality
- Simplify instruction module architecture
2025-07-17 17:13:17 +08:00
ysq 714ab7fd47 Merge commit 'd5f17f5a758b1fbe2dcdeafb4aa58dcf99ece053' 2025-07-17 14:13:31 +08:00
ysq c133287f70 feat: Add Token 2022 support for Raydium CPMM, update constants to use spl_token::ID 2025-07-17 13:56:09 +08:00
wood d5f17f5a75 update readme 2025-07-17 01:55:14 +08:00
wood 13e0b44b7c update readme 2025-07-17 01:39:43 +08:00
ysq 75a29cd7ee feat: integrate Raydium CPMM trading protocol support
- Add Raydium CPMM constants, instruction builder and pool implementation
- Implement unified buy/sell trading interface and event parsing system
- Update documentation and examples to support new protocol
2025-07-16 22:54:23 +08:00
ysq aef9fe6b14 feat: add Bonk trading examples and fix function naming
- Add comprehensive Bonk trading examples in README
- Fix function naming consistency (width -> with)
- Enhance BonkParams with from_trade and from_dev_trade methods
- Add amount calculation utilities and tests
2025-07-14 22:26:03 +08:00
wood 1ca0dfdd53 update readme 2025-07-13 13:51:33 +08:00
ysq 461538ad90 refactor: simplify trading API and improve configuration management
- Remove `with_tip` parameter from buy/sell methods, always use tip-enabled transactions
- Fix variable naming inconsistencies (token_amount -> amount_token)
- Add automatic padding logic for buy_tip_fees array to match swqos_configs length
- Update README examples with corrected variable references and API usage
- Fix bug in test_pumpswap() using wrong DexType (PumpFun -> PumpSwap)
- Improve API documentation with clearer parameter descriptions
- Clean up code formatting and remove unnecessary blank lines

Breaking Changes:
- buy() and sell() method signatures changed (removed with_tip parameter)
- Variable naming standardized across codebase
2025-07-12 20:50:13 +08:00
ysq c4bf62be7d feat: optimize Bonk trading instructions and add price calculation
- Optimize sell instruction building, remove redundant code and add account closing
- Add token price calculation function supporting different decimal places
- Clean up debug logs and refactor code structure
2025-07-12 01:14:05 +08:00
ysq 9946637c62 refactor: rename 2025-07-11 16:38:30 +08:00
ysq 2b970698c2 fixed: fix timer 2025-07-11 10:40:04 +08:00
wood 947652db30 update dex_type 2025-07-11 00:02:51 +08:00
wood c66a89cad2 update example 2025-07-10 23:54:49 +08:00
wood c8ff05fb48 update readme 2025-07-10 23:43:40 +08:00