-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: natspec + interface changes (#364)
* refactor: natspec + interfaces refactor: natspec + interfaces refactor: natspec + interfaces docs: `RegistryCoordinator` natspec chore: forge fmt refactor: named mapping params docs: natspec `BLSApkRegistry` docs: natspec `BLSApkRegistry` docs: natspec `BLSApkRegistry` refactor: interface structure refactor: separate `BLSSignatureChecker` storage refactor: rename -> `IECDSAStakeRegistry` docs: natspec docs: natspec `ECDSAStakeRegistry` docs: natspec `EjectionManager` + separate storage docs: natspec docs: natspec `IndexRegistry` refactor: remove `IRegistry` chore: forge fmt chore: make storage-report docs: natspec refactor: remove `ISocketUpdater` refactor: use refactor: remove todo refactor: `///` -> `/**` refactor: improve comment refactor: rename var refactor: improve comment * fix: compiling - tests failing * refactor: test passing **mostly** * refactor: add missing gap * refactor: natspec * fix: test - state changes moved out of internal * chore: forge fmt * refactor: reorganize errors * refactor: remove override * refactor: note avsd * Yash/natspec - address comments (#372) * feat: natpsec with inheritance * feat: storage * chore: format * chore: fmt * chore: format * fix: test * fix: test --------- Co-authored-by: Michael Sun <[email protected]> Co-authored-by: Yash Patil <[email protected]>
- Loading branch information
1 parent
4954139
commit 558613b
Showing
74 changed files
with
3,421 additions
and
2,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +0,0 @@ | ||
|
||
╭------------------+-------------+------+--------+-------+-------------------------------------------------------------------╮ | ||
| Name | Type | Slot | Offset | Bytes | Contract | | ||
+============================================================================================================================+ | ||
| _initialized | uint8 | 0 | 0 | 1 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------| | ||
| _initializing | bool | 0 | 1 | 1 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------| | ||
| __gap | uint256[50] | 1 | 0 | 1600 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------| | ||
| _owner | address | 51 | 0 | 20 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------| | ||
| __gap | uint256[49] | 52 | 0 | 1568 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------| | ||
| rewardsInitiator | address | 101 | 0 | 20 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
|------------------+-------------+------+--------+-------+-------------------------------------------------------------------| | ||
| __GAP | uint256[49] | 102 | 0 | 1568 | src/unaudited/ECDSAServiceManagerBase.sol:ECDSAServiceManagerBase | | ||
╰------------------+-------------+------+--------+-------+-------------------------------------------------------------------╯ | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +0,0 @@ | ||
|
||
╭----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------╮ | ||
| Name | Type | Slot | Offset | Bytes | Contract | | ||
+==========================================================================================================================================================================+ | ||
| _initialized | uint8 | 0 | 0 | 1 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _initializing | bool | 0 | 1 | 1 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| __gap | uint256[50] | 1 | 0 | 1600 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _owner | address | 51 | 0 | 20 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| __gap | uint256[49] | 52 | 0 | 1568 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _totalOperators | uint256 | 101 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _quorum | struct Quorum | 102 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _minimumWeight | uint256 | 103 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _serviceManager | address | 104 | 0 | 20 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _stakeExpiry | uint256 | 105 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _operatorSigningKeyHistory | mapping(address => struct CheckpointsUpgradeable.History) | 106 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _totalWeightHistory | struct CheckpointsUpgradeable.History | 107 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _thresholdWeightHistory | struct CheckpointsUpgradeable.History | 108 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _operatorWeightHistory | mapping(address => struct CheckpointsUpgradeable.History) | 109 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| _operatorRegistered | mapping(address => bool) | 110 | 0 | 32 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------| | ||
| __gap | uint256[40] | 111 | 0 | 1280 | src/unaudited/ECDSAStakeRegistry.sol:ECDSAStakeRegistry | | ||
╰----------------------------+-----------------------------------------------------------+------+--------+-------+---------------------------------------------------------╯ | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +0,0 @@ | ||
|
||
╭----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------╮ | ||
| Name | Type | Slot | Offset | Bytes | Contract | | ||
+=========================================================================================================================================================================================================+ | ||
| _initialized | uint8 | 0 | 0 | 1 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _initializing | bool | 0 | 1 | 1 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| __gap | uint256[50] | 1 | 0 | 1600 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _owner | address | 51 | 0 | 20 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| __gap | uint256[49] | 52 | 0 | 1568 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _totalOperators | uint256 | 101 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _quorum | struct Quorum | 102 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _minimumWeight | uint256 | 103 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _serviceManager | address | 104 | 0 | 20 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _stakeExpiry | uint256 | 105 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _operatorSigningKeyHistory | mapping(address => struct CheckpointsUpgradeable.History) | 106 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _totalWeightHistory | struct CheckpointsUpgradeable.History | 107 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _thresholdWeightHistory | struct CheckpointsUpgradeable.History | 108 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _operatorWeightHistory | mapping(address => struct CheckpointsUpgradeable.History) | 109 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| _operatorRegistered | mapping(address => bool) | 110 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| __gap | uint256[40] | 111 | 0 | 1280 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
|----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------| | ||
| allowlistedOperators | mapping(address => bool) | 151 | 0 | 32 | src/unaudited/examples/ECDSAStakeRegistryEqualWeight.sol:ECDSAStakeRegistryEqualWeight | | ||
╰----------------------------+-----------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------------╯ | ||
|
||
Oops, something went wrong.