@provablehq/wasm 0.10.3 → 0.10.4
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 +18 -12
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +50 -40
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +50 -40
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +50 -40
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +6 -0
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +22 -12
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +22 -12
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +22 -12
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -2813,6 +2813,12 @@ export class Program {
|
|
|
2813
2813
|
* console.log(imports === expected_imports); // Output should be "true"
|
|
2814
2814
|
*/
|
|
2815
2815
|
getImports(): Array<any>;
|
|
2816
|
+
/**
|
|
2817
|
+
* Get the checksum of the program.
|
|
2818
|
+
*
|
|
2819
|
+
* @returns {Uint8Array} The checksum of the program as a 32-byte Uint8Array
|
|
2820
|
+
*/
|
|
2821
|
+
toChecksum(): Uint8Array;
|
|
2816
2822
|
/**
|
|
2817
2823
|
* Get a the list of a program's mappings and the names/types of their keys and values.
|
|
2818
2824
|
*
|
|
Binary file
|
package/dist/testnet/index.cjs
CHANGED
|
@@ -477,16 +477,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
477
477
|
}
|
|
478
478
|
return result;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
wasm$1.
|
|
480
|
+
function __wasm_bindgen_func_elem_8536(arg0, arg1, arg2) {
|
|
481
|
+
wasm$1.__wasm_bindgen_func_elem_8536(arg0, arg1, addHeapObject(arg2));
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
function
|
|
485
|
-
wasm$1.
|
|
484
|
+
function __wasm_bindgen_func_elem_7166(arg0, arg1) {
|
|
485
|
+
wasm$1.__wasm_bindgen_func_elem_7166(arg0, arg1);
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
function
|
|
489
|
-
wasm$1.
|
|
488
|
+
function __wasm_bindgen_func_elem_7439(arg0, arg1, arg2, arg3) {
|
|
489
|
+
wasm$1.__wasm_bindgen_func_elem_7439(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -9876,6 +9876,16 @@ class Program {
|
|
|
9876
9876
|
const ret = wasm$1.program_getImports(this.__wbg_ptr);
|
|
9877
9877
|
return takeObject(ret);
|
|
9878
9878
|
}
|
|
9879
|
+
/**
|
|
9880
|
+
* Get the checksum of the program.
|
|
9881
|
+
*
|
|
9882
|
+
* @returns {Uint8Array} The checksum of the program as a 32-byte Uint8Array
|
|
9883
|
+
* @returns {Uint8Array}
|
|
9884
|
+
*/
|
|
9885
|
+
toChecksum() {
|
|
9886
|
+
const ret = wasm$1.program_toChecksum(this.__wbg_ptr);
|
|
9887
|
+
return takeObject(ret);
|
|
9888
|
+
}
|
|
9879
9889
|
/**
|
|
9880
9890
|
* Get a the list of a program's mappings and the names/types of their keys and values.
|
|
9881
9891
|
*
|
|
@@ -18342,7 +18352,7 @@ function __wbg_get_imports(memory) {
|
|
|
18342
18352
|
const ret = getObject(arg0).length;
|
|
18343
18353
|
return ret;
|
|
18344
18354
|
};
|
|
18345
|
-
imports.wbg.
|
|
18355
|
+
imports.wbg.__wbg_log_4688d4dee83f4df4 = function(arg0, arg1) {
|
|
18346
18356
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
18347
18357
|
};
|
|
18348
18358
|
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
@@ -18364,7 +18374,7 @@ function __wbg_get_imports(memory) {
|
|
|
18364
18374
|
const a = state0.a;
|
|
18365
18375
|
state0.a = 0;
|
|
18366
18376
|
try {
|
|
18367
|
-
return
|
|
18377
|
+
return __wasm_bindgen_func_elem_7439(a, state0.b, arg0, arg1);
|
|
18368
18378
|
} finally {
|
|
18369
18379
|
state0.a = a;
|
|
18370
18380
|
}
|
|
@@ -18551,7 +18561,7 @@ function __wbg_get_imports(memory) {
|
|
|
18551
18561
|
const ret = Signature.__wrap(arg0);
|
|
18552
18562
|
return addHeapObject(ret);
|
|
18553
18563
|
};
|
|
18554
|
-
imports.wbg.
|
|
18564
|
+
imports.wbg.__wbg_spawnWorker_9ce4a98fc7b6f238 = function(arg0, arg1, arg2, arg3) {
|
|
18555
18565
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
18556
18566
|
return addHeapObject(ret);
|
|
18557
18567
|
};
|
|
@@ -18643,7 +18653,7 @@ function __wbg_get_imports(memory) {
|
|
|
18643
18653
|
};
|
|
18644
18654
|
imports.wbg.__wbindgen_cast_0eb37dec5f5def71 = function(arg0, arg1) {
|
|
18645
18655
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 358, function: Function { arguments: [], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
18646
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
18656
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7165, __wasm_bindgen_func_elem_7166);
|
|
18647
18657
|
return addHeapObject(ret);
|
|
18648
18658
|
};
|
|
18649
18659
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -18663,12 +18673,12 @@ function __wbg_get_imports(memory) {
|
|
|
18663
18673
|
};
|
|
18664
18674
|
imports.wbg.__wbindgen_cast_4a64cbb5b17898c9 = function(arg0, arg1) {
|
|
18665
18675
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 358, function: Function { arguments: [Externref], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
18666
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
18676
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7165, __wasm_bindgen_func_elem_8536);
|
|
18667
18677
|
return addHeapObject(ret);
|
|
18668
18678
|
};
|
|
18669
18679
|
imports.wbg.__wbindgen_cast_65bbaf572cb463ed = function(arg0, arg1) {
|
|
18670
18680
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 358, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
18671
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
18681
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7165, __wasm_bindgen_func_elem_8536);
|
|
18672
18682
|
return addHeapObject(ret);
|
|
18673
18683
|
};
|
|
18674
18684
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|