Skip to content

Commit

Permalink
chore: storage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Mar 14, 2024
1 parent a297690 commit 02804a1
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 0 deletions.
27 changes: 27 additions & 0 deletions logs/contract-code-sizes.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
| Contract | Size (kB) | Margin (kB) |
|---------------------------|-----------|-------------|
| LibErrorHandler | 0.086 | 24.49 |
| LibNativeTransfer | 0.086 | 24.49 |
| LibSafeRange | 0.086 | 24.49 |
| Math | 0.086 | 24.49 |
| MockERC20 | 3.704 | 20.872 |
| MockERC721 | 3.964 | 20.612 |
| Panic | 0.086 | 24.49 |
| RONTransferHelper | 0.086 | 24.49 |
| RONTransferHelperExtended | 0.086 | 24.49 |
| SafeCast | 0.086 | 24.49 |
| SignedMath | 0.086 | 24.49 |
| StdStyle | 0.086 | 24.49 |
| Strings | 0.086 | 24.49 |
| TransferFromHelper | 0.086 | 24.49 |
| TransferHelper | 0.086 | 24.49 |
| console | 0.086 | 24.49 |
| console2 | 0.086 | 24.49 |
| safeconsole | 0.086 | 24.49 |
| stdError | 0.592 | 23.984 |
| stdJson | 0.086 | 24.49 |
| stdMath | 0.086 | 24.49 |
| stdStorage | 0.086 | 24.49 |
| stdStorageSafe | 0.086 | 24.49 |
| stdToml | 0.086 | 24.49 |

1 change: 1 addition & 0 deletions logs/storage/Base.sol:CommonBase.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/forge-std/src/Base.sol:CommonBase:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
1 change: 1 addition & 0 deletions logs/storage/Base.sol:ScriptBase.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/forge-std/src/Base.sol:ScriptBase:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
1 change: 1 addition & 0 deletions logs/storage/Base.sol:TestBase.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/forge-std/src/Base.sol:TestBase:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
1 change: 1 addition & 0 deletions logs/storage/Counter.sol:Counter.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/Counter.sol:Counter:number (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)
10 changes: 10 additions & 0 deletions logs/storage/MockERC20.sol:MockERC20.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:_name (storage_slot: 0) (offset: 0) (type: string) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:_symbol (storage_slot: 1) (offset: 0) (type: string) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:_decimals (storage_slot: 2) (offset: 0) (type: uint8) (numberOfBytes: 1)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:_totalSupply (storage_slot: 3) (offset: 0) (type: uint256) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:_balanceOf (storage_slot: 4) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:_allowance (storage_slot: 5) (offset: 0) (type: mapping(address => mapping(address => uint256))) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:INITIAL_CHAIN_ID (storage_slot: 6) (offset: 0) (type: uint256) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:INITIAL_DOMAIN_SEPARATOR (storage_slot: 7) (offset: 0) (type: bytes32) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:nonces (storage_slot: 8) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC20.sol:MockERC20:initialized (storage_slot: 9) (offset: 0) (type: bool) (numberOfBytes: 1)
7 changes: 7 additions & 0 deletions logs/storage/MockERC721.sol:MockERC721.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:_name (storage_slot: 0) (offset: 0) (type: string) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:_symbol (storage_slot: 1) (offset: 0) (type: string) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:_ownerOf (storage_slot: 2) (offset: 0) (type: mapping(uint256 => address)) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:_balanceOf (storage_slot: 3) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:_getApproved (storage_slot: 4) (offset: 0) (type: mapping(uint256 => address)) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:_isApprovedForAll (storage_slot: 5) (offset: 0) (type: mapping(address => mapping(address => bool))) (numberOfBytes: 32)
lib/forge-std/src/mocks/MockERC721.sol:MockERC721:initialized (storage_slot: 6) (offset: 0) (type: bool) (numberOfBytes: 1)
8 changes: 8 additions & 0 deletions logs/storage/Script.sol:Script.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
lib/forge-std/src/Script.sol:Script:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 224)
lib/forge-std/src/Script.sol:Script:stdChainsInitialized (storage_slot: 7) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Script.sol:Script:chains (storage_slot: 8) (offset: 0) (type: mapping(string => struct StdChains.Chain)) (numberOfBytes: 32)
lib/forge-std/src/Script.sol:Script:defaultRpcUrls (storage_slot: 9) (offset: 0) (type: mapping(string => string)) (numberOfBytes: 32)
lib/forge-std/src/Script.sol:Script:idToAlias (storage_slot: 10) (offset: 0) (type: mapping(uint256 => string)) (numberOfBytes: 32)
lib/forge-std/src/Script.sol:Script:fallbackToDefaultRpcUrls (storage_slot: 11) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Script.sol:Script:gasMeteringOff (storage_slot: 11) (offset: 1) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Script.sol:Script:IS_SCRIPT (storage_slot: 11) (offset: 2) (type: bool) (numberOfBytes: 1)
1 change: 1 addition & 0 deletions logs/storage/StdAssertions.sol:StdAssertions.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/forge-std/src/StdAssertions.sol:StdAssertions:_failed (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
5 changes: 5 additions & 0 deletions logs/storage/StdChains.sol:StdChains.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lib/forge-std/src/StdChains.sol:StdChains:stdChainsInitialized (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/StdChains.sol:StdChains:chains (storage_slot: 1) (offset: 0) (type: mapping(string => struct StdChains.Chain)) (numberOfBytes: 32)
lib/forge-std/src/StdChains.sol:StdChains:defaultRpcUrls (storage_slot: 2) (offset: 0) (type: mapping(string => string)) (numberOfBytes: 32)
lib/forge-std/src/StdChains.sol:StdChains:idToAlias (storage_slot: 3) (offset: 0) (type: mapping(uint256 => string)) (numberOfBytes: 32)
lib/forge-std/src/StdChains.sol:StdChains:fallbackToDefaultRpcUrls (storage_slot: 4) (offset: 0) (type: bool) (numberOfBytes: 1)
2 changes: 2 additions & 0 deletions logs/storage/StdCheats.sol:StdCheats.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/forge-std/src/StdCheats.sol:StdCheats:gasMeteringOff (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/StdCheats.sol:StdCheats:stdstore (storage_slot: 1) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
1 change: 1 addition & 0 deletions logs/storage/StdCheats.sol:StdCheatsSafe.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/forge-std/src/StdCheats.sol:StdCheatsSafe:gasMeteringOff (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
9 changes: 9 additions & 0 deletions logs/storage/StdInvariant.sol:StdInvariant.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
lib/forge-std/src/StdInvariant.sol:StdInvariant:_excludedContracts (storage_slot: 0) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_excludedSenders (storage_slot: 1) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_targetedContracts (storage_slot: 2) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_targetedSenders (storage_slot: 3) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_excludedArtifacts (storage_slot: 4) (offset: 0) (type: string[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_targetedArtifacts (storage_slot: 5) (offset: 0) (type: string[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_targetedArtifactSelectors (storage_slot: 6) (offset: 0) (type: struct StdInvariant.FuzzSelector[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_targetedSelectors (storage_slot: 7) (offset: 0) (type: struct StdInvariant.FuzzSelector[]) (numberOfBytes: 32)
lib/forge-std/src/StdInvariant.sol:StdInvariant:_targetedInterfaces (storage_slot: 8) (offset: 0) (type: struct StdInvariant.FuzzInterface[]) (numberOfBytes: 32)
2 changes: 2 additions & 0 deletions logs/storage/test.sol:DSTest.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/forge-std/lib/ds-test/src/test.sol:DSTest:IS_TEST (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/lib/ds-test/src/test.sol:DSTest:_failed (storage_slot: 0) (offset: 1) (type: bool) (numberOfBytes: 1)
18 changes: 18 additions & 0 deletions logs/storage/test.sol:Test.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
lib/forge-std/src/Test.sol:Test:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
lib/forge-std/src/Test.sol:Test:_failed (storage_slot: 8) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Test.sol:Test:stdChainsInitialized (storage_slot: 8) (offset: 1) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Test.sol:Test:chains (storage_slot: 9) (offset: 0) (type: mapping(string => struct StdChains.Chain)) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:defaultRpcUrls (storage_slot: 10) (offset: 0) (type: mapping(string => string)) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:idToAlias (storage_slot: 11) (offset: 0) (type: mapping(uint256 => string)) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:fallbackToDefaultRpcUrls (storage_slot: 12) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Test.sol:Test:gasMeteringOff (storage_slot: 12) (offset: 1) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/Test.sol:Test:stdstore (storage_slot: 13) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
lib/forge-std/src/Test.sol:Test:_excludedContracts (storage_slot: 21) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_excludedSenders (storage_slot: 22) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_targetedContracts (storage_slot: 23) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_targetedSenders (storage_slot: 24) (offset: 0) (type: address[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_excludedArtifacts (storage_slot: 25) (offset: 0) (type: string[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_targetedArtifacts (storage_slot: 26) (offset: 0) (type: string[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_targetedArtifactSelectors (storage_slot: 27) (offset: 0) (type: struct StdInvariant.FuzzSelector[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_targetedSelectors (storage_slot: 28) (offset: 0) (type: struct StdInvariant.FuzzSelector[]) (numberOfBytes: 32)
lib/forge-std/src/Test.sol:Test:_targetedInterfaces (storage_slot: 29) (offset: 0) (type: struct StdInvariant.FuzzInterface[]) (numberOfBytes: 32)

0 comments on commit 02804a1

Please sign in to comment.