How to Deploy Uniswap V3 on Juneo Supernet: Easy Step by Step Guide
Uniswap V3 protocol has revolutionized decentralized finance (DeFi) with its concentrated liquidity and advanced features, making it the go-to platform for liquidity providers and traders alike. But what if you want to take the power of Uniswap V3 to a whole new level by deploying it on a custom blockchain network? Enter Juneo Supernet — a scalable, developer-friendly blockchain infrastructure designed to empower innovative projects.
In this article, we’ll walk you through the process of deploying Uniswap V3 on the Juneo Supernet. We’ll cover everything you need, from setting up your environment to executing the deployment. By the end of this guide, you’ll have a fully functional Uniswap V3 deployment running on Juneo Supernet, ready to harness the benefits of this powerful blockchain network. (Psstttt… with simple modification this guide also work on any EVM Network)
Why Deploy Uniswap V3 on Juneo Supernet?
Juneo Supernet offers a unique blend of scalability, customization, and security that makes it an ideal platform for deploying Uniswap V3. Here’s why you should consider this deployment:
- Scalability: Juneo Supernet allows you to scale your DeFi application without the congestion and high fees associated with other blockchain networks.
- Customization: With Juneo Supernet, you can deploy custom Virtual Machines (VMs) tailored to your specific needs, giving you greater control over your DeFi ecosystem.
- Security: Juneo Supernet provides robust security features, ensuring that your Uniswap V3 deployment is protected against potential threats.
Now that you understand the benefits, let’s dive into the deployment process.
Prerequisites
Before you begin, ensure you have the following:
- NodeJS and Yarn: Ensure that you have the latest version of NodeJS and Yarn installed on your system.
- Private Key: An account with sufficient funds for deploying contracts.
- JSON RPC URL: The URL of the Juneo Supernet where you’ll deploy Uniswap V3.
- WETH9 Contract Address: The WETH9 contract address on Juneo Supernet (Wrapped JUNE).
- Owner Address: The address that will control the deployed contracts.
Step 1: Clone the Uniswap V3 Deployment Repository
To start, you’ll need to clone the Uniswap V3 deployment repository. This repository contains all the contracts and scripts necessary for deploying Uniswap V3.
git clone https://github.com/Uniswap/deploy-v3.git
cd deploy-v3
yarn && yarn build
After running above command you can see something like this on your terminal:
I’m using Linux and Visual Studio Code on my laptop as development environment
Step 2: Prepare Your Deployment Environment
Before running the deployment command, ensure you have all the necessary arguments ready:
- Private Key: Your wallet private key (Make sure it started with 0x…….)
- JSON RPC URL: https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc
- WETH9 Address: 0xc984ae20d0fed3b974959bcbd1721167214cded9 (wJune)
- Native Currency Label: JUNE
- Owner Address: Your wallet address
On this guide we’ll be deploying Uniswap V3 Contracts on June-Chain Socotra Testnet
You can adapt it to work on mainnet by changing the RPC and wJune address
Step 3: Deploy Uniswap V3 on Juneo Supernet
With everything in place, you’re ready to deploy Uniswap V3 on Juneo Supernet. Run the following command, replacing the placeholders with your actual values:
yarn start -pk <enter-private-key> -j <your-rpc-endpoint> -w9 <weth-address> -ncl JUNE -o <owner-address> -c <no-of-confirmations>
In my case the command will looks like this
yarn start -pk <replace with your private key> -j https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc -w9 0xc984ae20d0fed3b974959bcbd1721167214cded9 -ncl JUNE -o <replace with your wallet address>
Step 4: Monitor the Deployment
As the deployment process runs, you’ll see the contracts being deployed and ownership being transferred. Keep an eye on the terminal for any errors or prompts.
There are 15 steps in total to succesfully deploy Uniswap V3 on Juneo Supernet. On your terminal it should similar to image below:
If the deployment fails midway, don’t worry! The process will create a state.json
file that tracks your progress. You can simply rerun the command, and the deployment will resume from where it left off.
Verify your deployed contract on MCNscan
Below is all of the Uniswap V3 Contract address i managed to deploy on Juneo Supernet Socotra Testnet:
V3CoreFactory: 0xd98902e784744c60C8E5a57E6919e254822fbc89
Multicall2: 0x1D49eACCADa9B1B4351486Ef2315A2335d6b89e7
ProxyAdmin: 0x4E06f5F3BA854fEFFe53083c8E73AfFf06002f53
TickLens: 0xdaA5D8c9fa10eb7f114dD51C2F0860156aA25650
NftDescriptorLibrary: 0xc3df1Dc240bd0b9E5Df4D7816Fc1B01EA068E01c
NonfungibleTokenPositionDescriptor: 0x98c711FbFc3DC7F5229D1428Ad6ab70961E47eCD
DescriptorProxy: 0xF3E3eC287e625B898F005b006ACb5B1914D97D71
NonfungibleTokenPositionManager: 0x9A03CeAa47ca948f4deeDac24D7F866F4CB2B774
V3Migrator: 0x5D8f808aCEa0F0F3c8307256adaF42232c608484
V3Staker: 0x08e0eD742454afC06FBe132c4a80537B7643D4E1
QuoterV2: 0xD584f4ca242c9a705E7419F998922d53671354fB
SwapRouter: 0x7c89aE527002FAe424020A9a1f5FA4b690FCAF27
CONGRATULATION!!!
Deploying Uniswap V3 on Juneo Supernet opens up a world of possibilities for your DeFi project. With this guide, you’ve successfully navigated the intricacies of the deployment process, ensuring a smooth experience on a powerful blockchain network.
Stay tuned to the Juneo Supernet community for more updates, tools, and support as you continue to build and innovate on this platform. Happy deploying!
Check out my other guide:
How to Connect Metamask to Juneo Supernet: https://xdropcrypto.medium.com/how-to-add-juneo-supernet-network-to-metamask-step-by-step-guide-d943a5e79024
How to Deploy Smart Contract on Juneo Supernet: https://xdropcrypto.medium.com/build-your-first-contract-on-juneo-supernet-2ea22c9b56c0
Deploy Meme Token on Juneo Supernet: https://xdropcrypto.medium.com/how-to-deploy-a-meme-token-on-juneo-supernet-using-remix-a-complete-guide-05a6fda53683
How to Deploy your own Blockchain: https://xdropcrypto.medium.com/how-to-deploy-your-own-blockchain-on-juneo-supernet-a-step-by-step-guide-2f5b5c30f35f
Get in touch with Juneo Supernet
Website: https://juneo.com/
X: https://x.com/JUNEO_official
Telegram: https://t.me/JuneoOfficial
Github: https://github.com/Juneo-io
Discord: https://discord.gg/KTta2nqh