Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Required Flags L1EthRpcFlag = &cli.StringFlag{ Name: "l1-eth-rpc", Usage: "HTTP provider URL for L1.", EnvVars: prefixEnvVars("L1_ETH_RPC"), } FactoryAddressFlag = &cli.StringFlag{ Name: "game-factory-address", Usage: "Address of the fault game factory contract.", EnvVars: prefixEnvVars("GAME_FACTORY_ADDRESS"), } // Optional Flags HonestActorsFlag = &cli.StringSliceFlag{ Name: "honest-actors", Usage: "List of honest actors that are monitored for any claims that are resolved against them.", EnvVars: prefixEnvVars("HONEST_ACTORS"), } RollupRpcFlag = &cli.StringFlag{ Name: "rollup-rpc", Usage: "HTTP provider URL for the rollup node", EnvVars: prefixEnvVars("ROLLUP_RPC"), } MonitorIntervalFlag = &cli.DurationFlag{ Name: "monitor-interval", Usage: "The interval at which the dispute monitor will check for new games to monitor.", EnvVars: prefixEnvVars("MONITOR_INTERVAL"), Value: config.DefaultMonitorInterval, } GameWindowFlag = &cli.DurationFlag{ Name: "game-window", Usage: "The time window which the monitor will consider games to report on. " + "This should include a bond claim buffer for games outside the maximum game duration.", EnvVars: prefixEnvVars("GAME_WINDOW"), Value: config.DefaultGameWindow, } )
View Source
var Flags []cli.Flag
Flags contains the list of configuration options available to the binary.
Functions ¶
func CheckRequired ¶
func CheckRequired(ctx *cli.Context) error
func NewConfigFromCLI ¶
NewConfigFromCLI parses the Config from the provided flags or environment variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.