The experimental project to part Lib9c into JavaScript environment through WASM.
# yarn
yarn add @planetarium/lib9c-wasm
# npm
npm install @planetarium/lib9c-wasm
You can see examples in the TypeScript source files under the /examples
directory.
git clone --recurse-submodules https://github.com/planetarium/lib9c-wasm
You can generate codes under the generated/*
by using the below command:
yarn build
You can run example with the below steps:
yarn build
yarn ts-node examples/stake.ts
yarn prepare-pack
yarn custom-pack
yarn publish lib9c-wasm*.tgz
You can generate docs with the below command:
yarn generate-docs
It'll generate /docs
directory then you can open the /docs/index.html
file in your browser.
You can run .NET tests.
dotnet test