Summary
Upgrade the contracts development toolchain to the latest eligible major versions older than 3 days as of 2026-04-23:
hardhat 2.28.6 -> 3.4.0
@nomicfoundation/hardhat-toolbox 6.1.2 -> 7.0.0
@nomicfoundation/hardhat-ethers 3.1.3 -> 4.0.8
@nomicfoundation/hardhat-foundry 1.2.1 -> 3.0.1
Why this is not in the current dependency bump PR
The current PR only includes safe minor/patch updates and targeted overrides. This Hardhat migration is breaking and touches the contracts build system, plugin compatibility, runtime behavior, and test/deployment flows.
Documentation
Expected codebase changes
- Review
contracts/hardhat.config.ts and any custom tasks/scripts for Hardhat 3 API changes.
- Re-check plugin compatibility for Toolbox, Ethers, Foundry integration, and verification.
- Revalidate generated artifacts and any assumptions around
build-info output.
- Revisit dependency overrides related to
hardhat, undici, and related transitive packages.
- Re-assess the remaining
uuid audit path coming from contracts>hardhat>uuid after the migration.
Migration plan
- Move the Hardhat core package to
3.4.0 and align the official plugin versions listed above.
- Update config/task usage to the Hardhat 3 APIs and resolve any compile/runtime breaks.
- Remove obsolete overrides and keep only the ones still required after the toolchain upgrade.
- Reinstall and verify whether the
uuid audit path is reduced or removed.
- Update any CI or local workflow assumptions if artifact names or build metadata change.
Validation checklist
- Run the contracts test suite end-to-end.
- Re-run any deployment or verification scripts that rely on Hardhat plugins.
- Run
pnpm audit and compare the contracts audit paths before/after the migration.
- Confirm there is no regression in local developer workflows.
Summary
Upgrade the contracts development toolchain to the latest eligible major versions older than 3 days as of 2026-04-23:
hardhat2.28.6->3.4.0@nomicfoundation/hardhat-toolbox6.1.2->7.0.0@nomicfoundation/hardhat-ethers3.1.3->4.0.8@nomicfoundation/hardhat-foundry1.2.1->3.0.1Why this is not in the current dependency bump PR
The current PR only includes safe minor/patch updates and targeted overrides. This Hardhat migration is breaking and touches the contracts build system, plugin compatibility, runtime behavior, and test/deployment flows.
Documentation
Expected codebase changes
contracts/hardhat.config.tsand any custom tasks/scripts for Hardhat 3 API changes.build-infooutput.hardhat,undici, and related transitive packages.uuidaudit path coming fromcontracts>hardhat>uuidafter the migration.Migration plan
3.4.0and align the official plugin versions listed above.uuidaudit path is reduced or removed.Validation checklist
pnpm auditand compare the contracts audit paths before/after the migration.