This UI app provides an ability for a user to watch for events that is happening on both sides of the bridge.
On the left side is HomeBridge contract On the right side is ForeignBridge contract If you want to use this app, please follow the instruction:
- Deploy HomeBridge contract
- Deploy ForeignBridge contract
- Hard code addresses into the Dapp source code(App.js)
- Specify websockets endpoints for both sides of nodes
- Send native coin to HomeBridge smart contract
- Make sure you received ERC20 on ForeignBridge
- When you want to exchange ERC20 from ForeignBridge Click "Generate Signature to Home" button on the ForeignBridge chain network
- Make sure you have CollectedSignatures event with message hash
- Provide the message hash into the input box and click "Withdraw from Home" in order to get locked coins from HomeBridge to your address