Skip to content

Commit f7dbb75

Browse files
committed
build: Upgrade deps
1 parent 97a63df commit f7dbb75

File tree

14 files changed

+5112
-4405
lines changed

14 files changed

+5112
-4405
lines changed

.commitlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": ["@commitlint/config-conventional"],
33
"rules": {
4-
"subject-case": [2, "always", "sentence-case"],
4+
"subject-case": [0],
55
"type-enum": [
66
2,
77
"always",

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
runs-on: "ubuntu-latest"
1616
steps:
1717
- name: "Check out the repo"
18-
uses: "actions/checkout@v3"
18+
uses: "actions/checkout@v4"
1919

2020
- name: "Install Pnpm"
21-
uses: "pnpm/action-setup@v2"
21+
uses: "pnpm/action-setup@v4"
2222
with:
23-
version: "8"
23+
version: "9"
2424

2525
- name: "Install Node.js"
26-
uses: "actions/setup-node@v3"
26+
uses: "actions/setup-node@v4"
2727
with:
2828
cache: "pnpm"
2929
node-version: "20"

.github/workflows/create.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: "ubuntu-latest"
1515
steps:
1616
- name: "Check out the repo"
17-
uses: "actions/checkout@v3"
17+
uses: "actions/checkout@v4"
1818

1919
- name: "Update package.json"
2020
env:

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.solhint.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"max-line-length": ["warn", 120],
1313
"function-max-lines": "off",
1414
"code-complexity": ["warn", 15],
15-
"named-return-values": "off",
16-
"no-console": "off"
15+
"gas-named-return-values": "off",
16+
"no-console": "off",
17+
"foundry-test-functions": "off"
1718
}
1819
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
},
1414
"editor.formatOnSave": true,
1515
"solidity.formatter": "prettier",
16-
"liveServer.settings.root": "/coverage"
16+
"liveServer.settings.root": "/coverage",
17+
"solidity.compileUsingRemoteVersion": "v0.8.26+commit.8a97fa7a"
1718
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<img src="./logo.svg" width=250" height="100" />
55
</div>
66
<div align=center>
7-
<img src="https://img.shields.io/badge/solidity-^0.8.23-blue"/>
8-
<img src="https://img.shields.io/badge/hardhat-^2.18.0-red"/>
7+
<img src="https://img.shields.io/badge/solidity-^0.8.26-blue"/>
8+
<img src="https://img.shields.io/badge/hardhat-^2.22.0-red"/>
99
<img src="https://img.shields.io/badge/etherjs-v6-green"/>
1010
<img src="https://img.shields.io/badge/@openzeppelin-^5.0.0-green"/>
1111
</div>

README_zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<img src="./logo.svg" width=250" height="100" />
55
</div>
66
<div align=center>
7-
<img src="https://img.shields.io/badge/solidity-^0.8.23-blue"/>
8-
<img src="https://img.shields.io/badge/hardhat-^2.18.0-red"/>
7+
<img src="https://img.shields.io/badge/solidity-^0.8.26-blue"/>
8+
<img src="https://img.shields.io/badge/hardhat-^2.22.0-red"/>
99
<img src="https://img.shields.io/badge/etherjs-v6-green"/>
1010
<img src="https://img.shields.io/badge/@openzeppelin-^5.0.0-green"/>
1111
</div>

contracts/Greeter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: MIT */
2-
pragma solidity ^0.8.24;
2+
pragma solidity ^0.8.26;
33

44
import { console } from "hardhat/console.sol";
55
import { IGreeter } from "./interfaces/IGreeter.sol";

contracts/interfaces/IGreeter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.23;
2+
pragma solidity ^0.8.26;
33

44
/**
55
* @title IGreeter

hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default {
135135
flat: false,
136136
},
137137
solidity: {
138-
version: "0.8.24",
138+
version: "0.8.26",
139139
settings: {
140140
optimizer: {
141141
enabled: false,

package.json

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,58 +19,61 @@
1919
"url": "https://github.com/lingcoder/hardhat-template.git"
2020
},
2121
"devDependencies": {
22-
"@commitlint/cli": "^19.2.2",
22+
"@commitlint/cli": "^19.3.0",
2323
"@commitlint/config-conventional": "^19.2.2",
24-
"@metamask/eth-sig-util": "^7.0.1",
25-
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
26-
"@nomicfoundation/hardhat-ethers": "^3.0.5",
27-
"@nomicfoundation/hardhat-foundry": "^1.1.1",
28-
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
24+
"@metamask/eth-sig-util": "^7.0.3",
25+
"@nomicfoundation/hardhat-chai-matchers": "^2.0.7",
26+
"@nomicfoundation/hardhat-ethers": "^3.0.6",
27+
"@nomicfoundation/hardhat-foundry": "^1.1.2",
28+
"@nomicfoundation/hardhat-network-helpers": "^1.0.11",
2929
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
30-
"@nomicfoundation/hardhat-verify": "^2.0.5",
31-
"@nomiclabs/hardhat-solhint": "^3.0.1",
30+
"@nomicfoundation/hardhat-verify": "^2.0.8",
31+
"@nomiclabs/hardhat-solhint": "^3.1.0",
3232
"@openzeppelin/contracts": "^5.0.2",
3333
"@openzeppelin/contracts-upgradeable": "^5.0.2",
3434
"@openzeppelin/docs-utils": "^0.1.5",
35-
"@openzeppelin/hardhat-upgrades": "^3.0.5",
35+
"@openzeppelin/hardhat-upgrades": "^3.2.0",
3636
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
3737
"@typechain/ethers-v6": "^0.5.1",
38-
"@types/chai": "^4.3.14",
38+
"@types/chai": "^4.3.16",
3939
"@types/fs-extra": "^11.0.4",
40-
"@types/mocha": "^10.0.6",
41-
"@types/node": "^20.12.7",
42-
"@typescript-eslint/eslint-plugin": "^6.21.0",
43-
"@typescript-eslint/parser": "^6.21.0",
40+
"@types/mocha": "^10.0.7",
41+
"@types/node": "^20.14.10",
42+
"@typescript-eslint/eslint-plugin": "^7.16.1",
43+
"@typescript-eslint/parser": "^7.16.1",
4444
"eslint": "^8.57.0",
4545
"eslint-config-prettier": "^9.1.0",
4646
"eslint-config-standard": "^17.1.0",
4747
"eslint-plugin-import": "^2.29.1",
48-
"eslint-plugin-mocha": "^10.4.2",
49-
"eslint-plugin-n": "^16.6.2",
48+
"eslint-plugin-mocha": "^10.4.3",
49+
"eslint-plugin-n": "^17.9.0",
5050
"eslint-plugin-prettier": "^5.1.3",
51-
"eslint-plugin-promise": "^6.1.1",
52-
"ethers": "^6.11.1",
51+
"eslint-plugin-promise": "^6.4.0",
52+
"ethers": "^6.13.1",
5353
"fs-extra": "^11.2.0",
54-
"hardhat": "^2.22.2",
54+
"hardhat": "^2.22.6",
5555
"hardhat-abi-exporter": "^2.10.1",
5656
"hardhat-contract-sizer": "^2.10.0",
57-
"hardhat-deploy": "^0.12.2",
57+
"hardhat-deploy": "^0.12.4",
5858
"hardhat-ignore-warnings": "^0.2.11",
59-
"husky": "^9.0.11",
6059
"lodash": "^4.17.21",
61-
"micromatch": "^4.0.5",
62-
"mocha": "^10.4.0",
63-
"prettier": "^3.2.5",
60+
"micromatch": "^4.0.7",
61+
"mocha": "^10.6.0",
62+
"prettier": "^3.3.3",
6463
"prettier-plugin-solidity": "^1.3.1",
65-
"solhint": "^4.5.4",
64+
"solhint": "^5.0.1",
6665
"solidity-ast": "^0.4.56",
6766
"solidity-docgen": "0.6.0-beta.36",
6867
"ts-generator": "^0.1.1",
6968
"ts-node": "^10.9.2",
70-
"typescript": "^5.4.5"
69+
"typescript": "^5.5.3"
70+
},
71+
"simple-git-hooks": {
72+
"pre-commit": "pnpm lint",
73+
"commit-msg": "pnpm commitlint --edit $1"
7174
},
7275
"scripts": {
73-
"prepare": "husky install",
76+
"prepare": "npx simple-git-hooks",
7477
"postinstall": "npx hardhat typechain",
7578
"compile": "npx hardhat compile",
7679
"clean": "npx hardhat clean",
@@ -84,12 +87,13 @@
8487
"size": "npx hardhat size-contracts",
8588
"lint": "pnpm lint:sol && pnpm lint:ts && pnpm format:check",
8689
"lint:sol": "solhint --max-warnings 0 'contracts/**/*.sol'",
87-
"lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",
90+
"lint:ts": "eslint --ext .js,.ts .",
8891
"format:check": "prettier --check **/*.{js,ts,sol,json}",
8992
"format:write": "prettier --write **/*.{js,ts,sol,json}"
9093
},
9194
"dependencies": {
9295
"cross-env": "^7.0.3",
93-
"dotenv": "^16.4.5"
96+
"dotenv": "^16.4.5",
97+
"simple-git-hooks": "^2.11.1"
9498
}
9599
}

0 commit comments

Comments
 (0)