Javascript SDK of WoopChain protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
neeboo caa33e4b2e v0.0.47 5 years ago
e2e fix(multiple):added toShardID 5 years ago
packages v0.0.47 5 years ago
scripts chore(README): fix build:ts before test:e2e 5 years ago
typings [fix] update a lot 6 years ago
.babelrc [WIP] add dependencies 6 years ago
.env wip(e2e): add e2e tests 5 years ago
.eslintignore [feat] update a lot 6 years ago
.gitignore [fix] remove devTestOnly 6 years ago
.prettierignore [WIP] add dependencies 6 years ago
.prettierrc [WIP] add dependencies 6 years ago
LICENSE [feat] update LICENSE 6 years ago
README.md chore(transaction):added `Transaction.observe()` 5 years ago
gulpfile.js [chore] update a lot 6 years ago
lerna.json v0.0.47 5 years ago
package.json chore(transaction):added `Transaction.observe()` 5 years ago
tsconfig.base.json added harmony-network and new bundler 6 years ago
tsconfig.e2e.json wip(e2e): add e2e tests 5 years ago
tsconfig.json [chore] update a lot 6 years ago
tsconfig.test.json [fix] update a lot and add test fixtures for transaction 6 years ago
tslint.json [WIP] add dependencies 6 years ago
webpack.config.js added harmony-network and new bundler 6 years ago

README.md

npm version

Harmony-SDK-Core

A Harmony's blockchain javascript library

It's a mono-repo library, not yet published to npm.

Install from npm/yarn


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

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

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

Start hacking

  1. install lerna and typescript globally
yarn global add lerna && yarn global add typescript
  1. bootstrap repostory
yarn bootstrap

Packages

  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

Manually Build/bundle

There are two ways building

  1. building the es5 version bundled javascript for each sub-packages, which can be run in Browser directly.

    yarn dist
    

    All files are exported in /dist folder

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

    yarn bundle
    

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

Examples

E2E tests

Contantly updating now, please get back later

  1. edit .env file if you have custom setting
  2. run harmony node locally(this fork currently : https://github.com/mikedoan/harmony/tree/enable_tx)
  3. wait for 1-2 mins, and run this:
yarn build:ts && yarn test:e2e