penumbra_dex::component

Trait SwapDataRead

Source
pub trait SwapDataRead: StateRead {
    // Provided methods
    fn pending_swap_payloads(
        &self,
    ) -> Vector<(Position, SwapPayload, CommitmentSource)> { ... }
    fn swap_flow(&self, pair: &TradingPair) -> SwapFlow { ... }
    fn swap_flows(&self) -> OrdMap<TradingPair, SwapFlow> { ... }
    fn pending_batch_swap_outputs(
        &self,
    ) -> OrdMap<TradingPair, BatchSwapOutputData> { ... }
}
Available on crate feature component only.

Provided Methods§

Source

fn pending_swap_payloads( &self, ) -> Vector<(Position, SwapPayload, CommitmentSource)>

Source

fn swap_flow(&self, pair: &TradingPair) -> SwapFlow

Get the swap flow for the given trading pair accumulated in this block so far.

Source

fn swap_flows(&self) -> OrdMap<TradingPair, SwapFlow>

Source

fn pending_batch_swap_outputs(&self) -> OrdMap<TradingPair, BatchSwapOutputData>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§