@@ -7,38 +7,29 @@ import {SocketRegistryStorage} from "./SocketRegistryStorage.sol";
77import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol " ;
88
99/**
10- * @title A `Registry` that keeps track of operator sockets.
10+ * @title A `Registry` that keeps track of operator sockets (arbitrary strings) .
1111 * @author Layr Labs, Inc.
1212 */
13- contract SocketRegistry is ISocketRegistry , SocketRegistryStorage {
14- /// @notice A modifier that only allows the RegistryCoordinator to call a function
13+ contract SocketRegistry is SocketRegistryStorage {
14+ /// @notice A modifier that only allows the SlashingRegistryCoordinator to call a function
1515 modifier onlySlashingRegistryCoordinator () {
1616 require (msg .sender == slashingRegistryCoordinator, OnlySlashingRegistryCoordinator ());
1717 _;
1818 }
1919
20- /// @notice A modifier that only allows the owner of the SlashingRegistryCoordinator to call a function
21- modifier onlyCoordinatorOwner () {
22- require (
23- msg .sender == Ownable (slashingRegistryCoordinator).owner (),
24- OnlySlashingRegistryCoordinatorOwner ()
25- );
26- _;
27- }
28-
2920 constructor (
3021 ISlashingRegistryCoordinator _slashingRegistryCoordinator
3122 ) SocketRegistryStorage (address (_slashingRegistryCoordinator)) {}
3223
33- /// @notice sets the socket for an operator only callable by the RegistryCoordinator
24+ /// @inheritdoc ISocketRegistry
3425 function setOperatorSocket (
3526 bytes32 _operatorId ,
3627 string memory _socket
3728 ) external onlySlashingRegistryCoordinator {
3829 operatorIdToSocket[_operatorId] = _socket;
3930 }
4031
41- /// @notice gets the stored socket for an operator
32+ /// @inheritdoc ISocketRegistry
4233 function getOperatorSocket (
4334 bytes32 _operatorId
4435 ) external view returns (string memory ) {
0 commit comments