@provablehq/wasm 0.11.9 → 0.11.11
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 +24 -24
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.cjs +91 -91
- package/dist/mainnet/index.cjs.map +1 -1
- package/dist/mainnet/index.js +91 -91
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +91 -91
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +23 -23
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.cjs +71 -71
- package/dist/testnet/index.cjs.map +1 -1
- package/dist/testnet/index.js +71 -71
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +71 -71
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function runRayonThread(receiver: number): void;
|
|
4
|
-
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
5
4
|
/**
|
|
6
5
|
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
7
6
|
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
@@ -9,18 +8,21 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
|
9
8
|
* Values above 4 are clamped to debug.
|
|
10
9
|
*/
|
|
11
10
|
export function setWasmLogLevel(level: number): void;
|
|
11
|
+
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
12
12
|
/**
|
|
13
|
-
* Verify
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
13
|
+
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
14
|
+
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
15
|
+
* not verify that the state root of the execution is included in the Aleo Network ledger.
|
|
17
16
|
*
|
|
18
|
-
* @param {
|
|
19
|
-
* @param {
|
|
20
|
-
* @param {
|
|
21
|
-
* @
|
|
17
|
+
* @param {Execution} execution The function execution to verify
|
|
18
|
+
* @param {VerifyingKey} verifying_key The verifying key for the function
|
|
19
|
+
* @param {Program} program The program that the function execution belongs to
|
|
20
|
+
* @param {String} function_id The name of the function that was executed
|
|
21
|
+
* @param {Object} imports The imports for the program in the form of { "program_id.aleo":"source code", ... }
|
|
22
|
+
* @param {Object} import_verifying_keys The verifying keys for the imports in the form of { "program_id.aleo": [["function, "verifying_key"], ...], ...}
|
|
23
|
+
* @returns {boolean} True if the execution is valid, false otherwise
|
|
22
24
|
*/
|
|
23
|
-
export function
|
|
25
|
+
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;
|
|
24
26
|
/**
|
|
25
27
|
* Verify a SNARK proof against a verifying key and public inputs.
|
|
26
28
|
*
|
|
@@ -34,19 +36,18 @@ export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>,
|
|
|
34
36
|
*/
|
|
35
37
|
export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
|
|
36
38
|
/**
|
|
37
|
-
* Verify
|
|
38
|
-
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
39
|
-
* not verify that the state root of the execution is included in the Aleo Network ledger.
|
|
39
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
46
|
-
* @param {
|
|
47
|
-
* @returns {boolean} True if the
|
|
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
48
|
*/
|
|
49
|
-
export function
|
|
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,9 @@ 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,15,16,17,18");
|
|
60
|
+
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
|
|
60
61
|
*/
|
|
61
62
|
export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
|
|
62
|
-
export function stringToField(string: string): Field;
|
|
63
63
|
/**
|
|
64
64
|
* Returns the maximum number of imports allowed in a program by the
|
|
65
65
|
* snarkVM network implementation this SDK was built against.
|
|
@@ -2447,7 +2447,7 @@ export class Pedersen64 {
|
|
|
2447
2447
|
*
|
|
2448
2448
|
* @example
|
|
2449
2449
|
* // Get the bond state of an existing address.
|
|
2450
|
-
* const bondState = await fetch(https://
|
|
2450
|
+
* const bondState = await fetch(https://edge.provable.com/api/v2/mainnet/program/credits.aleo/mapping/bond_state/aleo12zlythl7htjdtjjjz3ahdj4vl6wk3zuzm37s80l86qpx8fyx95fqnxcn2f);
|
|
2451
2451
|
* // Convert the bond state to a Plaintext object.
|
|
2452
2452
|
* const bondStatePlaintext = Plaintext.fromString(bond_state);
|
|
2453
2453
|
* // Convert the Plaintext object to a JS object.
|
|
Binary file
|
package/dist/mainnet/index.cjs
CHANGED
|
@@ -292,16 +292,6 @@ function runRayonThread(receiver) {
|
|
|
292
292
|
wasm$1.runRayonThread(receiver);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
/**
|
|
296
|
-
* @param {URL} url
|
|
297
|
-
* @param {number} num_threads
|
|
298
|
-
* @returns {Promise<void>}
|
|
299
|
-
*/
|
|
300
|
-
function initThreadPool(url, num_threads) {
|
|
301
|
-
const ret = wasm$1.initThreadPool(addHeapObject(url), num_threads);
|
|
302
|
-
return takeObject(ret);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
295
|
/**
|
|
306
296
|
* Set the WASM log level from JS. Called automatically by the SDK's
|
|
307
297
|
* `setLogLevel(level)` to keep TS and WASM logging in sync.
|
|
@@ -313,6 +303,16 @@ function setWasmLogLevel(level) {
|
|
|
313
303
|
wasm$1.setWasmLogLevel(level);
|
|
314
304
|
}
|
|
315
305
|
|
|
306
|
+
/**
|
|
307
|
+
* @param {URL} url
|
|
308
|
+
* @param {number} num_threads
|
|
309
|
+
* @returns {Promise<void>}
|
|
310
|
+
*/
|
|
311
|
+
function initThreadPool(url, num_threads) {
|
|
312
|
+
const ret = wasm$1.initThreadPool(addHeapObject(url), num_threads);
|
|
313
|
+
return takeObject(ret);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
316
|
let stack_pointer = 128;
|
|
317
317
|
|
|
318
318
|
function addBorrowedObject(obj) {
|
|
@@ -321,25 +321,41 @@ function addBorrowedObject(obj) {
|
|
|
321
321
|
return stack_pointer;
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
|
-
* Verify
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* Each verifying key is paired with one or more sets of public inputs (instances).
|
|
324
|
+
* Verify an execution. Executions with multiple transitions must have the program source code and
|
|
325
|
+
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
326
|
+
* not verify that the state root of the execution is included in the Aleo Network ledger.
|
|
328
327
|
*
|
|
329
|
-
* @param {
|
|
330
|
-
* @param {
|
|
331
|
-
* @param {
|
|
332
|
-
* @
|
|
333
|
-
* @param {
|
|
334
|
-
* @param {
|
|
335
|
-
* @
|
|
328
|
+
* @param {Execution} execution The function execution to verify
|
|
329
|
+
* @param {VerifyingKey} verifying_key The verifying key for the function
|
|
330
|
+
* @param {Program} program The program that the function execution belongs to
|
|
331
|
+
* @param {String} function_id The name of the function that was executed
|
|
332
|
+
* @param {Object} imports The imports for the program in the form of { "program_id.aleo":"source code", ... }
|
|
333
|
+
* @param {Object} import_verifying_keys The verifying keys for the imports in the form of { "program_id.aleo": [["function, "verifying_key"], ...], ...}
|
|
334
|
+
* @returns {boolean} True if the execution is valid, false otherwise
|
|
335
|
+
* @param {Execution} execution
|
|
336
|
+
* @param {VerifyingKey} verifying_key
|
|
337
|
+
* @param {Program} program
|
|
338
|
+
* @param {string} function_id
|
|
339
|
+
* @param {object | null | undefined} imports
|
|
340
|
+
* @param {object | null | undefined} imported_verifying_keys
|
|
341
|
+
* @param {number} block_height
|
|
342
|
+
* @param {ProgramImports | null} [program_imports]
|
|
336
343
|
* @returns {boolean}
|
|
337
344
|
*/
|
|
338
|
-
function
|
|
345
|
+
function verifyFunctionExecution(execution, verifying_key, program, function_id, imports, imported_verifying_keys, block_height, program_imports) {
|
|
339
346
|
try {
|
|
340
347
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
341
|
-
_assertClass(
|
|
342
|
-
|
|
348
|
+
_assertClass(execution, Execution);
|
|
349
|
+
_assertClass(verifying_key, VerifyingKey);
|
|
350
|
+
_assertClass(program, Program);
|
|
351
|
+
const ptr0 = passStringToWasm0(function_id, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
353
|
+
let ptr1 = 0;
|
|
354
|
+
if (!isLikeNone(program_imports)) {
|
|
355
|
+
_assertClass(program_imports, ProgramImports);
|
|
356
|
+
ptr1 = program_imports.__destroy_into_raw();
|
|
357
|
+
}
|
|
358
|
+
wasm$1.verifyFunctionExecution(retptr, execution.__wbg_ptr, verifying_key.__wbg_ptr, program.__wbg_ptr, ptr0, len0, isLikeNone(imports) ? 0 : addHeapObject(imports), isLikeNone(imported_verifying_keys) ? 0 : addHeapObject(imported_verifying_keys), block_height, ptr1);
|
|
343
359
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
344
360
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
345
361
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -386,41 +402,25 @@ function snarkVerify(verifying_key, inputs, proof) {
|
|
|
386
402
|
}
|
|
387
403
|
|
|
388
404
|
/**
|
|
389
|
-
* Verify
|
|
390
|
-
* verifying keys of imported functions supplied from outside to correctly verify. Also, this does
|
|
391
|
-
* not verify that the state root of the execution is included in the Aleo Network ledger.
|
|
405
|
+
* Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
|
|
392
406
|
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
* @param {
|
|
397
|
-
* @param {
|
|
398
|
-
* @param {
|
|
399
|
-
* @returns {boolean} True if the
|
|
400
|
-
* @param {
|
|
401
|
-
* @param {
|
|
402
|
-
* @param {
|
|
403
|
-
* @param {string} function_id
|
|
404
|
-
* @param {object | null | undefined} imports
|
|
405
|
-
* @param {object | null | undefined} imported_verifying_keys
|
|
406
|
-
* @param {number} block_height
|
|
407
|
-
* @param {ProgramImports | null} [program_imports]
|
|
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).
|
|
409
|
+
*
|
|
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
|
|
408
417
|
* @returns {boolean}
|
|
409
418
|
*/
|
|
410
|
-
function
|
|
419
|
+
function snarkVerifyBatch(verifying_keys, inputs, proof) {
|
|
411
420
|
try {
|
|
412
421
|
const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
|
|
413
|
-
_assertClass(
|
|
414
|
-
|
|
415
|
-
_assertClass(program, Program);
|
|
416
|
-
const ptr0 = passStringToWasm0(function_id, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
|
|
417
|
-
const len0 = WASM_VECTOR_LEN;
|
|
418
|
-
let ptr1 = 0;
|
|
419
|
-
if (!isLikeNone(program_imports)) {
|
|
420
|
-
_assertClass(program_imports, ProgramImports);
|
|
421
|
-
ptr1 = program_imports.__destroy_into_raw();
|
|
422
|
-
}
|
|
423
|
-
wasm$1.verifyFunctionExecution(retptr, execution.__wbg_ptr, verifying_key.__wbg_ptr, program.__wbg_ptr, ptr0, len0, isLikeNone(imports) ? 0 : addHeapObject(imports), isLikeNone(imported_verifying_keys) ? 0 : addHeapObject(imported_verifying_keys), block_height, ptr1);
|
|
422
|
+
_assertClass(proof, Proof);
|
|
423
|
+
wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
|
|
424
424
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
425
425
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
426
426
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -433,26 +433,6 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
/**
|
|
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.
|
|
440
|
-
*
|
|
441
|
-
* @example
|
|
442
|
-
* import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
|
|
443
|
-
*
|
|
444
|
-
* Set the consensus version heights.
|
|
445
|
-
* getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18");
|
|
446
|
-
* @param {string | null} [heights]
|
|
447
|
-
* @returns {Array<any>}
|
|
448
|
-
*/
|
|
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);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
436
|
/**
|
|
457
437
|
* @param {string} string
|
|
458
438
|
* @returns {Field}
|
|
@@ -475,6 +455,26 @@ 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,18,19,20");
|
|
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
478
|
/**
|
|
479
479
|
* Returns the maximum number of imports allowed in a program by the
|
|
480
480
|
* snarkVM network implementation this SDK was built against.
|
|
@@ -511,16 +511,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
511
511
|
}
|
|
512
512
|
return result;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
wasm$1.
|
|
514
|
+
function __wasm_bindgen_func_elem_8995(arg0, arg1, arg2) {
|
|
515
|
+
wasm$1.__wasm_bindgen_func_elem_8995(arg0, arg1, addHeapObject(arg2));
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
function
|
|
519
|
-
wasm$1.
|
|
518
|
+
function __wasm_bindgen_func_elem_7556(arg0, arg1) {
|
|
519
|
+
wasm$1.__wasm_bindgen_func_elem_7556(arg0, arg1);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
function
|
|
523
|
-
wasm$1.
|
|
522
|
+
function __wasm_bindgen_func_elem_7829(arg0, arg1, arg2, arg3) {
|
|
523
|
+
wasm$1.__wasm_bindgen_func_elem_7829(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -8593,7 +8593,7 @@ const PlaintextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
8593
8593
|
*
|
|
8594
8594
|
* @example
|
|
8595
8595
|
* // Get the bond state of an existing address.
|
|
8596
|
-
* const bondState = await fetch(https://
|
|
8596
|
+
* const bondState = await fetch(https://edge.provable.com/api/v2/mainnet/program/credits.aleo/mapping/bond_state/aleo12zlythl7htjdtjjjz3ahdj4vl6wk3zuzm37s80l86qpx8fyx95fqnxcn2f);
|
|
8597
8597
|
* // Convert the bond state to a Plaintext object.
|
|
8598
8598
|
* const bondStatePlaintext = Plaintext.fromString(bond_state);
|
|
8599
8599
|
* // Convert the Plaintext object to a JS object.
|
|
@@ -19325,7 +19325,7 @@ function __wbg_get_imports(memory) {
|
|
|
19325
19325
|
const ret = getObject(arg0).length;
|
|
19326
19326
|
return ret;
|
|
19327
19327
|
};
|
|
19328
|
-
imports.wbg.
|
|
19328
|
+
imports.wbg.__wbg_log_873fe7a781ebc826 = function(arg0, arg1) {
|
|
19329
19329
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
19330
19330
|
};
|
|
19331
19331
|
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
@@ -19343,7 +19343,7 @@ function __wbg_get_imports(memory) {
|
|
|
19343
19343
|
const a = state0.a;
|
|
19344
19344
|
state0.a = 0;
|
|
19345
19345
|
try {
|
|
19346
|
-
return
|
|
19346
|
+
return __wasm_bindgen_func_elem_7829(a, state0.b, arg0, arg1);
|
|
19347
19347
|
} finally {
|
|
19348
19348
|
state0.a = a;
|
|
19349
19349
|
}
|
|
@@ -19515,7 +19515,7 @@ function __wbg_get_imports(memory) {
|
|
|
19515
19515
|
const ret = Signature.__wrap(arg0);
|
|
19516
19516
|
return addHeapObject(ret);
|
|
19517
19517
|
};
|
|
19518
|
-
imports.wbg.
|
|
19518
|
+
imports.wbg.__wbg_spawnWorker_087de831e4bfd369 = function(arg0, arg1, arg2, arg3) {
|
|
19519
19519
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
19520
19520
|
return addHeapObject(ret);
|
|
19521
19521
|
};
|
|
@@ -19602,11 +19602,6 @@ function __wbg_get_imports(memory) {
|
|
|
19602
19602
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
19603
19603
|
return addHeapObject(ret);
|
|
19604
19604
|
};
|
|
19605
|
-
imports.wbg.__wbindgen_cast_2adca60326a83a78 = function(arg0, arg1) {
|
|
19606
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [], shim_idx: 528, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19607
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7506, __wasm_bindgen_func_elem_7507);
|
|
19608
|
-
return addHeapObject(ret);
|
|
19609
|
-
};
|
|
19610
19605
|
imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
|
|
19611
19606
|
// Cast intrinsic for `I128 -> Externref`.
|
|
19612
19607
|
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
@@ -19619,7 +19614,7 @@ function __wbg_get_imports(memory) {
|
|
|
19619
19614
|
};
|
|
19620
19615
|
imports.wbg.__wbindgen_cast_805ada4c4be963fc = function(arg0, arg1) {
|
|
19621
19616
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19622
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19617
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_8995);
|
|
19623
19618
|
return addHeapObject(ret);
|
|
19624
19619
|
};
|
|
19625
19620
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
@@ -19629,7 +19624,7 @@ function __wbg_get_imports(memory) {
|
|
|
19629
19624
|
};
|
|
19630
19625
|
imports.wbg.__wbindgen_cast_c048d24de4cf58bb = function(arg0, arg1) {
|
|
19631
19626
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [Externref], shim_idx: 396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19632
|
-
const ret = makeMutClosure(arg0, arg1, wasm$1.
|
|
19627
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_8995);
|
|
19633
19628
|
return addHeapObject(ret);
|
|
19634
19629
|
};
|
|
19635
19630
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
@@ -19642,6 +19637,11 @@ function __wbg_get_imports(memory) {
|
|
|
19642
19637
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
19643
19638
|
return addHeapObject(ret);
|
|
19644
19639
|
};
|
|
19640
|
+
imports.wbg.__wbindgen_cast_f10277ab8e6ee562 = function(arg0, arg1) {
|
|
19641
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [], shim_idx: 533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
19642
|
+
const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7555, __wasm_bindgen_func_elem_7556);
|
|
19643
|
+
return addHeapObject(ret);
|
|
19644
|
+
};
|
|
19645
19645
|
imports.wbg.__wbindgen_link_b9f45ffe079ef2c1 = function(arg0) {
|
|
19646
19646
|
const val = `onmessage = function (ev) {
|
|
19647
19647
|
let [ia, index, value] = ev.data;
|