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 relayersconfig_processor: Functions for processing configuration filesinitialize_app_state: Functions for initializing application stateinitialize_workers: Functions for initializing background workersinitialize_plugins: Functions for initializing the plugin worker pool
Structs§
- Hasher
Rng - Re-exports from [
tower::util] A [Rng] implementation that uses aHasherto generate the random values. The implementation uses an internal counter to pass to the hasher for each iteration of [Rng::next_u64]. - Repository
Collection
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.