Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultGameWindow is the default maximum time duration in the past // to look for games to monitor. The default value is 11 days, which // is a 4 day resolution buffer plus the 7 day game finalization window. DefaultGameWindow = time.Duration(11 * 24 * time.Hour) // DefaultMonitorInterval is the default interval at which the dispute // monitor will check for new games to monitor. DefaultMonitorInterval = time.Second * 30 )
Variables ¶
View Source
var ( ErrMissingL1EthRPC = errors.New("missing l1 eth rpc url") ErrMissingGameFactoryAddress = errors.New("missing game factory address") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { L1EthRpc string // L1 RPC Url GameFactoryAddress common.Address // Address of the dispute game factory MonitorInterval time.Duration // Frequency to check for new games to monitor. GameWindow time.Duration // Maximum window to look for games to monitor. MetricsConfig opmetrics.CLIConfig PprofConfig oppprof.CLIConfig }
Config is a well typed config that is parsed from the CLI params. It also contains config options for auxiliary services.
Click to show internal directories.
Click to hide internal directories.