sora-substrate-js-library
- node version at least v14.14.0
yarn
yarn build
additionally to get latest definitions for extrinsics, state queries and consts:
(local test net should be running)
yarn pull-metadata
yarn build
yarn build
yarn export-types
(for the local node) OR yarn export-types:all
(for all environments)
Resulting JSON is located in:
<repo root>/packages/types/src/metadata/types.json
<repo root>/packages/types/src/metadata/<env>/types.json
yarn generate-doc
Resulting MD is located in <repo root>/doc.md
This library version should be compatible with develop branch of sora2-substrate chain.
Build & Run local test net, e.g. via script:
cargo build --release
./run_script.sh
or use provided testnet endpoints
yarn test:all
yarn demo
or
node -r ts-node/register -r tsconfig-paths/register demo.ts