#23009·optimism

op-challenger: support ZK dispute games in CLI commands

Author: pauldowmanCreated Sep 23, 2026Updated Sep 23, 2026
Labelsproofs: ZK

Some op-challenger CLI commands do not yet support ZK games.

Command Status Observed
list-games works lists game type 10
move --attack works attaches challengerBond()
list-claims fails unsupported game type: zk
list-credits fails unsupported game type: zk
game-proposal-outputs fails unsupported game type: zk
resolve fails unsupported game type: zk
resolve-claim fails unsupported game type: zk
create-game builds an invalid tx reverts BadExtraData()
run-trace accepts zk, cannot run it no executor for the type

Root cause

list-claims, list-credits, game-proposal-outputs, resolve and resolve-claim all construct via NewFaultDisputeGameContract (faultdisputegame.go:84), which has no ZK case. The generic NewDisputeGameContract (disputegame.go:52) does — that is why move works.

In scope

resolve — switch resolve.go:15 to DisputeGameContract / NewDisputeGameContract, as move.go:90 does. ResolveTx() is already on that interface.

list-credits — GetBalanceAndDelay and GetWithdrawals are already on ZKDisputeGameContract (zkdisputegame.go:79-81). Only the recipient set differs: challenger, prover and game creator instead of the claim tree.

game-proposal-outputs — needs --superroot-rpc / superroot_atTimestamp, because L2SequenceNum is a super-root timestamp, not a block number. Already broken for super-cannon-kona and super-permissioned for the same reason: they construct fine, then feed a timestamp to OutputAtBlock (game_proposal_outputs.go:174, superfaultdisputegame.go:63). That file has no super-game test coverage. The logic exists in game/zk/actor.go's SuperRootProvider.

create-game — needed by the op-challenger-invalid-proposal CronJob (ethereum-optimism/k8s, every 12h). createGameParams (gamefactory.go:313) has no ZK case; ZK extraData is a 4-byte parentIndex plus a SuperRootProof (ZKDisputeGame.sol:189-205). Reuse the existing encodeSuperRootProof and add --parent-index defaulting to uint32.max, which anchors to the AnchorStateRegistry root and keeps the cron invocation unchanged. Note initBonds(10) is non-zero (0.021 ETH on zk-proofs-1) and is forfeited on each invalid proposal.

ZK game state — nothing exposes claimData() (proposal status, challenger, prover, deadline), which is what confirms a proof landed after a challenge. Needs a ZK branch in list-claims or a new subcommand.

list-games (cosmetic) — prints Claims 0, because GetClaimCount is only called for FaultDisputeGameContract (list_games.go:134).

credits.go, resolve.go, resolve_claim.go and create_game.go have no test files; follow the stub-RPC pattern in move_test.go.

Out of scope

resolve-claim — ZK games have no resolveClaim. Improve the error message only.

run-trace — ZK has no VM trace. The bug is that --run zk/... is accepted: PlayableGameTypes (game_type.go:43) backs the parser, but serverExecutorForGameType (runner/factory.go:61) has no case for it — same for alphabet and fast. Add a separate trace-types list; PlayableGameTypes must keep ZK, since it also backs --game-type, config validation and the monitor.

Source: ethereum-optimism/optimism