Documentation ¶
Overview ¶
Package config defines the config for the Executor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { // TempRPC is the temporary RPC endpoint for the chain. TempRPC string `yaml:"temp_rpc"` // ChainID is the ID of the chain. ChainID uint32 `yaml:"chain_id"` // OriginAddress is the address of the origin contract. OriginAddress string `yaml:"origin_address"` // DestinationAddress is the address of the destination contract. DestinationAddress string `yaml:"destination_address"` // LightInboxAddress is the address of the light inbox contract. LightInboxAddress string `yaml:"lightinbox_address"` }
ChainConfig defines the config for a specific chain.
type Config ¶
type Config struct { // Chains stores all chain information Chains ChainConfigs `yaml:"chains"` // SummitChainID is the chain ID of the chain that the summit contract is deployed on. SummitChainID uint32 `yaml:"summit_chain_id"` // SummitAddress is the address of the summit contract. SummitAddress string `yaml:"summit_address"` // InboxAddress is the address of the inbox contract. InboxAddress string `yaml:"inbox_address"` // BaseOmnirpcURL is the base url for omnirpc. // The format is "https://omnirpc.url/". Notice the lack of "confirmations" on the URL // in comparison to what `Scribe` uses. BaseOmnirpcURL string `yaml:"base_omnirpc_url"` // UnbondedSigner contains the unbonded signer config for agents // (this is signer used to submit transactions) UnbondedSigner agentsConfig.SignerConfig `yaml:"unbonded_signer"` // ExecuteInterval is the interval at which the executor agent will // check if messages in the database are ready to be executed. ExecuteInterval uint32 `yaml:"execute_interval"` // SetMinimumTimeInterval is the interval at which the executor agent will // check messages to set their minimum times from attestations. SetMinimumTimeInterval uint32 `yaml:"set_minimum_time_interval"` // EmbeddedScribeConfig is the config for the embedded scribe. This only needs to be // included if an embedded Scribe is being used. If a remote Scribe is being used, // this can be left empty. EmbeddedScribeConfig scribeConfig.Config `yaml:"embedded_scribe_config"` // DBPrefix is the prefix for the tables in the database. This is only to be used with mysql. DBPrefix string `yaml:"db_prefix"` }
Config is used to configure an Executor agent.
func DecodeConfig ¶
DecodeConfig parses in a config from a file.
Click to show internal directories.
Click to hide internal directories.