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

registry coordinator refactor #350

Closed
wants to merge 3 commits into from

Conversation

ypatil12
Copy link
Contributor

@ypatil12 ypatil12 commented Jan 7, 2025

  • Use a single _registerOperator function, mimicking how there is a single _deregisterOperator internal function
  • Remove M2Quorum storage, check if the operatorSet is M2 or Slashing by querying the allocationManager
  • Allow parallel M2 & slashing registrations. Only cutover when becomeOperatorSetAVS is called

*/
function becomeOperatorSetAVS() external onlyOwner {
// Enable operator sets mode
isOperatorSetAVS = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mentioned this in the original PR but imo this should be the default setting and have this set to true in the initialize function

* @param data Custom data containing The G1 & G2 public keys of the operator, and a signature proving their ownership
* @dev This function is an AllocationManager-based registration where the msg.sender is the AllocationManager
* @dev `data` is ignored if the caller has previously registered a public key
*/
function registerOperator(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: for this function, since its being called by the ALM !_validateM2Quorums(quorumNumbers); is not needed as its already validated by the ALM

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for registration, M2 quorums can only be registered for through the legacy interface and OperatorSet quorums can only be registered through the new ALM callback. Similarly for deregistering, there are 2 separate interfaces for the respective quorum types.

@ypatil12 ypatil12 closed this Jan 23, 2025
@ypatil12 ypatil12 deleted the yash/rc-refactor branch January 23, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants