-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contract storage layout verification improvements (#2129)
* divide generate and verify tasks * fix state var validation, using only required files * fix tests * add flattening of nested structs * add storage parser by batches * refactor structs flattening * fix build * remove contract to address rendering * add dependency imports * fix contracts references * use solidity-parser * migrate previous validations * add dependencies parsing * add standalone storage validations * update dump * add contract for address replacement * add import directives with correct aliases * revert synthetix storage dump * fix imports duplication * add new dump format * update tests * refactor dump to json * add enum compatibility * fix array values on dump * add storage slot sizes * add storage slot sizes * remove storage size * update yarn.lock * fix struct size * refactor tasks * add layout print * Add simple validations * add storage mutation validations * add variable modifications checks * add verification errors * fix CI * update and execute verification script * fix dependencies lint errors * fix lint errors * remove empty dumps * fix yarn.lock * fix yarn dedupe * add comments * add comments * fix storage dump diff check * build is working much better still some issues tho * successful build * fix * fix subtask spec * fix yarn lock * fix * fixem * try storage dump ci work * move hre back * fix check test * update commands * build everything, not just ts * more fixes * fix local quirk * fix * ignore whitespace * add check compile step * prettier got in the way * fix more * add copy storage job to ensure its in sync before commit * small fix to the copy storage pre commit hook * use git merge base --------- Co-authored-by: Daniel Beal <[email protected]> Co-authored-by: dbeal <[email protected]>
- Loading branch information
1 parent
6a93c07
commit 0bb938d
Showing
101 changed files
with
11,720 additions
and
6,267 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ typechain-types | |
lerna-debug.log | ||
docs/ | ||
junit | ||
storage.new.dump.json | ||
|
||
# Yarn v3 | ||
.pnp.* | ||
|
This file contains 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
This file contains 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
Binary file added
BIN
+2.56 KB
.yarn/cache/@types-lodash.memoize-npm-4.1.9-57da73777b-d11efe6049.zip
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"contracts/ArbGasPriceOracle.sol:ArbGasPriceOracle": { | ||
"name": "ArbGasPriceOracle", | ||
"kind": "contract", | ||
"structs": { | ||
"RuntimeParams": [ | ||
{ | ||
"type": "uint256", | ||
"name": "l1SettleGasUnits", | ||
"size": 32, | ||
"slot": "0", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "l2SettleGasUnits", | ||
"size": 32, | ||
"slot": "1", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "l1FlagGasUnits", | ||
"size": 32, | ||
"slot": "2", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "l2FlagGasUnits", | ||
"size": 32, | ||
"slot": "3", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "l1LiquidateGasUnits", | ||
"size": 32, | ||
"slot": "4", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "l2LiquidateGasUnits", | ||
"size": 32, | ||
"slot": "5", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "numberOfUpdatedFeeds", | ||
"size": 32, | ||
"slot": "6", | ||
"offset": 0 | ||
}, | ||
{ | ||
"type": "uint256", | ||
"name": "executionKind", | ||
"size": 32, | ||
"slot": "7", | ||
"offset": 0 | ||
} | ||
] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.