Commit 32d2b05
opcm-standard-validator: Re-enable tests for v2 contracts, validate proposer (#17955)
* Add proposer field to StandarValidator.ValidationInput
* Update deploy to save PDG address depending on v2 feature flag
* Start working on tests
* Fix test that mocks a prestate value
* Move helpers into shared library
* Cut unnecessary bytes utils
* Update StandardValidator to check proposer
* Start updating tests to mock gameArgs
* Add game arg mocking helpers to DisputeGames.sol
* Add mock helpers for remaining game args
* Delete unused library
* Fix new asr and weth mock helpers
* Reorganize gameArg offsets
* Add tests for invalid weth, asr addresses
* Add tests for invalid game args
* Update expected dispute game version
* Fix stack-too-deep error
* Inject correct gametype for v2 games
* Fix handling of errors
* Pull game implementation handling into a helper method
* Skip gameType tests for v2 contracts
* Cut unused event
* Fix proposer value in upgrade tests
* Remove unused import
* Bump contract versions
* Run pre-pr
* Sticter testing: pull challenger, proposer values before upgrading
* Revert change to comment
* Make var naming more consistent
* Update semver-lock
* Avoid name conflict.
* Major version bump since ValidationInput changed.
---------
Co-authored-by: Adrian Sutton <[email protected]>1 parent 8c18391 commit 32d2b05
File tree
11 files changed
+605
-199
lines changed- packages/contracts-bedrock
- interfaces/L1
- scripts/deploy
- snapshots
- abi
- src/L1
- test
- L1
- setup
11 files changed
+605
-199
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
| |||
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
360 | | - | |
361 | 364 | | |
362 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
363 | 369 | | |
364 | 370 | | |
365 | 371 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
850 | 855 | | |
851 | 856 | | |
852 | 857 | | |
| |||
893 | 898 | | |
894 | 899 | | |
895 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
896 | 906 | | |
897 | 907 | | |
898 | 908 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
357 | 362 | | |
358 | 363 | | |
359 | 364 | | |
| |||
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
403 | 413 | | |
404 | 414 | | |
405 | 415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2153 | 2153 | | |
2154 | 2154 | | |
2155 | 2155 | | |
2156 | | - | |
| 2156 | + | |
2157 | 2157 | | |
2158 | | - | |
| 2158 | + | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | 2161 | | |
| |||
0 commit comments