Skip to content

[Typechain] modify the plugin to generate types for a subset of contracts #6311

@ChristopherDedominici

Description

@ChristopherDedominici

Describe the feature

In Hardhat v2, all contracts were compiled together each time, causing TypeChain to regenerate types for all contracts on every run.

In Hardhat v3, it is possible to compile only a subset of contracts. However, when doing so, the types folder is overwritten, retaining only the types from the compiled subset. As a result, types from previously compiled contracts are lost.

Can we prevent this? We should investigate how to generate types for a subset of contracts without deleting the existing types

Search terms

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Blocked

Relationships

None yet

Development

No branches or pull requests

Issue actions