Expand description
Bootstrap module for initializing services and creating handlers.
This module provides functions to initialize the necessary services and create handlers for processing blocks and triggers. It also includes helper functions for filtering and processing monitors and networks.
§Services
FilterService
: Handles filtering of blockchain dataTriggerExecutionService
: Manages trigger executionNotificationService
: Handles notifications
§Handlers
create_block_handler
: Creates a block handler function that processes new blocks from the blockchaincreate_trigger_handler
: Creates a trigger handler function that processes trigger events from the block processing pipeline
Functions§
- create_
block_ handler - Creates a block handler function that processes new blocks from the blockchain.
- create_
trigger_ handler - Creates a trigger handler function that processes trigger events from the block processing pipeline.
- get_
contract_ specs - Get contract specs for all applicable monitors
- has_
active_ monitors - Checks if a network has any active monitors.
- initialize_
services - Initializes all required services for the blockchain monitor.
- process_
block - Processes a single block for all applicable monitors.
Type Aliases§
- Result
- Type alias for handling ServiceResult