Skip to content

Commit

Permalink
fix: yarn install deps
Browse files Browse the repository at this point in the history
feat: update sol to v0.8.23
  • Loading branch information
ahmedali8 committed Jan 5, 2024
1 parent 9ac395f commit 51c3c45
Show file tree
Hide file tree
Showing 19 changed files with 2,578 additions and 3,125 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-on: "none" # Required to avoid failing the CI run regardless of findings.
node-version: 16
sarif: "results.sarif"
solc-version: "0.8.19"
solc-version: "0.8.23"

- name: "Upload SARIF file to GitHub code scanning"
uses: "github/codeql-action/upload-sarif@v2"
Expand Down
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "solhint:recommended",
"rules": {
"code-complexity": ["error", 8],
"compiler-version": ["error", ">=0.8.19"],
"compiler-version": ["error", ">=0.8.23"],
"contract-name-camelcase": "off",
"const-name-snakecase": "off",
"constructor-syntax": "error",
Expand Down
546 changes: 0 additions & 546 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

8 changes: 4 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.2.cjs
2 changes: 1 addition & 1 deletion contracts/Lock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
pragma solidity ^0.8.23;

// Uncomment this line to use console.log
// import "hardhat/console.sol";
Expand Down
4 changes: 2 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
auto_detect_solc = false
bytecode_hash = "none"
cbor_metadata = false
evm_version = "paris"
evm_version = "paris" # See https://www.evmdiff.com/features?name=PUSH0&kind=opcode
gas_reports = ["*"]
libs = ["node_modules", "lib"]
optimizer = true
optimizer_runs = 200
out = "out"
script = "scripts/foundry"
solc = "0.8.19"
solc = "0.8.23"
src = "contracts"
test = "test/foundry"

Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.19",
version: "0.8.23",
settings: {
metadata: {
// Not including the metadata hash
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,5 @@
"template"
],
"license": "UNLICENSED",
"private": false,
"packageManager": "yarn@4.0.2"
}
2 changes: 1 addition & 1 deletion scripts/foundry/Base.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.23 <=0.9.0;

import { Script } from "forge-std/Script.sol";

Expand Down
2 changes: 1 addition & 1 deletion scripts/foundry/DeployLock.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;
pragma solidity >=0.8.23;

import { Lock } from "contracts/Lock.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/Base.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { PRBTest } from "@prb/test/PRBTest.sol";
import { StdCheats } from "forge-std/StdCheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/fork/Fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { Base_Test } from "../Base.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/unit/lock/Lock.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { Base_Test } from "../../Base.t.sol";
import { Lock } from "contracts/Lock.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/unit/lock/constructor/constructor.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { Lock, Errors } from "contracts/Lock.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/unit/lock/owner/owner.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { Lock_Test } from "../Lock.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/unit/lock/unlock-time/unlockTime.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { Lock_Test } from "../Lock.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/unit/lock/withdraw/withdraw.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

import { Errors } from "contracts/Lock.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/utils/Types.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
pragma solidity >=0.8.23 <0.9.0;

struct Users {
address payable deployer;
Expand Down
Loading

0 comments on commit 51c3c45

Please sign in to comment.