Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed May 15, 2024
1 parent 1c61ff1 commit 10e414e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ This version is compatible with [`960f8d139940fa0814d3fac44da9a2975642f5d3`](htt
- Now `op_div` does not accept negative operands.
- `convert_atom_to_bytes()` now is able to convert an object which has `toBytes()` method.
- `SExp` can be initialized from `LazyNode` of `clvm_wasm` (Rust version of `clvm`)
- Upgraded `bls-signatures` to `2.0.3`
- Upgraded npm dev dependencies
- Replaced `yarn.lock` with `pnpm-lock.yaml`
- Updated `bls-signatures` to `2.0.3`
### Added
- Added `clvm_rs`(`clvm_wasm`) support
- Exposed `run_chia_program`
Expand All @@ -36,7 +36,7 @@ This version is compatible with [`960f8d139940fa0814d3fac44da9a2975642f5d3`](htt
This is module context only. if the main js file is not on module context like
`<script defer src="https://xxx.yyy.zzz/aaa/bbb/ccc/main.js"></script>`,
`blsjs.wasm` will be fetched from `https://xxx.yyy.zzz/aaa/bbb/ccc/blsjs.wasm`.
However, with clvm >= 3.0.0, most of bls operations are run inside clvm_wasm_bg.wasm.
However, with clvm >= 3.0.0, most of bls operations run inside clvm_wasm_bg.wasm.
So I believe you don't need to load `blsjs.wasm` in most cases.

## [2.0.1]
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ async function main(){
main().catch(e => console.error(e));
```

## More example with clvm_wasm
See this [test case for clvm_wasm](https://github.com/Chia-Mine/clvm-js/blob/v3.0.0/tests/original/clvm_wasm_test.ts)

## Use in browser
- [Sample code - Use clvm-js with TypeScript, Webpack](https://github.com/Chia-Mine/clvm-js/blob/v3.0.0/example/typescript_webpack)
- [Sample code - Use clvm-js with TypeScript, React, Vite](https://github.com/Chia-Mine/clvm-js/blob/v3.0.0/example/typescript_react)
Expand Down

0 comments on commit 10e414e

Please sign in to comment.