This Hardhat 3 Alpha release adds support for Blockscout to the hardhat-verify
plugin and overhauls how dependency resolution and remappings work.
Improved support for remappings
Hardhat now supports remappings.txt
files in your project, as well as in git submodules and npm dependencies.
Each remappings.txt
file applies to the directory where it's located and all its subdirectories, similar to how .gitignore
works.
This version also removes support for defining remappings
directly in your solidity
config. Please migrate to using remappings.txt
files instead.
Additionally, remapping targets for npm packages have changed. Previously, these targets used the format npm/<package>@<version>/...
. They now follow the structure node_modules/<package>/...
, which is simpler and better aligned with the rest of the ecosystem.
Changes
- fe42147: Revamp the dependency resolution system
- ab67a7d: Add support for verifying contracts in Blockscout to hardhat-verify.
💡 The Nomic Foundation is hiring! Check our open positions.