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>>where
T: BlockChainClient + BlockFilterFactory<T>,Expand description
Processes a single block for all applicable monitors.
ยงArguments
client- The client to use to process the blocknetwork- The network the block belongs toblock- The block to processapplicable_monitors- List of monitors that apply to this networkfilter_service- Service for filtering blockchain datashutdown_rx- Receiver for shutdown signals