Documentation ¶
Overview ¶
Package config contains the parsers for the config files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetConfig ¶
AssetConfig represents the configuration for each asset.
type ChainConfig ¶
type ChainConfig struct { ChainID uint32 `yaml:"chainId"` RPCURL string `yaml:"rpcUrl"` FastBridgeAddress string `yaml:"fastBridgeContract"` FastBridgeBlockDeployed uint64 `yaml:"fastBridgeBlockDeployed"` PollInterval int `yaml:"pollInterval"` MaxGetLogsRange uint64 `yaml:"maxGetLogsRange"` Confirmations uint64 `yaml:"confirmations"` }
ChainConfig represents the configuration for each chain.
type Config ¶
type Config struct { Chains map[uint32]ChainConfig `yaml:"chains"` Database DatabaseConfig `yaml:"database"` Assets []AssetConfig `yaml:"assets"` RelayerAddress string `yaml:"relayer_address"` // (this is signer used to submit transactions) Signer ethConfig.SignerConfig `yaml:"unbonded_signer"` SubmitterConfig submitterConfig.Config `yaml:"submitter_config"` OmnirpcURL string `yaml:"omnirpc_url"` MaxQueueSize int `yaml:"max_queue_size"` Deadline int64 `yaml:"deadline"` QueuePollInterval int `yaml:"queue_poll_interval"` SkipMigrations bool `yaml:"skip_migrations"` RFQURL string `yaml:"rfq_url"` }
Config represents the application's configuration structure.
func DecodeConfig ¶
DecodeConfig parses in a config from a file.
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.