Documentation ¶
Overview ¶
Package guardconfig contains the config yaml object for the relayer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { // Bridge is the rfq bridge contract address. RFQAddress string `yaml:"rfq_address"` // Confirmations is the number of required confirmations. Confirmations uint64 `yaml:"confirmations"` }
ChainConfig represents the configuration for a chain.
type Config ¶
type Config struct { // Chains is a map of chainID -> chain config. Chains map[int]ChainConfig `yaml:"chains"` // OmniRPCURL is the URL of the OmniRPC server. OmniRPCURL string `yaml:"omnirpc_url"` // Database is the database config. Database DatabaseConfig `yaml:"database"` // Signer is the signer config. Signer config.SignerConfig `yaml:"signer"` // SubmitterConfig is the submitter config. SubmitterConfig submitterConfig.Config `yaml:"submitter_config"` // DBSelectorInterval is the interval for the db selector. DBSelectorInterval time.Duration `yaml:"db_selector_interval"` }
Config represents the configuration for the relayer.
func LoadConfig ¶
LoadConfig loads the config from the given path.
func NewGuardConfigFromRelayer ¶
NewGuardConfigFromRelayer creates a new guard config from a relayer config.
func (Config) GetChains ¶
func (c Config) GetChains() map[int]ChainConfig
GetChains returns the chains config.
func (Config) GetDBSelectorInterval ¶
GetDBSelectorInterval returns the interval for the DB selector.
func (Config) GetRFQAddress ¶
GetRFQAddress returns the RFQ address for the given chain.
type DatabaseConfig ¶
type DatabaseConfig struct { Type string `yaml:"type"` DSN string `yaml:"dsn"` // Data Source Name }
DatabaseConfig represents the configuration for the database.
Click to show internal directories.
Click to hide internal directories.