0.0.2 • Published 3 years ago
lib9c-wasm v0.0.2
lib9c-wasm
The experimental project to part Lib9c into JavaScript environment through WASM.
Installation
# yarn
yarn add lib9c-wasm
# npm
npm install lib9c-wasmExamples
You can see examples in the TypeScript source files under the /examples directory.
Development
Prerequisite
Git clone
git clone --recurse-submodules https://github.com/planetarium/lib9c-wasmBuild
You can generate codes under the generated/* by using the below command:
yarn buildRun example
You can run example with the below steps:
yarn build
yarn ts-node examples/stake.tsPublish
yarn prepare-pack
yarn custom-pack
yarn publish lib9c-wasm*.tgzGenerate docs
You can generate docs with the below command:
yarn generate-docsIt'll generate /docs directory then you can open the /docs/index.html file in your browser.
Run .NET tests
You can run .NET tests.
dotnet test