@dhealth/wallet-api-bridge
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

dHealth Wallet API Bridge

npm-badge dl-badge License

dHealth Wallet API Bridge is a Typescript SDK/API to permit the development of plugins for dHealth Wallet. This bridge exports important classes such as AppRoute and is also used internally by the software itself.

Modules

Following modules are defined and exported with this library:

Class Description
AppRoute Interface that describes an application route using vue-router. This class also adds meta data fields to routes.
RouteMeta Interface that describes meta data related to application routes.
PluginBridge Namespace that describes the necessary types for bridging processes between your component(s) and the wallet. This namespace includes type definitions for PluginSetting, PluginPermission, PluginStorage and for Components definitions.
Transaction Enumeration that contains all Symbol transaction types (shim for SDK).
ChainService Repository implementation for HTTP calls to /chain/ and /network/ API routes.
AccountService Repositoriy implementation for HTTP calls to /accounts/ API routes.
NodeService Repository implementation for HTTP calls to /node/ API routes.

Helpers

Following helpers are defined and exported with this library:

Helper Description
getAccountAddress() Helper function to generate a formatted address by public key.
getAccountBalance() Helper function to extract mosaic amounts.
getNodeVersion() Transformer for semantic versioning of a node's version field.

License

Copyright 2021-present Grégory Saive for dHealth Network, All rights reserved.

Licensed under the LGPL v3.0

This project is sponsored by UBC Digital Magazine.

Readme

Keywords

none

Package Sidebar

Install

npm i @dhealth/wallet-api-bridge

Weekly Downloads

0

Version

1.3.0

License

LGPL-3.0-only

Unpacked Size

8.52 MB

Total Files

55

Last publish

Collaborators

  • dhealthbot
  • evias.be