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: Remove DeregisterOperatorOperatorSets function #459

Conversation

maximopalopoli
Copy link
Contributor

What Changed?

This PR removes DeregisterOperatorOperatorSets from avsRegistry's chainWriter. The reason of this is that should not be part of SDK, since new flow's deregisterOperator should not be accessed from any other location than the AllocationManager. This is because the register operator method of the new flow can only be called from there (otherwise there will be raised an OnlyAllocationManager() error). Thus, in the new flow the entry points to the operators registration or deregistration to AVSs should be RegisterForOperatorSets to register and DeregisterFromOperatorSets to deregister.

Reviewer Checklist

  • Code is well-documented
  • Code adheres to Go naming conventions
  • Code deprecates any old functionality before removing it

@maximopalopoli maximopalopoli marked this pull request as ready for review February 3, 2025 15:56
@MegaRedHand MegaRedHand added this pull request to the merge queue Feb 7, 2025
Merged via the queue into Layr-Labs:dev with commit 31658f1 Feb 7, 2025
9 checks passed
@MegaRedHand MegaRedHand deleted the refactor/remove-Deregister-Operator-Operator-Sets-fn branch February 7, 2025 20:22
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.

3 participants