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 75235c58b1 v0.0.4 6 years ago
examples [feat]update alot 6 years ago
packages v0.0.4 6 years ago
scripts [WIP] update a lot 6 years ago
typings [fix] update a lot 6 years ago
.babelrc [WIP] add dependencies 6 years ago
.eslintignore [feat] update a lot 6 years ago
.gitignore [FIX] make lerna work again 6 years ago
.prettierignore [WIP] add dependencies 6 years ago
.prettierrc [WIP] add dependencies 6 years ago
README.md [chore] update README.md 6 years ago
gulpfile.js [chore] update a lot 6 years ago
lerna.json v0.0.4 6 years ago
package.json [WIP] update a lot 6 years ago
tsconfig.base.json added harmony-network and new bundler 6 years ago
tsconfig.json [chore] update a lot 6 years ago
tsconfig.test.json [breaking] move blockchain class to core 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

Harmony-SDK-Core

A Harmony's blockchain javascript library

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

Packages

  1. harmony-core
  2. harmony-account
  3. harmony-crypto
  4. harmony-network
  5. harmony-utils
  6. harmony-transaction

Install and Build

  1. make sure you have latest node.js and yarn installed

  2. git clone

    git clone git@github.com:FireStack-Lab/Harmony-sdk-core.git
    cd Harmony-sdk-core
    
  3. cleanup and build

    yarn global add lerna && yarn install && yarn bootstrap && yarn dist
    

Test local wallet

  1. open examples
  2. run node testWallet.js
  3. you can see mnemonic and simple password and 10 accounts imported

Test with Harmony node

First you have to run harmony's test node.

  1. git clone

    git clone git@github.com:harmony-one/harmony.git
    
  2. follow the Build all executables instruction, here

  3. open your editor, inside core/resharding.go , edit GenesisShardSize = 50 to GenesisShardSize = 5

  4. use this script to run

    ./test/deploy.sh ./test/configs/ten-oneshard.txt
    

Wait for the test-node running for 30 seconds,

Then open another console , go back to our Harmony-sdk-core/examples folder,

Run:

node testNode.js

Test with ganache-cli

** ganache-cli runs in js file **,

In this case, we use ganache and ethereum's setting to simulate the result

We don't need harmony's testnode running.

  1. open examples
  2. run node testGanache.js