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

Permissioned operator churn #118

Merged
merged 6 commits into from
Aug 7, 2023
Merged

Conversation

gpsanant
Copy link
Contributor

@gpsanant gpsanant commented Aug 7, 2023

Added churner role and tests for it

Tests summary/updates:

  • Added utility for churner to sign on OperatorChurnApprovals
  • Added tests for
    • Expired signatures
    • Invalid signatures
    • Added churner signatures to existing happy path test cases
    • Abstracted internal logic from operator kicking tests

Comment on lines 64 to 67
/// @notice the address of the entity allowed to sign off on operators getting kicked out of the AVS during registration
address public churner;
/// @notice the nonce of the churner used in EIP-712 signatures
uint256 public churnerNonce;
Copy link
Contributor

Choose a reason for hiding this comment

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

for naming: the description suggests that this entity is really a churnApprover or similar.

am also thinking that 'salts' may make more sense than nonces here, but we can debate a bit -- the intended usage is important to consider

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to churn approver, would prefer to keep the nonce logic for now since we expect this to not have many race conditions

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed offline that salt is more flexible here / nonce is not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

Comment on lines 89 to 90
// set the churner
churner = _churner;
Copy link
Contributor

Choose a reason for hiding this comment

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

should presumably have an event associated to this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@ChaoticWalrus
Copy link
Contributor

Gave some quick input on this PR. @gpsanant can you provide a brief summary of test changes / updates here?

@gpsanant gpsanant merged commit baec568 into multiquorums Aug 7, 2023
6 of 8 checks passed
@gpsanant gpsanant deleted the permissioned-operator-churn branch August 7, 2023 22:46
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