---
title: "Discussion on \"Uniswap V3 Swap - Part 1\" | Hashnode"
description: "Discussion on \"Uniswap V3 Swap - Part 1\". A guide on how to perform token swapping using uniswap v3 on our solidity smart contracts"
url: "https://hashnode.com/posts/uniswap-v3-swap-part-1/6602f323b009b26c266f001a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Uniswap V3 Swap - Part 1](https://blog.jnalam.dev/uniswap-v3-swap-part-1?utm_source=hashnode&utm_medium=feed)

A guide on how to perform token swapping using uniswap v3 on our solidity smart contracts

Mar 26, 2024 · 6 min read · blog.jnalam.dev  
Updated Mar 28, 2024  
Read the article

-   [#dapp](https://hashnode.com/tag/dapp)
-   [#ethereum](https://hashnode.com/tag/ethereum)
-   [#defi](https://hashnode.com/tag/defi)
-   [#solidity](https://hashnode.com/tag/solidity)

## Written by

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

@jveer634 · India

  
[View profile](https://hashnode.com/@jveer634)

Freelance Full stack Web3 Engineer

Hi, I'm Jay Nalam, a seasoned Web3 Engineer committed to advancing decentralized technologies. Specializing in EVM-based blockchains, smart contracts, and web3 protocols, I've developed NFTs, DeFi protocols, and more, pushing boundaries in the crypto realm.

## Responses 1

Markdown supported · ⌘↵ to post

[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)
