-
Notifications
You must be signed in to change notification settings - Fork 114
feat: update registry coordinator for new createOperatorSets
#544
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
base: release-dev/ux-updates
Are you sure you want to change the base?
Changes from all commits
aaf205f
6acccbc
2b08af7
49c0835
ce1db86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,10 @@ abstract contract SlashingRegistryCoordinatorStorage is ISlashingRegistryCoordin | |
| /// @notice the Index Registry contract that will keep track of operators' indexes | ||
| IIndexRegistry public immutable indexRegistry; | ||
|
|
||
| /// @notice For delegated stake quorums, the address that is set to slash | ||
| /// @dev This address is set to the burn address as 0 addresses are not valid slasher addresses | ||
| address public constant DELEGATED_STAKE_SLASHER = 0x00000000000000000000000000000000000E16E4; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| /// EigenLayer contracts | ||
| /// @notice the AllocationManager that tracks OperatorSets and Slashing in EigenLayer | ||
| IAllocationManager public immutable allocationManager; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,8 +19,6 @@ import {IIndexRegistry} from "../../src/interfaces/IIndexRegistry.sol"; | |
| import {ISlashingRegistryCoordinator} from "../../src/interfaces/ISlashingRegistryCoordinator.sol"; | ||
| import {ISocketRegistry} from "../../src/interfaces/ISocketRegistry.sol"; | ||
| import {IPauserRegistry} from "eigenlayer-contracts/src/contracts/interfaces/IPauserRegistry.sol"; | ||
| import {IAllocationManager} from | ||
| "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol"; | ||
| import {IDelegationManager} from | ||
| "eigenlayer-contracts/src/contracts/interfaces/IDelegationManager.sol"; | ||
| import {IAVSDirectory} from "eigenlayer-contracts/src/contracts/interfaces/IAVSDirectory.sol"; | ||
|
|
@@ -35,6 +33,7 @@ import { | |
| OperatorSet, | ||
| IAllocationManagerTypes | ||
| } from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol"; | ||
| import {AllocationManager} from "eigenlayer-contracts/src/contracts/core/AllocationManager.sol"; | ||
| import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
| import { | ||
| ISignatureUtilsMixin, | ||
|
|
@@ -220,6 +219,7 @@ contract EigenDATest is Test { | |
| IStrategyManager public strategyManager; | ||
|
|
||
| function setUp() public virtual { | ||
| vm.skip(true); // TODO: change fork to using Hoodi once DA migrates | ||
| // Setup the Holesky fork and load EigenDA deployment data | ||
| eigenDAData = _setupEigenDAFork("test/utils"); | ||
|
|
||
|
|
@@ -687,7 +687,7 @@ contract EigenDATest is Test { | |
|
|
||
| vm.startPrank(serviceManagerOwner); | ||
| registryCoordinator.createSlashableStakeQuorum( | ||
| operatorSetParam, minimumStake, strategyParams, lookAheadPeriod | ||
| operatorSetParam, minimumStake, strategyParams, lookAheadPeriod, serviceManagerOwner | ||
| ); | ||
| vm.stopPrank(); | ||
| } | ||
|
|
@@ -787,16 +787,16 @@ contract EigenDATest is Test { | |
| serviceManager.setAppointee( | ||
| address(registryCoordinator), | ||
| allocationManagerAddr, | ||
| IAllocationManager.createOperatorSets.selector | ||
| bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])")) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Guessing this is because there's now two
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup :) |
||
| ); | ||
| serviceManager.setAppointee( | ||
| serviceManagerOwner, | ||
| allocationManagerAddr, | ||
| IAllocationManager.updateAVSMetadataURI.selector | ||
| AllocationManager.updateAVSMetadataURI.selector | ||
| ); | ||
|
|
||
| serviceManager.setAppointee( | ||
| serviceManagerOwner, allocationManagerAddr, IAllocationManager.setAVSRegistrar.selector | ||
| serviceManagerOwner, allocationManagerAddr, AllocationManager.setAVSRegistrar.selector | ||
| ); | ||
|
|
||
| console.log("Appointees set for required permissions"); | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe want to double check pragmas, especially for ALM view (must be >=0.8.29).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pragmas should be fine since they don't need to be 0.8.29, only ALM, right?