Skip to content

Commit 737637a

Browse files
authored
Yash/natspec - address comments (#372)
* feat: natpsec with inheritance * feat: storage * chore: format * chore: fmt * chore: format * fix: test
1 parent 50fe68c commit 737637a

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

+744
-1269
lines changed

docs/storage-report/BLSApkRegistry.md

-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +0,0 @@
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-
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistry.sol:BLSApkRegistry |
20-
╰----------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------╯
21-
Original file line numberDiff line numberDiff line change
@@ -1,21 +0,0 @@
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-
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
20-
╰----------------------+-----------------------------------------------------------+------+--------+-------+-----------------------------------------------------╯
21-
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
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-
Original file line numberDiff line numberDiff line change
@@ -1,19 +0,0 @@
1-
2-
╭------------------+-------------+------+--------+-------+-------------------------------------------------------------------╮
3-
| Name | Type | Slot | Offset | Bytes | Contract |
4-
+============================================================================================================================+
5-
| _initialized | uint8 | 0 | 0 | 1 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
6-
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------|
7-
| _initializing | bool | 0 | 1 | 1 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
8-
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------|
9-
| __gap | uint256[50] | 1 | 0 | 1600 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
10-
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------|
11-
| _owner | address | 51 | 0 | 20 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
12-
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------|
13-
| __gap | uint256[49] | 52 | 0 | 1568 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
14-
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------|
15-
| rewardsInitiator | address | 101 | 0 | 20 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
16-
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------|
17-
| __GAP | uint256[49] | 102 | 0 | 1568 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase |
18-
╰------------------+-------------+------+--------+-------+-------------------------------------------------------------------╯
19-
-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +0,0 @@
1-
2-
╭----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------╮
3-
| Name | Type | Slot | Offset | Bytes | Contract |
4-
+==========================================================================================================================================================================+
5-
| _initialized | uint8 | 0 | 0 | 1 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
6-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
7-
| _initializing | bool | 0 | 1 | 1 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
8-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
9-
| __gap | uint256[50] | 1 | 0 | 1600 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
10-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
11-
| _owner | address | 51 | 0 | 20 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
12-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
13-
| __gap | uint256[49] | 52 | 0 | 1568 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
14-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
15-
| _totalOperators | uint256 | 101 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
16-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
17-
| _quorum | struct IECDSAStakeRegistryTypes.Quorum | 102 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
18-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
19-
| _minimumWeight | uint256 | 103 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
20-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
21-
| _serviceManager | address | 104 | 0 | 20 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
22-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
23-
| _stakeExpiry | uint256 | 105 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
24-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
25-
| _operatorSigningKeyHistory | mapping(address => struct CheckpointsUpgradeable.History) | 106 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
26-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
27-
| _totalWeightHistory | struct CheckpointsUpgradeable.History | 107 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
28-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
29-
| _thresholdWeightHistory | struct CheckpointsUpgradeable.History | 108 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
30-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
31-
| _operatorWeightHistory | mapping(address => struct CheckpointsUpgradeable.History) | 109 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
32-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
33-
| _operatorRegistered | mapping(address => bool) | 110 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
34-
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------|
35-
| __gap | uint256[40] | 111 | 0 | 1280 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry |
36-
╰----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------╯
37-

0 commit comments

Comments
 (0)