wban-smart-contract
v2.5.0
Published
dApp for swapping BAN to wBAN on Binance Smart Chain
Downloads
5,335
Maintainers
Readme
wBAN -- Wrapped Banano
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.
Setup
Wallet setup
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:
Start development node
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.
Start frontend
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.
Deployment Instructions
- Testnet:
yarn deploy:testnet