Trait chaindexing::EventsIngesterJsonRpc
source · pub trait EventsIngesterJsonRpc: Clone + Sync + Send {
// Required methods
fn get_block_number<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U64, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_logs<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 EthersFilter
) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_block<'life0, 'async_trait>(
&'life0 self,
block_number: U64
) -> Pin<Box<dyn Future<Output = Result<Block<TxHash>, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn get_blocks_by_number<'life0, 'life1, 'async_trait>(
&'life0 self,
logs: &'life1 Vec<Log>
) -> Pin<Box<dyn Future<Output = Result<HashMap<U64, Block<TxHash>>, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Required Methods§
fn get_block_number<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<U64, ProviderError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn get_logs<'life0, 'life1, 'async_trait>( &'life0 self, filter: &'life1 EthersFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, ProviderError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn get_block<'life0, 'async_trait>( &'life0 self, block_number: U64 ) -> Pin<Box<dyn Future<Output = Result<Block<TxHash>, ProviderError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Provided Methods§
fn get_blocks_by_number<'life0, 'life1, 'async_trait>( &'life0 self, logs: &'life1 Vec<Log> ) -> Pin<Box<dyn Future<Output = Result<HashMap<U64, Block<TxHash>>, ProviderError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Object Safety§
This trait is not object safe.