Skip to content

Commit

Permalink
fix: actions, linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed May 31, 2024
1 parent 9922489 commit d86461e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
24 changes: 19 additions & 5 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
4 changes: 2 additions & 2 deletions src/lpETH/UnsETHQueue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/unsETH/Base64.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/unsETH/Renderer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/unsETH/UnsETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions test/lpETH/UnsETHQueue.t.sol
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d86461e

Please sign in to comment.