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§
sourcefn 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_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
sourcefn 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_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
sourcefn 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,
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