@quantovainc/qcore 0.5.4 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantovainc/qcore",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Quantova's post quantum client core for JavaScript. Signs with ML-DSA-65 and builds Q1 addresses.",
5
5
  "scripts": {
6
6
  "build": "bash scripts/build.sh",
package/pkg/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "qcore-js",
3
3
  "type": "module",
4
4
  "description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
5
- "version": "0.5.4",
5
+ "version": "0.5.5",
6
6
  "license": "Apache-2.0 OR MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -323,7 +323,10 @@ export function chainIdFromName(name) {
323
323
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
324
324
  const len0 = WASM_VECTOR_LEN;
325
325
  const ret = wasm.chainIdFromName(ptr0, len0);
326
- return BigInt.asUintN(64, ret);
326
+ if (ret[2]) {
327
+ throw takeFromExternrefTable0(ret[1]);
328
+ }
329
+ return BigInt.asUintN(64, ret[0]);
327
330
  }
328
331
 
329
332
  /**
Binary file
@@ -10,7 +10,7 @@ export const block_by_height_body: (a: bigint) => [number, number];
10
10
  export const boundedValidUntil: (a: number, b: number, c: bigint, d: bigint, e: number, f: bigint, g: bigint) => [bigint, number, number];
11
11
  export const buildSignedOrderCall: (a: bigint, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: bigint, j: bigint, k: number, l: number, m: number, n: number, o: bigint, p: number, q: number, r: bigint, s: bigint, t: bigint) => [number, number, number, number];
12
12
  export const buildTypedOrderCall: (a: bigint, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: bigint, j: bigint, k: bigint, l: number, m: number, n: number, o: number, p: bigint, q: bigint, r: bigint) => [number, number, number, number];
13
- export const chainIdFromName: (a: number, b: number) => bigint;
13
+ export const chainIdFromName: (a: number, b: number) => [bigint, number, number];
14
14
  export const checkGatewayJson: (a: number, b: number) => [number, number];
15
15
  export const checkOrderExpiry: (a: bigint, b: bigint) => [number, number];
16
16
  export const checkValidUntil: (a: bigint, b: bigint) => [number, number];
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qcore-js",
3
3
  "description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
4
- "version": "0.5.4",
4
+ "version": "0.5.5",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -334,7 +334,10 @@ function chainIdFromName(name) {
334
334
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
335
335
  const len0 = WASM_VECTOR_LEN;
336
336
  const ret = wasm.chainIdFromName(ptr0, len0);
337
- return BigInt.asUintN(64, ret);
337
+ if (ret[2]) {
338
+ throw takeFromExternrefTable0(ret[1]);
339
+ }
340
+ return BigInt.asUintN(64, ret[0]);
338
341
  }
339
342
  exports.chainIdFromName = chainIdFromName;
340
343
 
Binary file