dethcrypto / dethcrypto/TypeChain

Feature request: types for the values returned by "hre.artifacts.readArtifact"

Open
#386 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.8k
Forks
376
PR merge metrics
No merged PRs in 30d

Description

Fantastic work with the v5 addition of typings to the "getContractFactory" function - [I added them](https://github.com/paulrberg/solidity-template/blob/3def942b3ae779e491627837d4837b21c138e9d1/scripts/deploy.ts) to my Solidity template.

In a similar fashion, it would be nice to have bespoke types for the values returned by the `readArtifact` function offered by Hardhat. After all, there is a limited number of artifacts that Hardhat can pick up from the "artifacts" folder. See [this line](https://github.com/paulrberg/solidity-template/blob/main/test/Greeter.ts#L22) for an example for how the `readArtifact` function is used.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.