Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions op-deployer/pkg/deployer/bootstrap/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,30 @@ var (
EnvVars: deployer.PrefixEnvVar("DISPUTE_GAME_FINALITY_DELAY_SECONDS"),
Value: standard.DisputeGameFinalityDelaySeconds,
}
DisputeMaxGameDepthFlag = &cli.Uint64Flag{
Name: "dispute-max-game-depth",
Usage: "Maximum depth of the dispute game tree (value as string). Defaults to the standard value.",
EnvVars: deployer.PrefixEnvVar("DISPUTE_MAX_GAME_DEPTH"),
Value: standard.DisputeMaxGameDepth,
}
DisputeSplitDepthFlag = &cli.Uint64Flag{
Name: "dispute-split-depth",
Usage: "Depth at which the dispute game tree splits (value as string). Defaults to the standard value.",
EnvVars: deployer.PrefixEnvVar("DISPUTE_SPLIT_DEPTH"),
Value: standard.DisputeSplitDepth,
}
DisputeClockExtensionFlag = &cli.Uint64Flag{
Name: "dispute-clock-extension",
Usage: "Clock extension in seconds for dispute game timing. Defaults to the standard value.",
EnvVars: deployer.PrefixEnvVar("DISPUTE_CLOCK_EXTENSION"),
Value: standard.DisputeClockExtension,
}
DisputeMaxClockDurationFlag = &cli.Uint64Flag{
Name: "dispute-max-clock-duration",
Usage: "Maximum clock duration in seconds for dispute game timing. Defaults to the standard value.",
EnvVars: deployer.PrefixEnvVar("DISPUTE_MAX_CLOCK_DURATION"),
Value: standard.DisputeMaxClockDuration,
}
MIPSVersionFlag = &cli.Uint64Flag{
Name: MIPSVersionFlagName,
Usage: "MIPS version.",
Expand Down Expand Up @@ -159,6 +183,10 @@ var ImplementationsFlags = []cli.Flag{
ChallengePeriodSecondsFlag,
ProofMaturityDelaySecondsFlag,
DisputeGameFinalityDelaySecondsFlag,
DisputeMaxGameDepthFlag,
DisputeSplitDepthFlag,
DisputeClockExtensionFlag,
DisputeMaxClockDurationFlag,
SuperchainConfigProxyFlag,
ProtocolVersionsProxyFlag,
L1ProxyAdminOwnerFlag,
Expand Down
8 changes: 4 additions & 4 deletions op-deployer/pkg/deployer/bootstrap/implementations.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ type ImplementationsConfig struct {
ProofMaturityDelaySeconds uint64 `cli:"proof-maturity-delay-seconds"`
DisputeGameFinalityDelaySeconds uint64 `cli:"dispute-game-finality-delay-seconds"`
DevFeatureBitmap common.Hash `cli:"dev-feature-bitmap"`
FaultGameMaxGameDepth uint64 `cli:"fault-game-max-game-depth"`
FaultGameSplitDepth uint64 `cli:"fault-game-split-depth"`
FaultGameClockExtension uint64 `cli:"fault-game-clock-extension"`
FaultGameMaxClockDuration uint64 `cli:"fault-game-max-clock-duration"`
FaultGameMaxGameDepth uint64 `cli:"dispute-max-game-depth"`
FaultGameSplitDepth uint64 `cli:"dispute-split-depth"`
FaultGameClockExtension uint64 `cli:"dispute-clock-extension"`
FaultGameMaxClockDuration uint64 `cli:"dispute-max-clock-duration"`
SuperchainConfigProxy common.Address `cli:"superchain-config-proxy"`
ProtocolVersionsProxy common.Address `cli:"protocol-versions-proxy"`
L1ProxyAdminOwner common.Address `cli:"l1-proxy-admin-owner"`
Expand Down
3 changes: 1 addition & 2 deletions op-deployer/pkg/deployer/manage/add_game_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ func AddGameTypeCLI(cliCtx *cli.Context) error {

initialBond, err := cliutil.BigIntFlag(cliCtx, InitialBondFlag.Name)
if err != nil {
cfg.InitialBond = initialBond
} else {
return fmt.Errorf("failed to parse initial bond: %w", err)
}
cfg.InitialBond = initialBond

if err := cfg.Check(); err != nil {
return fmt.Errorf("invalid config: %w", err)
Expand Down