Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: slashing registry coordinator #361

Merged
merged 11 commits into from
Jan 24, 2025
Merged
2 changes: 1 addition & 1 deletion .github/workflows/forge-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
version: nightly
- name: Run forge fmt
run: |
forge fmt --check
forge fmt --check src
id: fmt
21 changes: 0 additions & 21 deletions docs/storage-report/BLSApkRegistry.md
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@

╭----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+=============================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| operatorToPubkeyHash | mapping(address => bytes32) | 1 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| pubkeyHashToOperator | mapping(bytes32 => address) | 2 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| operatorToPubkey | mapping(address => struct BN254.G1Point) | 3 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| apkHistory | mapping(uint8 => struct IBLSApkRegistry.ApkUpdate[]) | 4 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| currentApk | mapping(uint8 => struct BN254.G1Point) | 5 | 0 | 32 | src/BLSApkRegistry.sol:BLSApkRegistry |
|----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------|
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistry.sol:BLSApkRegistry |
╰----------------------+------------------------------------------------------+------+--------+-------+---------------------------------------╯

21 changes: 0 additions & 21 deletions docs/storage-report/BLSApkRegistryStorage.md
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@

╭----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+===========================================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| operatorToPubkeyHash | mapping(address => bytes32) | 1 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| pubkeyHashToOperator | mapping(bytes32 => address) | 2 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| operatorToPubkey | mapping(address => struct BN254.G1Point) | 3 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| apkHistory | mapping(uint8 => struct IBLSApkRegistry.ApkUpdate[]) | 4 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| currentApk | mapping(uint8 => struct BN254.G1Point) | 5 | 0 | 32 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
|----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------|
| __GAP | uint256[45] | 6 | 0 | 1440 | src/BLSApkRegistryStorage.sol:BLSApkRegistryStorage |
╰----------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------╯

9 changes: 0 additions & 9 deletions docs/storage-report/BLSSignatureChecker.md
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@

╭----------------------+-------------+------+--------+-------+-------------------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+==============================================================================================================+
| staleStakesForbidden | bool | 0 | 0 | 1 | src/BLSSignatureChecker.sol:BLSSignatureChecker |
|----------------------+-------------+------+--------+-------+-------------------------------------------------|
| __GAP | uint256[49] | 1 | 0 | 1568 | src/BLSSignatureChecker.sol:BLSSignatureChecker |
╰----------------------+-------------+------+--------+-------+-------------------------------------------------╯

21 changes: 0 additions & 21 deletions docs/storage-report/EjectionManager.md
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@

╭-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+==========================================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| __gap | uint256[50] | 1 | 0 | 1600 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| _owner | address | 51 | 0 | 20 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| __gap | uint256[49] | 52 | 0 | 1568 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| isEjector | mapping(address => bool) | 101 | 0 | 32 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| stakeEjectedForQuorum | mapping(uint8 => struct IEjectionManager.StakeEjection[]) | 102 | 0 | 32 | src/EjectionManager.sol:EjectionManager |
|-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------|
| quorumEjectionParams | mapping(uint8 => struct IEjectionManager.QuorumEjectionParams) | 103 | 0 | 32 | src/EjectionManager.sol:EjectionManager |
╰-----------------------+----------------------------------------------------------------+------+--------+-------+-----------------------------------------╯

17 changes: 0 additions & 17 deletions docs/storage-report/IndexRegistry.md
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@

╭-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+===================================================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/IndexRegistry.sol:IndexRegistry |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/IndexRegistry.sol:IndexRegistry |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
| currentOperatorIndex | mapping(uint8 => mapping(bytes32 => uint32)) | 1 | 0 | 32 | src/IndexRegistry.sol:IndexRegistry |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
| _operatorIndexHistory | mapping(uint8 => mapping(uint32 => struct IIndexRegistry.OperatorUpdate[])) | 2 | 0 | 32 | src/IndexRegistry.sol:IndexRegistry |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
| _operatorCountHistory | mapping(uint8 => struct IIndexRegistry.QuorumUpdate[]) | 3 | 0 | 32 | src/IndexRegistry.sol:IndexRegistry |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------|
| __GAP | uint256[47] | 4 | 0 | 1504 | src/IndexRegistry.sol:IndexRegistry |
╰-----------------------+-----------------------------------------------------------------------------+------+--------+-------+-------------------------------------╯

17 changes: 0 additions & 17 deletions docs/storage-report/IndexRegistryStorage.md
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@

╭-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+=================================================================================================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
| currentOperatorIndex | mapping(uint8 => mapping(bytes32 => uint32)) | 1 | 0 | 32 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
| _operatorIndexHistory | mapping(uint8 => mapping(uint32 => struct IIndexRegistry.OperatorUpdate[])) | 2 | 0 | 32 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
| _operatorCountHistory | mapping(uint8 => struct IIndexRegistry.QuorumUpdate[]) | 3 | 0 | 32 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
|-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------|
| __GAP | uint256[47] | 4 | 0 | 1504 | src/IndexRegistryStorage.sol:IndexRegistryStorage |
╰-----------------------+-----------------------------------------------------------------------------+------+--------+-------+---------------------------------------------------╯

15 changes: 0 additions & 15 deletions docs/storage-report/InstantSlasher.md
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@

╭---------------+-------------+------+--------+-------+------------------------------------------------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+======================================================================================================+
| _initialized | uint8 | 0 | 0 | 1 | src/slashers/InstantSlasher.sol:InstantSlasher |
|---------------+-------------+------+--------+-------+------------------------------------------------|
| _initializing | bool | 0 | 1 | 1 | src/slashers/InstantSlasher.sol:InstantSlasher |
|---------------+-------------+------+--------+-------+------------------------------------------------|
| slasher | address | 0 | 2 | 20 | src/slashers/InstantSlasher.sol:InstantSlasher |
|---------------+-------------+------+--------+-------+------------------------------------------------|
| nextRequestId | uint256 | 1 | 0 | 32 | src/slashers/InstantSlasher.sol:InstantSlasher |
|---------------+-------------+------+--------+-------+------------------------------------------------|
| __gap | uint256[48] | 2 | 0 | 1536 | src/slashers/InstantSlasher.sol:InstantSlasher |
╰---------------+-------------+------+--------+-------+------------------------------------------------╯

6 changes: 0 additions & 6 deletions docs/storage-report/OperatorStateRetriever.md
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@

╭------+------+------+--------+-------+----------╮
| Name | Type | Slot | Offset | Bytes | Contract |
+================================================+
╰------+------+------+--------+-------+----------╯

Loading
Loading