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
415b288a93
|
6 years ago | |
---|---|---|
examples | 6 years ago | |
packages | 6 years ago | |
scripts | 6 years ago | |
typings | 6 years ago | |
.babelrc | 6 years ago | |
.eslintignore | 6 years ago | |
.gitignore | 6 years ago | |
.prettierignore | 6 years ago | |
.prettierrc | 6 years ago | |
README.md | 6 years ago | |
gulpfile.js | 6 years ago | |
lerna.json | 6 years ago | |
package.json | 6 years ago | |
tsconfig.base.json | 6 years ago | |
tsconfig.json | 6 years ago | |
tsconfig.test.json | 6 years ago | |
tslint.json | 6 years ago | |
webpack.config.js | 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
Install and Build
-
make sure you have latest
node.js
andyarn
installed -
git clone
git clone git@github.com:FireStack-Lab/Harmony-sdk-core.git cd Harmony-sdk-core
-
cleanup and build
yarn global add lerna && yarn install && yarn bootstrap && yarn dist
Test local wallet
- open examples
- run
node testWallet.js
- you can see
mnemonic
andsimple password
and 10 accounts imported
Test with Harmony node
First you have to run harmony's test node.
-
git clone
git clone git@github.com:harmony-one/harmony.git
-
follow the
Build all executables
instruction, here -
open your editor, inside
core/resharding.go
, editGenesisShardSize = 50
toGenesisShardSize = 5
-
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.
- open
examples
- run
node testGanache.js