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
e671f4d969
|
5 years ago | |
---|---|---|
docs | 5 years ago | |
e2e | 5 years ago | |
packages | 5 years ago | |
scripts | 5 years ago | |
typings | 6 years ago | |
.babelrc | 6 years ago | |
.env | 5 years ago | |
.eslintignore | 6 years ago | |
.gitignore | 6 years ago | |
.prettierignore | 6 years ago | |
.prettierrc | 6 years ago | |
.travis.yml | 5 years ago | |
.yarnrc | 5 years ago | |
LICENSE | 6 years ago | |
README.md | 5 years ago | |
gulpfile.js | 5 years ago | |
lerna.json | 5 years ago | |
package.json | 5 years ago | |
tsconfig.base.json | 6 years ago | |
tsconfig.e2e.json | 5 years ago | |
tsconfig.json | 5 years ago | |
tsconfig.test.json | 6 years ago | |
tslint.json | 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.
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 may be required, we'd better install it as well
npm install tslib
yarn add tslib
Examples with tutorials
Packages
- @harmony-js/core
- @harmony-js/account
- @harmony-js/crypto
- @harmony-js/network
- @harmony-js/utils
- @harmony-js/transaction
- @harmony-js/contract
Hacking from source files
- install
lerna
andtypescript
globally (if you have these, you can skip)
yarn global add lerna && yarn global add typescript
- bootstrap repostory
yarn install && yarn bootstrap
- run watcher before editing any source file
yarn watch
- if you are ready to build/test/bundle, please refer to the following section:
Manually Build/bundle
Build
yarn build
Bundle
There are 2 ways bundling files.
-
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 -
build
umd
andesm
version javascript for each sub-packages, which can be accessed byimport
orrequire
yarn bundle
All files are exported in
packages/dist
folder, use**.esm.js
or**.umd.js
format
E2E tests
Contantly updating now, please get back later
- edit
.env
file if you have custom setting - run harmony node locally(this fork currently : https://github.com/mikedoan/harmony/tree/enable_tx)
- wait for 1-2 mins, and run this:
yarn build && yarn test:e2e