@dhealthdapps/bridge
v1.1.0
Published
Unidirectional Bridge for ERC20-DHP (Ethereum) to native DHP (dHealth)
Downloads
5
Readme
dHealth Wallet Plugin: Bridge UI
Bridge is a distributed bridge for ERC20 Tokens with dHealth Network Mosaics. This software defines a Unidirectional Bridge for ERC20-DHP (Ethereum) to native DHP (dHealth).
Sequence diagram
CUSTOMER BRIDGE CUSTOMER BRIDGE
|-----------------------| |-------------| |------------------------| |-------------|
---| dHealth Wallet (nDHP) | | Bridge eDHP | | Ethereum Wallet (eDHP) | | Bridge nDHP |
| |-----------------------| |-------------| |------------------------| |-------------|
| | | |
| | | |
| (1) |----------------------| |--------------| | |
|------->| Configure Swap |----| eDHP Account |---------------| |
| |----------------------| |--------------| | |
| | |
| |--------------------| | |
| (2) | TRANSFER to BRIDGE | | |
|------->| Amount: 0 < x eDHP |--------------->---------------------| |
| | Signer: Customer | |
| |--------------------| |
| |
| |----------------------| |
| (3) | TRANSFER to CUSTOMER | |
|<------------------------<------------------------| Amount: 0 < x nDHP |--------<---------|
| Signer: Bridge 2of3 |
|----------------------|
Components found here
Following components are defined and exported with this library:
| Class | Description |
| --- | --- |
| BridgeHome
| Mixin that displays a dashboard for the bridge. |
License
Copyright 2021-present Using Blockchain Ltd, All rights reserved.
Licensed under the LGPL v3.0