Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.72 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.72 KB

Ethereum To Polygon Bridge Dapp

Setup & Installation

  1. Install the dependencies in the package
npm i
  1. Sign in to Infura, create a new project, copy your project id and put it into the "infuraId" constant in the config.js file. Besides Infura, you can also use other developer platforms like Alchemy or Quicknode.

  2. Currently, I have added only 3 tokens for the mainnet (DAI, USDC, USDT). (derc20 is a test token for the testnet)

    To add more tokens, you will need the ethereum contract address & the polygon contract address for that token. Then add that to the tokenToAddressMap object in the config.js file (taking example from the image above). Also add the token name to the "mainnet" list in the erc20Tokens object.

To add the image for a token, add the png file to the public directory. Make sure to rename the file to the name of the token (token.png)

  1. To run the dapp
npm run dev
  1. Additional tutorial – if you're interested in smart contract deployment on Polygon, here's a beginner tutorial