All Projects → harmony-one → sdk

harmony-one / sdk

Licence: MIT license
Javascript SDK of Harmony protocol.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sdk

one-wallet
1wallet - unconventional keyless, non-custodial wallet secured by Google Authenticator. EVM-compatible, smart contract operated, with composable security.
Stars: ✭ 85 (-9.57%)
Mutual labels:  harmony
cacophony
Cacophony HTML5 Interactive Video Player
Stars: ✭ 41 (-56.38%)
Mutual labels:  harmony
arpeggio
A chord naming app for guitar written in React.
Stars: ✭ 49 (-47.87%)
Mutual labels:  harmony
harmony-discord
Harmony theme for Discord
Stars: ✭ 12 (-87.23%)
Mutual labels:  harmony
Loqui
A Harmony client made with Rust using the egui GUI library.
Stars: ✭ 41 (-56.38%)
Mutual labels:  harmony
dfk
Interact with the contracts of DefiKingdoms
Stars: ✭ 74 (-21.28%)
Mutual labels:  harmony
farm-army-backend
Track your farming and pool performance on the Binance Smart Chain, Polygon, Fantom, KuCoin Community Chain, Harmony, Celo - https://farm.army - nodejs backend
Stars: ✭ 86 (-8.51%)
Mutual labels:  harmony
JecsTools
Adds modding components to RimWorld: vehicles, spell casting, weapon slots, oversized weapons, and more!
Stars: ✭ 17 (-81.91%)
Mutual labels:  harmony
openharmony-sheet
📊从零开始使用华为鸿蒙 OpenHarmony 开发游戏和表格渲染引擎
Stars: ✭ 132 (+40.43%)
Mutual labels:  harmony
OpenHarmony
华为鸿蒙分布式操作系统(Huawei OpenHarmony)开发技术交流,鸿蒙技术资料,手册,指南,共建国产操作系统万物互联新生态。
Stars: ✭ 373 (+296.81%)
Mutual labels:  harmony
NegativeHarmonizer
A python tool to invert the tonality (a.k.a negative harmony) of midi notation
Stars: ✭ 23 (-75.53%)
Mutual labels:  harmony
protocol
The schemas for the Harmony protocol
Stars: ✭ 16 (-82.98%)
Mutual labels:  harmony
ABC
Annotated Beethoven Corpus (ABC): A dataset of harmonic analyses with standardized labels
Stars: ✭ 37 (-60.64%)
Mutual labels:  harmony
node-red-contrib-harmony
Node-RED integration for Harmony hub
Stars: ✭ 16 (-82.98%)
Mutual labels:  harmony
ModLoaderInstaller
JavaFX application that installs a mod loader for the game The Long Dark
Stars: ✭ 52 (-44.68%)
Mutual labels:  harmony
chrome-extension-wallet
Harmony Chrome Extension Wallet
Stars: ✭ 54 (-42.55%)
Mutual labels:  harmony
harmony
Mirror of Apache Harmony
Stars: ✭ 72 (-23.4%)
Mutual labels:  harmony
When-in-Rome
A meta-corpus of functional harmonic analysis.
Stars: ✭ 35 (-62.77%)
Mutual labels:  harmony
awesome-defi
Curated list of awesome DeFi protocols, dapps, wallets and other resources
Stars: ✭ 36 (-61.7%)
Mutual labels:  harmony
harmony-ops
Harmony Ops Master Repository.
Stars: ✭ 36 (-61.7%)
Mutual labels:  harmony

Harmony JavaScript SDK

npm version Build Status

This is the Harmony Javascript SDK which provides an easier way to interact with Harmony blockchain.

Please read the documentation for full API doc.

The SDK includes following packages with package-level documentation and examples inside each package.

  1. @harmony-js/core
  2. @harmony-js/account
  3. @harmony-js/crypto
  4. @harmony-js/network
  5. @harmony-js/utils
  6. @harmony-js/transaction
  7. @harmony-js/contract
  8. @harmony-js/staking

Examples

Installation

This library works on both nodejs and browser. Please use it according to your use case.

Enviorment requirement

  • Nodejs: 10.0+
  • Browser: Latest Chrome and Firefox

Install from npm/yarn

Note: we added a @next tag to npm package, please use the following command to install with npm/yarn

# npm
npm install @harmony-js/core@next 

# yarn
yarn add @harmony-js/core@next

# tslib is required, we'd better install it as well
npm install tslib
yarn add tslib

Building from source files

Install lerna and typescript globally

yarn global add lerna && yarn global add typescript

Bootstrap and build

yarn bootstrap

Bundle

Build umd and esm version javascript for each sub-packages, which can be accessed by import or require

yarn dist

All files are exported in packages/dist folder, use **.esm.js or **.umd.js format

Running Tests

Unit tests

yarn test:src

e2e tests

  1. Remove the 'cross-fetch': 'jest-fetch-mock' line from scripts/jest/jest.e2e.config.js
  2. Run harmony node locally, follow the instructions: https://github.com/harmony-one/harmony
  3. Wait for 1-2 mins, and run this:
yarn build && yarn test:e2e
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].