Documentation ¶
Overview ¶
Package config provides the configuration for the Synapse module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { // ChainID is the chain ID. ChainID int `yaml:"id"` // GasBuffer is the gas buffer to use on top of the requested gas limit. GasBuffer uint64 `yaml:"gas_buffer"` // ExecutionService is the address of the execution service contract. ExecutionService string `yaml:"execution_service"` // Client is the address of the interchain client contract. Client string `yaml:"client"` }
ChainConfig represents the configuration for a chain.
func (ChainConfig) GetGasBuffer ¶ added in v0.5.4
func (c ChainConfig) GetGasBuffer() uint64
GetGasBuffer returns the configured gas buffer for the chain.
type Config ¶
type Config struct { // Chains is a map of chain IDs to execution service contract addresses. Chains []ChainConfig `yaml:"chains"` // OmnirpcURL is the URL of the Omni RPC. OmnirpcURL string `yaml:"omnirpc_url"` // Database is the database config. Database DatabaseConfig `yaml:"database"` // Signer is the signer config. Signer config.SignerConfig `yaml:"signer"` // Submitter is the submitter config. SubmitterConfig submitterConfig.Config `yaml:"submitter_config"` }
Config is the config for the Synapse module.
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.