saito-wasm 0.2.43 → 0.2.44
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.js +119 -118
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +139 -139
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +139 -139
- package/pkg/web/index.js +113 -112
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +139 -139
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-088c11ccf0e82f0d → saito-wasm-a2b0ac58ed89dd19}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-088c11ccf0e82f0d → saito-wasm-a2b0ac58ed89dd19}/js/msg_handler.js +0 -0
package/pkg/web/index.js
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-a2b0ac58ed89dd19/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const heap = new Array(128).fill(undefined);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
heap.push(undefined, null, true, false);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
function getObject(idx) { return heap[idx]; }
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
13
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
-
}
|
|
15
|
-
return cachedUint8Memory0;
|
|
16
|
-
}
|
|
11
|
+
let heap_next = heap.length;
|
|
17
12
|
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
function dropObject(idx) {
|
|
14
|
+
if (idx < 132) return;
|
|
15
|
+
heap[idx] = heap_next;
|
|
16
|
+
heap_next = idx;
|
|
21
17
|
}
|
|
22
18
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
function takeObject(idx) {
|
|
20
|
+
const ret = getObject(idx);
|
|
21
|
+
dropObject(idx);
|
|
22
|
+
return ret;
|
|
23
|
+
}
|
|
28
24
|
|
|
29
25
|
function addHeapObject(obj) {
|
|
30
26
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -35,18 +31,22 @@ function addHeapObject(obj) {
|
|
|
35
31
|
return idx;
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
|
|
34
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
39
35
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
37
|
+
|
|
38
|
+
let cachedUint8Memory0 = null;
|
|
39
|
+
|
|
40
|
+
function getUint8Memory0() {
|
|
41
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
42
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
43
|
+
}
|
|
44
|
+
return cachedUint8Memory0;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return ret;
|
|
47
|
+
function getStringFromWasm0(ptr, len) {
|
|
48
|
+
ptr = ptr >>> 0;
|
|
49
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -223,9 +223,23 @@ 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__h9a522aab16cd3a22(arg0, arg1, addHeapObject(arg2));
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
function _assertClass(instance, klass) {
|
|
230
|
+
if (!(instance instanceof klass)) {
|
|
231
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
232
|
+
}
|
|
233
|
+
return instance.ptr;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function handleError(f, args) {
|
|
237
|
+
try {
|
|
238
|
+
return f.apply(this, args);
|
|
239
|
+
} catch (e) {
|
|
240
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
241
|
+
}
|
|
242
|
+
}
|
|
229
243
|
/**
|
|
230
244
|
* @param {string} json
|
|
231
245
|
* @param {string} private_key
|
|
@@ -452,12 +466,6 @@ export function get_balance_snapshot(keys) {
|
|
|
452
466
|
return takeObject(ret);
|
|
453
467
|
}
|
|
454
468
|
|
|
455
|
-
function _assertClass(instance, klass) {
|
|
456
|
-
if (!(instance instanceof klass)) {
|
|
457
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
458
|
-
}
|
|
459
|
-
return instance.ptr;
|
|
460
|
-
}
|
|
461
469
|
/**
|
|
462
470
|
* @param {WasmBalanceSnapshot} snapshot
|
|
463
471
|
* @returns {Promise<void>}
|
|
@@ -617,15 +625,8 @@ export function produce_block_without_gt() {
|
|
|
617
625
|
return takeObject(ret);
|
|
618
626
|
}
|
|
619
627
|
|
|
620
|
-
function handleError(f, args) {
|
|
621
|
-
try {
|
|
622
|
-
return f.apply(this, args);
|
|
623
|
-
} catch (e) {
|
|
624
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
628
|
function __wbg_adapter_402(arg0, arg1, arg2, arg3) {
|
|
628
|
-
wasm.
|
|
629
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
629
630
|
}
|
|
630
631
|
|
|
631
632
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2355,21 +2356,25 @@ async function __wbg_load(module, imports) {
|
|
|
2355
2356
|
function __wbg_get_imports() {
|
|
2356
2357
|
const imports = {};
|
|
2357
2358
|
imports.wbg = {};
|
|
2358
|
-
imports.wbg.
|
|
2359
|
-
const ret =
|
|
2359
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2360
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2360
2361
|
return addHeapObject(ret);
|
|
2361
2362
|
};
|
|
2362
2363
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2363
2364
|
takeObject(arg0);
|
|
2364
2365
|
};
|
|
2365
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2366
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2367
|
-
return addHeapObject(ret);
|
|
2368
|
-
};
|
|
2369
2366
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2370
2367
|
const ret = BigInt.asUintN(64, arg0);
|
|
2371
2368
|
return addHeapObject(ret);
|
|
2372
2369
|
};
|
|
2370
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2371
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2372
|
+
return addHeapObject(ret);
|
|
2373
|
+
};
|
|
2374
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2375
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2376
|
+
return addHeapObject(ret);
|
|
2377
|
+
};
|
|
2373
2378
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2374
2379
|
const obj = getObject(arg1);
|
|
2375
2380
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2378,49 +2383,58 @@ function __wbg_get_imports() {
|
|
|
2378
2383
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2379
2384
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2380
2385
|
};
|
|
2381
|
-
imports.wbg.
|
|
2382
|
-
const ret =
|
|
2386
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2387
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2383
2388
|
return addHeapObject(ret);
|
|
2384
2389
|
};
|
|
2385
|
-
imports.wbg.
|
|
2386
|
-
const ret =
|
|
2390
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2391
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2387
2392
|
return addHeapObject(ret);
|
|
2388
2393
|
};
|
|
2389
2394
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2390
2395
|
const ret = WasmSlip.__wrap(arg0);
|
|
2391
2396
|
return addHeapObject(ret);
|
|
2392
2397
|
};
|
|
2393
|
-
imports.wbg.
|
|
2394
|
-
const ret =
|
|
2395
|
-
return addHeapObject(ret);
|
|
2396
|
-
};
|
|
2397
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2398
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2398
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2399
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2399
2400
|
return addHeapObject(ret);
|
|
2400
2401
|
};
|
|
2401
|
-
imports.wbg.
|
|
2402
|
-
const ret =
|
|
2402
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2403
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2403
2404
|
return addHeapObject(ret);
|
|
2404
2405
|
};
|
|
2405
|
-
imports.wbg.
|
|
2406
|
-
const ret =
|
|
2406
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2407
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2407
2408
|
return addHeapObject(ret);
|
|
2408
2409
|
};
|
|
2409
2410
|
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2410
2411
|
const ret = WasmHop.__wrap(arg0);
|
|
2411
2412
|
return addHeapObject(ret);
|
|
2412
2413
|
};
|
|
2413
|
-
imports.wbg.
|
|
2414
|
-
const ret =
|
|
2414
|
+
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2415
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2415
2416
|
return addHeapObject(ret);
|
|
2416
2417
|
};
|
|
2417
|
-
imports.wbg.
|
|
2418
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2419
|
+
const val = getObject(arg0);
|
|
2420
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2421
|
+
return ret;
|
|
2422
|
+
};
|
|
2423
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2424
|
+
const ret = getObject(arg0) === undefined;
|
|
2425
|
+
return ret;
|
|
2426
|
+
};
|
|
2427
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2428
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2429
|
+
return ret;
|
|
2430
|
+
};
|
|
2431
|
+
imports.wbg.__wbg_sendmessage_f290dcf65ab48329 = function(arg0, arg1) {
|
|
2418
2432
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2419
2433
|
};
|
|
2420
|
-
imports.wbg.
|
|
2434
|
+
imports.wbg.__wbg_sendmessagetoall_cce075e52b917d07 = function(arg0, arg1) {
|
|
2421
2435
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2422
2436
|
};
|
|
2423
|
-
imports.wbg.
|
|
2437
|
+
imports.wbg.__wbg_connecttopeer_cedf0bb35c2783d0 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2424
2438
|
let deferred0_0;
|
|
2425
2439
|
let deferred0_1;
|
|
2426
2440
|
try {
|
|
@@ -2432,11 +2446,11 @@ function __wbg_get_imports() {
|
|
|
2432
2446
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2433
2447
|
}
|
|
2434
2448
|
}, arguments) };
|
|
2435
|
-
imports.wbg.
|
|
2449
|
+
imports.wbg.__wbg_disconnectfrompeer_6ca3e436f4b0d1b1 = function() { return handleError(function (arg0) {
|
|
2436
2450
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2437
2451
|
return addHeapObject(ret);
|
|
2438
2452
|
}, arguments) };
|
|
2439
|
-
imports.wbg.
|
|
2453
|
+
imports.wbg.__wbg_fetchblockfrompeer_df6a997a11934d1a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2440
2454
|
let deferred0_0;
|
|
2441
2455
|
let deferred0_1;
|
|
2442
2456
|
try {
|
|
@@ -2448,7 +2462,7 @@ function __wbg_get_imports() {
|
|
|
2448
2462
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2449
2463
|
}
|
|
2450
2464
|
}, arguments) };
|
|
2451
|
-
imports.wbg.
|
|
2465
|
+
imports.wbg.__wbg_writevalue_c6cbef38b3c0b8c2 = function(arg0, arg1, arg2) {
|
|
2452
2466
|
let deferred0_0;
|
|
2453
2467
|
let deferred0_1;
|
|
2454
2468
|
try {
|
|
@@ -2459,7 +2473,7 @@ function __wbg_get_imports() {
|
|
|
2459
2473
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2460
2474
|
}
|
|
2461
2475
|
};
|
|
2462
|
-
imports.wbg.
|
|
2476
|
+
imports.wbg.__wbg_appendvalue_f9513e743686fa19 = function(arg0, arg1, arg2) {
|
|
2463
2477
|
let deferred0_0;
|
|
2464
2478
|
let deferred0_1;
|
|
2465
2479
|
try {
|
|
@@ -2470,7 +2484,7 @@ function __wbg_get_imports() {
|
|
|
2470
2484
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2471
2485
|
}
|
|
2472
2486
|
};
|
|
2473
|
-
imports.wbg.
|
|
2487
|
+
imports.wbg.__wbg_flushdata_217ab4b2062bf2c7 = function(arg0, arg1) {
|
|
2474
2488
|
let deferred0_0;
|
|
2475
2489
|
let deferred0_1;
|
|
2476
2490
|
try {
|
|
@@ -2481,7 +2495,7 @@ function __wbg_get_imports() {
|
|
|
2481
2495
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2482
2496
|
}
|
|
2483
2497
|
};
|
|
2484
|
-
imports.wbg.
|
|
2498
|
+
imports.wbg.__wbg_readvalue_58831cf01ab6555e = function() { return handleError(function (arg0, arg1) {
|
|
2485
2499
|
let deferred0_0;
|
|
2486
2500
|
let deferred0_1;
|
|
2487
2501
|
try {
|
|
@@ -2493,11 +2507,11 @@ function __wbg_get_imports() {
|
|
|
2493
2507
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2494
2508
|
}
|
|
2495
2509
|
}, arguments) };
|
|
2496
|
-
imports.wbg.
|
|
2510
|
+
imports.wbg.__wbg_loadblockfilelist_0dbfdcb9f7757021 = function() { return handleError(function () {
|
|
2497
2511
|
const ret = MsgHandler.load_block_file_list();
|
|
2498
2512
|
return addHeapObject(ret);
|
|
2499
2513
|
}, arguments) };
|
|
2500
|
-
imports.wbg.
|
|
2514
|
+
imports.wbg.__wbg_isexistingfile_26961d0ea4357e4f = function() { return handleError(function (arg0, arg1) {
|
|
2501
2515
|
let deferred0_0;
|
|
2502
2516
|
let deferred0_1;
|
|
2503
2517
|
try {
|
|
@@ -2509,7 +2523,7 @@ function __wbg_get_imports() {
|
|
|
2509
2523
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2510
2524
|
}
|
|
2511
2525
|
}, arguments) };
|
|
2512
|
-
imports.wbg.
|
|
2526
|
+
imports.wbg.__wbg_removevalue_b000ba34ce831a37 = function() { return handleError(function (arg0, arg1) {
|
|
2513
2527
|
let deferred0_0;
|
|
2514
2528
|
let deferred0_1;
|
|
2515
2529
|
try {
|
|
@@ -2521,7 +2535,7 @@ function __wbg_get_imports() {
|
|
|
2521
2535
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2522
2536
|
}
|
|
2523
2537
|
}, arguments) };
|
|
2524
|
-
imports.wbg.
|
|
2538
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_99a86edab8bf6a99 = function() { return handleError(function (arg0, arg1) {
|
|
2525
2539
|
let deferred0_0;
|
|
2526
2540
|
let deferred0_1;
|
|
2527
2541
|
try {
|
|
@@ -2532,16 +2546,16 @@ function __wbg_get_imports() {
|
|
|
2532
2546
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2533
2547
|
}
|
|
2534
2548
|
}, arguments) };
|
|
2535
|
-
imports.wbg.
|
|
2549
|
+
imports.wbg.__wbg_processapicall_09b9372222883c21 = function(arg0, arg1, arg2) {
|
|
2536
2550
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2537
2551
|
};
|
|
2538
|
-
imports.wbg.
|
|
2552
|
+
imports.wbg.__wbg_processapisuccess_9c5e4ae9037495bb = function(arg0, arg1, arg2) {
|
|
2539
2553
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2540
2554
|
};
|
|
2541
|
-
imports.wbg.
|
|
2555
|
+
imports.wbg.__wbg_processapierror_024d1df913f8c03f = function(arg0, arg1, arg2) {
|
|
2542
2556
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2543
2557
|
};
|
|
2544
|
-
imports.wbg.
|
|
2558
|
+
imports.wbg.__wbg_sendinterfaceevent_e5c1c96af80307c6 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2545
2559
|
let deferred0_0;
|
|
2546
2560
|
let deferred0_1;
|
|
2547
2561
|
let deferred1_0;
|
|
@@ -2557,7 +2571,7 @@ function __wbg_get_imports() {
|
|
|
2557
2571
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2558
2572
|
}
|
|
2559
2573
|
};
|
|
2560
|
-
imports.wbg.
|
|
2574
|
+
imports.wbg.__wbg_sendblocksuccess_dbeec697ead737cc = function(arg0, arg1, arg2) {
|
|
2561
2575
|
let deferred0_0;
|
|
2562
2576
|
let deferred0_1;
|
|
2563
2577
|
try {
|
|
@@ -2568,10 +2582,10 @@ function __wbg_get_imports() {
|
|
|
2568
2582
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2569
2583
|
}
|
|
2570
2584
|
};
|
|
2571
|
-
imports.wbg.
|
|
2585
|
+
imports.wbg.__wbg_sendwalletupdate_7816e9f2b93a26d7 = function() {
|
|
2572
2586
|
MsgHandler.send_wallet_update();
|
|
2573
2587
|
};
|
|
2574
|
-
imports.wbg.
|
|
2588
|
+
imports.wbg.__wbg_sendnewversionalert_20153bf911d5374b = function(arg0, arg1, arg2) {
|
|
2575
2589
|
let deferred0_0;
|
|
2576
2590
|
let deferred0_1;
|
|
2577
2591
|
try {
|
|
@@ -2582,36 +2596,23 @@ function __wbg_get_imports() {
|
|
|
2582
2596
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2583
2597
|
}
|
|
2584
2598
|
};
|
|
2585
|
-
imports.wbg.
|
|
2599
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_d891a47912a620c6 = function(arg0) {
|
|
2586
2600
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2587
2601
|
};
|
|
2588
|
-
imports.wbg.
|
|
2602
|
+
imports.wbg.__wbg_savewallet_5ecec1d72f7c0e97 = function() {
|
|
2589
2603
|
MsgHandler.save_wallet();
|
|
2590
2604
|
};
|
|
2591
|
-
imports.wbg.
|
|
2605
|
+
imports.wbg.__wbg_loadwallet_ffa52ef4ea4e8a14 = function() {
|
|
2592
2606
|
MsgHandler.load_wallet();
|
|
2593
2607
|
};
|
|
2594
|
-
imports.wbg.
|
|
2608
|
+
imports.wbg.__wbg_getmyservices_8d5c13e99b8faa44 = function() {
|
|
2595
2609
|
const ret = MsgHandler.get_my_services();
|
|
2596
2610
|
_assertClass(ret, WasmPeerServiceList);
|
|
2597
2611
|
var ptr1 = ret.__destroy_into_raw();
|
|
2598
2612
|
return ptr1;
|
|
2599
2613
|
};
|
|
2600
|
-
imports.wbg.
|
|
2601
|
-
const
|
|
2602
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2603
|
-
return ret;
|
|
2604
|
-
};
|
|
2605
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2606
|
-
const ret = getObject(arg0) === undefined;
|
|
2607
|
-
return ret;
|
|
2608
|
-
};
|
|
2609
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2610
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2611
|
-
return ret;
|
|
2612
|
-
};
|
|
2613
|
-
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2614
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2614
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2615
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2615
2616
|
return addHeapObject(ret);
|
|
2616
2617
|
};
|
|
2617
2618
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
@@ -2637,14 +2638,6 @@ function __wbg_get_imports() {
|
|
|
2637
2638
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
2638
2639
|
return addHeapObject(ret);
|
|
2639
2640
|
};
|
|
2640
|
-
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2641
|
-
const ret = getObject(arg0).queueMicrotask;
|
|
2642
|
-
return addHeapObject(ret);
|
|
2643
|
-
};
|
|
2644
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
2645
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
2646
|
-
return ret;
|
|
2647
|
-
};
|
|
2648
2641
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
2649
2642
|
const obj = takeObject(arg0).original;
|
|
2650
2643
|
if (obj.cnt-- == 1) {
|
|
@@ -2654,6 +2647,14 @@ function __wbg_get_imports() {
|
|
|
2654
2647
|
const ret = false;
|
|
2655
2648
|
return ret;
|
|
2656
2649
|
};
|
|
2650
|
+
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2651
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2652
|
+
return addHeapObject(ret);
|
|
2653
|
+
};
|
|
2654
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
2655
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2656
|
+
return ret;
|
|
2657
|
+
};
|
|
2657
2658
|
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2658
2659
|
queueMicrotask(getObject(arg0));
|
|
2659
2660
|
};
|
|
@@ -2917,7 +2918,7 @@ function __wbg_get_imports() {
|
|
|
2917
2918
|
const ret = wasm.memory;
|
|
2918
2919
|
return addHeapObject(ret);
|
|
2919
2920
|
};
|
|
2920
|
-
imports.wbg.
|
|
2921
|
+
imports.wbg.__wbindgen_closure_wrapper1343 = function(arg0, arg1, arg2) {
|
|
2921
2922
|
const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
|
|
2922
2923
|
return addHeapObject(ret);
|
|
2923
2924
|
};
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|