Trait breez_sdk_core::SwapperAPI
source · pub trait SwapperAPI: Send + Sync {
// Required methods
fn create_swap<'life0, 'async_trait>(
&'life0 self,
hash: Vec<u8>,
payer_pubkey: Vec<u8>,
node_pubkey: String,
) -> Pin<Box<dyn Future<Output = Result<Swap, SwapError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_swap<'life0, 'async_trait>(
&'life0 self,
bolt11: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Trait covering functionality involving swaps