@provablehq/wasm 0.11.1 → 0.11.2
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/dist/mainnet/aleo_wasm.d.ts +13 -13
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +54 -54
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +54 -54
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +54 -54
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +1 -1
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +30 -30
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +30 -30
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +30 -30
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/testnet/worker.js
CHANGED
|
@@ -427,26 +427,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
/**
|
|
431
|
-
* Set test consensus version heights for testing.
|
|
432
|
-
*
|
|
433
|
-
* @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
|
|
434
|
-
*
|
|
435
|
-
* @example
|
|
436
|
-
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
437
|
-
*
|
|
438
|
-
* Set the consensus version heights.
|
|
439
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
|
|
440
|
-
* @param {string | null} [heights]
|
|
441
|
-
* @returns {Array<any>}
|
|
442
|
-
*/
|
|
443
|
-
function getOrInitConsensusVersionTestHeights(heights) {
|
|
444
|
-
var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
445
|
-
var len0 = WASM_VECTOR_LEN;
|
|
446
|
-
const ret = wasm.getOrInitConsensusVersionTestHeights(ptr0, len0);
|
|
447
|
-
return takeObject(ret);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
430
|
/**
|
|
451
431
|
* @param {string} string
|
|
452
432
|
* @returns {Field}
|
|
@@ -469,6 +449,26 @@ function stringToField(string) {
|
|
|
469
449
|
}
|
|
470
450
|
}
|
|
471
451
|
|
|
452
|
+
/**
|
|
453
|
+
* Set test consensus version heights for testing.
|
|
454
|
+
*
|
|
455
|
+
* @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
|
|
456
|
+
*
|
|
457
|
+
* @example
|
|
458
|
+
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
459
|
+
*
|
|
460
|
+
* Set the consensus version heights.
|
|
461
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
|
|
462
|
+
* @param {string | null} [heights]
|
|
463
|
+
* @returns {Array<any>}
|
|
464
|
+
*/
|
|
465
|
+
function getOrInitConsensusVersionTestHeights(heights) {
|
|
466
|
+
var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
467
|
+
var len0 = WASM_VECTOR_LEN;
|
|
468
|
+
const ret = wasm.getOrInitConsensusVersionTestHeights(ptr0, len0);
|
|
469
|
+
return takeObject(ret);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
472
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
473
473
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
474
474
|
const mem = getDataViewMemory0();
|
|
@@ -488,16 +488,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
488
488
|
}
|
|
489
489
|
return result;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
wasm.
|
|
491
|
+
function __wasm_bindgen_func_elem_7389(arg0, arg1) {
|
|
492
|
+
wasm.__wasm_bindgen_func_elem_7389(arg0, arg1);
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
-
function
|
|
496
|
-
wasm.
|
|
495
|
+
function __wasm_bindgen_func_elem_8758(arg0, arg1, arg2) {
|
|
496
|
+
wasm.__wasm_bindgen_func_elem_8758(arg0, arg1, addHeapObject(arg2));
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
function
|
|
500
|
-
wasm.
|
|
499
|
+
function __wasm_bindgen_func_elem_7660(arg0, arg1, arg2, arg3) {
|
|
500
|
+
wasm.__wasm_bindgen_func_elem_7660(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -19250,7 +19250,7 @@ function __wbg_get_imports(memory) {
|
|
|
19250
19250
|
const a = state0.a;
|
|
19251
19251
|
state0.a = 0;
|
|
19252
19252
|
try {
|
|
19253
|
-
return
|
|
19253
|
+
return __wasm_bindgen_func_elem_7660(a, state0.b, arg0, arg1);
|
|
19254
19254
|
} finally {
|
|
19255
19255
|
state0.a = a;
|
|
19256
19256
|
}
|
|
@@ -19506,7 +19506,7 @@ function __wbg_get_imports(memory) {
|
|
|
19506
19506
|
};
|
|
19507
19507
|
imports.wbg.__wbindgen_cast_073ddd2b87fab8ab = function(arg0, arg1) {
|
|
19508
19508
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [], shim_idx: 467, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19509
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
19509
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7388, __wasm_bindgen_func_elem_7389);
|
|
19510
19510
|
return addHeapObject(ret);
|
|
19511
19511
|
};
|
|
19512
19512
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -19516,7 +19516,7 @@ function __wbg_get_imports(memory) {
|
|
|
19516
19516
|
};
|
|
19517
19517
|
imports.wbg.__wbindgen_cast_263b62405be3c669 = function(arg0, arg1) {
|
|
19518
19518
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19519
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
19519
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7388, __wasm_bindgen_func_elem_8758);
|
|
19520
19520
|
return addHeapObject(ret);
|
|
19521
19521
|
};
|
|
19522
19522
|
imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
|
|
@@ -19531,7 +19531,7 @@ function __wbg_get_imports(memory) {
|
|
|
19531
19531
|
};
|
|
19532
19532
|
imports.wbg.__wbindgen_cast_5cd376b701f56c0e = function(arg0, arg1) {
|
|
19533
19533
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [Externref], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19534
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
19534
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7388, __wasm_bindgen_func_elem_8758);
|
|
19535
19535
|
return addHeapObject(ret);
|
|
19536
19536
|
};
|
|
19537
19537
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|