hardhat 3.5.1 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/src/internal/builtin-plugins/flatten/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/flatten/task-action.js +23 -7
- package/dist/src/internal/builtin-plugins/flatten/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.d.ts +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js +78 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/tasks/build.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/tasks/build.js +1 -5
- package/dist/src/internal/builtin-plugins/solidity/tasks/build.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts +53 -1
- package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts.map +1 -1
- package/dist/src/internal/cli/help/utils.d.ts.map +1 -1
- package/dist/src/internal/cli/help/utils.js +3 -2
- package/dist/src/internal/cli/help/utils.js.map +1 -1
- package/dist/src/internal/cli/init/init.d.ts.map +1 -1
- package/dist/src/internal/cli/init/init.js +110 -1
- package/dist/src/internal/cli/init/init.js.map +1 -1
- package/dist/src/internal/cli/init/prompt.js +1 -1
- package/dist/src/internal/cli/init/prompt.js.map +1 -1
- package/dist/src/internal/cli/main.d.ts.map +1 -1
- package/dist/src/internal/cli/main.js +3 -1
- package/dist/src/internal/cli/main.js.map +1 -1
- package/dist/src/internal/core/tasks/resolved-task.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/resolved-task.js +3 -2
- package/dist/src/internal/core/tasks/resolved-task.js.map +1 -1
- package/dist/src/internal/core/tasks/utils.d.ts +3 -0
- package/dist/src/internal/core/tasks/utils.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/utils.js +6 -0
- package/dist/src/internal/core/tasks/utils.js.map +1 -1
- package/dist/src/internal/core/tasks/validations.js +3 -3
- package/dist/src/internal/core/tasks/validations.js.map +1 -1
- package/dist/src/types/solidity/build-system.d.ts +22 -2
- package/dist/src/types/solidity/build-system.d.ts.map +1 -1
- package/dist/src/types/solidity/build-system.js.map +1 -1
- package/package.json +4 -3
- package/skills/hardhat/SKILL.md +152 -0
- package/skills/hardhat-toolbox-mocha-ethers/SKILL.md +119 -0
- package/skills/hardhat-toolbox-viem/SKILL.md +126 -0
- package/src/internal/builtin-plugins/flatten/task-action.ts +37 -7
- package/src/internal/builtin-plugins/solidity/build-system/build-system.ts +124 -6
- package/src/internal/builtin-plugins/solidity/hook-handlers/hre.ts +1 -1
- package/src/internal/builtin-plugins/solidity/tasks/build.ts +1 -6
- package/src/internal/builtin-plugins/solidity/type-extensions.ts +69 -0
- package/src/internal/cli/help/utils.ts +9 -2
- package/src/internal/cli/init/init.ts +136 -0
- package/src/internal/cli/init/prompt.ts +1 -1
- package/src/internal/cli/main.ts +4 -2
- package/src/internal/core/tasks/resolved-task.ts +5 -2
- package/src/internal/core/tasks/utils.ts +13 -0
- package/src/internal/core/tasks/validations.ts +3 -3
- package/src/types/solidity/build-system.ts +24 -5
- package/templates/hardhat-3/01-node-test-runner-viem/AGENTS.md +20 -0
- package/templates/hardhat-3/01-node-test-runner-viem/README.md +3 -3
- package/templates/hardhat-3/01-node-test-runner-viem/package.json +3 -3
- package/templates/hardhat-3/02-mocha-ethers/AGENTS.md +20 -0
- package/templates/hardhat-3/02-mocha-ethers/README.md +3 -3
- package/templates/hardhat-3/02-mocha-ethers/package.json +3 -3
- package/templates/hardhat-3/03-minimal/README.md +2 -2
- package/templates/hardhat-3/03-minimal/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Hardhat + viem project
|
|
2
|
+
|
|
3
|
+
## Project layout
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
contracts/ Solidity source files (*.sol) and unit tests (*.t.sol)
|
|
7
|
+
test/ TypeScript integration tests and Solidity unit tests (*.sol)
|
|
8
|
+
ignition/ Hardhat Ignition deployment modules
|
|
9
|
+
scripts/ Standalone scripts run with `hardhat run`
|
|
10
|
+
hardhat.config.ts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Working in this project
|
|
14
|
+
|
|
15
|
+
When writing or modifying tests, configuring `hardhat.config.ts`, or interacting with the network from TypeScript, invoke the **`hardhat`** skill. It covers Solidity and TypeScript testing, how to choose between them, `forge-std` cheatcodes, the `network.create()` API, `networkHelpers`, and the compile-then-typecheck workflow. The skill itself points to the matching `hardhat-toolbox-*` skill for toolbox-specific guidance (clients, contract interaction, assertions).
|
|
16
|
+
|
|
17
|
+
## Docs
|
|
18
|
+
|
|
19
|
+
- Hardhat 3 — https://hardhat.org/llms.txt
|
|
20
|
+
- viem — https://viem.sh/llms.txt
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Sample Hardhat 3
|
|
1
|
+
# Sample Hardhat 3 Project (`node:test` and `viem`)
|
|
2
2
|
|
|
3
|
-
This project showcases a Hardhat 3
|
|
3
|
+
This project showcases a Hardhat 3 project using the native Node.js test runner (`node:test`) and the `viem` library for Ethereum interactions.
|
|
4
4
|
|
|
5
|
-
To learn more about
|
|
5
|
+
To learn more about Hardhat 3, please visit the [Getting Started guide](https://hardhat.org/docs/getting-started#getting-started-with-hardhat-3). To share your feedback, join our [Hardhat 3](https://hardhat.org/hardhat3-telegram-group) Telegram group or [open an issue](https://github.com/NomicFoundation/hardhat/issues/new) in our GitHub issue tracker.
|
|
6
6
|
|
|
7
7
|
## Project Overview
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "A TypeScript Hardhat project using Node Test Runner and Viem",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"hardhat": "workspace:^3.
|
|
8
|
+
"hardhat": "workspace:^3.7.0",
|
|
9
9
|
"@nomicfoundation/hardhat-toolbox-viem": "workspace:^5.0.6",
|
|
10
10
|
"@nomicfoundation/hardhat-ignition": "workspace:^3.1.6",
|
|
11
11
|
"@types/node": "^22.8.5",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@nomicfoundation/hardhat-ignition-viem": "workspace:^3.1.5",
|
|
18
|
-
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.
|
|
18
|
+
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.11",
|
|
19
19
|
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.9",
|
|
20
20
|
"@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.16",
|
|
21
21
|
"@nomicfoundation/hardhat-viem": "workspace:^3.0.8",
|
|
22
|
-
"@nomicfoundation/hardhat-viem-assertions": "workspace:^3.0
|
|
22
|
+
"@nomicfoundation/hardhat-viem-assertions": "workspace:^3.1.0",
|
|
23
23
|
"@nomicfoundation/hardhat-verify": "workspace:^3.0.18",
|
|
24
24
|
"@nomicfoundation/ignition-core": "workspace:^3.1.6"
|
|
25
25
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Hardhat + ethers project
|
|
2
|
+
|
|
3
|
+
## Project layout
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
contracts/ Solidity source files (*.sol) and unit tests (*.t.sol)
|
|
7
|
+
test/ TypeScript integration tests and Solidity unit tests (*.sol)
|
|
8
|
+
ignition/ Hardhat Ignition deployment modules
|
|
9
|
+
scripts/ Standalone scripts run with `hardhat run`
|
|
10
|
+
hardhat.config.ts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Working in this project
|
|
14
|
+
|
|
15
|
+
When writing or modifying tests, configuring `hardhat.config.ts`, or interacting with the network from TypeScript, invoke the **`hardhat`** skill. It covers Solidity and TypeScript testing, how to choose between them, `forge-std` cheatcodes, the `network.create()` API, `networkHelpers`, and the compile-then-typecheck workflow. The skill itself points to the matching `hardhat-toolbox-*` skill for toolbox-specific guidance (signers, contract interaction, assertions).
|
|
16
|
+
|
|
17
|
+
## Docs
|
|
18
|
+
|
|
19
|
+
- Hardhat 3 — https://hardhat.org/llms.txt
|
|
20
|
+
- ethers.js — https://docs.ethers.org/v6/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Sample Hardhat 3
|
|
1
|
+
# Sample Hardhat 3 Project (`mocha` and `ethers`)
|
|
2
2
|
|
|
3
|
-
This project showcases a Hardhat 3
|
|
3
|
+
This project showcases a Hardhat 3 project using `mocha` for tests and the `ethers` library for Ethereum interactions.
|
|
4
4
|
|
|
5
|
-
To learn more about
|
|
5
|
+
To learn more about Hardhat 3, please visit the [Getting Started guide](https://hardhat.org/docs/getting-started#getting-started-with-hardhat-3). To share your feedback, join our [Hardhat 3](https://hardhat.org/hardhat3-telegram-group) Telegram group or [open an issue](https://github.com/NomicFoundation/hardhat/issues/new) in our GitHub issue tracker.
|
|
6
6
|
|
|
7
7
|
## Project Overview
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "A TypeScript Hardhat project using Mocha and Ethers.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"hardhat": "workspace:^3.
|
|
8
|
+
"hardhat": "workspace:^3.7.0",
|
|
9
9
|
"@nomicfoundation/hardhat-toolbox-mocha-ethers": "workspace:^3.0.6",
|
|
10
10
|
"@nomicfoundation/hardhat-ethers": "workspace:^4.0.12",
|
|
11
11
|
"@nomicfoundation/hardhat-ignition": "workspace:^3.1.6",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.9",
|
|
25
25
|
"@nomicfoundation/hardhat-ignition": "workspace:^3.1.6",
|
|
26
26
|
"@nomicfoundation/hardhat-ignition-ethers": "workspace:^3.1.5",
|
|
27
|
-
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.
|
|
27
|
+
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.11",
|
|
28
28
|
"@nomicfoundation/hardhat-mocha": "workspace:^3.0.20",
|
|
29
29
|
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.9",
|
|
30
|
-
"@nomicfoundation/hardhat-typechain": "workspace:^3.0
|
|
30
|
+
"@nomicfoundation/hardhat-typechain": "workspace:^3.1.0",
|
|
31
31
|
"@nomicfoundation/hardhat-verify": "workspace:^3.0.18",
|
|
32
32
|
"@nomicfoundation/ignition-core": "workspace:^3.1.6"
|
|
33
33
|
}
|