Token bridge between Ethereum and Binance Smart Chain
To see the mnemonic or seed phrase in Metamask, follow this instruction.
The Metamask account (mnemonic in the .env
) needs to have enough funds in the network where you want to interact with the smart contracts. For example, to add funds to the Rinkeby test network, visit Rinkeby Faucet.
cp .env.example .env
vi .env # add an account's mnemonic and an Infura API key
Compile the smart contracts:
yarn compile
Deploy to Rinkeby:
yarn deploy:rinkeby
Deploy to BSC test network:
yarn deploy:bsctest
Check balance in Rinkeby:
yarn balance-token-eth
Check balance in BSC test network:
yarn balance-token-bsc
Run the bridge in Rinkeby:
yarn bridge-eth-bsc
Transfer tokens from Rinkeby to BSC test network:
yarn transfer-eth-bsc