hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

Generate typechain types on partial compilation

Open antico5 opened this issue 1 month ago • 2 comments

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

antico5 avatar Nov 19 '25 15:11 antico5

🦋 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

changeset-bot[bot] avatar Nov 19 '25 15:11 changeset-bot[bot]

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.

kanej avatar Dec 02 '25 09:12 kanej