Module bootstrap

Source
Expand description

Initialization routines for the relayer system

This module contains functions and utilities for initializing various components of the relayer system, including relayers, configuration, application state, and workers.

§Submodules

  • initialize_relayers: Functions for initializing relayers
  • config_processor: Functions for processing configuration files
  • initialize_app_state: Functions for initializing application state
  • initialize_workers: Functions for initializing background workers

Structs§

HasherRng
Re-exports from [tower::util] A [Rng] implementation that uses a Hasher to generate the random values. The implementation uses an internal counter to pass to the hasher for each iteration of [Rng::next_u64].
RepositoryCollection

Functions§

get_relayer_ids_to_initialize
Collects relayer IDs that need initialization
initialize_app_state
Initializes application state
initialize_relayer
initialize_relayers
initialize_repositories
Initializes repositories based on the server configuration
initialize_solana_swap_workers
Initializes the Solana swap workers This function creates and registers workers for Solana relayers that have swap enabled and cron schedule set.
initialize_workers
process_config_file
Process a complete configuration file by initializing all repositories.