pub trait LnFederationApi {
Show 13 methods // Required methods fn fetch_consensus_block_count<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = FederationResult<Option<u64>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_contract<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<Option<ContractAccount>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wait_contract<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<ContractAccount>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wait_block_height<'life0, 'async_trait>( &'life0 self, block_height: u64 ) -> Pin<Box<dyn Future<Output = FederationResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wait_outgoing_contract_cancelled<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<ContractAccount>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_decrypted_preimage_status<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<(IncomingContractAccount, DecryptedPreimageStatus)>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wait_preimage_decrypted<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<(IncomingContractAccount, Option<Preimage>)>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_offer<'life0, 'async_trait>( &'life0 self, payment_hash: Sha256Hash ) -> Pin<Box<dyn Future<Output = FederationResult<IncomingContractOffer>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn fetch_gateways<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = FederationResult<Vec<LightningGatewayAnnouncement>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn register_gateway<'life0, 'life1, 'async_trait>( &'life0 self, gateway: &'life1 LightningGatewayAnnouncement ) -> Pin<Box<dyn Future<Output = FederationResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn offer_exists<'life0, 'async_trait>( &'life0 self, payment_hash: Sha256Hash ) -> Pin<Box<dyn Future<Output = FederationResult<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_incoming_contract<'life0, 'async_trait>( &'life0 self, id: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<IncomingContractAccount>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_outgoing_contract<'life0, 'async_trait>( &'life0 self, id: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<OutgoingContractAccount>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}

Required Methods§

source

fn fetch_consensus_block_count<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = FederationResult<Option<u64>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn fetch_contract<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<Option<ContractAccount>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn wait_contract<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<ContractAccount>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn wait_block_height<'life0, 'async_trait>( &'life0 self, block_height: u64 ) -> Pin<Box<dyn Future<Output = FederationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn wait_outgoing_contract_cancelled<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<ContractAccount>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_decrypted_preimage_status<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<(IncomingContractAccount, DecryptedPreimageStatus)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn wait_preimage_decrypted<'life0, 'async_trait>( &'life0 self, contract: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<(IncomingContractAccount, Option<Preimage>)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn fetch_offer<'life0, 'async_trait>( &'life0 self, payment_hash: Sha256Hash ) -> Pin<Box<dyn Future<Output = FederationResult<IncomingContractOffer>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn fetch_gateways<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = FederationResult<Vec<LightningGatewayAnnouncement>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn register_gateway<'life0, 'life1, 'async_trait>( &'life0 self, gateway: &'life1 LightningGatewayAnnouncement ) -> Pin<Box<dyn Future<Output = FederationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn offer_exists<'life0, 'async_trait>( &'life0 self, payment_hash: Sha256Hash ) -> Pin<Box<dyn Future<Output = FederationResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_incoming_contract<'life0, 'async_trait>( &'life0 self, id: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<IncomingContractAccount>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_outgoing_contract<'life0, 'async_trait>( &'life0 self, id: ContractId ) -> Pin<Box<dyn Future<Output = FederationResult<OutgoingContractAccount>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<T> LnFederationApi for T
where T: IModuleFederationApi + MaybeSend + MaybeSync + 'static + ?Sized,