Skip to content

Commit e164eb3

Browse files
committed
chore: make storage-report
1 parent 8d42bef commit e164eb3

17 files changed

+227
-207
lines changed

.github/bin/storage-report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for file in $(find src/ -name "*.sol" ! -path "*/interfaces/*" ! -path "*/librar
3737
log "Processing contract: $contract_name"
3838

3939
# Run forge inspect and capture errors
40-
if ! forge inspect "$contract_name" storage --pretty > "$OUTPUT_DIR/$contract_name.md"; then
40+
if ! forge inspect "$contract_name" storage > "$OUTPUT_DIR/$contract_name.md"; then
4141
error "Failed to generate storage report for contract: $contract_name"
4242
else
4343
log "Storage report generated for contract: $contract_name"

bin/storage-report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for file in $(find src/ -name "*.sol" ! -path "*/interfaces/*" ! -path "*/librar
3737
log "Processing contract: $contract_name"
3838

3939
# Run forge inspect and capture errors
40-
if ! forge inspect "$contract_name" storage --pretty > "$OUTPUT_DIR/$contract_name.md"; then
40+
if ! forge inspect "$contract_name" storage > "$OUTPUT_DIR/$contract_name.md"; then
4141
error "Failed to generate storage report for contract: $contract_name"
4242
else
4343
log "Storage report generated for contract: $contract_name"

docs/storage-report/BLSApkRegistry.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11

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 IBLSApkRegistry.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-
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistry.sol:BLSApkRegistry |
20-
╰----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------╯
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+
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistry.sol:BLSApkRegistry |
20+
╰----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------╯
2121

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11

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 IBLSApkRegistry.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-
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
20-
╰----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------╯
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+
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
20+
╰----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------╯
2121

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+
| staleStakesForbidden | bool | 0 | 0 | 1 | src/BLSSignatureCheckerStorage.sol:BLSSignatureCheckerStorage |
6+
|----------------------+-------------+------+--------+-------+---------------------------------------------------------------|
7+
| __GAP | uint256[49] | 1 | 0 | 1568 | src/BLSSignatureCheckerStorage.sol:BLSSignatureCheckerStorage |
8+
╰----------------------+-------------+------+--------+-------+---------------------------------------------------------------╯
9+

docs/storage-report/ECDSAStakeRegistry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
1515
| _totalOperators | uint256 | 101 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
1616
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
17-
| _quorum | struct Quorum | 102 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
17+
| _quorum | struct IECDSAStakeRegistryTypes.Quorum | 102 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
1818
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
1919
| _minimumWeight | uint256 | 103 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
2020
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|

docs/storage-report/ECDSAStakeRegistryEqualWeight.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------|
1515
| _totalOperators | uint256 | 101 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight |
1616
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------|
17-
| _quorum | struct Quorum | 102 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight |
17+
| _quorum | struct IECDSAStakeRegistryTypes.Quorum | 102 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight |
1818
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------|
1919
| _minimumWeight | uint256 | 103 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight |
2020
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------|

docs/storage-report/ECDSAStakeRegistryPermissioned.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
|----------------------------+-----------------------------------------------------------+------+--------+-------+------------------------------------------------------------------------------------------|
1515
| _totalOperators | uint256 | 101 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryPermissioned.sol:ECDSAStakeRegistryPermissioned |
1616
|----------------------------+-----------------------------------------------------------+------+--------+-------+------------------------------------------------------------------------------------------|
17-
| _quorum | struct Quorum | 102 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryPermissioned.sol:ECDSAStakeRegistryPermissioned |
17+
| _quorum | struct IECDSAStakeRegistryTypes.Quorum | 102 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryPermissioned.sol:ECDSAStakeRegistryPermissioned |
1818
|----------------------------+-----------------------------------------------------------+------+--------+-------+------------------------------------------------------------------------------------------|
1919
| _minimumWeight | uint256 | 103 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryPermissioned.sol:ECDSAStakeRegistryPermissioned |
2020
|----------------------------+-----------------------------------------------------------+------+--------+-------+------------------------------------------------------------------------------------------|

docs/storage-report/ECDSAStakeRegistryStorage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
+========================================================================================================================================================================================+
55
| _totalOperators | uint256 | 0 | 0 | 32 | src/unaudited/ECDSAStakeRegistryStorage.sol:ECDSAStakeRegistryStorage |
66
|----------------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------------------------|
7-
| _quorum | struct Quorum | 1 | 0 | 32 | src/unaudited/ECDSAStakeRegistryStorage.sol:ECDSAStakeRegistryStorage |
7+
| _quorum | struct IECDSAStakeRegistryTypes.Quorum | 1 | 0 | 32 | src/unaudited/ECDSAStakeRegistryStorage.sol:ECDSAStakeRegistryStorage |
88
|----------------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------------------------|
99
| _minimumWeight | uint256 | 2 | 0 | 32 | src/unaudited/ECDSAStakeRegistryStorage.sol:ECDSAStakeRegistryStorage |
1010
|----------------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------------------------|

0 commit comments

Comments
 (0)