Generate typechain types on partial compilation
A new hook was added to the solidity plugin, onBuildComplete. The type generation is now fired off this hook instead of the onCleanupArtifacts, because this last one is only triggered when a full compilation is performed. The artifact paths, needed by typechain, are retrieved through the artifact manager. So typechain can have access to all artifact paths even if a partial compilation was performed.
Closes #6311
🦋 Changeset detected
Latest commit: bb8745741429611236ac13f51a0a3aff6125ff18
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 2 packages
| Name | Type |
|---|---|
| @nomicfoundation/hardhat-typechain | Patch |
| hardhat | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
I am moving this to draft as I think it overlaps with the open zeppelin work I am doing. My plan is to look this over, then rebase my changes against it - rather than making changes here. But lets not merge a new hook that we immediately change.