-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add
--json
flag to checkStorageLayout's forge inspect
command (
#795) * WIP: Fix checkStorageLayout script dumping logs to see what the JSON is * Add --json flag * Update checkStorageLayout.sh
- Loading branch information
1 parent
e23fab1
commit a51d56f
Showing
7 changed files
with
1,071 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,166 @@ | ||
{ | ||
"storage": [ | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "_initialized", | ||
"offset": 0, | ||
"slot": "0" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "_initializing", | ||
"offset": 1, | ||
"slot": "0" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "1" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "51" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "_status", | ||
"offset": 0, | ||
"slot": "101" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "102" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "151" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "_HASHED_NAME", | ||
"offset": 0, | ||
"slot": "1151" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "_HASHED_VERSION", | ||
"offset": 0, | ||
"slot": "1152" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "1153" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "crossDomainAdmin", | ||
"offset": 0, | ||
"slot": "2153" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "withdrawalRecipient", | ||
"offset": 0, | ||
"slot": "2154" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "DEPRECATED_wrappedNativeToken", | ||
"offset": 0, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "DEPRECATED_depositQuoteTimeBuffer", | ||
"offset": 20, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "numberOfDeposits", | ||
"offset": 24, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "pausedFills", | ||
"offset": 28, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "pausedDeposits", | ||
"offset": 29, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "rootBundles", | ||
"offset": 0, | ||
"slot": "2156" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "enabledDepositRoutes", | ||
"offset": 0, | ||
"slot": "2157" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "DEPRECATED_relayFills", | ||
"offset": 0, | ||
"slot": "2158" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "DEPRECATED_fillCounter", | ||
"offset": 0, | ||
"slot": "2159" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "DEPRECATED_depositCounter", | ||
"offset": 0, | ||
"slot": "2160" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "DEPRECATED_refundsRequested", | ||
"offset": 0, | ||
"slot": "2161" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "fillStatuses", | ||
"offset": 0, | ||
"slot": "2162" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "2163" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "l2GatewayRouter", | ||
"offset": 0, | ||
"slot": "3162" | ||
}, | ||
{ | ||
"contract": "contracts/AlephZero_SpokePool.sol:AlephZero_SpokePool", | ||
"label": "whitelistedTokens", | ||
"offset": 0, | ||
"slot": "3163" | ||
} | ||
] | ||
} |
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,166 @@ | ||
{ | ||
"storage": [ | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "_initialized", | ||
"offset": 0, | ||
"slot": "0" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "_initializing", | ||
"offset": 1, | ||
"slot": "0" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "1" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "51" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "_status", | ||
"offset": 0, | ||
"slot": "101" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "102" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "151" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "_HASHED_NAME", | ||
"offset": 0, | ||
"slot": "1151" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "_HASHED_VERSION", | ||
"offset": 0, | ||
"slot": "1152" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "1153" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "crossDomainAdmin", | ||
"offset": 0, | ||
"slot": "2153" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "withdrawalRecipient", | ||
"offset": 0, | ||
"slot": "2154" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "DEPRECATED_wrappedNativeToken", | ||
"offset": 0, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "DEPRECATED_depositQuoteTimeBuffer", | ||
"offset": 20, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "numberOfDeposits", | ||
"offset": 24, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "pausedFills", | ||
"offset": 28, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "pausedDeposits", | ||
"offset": 29, | ||
"slot": "2155" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "rootBundles", | ||
"offset": 0, | ||
"slot": "2156" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "enabledDepositRoutes", | ||
"offset": 0, | ||
"slot": "2157" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "DEPRECATED_relayFills", | ||
"offset": 0, | ||
"slot": "2158" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "DEPRECATED_fillCounter", | ||
"offset": 0, | ||
"slot": "2159" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "DEPRECATED_depositCounter", | ||
"offset": 0, | ||
"slot": "2160" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "DEPRECATED_refundsRequested", | ||
"offset": 0, | ||
"slot": "2161" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "fillStatuses", | ||
"offset": 0, | ||
"slot": "2162" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "2163" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "l2PolygonZkEVMBridge", | ||
"offset": 0, | ||
"slot": "3162" | ||
}, | ||
{ | ||
"contract": "contracts/PolygonZkEVM_SpokePool.sol:PolygonZkEVM_SpokePool", | ||
"label": "adminCallValidated", | ||
"offset": 20, | ||
"slot": "3162" | ||
} | ||
] | ||
} |
Oops, something went wrong.