From bb25f8942b0325bddbca9717c2abcbe9a6dbf3f8 Mon Sep 17 00:00:00 2001 From: 0xrlawrence Date: Mon, 31 Aug 2026 17:06:21 +0800 Subject: [PATCH] feat: emit events when the aggregator and verifier bitmap change 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 --- contracts/src/core/AlignedLayerServiceManager.sol | 2 ++ contracts/src/core/IAlignedLayerServiceManager.sol | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/contracts/src/core/AlignedLayerServiceManager.sol b/contracts/src/core/AlignedLayerServiceManager.sol index 79bd310fed..f1a23bb29c 100644 --- a/contracts/src/core/AlignedLayerServiceManager.sol +++ b/contracts/src/core/AlignedLayerServiceManager.sol @@ -254,6 +254,7 @@ contract AlignedLayerServiceManager is function setDisabledVerifiers(uint256 bitmap) external onlyOwner { disabledVerifiers = bitmap; + emit DisabledVerifiersUpdated(bitmap); } function verifyBatchInclusion( @@ -324,6 +325,7 @@ contract AlignedLayerServiceManager is function setAggregator(address _alignedAggregator) public onlyOwner { + emit AggregatorUpdated(alignedAggregator, _alignedAggregator); alignedAggregator = _alignedAggregator; } diff --git a/contracts/src/core/IAlignedLayerServiceManager.sol b/contracts/src/core/IAlignedLayerServiceManager.sol index 72c3cff5ff..e0a06fab9a 100644 --- a/contracts/src/core/IAlignedLayerServiceManager.sol +++ b/contracts/src/core/IAlignedLayerServiceManager.sol @@ -22,6 +22,11 @@ interface IAlignedLayerServiceManager { event BatcherBalanceUpdated(address indexed batcher, uint256 newBalance); event VerifierDisabled(uint8 indexed verifierIdx); event VerifierEnabled(uint8 indexed verifierIdx); + event AggregatorUpdated( + address indexed previousAggregator, + address indexed newAggregator + ); + event DisabledVerifiersUpdated(uint256 bitmap); // ERRORS error BatchAlreadySubmitted(bytes32 batchIdentifierHash); // 3102f10c