Trait JupiterServiceTrait
Source pub trait JupiterServiceTrait: Send + Sync {
// Required methods
fn get_quote<'life0, 'async_trait>(
&'life0 self,
request: QuoteRequest,
) -> Pin<Box<dyn Future<Output = Result<QuoteResponse, JupiterServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_sol_to_token_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
input_mint: &'life1 str,
amount: u64,
slippage: f32,
) -> Pin<Box<dyn Future<Output = Result<QuoteResponse, JupiterServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_swap_transaction<'life0, 'async_trait>(
&'life0 self,
request: SwapRequest,
) -> Pin<Box<dyn Future<Output = Result<SwapResponse, JupiterServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_ultra_order<'life0, 'async_trait>(
&'life0 self,
request: UltraOrderRequest,
) -> Pin<Box<dyn Future<Output = Result<UltraOrderResponse, JupiterServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute_ultra_order<'life0, 'async_trait>(
&'life0 self,
request: UltraExecuteRequest,
) -> Pin<Box<dyn Future<Output = Result<UltraExecuteResponse, JupiterServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}