fedimint_lnv2_client::apiTrait GatewayConnection
source pub trait GatewayConnection: Debug {
// Required methods
fn fetch_routing_info<'life0, 'life1, 'async_trait>(
&'life0 self,
gateway_api: SafeUrl,
federation_id: &'life1 FederationId,
) -> Pin<Box<dyn Future<Output = Result<Option<RoutingInfo>, GatewayError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fetch_invoice<'life0, 'async_trait>(
&'life0 self,
gateway_api: SafeUrl,
payload: CreateBolt11InvoicePayload,
) -> Pin<Box<dyn Future<Output = Result<Result<Bolt11Invoice, String>, GatewayError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn try_gateway_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<Result<[u8; 32], Signature>, String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}