fedimint_lnv2_common::gateway_apiTrait GatewayConnection
Source pub trait GatewayConnection: Debug {
// Required methods
fn routing_info<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway_api: SafeUrl,
federation_id: &'life1 FederationId,
) -> Pin<Box<dyn Future<Output = Result<Option<RoutingInfo>, GatewayConnectionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn bolt11_invoice<'life0, 'async_trait>(
&'life0 self,
gateway_api: SafeUrl,
federation_id: FederationId,
contract: IncomingContract,
amount: Amount,
description: Bolt11InvoiceDescription,
expiry_secs: u32,
) -> Pin<Box<dyn Future<Output = Result<Bolt11Invoice, GatewayConnectionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_payment<'life0, 'async_trait>(
&'life0 self,
gateway_api: SafeUrl,
federation_id: FederationId,
contract: OutgoingContract,
invoice: LightningInvoice,
auth: Signature,
) -> Pin<Box<dyn Future<Output = Result<Result<[u8; 32], Signature>, GatewayConnectionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}