Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/interfaces/IAVSRegistrarWithSocket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
pragma solidity ^0.8.27;

import {IAVSRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IAVSRegistrar.sol";
import {ISocketRegistry} from "./ISocketRegistryV2.sol";
import {ISocketRegistryV2} from "./ISocketRegistryV2.sol";

interface IAVSRegistrarWithSocket is IAVSRegistrar, ISocketRegistry {}
interface IAVSRegistrarWithSocket is IAVSRegistrar, ISocketRegistryV2 {}
2 changes: 1 addition & 1 deletion src/interfaces/ISocketRegistryV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface ISocketRegistryEvents {
event OperatorSocketSet(address indexed operator, string socket);
}

interface ISocketRegistry is ISocketRegistryErrors, ISocketRegistryEvents {
interface ISocketRegistryV2 is ISocketRegistryErrors, ISocketRegistryEvents {
/**
* @notice Gets the socket for an operator.
* @param operator The operator to get the socket for.
Expand Down
6 changes: 3 additions & 3 deletions src/middlewareV2/registrar/modules/SocketRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.27;

import {ISocketRegistry} from "../../../interfaces/ISocketRegistryV2.sol";
import {ISocketRegistryV2} from "../../../interfaces/ISocketRegistryV2.sol";
import {SocketRegistryStorage} from "./SocketRegistryStorage.sol";
import {
OperatorSetLib,
Expand All @@ -13,14 +13,14 @@ import {
abstract contract SocketRegistry is SocketRegistryStorage {
using OperatorSetLib for OperatorSet;

/// @inheritdoc ISocketRegistry
/// @inheritdoc ISocketRegistryV2
function getOperatorSocket(
address operator
) external view returns (string memory) {
return _operatorToSocket[operator];
}

/// @inheritdoc ISocketRegistry
/// @inheritdoc ISocketRegistryV2
function updateSocket(address operator, string memory socket) external {
require(msg.sender == operator, CallerNotOperator());
_setOperatorSocket(operator, socket);
Expand Down
4 changes: 2 additions & 2 deletions src/middlewareV2/registrar/modules/SocketRegistryStorage.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.12;

import {ISocketRegistry} from "../../../interfaces/ISocketRegistryV2.sol";
import {ISocketRegistryV2} from "../../../interfaces/ISocketRegistryV2.sol";

/**
* @title Storage variables for the `SocketRegistry` contract.
* @author Layr Labs, Inc.
*/
abstract contract SocketRegistryStorage is ISocketRegistry {
abstract contract SocketRegistryStorage is ISocketRegistryV2 {
/**
*
* STATE
Expand Down