feat: add trade type parameter and bump version to 1.1.1

This commit is contained in:
ysq
2025-09-22 01:25:32 +08:00
parent 334e685104
commit 020187a57a
8 changed files with 19 additions and 11 deletions
+2 -1
View File
@@ -4,7 +4,7 @@ use crate::common::nonce_cache::DurableNonceInfo;
use crate::common::SolanaRpcClient;
use crate::solana_streamer_sdk::streaming::event_parser::common::EventType;
use crate::solana_streamer_sdk::streaming::event_parser::protocols::bonk::BonkTradeEvent;
use crate::swqos::SwqosClient;
use crate::swqos::{SwqosClient, TradeType};
use crate::trading::common::get_multi_token_balances;
use crate::trading::MiddlewareManager;
use solana_hash::Hash;
@@ -23,6 +23,7 @@ use std::sync::Arc;
pub struct SwapParams {
pub rpc: Option<Arc<SolanaRpcClient>>,
pub payer: Arc<Keypair>,
pub trade_type: TradeType,
pub input_mint: Pubkey,
pub input_token_program: Option<Pubkey>,
pub output_mint: Pubkey,