Trait penumbra_dex::component::SwapManager
source · pub trait SwapManager: StateWrite {
// Provided methods
fn add_swap_payload<'life0, 'async_trait>(
&'life0 mut self,
swap: SwapPayload,
source: CommitmentSource
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn pending_swap_payloads(
&self
) -> Vector<(Position, SwapPayload, CommitmentSource)> { ... }
}
Available on crate feature
component
only.Expand description
Manages the addition of new notes to the chain state.
Provided Methods§
fn add_swap_payload<'life0, 'async_trait>(
&'life0 mut self,
swap: SwapPayload,
source: CommitmentSource
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn pending_swap_payloads( &self ) -> Vector<(Position, SwapPayload, CommitmentSource)>
Object Safety§
This trait is not object safe.