This projet is part of a bigger one allowing to swap Banano crypto to wBAN
(Wrapped Banano)
on Binance Smart Chain, and vice-versa.
wBAN
is implemented as a BEP20 token.
This repository contains both the smart-contract code as well as the frontend.
Copy the .env.default
file as a .env
file.
In the .env
file change the mnemonic and write the one you are using with Metamask.
Next add a custom network in Metamask defined like this:
Install all the project dependencies: yarn install
.
Simply running yarn node:watch
will compile and deploy the smart-contract on a Hardhat EVM.
Every time the source code of the smart-contract is changed, it is redeployed on this EVM.
In the frontend
directory, install all the frontend dependencies: yarn install
.
Then run yarn serve
.
After frontend compilation, the dApp should be available at: http://localhost:8080.
- Testnet:
yarn deploy:testnet