hopr_chain_indexer::traits

Trait ChainLogHandler

Source
pub trait ChainLogHandler {
    // Required methods
    fn contract_addresses(&self) -> Vec<Address>;
    fn contract_address_topics(&self, contract: Address) -> Vec<TxHash>;
    fn collect_block_events<'life0, 'async_trait>(
        &'life0 self,
        block_with_logs: BlockWithLogs,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SignificantChainEvent>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn contract_addresses(&self) -> Vec<Address>

Source

fn contract_address_topics(&self, contract: Address) -> Vec<TxHash>

Source

fn collect_block_events<'life0, 'async_trait>( &'life0 self, block_with_logs: BlockWithLogs, ) -> Pin<Box<dyn Future<Output = Result<Vec<SignificantChainEvent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§