diff --git a/.solhint.json b/.solhint.json index 14f780e..a56f927 100644 --- a/.solhint.json +++ b/.solhint.json @@ -1,14 +1,28 @@ { "extends": "solhint:recommended", "rules": { - "code-complexity": ["error", 8], - "compiler-version": ["error", ">=0.8.25"], + "code-complexity": [ + "error", + 8 + ], + "compiler-version": [ + "error", + ">=0.8.20" + ], "func-name-mixedcase": "off", - "func-visibility": ["error", { "ignoreConstructors": true }], - "max-line-length": ["error", 120], + "func-visibility": [ + "error", + { + "ignoreConstructors": true + } + ], + "max-line-length": [ + "error", + 120 + ], "named-parameters-mapping": "warn", "no-console": "off", "not-rely-on-time": "off", "one-contract-per-file": "off" } -} +} \ No newline at end of file diff --git a/src/lpETH/UnsETHQueue.sol b/src/lpETH/UnsETHQueue.sol index e6e76a0..fbf60a0 100644 --- a/src/lpETH/UnsETHQueue.sol +++ b/src/lpETH/UnsETHQueue.sol @@ -9,14 +9,14 @@ // // Copyright (c) Tenderize Labs Ltd +pragma solidity >=0.8.20; + /** * @notice This file implements the necessary functionality for a double-ended queue or deque. * Elements can be popped from the front or back, but the deque can only be appended to. * It is used to store a list of unlocks for a given TenderSwap pool. * @dev modified from https://github.com/Tenderize/tenderswap/blob/main/src/UnlockQueue.sol */ -pragma solidity >=0.8.20; - library UnsETHQueue { error QueueEmpty(); error IdExists(); diff --git a/src/unsETH/Base64.sol b/src/unsETH/Base64.sol index daa4470..5575aaf 100644 --- a/src/unsETH/Base64.sol +++ b/src/unsETH/Base64.sol @@ -9,7 +9,7 @@ // // Copyright (c) Tenderize Labs Ltd -pragma solidity >=0.8.19; +pragma solidity >=0.8.20; /** * Based on Brecht Devos (Brechtpd) implementation - MIT licence diff --git a/src/unsETH/Renderer.sol b/src/unsETH/Renderer.sol index 4b26151..cf67b99 100644 --- a/src/unsETH/Renderer.sol +++ b/src/unsETH/Renderer.sol @@ -9,7 +9,7 @@ // // Copyright (c) Tenderize Labs Ltd -pragma solidity >=0.8.19; +pragma solidity >=0.8.20; import { Initializable } from "@openzeppelin/upgradeable/proxy/utils/Initializable.sol"; import { UUPSUpgradeable } from "@openzeppelin/upgradeable/proxy/utils/UUPSUpgradeable.sol"; diff --git a/src/unsETH/UnsETH.sol b/src/unsETH/UnsETH.sol index 1e1e5f7..e3e1b6b 100644 --- a/src/unsETH/UnsETH.sol +++ b/src/unsETH/UnsETH.sol @@ -25,7 +25,7 @@ import { Adapter, AdapterDelegateCall } from "@/adapters/Adapter.sol"; // TODO: ERC165 for adapters -pragma solidity >=0.8.19; +pragma solidity >=0.8.20; // solhint-disable quotes diff --git a/test/lpETH/UnsETHQueue.t.sol b/test/lpETH/UnsETHQueue.t.sol index b4d143d..bf3cf28 100644 --- a/test/lpETH/UnsETHQueue.t.sol +++ b/test/lpETH/UnsETHQueue.t.sol @@ -1,3 +1,4 @@ +pragma solidity >=0.8.20; // see https://github.com/Tenderize/tenderswap/blob/main/test/UnlockQueue.t.sol // the only difference is the type of data stored in the queue, // which isn't highly relevant to its logical implementation