@provablehq/wasm 0.11.3 → 0.11.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.
@@ -21,18 +21,6 @@ export function setWasmLogLevel(level: number): void;
21
21
  * @returns {boolean} True if the proof is valid, false otherwise
22
22
  */
23
23
  export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
24
- /**
25
- * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
26
- *
27
- * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
28
- * Each verifying key is paired with one or more sets of public inputs (instances).
29
- *
30
- * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
31
- * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
32
- * @param {Proof} proof The batch proof to verify
33
- * @returns {boolean} True if the batch proof is valid, false otherwise
34
- */
35
- export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
36
24
  /**
37
25
  * Verify an execution. Executions with multiple transitions must have the program source code and
38
26
  * verifying keys of imported functions supplied from outside to correctly verify. Also, this does
@@ -47,6 +35,19 @@ export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>,
47
35
  * @returns {boolean} True if the execution is valid, false otherwise
48
36
  */
49
37
  export function verifyFunctionExecution(execution: Execution, verifying_key: VerifyingKey, program: Program, function_id: string, imports: object | null | undefined, imported_verifying_keys: object | null | undefined, block_height: number, program_imports?: ProgramImports | null): boolean;
38
+ /**
39
+ * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
40
+ *
41
+ * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
42
+ * Each verifying key is paired with one or more sets of public inputs (instances).
43
+ *
44
+ * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
45
+ * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
46
+ * @param {Proof} proof The batch proof to verify
47
+ * @returns {boolean} True if the batch proof is valid, false otherwise
48
+ */
49
+ export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
50
+ export function stringToField(string: string): Field;
50
51
  /**
51
52
  * Set test consensus version heights for testing.
52
53
  *
@@ -56,10 +57,21 @@ export function verifyFunctionExecution(execution: Execution, verifying_key: Ver
56
57
  * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
57
58
  *
58
59
  * Set the consensus version heights.
59
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
60
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17");
60
61
  */
61
62
  export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
62
- export function stringToField(string: string): Field;
63
+ /**
64
+ * Returns the maximum number of imports allowed in a program by the
65
+ * snarkVM network implementation this SDK was built against.
66
+ *
67
+ * @returns {number} The maximum number of program imports.
68
+ *
69
+ * @example
70
+ * import { getMaxProgramImports } from '@provablehq/sdk';
71
+ *
72
+ * const maxImports = getMaxProgramImports();
73
+ */
74
+ export function getMaxProgramImports(): number;
63
75
  /**
64
76
  * Public address of an Aleo account
65
77
  */
@@ -2894,6 +2906,20 @@ export class Program {
2894
2906
  * console.log(credits_functions === expected_functions); // Output should be "true"
2895
2907
  */
2896
2908
  getFunctions(): Array<any>;
2909
+ /**
2910
+ * Get the program's name (without the `.aleo` suffix) encoded as a field element.
2911
+ *
2912
+ * This is the same value as casting the program name identifier to a field on-chain
2913
+ * (e.g. `my_program.aleo` -> `Identifier("my_program") as field`), which is used as
2914
+ * the program id in dynamic dispatch calls such as `IARC20@(token_id)`.
2915
+ *
2916
+ * @example
2917
+ * const program = aleo_wasm.Program.getCreditsProgram();
2918
+ * const field = program.nameToField(); // Field encoding of "credits"
2919
+ *
2920
+ * @returns {Field} The program name as a field element
2921
+ */
2922
+ nameToField(): Field;
2897
2923
  /**
2898
2924
  * Get the external call graph reachable from a specific entry function.
2899
2925
  *
@@ -3042,6 +3068,39 @@ export class Program {
3042
3068
  * @returns {Address} The address of the program
3043
3069
  */
3044
3070
  address(): Address;
3071
+ /**
3072
+ * Determine if the program implements the ARC-20 fungible token interface (IARC20).
3073
+ *
3074
+ * This checks that the program defines a `Token` record with an `amount: u128` entry
3075
+ * (additional entries are permitted, per the interface's open record definition) and
3076
+ * that every function and view function required by ARC-20 is present with the exact
3077
+ * input and output signature defined by the standard.
3078
+ *
3079
+ * @see https://github.com/ProvableHQ/ARCs/blob/master/arc-0020/README.md
3080
+ *
3081
+ * @returns {boolean} True if the program implements the ARC-20 token interface
3082
+ */
3083
+ isArc20(): boolean;
3084
+ /**
3085
+ * Determine if the program implements the ARC-22 compliant token interface (IARC22).
3086
+ *
3087
+ * This checks that the program defines `Token` and `ComplianceRecord` records with the
3088
+ * entries required by the standard (additional entries are permitted, per the
3089
+ * interface's open record definitions), and that every function and view function
3090
+ * required by ARC-22 is present with the exact input and output signature defined by
3091
+ * the standard. The `MerkleProof` struct used by the private transfer functions may be
3092
+ * declared locally (in which case its shape must match the standard exactly) or
3093
+ * imported from another program such as a freeze list registry.
3094
+ *
3095
+ * Note: this checks the token interface (IARC22) only. The freeze list registry
3096
+ * interface (IARC22Freezelist) is typically implemented by a separate program and is
3097
+ * not required for a token program to be considered ARC-22 compliant.
3098
+ *
3099
+ * @see https://github.com/ProvableHQ/ARCs/blob/master/arc-0022/README.md
3100
+ *
3101
+ * @returns {boolean} True if the program implements the ARC-22 token interface
3102
+ */
3103
+ isArc22(): boolean;
3045
3104
  /**
3046
3105
  * Determine equality with another program
3047
3106
  *
Binary file
@@ -353,38 +353,6 @@ function snarkVerify(verifying_key, inputs, proof) {
353
353
  }
354
354
  }
355
355
 
356
- /**
357
- * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
358
- *
359
- * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
360
- * Each verifying key is paired with one or more sets of public inputs (instances).
361
- *
362
- * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
363
- * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
364
- * @param {Proof} proof The batch proof to verify
365
- * @returns {boolean} True if the batch proof is valid, false otherwise
366
- * @param {Array<any>} verifying_keys
367
- * @param {Array<any>} inputs
368
- * @param {Proof} proof
369
- * @returns {boolean}
370
- */
371
- function snarkVerifyBatch(verifying_keys, inputs, proof) {
372
- try {
373
- const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
374
- _assertClass(proof, Proof);
375
- wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
376
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
377
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
378
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
379
- if (r2) {
380
- throw takeObject(r1);
381
- }
382
- return r0 !== 0;
383
- } finally {
384
- wasm$1.__wbindgen_add_to_stack_pointer(16);
385
- }
386
- }
387
-
388
356
  /**
389
357
  * Verify an execution. Executions with multiple transitions must have the program source code and
390
358
  * verifying keys of imported functions supplied from outside to correctly verify. Also, this does
@@ -434,23 +402,35 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
434
402
  }
435
403
 
436
404
  /**
437
- * Set test consensus version heights for testing.
438
- *
439
- * @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.
405
+ * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
440
406
  *
441
- * @example
442
- * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
407
+ * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
408
+ * Each verifying key is paired with one or more sets of public inputs (instances).
443
409
  *
444
- * Set the consensus version heights.
445
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
446
- * @param {string | null} [heights]
447
- * @returns {Array<any>}
410
+ * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
411
+ * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
412
+ * @param {Proof} proof The batch proof to verify
413
+ * @returns {boolean} True if the batch proof is valid, false otherwise
414
+ * @param {Array<any>} verifying_keys
415
+ * @param {Array<any>} inputs
416
+ * @param {Proof} proof
417
+ * @returns {boolean}
448
418
  */
449
- function getOrInitConsensusVersionTestHeights(heights) {
450
- var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
451
- var len0 = WASM_VECTOR_LEN;
452
- const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
453
- return takeObject(ret);
419
+ function snarkVerifyBatch(verifying_keys, inputs, proof) {
420
+ try {
421
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
422
+ _assertClass(proof, Proof);
423
+ wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
424
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
425
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
426
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
427
+ if (r2) {
428
+ throw takeObject(r1);
429
+ }
430
+ return r0 !== 0;
431
+ } finally {
432
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
433
+ }
454
434
  }
455
435
 
456
436
  /**
@@ -475,6 +455,43 @@ function stringToField(string) {
475
455
  }
476
456
  }
477
457
 
458
+ /**
459
+ * Set test consensus version heights for testing.
460
+ *
461
+ * @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.
462
+ *
463
+ * @example
464
+ * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
465
+ *
466
+ * Set the consensus version heights.
467
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17");
468
+ * @param {string | null} [heights]
469
+ * @returns {Array<any>}
470
+ */
471
+ function getOrInitConsensusVersionTestHeights(heights) {
472
+ var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
473
+ var len0 = WASM_VECTOR_LEN;
474
+ const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
475
+ return takeObject(ret);
476
+ }
477
+
478
+ /**
479
+ * Returns the maximum number of imports allowed in a program by the
480
+ * snarkVM network implementation this SDK was built against.
481
+ *
482
+ * @returns {number} The maximum number of program imports.
483
+ *
484
+ * @example
485
+ * import { getMaxProgramImports } from '@provablehq/sdk';
486
+ *
487
+ * const maxImports = getMaxProgramImports();
488
+ * @returns {number}
489
+ */
490
+ function getMaxProgramImports() {
491
+ const ret = wasm$1.getMaxProgramImports();
492
+ return ret >>> 0;
493
+ }
494
+
478
495
  function passArrayJsValueToWasm0(array, malloc) {
479
496
  const ptr = malloc(array.length * 4, 4) >>> 0;
480
497
  const mem = getDataViewMemory0();
@@ -494,16 +511,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
494
511
  }
495
512
  return result;
496
513
  }
497
- function __wasm_bindgen_func_elem_7384(arg0, arg1) {
498
- wasm$1.__wasm_bindgen_func_elem_7384(arg0, arg1);
514
+ function __wasm_bindgen_func_elem_8910(arg0, arg1, arg2) {
515
+ wasm$1.__wasm_bindgen_func_elem_8910(arg0, arg1, addHeapObject(arg2));
499
516
  }
500
517
 
501
- function __wasm_bindgen_func_elem_8758(arg0, arg1, arg2) {
502
- wasm$1.__wasm_bindgen_func_elem_8758(arg0, arg1, addHeapObject(arg2));
518
+ function __wasm_bindgen_func_elem_7472(arg0, arg1) {
519
+ wasm$1.__wasm_bindgen_func_elem_7472(arg0, arg1);
503
520
  }
504
521
 
505
- function __wasm_bindgen_func_elem_7657(arg0, arg1, arg2, arg3) {
506
- wasm$1.__wasm_bindgen_func_elem_7657(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
522
+ function __wasm_bindgen_func_elem_7744(arg0, arg1, arg2, arg3) {
523
+ wasm$1.__wasm_bindgen_func_elem_7744(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
507
524
  }
508
525
 
509
526
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -10020,6 +10037,35 @@ class Program {
10020
10037
  const ret = wasm$1.program_getFunctions(this.__wbg_ptr);
10021
10038
  return takeObject(ret);
10022
10039
  }
10040
+ /**
10041
+ * Get the program's name (without the `.aleo` suffix) encoded as a field element.
10042
+ *
10043
+ * This is the same value as casting the program name identifier to a field on-chain
10044
+ * (e.g. `my_program.aleo` -> `Identifier("my_program") as field`), which is used as
10045
+ * the program id in dynamic dispatch calls such as `IARC20@(token_id)`.
10046
+ *
10047
+ * @example
10048
+ * const program = aleo_wasm.Program.getCreditsProgram();
10049
+ * const field = program.nameToField(); // Field encoding of "credits"
10050
+ *
10051
+ * @returns {Field} The program name as a field element
10052
+ * @returns {Field}
10053
+ */
10054
+ nameToField() {
10055
+ try {
10056
+ const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
10057
+ wasm$1.program_nameToField(retptr, this.__wbg_ptr);
10058
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10059
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10060
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
10061
+ if (r2) {
10062
+ throw takeObject(r1);
10063
+ }
10064
+ return Field.__wrap(r0);
10065
+ } finally {
10066
+ wasm$1.__wbindgen_add_to_stack_pointer(16);
10067
+ }
10068
+ }
10023
10069
  /**
10024
10070
  * Get the external call graph reachable from a specific entry function.
10025
10071
  *
@@ -10275,6 +10321,47 @@ class Program {
10275
10321
  wasm$1.__wbindgen_add_to_stack_pointer(16);
10276
10322
  }
10277
10323
  }
10324
+ /**
10325
+ * Determine if the program implements the ARC-20 fungible token interface (IARC20).
10326
+ *
10327
+ * This checks that the program defines a `Token` record with an `amount: u128` entry
10328
+ * (additional entries are permitted, per the interface's open record definition) and
10329
+ * that every function and view function required by ARC-20 is present with the exact
10330
+ * input and output signature defined by the standard.
10331
+ *
10332
+ * @see https://github.com/ProvableHQ/ARCs/blob/master/arc-0020/README.md
10333
+ *
10334
+ * @returns {boolean} True if the program implements the ARC-20 token interface
10335
+ * @returns {boolean}
10336
+ */
10337
+ isArc20() {
10338
+ const ret = wasm$1.program_isArc20(this.__wbg_ptr);
10339
+ return ret !== 0;
10340
+ }
10341
+ /**
10342
+ * Determine if the program implements the ARC-22 compliant token interface (IARC22).
10343
+ *
10344
+ * This checks that the program defines `Token` and `ComplianceRecord` records with the
10345
+ * entries required by the standard (additional entries are permitted, per the
10346
+ * interface's open record definitions), and that every function and view function
10347
+ * required by ARC-22 is present with the exact input and output signature defined by
10348
+ * the standard. The `MerkleProof` struct used by the private transfer functions may be
10349
+ * declared locally (in which case its shape must match the standard exactly) or
10350
+ * imported from another program such as a freeze list registry.
10351
+ *
10352
+ * Note: this checks the token interface (IARC22) only. The freeze list registry
10353
+ * interface (IARC22Freezelist) is typically implemented by a separate program and is
10354
+ * not required for a token program to be considered ARC-22 compliant.
10355
+ *
10356
+ * @see https://github.com/ProvableHQ/ARCs/blob/master/arc-0022/README.md
10357
+ *
10358
+ * @returns {boolean} True if the program implements the ARC-22 token interface
10359
+ * @returns {boolean}
10360
+ */
10361
+ isArc22() {
10362
+ const ret = wasm$1.program_isArc22(this.__wbg_ptr);
10363
+ return ret !== 0;
10364
+ }
10278
10365
  /**
10279
10366
  * Determine equality with another program
10280
10367
  *
@@ -19238,7 +19325,7 @@ function __wbg_get_imports(memory) {
19238
19325
  const ret = getObject(arg0).length;
19239
19326
  return ret;
19240
19327
  };
19241
- imports.wbg.__wbg_log_0eaae399732a802e = function(arg0, arg1) {
19328
+ imports.wbg.__wbg_log_a530da429f854235 = function(arg0, arg1) {
19242
19329
  console.log(getStringFromWasm0(arg0, arg1));
19243
19330
  };
19244
19331
  imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
@@ -19256,7 +19343,7 @@ function __wbg_get_imports(memory) {
19256
19343
  const a = state0.a;
19257
19344
  state0.a = 0;
19258
19345
  try {
19259
- return __wasm_bindgen_func_elem_7657(a, state0.b, arg0, arg1);
19346
+ return __wasm_bindgen_func_elem_7744(a, state0.b, arg0, arg1);
19260
19347
  } finally {
19261
19348
  state0.a = a;
19262
19349
  }
@@ -19428,7 +19515,7 @@ function __wbg_get_imports(memory) {
19428
19515
  const ret = Signature.__wrap(arg0);
19429
19516
  return addHeapObject(ret);
19430
19517
  };
19431
- imports.wbg.__wbg_spawnWorker_3f95ae6c0630b765 = function(arg0, arg1, arg2, arg3) {
19518
+ imports.wbg.__wbg_spawnWorker_ad641c7b32ebd520 = function(arg0, arg1, arg2, arg3) {
19432
19519
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
19433
19520
  return addHeapObject(ret);
19434
19521
  };
@@ -19510,21 +19597,11 @@ function __wbg_get_imports(memory) {
19510
19597
  const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
19511
19598
  return addHeapObject(ret);
19512
19599
  };
19513
- imports.wbg.__wbindgen_cast_073ddd2b87fab8ab = function(arg0, arg1) {
19514
- // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [], shim_idx: 467, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19515
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7383, __wasm_bindgen_func_elem_7384);
19516
- return addHeapObject(ret);
19517
- };
19518
19600
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
19519
19601
  // Cast intrinsic for `Ref(String) -> Externref`.
19520
19602
  const ret = getStringFromWasm0(arg0, arg1);
19521
19603
  return addHeapObject(ret);
19522
19604
  };
19523
- imports.wbg.__wbindgen_cast_263b62405be3c669 = function(arg0, arg1) {
19524
- // 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`.
19525
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7383, __wasm_bindgen_func_elem_8758);
19526
- return addHeapObject(ret);
19527
- };
19528
19605
  imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
19529
19606
  // Cast intrinsic for `I128 -> Externref`.
19530
19607
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
@@ -19535,9 +19612,9 @@ function __wbg_get_imports(memory) {
19535
19612
  const ret = BigInt.asUintN(64, arg0);
19536
19613
  return addHeapObject(ret);
19537
19614
  };
19538
- imports.wbg.__wbindgen_cast_5cd376b701f56c0e = function(arg0, arg1) {
19539
- // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [Externref], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19540
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7383, __wasm_bindgen_func_elem_8758);
19615
+ imports.wbg.__wbindgen_cast_69588da295a6a0d2 = function(arg0, arg1) {
19616
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 390, function: Function { arguments: [], shim_idx: 495, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19617
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7471, __wasm_bindgen_func_elem_7472);
19541
19618
  return addHeapObject(ret);
19542
19619
  };
19543
19620
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
@@ -19545,11 +19622,21 @@ function __wbg_get_imports(memory) {
19545
19622
  const ret = arg0;
19546
19623
  return addHeapObject(ret);
19547
19624
  };
19625
+ imports.wbg.__wbindgen_cast_b5deba2f813aede2 = function(arg0, arg1) {
19626
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 390, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19627
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7471, __wasm_bindgen_func_elem_8910);
19628
+ return addHeapObject(ret);
19629
+ };
19548
19630
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
19549
19631
  // Cast intrinsic for `F64 -> Externref`.
19550
19632
  const ret = arg0;
19551
19633
  return addHeapObject(ret);
19552
19634
  };
19635
+ imports.wbg.__wbindgen_cast_e15614d8168764d1 = function(arg0, arg1) {
19636
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 390, function: Function { arguments: [Externref], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19637
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7471, __wasm_bindgen_func_elem_8910);
19638
+ return addHeapObject(ret);
19639
+ };
19553
19640
  imports.wbg.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
19554
19641
  // Cast intrinsic for `U128 -> Externref`.
19555
19642
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
@@ -19697,6 +19784,7 @@ var exports$1$1 = /*#__PURE__*/Object.freeze({
19697
19784
  VerifyingKey: VerifyingKey,
19698
19785
  ViewKey: ViewKey,
19699
19786
  default: __wbg_init,
19787
+ getMaxProgramImports: getMaxProgramImports,
19700
19788
  getOrInitConsensusVersionTestHeights: getOrInitConsensusVersionTestHeights,
19701
19789
  initSync: initSync$1,
19702
19790
  initThreadPool: initThreadPool,