saito-wasm 0.2.54 → 0.2.55
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/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +3 -0
- package/pkg/node/index.js +108 -100
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +119 -118
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +122 -118
- package/pkg/web/index.js +100 -92
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +119 -118
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-e43993b09b19fc81 → saito-wasm-682930fc5f92339c}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-e43993b09b19fc81 → saito-wasm-682930fc5f92339c}/js/msg_handler.js +0 -0
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-682930fc5f92339c/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -223,7 +223,15 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
223
223
|
return real;
|
|
224
224
|
}
|
|
225
225
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
226
|
-
wasm.
|
|
226
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccc858efee036015(arg0, arg1, addHeapObject(arg2));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function handleError(f, args) {
|
|
230
|
+
try {
|
|
231
|
+
return f.apply(this, args);
|
|
232
|
+
} catch (e) {
|
|
233
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
234
|
+
}
|
|
227
235
|
}
|
|
228
236
|
|
|
229
237
|
function _assertClass(instance, klass) {
|
|
@@ -617,15 +625,8 @@ export function produce_block_without_gt() {
|
|
|
617
625
|
return takeObject(ret);
|
|
618
626
|
}
|
|
619
627
|
|
|
620
|
-
function
|
|
621
|
-
|
|
622
|
-
return f.apply(this, args);
|
|
623
|
-
} catch (e) {
|
|
624
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
function __wbg_adapter_403(arg0, arg1, arg2, arg3) {
|
|
628
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
628
|
+
function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
|
|
629
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
629
630
|
}
|
|
630
631
|
|
|
631
632
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -780,6 +781,13 @@ export class WasmBlock {
|
|
|
780
781
|
/**
|
|
781
782
|
* @returns {bigint}
|
|
782
783
|
*/
|
|
784
|
+
get total_fees_cumulative() {
|
|
785
|
+
const ret = wasm.wasmblock_total_fees_cumulative(this.__wbg_ptr);
|
|
786
|
+
return BigInt.asUintN(64, ret);
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* @returns {bigint}
|
|
790
|
+
*/
|
|
783
791
|
get difficulty() {
|
|
784
792
|
const ret = wasm.wasmblock_difficulty(this.__wbg_ptr);
|
|
785
793
|
return BigInt.asUintN(64, ret);
|
|
@@ -2232,40 +2240,40 @@ export class WasmWalletSlip {
|
|
|
2232
2240
|
* @returns {bigint}
|
|
2233
2241
|
*/
|
|
2234
2242
|
get_amount() {
|
|
2235
|
-
const ret = wasm.
|
|
2243
|
+
const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
|
|
2236
2244
|
return BigInt.asUintN(64, ret);
|
|
2237
2245
|
}
|
|
2238
2246
|
/**
|
|
2239
2247
|
* @param {bigint} amount
|
|
2240
2248
|
*/
|
|
2241
2249
|
set_amount(amount) {
|
|
2242
|
-
wasm.
|
|
2250
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2243
2251
|
}
|
|
2244
2252
|
/**
|
|
2245
2253
|
* @returns {bigint}
|
|
2246
2254
|
*/
|
|
2247
2255
|
get_block_id() {
|
|
2248
|
-
const ret = wasm.
|
|
2256
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2249
2257
|
return BigInt.asUintN(64, ret);
|
|
2250
2258
|
}
|
|
2251
2259
|
/**
|
|
2252
2260
|
* @param {bigint} block_id
|
|
2253
2261
|
*/
|
|
2254
2262
|
set_block_id(block_id) {
|
|
2255
|
-
wasm.
|
|
2263
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2256
2264
|
}
|
|
2257
2265
|
/**
|
|
2258
2266
|
* @returns {bigint}
|
|
2259
2267
|
*/
|
|
2260
2268
|
get_tx_ordinal() {
|
|
2261
|
-
const ret = wasm.
|
|
2269
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2262
2270
|
return BigInt.asUintN(64, ret);
|
|
2263
2271
|
}
|
|
2264
2272
|
/**
|
|
2265
2273
|
* @param {bigint} ordinal
|
|
2266
2274
|
*/
|
|
2267
2275
|
set_tx_ordinal(ordinal) {
|
|
2268
|
-
wasm.
|
|
2276
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2269
2277
|
}
|
|
2270
2278
|
/**
|
|
2271
2279
|
* @returns {number}
|
|
@@ -2365,32 +2373,28 @@ function __wbg_get_imports() {
|
|
|
2365
2373
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2366
2374
|
takeObject(arg0);
|
|
2367
2375
|
};
|
|
2368
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2369
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2370
|
-
return addHeapObject(ret);
|
|
2371
|
-
};
|
|
2372
2376
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2373
2377
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2374
2378
|
return addHeapObject(ret);
|
|
2375
2379
|
};
|
|
2380
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2381
|
+
const obj = getObject(arg1);
|
|
2382
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2383
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2384
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2385
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2386
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2387
|
+
};
|
|
2376
2388
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2377
2389
|
const ret = BigInt.asUintN(64, arg0);
|
|
2378
2390
|
return addHeapObject(ret);
|
|
2379
2391
|
};
|
|
2380
|
-
imports.wbg.
|
|
2381
|
-
const ret =
|
|
2382
|
-
return addHeapObject(ret);
|
|
2383
|
-
};
|
|
2384
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2385
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2386
|
-
return addHeapObject(ret);
|
|
2387
|
-
};
|
|
2388
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2389
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2392
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2393
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2390
2394
|
return addHeapObject(ret);
|
|
2391
2395
|
};
|
|
2392
|
-
imports.wbg.
|
|
2393
|
-
const ret =
|
|
2396
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2397
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2394
2398
|
return addHeapObject(ret);
|
|
2395
2399
|
};
|
|
2396
2400
|
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
@@ -2401,50 +2405,29 @@ function __wbg_get_imports() {
|
|
|
2401
2405
|
const ret = WasmPeer.__wrap(arg0);
|
|
2402
2406
|
return addHeapObject(ret);
|
|
2403
2407
|
};
|
|
2404
|
-
imports.wbg.
|
|
2405
|
-
const ret =
|
|
2408
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2409
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2406
2410
|
return addHeapObject(ret);
|
|
2407
2411
|
};
|
|
2408
|
-
imports.wbg.
|
|
2409
|
-
const
|
|
2410
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2411
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2412
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2413
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2414
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2415
|
-
};
|
|
2416
|
-
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2417
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2412
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2413
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2418
2414
|
return addHeapObject(ret);
|
|
2419
2415
|
};
|
|
2420
|
-
imports.wbg.
|
|
2421
|
-
const
|
|
2422
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2423
|
-
return ret;
|
|
2424
|
-
};
|
|
2425
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2426
|
-
const ret = getObject(arg0) === undefined;
|
|
2427
|
-
return ret;
|
|
2428
|
-
};
|
|
2429
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2430
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2431
|
-
return ret;
|
|
2432
|
-
};
|
|
2433
|
-
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2434
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2416
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2417
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2435
2418
|
return addHeapObject(ret);
|
|
2436
2419
|
};
|
|
2437
|
-
imports.wbg.
|
|
2438
|
-
const ret =
|
|
2420
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2421
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2439
2422
|
return addHeapObject(ret);
|
|
2440
2423
|
};
|
|
2441
|
-
imports.wbg.
|
|
2424
|
+
imports.wbg.__wbg_sendmessage_58414578e09508ee = function(arg0, arg1) {
|
|
2442
2425
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2443
2426
|
};
|
|
2444
|
-
imports.wbg.
|
|
2427
|
+
imports.wbg.__wbg_sendmessagetoall_f68b70039839ca94 = function(arg0, arg1) {
|
|
2445
2428
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2446
2429
|
};
|
|
2447
|
-
imports.wbg.
|
|
2430
|
+
imports.wbg.__wbg_connecttopeer_0f9d0d7f628505cc = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2448
2431
|
let deferred0_0;
|
|
2449
2432
|
let deferred0_1;
|
|
2450
2433
|
try {
|
|
@@ -2456,11 +2439,11 @@ function __wbg_get_imports() {
|
|
|
2456
2439
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2457
2440
|
}
|
|
2458
2441
|
}, arguments) };
|
|
2459
|
-
imports.wbg.
|
|
2442
|
+
imports.wbg.__wbg_disconnectfrompeer_e403aa07dc035083 = function() { return handleError(function (arg0) {
|
|
2460
2443
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2461
2444
|
return addHeapObject(ret);
|
|
2462
2445
|
}, arguments) };
|
|
2463
|
-
imports.wbg.
|
|
2446
|
+
imports.wbg.__wbg_fetchblockfrompeer_1a0c25000b36b44d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2464
2447
|
let deferred0_0;
|
|
2465
2448
|
let deferred0_1;
|
|
2466
2449
|
try {
|
|
@@ -2472,7 +2455,7 @@ function __wbg_get_imports() {
|
|
|
2472
2455
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2473
2456
|
}
|
|
2474
2457
|
}, arguments) };
|
|
2475
|
-
imports.wbg.
|
|
2458
|
+
imports.wbg.__wbg_writevalue_f41b8371891831c7 = function(arg0, arg1, arg2) {
|
|
2476
2459
|
let deferred0_0;
|
|
2477
2460
|
let deferred0_1;
|
|
2478
2461
|
try {
|
|
@@ -2483,7 +2466,7 @@ function __wbg_get_imports() {
|
|
|
2483
2466
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2484
2467
|
}
|
|
2485
2468
|
};
|
|
2486
|
-
imports.wbg.
|
|
2469
|
+
imports.wbg.__wbg_appendvalue_a8d5e9169c12ee6f = function(arg0, arg1, arg2) {
|
|
2487
2470
|
let deferred0_0;
|
|
2488
2471
|
let deferred0_1;
|
|
2489
2472
|
try {
|
|
@@ -2494,7 +2477,7 @@ function __wbg_get_imports() {
|
|
|
2494
2477
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2495
2478
|
}
|
|
2496
2479
|
};
|
|
2497
|
-
imports.wbg.
|
|
2480
|
+
imports.wbg.__wbg_flushdata_f3cb09389cbea176 = function(arg0, arg1) {
|
|
2498
2481
|
let deferred0_0;
|
|
2499
2482
|
let deferred0_1;
|
|
2500
2483
|
try {
|
|
@@ -2505,7 +2488,7 @@ function __wbg_get_imports() {
|
|
|
2505
2488
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2506
2489
|
}
|
|
2507
2490
|
};
|
|
2508
|
-
imports.wbg.
|
|
2491
|
+
imports.wbg.__wbg_readvalue_cb355c5d065341f4 = function() { return handleError(function (arg0, arg1) {
|
|
2509
2492
|
let deferred0_0;
|
|
2510
2493
|
let deferred0_1;
|
|
2511
2494
|
try {
|
|
@@ -2517,11 +2500,11 @@ function __wbg_get_imports() {
|
|
|
2517
2500
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2518
2501
|
}
|
|
2519
2502
|
}, arguments) };
|
|
2520
|
-
imports.wbg.
|
|
2503
|
+
imports.wbg.__wbg_loadblockfilelist_b1df4749bbd8ebe8 = function() { return handleError(function () {
|
|
2521
2504
|
const ret = MsgHandler.load_block_file_list();
|
|
2522
2505
|
return addHeapObject(ret);
|
|
2523
2506
|
}, arguments) };
|
|
2524
|
-
imports.wbg.
|
|
2507
|
+
imports.wbg.__wbg_isexistingfile_42b73e087d80ac41 = function() { return handleError(function (arg0, arg1) {
|
|
2525
2508
|
let deferred0_0;
|
|
2526
2509
|
let deferred0_1;
|
|
2527
2510
|
try {
|
|
@@ -2533,7 +2516,7 @@ function __wbg_get_imports() {
|
|
|
2533
2516
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2534
2517
|
}
|
|
2535
2518
|
}, arguments) };
|
|
2536
|
-
imports.wbg.
|
|
2519
|
+
imports.wbg.__wbg_removevalue_72d08a6328555152 = function() { return handleError(function (arg0, arg1) {
|
|
2537
2520
|
let deferred0_0;
|
|
2538
2521
|
let deferred0_1;
|
|
2539
2522
|
try {
|
|
@@ -2545,7 +2528,7 @@ function __wbg_get_imports() {
|
|
|
2545
2528
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2546
2529
|
}
|
|
2547
2530
|
}, arguments) };
|
|
2548
|
-
imports.wbg.
|
|
2531
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_e0b902bcf4e47e6c = function() { return handleError(function (arg0, arg1) {
|
|
2549
2532
|
let deferred0_0;
|
|
2550
2533
|
let deferred0_1;
|
|
2551
2534
|
try {
|
|
@@ -2556,16 +2539,16 @@ function __wbg_get_imports() {
|
|
|
2556
2539
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2557
2540
|
}
|
|
2558
2541
|
}, arguments) };
|
|
2559
|
-
imports.wbg.
|
|
2542
|
+
imports.wbg.__wbg_processapicall_89c0714a5d058db3 = function(arg0, arg1, arg2) {
|
|
2560
2543
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2561
2544
|
};
|
|
2562
|
-
imports.wbg.
|
|
2545
|
+
imports.wbg.__wbg_processapisuccess_4d19fbbe5deb39d2 = function(arg0, arg1, arg2) {
|
|
2563
2546
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2564
2547
|
};
|
|
2565
|
-
imports.wbg.
|
|
2548
|
+
imports.wbg.__wbg_processapierror_45c244bdc99489fa = function(arg0, arg1, arg2) {
|
|
2566
2549
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2567
2550
|
};
|
|
2568
|
-
imports.wbg.
|
|
2551
|
+
imports.wbg.__wbg_sendinterfaceevent_073f850062738a08 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2569
2552
|
let deferred0_0;
|
|
2570
2553
|
let deferred0_1;
|
|
2571
2554
|
let deferred1_0;
|
|
@@ -2581,7 +2564,7 @@ function __wbg_get_imports() {
|
|
|
2581
2564
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2582
2565
|
}
|
|
2583
2566
|
};
|
|
2584
|
-
imports.wbg.
|
|
2567
|
+
imports.wbg.__wbg_sendblocksuccess_0db2a474dd22271a = function(arg0, arg1, arg2) {
|
|
2585
2568
|
let deferred0_0;
|
|
2586
2569
|
let deferred0_1;
|
|
2587
2570
|
try {
|
|
@@ -2592,10 +2575,10 @@ function __wbg_get_imports() {
|
|
|
2592
2575
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2593
2576
|
}
|
|
2594
2577
|
};
|
|
2595
|
-
imports.wbg.
|
|
2578
|
+
imports.wbg.__wbg_sendwalletupdate_838a3e161716ed73 = function() {
|
|
2596
2579
|
MsgHandler.send_wallet_update();
|
|
2597
2580
|
};
|
|
2598
|
-
imports.wbg.
|
|
2581
|
+
imports.wbg.__wbg_sendnewversionalert_40d7dac895ab1cf7 = function(arg0, arg1, arg2) {
|
|
2599
2582
|
let deferred0_0;
|
|
2600
2583
|
let deferred0_1;
|
|
2601
2584
|
try {
|
|
@@ -2606,21 +2589,46 @@ function __wbg_get_imports() {
|
|
|
2606
2589
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2607
2590
|
}
|
|
2608
2591
|
};
|
|
2609
|
-
imports.wbg.
|
|
2592
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_70202939958ee303 = function(arg0) {
|
|
2610
2593
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2611
2594
|
};
|
|
2612
|
-
imports.wbg.
|
|
2595
|
+
imports.wbg.__wbg_savewallet_d2bfd7ff4cbb0f89 = function() {
|
|
2613
2596
|
MsgHandler.save_wallet();
|
|
2614
2597
|
};
|
|
2615
|
-
imports.wbg.
|
|
2598
|
+
imports.wbg.__wbg_loadwallet_1e47f75a3ea974d5 = function() {
|
|
2616
2599
|
MsgHandler.load_wallet();
|
|
2617
2600
|
};
|
|
2618
|
-
imports.wbg.
|
|
2601
|
+
imports.wbg.__wbg_getmyservices_8b90f6cb3823562a = function() {
|
|
2619
2602
|
const ret = MsgHandler.get_my_services();
|
|
2620
2603
|
_assertClass(ret, WasmPeerServiceList);
|
|
2621
2604
|
var ptr1 = ret.__destroy_into_raw();
|
|
2622
2605
|
return ptr1;
|
|
2623
2606
|
};
|
|
2607
|
+
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2608
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2609
|
+
return addHeapObject(ret);
|
|
2610
|
+
};
|
|
2611
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2612
|
+
const val = getObject(arg0);
|
|
2613
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2614
|
+
return ret;
|
|
2615
|
+
};
|
|
2616
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2617
|
+
const ret = getObject(arg0) === undefined;
|
|
2618
|
+
return ret;
|
|
2619
|
+
};
|
|
2620
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2621
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2622
|
+
return ret;
|
|
2623
|
+
};
|
|
2624
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2625
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2626
|
+
return addHeapObject(ret);
|
|
2627
|
+
};
|
|
2628
|
+
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2629
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2630
|
+
return addHeapObject(ret);
|
|
2631
|
+
};
|
|
2624
2632
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2625
2633
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2626
2634
|
return ret;
|
|
@@ -2653,6 +2661,9 @@ function __wbg_get_imports() {
|
|
|
2653
2661
|
const ret = false;
|
|
2654
2662
|
return ret;
|
|
2655
2663
|
};
|
|
2664
|
+
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2665
|
+
queueMicrotask(getObject(arg0));
|
|
2666
|
+
};
|
|
2656
2667
|
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2657
2668
|
const ret = getObject(arg0).queueMicrotask;
|
|
2658
2669
|
return addHeapObject(ret);
|
|
@@ -2661,9 +2672,6 @@ function __wbg_get_imports() {
|
|
|
2661
2672
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
2662
2673
|
return ret;
|
|
2663
2674
|
};
|
|
2664
|
-
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2665
|
-
queueMicrotask(getObject(arg0));
|
|
2666
|
-
};
|
|
2667
2675
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
2668
2676
|
const ret = new Error();
|
|
2669
2677
|
return addHeapObject(ret);
|
|
@@ -2843,7 +2851,7 @@ function __wbg_get_imports() {
|
|
|
2843
2851
|
const a = state0.a;
|
|
2844
2852
|
state0.a = 0;
|
|
2845
2853
|
try {
|
|
2846
|
-
return
|
|
2854
|
+
return __wbg_adapter_404(a, state0.b, arg0, arg1);
|
|
2847
2855
|
} finally {
|
|
2848
2856
|
state0.a = a;
|
|
2849
2857
|
}
|
|
@@ -2924,8 +2932,8 @@ function __wbg_get_imports() {
|
|
|
2924
2932
|
const ret = wasm.memory;
|
|
2925
2933
|
return addHeapObject(ret);
|
|
2926
2934
|
};
|
|
2927
|
-
imports.wbg.
|
|
2928
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2935
|
+
imports.wbg.__wbindgen_closure_wrapper1308 = function(arg0, arg1, arg2) {
|
|
2936
|
+
const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
|
|
2929
2937
|
return addHeapObject(ret);
|
|
2930
2938
|
};
|
|
2931
2939
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|