Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPollInterval = time.Second * 12 DefaultCannonSnapshotFreq = uint(1_000_000_000) DefaultCannonInfoFreq = uint(10_000_000) DefaultAsteriscSnapshotFreq = uint(1_000_000_000) DefaultAsteriscInfoFreq = uint(10_000_000) // DefaultGameWindow is the default maximum time duration in the past // that the challenger will look for games to progress. // The default value is 28 days. The worst case duration for a game is 16 days // (due to clock extension), plus 7 days WETH withdrawal delay leaving a 5 day // buffer to monitor games to ensure bonds are claimed. DefaultGameWindow = 28 * 24 * time.Hour DefaultMaxPendingTx = 10 )
Variables ¶
View Source
var ( ErrMissingTraceType = errors.New("no supported trace types specified") ErrMissingDatadir = errors.New("missing datadir") ErrMaxConcurrencyZero = errors.New("max concurrency must not be 0") ErrMissingL2Rpc = errors.New("missing L2 rpc url") ErrMissingCannonAbsolutePreState = errors.New("missing cannon absolute pre-state") ErrMissingL1EthRPC = errors.New("missing l1 eth rpc url") ErrMissingL1Beacon = errors.New("missing l1 beacon url") ErrMissingGameFactoryAddress = errors.New("missing game factory address") ErrMissingCannonSnapshotFreq = errors.New("missing cannon snapshot freq") ErrMissingCannonInfoFreq = errors.New("missing cannon info freq") ErrMissingDepsetConfig = errors.New("missing network or depset config path") ErrMissingRollupRpc = errors.New("missing rollup rpc url") ErrMissingSupervisorRpc = errors.New("missing supervisor rpc url") ErrMissingAsteriscAbsolutePreState = errors.New("missing asterisc absolute pre-state") ErrMissingAsteriscSnapshotFreq = errors.New("missing asterisc snapshot freq") ErrMissingAsteriscInfoFreq = errors.New("missing asterisc info freq") ErrMissingAsteriscKonaAbsolutePreState = errors.New("missing asterisc kona absolute pre-state") ErrMissingAsteriscKonaSnapshotFreq = errors.New("missing asterisc kona snapshot freq") ErrMissingAsteriscKonaInfoFreq = errors.New("missing asterisc kona info freq") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { L1EthRpc string // L1 RPC Url L1Beacon string // L1 Beacon API Url GameFactoryAddress common.Address // Address of the dispute game factory GameAllowlist []common.Address // Allowlist of fault game addresses GameWindow time.Duration // Maximum time duration to look for games to progress Datadir string // Data Directory MaxConcurrency uint // Maximum number of threads to use when progressing games PollInterval time.Duration // Polling interval for latest-block subscription when using an HTTP RPC provider AllowInvalidPrestate bool // Whether to allow responding to games where the prestate does not match AdditionalBondClaimants []common.Address // List of addresses to claim bonds for in addition to the tx manager sender SelectiveClaimResolution bool // Whether to only resolve claims for the claimants in AdditionalBondClaimants union [TxSender.From()] TraceTypes []types.TraceType // Type of traces supported RollupRpc string // L2 Rollup RPC Url SupervisorRPC string // L2 supervisor RPC URL L2Rpcs []string // L2 RPC Url // Specific to the cannon trace provider Cannon vm.Config CannonAbsolutePreState string // File to load the absolute pre-state for Cannon traces from CannonAbsolutePreStateBaseURL *url.URL // Base URL to retrieve absolute pre-states for Cannon traces from // Specific to the asterisc trace provider Asterisc vm.Config AsteriscAbsolutePreState string // File to load the absolute pre-state for Asterisc traces from AsteriscAbsolutePreStateBaseURL *url.URL // Base URL to retrieve absolute pre-states for Asterisc traces from AsteriscKona vm.Config AsteriscKonaAbsolutePreState string // File to load the absolute pre-state for AsteriscKona traces from AsteriscKonaAbsolutePreStateBaseURL *url.URL // Base URL to retrieve absolute pre-states for AsteriscKona traces from MaxPendingTx uint64 // Maximum number of pending transactions (0 == no limit) TxMgrConfig txmgr.CLIConfig MetricsConfig opmetrics.CLIConfig PprofConfig oppprof.CLIConfig }
Config is a well typed config that is parsed from the CLI params. This also contains config options for auxiliary services. It is used to initialize the challenger.
func NewInteropConfig ¶ added in v1.13.1
Click to show internal directories.
Click to hide internal directories.