Skip to content

feat: emit events when the aggregator and verifier bitmap change - #2298

Open
0xrlawrence wants to merge 1 commit into
yetanotherco:stagingfrom
0xrlawrence:feat/emit-events-for-privileged-setters
Open

feat: emit events when the aggregator and verifier bitmap change#2298
0xrlawrence wants to merge 1 commit into
yetanotherco:stagingfrom
0xrlawrence:feat/emit-events-for-privileged-setters

Conversation

@0xrlawrence

Copy link
Copy Markdown

Description

disableVerifier and enableVerifier each emit an event, but the two other privileged setters on AlignedLayerServiceManager are silent:

  • setAggregator changes the only address permitted to call respondToTaskV2. A handover currently leaves no on-chain trace, so anything watching the AVS has to poll the storage slot to notice.
  • setDisabledVerifiers can rewrite the entire bitmap in one call, which bypasses the per-index VerifierDisabled / VerifierEnabled events completely.

Adds AggregatorUpdated and DisabledVerifiersUpdated and emits them from both. AggregatorUpdated carries the previous address as well as the new one so indexers can follow the handover without keeping their own copy of the current value.

No storage layout or behaviour change; events only.

Type of change

  • New feature

Checklist

  • “Hotfix” to testnet, everything else to staging

Verified with forge build on staging.

disableVerifier and enableVerifier each emit an event, but the two other
privileged setters on AlignedLayerServiceManager are silent:

- setAggregator changes the only address allowed to call respondToTaskV2,
  so a change there is worth watching for off-chain.
- setDisabledVerifiers can rewrite the whole bitmap at once, bypassing the
  per-index events entirely.

Add AggregatorUpdated and DisabledVerifiersUpdated and emit them from both.
AggregatorUpdated carries the previous address so indexers can follow the
handover without keeping their own copy of the current value.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant