pub trait LogIndexerBackend<Block: BlockT>: Send + Sync {
    // Required methods
    fn is_indexed(&self) -> bool;
    fn filter_logs<'life0, 'async_trait>(
        &'life0 self,
        from_block: u64,
        to_block: u64,
        addresses: Vec<H160>,
        topics: Vec<Vec<Option<H256>>>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FilteredLog<Block>>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The log indexer backend interface.

Required Methods§

source

fn is_indexed(&self) -> bool

Indicate whether the log indexing feature is supported.

source

fn filter_logs<'life0, 'async_trait>( &'life0 self, from_block: u64, to_block: u64, addresses: Vec<H160>, topics: Vec<Vec<Option<H256>>> ) -> Pin<Box<dyn Future<Output = Result<Vec<FilteredLog<Block>>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Filter the logs by the parameters.

Implementors§