https://github.com/planetarium/lib9c-wasm
The experimental project to port Lib9c into JavaScript environment through WASM. Build your Nine Chronicles network transaction in your local at once.
https://github.com/planetarium/lib9c-wasm
9c dotnet nine-chronicles wasm webassembly
Last synced: 5 months ago
JSON representation
The experimental project to port Lib9c into JavaScript environment through WASM. Build your Nine Chronicles network transaction in your local at once.
- Host: GitHub
- URL: https://github.com/planetarium/lib9c-wasm
- Owner: planetarium
- License: gpl-3.0
- Created: 2022-07-09T21:12:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-22T00:02:43.000Z (over 1 year ago)
- Last Synced: 2024-04-29T08:25:05.272Z (about 1 year ago)
- Topics: 9c, dotnet, nine-chronicles, wasm, webassembly
- Language: C#
- Homepage: https://planetarium.github.io/lib9c-wasm/
- Size: 21.8 MB
- Stars: 5
- Watchers: 11
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lib9c-wasm
[](https://npmjs.com/package/@planetarium/lib9c-wasm)The experimental project to part Lib9c into JavaScript environment through WASM.
## Installation
```
# yarn
yarn add @planetarium/lib9c-wasm# npm
npm install @planetarium/lib9c-wasm
```## Examples
You can see examples in the TypeScript source files under the `/examples` directory.
## Development
### Prerequisite
- [.NET](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
- [yarn](https://yarnpkg.com/)
- [node](https://nodejs.org/en/) (> 16.17.0)### Git clone
```
git clone --recurse-submodules https://github.com/planetarium/lib9c-wasm
```### Build
You can generate codes under the `generated/*` by using the below command:
```
yarn build
```### Run example
You can run example with the below steps:
```
yarn build
yarn ts-node examples/stake.ts
```### Publish
```
yarn prepare-pack
yarn custom-pack
yarn publish lib9c-wasm*.tgz
```### Generate docs
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.
### Run .NET tests
You can run .NET tests.
```
dotnet test
```