Skip to content

Commit

Permalink
fix: new foundry table format
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Dec 9, 2024
1 parent 778492a commit 26e3337
Show file tree
Hide file tree
Showing 13 changed files with 243 additions and 13 deletions.
18 changes: 17 additions & 1 deletion test/storage/Bridge
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@

╭----------------------------------+------------------------------------------------+------+--------+-------+------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
|----------------------------------|------------------------------------------------|------|--------|-------|------------------------------|
+==========================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| allowedDelayedInboxesMap | mapping(address => struct AbsBridge.InOutInfo) | 1 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| allowedOutboxesMap | mapping(address => struct AbsBridge.InOutInfo) | 2 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| allowedDelayedInboxList | address[] | 3 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| allowedOutboxList | address[] | 4 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| _activeOutbox | address | 5 | 0 | 20 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| delayedInboxAccs | bytes32[] | 6 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| sequencerInboxAccs | bytes32[] | 7 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| rollup | contract IOwnable | 8 | 0 | 20 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| sequencerInbox | address | 9 | 0 | 20 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| sequencerReportedSubMessageCount | uint256 | 10 | 0 | 32 | src/bridge/Bridge.sol:Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+------------------------------|
| __gap | uint256[40] | 11 | 0 | 1280 | src/bridge/Bridge.sol:Bridge |
╰----------------------------------+------------------------------------------------+------+--------+-------+------------------------------╯

13 changes: 12 additions & 1 deletion test/storage/CacheManager
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@

╭---------------+-----------------------------+------+--------+-------+-----------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
|---------------|-----------------------------|------|--------|-------|-----------------------------------------|
+===============================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| bids | struct MinHeapLib.Heap | 1 | 0 | 32 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| entries | struct CacheManager.Entry[] | 2 | 0 | 32 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| cacheSize | uint64 | 3 | 0 | 8 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| queueSize | uint64 | 3 | 8 | 8 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| decay | uint64 | 3 | 16 | 8 | src/chain/CacheManager.sol:CacheManager |
|---------------+-----------------------------+------+--------+-------+-----------------------------------------|
| isPaused | bool | 3 | 24 | 1 | src/chain/CacheManager.sol:CacheManager |
╰---------------+-----------------------------+------+--------+-------+-----------------------------------------╯

20 changes: 19 additions & 1 deletion test/storage/ERC20Bridge
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@

╭----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
|----------------------------------|------------------------------------------------|------|--------|-------|----------------------------------------|
+====================================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| allowedDelayedInboxesMap | mapping(address => struct AbsBridge.InOutInfo) | 1 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| allowedOutboxesMap | mapping(address => struct AbsBridge.InOutInfo) | 2 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| allowedDelayedInboxList | address[] | 3 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| allowedOutboxList | address[] | 4 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| _activeOutbox | address | 5 | 0 | 20 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| delayedInboxAccs | bytes32[] | 6 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| sequencerInboxAccs | bytes32[] | 7 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| rollup | contract IOwnable | 8 | 0 | 20 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| sequencerInbox | address | 9 | 0 | 20 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| sequencerReportedSubMessageCount | uint256 | 10 | 0 | 32 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| __gap | uint256[40] | 11 | 0 | 1280 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| nativeToken | address | 51 | 0 | 20 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
|----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------|
| nativeTokenDecimals | uint8 | 51 | 20 | 1 | src/bridge/ERC20Bridge.sol:ERC20Bridge |
╰----------------------------------+------------------------------------------------+------+--------+-------+----------------------------------------╯

15 changes: 14 additions & 1 deletion test/storage/ERC20Inbox
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@

╭------------------+--------------------------+------+--------+-------+--------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
|------------------|--------------------------|------|--------|-------|--------------------------------------|
+============================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| __gap | uint256[50] | 1 | 0 | 1600 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| _paused | bool | 51 | 0 | 1 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| __gap | uint256[49] | 52 | 0 | 1568 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| bridge | contract IBridge | 101 | 0 | 20 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| sequencerInbox | contract ISequencerInbox | 102 | 0 | 20 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| allowListEnabled | bool | 102 | 20 | 1 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| isAllowed | mapping(address => bool) | 103 | 0 | 32 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
|------------------+--------------------------+------+--------+-------+--------------------------------------|
| __gap | uint256[47] | 104 | 0 | 1504 | src/bridge/ERC20Inbox.sol:ERC20Inbox |
╰------------------+--------------------------+------+--------+-------+--------------------------------------╯

11 changes: 10 additions & 1 deletion test/storage/ERC20Outbox
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@

╭---------+--------------------------------+------+--------+-------+----------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
|---------|--------------------------------|------|--------|-------|----------------------------------------|
+===========================================================================================================+
| rollup | address | 0 | 0 | 20 | src/bridge/ERC20Outbox.sol:ERC20Outbox |
|---------+--------------------------------+------+--------+-------+----------------------------------------|
| bridge | contract IBridge | 1 | 0 | 20 | src/bridge/ERC20Outbox.sol:ERC20Outbox |
|---------+--------------------------------+------+--------+-------+----------------------------------------|
| spent | mapping(uint256 => bytes32) | 2 | 0 | 32 | src/bridge/ERC20Outbox.sol:ERC20Outbox |
|---------+--------------------------------+------+--------+-------+----------------------------------------|
| roots | mapping(bytes32 => bytes32) | 3 | 0 | 32 | src/bridge/ERC20Outbox.sol:ERC20Outbox |
|---------+--------------------------------+------+--------+-------+----------------------------------------|
| context | struct AbsOutbox.L2ToL1Context | 4 | 0 | 128 | src/bridge/ERC20Outbox.sol:ERC20Outbox |
|---------+--------------------------------+------+--------+-------+----------------------------------------|
| __gap | uint256[42] | 8 | 0 | 1344 | src/bridge/ERC20Outbox.sol:ERC20Outbox |
╰---------+--------------------------------+------+--------+-------+----------------------------------------╯

Loading

0 comments on commit 26e3337

Please sign in to comment.