pub trait TransactionsRetriever: Sync + Send {
    // Required methods
    fn get_by_hashes<'life0, 'async_trait>(
        &'life0 self,
        hashes: Vec<TransactionHash>,
        up_to: BlockNumber,
    ) -> 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_by_hashes<'life0, 'async_trait>( &'life0 self, hashes: Vec<TransactionHash>, up_to: BlockNumber, ) -> 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_by_hashes<'life0, 'async_trait>( &'life0 self, hashes: Vec<TransactionHash>, up_to: BlockNumber, ) -> 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§