Deploying to VinuChain

Step-by-step guide for deploying VinuSwap to VinuChain.

Network Configuration

Add VinuChain to Hardhat

The network is already configured in hardhat.config.ts:

networks: {
    vinu: {
        url: process.env.VINU_RPC_URL || 'https://rpc.vinuchain.org',
        accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
        chainId: 207
    }
}

Verify Connection

npx hardhat console --network vinu

# In console:
> const balance = await ethers.provider.getBalance(await ethers.getSigner().then(s => s.getAddress()))
> console.log(ethers.utils.formatEther(balance))

Step 1: Deploy Fee Managers

Deploy TieredDiscount

Step 2: Deploy Core Infrastructure

Deploy Controller and Factory

Step 3: Deploy Periphery

Deploy SwapRouter

Deploy Position Manager

Deploy Quoter

Step 4: Deploy Utilities

Deploy PoolInitHelper

Complete Deployment Script

Verification

Verify on VinuChain Explorer

Example Verification

Post-Deployment

After deployment, proceed to:

  1. Pool Creation - Create initial pools

  2. Configuration - Configure protocol settings

Last updated