diff --git a/src/grpc/mod.rs b/src/grpc/mod.rs index 721927b..940a3a8 100755 --- a/src/grpc/mod.rs +++ b/src/grpc/mod.rs @@ -157,24 +157,24 @@ impl YellowstoneGrpc { // transactions // } - pub fn get_subscribe_update_slot_request_filter( - &self, - account_include: Vec, - account_exclude: Vec, - account_required: Vec, - ) -> TransactionsFilterMap { - let mut transactions = HashMap::new(); - transactions.insert( - "client".to_string(), - SubscribeUpdateSlot { - slot: 0, - parent: None, - status: None, - dead_error: None, - }, - ); - transactions - } + // pub fn get_subscribe_update_slot_request_filter( + // &self, + // account_include: Vec, + // account_exclude: Vec, + // account_required: Vec, + // ) -> TransactionsFilterMap { + // let mut transactions = HashMap::new(); + // transactions.insert( + // "client".to_string(), + // SubscribeUpdateSlot { + // slot: 0, + // parent: None, + // status: None, + // dead_error: None, + // }, + // ); + // transactions + // } async fn handle_stream_message( msg: SubscribeUpdate, diff --git a/src/lib.rs b/src/lib.rs index 79a90b6..5f07cef 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -221,13 +221,13 @@ impl PumpFun { ).await } - pub async fn sell_by_percent_with_jito( + pub async fn sell_by_percent_with_tip( &self, mint: Pubkey, percent: u64, slippage_basis_points: Option, ) -> Result<(), anyhow::Error> { - pumpfun::sell::sell_by_percent_with_jito( + pumpfun::sell::sell_by_percent_with_tip( self.rpc.clone(), self.fee_clients.clone(), self.payer.clone(), @@ -239,13 +239,13 @@ impl PumpFun { } /// Sell tokens using Jito - pub async fn sell_with_jito( + pub async fn sell_with_tip( &self, mint: Pubkey, amount_token: Option, slippage_basis_points: Option, ) -> Result<(), anyhow::Error> { - pumpfun::sell::sell_with_jito( + pumpfun::sell::sell_with_tip( self.rpc.clone(), self.fee_clients.clone(), self.payer.clone(), diff --git a/src/pumpfun/sell.rs b/src/pumpfun/sell.rs index 4933ec9..251bf2b 100755 --- a/src/pumpfun/sell.rs +++ b/src/pumpfun/sell.rs @@ -60,7 +60,7 @@ pub async fn sell_by_percent( sell(rpc, payer, mint, Some(amount), slippage_basis_points, priority_fee).await } -pub async fn sell_by_percent_with_jito( +pub async fn sell_by_percent_with_tip( rpc: Arc, fee_clients: Vec>, payer: Arc, @@ -75,11 +75,11 @@ pub async fn sell_by_percent_with_jito( let (balance_u64, _) = get_token_balance(rpc.as_ref(), payer.as_ref(), &mint).await?; let amount = balance_u64 * percent / 100; - sell_with_jito(rpc, fee_clients, payer, mint, Some(amount), slippage_basis_points, priority_fee).await + sell_with_tip(rpc, fee_clients, payer, mint, Some(amount), slippage_basis_points, priority_fee).await } /// Sell tokens using Jito -pub async fn sell_with_jito( +pub async fn sell_with_tip( rpc: Arc, fee_clients: Vec>, payer: Arc,