diff --git a/src/RegistryCoordinator.sol b/src/RegistryCoordinator.sol index 6ffb1917..af65140e 100644 --- a/src/RegistryCoordinator.sol +++ b/src/RegistryCoordinator.sol @@ -9,7 +9,6 @@ import { OperatorSet, IAllocationManagerTypes } from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol"; -import {ISocketUpdater} from "./interfaces/ISocketUpdater.sol"; import {IBLSApkRegistry, IBLSApkRegistryTypes} from "./interfaces/IBLSApkRegistry.sol"; import {IStakeRegistry, IStakeRegistryTypes} from "./interfaces/IStakeRegistry.sol"; import {IIndexRegistry} from "./interfaces/IIndexRegistry.sol"; @@ -45,7 +44,6 @@ contract RegistryCoordinator is OwnableUpgradeable, RegistryCoordinatorStorage, AVSRegistrar, - ISocketUpdater, ISignatureUtils { using BitmapUtils for *; @@ -401,7 +399,7 @@ contract RegistryCoordinator is /// @inheritdoc IRegistryCoordinator function updateSocket( string memory socket - ) external override(IRegistryCoordinator, ISocketUpdater) { + ) external override(IRegistryCoordinator) { require(_operatorInfo[msg.sender].status == OperatorStatus.REGISTERED, NotRegistered()); emit OperatorSocketUpdate(_operatorInfo[msg.sender].operatorId, socket); } diff --git a/src/interfaces/IRegistryCoordinator.sol b/src/interfaces/IRegistryCoordinator.sol index 97a6a3b9..317a050c 100644 --- a/src/interfaces/IRegistryCoordinator.sol +++ b/src/interfaces/IRegistryCoordinator.sol @@ -148,6 +148,12 @@ interface IRegistryCoordinatorEvents is IRegistryCoordinatorTypes { /// @param quorumNumber The identifier of the quorum being updated. /// @param blocknumber The block number at which the quorum update occurred. event QuorumBlockNumberUpdated(uint8 indexed quorumNumber, uint256 blocknumber); + + /// @notice Emitted when an operator's socket is updated. + /// @dev Emitted in updateSocket(). + /// @param operatorId The unique identifier of the operator (BLS public key hash). + /// @param socket The new socket address for the operator (typically an IP address). + event OperatorSocketUpdate(bytes32 indexed operatorId, string socket); } interface IRegistryCoordinator is IRegistryCoordinatorErrors, IRegistryCoordinatorEvents { diff --git a/src/interfaces/ISocketUpdater.sol b/src/interfaces/ISocketUpdater.sol deleted file mode 100644 index 921b1a46..00000000 --- a/src/interfaces/ISocketUpdater.sol +++ /dev/null @@ -1,22 +0,0 @@ -// SPDX-License-Identifier: BUSL-1.1 -pragma solidity ^0.8.27; - -/** - * @title Interface for an `ISocketUpdater` where operators can update their sockets. - * @author Layr Labs, Inc. - */ -interface ISocketUpdater { - // EVENTS - - event OperatorSocketUpdate(bytes32 indexed operatorId, string socket); - - // FUNCTIONS - - /** - * @notice Updates the socket of the msg.sender given they are a registered operator - * @param socket is the new socket of the operator - */ - function updateSocket( - string memory socket - ) external; -}