Sign in
Log inSign up
Jay Nalam

3 comments

Jweboy
Jweboy
May 21, 2024
import { SingleHopSwap, IERC20 } from "../typechain-types";

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

·
·2 replies
Jay Nalam
Jay Nalam
Author
·May 21, 2024

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

·
Jweboy
Jweboy
May 22, 2024

Thanks, I found the command, ran npx hardhat typechain and it auto-generated it for me.Jay Nalam

1
·