From 0d5192b6234a9d6f8356c70ca69a22165d5fec39 Mon Sep 17 00:00:00 2001 From: Kresh Date: Thu, 27 Jun 2024 12:11:00 +0400 Subject: [PATCH] renamings --- src/contracts/DelegatorFactory.sol | 6 ++-- src/contracts/SlasherFactory.sol | 6 ++-- .../{NonMigratableEntity.sol => Entity.sol} | 6 ++-- ...{NonMigratablesFactory.sol => Factory.sol} | 16 ++++----- ...Delegator.sol => FullRestakeDelegator.sol} | 36 +++++++++---------- ...egator.sol => NetworkRestakeDelegator.sol} | 36 +++++++++---------- src/contracts/slasher/Slasher.sol | 4 +-- src/contracts/slasher/VetoSlasher.sol | 4 +-- src/interfaces/IDelegatorFactory.sol | 4 +-- src/interfaces/ISlasherFactory.sol | 4 +-- .../{INonMigratableEntity.sol => IEntity.sol} | 2 +- ...NonMigratablesFactory.sol => IFactory.sol} | 2 +- ...elegator.sol => IFullRestakeDelegator.sol} | 2 +- ...gator.sol => INetworkRestakeDelegator.sol} | 2 +- 14 files changed, 65 insertions(+), 65 deletions(-) rename src/contracts/common/{NonMigratableEntity.sol => Entity.sol} (65%) rename src/contracts/common/{NonMigratablesFactory.sol => Factory.sol} (72%) rename src/contracts/delegator/{FullRestakingDelegator.sol => FullRestakeDelegator.sol} (91%) rename src/contracts/delegator/{NetworkRestakingDelegator.sol => NetworkRestakeDelegator.sol} (90%) rename src/interfaces/common/{INonMigratableEntity.sol => IEntity.sol} (87%) rename src/interfaces/common/{INonMigratablesFactory.sol => IFactory.sol} (95%) rename src/interfaces/delegator/{IFullRestakingDelegator.sol => IFullRestakeDelegator.sol} (97%) rename src/interfaces/delegator/{INetworkRestakingDelegator.sol => INetworkRestakeDelegator.sol} (97%) diff --git a/src/contracts/DelegatorFactory.sol b/src/contracts/DelegatorFactory.sol index 1a7a430e..75be1da0 100644 --- a/src/contracts/DelegatorFactory.sol +++ b/src/contracts/DelegatorFactory.sol @@ -1,10 +1,10 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {NonMigratablesFactory} from "src/contracts/common/NonMigratablesFactory.sol"; +import {Factory} from "src/contracts/common/Factory.sol"; import {IDelegatorFactory} from "src/interfaces/IDelegatorFactory.sol"; -contract DelegatorFactory is NonMigratablesFactory, IDelegatorFactory { - constructor(address owner_) NonMigratablesFactory(owner_) {} +contract DelegatorFactory is Factory, IDelegatorFactory { + constructor(address owner_) Factory(owner_) {} } diff --git a/src/contracts/SlasherFactory.sol b/src/contracts/SlasherFactory.sol index 9c22425b..4268ca7e 100644 --- a/src/contracts/SlasherFactory.sol +++ b/src/contracts/SlasherFactory.sol @@ -1,10 +1,10 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {NonMigratablesFactory} from "src/contracts/common/NonMigratablesFactory.sol"; +import {Factory} from "src/contracts/common/Factory.sol"; import {ISlasherFactory} from "src/interfaces/ISlasherFactory.sol"; -contract SlasherFactory is NonMigratablesFactory, ISlasherFactory { - constructor(address owner_) NonMigratablesFactory(owner_) {} +contract SlasherFactory is Factory, ISlasherFactory { + constructor(address owner_) Factory(owner_) {} } diff --git a/src/contracts/common/NonMigratableEntity.sol b/src/contracts/common/Entity.sol similarity index 65% rename from src/contracts/common/NonMigratableEntity.sol rename to src/contracts/common/Entity.sol index 34b954ba..a8cc26bb 100644 --- a/src/contracts/common/NonMigratableEntity.sol +++ b/src/contracts/common/Entity.sol @@ -1,17 +1,17 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {INonMigratableEntity} from "src/interfaces/common/INonMigratableEntity.sol"; +import {IEntity} from "src/interfaces/common/IEntity.sol"; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; -abstract contract NonMigratableEntity is Initializable, INonMigratableEntity { +abstract contract Entity is Initializable, IEntity { constructor() { _disableInitializers(); } /** - * @inheritdoc INonMigratableEntity + * @inheritdoc IEntity */ function initialize(bytes memory data) external initializer { _initialize(data); diff --git a/src/contracts/common/NonMigratablesFactory.sol b/src/contracts/common/Factory.sol similarity index 72% rename from src/contracts/common/NonMigratablesFactory.sol rename to src/contracts/common/Factory.sol index d81b88a3..dffa46e5 100644 --- a/src/contracts/common/NonMigratablesFactory.sol +++ b/src/contracts/common/Factory.sol @@ -3,14 +3,14 @@ pragma solidity 0.8.25; import {Registry} from "./Registry.sol"; -import {INonMigratableEntity} from "src/interfaces/common/INonMigratableEntity.sol"; -import {INonMigratablesFactory} from "src/interfaces/common/INonMigratablesFactory.sol"; +import {IEntity} from "src/interfaces/common/IEntity.sol"; +import {IFactory} from "src/interfaces/common/IFactory.sol"; import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol"; -contract NonMigratablesFactory is Registry, Ownable, INonMigratablesFactory { +contract Factory is Registry, Ownable, IFactory { using EnumerableSet for EnumerableSet.AddressSet; using Clones for address; @@ -19,21 +19,21 @@ contract NonMigratablesFactory is Registry, Ownable, INonMigratablesFactory { constructor(address owner_) Ownable(owner_) {} /** - * @inheritdoc INonMigratablesFactory + * @inheritdoc IFactory */ function totalImplementations() public view returns (uint64) { return uint64(_whitelistedImplementations.length()); } /** - * @inheritdoc INonMigratablesFactory + * @inheritdoc IFactory */ function implementation(uint64 index) public view returns (address) { return _whitelistedImplementations.at(index); } /** - * @inheritdoc INonMigratablesFactory + * @inheritdoc IFactory */ function whitelist(address implementation_) external onlyOwner { if (!_whitelistedImplementations.add(implementation_)) { @@ -42,11 +42,11 @@ contract NonMigratablesFactory is Registry, Ownable, INonMigratablesFactory { } /** - * @inheritdoc INonMigratablesFactory + * @inheritdoc IFactory */ function create(uint64 index, bytes memory data) external returns (address entity_) { entity_ = implementation(index).clone(); - INonMigratableEntity(entity_).initialize(data); + IEntity(entity_).initialize(data); _addEntity(entity_); } diff --git a/src/contracts/delegator/FullRestakingDelegator.sol b/src/contracts/delegator/FullRestakeDelegator.sol similarity index 91% rename from src/contracts/delegator/FullRestakingDelegator.sol rename to src/contracts/delegator/FullRestakeDelegator.sol index b780843a..b977ea9a 100644 --- a/src/contracts/delegator/FullRestakingDelegator.sol +++ b/src/contracts/delegator/FullRestakeDelegator.sol @@ -1,9 +1,9 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {NonMigratableEntity} from "src/contracts/common/NonMigratableEntity.sol"; +import {Entity} from "src/contracts/common/Entity.sol"; -import {IFullRestakingDelegator} from "src/interfaces/delegator/IFullRestakingDelegator.sol"; +import {IFullRestakeDelegator} from "src/interfaces/delegator/IFullRestakeDelegator.sol"; import {IDelegator} from "src/interfaces/delegator/IDelegator.sol"; import {IRegistry} from "src/interfaces/common/IRegistry.sol"; import {IVault} from "src/interfaces/vault/IVault.sol"; @@ -16,7 +16,7 @@ import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/acce import {Time} from "@openzeppelin/contracts/utils/types/Time.sol"; import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; -contract FullRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable, IFullRestakingDelegator { +contract FullRestakeDelegator is Entity, AccessControlUpgradeable, IFullRestakeDelegator { using Checkpoints for Checkpoints.Trace256; using Math for uint256; @@ -26,32 +26,32 @@ contract FullRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable uint64 public constant VERSION = 1; /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ bytes32 public constant NETWORK_LIMIT_SET_ROLE = keccak256("NETWORK_LIMIT_SET_ROLE"); /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ bytes32 public constant OPERATOR_NETWORK_LIMIT_SET_ROLE = keccak256("OPERATOR_NETWORK_LIMIT_SET_ROLE"); /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ address public immutable NETWORK_REGISTRY; /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ address public immutable VAULT_FACTORY; /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ address public immutable OPERATOR_VAULT_OPT_IN_SERVICE; /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ address public immutable OPERATOR_NETWORK_OPT_IN_SERVICE; @@ -91,42 +91,42 @@ contract FullRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function networkLimitIn(address network, uint48 duration) public view returns (uint256) { return _networkLimit[network].upperLookupRecent(Time.timestamp() + duration); } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function networkLimit(address network) public view returns (uint256) { return _networkLimit[network].upperLookupRecent(Time.timestamp()); } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function totalOperatorNetworkLimitIn(address network, uint48 duration) public view returns (uint256) { return _totalOperatorNetworkLimit[network].upperLookupRecent(Time.timestamp() + duration); } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function totalOperatorNetworkLimit(address network) public view returns (uint256) { return _totalOperatorNetworkLimit[network].upperLookupRecent(Time.timestamp()); } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function operatorNetworkLimitIn(address network, address operator, uint48 duration) public view returns (uint256) { return _operatorNetworkLimit[network][operator].upperLookupRecent(Time.timestamp() + duration); } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function operatorNetworkLimit(address network, address operator) public view returns (uint256) { return _operatorNetworkLimit[network][operator].upperLookupRecent(Time.timestamp()); @@ -196,7 +196,7 @@ contract FullRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function setMaxNetworkLimit(address network, uint256 amount) external { if (maxNetworkLimit[msg.sender] == amount) { @@ -215,7 +215,7 @@ contract FullRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function setNetworkLimit(address network, uint256 amount) external onlyRole(NETWORK_LIMIT_SET_ROLE) { if (amount > maxNetworkLimit[network]) { @@ -228,7 +228,7 @@ contract FullRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable } /** - * @inheritdoc IFullRestakingDelegator + * @inheritdoc IFullRestakeDelegator */ function setOperatorNetworkLimit( address network, diff --git a/src/contracts/delegator/NetworkRestakingDelegator.sol b/src/contracts/delegator/NetworkRestakeDelegator.sol similarity index 90% rename from src/contracts/delegator/NetworkRestakingDelegator.sol rename to src/contracts/delegator/NetworkRestakeDelegator.sol index b4f72276..7caf67d7 100644 --- a/src/contracts/delegator/NetworkRestakingDelegator.sol +++ b/src/contracts/delegator/NetworkRestakeDelegator.sol @@ -1,9 +1,9 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {NonMigratableEntity} from "src/contracts/common/NonMigratableEntity.sol"; +import {Entity} from "src/contracts/common/Entity.sol"; -import {INetworkRestakingDelegator} from "src/interfaces/delegator/INetworkRestakingDelegator.sol"; +import {INetworkRestakeDelegator} from "src/interfaces/delegator/INetworkRestakeDelegator.sol"; import {IDelegator} from "src/interfaces/delegator/IDelegator.sol"; import {IRegistry} from "src/interfaces/common/IRegistry.sol"; import {IVault} from "src/interfaces/vault/IVault.sol"; @@ -16,7 +16,7 @@ import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/acce import {Time} from "@openzeppelin/contracts/utils/types/Time.sol"; import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; -contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradeable, INetworkRestakingDelegator { +contract NetworkRestakeDelegator is Entity, AccessControlUpgradeable, INetworkRestakeDelegator { using Checkpoints for Checkpoints.Trace256; using Math for uint256; @@ -26,32 +26,32 @@ contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradea uint64 public constant VERSION = 1; /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ bytes32 public constant NETWORK_LIMIT_SET_ROLE = keccak256("NETWORK_LIMIT_SET_ROLE"); /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ bytes32 public constant OPERATOR_NETWORK_SHARES_SET_ROLE = keccak256("OPERATOR_NETWORK_SHARES_SET_ROLE"); /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ address public immutable NETWORK_REGISTRY; /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ address public immutable VAULT_FACTORY; /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ address public immutable OPERATOR_VAULT_OPT_IN_SERVICE; /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ address public immutable OPERATOR_NETWORK_OPT_IN_SERVICE; @@ -91,35 +91,35 @@ contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradea } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function networkLimitIn(address network, uint48 duration) public view returns (uint256) { return _networkLimit[network].upperLookupRecent(Time.timestamp() + duration); } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function networkLimit(address network) public view returns (uint256) { return _networkLimit[network].upperLookupRecent(Time.timestamp()); } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function totalOperatorNetworkSharesIn(address network, uint48 duration) public view returns (uint256) { return _totalOperatorNetworkShares[network].upperLookupRecent(Time.timestamp() + duration); } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function totalOperatorNetworkShares(address network) public view returns (uint256) { return _totalOperatorNetworkShares[network].upperLookupRecent(Time.timestamp()); } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function operatorNetworkSharesIn( address network, @@ -130,7 +130,7 @@ contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradea } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function operatorNetworkShares(address network, address operator) public view returns (uint256) { return _operatorNetworkShares[network][operator].upperLookupRecent(Time.timestamp()); @@ -199,7 +199,7 @@ contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradea } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function setMaxNetworkLimit(address network, uint256 amount) external { if (maxNetworkLimit[msg.sender] == amount) { @@ -218,7 +218,7 @@ contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradea } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function setNetworkLimit(address network, uint256 amount) external onlyRole(NETWORK_LIMIT_SET_ROLE) { if (amount > maxNetworkLimit[network]) { @@ -231,7 +231,7 @@ contract NetworkRestakingDelegator is NonMigratableEntity, AccessControlUpgradea } /** - * @inheritdoc INetworkRestakingDelegator + * @inheritdoc INetworkRestakeDelegator */ function setOperatorNetworkShares( address network, diff --git a/src/contracts/slasher/Slasher.sol b/src/contracts/slasher/Slasher.sol index a73def21..9b143952 100644 --- a/src/contracts/slasher/Slasher.sol +++ b/src/contracts/slasher/Slasher.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {NonMigratableEntity} from "src/contracts/common/NonMigratableEntity.sol"; +import {Entity} from "src/contracts/common/Entity.sol"; import {ISlasher} from "src/interfaces/slasher/ISlasher.sol"; import {IRegistry} from "src/interfaces/common/IRegistry.sol"; @@ -12,7 +12,7 @@ import {IOptInService} from "src/interfaces/service/IOptInService.sol"; import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; -contract Slasher is NonMigratableEntity, ISlasher { +contract Slasher is Entity, ISlasher { /** * @inheritdoc ISlasher */ diff --git a/src/contracts/slasher/VetoSlasher.sol b/src/contracts/slasher/VetoSlasher.sol index d26a0a4b..2c8809ce 100644 --- a/src/contracts/slasher/VetoSlasher.sol +++ b/src/contracts/slasher/VetoSlasher.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {NonMigratableEntity} from "src/contracts/common/NonMigratableEntity.sol"; +import {Entity} from "src/contracts/common/Entity.sol"; import {IVetoSlasher} from "src/interfaces/slasher/IVetoSlasher.sol"; import {IRegistry} from "src/interfaces/common/IRegistry.sol"; @@ -18,7 +18,7 @@ import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/acce import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {SafeCast} from "@openzeppelin/contracts/utils/math/SafeCast.sol"; -contract VetoSlasher is NonMigratableEntity, AccessControlUpgradeable, IVetoSlasher { +contract VetoSlasher is Entity, AccessControlUpgradeable, IVetoSlasher { using Math for uint256; using SafeCast for uint256; using Checkpoints for Checkpoints.Trace256; diff --git a/src/interfaces/IDelegatorFactory.sol b/src/interfaces/IDelegatorFactory.sol index 980ee1ce..9e7eba3e 100644 --- a/src/interfaces/IDelegatorFactory.sol +++ b/src/interfaces/IDelegatorFactory.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {INonMigratablesFactory} from "src/interfaces/common/INonMigratablesFactory.sol"; +import {IFactory} from "src/interfaces/common/IFactory.sol"; -interface IDelegatorFactory is INonMigratablesFactory {} +interface IDelegatorFactory is IFactory {} diff --git a/src/interfaces/ISlasherFactory.sol b/src/interfaces/ISlasherFactory.sol index 96eb864c..109ea5f5 100644 --- a/src/interfaces/ISlasherFactory.sol +++ b/src/interfaces/ISlasherFactory.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -import {INonMigratablesFactory} from "src/interfaces/common/INonMigratablesFactory.sol"; +import {IFactory} from "src/interfaces/common/IFactory.sol"; -interface ISlasherFactory is INonMigratablesFactory {} +interface ISlasherFactory is IFactory {} diff --git a/src/interfaces/common/INonMigratableEntity.sol b/src/interfaces/common/IEntity.sol similarity index 87% rename from src/interfaces/common/INonMigratableEntity.sol rename to src/interfaces/common/IEntity.sol index 5e282093..da0c177c 100644 --- a/src/interfaces/common/INonMigratableEntity.sol +++ b/src/interfaces/common/IEntity.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.25; -interface INonMigratableEntity { +interface IEntity { /** * @notice Initialize this entity contract using a given data. * @param data some data to use diff --git a/src/interfaces/common/INonMigratablesFactory.sol b/src/interfaces/common/IFactory.sol similarity index 95% rename from src/interfaces/common/INonMigratablesFactory.sol rename to src/interfaces/common/IFactory.sol index d5e318de..5fb63553 100644 --- a/src/interfaces/common/INonMigratablesFactory.sol +++ b/src/interfaces/common/IFactory.sol @@ -3,7 +3,7 @@ pragma solidity 0.8.25; import {IRegistry} from "./IRegistry.sol"; -interface INonMigratablesFactory is IRegistry { +interface IFactory is IRegistry { error AlreadyWhitelisted(); /** diff --git a/src/interfaces/delegator/IFullRestakingDelegator.sol b/src/interfaces/delegator/IFullRestakeDelegator.sol similarity index 97% rename from src/interfaces/delegator/IFullRestakingDelegator.sol rename to src/interfaces/delegator/IFullRestakeDelegator.sol index 4fd80605..4007265a 100644 --- a/src/interfaces/delegator/IFullRestakingDelegator.sol +++ b/src/interfaces/delegator/IFullRestakeDelegator.sol @@ -2,7 +2,7 @@ pragma solidity 0.8.25; import {IDelegator} from "./IDelegator.sol"; -interface IFullRestakingDelegator is IDelegator { +interface IFullRestakeDelegator is IDelegator { error AlreadySet(); error NotSlasher(); error NotNetwork(); diff --git a/src/interfaces/delegator/INetworkRestakingDelegator.sol b/src/interfaces/delegator/INetworkRestakeDelegator.sol similarity index 97% rename from src/interfaces/delegator/INetworkRestakingDelegator.sol rename to src/interfaces/delegator/INetworkRestakeDelegator.sol index e7162190..96f7376c 100644 --- a/src/interfaces/delegator/INetworkRestakingDelegator.sol +++ b/src/interfaces/delegator/INetworkRestakeDelegator.sol @@ -2,7 +2,7 @@ pragma solidity 0.8.25; import {IDelegator} from "./IDelegator.sol"; -interface INetworkRestakingDelegator is IDelegator { +interface INetworkRestakeDelegator is IDelegator { error AlreadySet(); error NotSlasher(); error NotNetwork();