Skip to content

Commit

Permalink
chore: storage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
thaixuandang committed Dec 27, 2024
1 parent 084163d commit 7ba45c9
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 14 deletions.
28 changes: 14 additions & 14 deletions logs/contract-code-sizes.log
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
| Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
|-----------------------------|------------------|-------------------|--------------------|---------------------|
| Address | 58 | 87 | 24,518 | 49,065 |
| AggregateRouter | 13,859 | 14,525 | 10,717 | 34,627 |
| BytesLib | 58 | 87 | 24,518 | 49,065 |
| Commands | 58 | 87 | 24,518 | 49,065 |
| Constants | 58 | 87 | 24,518 | 49,065 |
| AggregateRouter.0.8.27 | 13,857 | 14,523 | 10,719 | 34,629 |
| BytesLib.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| Commands.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| Constants.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| ERC1967Proxy | 145 | 721 | 24,431 | 48,431 |
| ERC1967Utils | 58 | 87 | 24,518 | 49,065 |
| EnumerableSet | 58 | 87 | 24,518 | 49,065 |
| KatanaGovernance | 11,049 | 11,265 | 13,527 | 37,887 |
| KatanaImmutables | 58 | 363 | 24,518 | 48,789 |
| KatanaV2Library | 58 | 87 | 24,518 | 49,065 |
| LockAndMsgSender | 58 | 102 | 24,518 | 49,050 |
| PaymentsImmutables | 58 | 279 | 24,518 | 48,873 |
| ProxyAdmin | 1,478 | 1,694 | 23,098 | 47,458 |
| SafeCast | 58 | 87 | 24,518 | 49,065 |
| SafeCast160 | 58 | 87 | 24,518 | 49,065 |
| SafeTransferLib | 58 | 87 | 24,518 | 49,065 |
| KatanaImmutables.0.8.27 | 58 | 363 | 24,518 | 48,789 |
| KatanaV2Library.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| LockAndMsgSender.0.8.27 | 58 | 102 | 24,518 | 49,050 |
| PaymentsImmutables.0.8.27 | 58 | 270 | 24,518 | 48,882 |
| ProxyAdmin | 1,476 | 1,692 | 23,100 | 47,460 |
| SafeCast.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| SafeCast160.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| SafeTransferLib.0.8.27 | 58 | 87 | 24,518 | 49,065 |
| StorageSlot | 58 | 87 | 24,518 | 49,065 |
| TransparentUpgradeableProxy | 1,223 | 3,790 | 23,353 | 45,362 |
| V3Path | 58 | 87 | 24,518 | 49,065 |
| TransparentUpgradeableProxy | 1,223 | 3,788 | 23,353 | 45,364 |
| V3Path.0.8.27 | 58 | 87 | 24,518 | 49,065 |

2 changes: 2 additions & 0 deletions logs/storage/AggregateRouter.sol:AggregateRouter.0.8.17.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/aggregate-router/AggregateRouter.sol:AggregateRouter:maxAmountInCached (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/aggregate-router/AggregateRouter.sol:AggregateRouter:lockedBy (storage_slot: 1) (offset: 0) (type: address) (numberOfBytes: 20)
2 changes: 2 additions & 0 deletions logs/storage/AggregateRouter.sol:AggregateRouter.0.8.27.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/aggregate-router/AggregateRouter.sol:AggregateRouter:maxAmountInCached (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/aggregate-router/AggregateRouter.sol:AggregateRouter:lockedBy (storage_slot: 1) (offset: 0) (type: address) (numberOfBytes: 20)
2 changes: 2 additions & 0 deletions logs/storage/Dispatcher.sol:Dispatcher.0.8.17.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/aggregate-router/base/Dispatcher.sol:Dispatcher:maxAmountInCached (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/aggregate-router/base/Dispatcher.sol:Dispatcher:lockedBy (storage_slot: 1) (offset: 0) (type: address) (numberOfBytes: 20)
2 changes: 2 additions & 0 deletions logs/storage/Dispatcher.sol:Dispatcher.0.8.27.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/aggregate-router/base/Dispatcher.sol:Dispatcher:maxAmountInCached (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/aggregate-router/base/Dispatcher.sol:Dispatcher:lockedBy (storage_slot: 1) (offset: 0) (type: address) (numberOfBytes: 20)
7 changes: 7 additions & 0 deletions logs/storage/ImportsForTypechain.sol:ImportsForTypechain.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:balanceOf (storage_slot: 0) (offset: 0) (type: mapping(address => mapping(uint256 => uint256))) (numberOfBytes: 32)
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:isApprovedForAll (storage_slot: 1) (offset: 0) (type: mapping(address => mapping(address => bool))) (numberOfBytes: 32)
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:_owner (storage_slot: 2) (offset: 0) (type: address) (numberOfBytes: 20)
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:_spenderPermitFlags (storage_slot: 3) (offset: 0) (type: mapping(address => bool)) (numberOfBytes: 32)
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:_allSpendersPermitted (storage_slot: 4) (offset: 0) (type: bool) (numberOfBytes: 1)
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:nonceBitmap (storage_slot: 5) (offset: 0) (type: mapping(address => mapping(uint256 => uint256))) (numberOfBytes: 32)
src/aggregate-router/test/ImportsForTypechain.sol:ImportsForTypechain:allowance (storage_slot: 6) (offset: 0) (type: mapping(address => mapping(address => mapping(address => struct IAllowanceTransfer.PackedAllowance)))) (numberOfBytes: 32)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/aggregate-router/base/LockAndMsgSender.sol:LockAndMsgSender:lockedBy (storage_slot: 0) (offset: 0) (type: address) (numberOfBytes: 20)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/aggregate-router/base/LockAndMsgSender.sol:LockAndMsgSender:lockedBy (storage_slot: 0) (offset: 0) (type: address) (numberOfBytes: 20)
1 change: 1 addition & 0 deletions logs/storage/V3SwapRouter.sol:V3SwapRouter.0.8.17.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/aggregate-router/modules/katana/v3/V3SwapRouter.sol:V3SwapRouter:maxAmountInCached (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)
1 change: 1 addition & 0 deletions logs/storage/V3SwapRouter.sol:V3SwapRouter.0.8.27.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/aggregate-router/modules/katana/v3/V3SwapRouter.sol:V3SwapRouter:maxAmountInCached (storage_slot: 0) (offset: 0) (type: uint256) (numberOfBytes: 32)

0 comments on commit 7ba45c9

Please sign in to comment.