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.
Files changed (61) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/src/internal/builtin-plugins/flatten/task-action.d.ts.map +1 -1
  3. package/dist/src/internal/builtin-plugins/flatten/task-action.js +23 -7
  4. package/dist/src/internal/builtin-plugins/flatten/task-action.js.map +1 -1
  5. package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.d.ts +1 -1
  6. package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.d.ts.map +1 -1
  7. package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js +78 -1
  8. package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js.map +1 -1
  9. package/dist/src/internal/builtin-plugins/solidity/tasks/build.d.ts.map +1 -1
  10. package/dist/src/internal/builtin-plugins/solidity/tasks/build.js +1 -5
  11. package/dist/src/internal/builtin-plugins/solidity/tasks/build.js.map +1 -1
  12. package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts +53 -1
  13. package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts.map +1 -1
  14. package/dist/src/internal/cli/help/utils.d.ts.map +1 -1
  15. package/dist/src/internal/cli/help/utils.js +3 -2
  16. package/dist/src/internal/cli/help/utils.js.map +1 -1
  17. package/dist/src/internal/cli/init/init.d.ts.map +1 -1
  18. package/dist/src/internal/cli/init/init.js +110 -1
  19. package/dist/src/internal/cli/init/init.js.map +1 -1
  20. package/dist/src/internal/cli/init/prompt.js +1 -1
  21. package/dist/src/internal/cli/init/prompt.js.map +1 -1
  22. package/dist/src/internal/cli/main.d.ts.map +1 -1
  23. package/dist/src/internal/cli/main.js +3 -1
  24. package/dist/src/internal/cli/main.js.map +1 -1
  25. package/dist/src/internal/core/tasks/resolved-task.d.ts.map +1 -1
  26. package/dist/src/internal/core/tasks/resolved-task.js +3 -2
  27. package/dist/src/internal/core/tasks/resolved-task.js.map +1 -1
  28. package/dist/src/internal/core/tasks/utils.d.ts +3 -0
  29. package/dist/src/internal/core/tasks/utils.d.ts.map +1 -1
  30. package/dist/src/internal/core/tasks/utils.js +6 -0
  31. package/dist/src/internal/core/tasks/utils.js.map +1 -1
  32. package/dist/src/internal/core/tasks/validations.js +3 -3
  33. package/dist/src/internal/core/tasks/validations.js.map +1 -1
  34. package/dist/src/types/solidity/build-system.d.ts +22 -2
  35. package/dist/src/types/solidity/build-system.d.ts.map +1 -1
  36. package/dist/src/types/solidity/build-system.js.map +1 -1
  37. package/package.json +4 -3
  38. package/skills/hardhat/SKILL.md +152 -0
  39. package/skills/hardhat-toolbox-mocha-ethers/SKILL.md +119 -0
  40. package/skills/hardhat-toolbox-viem/SKILL.md +126 -0
  41. package/src/internal/builtin-plugins/flatten/task-action.ts +37 -7
  42. package/src/internal/builtin-plugins/solidity/build-system/build-system.ts +124 -6
  43. package/src/internal/builtin-plugins/solidity/hook-handlers/hre.ts +1 -1
  44. package/src/internal/builtin-plugins/solidity/tasks/build.ts +1 -6
  45. package/src/internal/builtin-plugins/solidity/type-extensions.ts +69 -0
  46. package/src/internal/cli/help/utils.ts +9 -2
  47. package/src/internal/cli/init/init.ts +136 -0
  48. package/src/internal/cli/init/prompt.ts +1 -1
  49. package/src/internal/cli/main.ts +4 -2
  50. package/src/internal/core/tasks/resolved-task.ts +5 -2
  51. package/src/internal/core/tasks/utils.ts +13 -0
  52. package/src/internal/core/tasks/validations.ts +3 -3
  53. package/src/types/solidity/build-system.ts +24 -5
  54. package/templates/hardhat-3/01-node-test-runner-viem/AGENTS.md +20 -0
  55. package/templates/hardhat-3/01-node-test-runner-viem/README.md +3 -3
  56. package/templates/hardhat-3/01-node-test-runner-viem/package.json +3 -3
  57. package/templates/hardhat-3/02-mocha-ethers/AGENTS.md +20 -0
  58. package/templates/hardhat-3/02-mocha-ethers/README.md +3 -3
  59. package/templates/hardhat-3/02-mocha-ethers/package.json +3 -3
  60. package/templates/hardhat-3/03-minimal/README.md +2 -2
  61. 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 Beta Project (`node:test` and `viem`)
1
+ # Sample Hardhat 3 Project (`node:test` and `viem`)
2
2
 
3
- This project showcases a Hardhat 3 Beta project using the native Node.js test runner (`node:test`) and the `viem` library for Ethereum interactions.
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 the Hardhat 3 Beta, 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 Beta](https://hardhat.org/hardhat3-beta-telegram-group) Telegram group or [open an issue](https://github.com/NomicFoundation/hardhat/issues/new) in our GitHub issue tracker.
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.5.1",
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.10",
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.13",
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 Beta Project (`mocha` and `ethers`)
1
+ # Sample Hardhat 3 Project (`mocha` and `ethers`)
2
2
 
3
- This project showcases a Hardhat 3 Beta project using `mocha` for tests and the `ethers` library for Ethereum interactions.
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 the Hardhat 3 Beta, 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 Beta](https://hardhat.org/hardhat3-beta-telegram-group) Telegram group or [open an issue](https://github.com/NomicFoundation/hardhat/issues/new) in our GitHub issue tracker.
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.5.1",
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.10",
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.9",
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
  }
@@ -1,6 +1,6 @@
1
- # Sample Hardhat 3 Beta Project (minimal)
1
+ # Sample Hardhat 3 Project (minimal)
2
2
 
3
- This project has a minimal setup of Hardhat 3 Beta, without any plugins.
3
+ This project has a minimal setup of Hardhat 3, without any plugins.
4
4
 
5
5
  ## What's included?
6
6
 
@@ -5,7 +5,7 @@
5
5
  "description": "A minimal Hardhat project",
6
6
  "type": "module",
7
7
  "devDependencies": {
8
- "hardhat": "workspace:^3.5.1",
8
+ "hardhat": "workspace:^3.7.0",
9
9
  "@types/node": "^22.8.5",
10
10
  "typescript": "~6.0.3"
11
11
  }