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, workers, and plugins.

§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
  • initialize_plugins: Functions for initializing the plugin worker pool

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_plugin_pool
Initialize the plugin worker pool if plugins are configured.
initialize_relayer
initialize_relayers
initialize_repositories
Initializes repositories based on the server configuration
initialize_token_swap_workers
Initializes swap workers for Solana and Stellar relayers This function creates and registers workers for relayers that have swap enabled and cron schedule set.
initialize_workers
precompile_plugins
Precompile all configured plugins.
process_config_file
Process a complete configuration file by initializing all repositories.
shutdown_plugin_pool
Shutdown the plugin pool gracefully.