| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This Javascript SDK enables browsers and NodeJS clients to interact with the Lum Network.
The library is tested using NodeJS 10.x, 12.x, 14.x, 15.x.
It should also work in all recent browsers.
yarn add @lum-network/sdk-javascriptThe SDK code should be documented enough for developers to explore and use it easily. Therefore the documentation might not cover all the capabilities of the SDK. Feel free to contribute if you wish to improve the code documentation and/or the provided samples.
The Documentation contains:
This SDK provides an easy access to all the available Lum Network blockchain RPCs as well as the payload generation and the cryptographic features to properly consume those RPCs.
Most commonly used features:
The SDK is based on the CosmJS implementation and heavily relies on it.
It is intented to be used standalone, without having to import specific CosmJS packages which can get make implementations tricky and messy.
Therefore all codecs, types, functions are features from the CosmJS SDK are either re-implemented by this SDK or re-exported for simplicity purposes.
Directly importing the CosmJS SDK or other cryptographic library should be considered bad practice for most use cases.
Do not hesitate to contribute to this repository. This SDK is intended to be a one-stop-shop for all Lum Network javascript implementations and should definitely be improved over time by all its users.
yarn testIn order to run the unittest involving Ledger devices you need to do the following:
As of v0.40, the Cosmos SDK uses protocol buffers as its standard serialization format for blockchain state and wire communication. This library by default supports protocol buffer serialization for many of the standard queries and messages defined by the Cosmos SDK and the Lum Network custom implementations.
First you will need to have the buf CLI installed globally on your machine.
On Mac via Homebrew for exemple:
brew install bufbuild/buf/bufThen
yarn get-protoyarn define-protoContributions are most welcome.
Please test your changes with a local client and add unit tests coverage for your code before submission.
| Back | FazBrowse Home | New Git URL |