Skip to content

zOthix/uniswap-v3-interface

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniswapV3 Interface Customization Documentation

This documentation provides step-by-step instructions on how to customize and run the UniswapV3 Interface for a specific blockchain network. The process involves replacing contract addresses and chain IDs to match the target blockchain.

Prerequisites

  • Node.js and npm must be installed on your system.
  • Yarn package manager must be installed on your system.

Setup Instructions

  1. Environment Setup

    Begin by cloning the repository.

  2. Add Chain Logo

    Place your logo as an SVG image inside the post_install_scripts directory. Ensure the filename is logo.svg.

  3. Replace Contract Addresses

    Modify the replace_addresses.sh script located in the post_install_scripts directory. Replace the placeholder contract addresses mentioned below with the deployed contract addresses for your target blockchain.

    # ADDRESSES TO REPLACE WITH
    WETH_ADDRESS=""
    USDC_ADDRESS=""
    USDT_ADDRESS=""
    WBTC_ADDRESS=""
    DAI_ADDRESS=""
    FACTORY_ADDRESS=""
    SWAP_ROUTER_ADDRESS=""
    NFT_DESCRIPTOR_ADDRESS=""
    POSITION_DESCRIPTOR_ADDRESS=""
    POSITION_MANAGER_ADDRESS=""
    MULTICALL_ADDRESS=""
    QUOTER_ADDRESS=""
    V3_MIGRATOR_ADDRESS=""
    TICK_LENS_ADDRESS=""
    SUBGRAPH_URL=""
    RPC_URL=""
    SCAN_URL=""
    UNIVERSAL_ROUTER_ADDRESS=""
  4. Replace Chain ID and Chain name

    Modify the replace_chainid.sh script located in the post_install_scripts directory. Add the chain id in CHAIN_ID of your target blockchain.

    CHAIN_ID=
    CHAIN_NAME=""
    CHAIN_BRIDGE=""
  5. Install dependencies

    Run the following command to install project dependencies:

    yarn
  6. Run post install scripts

    Run the following command to execute post-install scripts to replace addresses and chain ID:

    yarn replace-chain
  7. Prepare Project

    yarn web prepare
  8. Start Project

    For Development

    yarn web start

    For Production

    yarn web build:production
    yarn web serve

Tested Environment

This customization has been tested for Optimism Sepolia (L2) network using the following environment:

  • Node.js version: 20.2
  • Yarn version: 3.6.3

Conclusion

By following these steps, you should be able to customize and run the UniswapV3 Interface project for your blockchain network. This enables you to leverage Uniswap's decentralized exchange functionality within your custom environment.

About

🦄 Open source interfaces for the Uniswap protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.6%
  • Swift 1.7%
  • Kotlin 1.2%
  • JavaScript 0.9%
  • Shell 0.2%
  • Objective-C 0.2%
  • Other 0.2%