From 0d7a83f8cf413fc73521c312ccf843f7eb675ac4 Mon Sep 17 00:00:00 2001 From: ChaoticWalrus <93558947+ChaoticWalrus@users.noreply.github.com> Date: Mon, 17 Jul 2023 10:34:42 -0700 Subject: [PATCH 1/2] laxer pragmas for interfaces makes life easier for other people/projects importing the interfaces --- src/contracts/interfaces/IBLSPublicKeyCompendium.sol | 2 +- src/contracts/interfaces/IBLSRegistry.sol | 2 +- src/contracts/interfaces/IBeaconChainOracle.sol | 2 +- src/contracts/interfaces/IDelayedService.sol | 2 +- src/contracts/interfaces/IDelayedWithdrawalRouter.sol | 2 +- src/contracts/interfaces/IDelegationManager.sol | 2 +- src/contracts/interfaces/IDelegationTerms.sol | 2 +- src/contracts/interfaces/IETHPOSDeposit.sol | 2 +- src/contracts/interfaces/IEigenPod.sol | 2 +- src/contracts/interfaces/IEigenPodManager.sol | 2 +- src/contracts/interfaces/IPausable.sol | 2 +- src/contracts/interfaces/IPauserRegistry.sol | 2 +- src/contracts/interfaces/IPaymentManager.sol | 2 +- src/contracts/interfaces/IQuorumRegistry.sol | 2 +- src/contracts/interfaces/IRegistry.sol | 2 +- src/contracts/interfaces/IServiceManager.sol | 2 +- src/contracts/interfaces/ISlasher.sol | 2 +- src/contracts/interfaces/IStrategy.sol | 2 +- src/contracts/interfaces/IStrategyManager.sol | 2 +- src/contracts/interfaces/IVoteWeigher.sol | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/contracts/interfaces/IBLSPublicKeyCompendium.sol b/src/contracts/interfaces/IBLSPublicKeyCompendium.sol index 3d692d7b9..9ddf98533 100644 --- a/src/contracts/interfaces/IBLSPublicKeyCompendium.sol +++ b/src/contracts/interfaces/IBLSPublicKeyCompendium.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "../libraries/BN254.sol"; diff --git a/src/contracts/interfaces/IBLSRegistry.sol b/src/contracts/interfaces/IBLSRegistry.sol index b8f2a2b6a..de856a84d 100644 --- a/src/contracts/interfaces/IBLSRegistry.sol +++ b/src/contracts/interfaces/IBLSRegistry.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "./IQuorumRegistry.sol"; diff --git a/src/contracts/interfaces/IBeaconChainOracle.sol b/src/contracts/interfaces/IBeaconChainOracle.sol index 6bdff804d..fdc551ba7 100644 --- a/src/contracts/interfaces/IBeaconChainOracle.sol +++ b/src/contracts/interfaces/IBeaconChainOracle.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; /** * @title Interface for the BeaconStateOracle contract. diff --git a/src/contracts/interfaces/IDelayedService.sol b/src/contracts/interfaces/IDelayedService.sol index 1f905b399..2de542012 100644 --- a/src/contracts/interfaces/IDelayedService.sol +++ b/src/contracts/interfaces/IDelayedService.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; /** * @title Interface for a middleware / service that may look at past stake amounts. diff --git a/src/contracts/interfaces/IDelayedWithdrawalRouter.sol b/src/contracts/interfaces/IDelayedWithdrawalRouter.sol index 093009aae..c2f12dce1 100644 --- a/src/contracts/interfaces/IDelayedWithdrawalRouter.sol +++ b/src/contracts/interfaces/IDelayedWithdrawalRouter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; interface IDelayedWithdrawalRouter { // struct used to pack data into a single storage slot diff --git a/src/contracts/interfaces/IDelegationManager.sol b/src/contracts/interfaces/IDelegationManager.sol index b2d7715c2..2992beb1b 100644 --- a/src/contracts/interfaces/IDelegationManager.sol +++ b/src/contracts/interfaces/IDelegationManager.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "./IDelegationTerms.sol"; diff --git a/src/contracts/interfaces/IDelegationTerms.sol b/src/contracts/interfaces/IDelegationTerms.sol index 803cdfcde..6b70c7784 100644 --- a/src/contracts/interfaces/IDelegationTerms.sol +++ b/src/contracts/interfaces/IDelegationTerms.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "./IStrategy.sol"; diff --git a/src/contracts/interfaces/IETHPOSDeposit.sol b/src/contracts/interfaces/IETHPOSDeposit.sol index cb6676d55..5fc09a5cc 100644 --- a/src/contracts/interfaces/IETHPOSDeposit.sol +++ b/src/contracts/interfaces/IETHPOSDeposit.sol @@ -9,7 +9,7 @@ // SPDX-License-Identifier: CC0-1.0 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; // This interface is designed to be compatible with the Vyper version. /// @notice This is the Ethereum 2.0 deposit contract interface. diff --git a/src/contracts/interfaces/IEigenPod.sol b/src/contracts/interfaces/IEigenPod.sol index a44cb339d..886fee8bc 100644 --- a/src/contracts/interfaces/IEigenPod.sol +++ b/src/contracts/interfaces/IEigenPod.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "../libraries/BeaconChainProofs.sol"; import "./IEigenPodManager.sol"; diff --git a/src/contracts/interfaces/IEigenPodManager.sol b/src/contracts/interfaces/IEigenPodManager.sol index 3455262f2..4912ab742 100644 --- a/src/contracts/interfaces/IEigenPodManager.sol +++ b/src/contracts/interfaces/IEigenPodManager.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "./IStrategyManager.sol"; import "./IEigenPod.sol"; diff --git a/src/contracts/interfaces/IPausable.sol b/src/contracts/interfaces/IPausable.sol index 11450067a..e81241357 100644 --- a/src/contracts/interfaces/IPausable.sol +++ b/src/contracts/interfaces/IPausable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "../interfaces/IPauserRegistry.sol"; diff --git a/src/contracts/interfaces/IPauserRegistry.sol b/src/contracts/interfaces/IPauserRegistry.sol index 7a3a986f7..732a7eb33 100644 --- a/src/contracts/interfaces/IPauserRegistry.sol +++ b/src/contracts/interfaces/IPauserRegistry.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; /** * @title Interface for the `PauserRegistry` contract. diff --git a/src/contracts/interfaces/IPaymentManager.sol b/src/contracts/interfaces/IPaymentManager.sol index f0d87ab9f..cdc4efc5b 100644 --- a/src/contracts/interfaces/IPaymentManager.sol +++ b/src/contracts/interfaces/IPaymentManager.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/src/contracts/interfaces/IQuorumRegistry.sol b/src/contracts/interfaces/IQuorumRegistry.sol index c73770b90..871874f87 100644 --- a/src/contracts/interfaces/IQuorumRegistry.sol +++ b/src/contracts/interfaces/IQuorumRegistry.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "./IRegistry.sol"; diff --git a/src/contracts/interfaces/IRegistry.sol b/src/contracts/interfaces/IRegistry.sol index 9166dcb1c..38166c59d 100644 --- a/src/contracts/interfaces/IRegistry.sol +++ b/src/contracts/interfaces/IRegistry.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; /** * @title Minimal interface for a `Registry`-type contract. diff --git a/src/contracts/interfaces/IServiceManager.sol b/src/contracts/interfaces/IServiceManager.sol index 953ab3844..2ee90cb0e 100644 --- a/src/contracts/interfaces/IServiceManager.sol +++ b/src/contracts/interfaces/IServiceManager.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./IDelegationManager.sol"; diff --git a/src/contracts/interfaces/ISlasher.sol b/src/contracts/interfaces/ISlasher.sol index 63612f29d..3c329efeb 100644 --- a/src/contracts/interfaces/ISlasher.sol +++ b/src/contracts/interfaces/ISlasher.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; /** * @title Interface for the primary 'slashing' contract for EigenLayer. diff --git a/src/contracts/interfaces/IStrategy.sol b/src/contracts/interfaces/IStrategy.sol index 80bc9a323..3d65a2023 100644 --- a/src/contracts/interfaces/IStrategy.sol +++ b/src/contracts/interfaces/IStrategy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/src/contracts/interfaces/IStrategyManager.sol b/src/contracts/interfaces/IStrategyManager.sol index 49313727d..48b1c623b 100644 --- a/src/contracts/interfaces/IStrategyManager.sol +++ b/src/contracts/interfaces/IStrategyManager.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "./IStrategy.sol"; import "./ISlasher.sol"; diff --git a/src/contracts/interfaces/IVoteWeigher.sol b/src/contracts/interfaces/IVoteWeigher.sol index cc0f94dd2..3c918bbdd 100644 --- a/src/contracts/interfaces/IVoteWeigher.sol +++ b/src/contracts/interfaces/IVoteWeigher.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; /** * @title Interface for a `VoteWeigher`-type contract. From 3a377c340716a2b102e7d8615ecf81de1df4b9b5 Mon Sep 17 00:00:00 2001 From: ChaoticWalrus <93558947+ChaoticWalrus@users.noreply.github.com> Date: Mon, 17 Jul 2023 10:37:20 -0700 Subject: [PATCH 2/2] laxer pragma for IWhitelister interface --- src/contracts/interfaces/IWhitelister.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contracts/interfaces/IWhitelister.sol b/src/contracts/interfaces/IWhitelister.sol index 2467bc3eb..a3f2fdf57 100644 --- a/src/contracts/interfaces/IWhitelister.sol +++ b/src/contracts/interfaces/IWhitelister.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity =0.8.12; +pragma solidity >=0.5.0; import "../../contracts/interfaces/IStrategyManager.sol"; import "../../contracts/interfaces/IStrategy.sol";