1.3.0 • Published 3 years ago

@dhealth/wallet-api-bridge v1.3.0

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

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:

ClassDescription
AppRouteInterface that describes an application route using vue-router. This class also adds meta data fields to routes.
RouteMetaInterface that describes meta data related to application routes.
PluginBridgeNamespace 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.
TransactionEnumeration that contains all Symbol transaction types (shim for SDK).
ChainServiceRepository implementation for HTTP calls to /chain/ and /network/ API routes.
AccountServiceRepositoriy implementation for HTTP calls to /accounts/ API routes.
NodeServiceRepository implementation for HTTP calls to /node/ API routes.

Helpers

Following helpers are defined and exported with this library:

HelperDescription
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.