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
This commit is contained in:
sgxiang
2025-06-17 23:32:20 +08:00
parent 768dc92156
commit 428ece5d6a
23 changed files with 1908 additions and 1505 deletions
+5
View File
@@ -8,6 +8,7 @@ pub mod ipfs;
pub mod swqos;
pub mod pumpfun;
pub mod pumpswap;
pub mod trading;
use std::sync::Arc;
use std::sync::Mutex;
@@ -397,6 +398,7 @@ impl PumpFun {
None,
self.priority_fee.clone(),
self.cluster.clone().lookup_table_key,
recent_blockhash,
None,
None,
None,
@@ -438,6 +440,7 @@ impl PumpFun {
None,
self.priority_fee.clone(),
self.cluster.clone().lookup_table_key,
recent_blockhash,
None,
None,
None,
@@ -481,6 +484,7 @@ impl PumpFun {
None,
self.priority_fee.clone(),
self.cluster.clone().lookup_table_key,
recent_blockhash,
None,
None,
None,
@@ -522,6 +526,7 @@ impl PumpFun {
None,
self.priority_fee.clone(),
self.cluster.clone().lookup_table_key,
recent_blockhash,
None,
None,
None,