feat(ctb): OutputBisectionGame test refactor + fixes#8346
Conversation
|
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
WalkthroughThe updates across various Solidity contracts and libraries involve renaming variables, enhancing comments with TODO notes, refining function logic, and adding new contracts and functions. The changes reflect a focus on improving the dispute resolution logic, particularly around output bisection games, with attention to handling edge cases and improving code clarity and structure. Changes
TipsChat with CodeRabbit Bot (
|
5742b63 to
c03c451
Compare
c03c451 to
57ee9eb
Compare
57ee9eb to
816653e
Compare
eeac37f to
7fb1ce7
Compare
18ae4c5 to
04352c2
Compare
packages/contracts-bedrock/test/actors/OutputBisectionActors.sol
Outdated
Show resolved
Hide resolved
8027f8c to
3203a93
Compare
610ec16 to
768b85c
Compare
9d11a3d to
eed6a56
Compare
160f094 to
475c02f
Compare
ec771af to
ad048af
Compare
475c02f to
5219f71
Compare
ad048af to
27f6d8e
Compare
5219f71 to
0c6260a
Compare
8c67edb to
3eb23f3
Compare
6a20e8d to
263c041
Compare
3eb23f3 to
34f00b4
Compare
d37b1c3 to
833e355
Compare
34f00b4 to
43f4ef7
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #8346 +/- ##
===========================================
- Coverage 34.69% 25.75% -8.94%
===========================================
Files 167 119 -48
Lines 7146 4873 -2273
Branches 1207 1058 -149
===========================================
- Hits 2479 1255 -1224
+ Misses 4516 3513 -1003
+ Partials 151 105 -46
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f9655d0 to
173efbe
Compare
173efbe to
cdca6b7
Compare
Inphi
left a comment
There was a problem hiding this comment.
Looks good. There are a lotta TODOs that I assume will be handled in another PR.

Overview
Implements a new set of actors for the
OutputBisectionGame, which support the new semantics of the game, as well as implements some fixes / improvements to the rough draft.Notes
GameSolver, which is an observe-only entity that will inform actors of suggested moves when asked. This decouples the handling of the solving logic from the actors, allowing for the solving logic to be swapped out easily.GamePlayeridea, was too clunky and the abstractions didn't lend well towards the new semantics or refactors.Positionlocalization for thestepfunction.[ ] Add several actors derived from theGameSolver[ ] Add exhaustive tests over the full game state using the actors.Note: Merging this early to get fixes in for the challenger implementing
op-e2etests, following up with actors on a new PR.