op-challenger: Challenge invalid ZK games#18442
Merged
Conversation
1b9da49 to
519acbc
Compare
ea4d839 to
195ad4a
Compare
519acbc to
2e8a19a
Compare
195ad4a to
378b340
Compare
2e8a19a to
56c5831
Compare
378b340 to
3d62d52
Compare
3d62d52 to
0447f09
Compare
Inphi
approved these changes
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds initial support for the optimistic ZK game type to op-challenger. Currently it only challenges games but doesn't resolve them or claim bonds back.
Notably it also doesn't check the proposal was safe according to the safe head db. It will still challenge if the proposed root doesn't match the canonical one, but there may be proposals made too early that could be successfully challenged but are not. While they could be challenged, since the proposal is correct there's no reason for the challenger to do so and avoids needing the safe head db.
Tests
Added unit tests. Acceptance tests can't be added until we can actually deploy the optimistic ZK game contracts.
Additional context
Builds on #18441
Metadata
#18433