Skip to content

Commit 83585e3

Browse files
committed
chore: set up storage reports
1 parent 7314aef commit 83585e3

File tree

50 files changed

+809
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+809
-33
lines changed

.github/workflows/storage-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
4242
- name: Compare outputs
4343
run: |
44-
if diff --unified pr target; then
44+
if diff --unified target pr; then
4545
echo "No differences found"
4646
else
47-
echo "::error::Differences found between PR and target branch storage layouts"
47+
echo "::error::Differences found between target and PR branch storage layouts"
4848
exit 1
4949
fi

bin/storage-report.sh

100644100755
File mode changed.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
╭----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+==================================================================================================================================================+
5+
| _initialized | uint8 | 0 | 0 | 1 | src/BLSApkRegistry.sol:BLSApkRegistry |
6+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
7+
| _initializing | bool | 0 | 1 | 1 | src/BLSApkRegistry.sol:BLSApkRegistry |
8+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
9+
| operatorToPubkeyHash | mapping(address => bytes32) | 1 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
10+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
11+
| pubkeyHashToOperator | mapping(bytes32 => address) | 2 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
12+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
13+
| operatorToPubkey | mapping(address => struct BN254.G1Point) | 3 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
14+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
15+
| apkHistory | mapping(uint8 => struct IBLSApkRegistryTypes.ApkUpdate[]) | 4 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
16+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
17+
| currentApk | mapping(uint8 => struct BN254.G1Point) | 5 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
18+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
19+
| operatorToPubkeyG2 | mapping(address => struct BN254.G2Point) | 6 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
20+
|----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------|
21+
| __GAP | uint256[44] | 7 | 0 | 1408 | src/BLSApkRegistry.sol:BLSApkRegistry |
22+
╰----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------╯
23+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
╭----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+================================================================================================================================================================+
5+
| _initialized | uint8 | 0 | 0 | 1 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
6+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
7+
| _initializing | bool | 0 | 1 | 1 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
8+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
9+
| operatorToPubkeyHash | mapping(address => bytes32) | 1 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
10+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
11+
| pubkeyHashToOperator | mapping(bytes32 => address) | 2 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
12+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
13+
| operatorToPubkey | mapping(address => struct BN254.G1Point) | 3 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
14+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
15+
| apkHistory | mapping(uint8 => struct IBLSApkRegistryTypes.ApkUpdate[]) | 4 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
16+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
17+
| currentApk | mapping(uint8 => struct BN254.G1Point) | 5 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
18+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
19+
| operatorToPubkeyG2 | mapping(address => struct BN254.G2Point) | 6 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
20+
|----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
21+
| __GAP | uint256[44] | 7 | 0 | 1408 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
22+
╰----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------╯
23+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
╭-----------------------------------+-------------+------+--------+-------+-------------------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+===========================================================================================================================+
5+
| __deprecated_staleStakesForbidden | bool | 0 | 0 | 1 | src/BLSSignatureChecker.sol:BLSSignatureChecker |
6+
|-----------------------------------+-------------+------+--------+-------+-------------------------------------------------|
7+
| __GAP | uint256[49] | 1 | 0 | 1568 | src/BLSSignatureChecker.sol:BLSSignatureChecker |
8+
╰-----------------------------------+-------------+------+--------+-------+-------------------------------------------------╯
9+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
╭-----------------------------------+-------------+------+--------+-------+---------------------------------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+=========================================================================================================================================+
5+
| __deprecated_staleStakesForbidden | bool | 0 | 0 | 1 | src/BLSSignatureCheckerStorage.sol:BLSSignatureCheckerStorage |
6+
|-----------------------------------+-------------+------+--------+-------+---------------------------------------------------------------|
7+
| __GAP | uint256[49] | 1 | 0 | 1568 | src/BLSSignatureCheckerStorage.sol:BLSSignatureCheckerStorage |
8+
╰-----------------------------------+-------------+------+--------+-------+---------------------------------------------------------------╯
9+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
╭-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+===============================================================================================================================================================+
5+
| _initialized | uint8 | 0 | 0 | 1 | src/EjectionManager.sol:EjectionManager |
6+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
7+
| _initializing | bool | 0 | 1 | 1 | src/EjectionManager.sol:EjectionManager |
8+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
9+
| __gap | uint256[50] | 1 | 0 | 1600 | src/EjectionManager.sol:EjectionManager |
10+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
11+
| _owner | address | 51 | 0 | 20 | src/EjectionManager.sol:EjectionManager |
12+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
13+
| __gap | uint256[49] | 52 | 0 | 1568 | src/EjectionManager.sol:EjectionManager |
14+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
15+
| isEjector | mapping(address => bool) | 101 | 0 | 32 | src/EjectionManager.sol:EjectionManager |
16+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
17+
| stakeEjectedForQuorum | mapping(uint8 => struct IEjectionManagerTypes.StakeEjection[]) | 102 | 0 | 32 | src/EjectionManager.sol:EjectionManager |
18+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
19+
| quorumEjectionParams | mapping(uint8 => struct IEjectionManagerTypes.QuorumEjectionParams) | 103 | 0 | 32 | src/EjectionManager.sol:EjectionManager |
20+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------|
21+
| __gap | uint256[47] | 104 | 0 | 1504 | src/EjectionManager.sol:EjectionManager |
22+
╰-----------------------+---------------------------------------------------------------------+------+--------+-------+-----------------------------------------╯
23+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
╭-----------------------+---------------------------------------------------------------------+------+--------+-------+-------------------------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+=============================================================================================================================================================================+
5+
| isEjector | mapping(address => bool) | 0 | 0 | 32 | src/EjectionManagerStorage.sol:EjectionManagerStorage |
6+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-------------------------------------------------------|
7+
| stakeEjectedForQuorum | mapping(uint8 => struct IEjectionManagerTypes.StakeEjection[]) | 1 | 0 | 32 | src/EjectionManagerStorage.sol:EjectionManagerStorage |
8+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-------------------------------------------------------|
9+
| quorumEjectionParams | mapping(uint8 => struct IEjectionManagerTypes.QuorumEjectionParams) | 2 | 0 | 32 | src/EjectionManagerStorage.sol:EjectionManagerStorage |
10+
|-----------------------+---------------------------------------------------------------------+------+--------+-------+-------------------------------------------------------|
11+
| __gap | uint256[47] | 3 | 0 | 1504 | src/EjectionManagerStorage.sol:EjectionManagerStorage |
12+
╰-----------------------+---------------------------------------------------------------------+------+--------+-------+-------------------------------------------------------╯
13+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
╭-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+========================================================================================================================================================================+
5+
| _initialized | uint8 | 0 | 0 | 1 | src/IndexRegistry.sol:IndexRegistry |
6+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
7+
| _initializing | bool | 0 | 1 | 1 | src/IndexRegistry.sol:IndexRegistry |
8+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
9+
| currentOperatorIndex | mapping(uint8 => mapping(bytes32 => uint32)) | 1 | 0 | 32 | src/IndexRegistry.sol:IndexRegistry |
10+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
11+
| _operatorIndexHistory | mapping(uint8 => mapping(uint32 => struct IIndexRegistryTypes.OperatorUpdate[])) | 2 | 0 | 32 | src/IndexRegistry.sol:IndexRegistry |
12+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
13+
| _operatorCountHistory | mapping(uint8 => struct IIndexRegistryTypes.QuorumUpdate[]) | 3 | 0 | 32 | src/IndexRegistry.sol:IndexRegistry |
14+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
15+
| __GAP | uint256[47] | 4 | 0 | 1504 | src/IndexRegistry.sol:IndexRegistry |
16+
╰-----------------------+----------------------------------------------------------------------------------+------+--------+-------+-------------------------------------╯
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
╭-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------╮
3+
| Name | Type | Slot | Offset | Bytes | Contract |
4+
+======================================================================================================================================================================================+
5+
| _initialized | uint8 | 0 | 0 | 1 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
6+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
7+
| _initializing | bool | 0 | 1 | 1 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
8+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
9+
| currentOperatorIndex | mapping(uint8 => mapping(bytes32 => uint32)) | 1 | 0 | 32 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
10+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
11+
| _operatorIndexHistory | mapping(uint8 => mapping(uint32 => struct IIndexRegistryTypes.OperatorUpdate[])) | 2 | 0 | 32 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
12+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
13+
| _operatorCountHistory | mapping(uint8 => struct IIndexRegistryTypes.QuorumUpdate[]) | 3 | 0 | 32 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
14+
|-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
15+
| __GAP | uint256[47] | 4 | 0 | 1504 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
16+
╰-----------------------+----------------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------╯
17+

0 commit comments

Comments
 (0)