Trait fc_api::backend::LogIndexerBackend
source · 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§
sourcefn is_indexed(&self) -> bool
fn is_indexed(&self) -> bool
Indicate whether the log indexing feature is supported.
sourcefn 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,
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.