Trait fc_db::BackendReader

source ·
pub trait BackendReader<Block: BlockT> {
    // Required methods
    fn block_hash<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ethereum_block_hash: &'life1 H256
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Block::Hash>>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn transaction_metadata<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ethereum_transaction_hash: &'life1 H256
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionMetadata<Block>>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: '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;
    fn is_indexed(&self) -> bool;
}

Required Methods§

source

fn block_hash<'life0, 'life1, 'async_trait>( &'life0 self, ethereum_block_hash: &'life1 H256 ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Block::Hash>>, String>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn transaction_metadata<'life0, 'life1, 'async_trait>( &'life0 self, ethereum_transaction_hash: &'life1 H256 ) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionMetadata<Block>>, String>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

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,

source

fn is_indexed(&self) -> bool

Implementors§

source§

impl<Block: BlockT> BackendReader<Block> for Backend<Block>