Replies: 1 comment 1 reply
-
@aalmada questions regarding hardhat-viem should be directed to hardhat support. I tested it some time ago and everything worked as expected.
I personally use viem + wagmi on frontend as well, so there is no need for TypeChain's generated interfaces. That being said, feel free to continue using TypeChain, it works. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've returned to working with Solidity+TypeScript after taking a break for a couple of years. As I dive back in, I'm trying to catch up on what's changed. One thing that caught my attention is the soft deprecation notice for Typechain. I'm currently experimenting with Hardhat+Viem, which is mentioned in the notice. According to the linked page,
hardhat-viem
"generates types for your contracts, enhancing type-checking and IDE suggestions." However, I haven't experienced any contract method name suggestions or type error warnings in VS Code.While this doesn't seem to be a Typechain-specific issue, I'm mentioning it here because I didn't encounter these problems with Typechain before, and the notice suggests giving Hardhat+Viem a try.
Another feature I miss from Typechain is the ability to use its generated interfaces as types in my frontend code, as I demonstrate in these articles: link.
Am I overlooking something? Should I continue using Typechain? I'd appreciate your opinion.
Beta Was this translation helpful? Give feedback.
All reactions