refactor: simplify instruction builders and optimize transaction construction

- Remove redundant helper methods in instruction builders (bonk, pumpfun, pumpswap, raydium)
- Inline buy/sell instruction construction for better performance
- Remove unnecessary Buy/Sell structs and helper functions in pumpfun
- Consolidate instruction building logic to reduce code duplication
- Fix pointer dereference issue in parallel execution
- Improve code maintainability and reduce complexity
This commit is contained in:
ysq
2025-09-07 19:50:27 +08:00
parent 21d6714c25
commit 51253c7aaf
6 changed files with 101 additions and 247 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ pub async fn parallel_execute_with_tips(
let transaction = build_transaction(
payer,
&priority_fee,
(*instructions).clone(),
instructions.as_ref().clone(),
lookup_table_key,
recent_blockhash,
data_size_limit,