Trait Lightning
Source pub trait Lightning: Send + Sync {
// Required methods
fn is_invoice_paid<'life0, 'async_trait>(
&'life0 self,
invoice: String,
) -> Pin<Box<dyn Future<Output = Result<bool, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_invoice<'life0, 'async_trait>(
&'life0 self,
amount: u64,
) -> Pin<Box<dyn Future<Output = Result<CreateInvoiceResult, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn pay_invoice<'life0, 'async_trait>(
&'life0 self,
payment_request: String,
) -> Pin<Box<dyn Future<Output = Result<PayInvoiceResult, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn decode_invoice<'life0, 'async_trait>(
&'life0 self,
payment_request: String,
) -> Pin<Box<dyn Future<Output = Result<LNInvoice, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}