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

Gpsanant/current stakes #846

Merged
merged 4 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/release/slashing/AllocationManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Slashing updates storage in a way that instantly updates all view functions to r

## View Functions

### `getMinDelegatedAndSlashableOperatorShares`
### `getMinDelegatedAndSlashableOperatorSharesBefore`

```solidity
/**
Expand All @@ -163,7 +163,7 @@ Slashing updates storage in a way that instantly updates all view functions to r
* @param strategies the strategies to get the shares for
* @param beforeTimestamp the timestamp to get the shares at
*/
function getMinDelegatedAndSlashableOperatorShares(
function getMinDelegatedAndSlashableOperatorSharesBefore(
OperatorSet calldata operatorSet,
address[] calldata operators,
IStrategy[] calldata strategies,
Expand Down
5 changes: 3 additions & 2 deletions docs/storage-report/AVSDirectory.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
| isOperatorSet | mapping(address => mapping(uint32 => bool)) | 155 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| _operatorSetsMemberOf | mapping(address => struct EnumerableSet.Bytes32Set) | 156 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| _operatorSetMembers | mapping(bytes32 => struct EnumerableSet.AddressSet) | 157 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| operatorSetStatus | mapping(address => mapping(address => mapping(uint32 => struct IAVSDirectoryTypes.OperatorSetRegistrationStatus))) | 158 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| __gap | uint256[42] | 159 | 0 | 1344 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| _operatorSetStrategies | mapping(bytes32 => struct EnumerableSet.AddressSet) | 158 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| operatorSetStatus | mapping(address => mapping(address => mapping(uint32 => struct IAVSDirectoryTypes.OperatorSetRegistrationStatus))) | 159 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| __gap | uint256[41] | 160 | 0 | 1312 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| _status | uint256 | 201 | 0 | 32 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
| __gap | uint256[49] | 202 | 0 | 1568 | src/contracts/core/AVSDirectory.sol:AVSDirectory |
5 changes: 3 additions & 2 deletions docs/storage-report/AVSDirectoryStorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
| isOperatorSet | mapping(address => mapping(uint32 => bool)) | 4 | 0 | 32 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| _operatorSetsMemberOf | mapping(address => struct EnumerableSet.Bytes32Set) | 5 | 0 | 32 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| _operatorSetMembers | mapping(bytes32 => struct EnumerableSet.AddressSet) | 6 | 0 | 32 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| operatorSetStatus | mapping(address => mapping(address => mapping(uint32 => struct IAVSDirectoryTypes.OperatorSetRegistrationStatus))) | 7 | 0 | 32 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| __gap | uint256[42] | 8 | 0 | 1344 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| _operatorSetStrategies | mapping(bytes32 => struct EnumerableSet.AddressSet) | 7 | 0 | 32 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| operatorSetStatus | mapping(address => mapping(address => mapping(uint32 => struct IAVSDirectoryTypes.OperatorSetRegistrationStatus))) | 8 | 0 | 32 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
| __gap | uint256[41] | 9 | 0 | 1312 | src/contracts/core/AVSDirectoryStorage.sol:AVSDirectoryStorage |
8 changes: 4 additions & 4 deletions docs/storage-report/AllocationManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
| _maxMagnitudeHistory | mapping(address => mapping(contract IStrategy => struct Snapshots.DefaultWadHistory)) | 151 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| encumberedMagnitude | mapping(address => mapping(contract IStrategy => uint64)) | 152 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| _operatorMagnitudeInfo | mapping(address => mapping(contract IStrategy => mapping(bytes32 => struct IAllocationManagerTypes.MagnitudeInfo))) | 153 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| modificationQueue | mapping(address => mapping(contract IStrategy => struct DoubleEndedQueue.Bytes32Deque)) | 154 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| deallocationQueue | mapping(address => mapping(contract IStrategy => struct DoubleEndedQueue.Bytes32Deque)) | 154 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| _allocationDelayInfo | mapping(address => struct IAllocationManagerTypes.AllocationDelayInfo) | 155 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| __gap | uint256[44] | 156 | 0 | 1408 | src/contracts/core/AllocationManager.sol:AllocationManager |
| _status | uint256 | 200 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| __gap | uint256[49] | 201 | 0 | 1568 | src/contracts/core/AllocationManager.sol:AllocationManager |
| __gap | uint256[45] | 156 | 0 | 1440 | src/contracts/core/AllocationManager.sol:AllocationManager |
| _status | uint256 | 201 | 0 | 32 | src/contracts/core/AllocationManager.sol:AllocationManager |
| __gap | uint256[49] | 202 | 0 | 1568 | src/contracts/core/AllocationManager.sol:AllocationManager |
4 changes: 2 additions & 2 deletions docs/storage-report/AllocationManagerStorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
| _maxMagnitudeHistory | mapping(address => mapping(contract IStrategy => struct Snapshots.DefaultWadHistory)) | 0 | 0 | 32 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| encumberedMagnitude | mapping(address => mapping(contract IStrategy => uint64)) | 1 | 0 | 32 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| _operatorMagnitudeInfo | mapping(address => mapping(contract IStrategy => mapping(bytes32 => struct IAllocationManagerTypes.MagnitudeInfo))) | 2 | 0 | 32 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| modificationQueue | mapping(address => mapping(contract IStrategy => struct DoubleEndedQueue.Bytes32Deque)) | 3 | 0 | 32 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| deallocationQueue | mapping(address => mapping(contract IStrategy => struct DoubleEndedQueue.Bytes32Deque)) | 3 | 0 | 32 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| _allocationDelayInfo | mapping(address => struct IAllocationManagerTypes.AllocationDelayInfo) | 4 | 0 | 32 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| __gap | uint256[44] | 5 | 0 | 1408 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
| __gap | uint256[45] | 5 | 0 | 1440 | src/contracts/core/AllocationManagerStorage.sol:AllocationManagerStorage |
1 change: 1 addition & 0 deletions docs/storage-report/BackingEigen.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
| transferRestrictionsDisabledAfter | uint256 | 304 | 0 | 32 | src/contracts/token/BackingEigen.sol:BackingEigen |
| allowedFrom | mapping(address => bool) | 305 | 0 | 32 | src/contracts/token/BackingEigen.sol:BackingEigen |
| allowedTo | mapping(address => bool) | 306 | 0 | 32 | src/contracts/token/BackingEigen.sol:BackingEigen |
| isMinter | mapping(address => bool) | 307 | 0 | 32 | src/contracts/token/BackingEigen.sol:BackingEigen |
42 changes: 21 additions & 21 deletions docs/storage-report/EigenPod.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
| Name | Type | Slot | Offset | Bytes | Contract |
|-------------------------------------------------|----------------------------------------------------|------|--------|-------|------------------------------------------|
| _initialized | uint8 | 0 | 0 | 1 | src/contracts/pods/EigenPod.sol:EigenPod |
| _initializing | bool | 0 | 1 | 1 | src/contracts/pods/EigenPod.sol:EigenPod |
| _status | uint256 | 1 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| __gap | uint256[49] | 2 | 0 | 1568 | src/contracts/pods/EigenPod.sol:EigenPod |
| podOwner | address | 51 | 0 | 20 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_mostRecentWithdrawalTimestamp | uint64 | 51 | 20 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| withdrawableRestakedExecutionLayerGwei | uint64 | 52 | 0 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_hasRestaked | bool | 52 | 8 | 1 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_provenWithdrawal | mapping(bytes32 => mapping(uint64 => bool)) | 53 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| _validatorPubkeyHashToInfo | mapping(bytes32 => struct IEigenPod.ValidatorInfo) | 54 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_nonBeaconChainETHBalanceWei | uint256 | 55 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_sumOfPartialWithdrawalsClaimedGwei | uint64 | 56 | 0 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| activeValidatorCount | uint256 | 57 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| lastCheckpointTimestamp | uint64 | 58 | 0 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| currentCheckpointTimestamp | uint64 | 58 | 8 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| checkpointBalanceExitedGwei | mapping(uint64 => uint64) | 59 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| _currentCheckpoint | struct IEigenPod.Checkpoint | 60 | 0 | 64 | src/contracts/pods/EigenPod.sol:EigenPod |
| proofSubmitter | address | 62 | 0 | 20 | src/contracts/pods/EigenPod.sol:EigenPod |
| __gap | uint256[35] | 63 | 0 | 1120 | src/contracts/pods/EigenPod.sol:EigenPod |
| Name | Type | Slot | Offset | Bytes | Contract |
|-------------------------------------------------|---------------------------------------------------------|------|--------|-------|------------------------------------------|
| _initialized | uint8 | 0 | 0 | 1 | src/contracts/pods/EigenPod.sol:EigenPod |
| _initializing | bool | 0 | 1 | 1 | src/contracts/pods/EigenPod.sol:EigenPod |
| _status | uint256 | 1 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| __gap | uint256[49] | 2 | 0 | 1568 | src/contracts/pods/EigenPod.sol:EigenPod |
| podOwner | address | 51 | 0 | 20 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_mostRecentWithdrawalTimestamp | uint64 | 51 | 20 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| withdrawableRestakedExecutionLayerGwei | uint64 | 52 | 0 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_hasRestaked | bool | 52 | 8 | 1 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_provenWithdrawal | mapping(bytes32 => mapping(uint64 => bool)) | 53 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| _validatorPubkeyHashToInfo | mapping(bytes32 => struct IEigenPodTypes.ValidatorInfo) | 54 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_nonBeaconChainETHBalanceWei | uint256 | 55 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| __deprecated_sumOfPartialWithdrawalsClaimedGwei | uint64 | 56 | 0 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| activeValidatorCount | uint256 | 57 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| lastCheckpointTimestamp | uint64 | 58 | 0 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| currentCheckpointTimestamp | uint64 | 58 | 8 | 8 | src/contracts/pods/EigenPod.sol:EigenPod |
| checkpointBalanceExitedGwei | mapping(uint64 => uint64) | 59 | 0 | 32 | src/contracts/pods/EigenPod.sol:EigenPod |
| _currentCheckpoint | struct IEigenPodTypes.Checkpoint | 60 | 0 | 64 | src/contracts/pods/EigenPod.sol:EigenPod |
| proofSubmitter | address | 62 | 0 | 20 | src/contracts/pods/EigenPod.sol:EigenPod |
| __gap | uint256[35] | 63 | 0 | 1120 | src/contracts/pods/EigenPod.sol:EigenPod |
Loading
Loading