Deployment Overview

This section covers deploying VinuSwap contracts to VinuChain and other EVM networks.

Deployment Order

VinuSwap contracts must be deployed in a specific order due to dependencies:

1. Fee Management (Optional)
   └── TieredDiscount
   └── OverridableFeeManager (if needed)
   └── NoDiscount

2. Core Infrastructure
   ├── Controller (fee distribution)
   └── VinuSwapFactory

3. Periphery Contracts
   ├── SwapRouter
   ├── NFTDescriptor (library)
   ├── NonfungibleTokenPositionDescriptor
   ├── NonfungiblePositionManager
   └── VinuSwapQuoter

4. Utility
   └── WVC (if not existing)
   └── PoolInitHelper

Deployment Architecture

Prerequisites

Environment Setup

Environment Variables

Deployer Account

Ensure the deployer account has sufficient native tokens for gas:

  • VinuChain: Minimum 1000 VINU recommended

  • Testnet: Use faucet to obtain test tokens

Quick Deploy

Using Deployment Script

Using Modular Scripts

Deployment Checklist

Pre-Deployment

Deployment

Post-Deployment

Contract Addresses Template

After deployment, document addresses:

Next Steps

Last updated