-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
feat: op stack fault proofs #1994
Conversation
🦋 Changeset detectedLatest commit: bd36515 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1994 +/- ##
==========================================
- Coverage 99.77% 97.39% -2.39%
==========================================
Files 580 580
Lines 50921 52743 +1822
Branches 2530 2325 -205
==========================================
+ Hits 50808 51369 +561
- Misses 100 1347 +1247
- Partials 13 27 +14 ☔ View full report in Codecov by Sentry. |
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.
Looking great!
test('default', async () => { | ||
await reset(sepoliaClient, { |
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.
TIL reset this is useful
* Strategy for extracting a dispute game. | ||
* | ||
* - `latest` - Returns the latest dispute game. | ||
* - `random` - Returns a random dispute game. |
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.
* - `random` - Returns a random dispute game. | |
* - `random` - Returns a random dispute game. This helps prevent DDOS from someone submitting invalid games |
Not obvious to most people "why"?
*/ | ||
limit?: number | undefined | ||
/** | ||
* Strategy for extracting a dispute game. |
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.
* Strategy for extracting a dispute game. | |
* Strategy for extracting a dispute game. | |
* @default latest |
nit
| ErrorType | ||
|
||
/** | ||
* Retrieves a valid dispute game on an L2 that occurred after a provided L2 block number. |
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.
* Retrieves a valid dispute game on an L2 that occurred after a provided L2 block number. | |
* Retrieves a valid [dispute game](https://specs.optimism.io/experimental/fault-proof/stage-one/dispute-game-interface.html) on an L2 that occurred after a provided L2 block number. |
const game = (() => { | ||
if (strategy === 'random') | ||
return games[Math.floor(Math.random() * games.length)] | ||
return games[0] | ||
})() |
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.
This is a big middle finger to ternaries lol
author Will Cory <willcory@Wills-MacBook-Pro.local> 1709088652 -0800 committer Will Cory <willcory@Wills-MacBook-Pro.local> 1710517178 -0700 Add portalVersion action to viem/opstack add test client for tevm matching anvil client pnpm i @tevm/server upgrade to versions of @tevm/opstack that don't have deps related bugs REVERTME temporary hack to make foundry work on my machine add the test and portal version action update based on comments add test client, rename createL1Client, and move to opstack test utils bun i @tevm/opstack add test client for tevm matching anvil client pnpm i @tevm/server upgrade to versions of @tevm/opstack that don't have deps related bugs REVERTME temporary hack to make foundry work on my machine add the test and portal version action feat: Add forwards compatability to getWithdrawalStatus first version of things feat: Update waitForNextL2Output fix broken lint update getTimeToFinalize add a comment complete and squash
PR-Codex overview
This PR focuses on adding support for Fault Proofs on OP Stack.
Detailed summary
getGame
,getGames
,getTimeToNextGame
,waitForNextGame