My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Jay Nalam

2 comments

Jweboy
Jweboy
18 hours ago
import { SingleHopSwap, IERC20 } from "../typechain-types";

May I ask how the typechain-types piece is defined? Can you suggest a reference?

·
·1 reply
Jay Nalam
Jay Nalam
Author
·12 hours ago

I used hardhat with typescript which will generate types automatically.

But if you want to generate types without hardhat, you can use typechain npmjs.com/package/typechain

·