Skip to content

Commit

Permalink
refactor: remove ISocketUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Jan 24, 2025
1 parent debf97e commit 2bf7961
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
4 changes: 1 addition & 3 deletions src/RegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -45,7 +44,6 @@ contract RegistryCoordinator is
OwnableUpgradeable,
RegistryCoordinatorStorage,
AVSRegistrar,
ISocketUpdater,
ISignatureUtils
{
using BitmapUtils for *;
Expand Down Expand Up @@ -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);
}
Expand Down
6 changes: 6 additions & 0 deletions src/interfaces/IRegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
22 changes: 0 additions & 22 deletions src/interfaces/ISocketUpdater.sol

This file was deleted.

0 comments on commit 2bf7961

Please sign in to comment.