saito-wasm 0.2.81 → 0.2.83

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/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-83691da784da2e89/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-4967682c700c581e/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -6,19 +6,10 @@ const heap = new Array(128).fill(undefined);
6
6
 
7
7
  heap.push(undefined, null, true, false);
8
8
 
9
- let heap_next = heap.length;
10
-
11
- function addHeapObject(obj) {
12
- if (heap_next === heap.length) heap.push(heap.length + 1);
13
- const idx = heap_next;
14
- heap_next = heap[idx];
15
-
16
- heap[idx] = obj;
17
- return idx;
18
- }
19
-
20
9
  function getObject(idx) { return heap[idx]; }
21
10
 
11
+ let heap_next = heap.length;
12
+
22
13
  function dropObject(idx) {
23
14
  if (idx < 132) return;
24
15
  heap[idx] = heap_next;
@@ -31,7 +22,18 @@ function takeObject(idx) {
31
22
  return ret;
32
23
  }
33
24
 
34
- let WASM_VECTOR_LEN = 0;
25
+ function addHeapObject(obj) {
26
+ if (heap_next === heap.length) heap.push(heap.length + 1);
27
+ const idx = heap_next;
28
+ heap_next = heap[idx];
29
+
30
+ heap[idx] = obj;
31
+ return idx;
32
+ }
33
+
34
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
+
36
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
35
37
 
36
38
  let cachedUint8Memory0 = null;
37
39
 
@@ -42,6 +44,13 @@ function getUint8Memory0() {
42
44
  return cachedUint8Memory0;
43
45
  }
44
46
 
47
+ function getStringFromWasm0(ptr, len) {
48
+ ptr = ptr >>> 0;
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
52
+ let WASM_VECTOR_LEN = 0;
53
+
45
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
46
55
 
47
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -109,15 +118,6 @@ function getInt32Memory0() {
109
118
  return cachedInt32Memory0;
110
119
  }
111
120
 
112
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
113
-
114
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
115
-
116
- function getStringFromWasm0(ptr, len) {
117
- ptr = ptr >>> 0;
118
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
119
- }
120
-
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -226,13 +226,6 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
226
226
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc45362b09104e54e(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
229
  function handleError(f, args) {
237
230
  try {
238
231
  return f.apply(this, args);
@@ -240,6 +233,13 @@ function handleError(f, args) {
240
233
  wasm.__wbindgen_exn_store(addHeapObject(e));
241
234
  }
242
235
  }
236
+
237
+ function _assertClass(instance, klass) {
238
+ if (!(instance instanceof klass)) {
239
+ throw new Error(`expected instance of ${klass.name}`);
240
+ }
241
+ return instance.ptr;
242
+ }
243
243
  /**
244
244
  * @param {string} json
245
245
  * @param {string} private_key
@@ -277,6 +277,51 @@ export function create_transaction_with_multiple_payments(public_keys, amounts,
277
277
  return takeObject(ret);
278
278
  }
279
279
 
280
+ /**
281
+ * @param {bigint} amt
282
+ * @param {bigint} bid
283
+ * @param {bigint} tid
284
+ * @param {bigint} sid
285
+ * @param {number} num
286
+ * @param {bigint} deposit
287
+ * @param {bigint} change
288
+ * @param {string} data
289
+ * @param {bigint} fee
290
+ * @param {string} recipient_public_key
291
+ * @param {string} nft_type
292
+ * @returns {Promise<WasmTransaction>}
293
+ */
294
+ export function create_bound_transaction(amt, bid, tid, sid, num, deposit, change, data, fee, recipient_public_key, nft_type) {
295
+ const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ const len0 = WASM_VECTOR_LEN;
297
+ const ret = wasm.create_bound_transaction(amt, bid, tid, sid, num, deposit, change, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
298
+ return takeObject(ret);
299
+ }
300
+
301
+ /**
302
+ * @param {bigint} amt
303
+ * @param {string} nft_id
304
+ * @param {string} data
305
+ * @param {string} recipient_public_key
306
+ * @returns {Promise<WasmTransaction>}
307
+ */
308
+ export function create_send_bound_transaction(amt, nft_id, data, recipient_public_key) {
309
+ const ptr0 = passStringToWasm0(nft_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
+ const len0 = WASM_VECTOR_LEN;
311
+ const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
312
+ const len1 = WASM_VECTOR_LEN;
313
+ const ret = wasm.create_send_bound_transaction(amt, ptr0, len0, ptr1, len1, addHeapObject(recipient_public_key));
314
+ return takeObject(ret);
315
+ }
316
+
317
+ /**
318
+ * @returns {Promise<Array<any>>}
319
+ */
320
+ export function get_nft_list() {
321
+ const ret = wasm.get_nft_list();
322
+ return takeObject(ret);
323
+ }
324
+
280
325
  /**
281
326
  * @returns {Promise<string>}
282
327
  */
@@ -626,7 +671,7 @@ export function produce_block_without_gt() {
626
671
  return takeObject(ret);
627
672
  }
628
673
 
629
- function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
674
+ function __wbg_adapter_415(arg0, arg1, arg2, arg3) {
630
675
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
631
676
  }
632
677
 
@@ -1543,6 +1588,76 @@ export class WasmHop {
1543
1588
  }
1544
1589
  }
1545
1590
 
1591
+ const WasmNFTFinalization = (typeof FinalizationRegistry === 'undefined')
1592
+ ? { register: () => {}, unregister: () => {} }
1593
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmnft_free(ptr >>> 0));
1594
+ /**
1595
+ */
1596
+ export class WasmNFT {
1597
+
1598
+ static __wrap(ptr) {
1599
+ ptr = ptr >>> 0;
1600
+ const obj = Object.create(WasmNFT.prototype);
1601
+ obj.__wbg_ptr = ptr;
1602
+ WasmNFTFinalization.register(obj, obj.__wbg_ptr, obj);
1603
+ return obj;
1604
+ }
1605
+
1606
+ __destroy_into_raw() {
1607
+ const ptr = this.__wbg_ptr;
1608
+ this.__wbg_ptr = 0;
1609
+ WasmNFTFinalization.unregister(this);
1610
+ return ptr;
1611
+ }
1612
+
1613
+ free() {
1614
+ const ptr = this.__destroy_into_raw();
1615
+ wasm.__wbg_wasmnft_free(ptr);
1616
+ }
1617
+ /**
1618
+ */
1619
+ constructor() {
1620
+ const ret = wasm.wasmnft_new();
1621
+ this.__wbg_ptr = ret >>> 0;
1622
+ return this;
1623
+ }
1624
+ /**
1625
+ * @returns {Uint8Array}
1626
+ */
1627
+ get slip1() {
1628
+ const ret = wasm.wasmnft_get_slip1(this.__wbg_ptr);
1629
+ return takeObject(ret);
1630
+ }
1631
+ /**
1632
+ * @returns {Uint8Array}
1633
+ */
1634
+ get slip2() {
1635
+ const ret = wasm.wasmnft_get_slip2(this.__wbg_ptr);
1636
+ return takeObject(ret);
1637
+ }
1638
+ /**
1639
+ * @returns {Uint8Array}
1640
+ */
1641
+ get slip3() {
1642
+ const ret = wasm.wasmnft_get_slip3(this.__wbg_ptr);
1643
+ return takeObject(ret);
1644
+ }
1645
+ /**
1646
+ * @returns {Uint8Array}
1647
+ */
1648
+ get id() {
1649
+ const ret = wasm.wasmnft_get_id(this.__wbg_ptr);
1650
+ return takeObject(ret);
1651
+ }
1652
+ /**
1653
+ * @returns {Uint8Array}
1654
+ */
1655
+ get tx_sig() {
1656
+ const ret = wasm.wasmnft_get_tx_sig(this.__wbg_ptr);
1657
+ return takeObject(ret);
1658
+ }
1659
+ }
1660
+
1546
1661
  const WasmPeerFinalization = (typeof FinalizationRegistry === 'undefined')
1547
1662
  ? { register: () => {}, unregister: () => {} }
1548
1663
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmpeer_free(ptr >>> 0));
@@ -2371,15 +2486,27 @@ async function __wbg_load(module, imports) {
2371
2486
  function __wbg_get_imports() {
2372
2487
  const imports = {};
2373
2488
  imports.wbg = {};
2489
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2490
+ takeObject(arg0);
2491
+ };
2374
2492
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2375
2493
  const ret = BigInt.asUintN(64, arg0);
2376
2494
  return addHeapObject(ret);
2377
2495
  };
2378
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2379
- takeObject(arg0);
2496
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2497
+ const ret = WasmTransaction.__wrap(arg0);
2498
+ return addHeapObject(ret);
2380
2499
  };
2381
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2382
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2500
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2501
+ const ret = WasmWallet.__wrap(arg0);
2502
+ return addHeapObject(ret);
2503
+ };
2504
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2505
+ const ret = WasmWalletSlip.__wrap(arg0);
2506
+ return addHeapObject(ret);
2507
+ };
2508
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2509
+ const ret = getStringFromWasm0(arg0, arg1);
2383
2510
  return addHeapObject(ret);
2384
2511
  };
2385
2512
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -2390,62 +2517,45 @@ function __wbg_get_imports() {
2390
2517
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2391
2518
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2392
2519
  };
2393
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2394
- const ret = getStringFromWasm0(arg0, arg1);
2395
- return addHeapObject(ret);
2396
- };
2397
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2398
- const ret = WasmBlock.__wrap(arg0);
2399
- return addHeapObject(ret);
2400
- };
2401
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2402
- const ret = WasmTransaction.__wrap(arg0);
2520
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2521
+ const ret = WasmNFT.__wrap(arg0);
2403
2522
  return addHeapObject(ret);
2404
2523
  };
2405
2524
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2406
2525
  const ret = WasmPeer.__wrap(arg0);
2407
2526
  return addHeapObject(ret);
2408
2527
  };
2409
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2410
- const ret = WasmWallet.__wrap(arg0);
2528
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2529
+ const ret = WasmBlockchain.__wrap(arg0);
2411
2530
  return addHeapObject(ret);
2412
2531
  };
2413
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2414
- const ret = WasmSlip.__wrap(arg0);
2532
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2533
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2415
2534
  return addHeapObject(ret);
2416
2535
  };
2417
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2418
- const ret = WasmBlockchain.__wrap(arg0);
2536
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2537
+ const ret = WasmSlip.__wrap(arg0);
2419
2538
  return addHeapObject(ret);
2420
2539
  };
2421
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2422
- const ret = WasmWalletSlip.__wrap(arg0);
2540
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2541
+ const ret = WasmBlock.__wrap(arg0);
2423
2542
  return addHeapObject(ret);
2424
2543
  };
2425
2544
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2426
2545
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2427
2546
  return addHeapObject(ret);
2428
2547
  };
2429
- imports.wbg.__wbindgen_is_object = function(arg0) {
2430
- const val = getObject(arg0);
2431
- const ret = typeof(val) === 'object' && val !== null;
2432
- return ret;
2433
- };
2434
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2435
- const ret = getObject(arg0) === undefined;
2436
- return ret;
2437
- };
2438
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2439
- const ret = getObject(arg0) in getObject(arg1);
2440
- return ret;
2548
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2549
+ const ret = WasmHop.__wrap(arg0);
2550
+ return addHeapObject(ret);
2441
2551
  };
2442
- imports.wbg.__wbg_sendmessage_723ae5ae445e3f2e = function(arg0, arg1) {
2552
+ imports.wbg.__wbg_sendmessage_3d23b41c04d78a07 = function(arg0, arg1) {
2443
2553
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2444
2554
  };
2445
- imports.wbg.__wbg_sendmessagetoall_ae2f52ae4e0daa29 = function(arg0, arg1) {
2555
+ imports.wbg.__wbg_sendmessagetoall_fe2bd7f0858abd6d = function(arg0, arg1) {
2446
2556
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2447
2557
  };
2448
- imports.wbg.__wbg_connecttopeer_622a836776abcf6f = function() { return handleError(function (arg0, arg1, arg2) {
2558
+ imports.wbg.__wbg_connecttopeer_b6a1e227495b1cb1 = function() { return handleError(function (arg0, arg1, arg2) {
2449
2559
  let deferred0_0;
2450
2560
  let deferred0_1;
2451
2561
  try {
@@ -2457,11 +2567,11 @@ function __wbg_get_imports() {
2457
2567
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2458
2568
  }
2459
2569
  }, arguments) };
2460
- imports.wbg.__wbg_disconnectfrompeer_cf4c6a20e6b994ff = function() { return handleError(function (arg0) {
2570
+ imports.wbg.__wbg_disconnectfrompeer_0d34aac963138f72 = function() { return handleError(function (arg0) {
2461
2571
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2462
2572
  return addHeapObject(ret);
2463
2573
  }, arguments) };
2464
- imports.wbg.__wbg_fetchblockfrompeer_56858a5699cf8a97 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2574
+ imports.wbg.__wbg_fetchblockfrompeer_b9ae42dda9e9a33c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2465
2575
  let deferred0_0;
2466
2576
  let deferred0_1;
2467
2577
  try {
@@ -2473,7 +2583,7 @@ function __wbg_get_imports() {
2473
2583
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2474
2584
  }
2475
2585
  }, arguments) };
2476
- imports.wbg.__wbg_writevalue_76b29f55df8bff9f = function(arg0, arg1, arg2) {
2586
+ imports.wbg.__wbg_writevalue_7e94b66b64380b4b = function(arg0, arg1, arg2) {
2477
2587
  let deferred0_0;
2478
2588
  let deferred0_1;
2479
2589
  try {
@@ -2484,7 +2594,7 @@ function __wbg_get_imports() {
2484
2594
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2485
2595
  }
2486
2596
  };
2487
- imports.wbg.__wbg_appendvalue_57ffee5de06647d6 = function(arg0, arg1, arg2) {
2597
+ imports.wbg.__wbg_appendvalue_b4c7e2a7d7763674 = function(arg0, arg1, arg2) {
2488
2598
  let deferred0_0;
2489
2599
  let deferred0_1;
2490
2600
  try {
@@ -2495,7 +2605,7 @@ function __wbg_get_imports() {
2495
2605
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2496
2606
  }
2497
2607
  };
2498
- imports.wbg.__wbg_flushdata_351471dabe52ef2a = function(arg0, arg1) {
2608
+ imports.wbg.__wbg_flushdata_4b9fbaa4569e214e = function(arg0, arg1) {
2499
2609
  let deferred0_0;
2500
2610
  let deferred0_1;
2501
2611
  try {
@@ -2506,7 +2616,7 @@ function __wbg_get_imports() {
2506
2616
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2507
2617
  }
2508
2618
  };
2509
- imports.wbg.__wbg_readvalue_f5ed47242b009240 = function() { return handleError(function (arg0, arg1) {
2619
+ imports.wbg.__wbg_readvalue_37267595302dac7b = function() { return handleError(function (arg0, arg1) {
2510
2620
  let deferred0_0;
2511
2621
  let deferred0_1;
2512
2622
  try {
@@ -2518,11 +2628,11 @@ function __wbg_get_imports() {
2518
2628
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2519
2629
  }
2520
2630
  }, arguments) };
2521
- imports.wbg.__wbg_loadblockfilelist_39a7aae64bebd183 = function() { return handleError(function () {
2631
+ imports.wbg.__wbg_loadblockfilelist_ac53379861b10690 = function() { return handleError(function () {
2522
2632
  const ret = MsgHandler.load_block_file_list();
2523
2633
  return addHeapObject(ret);
2524
2634
  }, arguments) };
2525
- imports.wbg.__wbg_isexistingfile_8f7df2c92038c5c0 = function() { return handleError(function (arg0, arg1) {
2635
+ imports.wbg.__wbg_isexistingfile_6e4609e4e910bc4e = function() { return handleError(function (arg0, arg1) {
2526
2636
  let deferred0_0;
2527
2637
  let deferred0_1;
2528
2638
  try {
@@ -2534,7 +2644,7 @@ function __wbg_get_imports() {
2534
2644
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2535
2645
  }
2536
2646
  }, arguments) };
2537
- imports.wbg.__wbg_removevalue_8cbfd80603f8ca45 = function() { return handleError(function (arg0, arg1) {
2647
+ imports.wbg.__wbg_removevalue_7e0c65889c574886 = function() { return handleError(function (arg0, arg1) {
2538
2648
  let deferred0_0;
2539
2649
  let deferred0_1;
2540
2650
  try {
@@ -2546,7 +2656,7 @@ function __wbg_get_imports() {
2546
2656
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2547
2657
  }
2548
2658
  }, arguments) };
2549
- imports.wbg.__wbg_ensureblockdirectoryexists_ca2dd705a0559dc3 = function() { return handleError(function (arg0, arg1) {
2659
+ imports.wbg.__wbg_ensureblockdirectoryexists_fe0c297650505aac = function() { return handleError(function (arg0, arg1) {
2550
2660
  let deferred0_0;
2551
2661
  let deferred0_1;
2552
2662
  try {
@@ -2557,16 +2667,16 @@ function __wbg_get_imports() {
2557
2667
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2558
2668
  }
2559
2669
  }, arguments) };
2560
- imports.wbg.__wbg_processapicall_88b7a2ced812a0ba = function(arg0, arg1, arg2) {
2670
+ imports.wbg.__wbg_processapicall_427a8591628d3d94 = function(arg0, arg1, arg2) {
2561
2671
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2562
2672
  };
2563
- imports.wbg.__wbg_processapisuccess_a64bdba2deee7538 = function(arg0, arg1, arg2) {
2673
+ imports.wbg.__wbg_processapisuccess_51a61714a246ac5d = function(arg0, arg1, arg2) {
2564
2674
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2565
2675
  };
2566
- imports.wbg.__wbg_processapierror_e1089f7cb683ca63 = function(arg0, arg1, arg2) {
2676
+ imports.wbg.__wbg_processapierror_16203251a004e766 = function(arg0, arg1, arg2) {
2567
2677
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2568
2678
  };
2569
- imports.wbg.__wbg_sendinterfaceevent_26318639ca041fb2 = function(arg0, arg1, arg2, arg3, arg4) {
2679
+ imports.wbg.__wbg_sendinterfaceevent_8e0144ebca5ae3b8 = function(arg0, arg1, arg2, arg3, arg4) {
2570
2680
  let deferred0_0;
2571
2681
  let deferred0_1;
2572
2682
  let deferred1_0;
@@ -2582,7 +2692,7 @@ function __wbg_get_imports() {
2582
2692
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2583
2693
  }
2584
2694
  };
2585
- imports.wbg.__wbg_sendblocksuccess_d67a76ebbb3a9ae5 = function(arg0, arg1, arg2) {
2695
+ imports.wbg.__wbg_sendblocksuccess_b0923779901a2cdf = function(arg0, arg1, arg2) {
2586
2696
  let deferred0_0;
2587
2697
  let deferred0_1;
2588
2698
  try {
@@ -2593,10 +2703,10 @@ function __wbg_get_imports() {
2593
2703
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2594
2704
  }
2595
2705
  };
2596
- imports.wbg.__wbg_sendwalletupdate_492cabfbc2e1cb23 = function() {
2706
+ imports.wbg.__wbg_sendwalletupdate_ddf432a548c032b8 = function() {
2597
2707
  MsgHandler.send_wallet_update();
2598
2708
  };
2599
- imports.wbg.__wbg_sendnewversionalert_7d3ffc4d7d3caf79 = function(arg0, arg1, arg2) {
2709
+ imports.wbg.__wbg_sendnewversionalert_7b50f28d3be53507 = function(arg0, arg1, arg2) {
2600
2710
  let deferred0_0;
2601
2711
  let deferred0_1;
2602
2712
  try {
@@ -2607,16 +2717,16 @@ function __wbg_get_imports() {
2607
2717
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2608
2718
  }
2609
2719
  };
2610
- imports.wbg.__wbg_sendblockfetchstatusevent_c58ce82ce2c258da = function(arg0) {
2720
+ imports.wbg.__wbg_sendblockfetchstatusevent_8b744a7350e5617a = function(arg0) {
2611
2721
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2612
2722
  };
2613
- imports.wbg.__wbg_savewallet_767b6b2498ba2b65 = function() {
2723
+ imports.wbg.__wbg_savewallet_f2cec144f42ed9cf = function() {
2614
2724
  MsgHandler.save_wallet();
2615
2725
  };
2616
- imports.wbg.__wbg_loadwallet_65f265c5a8709226 = function() {
2726
+ imports.wbg.__wbg_loadwallet_bbb1d09f1c6ceb87 = function() {
2617
2727
  MsgHandler.load_wallet();
2618
2728
  };
2619
- imports.wbg.__wbg_getmyservices_7f2915bf49a11afe = function() {
2729
+ imports.wbg.__wbg_getmyservices_1f4030bad2ab1f01 = function() {
2620
2730
  const ret = MsgHandler.get_my_services();
2621
2731
  _assertClass(ret, WasmPeerServiceList);
2622
2732
  var ptr1 = ret.__destroy_into_raw();
@@ -2626,9 +2736,18 @@ function __wbg_get_imports() {
2626
2736
  const ret = WasmPeerService.__wrap(arg0);
2627
2737
  return addHeapObject(ret);
2628
2738
  };
2629
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2630
- const ret = WasmHop.__wrap(arg0);
2631
- return addHeapObject(ret);
2739
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2740
+ const val = getObject(arg0);
2741
+ const ret = typeof(val) === 'object' && val !== null;
2742
+ return ret;
2743
+ };
2744
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2745
+ const ret = getObject(arg0) === undefined;
2746
+ return ret;
2747
+ };
2748
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2749
+ const ret = getObject(arg0) in getObject(arg1);
2750
+ return ret;
2632
2751
  };
2633
2752
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2634
2753
  const ret = getObject(arg0) == getObject(arg1);
@@ -2852,7 +2971,7 @@ function __wbg_get_imports() {
2852
2971
  const a = state0.a;
2853
2972
  state0.a = 0;
2854
2973
  try {
2855
- return __wbg_adapter_404(a, state0.b, arg0, arg1);
2974
+ return __wbg_adapter_415(a, state0.b, arg0, arg1);
2856
2975
  } finally {
2857
2976
  state0.a = a;
2858
2977
  }
@@ -2933,8 +3052,8 @@ function __wbg_get_imports() {
2933
3052
  const ret = wasm.memory;
2934
3053
  return addHeapObject(ret);
2935
3054
  };
2936
- imports.wbg.__wbindgen_closure_wrapper1300 = function(arg0, arg1, arg2) {
2937
- const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
3055
+ imports.wbg.__wbindgen_closure_wrapper1350 = function(arg0, arg1, arg2) {
3056
+ const ret = makeMutClosure(arg0, arg1, 495, __wbg_adapter_38);
2938
3057
  return addHeapObject(ret);
2939
3058
  };
2940
3059
 
Binary file