1.1.0 • Published 2 years ago

@dhealthdapps/bridge v1.1.0

Weekly downloads
-
License
LGPL-3.0-only
Repository
github
Last release
2 years ago

dHealth Wallet Plugin: Bridge UI

npm-badge dl-badge License

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:

ClassDescription
BridgeHomeMixin that displays a dashboard for the bridge.

License

Copyright 2021-present Using Blockchain Ltd, All rights reserved.

Licensed under the LGPL v3.0