Skip to content

Commit 305e4e0

Browse files
0xClandestineypatil12
authored andcommitted
fix(I-03): rename ISocketRegistry -> ISocketRegistryV2 (#511)
**Motivation:** We now have two `ISocketRegistry` interfaces, and need to differentiate for clarity. **Modifications:** - Renamed **new** `ISocketRegistry` -> `ISocketRegistryV2` **Result:** Improved clarity.
1 parent b1211b4 commit 305e4e0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/interfaces/IAVSRegistrarWithSocket.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
pragma solidity ^0.8.27;
33

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

7-
interface IAVSRegistrarWithSocket is IAVSRegistrar, ISocketRegistry {}
7+
interface IAVSRegistrarWithSocket is IAVSRegistrar, ISocketRegistryV2 {}

src/interfaces/ISocketRegistryV2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface ISocketRegistryEvents {
1414
event OperatorSocketSet(address indexed operator, string socket);
1515
}
1616

17-
interface ISocketRegistry is ISocketRegistryErrors, ISocketRegistryEvents {
17+
interface ISocketRegistryV2 is ISocketRegistryErrors, ISocketRegistryEvents {
1818
/**
1919
* @notice Gets the socket for an operator.
2020
* @param operator The operator to get the socket for.

src/middlewareV2/registrar/modules/SocketRegistry.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: BUSL-1.1
22
pragma solidity ^0.8.27;
33

4-
import {ISocketRegistry} from "../../../interfaces/ISocketRegistryV2.sol";
4+
import {ISocketRegistryV2} from "../../../interfaces/ISocketRegistryV2.sol";
55
import {SocketRegistryStorage} from "./SocketRegistryStorage.sol";
66
import {
77
OperatorSetLib,
@@ -13,14 +13,14 @@ import {
1313
abstract contract SocketRegistry is SocketRegistryStorage {
1414
using OperatorSetLib for OperatorSet;
1515

16-
/// @inheritdoc ISocketRegistry
16+
/// @inheritdoc ISocketRegistryV2
1717
function getOperatorSocket(
1818
address operator
1919
) external view returns (string memory) {
2020
return _operatorToSocket[operator];
2121
}
2222

23-
/// @inheritdoc ISocketRegistry
23+
/// @inheritdoc ISocketRegistryV2
2424
function updateSocket(address operator, string memory socket) external {
2525
require(msg.sender == operator, CallerNotOperator());
2626
_setOperatorSocket(operator, socket);

src/middlewareV2/registrar/modules/SocketRegistryStorage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// SPDX-License-Identifier: BUSL-1.1
22
pragma solidity ^0.8.12;
33

4-
import {ISocketRegistry} from "../../../interfaces/ISocketRegistryV2.sol";
4+
import {ISocketRegistryV2} from "../../../interfaces/ISocketRegistryV2.sol";
55

66
/**
77
* @title Storage variables for the `SocketRegistry` contract.
88
* @author Layr Labs, Inc.
99
*/
10-
abstract contract SocketRegistryStorage is ISocketRegistry {
10+
abstract contract SocketRegistryStorage is ISocketRegistryV2 {
1111
/**
1212
*
1313
* STATE

0 commit comments

Comments
 (0)