From 88b12ce1f501b650eeacb8664d0fc744f1c3b61b Mon Sep 17 00:00:00 2001 From: Kirill Kuvshinov Date: Wed, 20 Mar 2024 16:31:38 +0300 Subject: [PATCH] feat!: migrate to 0.8.25 --- contracts/ExponentialNoError.sol | 2 +- contracts/MaxLoopsLimitHelper.sol | 2 +- contracts/TimeManagerV8.sol | 2 +- contracts/constants.sol | 2 +- contracts/test/HarnessMaxLoopsLimitHelper.sol | 2 +- contracts/validators.sol | 2 +- hardhat.config.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/ExponentialNoError.sol b/contracts/ExponentialNoError.sol index 82f5a7a..7126c65 100644 --- a/contracts/ExponentialNoError.sol +++ b/contracts/ExponentialNoError.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -pragma solidity 0.8.13; +pragma solidity 0.8.25; import { EXP_SCALE as EXP_SCALE_, MANTISSA_ONE as MANTISSA_ONE_ } from "./constants.sol"; diff --git a/contracts/MaxLoopsLimitHelper.sol b/contracts/MaxLoopsLimitHelper.sol index 7c5e142..4ed1ce0 100644 --- a/contracts/MaxLoopsLimitHelper.sol +++ b/contracts/MaxLoopsLimitHelper.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -pragma solidity 0.8.13; +pragma solidity 0.8.25; /** * @title MaxLoopsLimitHelper diff --git a/contracts/TimeManagerV8.sol b/contracts/TimeManagerV8.sol index 7c22190..cdd2ad4 100644 --- a/contracts/TimeManagerV8.sol +++ b/contracts/TimeManagerV8.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -pragma solidity 0.8.13; +pragma solidity 0.8.25; import { SECONDS_PER_YEAR } from "./constants.sol"; diff --git a/contracts/constants.sol b/contracts/constants.sol index 5730cf8..49817fc 100644 --- a/contracts/constants.sol +++ b/contracts/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -pragma solidity 0.8.13; +pragma solidity ^0.8.25; /// @dev Base unit for computations, usually used in scaling (multiplications, divisions) uint256 constant EXP_SCALE = 1e18; diff --git a/contracts/test/HarnessMaxLoopsLimitHelper.sol b/contracts/test/HarnessMaxLoopsLimitHelper.sol index 996754b..a3c017c 100644 --- a/contracts/test/HarnessMaxLoopsLimitHelper.sol +++ b/contracts/test/HarnessMaxLoopsLimitHelper.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -pragma solidity 0.8.13; +pragma solidity 0.8.25; import { MaxLoopsLimitHelper } from "../MaxLoopsLimitHelper.sol"; diff --git a/contracts/validators.sol b/contracts/validators.sol index 6456495..c7a3772 100644 --- a/contracts/validators.sol +++ b/contracts/validators.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -pragma solidity 0.8.13; +pragma solidity 0.8.25; /// @notice Thrown if the supplied address is a zero address where it is not allowed error ZeroAddressNotAllowed(); diff --git a/hardhat.config.ts b/hardhat.config.ts index 4b06192..44418fd 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -32,7 +32,7 @@ const config: HardhatUserConfig = { solidity: { compilers: [ { - version: "0.8.13", + version: "0.8.25", settings: { optimizer: { enabled: true,