CardanoTransactionAggregatorRequest

Trait CardanoTransactionAggregatorRequest 

Source
pub trait CardanoTransactionAggregatorRequest: Send + Sync {
    // Required methods
    fn get_proof<'life0, 'life1, 'async_trait>(
        &'life0 self,
        hashes: &'life1 [String],
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoTransactionsProofs>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_latest_snapshots<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoTransactionSnapshotListItem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_snapshot<'life0, 'life1, 'async_trait>(
        &'life0 self,
        hash: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoTransactionSnapshot>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Define the requests against an aggregator related to Cardano transactions.

Required Methods§

Source

fn get_proof<'life0, 'life1, 'async_trait>( &'life0 self, hashes: &'life1 [String], ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoTransactionsProofs>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get a proof of membership for the given transactions hashes from the aggregator.

Source

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

Fetch the list of latest signed Cardano transactions snapshots from the aggregator

Source

fn get_snapshot<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoTransactionSnapshot>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch a Cardano transactions snapshot by its hash from the aggregator.

Implementations on Foreign Types§

Source§

impl CardanoTransactionAggregatorRequest for AggregatorHttpClient

Source§

fn get_proof<'life0, 'life1, 'async_trait>( &'life0 self, hashes: &'life1 [String], ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoTransactionsProofs>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

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

Source§

fn get_snapshot<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoTransactionSnapshot>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§