pub trait TransactionsRetriever: Sync + Send {
    // Required methods
    fn get_up_to<'life0, 'life1, 'async_trait>(
        &'life0 self,
        beacon: &'life1 CardanoDbBeacon
    ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_by_hashes<'life0, 'async_trait>(
        &'life0 self,
        hashes: Vec<TransactionHash>
    ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_by_block_ranges<'life0, 'async_trait>(
        &'life0 self,
        block_ranges: Vec<BlockRange>
    ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Transactions retriever

Required Methods§

source

fn get_up_to<'life0, 'life1, 'async_trait>( &'life0 self, beacon: &'life1 CardanoDbBeacon ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get all transactions up to given beacon using chronological order

source

fn get_by_hashes<'life0, 'async_trait>( &'life0 self, hashes: Vec<TransactionHash> ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a list of transactions by hashes using chronological order

source

fn get_by_block_ranges<'life0, 'async_trait>( &'life0 self, block_ranges: Vec<BlockRange> ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get by block ranges

Implementations on Foreign Types§

source§

impl TransactionsRetriever for CardanoTransactionRepository

source§

fn get_up_to<'life0, 'life1, 'async_trait>( &'life0 self, beacon: &'life1 CardanoDbBeacon ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_by_hashes<'life0, 'async_trait>( &'life0 self, hashes: Vec<TransactionHash> ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn get_by_block_ranges<'life0, 'async_trait>( &'life0 self, block_ranges: Vec<BlockRange> ) -> Pin<Box<dyn Future<Output = StdResult<Vec<CardanoTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§