
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@dhealthdapps/bridge-sdk
Advanced tools
dHealth Bridge SDK: Development Kit for dHealth Unidirectional Bridge (ERC20-DHP:DHP)

dHealth Bridge is a distributed bridge for ERC20-DHP Tokens (ethereum DHP) with dHealth Network DHP (native DHP). This software defines a Unidirectional Bridge for ERC20-DHP (Ethereum) to native DHP (dHealth).
This software package contains a Software Development Kit for operations with the dHealth Bridge.
Following classes are defined and exported with this library:
| Class | Description | 
|---|---|
| Bridge | Class that accepts a root extended public key in the constructor and derives child accounts for Ethereum. | 
| Amount | Class that wraps amounts for safe usage and arithmetic operations. | 
| ´SafeNumber` | Class for using big integer numbers using Javascript ( bignumber.js). | 
| CatapultAddress | Class that generates catapult addresses from public keys. | 
| EthereumAddress | Class that generates ethereum addresses from public keys. | 
| MultisigSetupTransaction | Helper class that creates multi-signature setup transactions. | 
| HttpClient | Class that implements a HTTP client for the bridge cloud functions. | 
| ExpectedSwapDTO | Interface that defines the structure of incomplete swaps. | 
| SwapDTO | Interface that defines the structure of complete swaps. | 
Install the software with npm install @dhealthdapps/bridge-sdk (add -d to add it to devDependencies).
Unit tests can be run with npm run test. The bridge SDK unit test intentionally includes unit tests that derive child account. Please, never use the unit tested extended keys in any production environment whatsoever.
Copyright 2021-present dHealth Network, All rights reserved.
Licensed under the LGPL v3.0
FAQs
dHealth Bridge SDK: Development Kit for dHealth Unidirectional Bridge (ERC20-DHP:DHP)
We found that @dhealthdapps/bridge-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.