DEX Tools โ Uniswap V3 & GluwaDEX Deployment
๐ญ Overview
A comprehensive deployment toolkit and CLI for managing DEX smart contracts โ covering both the full Uniswap V3 protocol stack and the custom GluwaDEX (SwapPool V1/V2, SwapRouter). Designed for reliable, repeatable deployments across local Docker environments, testnet, and production networks.
๐ ๏ธ What I Built
๐ฑ Uniswap V3 Full Protocol Deployment
- ๐ญ Complete Uniswap V3 deployment: UniswapV3Factory, UniswapV3Pool, SwapRouter, NonfungiblePositionManager, NonfungibleTokenPositionDescriptor, QuoterV2
- โ๏ธ Deployment scripts with configurable fee tiers, tick spacing, and initial pool parameters
- โ Post-deployment validation: verifies pool creation, fee configuration, and position manager linkage
- ๐ง Liquidity provision scripts for initializing pools with seed liquidity
๐ GluwaDEX Deployment
- ๐ SwapPool V1 and V2 contract deployment with configurable fee parameters
- ๐ SwapRouter deployment and integration with pool registry
- ๐ Migration scripts for V1 โ V2 pool upgrades
- โ๏ธ Administrative scripts for fee updates and pool pausing
โจ๏ธ CLI Tool
- ๐ฌ Interactive CLI for common DEX operations: create pool, add liquidity, swap, collect fees
- ๐ Supports local Docker environment, testnet, and mainnet via
--networkflag - ๐ Human-readable output with transaction hashes, gas costs, and resulting state
๐ณ Docker-Based Local Test Environment
- ๐ณ Docker Compose with local Hardhat node + deployed DEX contracts
- ๐ฑ Pre-seeded with test tokens, liquidity pools, and funded test wallets
- ๐ Deterministic: same environment every time, no state drift between test runs
๐งช Integration Test Suite
- ๐ End-to-end tests covering: pool creation โ liquidity provision โ swap execution โ fee collection
- ๐ Price impact validation: verifies swap outputs match Uniswap V3 price math
- ๐ Multi-hop swap tests through multiple pools
- โ Invariant tests: pool invariant (x*y=k) holds after all operations
โญ Key Highlights
- ๐ญ Full Uniswap V3 protocol stack deployed and validated in a single command
- ๐ณ Docker-based deterministic test environment eliminates "works on my machine" issues
- โจ๏ธ CLI tool enables non-engineer team members to interact with DEX contracts safely
- ๐งช Integration tests validate complete swap lifecycle from pool creation to fee collection