diff --git a/contracts/RewardRatePool.sol b/contracts/RewardRatePool.sol index ab1e13c..cb3b2fa 100644 --- a/contracts/RewardRatePool.sol +++ b/contracts/RewardRatePool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol"; diff --git a/contracts/SENT.sol b/contracts/SENT.sol index b413c06..2c5e6c9 100644 --- a/contracts/SENT.sol +++ b/contracts/SENT.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"; diff --git a/contracts/ServiceNodeContribution.sol b/contracts/ServiceNodeContribution.sol index 33f6227..092d238 100644 --- a/contracts/ServiceNodeContribution.sol +++ b/contracts/ServiceNodeContribution.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "./libraries/Shared.sol"; import "./interfaces/IServiceNodeRewards.sol"; diff --git a/contracts/ServiceNodeContributionFactory.sol b/contracts/ServiceNodeContributionFactory.sol index 60b0a06..efa8452 100644 --- a/contracts/ServiceNodeContributionFactory.sol +++ b/contracts/ServiceNodeContributionFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "./ServiceNodeContribution.sol"; import "./interfaces/IServiceNodeRewards.sol"; diff --git a/contracts/ServiceNodeRewards.sol b/contracts/ServiceNodeRewards.sol index bd7d197..d91df65 100644 --- a/contracts/ServiceNodeRewards.sol +++ b/contracts/ServiceNodeRewards.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "./interfaces/IServiceNodeRewards.sol"; diff --git a/contracts/interfaces/IServiceNodeRewards.sol b/contracts/interfaces/IServiceNodeRewards.sol index 3017518..03260a6 100644 --- a/contracts/interfaces/IServiceNodeRewards.sol +++ b/contracts/interfaces/IServiceNodeRewards.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../libraries/BN256G1.sol"; diff --git a/contracts/interfaces/ITokenVestingNoStaking.sol b/contracts/interfaces/ITokenVestingNoStaking.sol index b4f50d5..b4088cd 100644 --- a/contracts/interfaces/ITokenVestingNoStaking.sol +++ b/contracts/interfaces/ITokenVestingNoStaking.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; diff --git a/contracts/interfaces/ITokenVestingStaking.sol b/contracts/interfaces/ITokenVestingStaking.sol index 7282b7d..d365978 100644 --- a/contracts/interfaces/ITokenVestingStaking.sol +++ b/contracts/interfaces/ITokenVestingStaking.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interfaces/IServiceNodeRewards.sol"; diff --git a/contracts/libraries/BN256G1.sol b/contracts/libraries/BN256G1.sol index 6ed2b6a..28c5e84 100644 --- a/contracts/libraries/BN256G1.sol +++ b/contracts/libraries/BN256G1.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; library BN256G1 { uint256 internal constant FIELD_MODULUS = 0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47; diff --git a/contracts/libraries/BN256G2.sol b/contracts/libraries/BN256G2.sol index 1a1a2c1..daa2701 100644 --- a/contracts/libraries/BN256G2.sol +++ b/contracts/libraries/BN256G2.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; /** * @title Elliptic curve operations on twist points for alt_bn128 diff --git a/contracts/libraries/Pairing.sol b/contracts/libraries/Pairing.sol index 2e8222a..79b0d82 100644 --- a/contracts/libraries/Pairing.sol +++ b/contracts/libraries/Pairing.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "./BN256G1.sol"; import "./BN256G2.sol"; diff --git a/contracts/libraries/Shared.sol b/contracts/libraries/Shared.sol index 962d6d3..0a52b69 100644 --- a/contracts/libraries/Shared.sol +++ b/contracts/libraries/Shared.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; /** * @title Shared contract diff --git a/contracts/test/BN256G2EchidnaTest.sol b/contracts/test/BN256G2EchidnaTest.sol index c56fcc9..145cb36 100644 --- a/contracts/test/BN256G2EchidnaTest.sol +++ b/contracts/test/BN256G2EchidnaTest.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../libraries/BN256G2.sol"; diff --git a/contracts/test/MockERC20.sol b/contracts/test/MockERC20.sol index e1eeec1..e6c1d31 100644 --- a/contracts/test/MockERC20.sol +++ b/contracts/test/MockERC20.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; diff --git a/contracts/test/MockServiceNodeRewards.sol b/contracts/test/MockServiceNodeRewards.sol index c5f3107..2bcd065 100644 --- a/contracts/test/MockServiceNodeRewards.sol +++ b/contracts/test/MockServiceNodeRewards.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../interfaces/IServiceNodeRewards.sol"; diff --git a/contracts/test/ServiceNodeContributionEchidnaTest.sol b/contracts/test/ServiceNodeContributionEchidnaTest.sol index ed7554f..53e8348 100644 --- a/contracts/test/ServiceNodeContributionEchidnaTest.sol +++ b/contracts/test/ServiceNodeContributionEchidnaTest.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../ServiceNodeContribution.sol"; import "./MockERC20.sol"; diff --git a/contracts/test/TestModifierOnlyOperatorViaProxyContract.sol b/contracts/test/TestModifierOnlyOperatorViaProxyContract.sol index f2e7a3c..6b54dad 100644 --- a/contracts/test/TestModifierOnlyOperatorViaProxyContract.sol +++ b/contracts/test/TestModifierOnlyOperatorViaProxyContract.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; interface IServiceNodeContribution { function cancelNode() external; diff --git a/contracts/test/TestnetRewardRatePool.sol b/contracts/test/TestnetRewardRatePool.sol index 152be48..b8f5a14 100644 --- a/contracts/test/TestnetRewardRatePool.sol +++ b/contracts/test/TestnetRewardRatePool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../RewardRatePool.sol"; diff --git a/contracts/test/TestnetServiceNodeRewards.sol b/contracts/test/TestnetServiceNodeRewards.sol index 7d5a2ab..ec60abd 100644 --- a/contracts/test/TestnetServiceNodeRewards.sol +++ b/contracts/test/TestnetServiceNodeRewards.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../ServiceNodeRewards.sol"; diff --git a/contracts/utils/TokenConverter.sol b/contracts/utils/TokenConverter.sol index 468664f..4a0243c 100644 --- a/contracts/utils/TokenConverter.sol +++ b/contracts/utils/TokenConverter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/contracts/utils/TokenVestingNoStaking.sol b/contracts/utils/TokenVestingNoStaking.sol index b5e3f4b..4fcf851 100644 --- a/contracts/utils/TokenVestingNoStaking.sol +++ b/contracts/utils/TokenVestingNoStaking.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../libraries/Shared.sol"; import "../interfaces/ITokenVestingNoStaking.sol"; diff --git a/contracts/utils/TokenVestingStaking.sol b/contracts/utils/TokenVestingStaking.sol index 1095b2f..da9acc2 100644 --- a/contracts/utils/TokenVestingStaking.sol +++ b/contracts/utils/TokenVestingStaking.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.20; +pragma solidity ^0.8.26; import "../libraries/Shared.sol"; import "../interfaces/ITokenVestingStaking.sol"; diff --git a/hardhat.config.js b/hardhat.config.js index e067bb4..431605d 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -21,7 +21,7 @@ module.exports = { } }, solidity: { - version: '0.8.20', + version: '0.8.26', settings: { optimizer: { enabled: true,