---
title: "Comment by Jweboy on \"Uniswap V3 Swap - Part 1\" | Hashnode"
description: "import { SingleHopSwap, IERC20 } from \"../typechain-types\" ; May I ask how the typechain-types piece is defined? Can you suggest a reference?"
url: "https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a/comment/664c141095fae0525d9881f9"
---

[Discussion](https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a)

Comment [Uniswap V3 Swap - Part 1](https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a)

[Jweboy](https://hashnode.com/@Jweboy)

[May 21, 2024](https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a/comment/664c141095fae0525d9881f9)

```
import { SingleHopSwap, IERC20 } from "../typechain-types";
```

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

[Jay Nalam](https://hashnode.com/@jveer634)

[May 21, 2024](https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a/comment/664c141095fae0525d9881f9#reply-664c69c9f122655225021d9e)

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](https://www.npmjs.com/package/typechain)

[Jweboy](https://hashnode.com/@Jweboy)

[May 22, 2024](https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a/comment/664c141095fae0525d9881f9#reply-664d70263cef3b527ca5f269)

Thanks, I found the command, ran `npx hardhat typechain` and it auto-generated it for me.[Jay Nalam](https://hashnode.com/@jveer634)
