Trait penumbra_dex::component::StateWriteExt
source · pub trait StateWriteExt: StateWrite + StateReadExt {
// Provided methods
fn put_dex_params(&mut self, params: DexParameters) { ... }
fn set_output_data<'life0, 'async_trait>(
&'life0 mut self,
output_data: BatchSwapOutputData,
swap_execution_1_for_2: Option<SwapExecution>,
swap_execution_2_for_1: Option<SwapExecution>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn set_arb_execution(&mut self, height: u64, execution: SwapExecution) { ... }
fn put_swap_flow<'life0, 'life1, 'async_trait>(
&'life0 mut self,
trading_pair: &'life1 TradingPair,
swap_flow: SwapFlow
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn put_swap_execution_at_height(
&mut self,
height: u64,
pair: DirectedTradingPair,
swap_execution: SwapExecution
) { ... }
}
Available on crate feature
component
only.Expand description
Extension trait providing write access to dex data.
Provided Methods§
fn put_dex_params(&mut self, params: DexParameters)
fn set_output_data<'life0, 'async_trait>(
&'life0 mut self,
output_data: BatchSwapOutputData,
swap_execution_1_for_2: Option<SwapExecution>,
swap_execution_2_for_1: Option<SwapExecution>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn set_arb_execution(&mut self, height: u64, execution: SwapExecution)
fn put_swap_flow<'life0, 'life1, 'async_trait>(
&'life0 mut self,
trading_pair: &'life1 TradingPair,
swap_flow: SwapFlow
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_swap_execution_at_height( &mut self, height: u64, pair: DirectedTradingPair, swap_execution: SwapExecution )
Object Safety§
This trait is not object safe.