Skip to content

Commit

Permalink
build: Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lingcoder committed Jul 16, 2024
1 parent 97a63df commit 604fe64
Show file tree
Hide file tree
Showing 14 changed files with 5,167 additions and 4,459 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"subject-case": [2, "always", "sentence-case"],
"subject-case": [0],
"type-enum": [
2,
"always",
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install Pnpm"
uses: "pnpm/action-setup@v2"
uses: "pnpm/action-setup@v4"
with:
version: "8"
version: "9"

- name: "Install Node.js"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
cache: "pnpm"
node-version: "20"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Update package.json"
env:
Expand Down
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

5 changes: 3 additions & 2 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"max-line-length": ["warn", 120],
"function-max-lines": "off",
"code-complexity": ["warn", 15],
"named-return-values": "off",
"no-console": "off"
"gas-named-return-values": "off",
"no-console": "off",
"foundry-test-functions": "off"
}
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
},
"editor.formatOnSave": true,
"solidity.formatter": "prettier",
"liveServer.settings.root": "/coverage"
"liveServer.settings.root": "/coverage",
"solidity.compileUsingRemoteVersion": "v0.8.26+commit.8a97fa7a"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<img src="./logo.svg" width=250" height="100" />
</div>
<div align=center>
<img src="https://img.shields.io/badge/solidity-^0.8.23-blue"/>
<img src="https://img.shields.io/badge/hardhat-^2.18.0-red"/>
<img src="https://img.shields.io/badge/solidity-^0.8.26-blue"/>
<img src="https://img.shields.io/badge/hardhat-^2.22.0-red"/>
<img src="https://img.shields.io/badge/etherjs-v6-green"/>
<img src="https://img.shields.io/badge/@openzeppelin-^5.0.0-green"/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<img src="./logo.svg" width=250" height="100" />
</div>
<div align=center>
<img src="https://img.shields.io/badge/solidity-^0.8.23-blue"/>
<img src="https://img.shields.io/badge/hardhat-^2.18.0-red"/>
<img src="https://img.shields.io/badge/solidity-^0.8.26-blue"/>
<img src="https://img.shields.io/badge/hardhat-^2.22.0-red"/>
<img src="https://img.shields.io/badge/etherjs-v6-green"/>
<img src="https://img.shields.io/badge/@openzeppelin-^5.0.0-green"/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion contracts/Greeter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: MIT */
pragma solidity ^0.8.24;
pragma solidity ^0.8.26;

import { console } from "hardhat/console.sol";
import { IGreeter } from "./interfaces/IGreeter.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IGreeter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
pragma solidity ^0.8.26;

/**
* @title IGreeter
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
flat: false,
},
solidity: {
version: "0.8.24",
version: "0.8.26",
settings: {
optimizer: {
enabled: false,
Expand Down
63 changes: 34 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,58 +19,62 @@
"url": "https://github.com/lingcoder/hardhat-template.git"
},
"devDependencies": {
"@commitlint/cli": "^19.2.2",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@metamask/eth-sig-util": "^7.0.1",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@metamask/eth-sig-util": "^7.0.3",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.7",
"@nomicfoundation/hardhat-ethers": "^3.0.6",
"@nomicfoundation/hardhat-foundry": "^1.1.2",
"@nomicfoundation/hardhat-network-helpers": "^1.0.11",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.5",
"@nomiclabs/hardhat-solhint": "^3.0.1",
"@nomicfoundation/hardhat-verify": "^2.0.8",
"@nomiclabs/hardhat-solhint": "^3.1.0",
"@openzeppelin/contracts": "^5.0.2",
"@openzeppelin/contracts-upgradeable": "^5.0.2",
"@openzeppelin/docs-utils": "^0.1.5",
"@openzeppelin/hardhat-upgrades": "^3.0.5",
"@openzeppelin/hardhat-upgrades": "^3.2.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@typechain/ethers-v6": "^0.5.1",
"@types/chai": "^4.3.14",
"@types/chai": "^4.3.16",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.10",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.4.2",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"ethers": "^6.11.1",
"eslint-plugin-promise": "^6.4.0",
"ethers": "^6.13.1",
"fs-extra": "^11.2.0",
"hardhat": "^2.22.2",
"hardhat": "^2.22.6",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-deploy": "^0.12.2",
"hardhat-deploy": "^0.12.4",
"hardhat-ignore-warnings": "^0.2.11",
"husky": "^9.0.11",
"lodash": "^4.17.21",
"micromatch": "^4.0.5",
"mocha": "^10.4.0",
"prettier": "^3.2.5",
"micromatch": "^4.0.7",
"mocha": "^10.6.0",
"prettier": "^3.3.3",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.5.4",
"solhint": "^5.0.1",
"solidity-ast": "^0.4.56",
"solidity-docgen": "0.6.0-beta.36",
"ts-generator": "^0.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
"typescript": "^5.5.3"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint",
"commit-msg": "pnpm commitlint --edit $1"
},
"scripts": {
"prepare": "husky install",
"prepare": "npx simple-git-hooks",
"postinstall": "npx hardhat typechain",
"compile": "npx hardhat compile",
"clean": "npx hardhat clean",
Expand All @@ -84,12 +88,13 @@
"size": "npx hardhat size-contracts",
"lint": "pnpm lint:sol && pnpm lint:ts && pnpm format:check",
"lint:sol": "solhint --max-warnings 0 'contracts/**/*.sol'",
"lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",
"lint:ts": "eslint --ext .js,.ts .",
"format:check": "prettier --check **/*.{js,ts,sol,json}",
"format:write": "prettier --write **/*.{js,ts,sol,json}"
},
"dependencies": {
"cross-env": "^7.0.3",
"dotenv": "^16.4.5"
"dotenv": "^16.4.5",
"simple-git-hooks": "^2.11.1"
}
}
Loading

0 comments on commit 604fe64

Please sign in to comment.