chia_wasm 0.9.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  The `chia_wasm` package has JavaScript bindings for the rust implementation of the `chia` crate in wasm.
2
2
 
3
- Build
4
- -----
3
+ ## Build
5
4
 
6
5
  Use `wasm-pack` to build the wasm `pkg` file used with npm. Install it with:
7
6
 
package/chia_wasm.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @returns {bigint}
5
- */
4
+ * @returns {bigint}
5
+ */
6
6
  export function a_test_function(): bigint;
package/chia_wasm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import * as wasm from "./chia_wasm_bg.wasm";
2
- import { __wbg_set_wasm } from "./chia_wasm_bg.js";
3
- __wbg_set_wasm(wasm);
4
2
  export * from "./chia_wasm_bg.js";
3
+ import { __wbg_set_wasm } from "./chia_wasm_bg.js";
4
+ __wbg_set_wasm(wasm);
package/chia_wasm_bg.js CHANGED
@@ -4,8 +4,8 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
  /**
7
- * @returns {bigint}
8
- */
7
+ * @returns {bigint}
8
+ */
9
9
  export function a_test_function() {
10
10
  const ret = wasm.a_test_function();
11
11
  return BigInt.asUintN(64, ret);
package/chia_wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "chia_wasm",
3
+ "type": "module",
3
4
  "collaborators": [
4
5
  "Richard Kiss <him@richardkiss.com>"
5
6
  ],
6
7
  "description": "Code useful for implementing chia consensus.",
7
- "version": "0.9.0",
8
+ "version": "0.17.0",
8
9
  "license": "Apache-2.0",
9
10
  "repository": {
10
11
  "type": "git",
@@ -16,7 +17,7 @@
16
17
  "chia_wasm_bg.js",
17
18
  "chia_wasm.d.ts"
18
19
  ],
19
- "module": "chia_wasm.js",
20
+ "main": "chia_wasm.js",
20
21
  "homepage": "https://github.com/Chia-Network/chia_rs",
21
22
  "types": "chia_wasm.d.ts",
22
23
  "sideEffects": [