Skip to content

Commit 2bf7961

Browse files
committed
refactor: remove ISocketUpdater
1 parent debf97e commit 2bf7961

File tree

3 files changed

+7
-25
lines changed

3 files changed

+7
-25
lines changed

src/RegistryCoordinator.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
OperatorSet,
1010
IAllocationManagerTypes
1111
} from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
12-
import {ISocketUpdater} from "./interfaces/ISocketUpdater.sol";
1312
import {IBLSApkRegistry, IBLSApkRegistryTypes} from "./interfaces/IBLSApkRegistry.sol";
1413
import {IStakeRegistry, IStakeRegistryTypes} from "./interfaces/IStakeRegistry.sol";
1514
import {IIndexRegistry} from "./interfaces/IIndexRegistry.sol";
@@ -45,7 +44,6 @@ contract RegistryCoordinator is
4544
OwnableUpgradeable,
4645
RegistryCoordinatorStorage,
4746
AVSRegistrar,
48-
ISocketUpdater,
4947
ISignatureUtils
5048
{
5149
using BitmapUtils for *;
@@ -401,7 +399,7 @@ contract RegistryCoordinator is
401399
/// @inheritdoc IRegistryCoordinator
402400
function updateSocket(
403401
string memory socket
404-
) external override(IRegistryCoordinator, ISocketUpdater) {
402+
) external override(IRegistryCoordinator) {
405403
require(_operatorInfo[msg.sender].status == OperatorStatus.REGISTERED, NotRegistered());
406404
emit OperatorSocketUpdate(_operatorInfo[msg.sender].operatorId, socket);
407405
}

src/interfaces/IRegistryCoordinator.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ interface IRegistryCoordinatorEvents is IRegistryCoordinatorTypes {
148148
/// @param quorumNumber The identifier of the quorum being updated.
149149
/// @param blocknumber The block number at which the quorum update occurred.
150150
event QuorumBlockNumberUpdated(uint8 indexed quorumNumber, uint256 blocknumber);
151+
152+
/// @notice Emitted when an operator's socket is updated.
153+
/// @dev Emitted in updateSocket().
154+
/// @param operatorId The unique identifier of the operator (BLS public key hash).
155+
/// @param socket The new socket address for the operator (typically an IP address).
156+
event OperatorSocketUpdate(bytes32 indexed operatorId, string socket);
151157
}
152158

153159
interface IRegistryCoordinator is IRegistryCoordinatorErrors, IRegistryCoordinatorEvents {

src/interfaces/ISocketUpdater.sol

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)