Skip to content

Commit

Permalink
Updated test.bash to include arb timelock
Browse files Browse the repository at this point in the history
  • Loading branch information
yahgwai committed Oct 3, 2024
1 parent 717b0e7 commit bb72192
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
13 changes: 13 additions & 0 deletions test/storage/ArbitrumTimelock
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
| Name | Type | Slot | Offset | Bytes | Contract |
|---------------|--------------------------------------------------------------|------|--------|-------|-------------------------------------------|
| _initialized | uint8 | 0 | 0 | 1 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| _initializing | bool | 0 | 1 | 1 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| __gap | uint256[50] | 1 | 0 | 1600 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| __gap | uint256[50] | 51 | 0 | 1600 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| _roles | mapping(bytes32 => struct AccessControlUpgradeable.RoleData) | 101 | 0 | 32 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| __gap | uint256[49] | 102 | 0 | 1568 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| _timestamps | mapping(bytes32 => uint256) | 151 | 0 | 32 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| _minDelay | uint256 | 152 | 0 | 32 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| __gap | uint256[48] | 153 | 0 | 1536 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| _arbMinDelay | uint256 | 201 | 0 | 32 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
| __gap | uint256[49] | 202 | 0 | 1568 | src/ArbitrumTimelock.sol:ArbitrumTimelock |
25 changes: 12 additions & 13 deletions test/storage/SecurityCouncilManager
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
| __gap | uint256[50] | 51 | 0 | 1600 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| _roles | mapping(bytes32 => struct AccessControlUpgradeable.RoleData) | 101 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| __gap | uint256[49] | 102 | 0 | 1568 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| _HASHED_NAME | bytes32 | 151 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| _HASHED_VERSION | bytes32 | 152 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| __gap | uint256[50] | 153 | 0 | 1600 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| firstCohort | address[] | 203 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| secondCohort | address[] | 204 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| l2CoreGovTimelock | address payable | 205 | 0 | 20 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| securityCouncils | struct SecurityCouncilData[] | 206 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| router | contract UpgradeExecRouteBuilder | 207 | 0 | 20 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| updateNonce | uint256 | 208 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| cohortSize | uint256 | 209 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| lastRotated | mapping(address => uint256) | 210 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| minRotationPeriod | uint256 | 211 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| __gap | uint256[43] | 212 | 0 | 1376 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| firstCohort | address[] | 151 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| secondCohort | address[] | 152 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| l2CoreGovTimelock | address payable | 153 | 0 | 20 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| securityCouncils | struct SecurityCouncilData[] | 154 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| router | contract UpgradeExecRouteBuilder | 155 | 0 | 20 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| updateNonce | uint256 | 156 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| cohortSize | uint256 | 157 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| lastRotated | mapping(address => uint256) | 158 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| minRotationPeriod | uint256 | 159 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| NAME_HASH | bytes32 | 160 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| VERSION_HASH | bytes32 | 161 | 0 | 32 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
| __gap | uint256[43] | 162 | 0 | 1376 | src/security-council-mgmt/SecurityCouncilManager.sol:SecurityCouncilManager |
2 changes: 1 addition & 1 deletion test/storage/test.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
output_dir="./test/storage"
for CONTRACTNAME in SecurityCouncilManager L1ArbitrumTimelock L2ArbitrumTimelock L2ArbitrumGovernor L2ArbitrumToken L1ArbitrumToken FixedDelegateErc20Wallet UpgradeExecutor SecurityCouncilMemberElectionGovernor SecurityCouncilMemberRemovalGovernor SecurityCouncilNomineeElectionGovernor
for CONTRACTNAME in SecurityCouncilManager L1ArbitrumTimelock ArbitrumTimelock L2ArbitrumGovernor L2ArbitrumToken L1ArbitrumToken FixedDelegateErc20Wallet UpgradeExecutor SecurityCouncilMemberElectionGovernor SecurityCouncilMemberRemovalGovernor SecurityCouncilNomineeElectionGovernor
do
echo "Checking storage change of $CONTRACTNAME"
[ -f "$output_dir/$CONTRACTNAME" ] && mv "$output_dir/$CONTRACTNAME" "$output_dir/$CONTRACTNAME-old"
Expand Down

0 comments on commit bb72192

Please sign in to comment.