Commit Graph

99 Commits

Author SHA1 Message Date
wei 77e1f9a480 dynamic tip optimization 2025-06-24 23:45:51 +08:00
ysq bfd6809855 refactor: rename PumpFun to SolanaTrade and improve API consistency
- Rename PumpFun class to SolanaTrade to better reflect its expanded functionality
- Rename copy_buy methods to buy for better API clarity
- Update ShredStream and Yellowstone gRPC subscription examples
- Add bonding_curve parameter to trading methods
- Improve documentation with updated code examples
- Update README files with new features and API changes
2025-06-24 20:56:15 +08:00
ysq a0579a338b feat(pumpswap): Auto-wrap SOL and enrich gRPC events
This commit introduces two main enhancements:

    1.  Adds an `auto_handle_wsol` parameter to `PumpSwap` buy/sell functions. When enabled, the SDK automatically manages the wrapping of SOL to WSOL and unwrapping back to SOL, simplifying client-side logic.
    2.  Enriches `PumpSwap` gRPC buy/sell events by parsing transaction instructions to include token mints and account addresses, providing more context for event consumers.
2025-06-23 00:50:51 +08:00
ysq 9396871b01 Merge commit 'd8643c8421026f41266e41ac6dde676306a1cb93' into dev 2025-06-22 23:06:57 +08:00
ysq 926201b4c7 refactor(trading): Adapt buy/sell functions to use parameter objects
This commit refactors the `copy_buy_with_tip`, `sell_by_percent`, `sell_by_amount`, and their `with_tip` variants within the `PumpFun` struct.

    The functions now accept parameter objects (`BuyWithTipParams`, `SellParams`, `SellWithTipParams`) instead of a list of individual arguments. This change improves code modularity, readability, and allows for dynamic dispatch to the correct protocol implementation (PumpFun or PumpSwap) based on the provided protocol parameters.
2025-06-22 23:05:54 +08:00
wei d8643c8421 sniper_buy_with_tip add bonding_curve 2025-06-22 22:50:05 +08:00
ysq 7024e100b9 feat: Refactor pump.fun buy transaction creation
Removes the `dev_buy_token` and `dev_sol_cost` parameters from the buy process to simplify the interface and reduce redundancy.
2025-06-20 18:14:26 +08:00
wood 148cce8253 . 2025-06-20 00:55:40 +08:00
wei 24e26bc9c3 fix 2025-06-20 00:50:55 +08:00
wei 14f35e344f fix 2025-06-20 00:45:14 +08:00
ysq 29ce9d787f [Feature] Add smart tip fee functionality
1. Add smart_buy_tip_fee field to PriorityFee struct
2. Extend copy_buy_with_tip method with custom_buy_tip_fee parameter
3. Implement dynamic tip fee adjustment logic
2025-06-19 22:30:04 +08:00
wei 02ab5f5314 fixd 2025-06-18 18:17:28 +08:00
wei bc05fdc7cb Revert "feat:check if the account exists before selling"
This reverts commit fa941174c2.
2025-06-18 17:39:43 +08:00
wei 2303a4c1e6 feat: bonding_curve is transmitted from the outside 2025-06-18 17:39:20 +08:00
wei fa941174c2 feat:check if the account exists before selling 2025-06-18 00:20:13 +08:00
sgxiang 428ece5d6a feat: refactor trading architecture with unified framework
- Add unified TradeExecutor interface and protocol abstraction
- Refactor PumpFun/PumpSwap into adapter pattern
- Introduce TradeFactory for multi-protocol support
- Add parallel execution and unified parameter system
- Include Raydium protocol support and log parsing
- Simplify codebase structure and improve maintainability
2025-06-17 23:32:20 +08:00
sgxiang 768dc92156 Merge commit '602b310cf841be6e695fd01744bc4a510b59f962' 2025-06-16 21:11:35 +08:00
sgxiang f20dbbd793 feat(pumpswap): improve nonce handling logic and transaction building flow 2025-06-16 21:08:46 +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
sgxiang e28394c549 Merge commit '5b3f3d86886dfb91bdae06f2154a93da45e1cc3c' 2025-06-16 11:21:41 +08:00
wood 5b3f3d8688 change project name 2025-06-16 10:22:55 +08:00
wood c21107d57c change project name 2025-06-16 10:20:30 +08:00
sgxiang 66d6d17996 fixed 2025-06-15 22:48:42 +08:00
wei 5468b6258e fix 2025-06-15 21:42:59 +08:00
wei f38fb91076 Add a method to obtain pumpswap token balance 2025-06-15 20:50:51 +08:00
wei 5cbbfb400d fix 2025-06-14 21:18:48 +08:00
wei 1b2d79d5fe fix 2025-06-14 20:16:50 +08:00
wei af2afcbb60 fix 2025-06-14 18:52:46 +08:00
wei 1ac52b03a9 Add the current price for obtaining pumpswap tokens 2025-06-12 20:45:22 +08:00
sgxiang 1db60c2d65 Merge commit '1743fecf1abc184d3e346b7c5126eb06869a447c' into feat/pumpswap 2025-06-12 00:00:55 +08:00
sgxiang 165335af11 feat(pumpswap): enhance PumpSwap trading functionality and logs parsing system
- Expand buy/sell trading logic with optimized execution flow
- Improve logs data structures and parser performance
- Enhance common utilities and pool management features
- Refactor main program architecture for better maintainability
- Update library export interfaces with improved API design
2025-06-12 00:00:30 +08:00
wei 1743fecf1a Obtain liquidity of the pool 2025-06-11 21:08:02 +08:00
周威威 6f819be4e0 Buy and sell according to the trading platform 2025-06-10 19:39:06 +08:00
wei a3859edf86 add signature 2025-06-10 16:13:26 +08:00
sgxiang 7617b4b82b Merge commit 'b3338114837482c5d17b53d347b283959c0f5e45' into feat/pumpswap 2025-06-10 00:54:59 +08:00
sgxiang 651789b553 refactor(pumpswap): refactor account handling logic in logs_parser and optimize account data extraction 2025-06-10 00:54:42 +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
sgxiang bfe76fcddc feat: Add address lookup, caching system and Jito GRPC integration
- Implement address lookup tables and multi-level caching

- Add GRPC stream processing and YellowStone connections

- Extend PumpFun functionality including token creation

- Integrate Jito GRPC services (auth, block engine, relayer)

- Optimize log processing and event system
2025-05-29 18:53:58 +08:00
William 2a06ebe2c0 remove pumpfun create token 2025-05-21 20:41:00 +08:00
Burton Qin 43c877cbb3 perf: move regex compilation out of loop in RaydiumEvent::parse_logs 2025-05-19 00:47:35 +08:00
William 4198720c51 fix slippage and get_buy_token_amount_from_sol_amount 2025-05-14 22:11:16 +08:00
William 07651638b9 fix 2025-05-13 07:08:01 +08:00
William 3a60969b22 fix pump upgrade 2025-05-13 06:34:57 +08:00
William ee0f18a279 update poll tx status 2025-04-10 12:38:00 +08:00
William 8050d7ea8f rename jito mod 2025-04-10 12:29:42 +08:00
William c7acb32acf remove trade.rs 2025-04-10 11:56:19 +08:00
William 7c755058cc fix create token, add param with creator pubkey 2025-04-10 11:04:55 +08:00
William a46bf4c77e fix duplicate instruction (2) 2025-04-09 21:07:27 +08:00