-
Deploy bridge contracts
- Clone repo https://github.com/poanetwork/poa-bridge-contracts
- Checkout branch
v2
- Compile contracts (
truffle compile
) - Go to
deploy
folder and create a.env
file (look at.env.example
to see the variables that need to be present) - Execute
node deploy.js
-
Create a
.env
file and fill in the information using the output of the deploy in the previous step. Check the.env.example
file to see the required variables. -
Run
node src/start.js
In order to quickly send deposits run
node tests/sendUserTxToHome.js
this will send small deposits to home contract
Make sure your HOME_MIN_AMOUNT_PER_TX is same as in your .env deployment contract
In order to quickly send withdrawals run
node tests/sendUserTxToForeignWithdraw.js
To use the bridge UI, clone the repo,
create a .env
using the same values as before, and run npm start
.