openzeppelin_monitor::bootstrap

Function process_block

Source
pub async fn process_block<T>(
    client: &T,
    network: &Network,
    block: &BlockType,
    applicable_monitors: &[Monitor],
    contract_specs: Option<&[(String, ContractSpec)]>,
    filter_service: &FilterService,
    shutdown_rx: &mut Receiver<bool>,
) -> Option<Vec<MonitorMatch>>
Expand description

Processes a single block for all applicable monitors.

ยงArguments

  • client - The client to use to process the block
  • network - The network the block belongs to
  • block - The block to process
  • applicable_monitors - List of monitors that apply to this network
  • filter_service - Service for filtering blockchain data
  • shutdown_rx - Receiver for shutdown signals