Deploying Uniswap on the Matic testnet

  • Deploying Uniswap contracts on Matic testnet
  • Updating the latest frontend of Uniswap to use these contracts
  • Deploying the frontend to Github Pages

Pre-requisite

Deploying contracts on Matic testnet

1. Compile exchange contract

2. Deploy exchange contract

3. Compile and deploy factory contract

Updating the frontend

$ git clone https://github.com/Uniswap/uniswap-frontend
$ cd uniswap-frontend
$ yarn
REACT_APP_NETWORK_ID="8995" REACT_APP_NETWORK_URL="https://testnet2.matic.network"
export const FACTORY_ADDRESSES = {
1: '0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95',
3: '0x9c83dCE8CA20E9aAF9D3efc003b2ea62aBC08351',
4: '0xf5D915570BC477f9B8D6C0E980aA81757A3AaC36',
42: '0xD3E51Ef092B2845f10401a0159B2B96e8B6c3D30',
8995: '0x0f970cf1edebd269e48e085608e9bd334af0c07b'
}
$ yarn start

Deploying the frontend to Github Pages

$ yarn add gh-pages
{
"name": "uniswap",
"description": "Uniswap Exchange Protocol",
"version": "0.1.0",
"homepage": "https://bakaoh.github.io/uniswap-frontend",
...
"scripts": {
...
"predeploy": "yarn run build",
"deploy": "gh-pages -d build"
},
$ yarn run deploy

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Finding Value in #DeFi Governance Token | SnapFingers Weekly #7

Product Update Issue 12*: C-OP Liquidity Incentive and Union CDS (U-CDS)

Advantages of Blockchain for Health Data: Part 1

Konomi and Apron Network Partner to Optimize Platform Node Performance

Blockchain Meets Challenges of the Music Industry

MASD GAMES is a multiplayer 3D game with blockchain technology👾

$RELAY3R — relay3r.network AMA Held November 23rd @ 2pm EST

Digital Artwork. Blockchain. ETH. and OpenSea — what do they all have in common?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bakaoh

Bakaoh

More from Medium

What Is a Rugpull? Tips on How To Avoid Them

Guide To Convert ERC-20 Tokens To The Binance Smart Chain With The Binance Bridge

The most complete blockchain financial investment information query and airdrop tutorial Fomoin.fina

How to create your own Solana Token