@@ -7,38 +7,29 @@ import {SocketRegistryStorage} from "./SocketRegistryStorage.sol";
7
7
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol " ;
8
8
9
9
/**
10
- * @title A `Registry` that keeps track of operator sockets.
10
+ * @title A `Registry` that keeps track of operator sockets (arbitrary strings) .
11
11
* @author Layr Labs, Inc.
12
12
*/
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
15
15
modifier onlySlashingRegistryCoordinator () {
16
16
require (msg .sender == slashingRegistryCoordinator, OnlySlashingRegistryCoordinator ());
17
17
_;
18
18
}
19
19
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
-
29
20
constructor (
30
21
ISlashingRegistryCoordinator _slashingRegistryCoordinator
31
22
) SocketRegistryStorage (address (_slashingRegistryCoordinator)) {}
32
23
33
- /// @notice sets the socket for an operator only callable by the RegistryCoordinator
24
+ /// @inheritdoc ISocketRegistry
34
25
function setOperatorSocket (
35
26
bytes32 _operatorId ,
36
27
string memory _socket
37
28
) external onlySlashingRegistryCoordinator {
38
29
operatorIdToSocket[_operatorId] = _socket;
39
30
}
40
31
41
- /// @notice gets the stored socket for an operator
32
+ /// @inheritdoc ISocketRegistry
42
33
function getOperatorSocket (
43
34
bytes32 _operatorId
44
35
) external view returns (string memory ) {
0 commit comments