This is Pandaa token bridge web dapp that allow users to transfer Pandaa token between Goerli testnet and Binance testnet.
View Demo
·
Report Bug
·
Request Feature
Table of Contents
- Solidity
- Truffle
- Web3 Js
- Ether Js
- Javascript
- React Js
Below is a list of prerequisite:
$ npm install
Create a .env file and update the value for the following fields. Note that REACT_APP_PRIVATE_KEY should be the same value as PRIVATE_KEY. and REACT_APP_INFURA_API_KEY should be the same value as INFURA_API_KEY.
PRIVATE_KEY=""
INFURA_API_KEY=""
REACT_APP_PRIVATE_KEY=""
REACT_APP_INFURA_API_KEY=""$ npx ganache -p 7545
$ npx truffle test
$ npx truffle migrate --reset
And specify network information with --network. Note we need to deploy contracts twice,
once on goerli testnet and once on binance testnet.
In another separate terminal run:
$ npm start
-
To interact with the web dapp, first connect an ethereum account with metamask wallet and connect your ethereum account which you used for contract deployment. This is to make sure you have Pandaa Token already minted for you to begin with.
-
Before we start, make sure metamask is configured to display both Goerli testnet and Binance testnet. Input below chain info in metamask to add Binance testnet:
Network name: BSC Testnet
New RPC URL:
https://data-seed-prebsc-1-s1.binance.org:8545/
Chain ID:
97
Currency symbol:
tBNB
Block explore URL:
https://testnet.bscscan.com-
Add Pandaa token to your MetaMask on Goerli and Bsc testnet. Click
Add Token to Metamaskbutton would add Pandaa token symbol on your metamask goerli and bsc networks. You should be able to see some Pandaa Token balance on both networks instantly. -
Connect your wallet and input an amount in ether to bridge. You should receive metamask prompt to sign message and then confirm the transaction. After a short wait(typically less than 1 minute), you should see the waiting message disappear. And you can check your new Pandaa token balance which confirms the bridging is successful.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
bzpassersby - @bzpassersby - bowenzby@gmail.com
