-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: add op-succint contracts #18277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Outdated
Show resolved
Hide resolved
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #18277 +/- ##
===========================================
+ Coverage 76.25% 79.76% +3.51%
===========================================
Files 179 126 -53
Lines 10732 6895 -3837
===========================================
- Hits 8184 5500 -2684
+ Misses 2404 1395 -1009
+ Partials 144 0 -144
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Inphi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For licensing reasons, the smart contracts should contain attribution to Succinct Labs in a way that's more explicit than the natspec authorship. I suggest something like:
// Derived from https://github.com/succinctlabs/op-succinct (at <commit-hash>)
Or simply copy paste the contents of their MIT LICENSE near the top of these contracts.
agreed! Will just add to the game contract since we will be removing the access manager in a follow up |
packages/contracts-bedrock/src/dispute/zk/OPSuccinctFaultDisputeGame.sol
Show resolved
Hide resolved
ajsutton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
| excludes[j++] = "src/dispute/SuperFaultDisputeGame.sol"; | ||
| excludes[j++] = "src/dispute/PermissionedDisputeGame.sol"; | ||
| excludes[j++] = "src/dispute/SuperPermissionedDisputeGame.sol"; | ||
| excludes[j++] = "src/dispute/zk/OPSuccinctFaultDisputeGame.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add an issue to fix the contracts and remove this exception again. Totally fine to have it for now since we're importing directly but given these are new contracts we're importing we should try to make them follow best practice if we can and I don't think we identified any initializable work previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this is a good suggestion and i can take a look into why this was the case. i wonder if it was from using blueprints previously and now we don't need do this anymore
Description
The main changes include the addition of a new access control contract, new error and type definitions specific to the new OP_SUCCINCT game type, an interface for an external verifier, and the OPSuccinctFaultDisputeGame.
These changes lay the groundwork to support ZK proofs as an option for the OP Stack. We will begin integrating these contracts and their infrastructure into the monorepo. This is the first PR in a series of PRs to integrate Zk proofs into our onchain and offchain components.
Tests
In a follow-up up PR
Additional context
Design Doc: https://github.com/ethereum-optimism/design-docs/pull/356/files
Metadata