Commit Graph

39 Commits

Author SHA1 Message Date
ysq 90ea46ea3f feat: This update includes the following changes:
1. Upgrade version from 0.4.7 to 0.5.0
2. Rename compute unit parameters from unit_limit/unit_price to tip_unit_limit/tip_unit_price
3. Remove creator parameter from API to simplify trading interface
4. Optimize PumpFun and PumpSwap protocol parameter structures with creator_vault support
5. Remove unnecessary constants and functions like TOTAL_SUPPLY and BONDING_CURVE_SUPPLY
6. Improve code formatting and documentation
2025-08-23 20:37:03 +08:00
ysq 8d17530843 feat(bonk): Update BONK protocol support and fee handling
- Add system program and associated account support
- Update instruction builder with platform/creator accounts
- Implement associated account helper functions
- Upgrade SDK to 0.4.6 and dependencies
- Repla
2025-08-22 21:49:14 +08:00
wei d14f4870c5 swqos support flashblock 2025-08-21 21:04:19 +08:00
wood c0aab7fd8d Merge branch 'main' of github.com:0xfnzero/sol-trade-sdk into main 2025-08-21 00:13:08 +08:00
wood 0d69356589 update node1 endpoint 2025-08-21 00:12:59 +08:00
sgxiang ceedadc3f3 Merge pull request #21 from VariantConst/patch-1
Update swqos.rs
2025-08-20 23:54:55 +08:00
wei 84c2e501ce swqos support node1 2025-08-20 20:50:56 +08:00
VariantConst 9ae8c702eb Update swqos.rs
Corrected JITO's endpoint in Amsterdam.
2025-08-19 20:21:00 +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 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 5d96fc2a08 add platform 2025-08-14 18:53:36 +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 5c54b42c64 feat: Upgrade to SDK version 0.2.7 2025-07-26 22:58:01 +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
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 b891b2bc27 refactor: Major SDK architecture refactoring and API consolidation
- Consolidate separate buy/sell modules into unified trading interface
- Remove protocol-specific buy/sell files (bonk, pumpfun, pumpswap)
- Add new trading constants and utility functions
- Simplify API with unified buy/sell methods supporting multiple protocols
- Enhance documentation with comprehensive examples and usage guides
- Add balance checking and token account management utilities
- Improve code organization and maintainability
2025-07-10 18:14:21 +08:00
wood 516b682519 rename grpc to streaming 2025-07-10 03:24:13 +08:00
wood 1540fb6469 delete constants folder 2025-07-10 02:17:56 +08:00
ysq 756ec6e263 refactor: rename protocol from RaydiumLaunchpad to Bonk
Comprehensive renaming of RaydiumLaunchpad-related modules, structs, event types and constants to Bonk while maintaining functional logic
2025-07-10 00:23:29 +08:00
ysq 44ae51747b feat: refactor event parsing architecture and add Raydium Launchpad support
Major changes:
- Refactor event parsing system: migrate scattered logs_* modules to unified event_parser architecture
- Add unified UnifiedEvent trait and EventParser trait for standardized event parsing interface
- Introduce GenericEventParser and EventParserFactory for plugin-style protocol extension
- Add match_event! macro to simplify event type matching and handling
- Add Raydium Launchpad (Bonk.fun) protocol support:
  - Complete buy/sell trading functionality
  - Pool state management and querying
  - Event parsing and subscription
- Update trading system to support new protocol architecture
- Refactor constants organization, rename raydium to raydium_launchpad
- Update documentation and example code

Technical improvements:
- Unified event interface design for better code maintainability
- Factory pattern implementation for dynamic protocol loading
- Generic event parser to reduce code duplication
- Improved error handling and type safety

Breaking Changes:
- Remove old logs_* modules, use new event_parser system
- Protocol constants path change: raydium -> raydium_launchpad
- Event subscription API updated to unified interface
2025-07-09 22:29:29 +08:00
wood f772e26aa2 add bloxroute 2025-07-07 02:06:52 +08:00
wood 148cce8253 . 2025-06-20 00:55:40 +08:00
sgxiang 768dc92156 Merge commit '602b310cf841be6e695fd01744bc4a510b59f962' 2025-06-16 21:11:35 +08:00
sgxiang 602b310cf8 feat: Add Raydium DEX integration support
Add Raydium logs processing, event parsing and GRPC stream handling functionality,
remove redundant PumpSwap subscription module, optimize project structure.
2025-06-16 18:30:54 +08:00
wei af2afcbb60 fix 2025-06-14 18:52:46 +08:00
周威威 6f819be4e0 Buy and sell according to the trading platform 2025-06-10 19:39:06 +08:00
wei b333811483 Add a selling method based on quantity 2025-06-07 23:16:46 +08:00
sgxiang 94c2a22ab7 feat: Add PumpSwap trading functionality module 2025-06-06 22:29:30 +08:00
sgxiang 63109713f4 refactor: organize code into multi-protocol architecture with PumpFun submodules 2025-06-06 22:13:19 +08:00
William 3a60969b22 fix pump upgrade 2025-05-13 06:34:57 +08:00
William ec03ed8edc add nextblock, 0slot support 2025-04-02 13:39:59 +08:00
William ec0b4e4981 change unit_price, unit_limit to uint 2025-02-21 23:13:28 +08:00
William 12ddfe4dc0 update fee for custructor 2025-02-21 23:02:15 +08:00
William ecb2ffa747 change priority_fee 2025-02-21 22:32:43 +08:00
William f4f3c0fb37 rebuild code 2025-02-21 20:47:28 +08:00
William 42b7267c2c add yellowstone grpc 2025-01-23 17:48:10 +08:00