Skip to content

Commit

Permalink
chore: storage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhuynh3103 committed Jan 17, 2024
1 parent bea17e5 commit 8186246
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions logs/contract-code-sizes.log
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@
| MockBridgeReward | 6.77 | 17.806 |
| MockBridgeSlash | 1.447 | 23.129 |
| MockBridgeTracking | 1.969 | 22.607 |
| MockERC20 | 2.441 | 22.135 |
| MockGatewayForTracking | 1.662 | 22.914 |
| MockRoninBridgeManager | 24.579 | -0.003 |
| MockRoninGatewayV3Extended | 20.038 | 4.538 |
| MockTUint256Slot | 2.729 | 21.847 |
| MockValidatorContract_OnlyTiming_ForHardhatTest | 1.15 | 23.426 |
| MockValidatorSet_ForFoundryTest | 0.172 | 24.404 |
| MockWrapToken | 1.977 | 22.599 |
| PRBMathUtils | 0.063 | 24.513 |
| PauseEnforcer | 4.548 | 20.028 |
| Proposal | 0.166 | 24.41 |
Expand Down
15 changes: 5 additions & 10 deletions logs/storage/MockERC20.sol:MockERC20.log
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:name (storage_slot: 0) (offset: 0) (type: string) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:symbol (storage_slot: 1) (offset: 0) (type: string) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:decimals (storage_slot: 2) (offset: 0) (type: uint8) (numberOfBytes: 1)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:totalSupply (storage_slot: 3) (offset: 0) (type: uint256) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:balanceOf (storage_slot: 4) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:allowance (storage_slot: 5) (offset: 0) (type: mapping(address => mapping(address => uint256))) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:INITIAL_CHAIN_ID (storage_slot: 6) (offset: 0) (type: uint256) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:INITIAL_DOMAIN_SEPARATOR (storage_slot: 7) (offset: 0) (type: bytes32) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:nonces (storage_slot: 8) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:initialized (storage_slot: 9) (offset: 0) (type: bool) (numberOfBytes: 1)
src/mocks/token/MockERC20.sol:MockERC20:_balances (storage_slot: 0) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mocks/token/MockERC20.sol:MockERC20:_allowances (storage_slot: 1) (offset: 0) (type: mapping(address => mapping(address => uint256))) (numberOfBytes: 32)
src/mocks/token/MockERC20.sol:MockERC20:_totalSupply (storage_slot: 2) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mocks/token/MockERC20.sol:MockERC20:_name (storage_slot: 3) (offset: 0) (type: string) (numberOfBytes: 32)
src/mocks/token/MockERC20.sol:MockERC20:_symbol (storage_slot: 4) (offset: 0) (type: string) (numberOfBytes: 32)
5 changes: 5 additions & 0 deletions logs/storage/MockWrapToken.sol:MockWrapToken.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/mocks/token/MockWrapToken.sol:MockWrapToken:name (storage_slot: 0) (offset: 0) (type: string) (numberOfBytes: 32)
src/mocks/token/MockWrapToken.sol:MockWrapToken:symbol (storage_slot: 1) (offset: 0) (type: string) (numberOfBytes: 32)
src/mocks/token/MockWrapToken.sol:MockWrapToken:decimals (storage_slot: 2) (offset: 0) (type: uint8) (numberOfBytes: 1)
src/mocks/token/MockWrapToken.sol:MockWrapToken:balanceOf (storage_slot: 3) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mocks/token/MockWrapToken.sol:MockWrapToken:allowance (storage_slot: 4) (offset: 0) (type: mapping(address => mapping(address => uint256))) (numberOfBytes: 32)

0 comments on commit 8186246

Please sign in to comment.