Skip to content

Commit f2134de

Browse files
committed
refactor: remove IRegistry
1 parent 3c38269 commit f2134de

File tree

5 files changed

+4
-22
lines changed

5 files changed

+4
-22
lines changed

src/IndexRegistry.sol

Lines changed: 1 addition & 1 deletion
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 {IndexRegistryStorage} from "./IndexRegistryStorage.sol";
4+
import {IIndexRegistry,IndexRegistryStorage} from "./IndexRegistryStorage.sol";
55
import {IRegistryCoordinator} from "./interfaces/IRegistryCoordinator.sol";
66

77
/**

src/interfaces/IBLSApkRegistry.sol

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

4-
import {IRegistry} from "./IRegistry.sol";
54
import {BN254} from "../libraries/BN254.sol";
65

76
interface IBLSApkRegistryErrors {
@@ -73,7 +72,7 @@ interface IBLSApkRegistryEvents is IBLSApkRegistryTypes {
7372
event OperatorRemovedFromQuorums(address operator, bytes32 operatorId, bytes quorumNumbers);
7473
}
7574

76-
interface IBLSApkRegistry is IRegistry, IBLSApkRegistryErrors, IBLSApkRegistryEvents {
75+
interface IBLSApkRegistry is IBLSApkRegistryErrors, IBLSApkRegistryEvents {
7776
/// STORAGE
7877

7978
/// @notice Returns the address of the registry coordinator contract.

src/interfaces/IIndexRegistry.sol

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

4-
import {IRegistry} from "./IRegistry.sol";
5-
64
interface IIndexRegistryErrors {
75
/// @notice Thrown when a function is called by an address that is not the RegistryCoordinator.
86
error OnlyRegistryCoordinator();
@@ -42,7 +40,7 @@ interface IIndexRegistryEvents is IIndexRegistryTypes {
4240
);
4341
}
4442

45-
interface IIndexRegistry is IRegistry, IIndexRegistryErrors, IIndexRegistryEvents {
43+
interface IIndexRegistry is IIndexRegistryErrors, IIndexRegistryEvents {
4644
/// @notice Returns the special identifier used to indicate a non-existent operator.
4745
/// @return The bytes32 constant OPERATOR_DOES_NOT_EXIST_ID.
4846
function OPERATOR_DOES_NOT_EXIST_ID() external pure returns (bytes32);

src/interfaces/IRegistry.sol

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/interfaces/IStakeRegistry.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import {IDelegationManager} from
55
"eigenlayer-contracts/src/contracts/interfaces/IDelegationManager.sol";
66
import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol";
77

8-
import {IRegistry} from "./IRegistry.sol";
9-
108
enum StakeType {
119
TOTAL_DELEGATED,
1210
TOTAL_SLASHABLE
@@ -42,7 +40,7 @@ interface IStakeRegistryErrors {
4240
* @title Interface for a `Registry` that keeps track of stakes of operators for up to 256 quorums.
4341
* @author Layr Labs, Inc.
4442
*/
45-
interface IStakeRegistry is IRegistry, IStakeRegistryErrors {
43+
interface IStakeRegistry is IStakeRegistryErrors {
4644
// DATA STRUCTURES
4745

4846
/// @notice struct used to store the stakes of an individual operator or the sum of all operators' stakes, for storage

0 commit comments

Comments
 (0)