saito-wasm 0.2.174 → 0.2.175

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-ae65b4fbc9a49f9c/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-c6993c19012bb0e6/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -8,23 +8,7 @@ heap.push(undefined, null, true, false);
8
8
 
9
9
  function getObject(idx) { return heap[idx]; }
10
10
 
11
- let heap_next = heap.length;
12
-
13
- function dropObject(idx) {
14
- if (idx < 132) return;
15
- heap[idx] = heap_next;
16
- heap_next = idx;
17
- }
18
-
19
- function takeObject(idx) {
20
- const ret = getObject(idx);
21
- dropObject(idx);
22
- return ret;
23
- }
24
-
25
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
-
27
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
11
+ let WASM_VECTOR_LEN = 0;
28
12
 
29
13
  let cachedUint8Memory0 = null;
30
14
 
@@ -35,22 +19,6 @@ function getUint8Memory0() {
35
19
  return cachedUint8Memory0;
36
20
  }
37
21
 
38
- function getStringFromWasm0(ptr, len) {
39
- ptr = ptr >>> 0;
40
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
- }
42
-
43
- function addHeapObject(obj) {
44
- if (heap_next === heap.length) heap.push(heap.length + 1);
45
- const idx = heap_next;
46
- heap_next = heap[idx];
47
-
48
- heap[idx] = obj;
49
- return idx;
50
- }
51
-
52
- let WASM_VECTOR_LEN = 0;
53
-
54
22
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
55
23
 
56
24
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,6 +86,38 @@ function getInt32Memory0() {
118
86
  return cachedInt32Memory0;
119
87
  }
120
88
 
89
+ let heap_next = heap.length;
90
+
91
+ function dropObject(idx) {
92
+ if (idx < 132) return;
93
+ heap[idx] = heap_next;
94
+ heap_next = idx;
95
+ }
96
+
97
+ function takeObject(idx) {
98
+ const ret = getObject(idx);
99
+ dropObject(idx);
100
+ return ret;
101
+ }
102
+
103
+ function addHeapObject(obj) {
104
+ if (heap_next === heap.length) heap.push(heap.length + 1);
105
+ const idx = heap_next;
106
+ heap_next = heap[idx];
107
+
108
+ heap[idx] = obj;
109
+ return idx;
110
+ }
111
+
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() {
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_38(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18f9d53151d93e96(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f20d323127f6aa2(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function _assertClass(instance, klass) {
@@ -241,96 +241,91 @@ function addBorrowedObject(obj) {
241
241
  return stack_pointer;
242
242
  }
243
243
  /**
244
- * @param {Uint8Array} buffer
245
- * @param {Uint8Array} hash
246
- * @param {bigint} block_id
247
- * @param {bigint} peer_index
248
- * @returns {Promise<void>}
244
+ * @returns {Promise<string>}
249
245
  */
250
- export function process_fetched_block(buffer, hash, block_id, peer_index) {
251
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
246
+ export function get_latest_block_hash() {
247
+ const ret = wasm.get_latest_block_hash();
252
248
  return takeObject(ret);
253
249
  }
254
250
 
255
251
  /**
256
- * @param {Uint8Array} buffer
257
- * @param {number} msg_index
258
- * @param {bigint} peer_index
259
- * @returns {Promise<void>}
252
+ * @param {string} public_key
253
+ * @returns {Promise<Array<any>>}
260
254
  */
261
- export function send_api_call(buffer, msg_index, peer_index) {
262
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
255
+ export function get_account_slips(public_key) {
256
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
263
257
  return takeObject(ret);
264
258
  }
265
259
 
266
260
  /**
267
- * @param {string} public_key
268
- * @param {bigint} amount
269
- * @param {bigint} fee
270
- * @param {boolean} force_merge
271
- * @returns {Promise<WasmTransaction>}
261
+ * @param {bigint} peer_index
262
+ * @returns {Promise<void>}
272
263
  */
273
- export function create_transaction(public_key, amount, fee, force_merge) {
274
- const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
264
+ export function process_peer_disconnection(peer_index) {
265
+ const ret = wasm.process_peer_disconnection(peer_index);
275
266
  return takeObject(ret);
276
267
  }
277
268
 
278
269
  /**
279
- * @param {number} major
280
- * @param {number} minor
281
- * @param {number} patch
282
- * @returns {Promise<void>}
270
+ * @returns {Promise<any>}
283
271
  */
284
- export function set_wallet_version(major, minor, patch) {
285
- const ret = wasm.set_wallet_version(major, minor, patch);
272
+ export function get_confirmations() {
273
+ const ret = wasm.get_confirmations();
286
274
  return takeObject(ret);
287
275
  }
288
276
 
289
277
  /**
290
- * @returns {Promise<string>}
278
+ * @param {bigint} amt
279
+ * @param {string} slip1_utxo_key
280
+ * @param {string} slip2_utxo_key
281
+ * @param {string} slip3_utxo_key
282
+ * @param {string} recipient_public_key
283
+ * @param {Uint8Array} tx_msg
284
+ * @returns {Promise<WasmTransaction>}
291
285
  */
292
- export function get_stats() {
293
- const ret = wasm.get_stats();
286
+ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
287
+ const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
294
288
  return takeObject(ret);
295
289
  }
296
290
 
297
291
  /**
298
- * @returns {Promise<string>}
292
+ * @param {string} config_json
293
+ * @param {string} private_key
294
+ * @param {number} log_level_num
295
+ * @param {bigint} hasten_multiplier
296
+ * @param {boolean} delete_old_blocks
297
+ * @returns {Promise<any>}
299
298
  */
300
- export function get_peer_stats() {
301
- const ret = wasm.get_peer_stats();
299
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
300
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
302
301
  return takeObject(ret);
303
302
  }
304
303
 
305
304
  /**
306
- * @param {string} key
307
- * @returns {boolean}
305
+ * @param {WasmTransaction} tx
306
+ * @returns {Promise<void>}
308
307
  */
309
- export function is_valid_public_key(key) {
310
- const ret = wasm.is_valid_public_key(addHeapObject(key));
311
- return ret !== 0;
308
+ export function propagate_transaction(tx) {
309
+ _assertClass(tx, WasmTransaction);
310
+ const ret = wasm.propagate_transaction(tx.__wbg_ptr);
311
+ return takeObject(ret);
312
312
  }
313
313
 
314
314
  /**
315
- * @param {bigint} amt
316
- * @param {string} slip1_utxo_key
317
- * @param {string} slip2_utxo_key
318
- * @param {string} slip3_utxo_key
319
- * @param {string} recipient_public_key
320
- * @param {Uint8Array} tx_msg
321
- * @returns {Promise<WasmTransaction>}
315
+ * @param {Array<any>} keys
316
+ * @returns {Promise<WasmBalanceSnapshot>}
322
317
  */
323
- export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
324
- const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
318
+ export function get_balance_snapshot(keys) {
319
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
325
320
  return takeObject(ret);
326
321
  }
327
322
 
328
323
  /**
329
- * @param {bigint} peer_index
330
- * @returns {Promise<void>}
324
+ * @param {Uint8Array} buffer
325
+ * @returns {string}
331
326
  */
332
- export function process_peer_disconnection(peer_index) {
333
- const ret = wasm.process_peer_disconnection(peer_index);
327
+ export function hash(buffer) {
328
+ const ret = wasm.hash(addHeapObject(buffer));
334
329
  return takeObject(ret);
335
330
  }
336
331
 
@@ -346,6 +341,51 @@ export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
346
341
  return takeObject(ret);
347
342
  }
348
343
 
344
+ /**
345
+ * @param {Uint8Array} buffer
346
+ * @param {Uint8Array} hash
347
+ * @param {bigint} block_id
348
+ * @param {bigint} peer_index
349
+ * @returns {Promise<void>}
350
+ */
351
+ export function process_fetched_block(buffer, hash, block_id, peer_index) {
352
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
353
+ return takeObject(ret);
354
+ }
355
+
356
+ /**
357
+ * @param {Uint8Array} hash
358
+ * @param {bigint} block_id
359
+ * @param {bigint} peer_index
360
+ * @returns {Promise<void>}
361
+ */
362
+ export function process_failed_block_fetch(hash, block_id, peer_index) {
363
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
364
+ return takeObject(ret);
365
+ }
366
+
367
+ /**
368
+ * @param {number} major
369
+ * @param {number} minor
370
+ * @param {number} patch
371
+ * @returns {Promise<void>}
372
+ */
373
+ export function set_wallet_version(major, minor, patch) {
374
+ const ret = wasm.set_wallet_version(major, minor, patch);
375
+ return takeObject(ret);
376
+ }
377
+
378
+ /**
379
+ * @param {WasmBalanceSnapshot} snapshot
380
+ * @returns {Promise<void>}
381
+ */
382
+ export function update_from_balance_snapshot(snapshot) {
383
+ _assertClass(snapshot, WasmBalanceSnapshot);
384
+ var ptr0 = snapshot.__destroy_into_raw();
385
+ const ret = wasm.update_from_balance_snapshot(ptr0);
386
+ return takeObject(ret);
387
+ }
388
+
349
389
  /**
350
390
  * @param {string} private_key
351
391
  * @returns {string}
@@ -367,51 +407,48 @@ export function generate_public_key(private_key) {
367
407
  }
368
408
 
369
409
  /**
370
- * @param {bigint} peer_index
410
+ * @param {Uint8Array} buffer
411
+ * @param {string} signature
371
412
  * @param {string} public_key
372
- * @returns {Promise<void>}
413
+ * @returns {boolean}
373
414
  */
374
- export function process_stun_peer(peer_index, public_key) {
375
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
376
- return takeObject(ret);
415
+ export function verify_signature(buffer, signature, public_key) {
416
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
417
+ return ret !== 0;
377
418
  }
378
419
 
379
420
  /**
380
- * @param {Array<any>} keys
381
- * @returns {Promise<WasmBalanceSnapshot>}
421
+ * @param {Uint8Array} buffer
422
+ * @param {bigint} peer_index
423
+ * @returns {Promise<void>}
382
424
  */
383
- export function get_balance_snapshot(keys) {
384
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
425
+ export function process_msg_buffer_from_peer(buffer, peer_index) {
426
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
385
427
  return takeObject(ret);
386
428
  }
387
429
 
388
430
  /**
389
- * @returns {Promise<WasmWallet>}
431
+ * @param {bigint} threshold
432
+ * @returns {Promise<void>}
390
433
  */
391
- export function get_wallet() {
392
- const ret = wasm.get_wallet();
434
+ export function write_issuance_file(threshold) {
435
+ const ret = wasm.write_issuance_file(threshold);
393
436
  return takeObject(ret);
394
437
  }
395
438
 
396
439
  /**
397
- * @param {string} config_json
398
- * @param {string} private_key
399
- * @param {number} log_level_num
400
- * @param {bigint} hasten_multiplier
401
- * @param {boolean} delete_old_blocks
402
- * @returns {Promise<any>}
440
+ * @returns {Promise<bigint>}
403
441
  */
404
- export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
405
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
442
+ export function get_next_peer_index() {
443
+ const ret = wasm.get_next_peer_index();
406
444
  return takeObject(ret);
407
445
  }
408
446
 
409
447
  /**
410
- * @param {bigint} peer_index
411
- * @returns {Promise<void>}
448
+ * @returns {Promise<string>}
412
449
  */
413
- export function remove_stun_peer(peer_index) {
414
- const ret = wasm.remove_stun_peer(peer_index);
450
+ export function get_congestion_stats() {
451
+ const ret = wasm.get_congestion_stats();
415
452
  return takeObject(ret);
416
453
  }
417
454
 
@@ -430,69 +467,55 @@ export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_pu
430
467
  }
431
468
 
432
469
  /**
433
- * @param {string} slip1_utxo_key
434
- * @param {string} slip2_utxo_key
435
- * @param {string} slip3_utxo_key
436
- * @returns {Promise<WasmTransaction>}
470
+ * @returns {Promise<Array<any>>}
437
471
  */
438
- export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
439
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
472
+ export function get_mempool_txs() {
473
+ const ret = wasm.get_mempool_txs();
440
474
  return takeObject(ret);
441
475
  }
442
476
 
443
477
  /**
444
- * @param {bigint} current_time
445
478
  * @returns {Promise<void>}
446
479
  */
447
- export function process_stat_interval(current_time) {
448
- const ret = wasm.process_stat_interval(current_time);
449
- return takeObject(ret);
450
- }
451
-
452
- /**
453
- * @param {Array<any>} public_keys
454
- * @param {BigUint64Array} amounts
455
- * @param {bigint} fee
456
- * @param {boolean} _force_merge
457
- * @returns {Promise<WasmTransaction>}
458
- */
459
- export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
460
- const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
480
+ export function start_from_received_ghost_chain() {
481
+ const ret = wasm.start_from_received_ghost_chain();
461
482
  return takeObject(ret);
462
483
  }
463
484
 
464
485
  /**
465
- * @returns {Promise<bigint>}
486
+ * @param {bigint} duration_in_ms
487
+ * @returns {Promise<void>}
466
488
  */
467
- export function get_next_peer_index() {
468
- const ret = wasm.get_next_peer_index();
489
+ export function process_timer_event(duration_in_ms) {
490
+ const ret = wasm.process_timer_event(duration_in_ms);
469
491
  return takeObject(ret);
470
492
  }
471
493
 
472
494
  /**
473
- * @param {bigint} duration_in_ms
495
+ * @param {bigint} peer_index
496
+ * @param {string} ip
474
497
  * @returns {Promise<void>}
475
498
  */
476
- export function process_timer_event(duration_in_ms) {
477
- const ret = wasm.process_timer_event(duration_in_ms);
499
+ export function process_new_peer(peer_index, ip) {
500
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
478
501
  return takeObject(ret);
479
502
  }
480
503
 
481
504
  /**
482
- * @returns {Promise<any>}
505
+ * @param {bigint} current_time
506
+ * @returns {Promise<void>}
483
507
  */
484
- export function get_confirmations() {
485
- const ret = wasm.get_confirmations();
508
+ export function process_stat_interval(current_time) {
509
+ const ret = wasm.process_stat_interval(current_time);
486
510
  return takeObject(ret);
487
511
  }
488
512
 
489
513
  /**
490
- * @param {Uint8Array} buffer
491
514
  * @param {bigint} peer_index
492
- * @returns {Promise<void>}
515
+ * @returns {Promise<WasmPeer | undefined>}
493
516
  */
494
- export function process_msg_buffer_from_peer(buffer, peer_index) {
495
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
517
+ export function get_peer(peer_index) {
518
+ const ret = wasm.get_peer(peer_index);
496
519
  return takeObject(ret);
497
520
  }
498
521
 
@@ -502,16 +525,20 @@ export function process_msg_buffer_from_peer(buffer, peer_index) {
502
525
  * @param {bigint} peer_index
503
526
  * @returns {Promise<void>}
504
527
  */
505
- export function send_api_success(buffer, msg_index, peer_index) {
506
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
528
+ export function send_api_call(buffer, msg_index, peer_index) {
529
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
507
530
  return takeObject(ret);
508
531
  }
509
532
 
510
533
  /**
511
- * @returns {Promise<Array<any>>}
534
+ * @param {string} slip1_utxo_key
535
+ * @param {string} slip2_utxo_key
536
+ * @param {string} slip3_utxo_key
537
+ * @param {Uint8Array} tx_msg
538
+ * @returns {Promise<WasmTransaction>}
512
539
  */
513
- export function get_nft_list() {
514
- const ret = wasm.get_nft_list();
540
+ export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
541
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
515
542
  return takeObject(ret);
516
543
  }
517
544
 
@@ -537,84 +564,57 @@ export function sign_buffer(buffer, private_key) {
537
564
  }
538
565
 
539
566
  /**
540
- * @param {WasmBalanceSnapshot} snapshot
541
- * @returns {Promise<void>}
542
- */
543
- export function update_from_balance_snapshot(snapshot) {
544
- _assertClass(snapshot, WasmBalanceSnapshot);
545
- var ptr0 = snapshot.__destroy_into_raw();
546
- const ret = wasm.update_from_balance_snapshot(ptr0);
547
- return takeObject(ret);
548
- }
549
-
550
- /**
551
- * @param {WasmTransaction} tx
552
- * @returns {Promise<void>}
553
- */
554
- export function propagate_transaction(tx) {
555
- _assertClass(tx, WasmTransaction);
556
- const ret = wasm.propagate_transaction(tx.__wbg_ptr);
557
- return takeObject(ret);
558
- }
559
-
560
- /**
561
- * @returns {Promise<string>}
567
+ * @param {string} key
568
+ * @returns {boolean}
562
569
  */
563
- export function get_latest_block_hash() {
564
- const ret = wasm.get_latest_block_hash();
565
- return takeObject(ret);
570
+ export function is_valid_public_key(key) {
571
+ const ret = wasm.is_valid_public_key(addHeapObject(key));
572
+ return ret !== 0;
566
573
  }
567
574
 
568
575
  /**
569
- * @returns {Promise<boolean>}
576
+ * @returns {Promise<WasmWallet>}
570
577
  */
571
- export function produce_block_with_gt() {
572
- const ret = wasm.produce_block_with_gt();
578
+ export function get_wallet() {
579
+ const ret = wasm.get_wallet();
573
580
  return takeObject(ret);
574
581
  }
575
582
 
576
583
  /**
577
- * @returns {Promise<boolean>}
584
+ * @param {string} block_hash
585
+ * @returns {Promise<WasmBlock>}
578
586
  */
579
- export function produce_block_without_gt() {
580
- const ret = wasm.produce_block_without_gt();
587
+ export function get_block(block_hash) {
588
+ const ret = wasm.get_block(addHeapObject(block_hash));
581
589
  return takeObject(ret);
582
590
  }
583
591
 
584
592
  /**
585
- * @param {Uint8Array} buffer
586
- * @param {string} signature
593
+ * @param {bigint} peer_index
587
594
  * @param {string} public_key
588
- * @returns {boolean}
589
- */
590
- export function verify_signature(buffer, signature, public_key) {
591
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
592
- return ret !== 0;
593
- }
594
-
595
- /**
596
- * @returns {string}
595
+ * @returns {Promise<void>}
597
596
  */
598
- export function generate_private_key() {
599
- const ret = wasm.generate_private_key();
597
+ export function process_stun_peer(peer_index, public_key) {
598
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
600
599
  return takeObject(ret);
601
600
  }
602
601
 
603
602
  /**
604
- * @param {bigint} threshold
603
+ * @param {Uint8Array} buffer
604
+ * @param {number} msg_index
605
+ * @param {bigint} peer_index
605
606
  * @returns {Promise<void>}
606
607
  */
607
- export function write_issuance_file(threshold) {
608
- const ret = wasm.write_issuance_file(threshold);
608
+ export function send_api_error(buffer, msg_index, peer_index) {
609
+ const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
609
610
  return takeObject(ret);
610
611
  }
611
612
 
612
613
  /**
613
- * @param {Uint8Array} buffer
614
- * @returns {string}
614
+ * @returns {Promise<WasmBlockchain>}
615
615
  */
616
- export function hash(buffer) {
617
- const ret = wasm.hash(addHeapObject(buffer));
616
+ export function get_blockchain() {
617
+ const ret = wasm.get_blockchain();
618
618
  return takeObject(ret);
619
619
  }
620
620
 
@@ -629,51 +629,52 @@ export function disable_producing_blocks_by_timer() {
629
629
  /**
630
630
  * @returns {Promise<string>}
631
631
  */
632
- export function get_congestion_stats() {
633
- const ret = wasm.get_congestion_stats();
632
+ export function get_stats() {
633
+ const ret = wasm.get_stats();
634
634
  return takeObject(ret);
635
635
  }
636
636
 
637
637
  /**
638
- * @param {Uint8Array} hash
639
- * @param {bigint} block_id
640
- * @param {bigint} peer_index
641
- * @returns {Promise<void>}
638
+ * @returns {Promise<Array<any>>}
642
639
  */
643
- export function process_failed_block_fetch(hash, block_id, peer_index) {
644
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
640
+ export function get_nft_list() {
641
+ const ret = wasm.get_nft_list();
645
642
  return takeObject(ret);
646
643
  }
647
644
 
648
645
  /**
649
- * @returns {Promise<WasmBlockchain>}
646
+ * @returns {Promise<Array<any>>}
650
647
  */
651
- export function get_blockchain() {
652
- const ret = wasm.get_blockchain();
648
+ export function get_peers() {
649
+ const ret = wasm.get_peers();
653
650
  return takeObject(ret);
654
651
  }
655
652
 
656
653
  /**
654
+ * @param {bigint} peer_index
657
655
  * @returns {Promise<void>}
658
656
  */
659
- export function start_from_received_ghost_chain() {
660
- const ret = wasm.start_from_received_ghost_chain();
657
+ export function remove_stun_peer(peer_index) {
658
+ const ret = wasm.remove_stun_peer(peer_index);
661
659
  return takeObject(ret);
662
660
  }
663
661
 
664
662
  /**
665
- * @returns {Promise<Array<any>>}
663
+ * @param {Uint8Array} buffer
664
+ * @param {number} msg_index
665
+ * @param {bigint} peer_index
666
+ * @returns {Promise<void>}
666
667
  */
667
- export function get_mempool_txs() {
668
- const ret = wasm.get_mempool_txs();
668
+ export function send_api_success(buffer, msg_index, peer_index) {
669
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
669
670
  return takeObject(ret);
670
671
  }
671
672
 
672
673
  /**
673
- * @returns {Promise<Array<any>>}
674
+ * @returns {Promise<boolean>}
674
675
  */
675
- export function get_peers() {
676
- const ret = wasm.get_peers();
676
+ export function produce_block_with_gt() {
677
+ const ret = wasm.produce_block_with_gt();
677
678
  return takeObject(ret);
678
679
  }
679
680
 
@@ -692,50 +693,50 @@ export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, s
692
693
  }
693
694
 
694
695
  /**
695
- * @param {string} public_key
696
- * @returns {Promise<Array<any>>}
696
+ * @returns {string}
697
697
  */
698
- export function get_account_slips(public_key) {
699
- const ret = wasm.get_account_slips(addHeapObject(public_key));
698
+ export function generate_private_key() {
699
+ const ret = wasm.generate_private_key();
700
700
  return takeObject(ret);
701
701
  }
702
702
 
703
703
  /**
704
- * @param {string} block_hash
705
- * @returns {Promise<WasmBlock>}
704
+ * @returns {Promise<string>}
706
705
  */
707
- export function get_block(block_hash) {
708
- const ret = wasm.get_block(addHeapObject(block_hash));
706
+ export function get_peer_stats() {
707
+ const ret = wasm.get_peer_stats();
709
708
  return takeObject(ret);
710
709
  }
711
710
 
712
711
  /**
713
- * @param {bigint} peer_index
714
- * @returns {Promise<WasmPeer | undefined>}
712
+ * @param {Array<any>} public_keys
713
+ * @param {BigUint64Array} amounts
714
+ * @param {bigint} fee
715
+ * @param {boolean} _force_merge
716
+ * @returns {Promise<WasmTransaction>}
715
717
  */
716
- export function get_peer(peer_index) {
717
- const ret = wasm.get_peer(peer_index);
718
+ export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
719
+ const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
718
720
  return takeObject(ret);
719
721
  }
720
722
 
721
723
  /**
722
- * @param {bigint} peer_index
723
- * @param {string} ip
724
- * @returns {Promise<void>}
724
+ * @param {string} public_key
725
+ * @param {bigint} amount
726
+ * @param {bigint} fee
727
+ * @param {boolean} force_merge
728
+ * @returns {Promise<WasmTransaction>}
725
729
  */
726
- export function process_new_peer(peer_index, ip) {
727
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
730
+ export function create_transaction(public_key, amount, fee, force_merge) {
731
+ const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
728
732
  return takeObject(ret);
729
733
  }
730
734
 
731
735
  /**
732
- * @param {Uint8Array} buffer
733
- * @param {number} msg_index
734
- * @param {bigint} peer_index
735
- * @returns {Promise<void>}
736
+ * @returns {Promise<boolean>}
736
737
  */
737
- export function send_api_error(buffer, msg_index, peer_index) {
738
- const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
738
+ export function produce_block_without_gt() {
739
+ const ret = wasm.produce_block_without_gt();
739
740
  return takeObject(ret);
740
741
  }
741
742
 
@@ -746,8 +747,8 @@ function handleError(f, args) {
746
747
  wasm.__wbindgen_exn_store(addHeapObject(e));
747
748
  }
748
749
  }
749
- function __wbg_adapter_410(arg0, arg1, arg2, arg3) {
750
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h58ba5fc31ee09770(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
750
+ function __wbg_adapter_454(arg0, arg1, arg2, arg3) {
751
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h67b6352f6b82f267(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
751
752
  }
752
753
 
753
754
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2696,52 +2697,56 @@ async function __wbg_load(module, imports) {
2696
2697
  function __wbg_get_imports() {
2697
2698
  const imports = {};
2698
2699
  imports.wbg = {};
2700
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2701
+ const obj = getObject(arg1);
2702
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2703
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2704
+ var len1 = WASM_VECTOR_LEN;
2705
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2706
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2707
+ };
2699
2708
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2700
2709
  takeObject(arg0);
2701
2710
  };
2702
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2703
- const ret = WasmNFT.__wrap(arg0);
2711
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2712
+ const ret = getObject(arg0);
2704
2713
  return addHeapObject(ret);
2705
2714
  };
2706
2715
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2707
2716
  const ret = getStringFromWasm0(arg0, arg1);
2708
2717
  return addHeapObject(ret);
2709
2718
  };
2710
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2711
- const ret = WasmTransaction.__wrap(arg0);
2719
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2720
+ const ret = WasmBlock.__wrap(arg0);
2712
2721
  return addHeapObject(ret);
2713
2722
  };
2714
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2715
- const ret = WasmPeer.__wrap(arg0);
2723
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2724
+ const ret = WasmTransaction.__wrap(arg0);
2716
2725
  return addHeapObject(ret);
2717
2726
  };
2718
2727
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2719
2728
  const ret = BigInt.asUintN(64, arg0);
2720
2729
  return addHeapObject(ret);
2721
2730
  };
2722
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2723
- const ret = getObject(arg0);
2724
- return addHeapObject(ret);
2725
- };
2726
2731
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2727
2732
  const ret = WasmWalletSlip.__wrap(arg0);
2728
2733
  return addHeapObject(ret);
2729
2734
  };
2730
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2731
- const ret = WasmBlock.__wrap(arg0);
2735
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2736
+ const ret = WasmWallet.__wrap(arg0);
2737
+ return addHeapObject(ret);
2738
+ };
2739
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2740
+ const ret = WasmNFT.__wrap(arg0);
2732
2741
  return addHeapObject(ret);
2733
2742
  };
2734
2743
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2735
2744
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2736
2745
  return addHeapObject(ret);
2737
2746
  };
2738
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2739
- const obj = getObject(arg1);
2740
- const ret = typeof(obj) === 'string' ? obj : undefined;
2741
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2742
- var len1 = WASM_VECTOR_LEN;
2743
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2744
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2747
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2748
+ const ret = WasmPeer.__wrap(arg0);
2749
+ return addHeapObject(ret);
2745
2750
  };
2746
2751
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2747
2752
  const ret = WasmSlip.__wrap(arg0);
@@ -2751,8 +2756,16 @@ function __wbg_get_imports() {
2751
2756
  const ret = WasmBlockchain.__wrap(arg0);
2752
2757
  return addHeapObject(ret);
2753
2758
  };
2754
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2755
- const ret = WasmWallet.__wrap(arg0);
2759
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2760
+ const ret = WasmHop.__wrap(arg0);
2761
+ return addHeapObject(ret);
2762
+ };
2763
+ imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2764
+ const ret = WasmPeerService.__wrap(arg0);
2765
+ return addHeapObject(ret);
2766
+ };
2767
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2768
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2756
2769
  return addHeapObject(ret);
2757
2770
  };
2758
2771
  imports.wbg.__wbindgen_is_object = function(arg0) {
@@ -2768,11 +2781,7 @@ function __wbg_get_imports() {
2768
2781
  const ret = getObject(arg0) in getObject(arg1);
2769
2782
  return ret;
2770
2783
  };
2771
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2772
- const ret = WasmHop.__wrap(arg0);
2773
- return addHeapObject(ret);
2774
- };
2775
- imports.wbg.__wbg_flushdata_69f5339cf155fcf4 = function(arg0, arg1) {
2784
+ imports.wbg.__wbg_flushdata_e95c407e1e0bc0ed = function(arg0, arg1) {
2776
2785
  let deferred0_0;
2777
2786
  let deferred0_1;
2778
2787
  try {
@@ -2783,7 +2792,7 @@ function __wbg_get_imports() {
2783
2792
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2784
2793
  }
2785
2794
  };
2786
- imports.wbg.__wbg_readvalue_db587e79e6f3fb9e = function() { return handleError(function (arg0, arg1) {
2795
+ imports.wbg.__wbg_readvalue_6ebbd343ed520a97 = function() { return handleError(function (arg0, arg1) {
2787
2796
  let deferred0_0;
2788
2797
  let deferred0_1;
2789
2798
  try {
@@ -2795,13 +2804,13 @@ function __wbg_get_imports() {
2795
2804
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2796
2805
  }
2797
2806
  }, arguments) };
2798
- imports.wbg.__wbg_loadwallet_9a8ac44bd0e449f2 = function() {
2807
+ imports.wbg.__wbg_loadwallet_4611bb91011ed68d = function() {
2799
2808
  MsgHandler.load_wallet();
2800
2809
  };
2801
- imports.wbg.__wbg_savewallet_08659aa41a3a3b8c = function() {
2810
+ imports.wbg.__wbg_savewallet_be5ed22d23a8d22b = function() {
2802
2811
  MsgHandler.save_wallet();
2803
2812
  };
2804
- imports.wbg.__wbg_writevalue_829d6afba3d7e073 = function(arg0, arg1, arg2) {
2813
+ imports.wbg.__wbg_writevalue_a7a3857c8de8fe9b = function(arg0, arg1, arg2) {
2805
2814
  let deferred0_0;
2806
2815
  let deferred0_1;
2807
2816
  try {
@@ -2812,7 +2821,7 @@ function __wbg_get_imports() {
2812
2821
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2813
2822
  }
2814
2823
  };
2815
- imports.wbg.__wbg_appendvalue_717ada2450cd8353 = function(arg0, arg1, arg2) {
2824
+ imports.wbg.__wbg_appendvalue_10c14942126ab54a = function(arg0, arg1, arg2) {
2816
2825
  let deferred0_0;
2817
2826
  let deferred0_1;
2818
2827
  try {
@@ -2823,7 +2832,7 @@ function __wbg_get_imports() {
2823
2832
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2824
2833
  }
2825
2834
  };
2826
- imports.wbg.__wbg_removevalue_5e61c5d5776e1642 = function() { return handleError(function (arg0, arg1) {
2835
+ imports.wbg.__wbg_removevalue_c76dfa9feb88807e = function() { return handleError(function (arg0, arg1) {
2827
2836
  let deferred0_0;
2828
2837
  let deferred0_1;
2829
2838
  try {
@@ -2835,10 +2844,10 @@ function __wbg_get_imports() {
2835
2844
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2836
2845
  }
2837
2846
  }, arguments) };
2838
- imports.wbg.__wbg_sendmessage_a2d8f51709ef90ba = function(arg0, arg1) {
2847
+ imports.wbg.__wbg_sendmessage_22f62139ce41353a = function(arg0, arg1) {
2839
2848
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2840
2849
  };
2841
- imports.wbg.__wbg_connecttopeer_044f65cc51be6b22 = function() { return handleError(function (arg0, arg1, arg2) {
2850
+ imports.wbg.__wbg_connecttopeer_6c04afe8364b7cf3 = function() { return handleError(function (arg0, arg1, arg2) {
2842
2851
  let deferred0_0;
2843
2852
  let deferred0_1;
2844
2853
  try {
@@ -2850,13 +2859,13 @@ function __wbg_get_imports() {
2850
2859
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2851
2860
  }
2852
2861
  }, arguments) };
2853
- imports.wbg.__wbg_getmyservices_1954474087b66484 = function() {
2862
+ imports.wbg.__wbg_getmyservices_d92480755161663e = function() {
2854
2863
  const ret = MsgHandler.get_my_services();
2855
2864
  _assertClass(ret, WasmPeerServiceList);
2856
2865
  var ptr1 = ret.__destroy_into_raw();
2857
2866
  return ptr1;
2858
2867
  };
2859
- imports.wbg.__wbg_isexistingfile_b160b225b0ebf317 = function() { return handleError(function (arg0, arg1) {
2868
+ imports.wbg.__wbg_isexistingfile_85c80475e06ba07f = function() { return handleError(function (arg0, arg1) {
2860
2869
  let deferred0_0;
2861
2870
  let deferred0_1;
2862
2871
  try {
@@ -2868,27 +2877,27 @@ function __wbg_get_imports() {
2868
2877
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2869
2878
  }
2870
2879
  }, arguments) };
2871
- imports.wbg.__wbg_processapicall_a09661040af24e29 = function(arg0, arg1, arg2) {
2880
+ imports.wbg.__wbg_processapicall_1f6a45361c80a202 = function(arg0, arg1, arg2) {
2872
2881
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2873
2882
  };
2874
- imports.wbg.__wbg_processapierror_c889a2b7d06c4549 = function(arg0, arg1, arg2) {
2883
+ imports.wbg.__wbg_processapierror_5be3075a9e01e034 = function(arg0, arg1, arg2) {
2875
2884
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2876
2885
  };
2877
- imports.wbg.__wbg_processapisuccess_f458fbe6c019cc75 = function(arg0, arg1, arg2) {
2886
+ imports.wbg.__wbg_processapisuccess_c356c59e3b2ab942 = function(arg0, arg1, arg2) {
2878
2887
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2879
2888
  };
2880
- imports.wbg.__wbg_sendmessagetoall_caeb7aa562fdcf58 = function(arg0, arg1) {
2889
+ imports.wbg.__wbg_sendmessagetoall_2ed176436bb0fafc = function(arg0, arg1) {
2881
2890
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2882
2891
  };
2883
- imports.wbg.__wbg_disconnectfrompeer_77faa63c7da71011 = function() { return handleError(function (arg0) {
2892
+ imports.wbg.__wbg_disconnectfrompeer_1e04c9dfd2862c76 = function() { return handleError(function (arg0) {
2884
2893
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2885
2894
  return addHeapObject(ret);
2886
2895
  }, arguments) };
2887
- imports.wbg.__wbg_loadblockfilelist_d0b9744f9ef2f6e5 = function() { return handleError(function () {
2896
+ imports.wbg.__wbg_loadblockfilelist_5e3ff98c60a2a07f = function() { return handleError(function () {
2888
2897
  const ret = MsgHandler.load_block_file_list();
2889
2898
  return addHeapObject(ret);
2890
2899
  }, arguments) };
2891
- imports.wbg.__wbg_sendinterfaceevent_6d41a333bfd8a21a = function(arg0, arg1, arg2, arg3, arg4) {
2900
+ imports.wbg.__wbg_sendinterfaceevent_2481d64d2d629fce = function(arg0, arg1, arg2, arg3, arg4) {
2892
2901
  let deferred0_0;
2893
2902
  let deferred0_1;
2894
2903
  let deferred1_0;
@@ -2904,7 +2913,7 @@ function __wbg_get_imports() {
2904
2913
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2905
2914
  }
2906
2915
  };
2907
- imports.wbg.__wbg_sendblocksuccess_468375797025263d = function(arg0, arg1, arg2) {
2916
+ imports.wbg.__wbg_sendblocksuccess_0e0fa53d03cc8ee0 = function(arg0, arg1, arg2) {
2908
2917
  let deferred0_0;
2909
2918
  let deferred0_1;
2910
2919
  try {
@@ -2915,10 +2924,10 @@ function __wbg_get_imports() {
2915
2924
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2916
2925
  }
2917
2926
  };
2918
- imports.wbg.__wbg_sendwalletupdate_f76f3cac797fc3dd = function() {
2927
+ imports.wbg.__wbg_sendwalletupdate_3f10039b18efd40b = function() {
2919
2928
  MsgHandler.send_wallet_update();
2920
2929
  };
2921
- imports.wbg.__wbg_sendnewversionalert_6352ce612552e34f = function(arg0, arg1, arg2) {
2930
+ imports.wbg.__wbg_sendnewversionalert_dfe7cede819b908a = function(arg0, arg1, arg2) {
2922
2931
  let deferred0_0;
2923
2932
  let deferred0_1;
2924
2933
  try {
@@ -2929,13 +2938,13 @@ function __wbg_get_imports() {
2929
2938
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2930
2939
  }
2931
2940
  };
2932
- imports.wbg.__wbg_sendblockfetchstatusevent_c3fac19845f73f2d = function(arg0) {
2941
+ imports.wbg.__wbg_sendblockfetchstatusevent_16ec9b84c8c4b37e = function(arg0) {
2933
2942
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2934
2943
  };
2935
- imports.wbg.__wbg_sendnewchaindetectedevent_1ae7c31138b2d482 = function() {
2944
+ imports.wbg.__wbg_sendnewchaindetectedevent_b70b153e73432ccb = function() {
2936
2945
  MsgHandler.send_new_chain_detected_event();
2937
2946
  };
2938
- imports.wbg.__wbg_fetchblockfrompeer_3cbbc387243e2582 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2947
+ imports.wbg.__wbg_fetchblockfrompeer_010d85cda12b2b4a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2939
2948
  let deferred0_0;
2940
2949
  let deferred0_1;
2941
2950
  try {
@@ -2947,7 +2956,7 @@ function __wbg_get_imports() {
2947
2956
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2948
2957
  }
2949
2958
  }, arguments) };
2950
- imports.wbg.__wbg_ensuredirectoryexists_45bb4c871cc81be6 = function() { return handleError(function (arg0, arg1) {
2959
+ imports.wbg.__wbg_ensuredirectoryexists_0950f22a5900a1dc = function() { return handleError(function (arg0, arg1) {
2951
2960
  let deferred0_0;
2952
2961
  let deferred0_1;
2953
2962
  try {
@@ -2958,14 +2967,6 @@ function __wbg_get_imports() {
2958
2967
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2959
2968
  }
2960
2969
  }, arguments) };
2961
- imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2962
- const ret = WasmPeerService.__wrap(arg0);
2963
- return addHeapObject(ret);
2964
- };
2965
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2966
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2967
- return addHeapObject(ret);
2968
- };
2969
2970
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2970
2971
  const ret = getObject(arg0) == getObject(arg1);
2971
2972
  return ret;
@@ -2985,6 +2986,15 @@ function __wbg_get_imports() {
2985
2986
  const ret = getObject(arg0)[getObject(arg1)];
2986
2987
  return addHeapObject(ret);
2987
2988
  };
2989
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
2990
+ const obj = takeObject(arg0).original;
2991
+ if (obj.cnt-- == 1) {
2992
+ obj.a = 0;
2993
+ return true;
2994
+ }
2995
+ const ret = false;
2996
+ return ret;
2997
+ };
2988
2998
  imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2989
2999
  queueMicrotask(getObject(arg0));
2990
3000
  };
@@ -2996,15 +3006,6 @@ function __wbg_get_imports() {
2996
3006
  const ret = typeof(getObject(arg0)) === 'function';
2997
3007
  return ret;
2998
3008
  };
2999
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
3000
- const obj = takeObject(arg0).original;
3001
- if (obj.cnt-- == 1) {
3002
- obj.a = 0;
3003
- return true;
3004
- }
3005
- const ret = false;
3006
- return ret;
3007
- };
3008
3009
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
3009
3010
  const ret = new Error();
3010
3011
  return addHeapObject(ret);
@@ -3213,7 +3214,7 @@ function __wbg_get_imports() {
3213
3214
  const a = state0.a;
3214
3215
  state0.a = 0;
3215
3216
  try {
3216
- return __wbg_adapter_410(a, state0.b, arg0, arg1);
3217
+ return __wbg_adapter_454(a, state0.b, arg0, arg1);
3217
3218
  } finally {
3218
3219
  state0.a = a;
3219
3220
  }
@@ -3274,8 +3275,8 @@ function __wbg_get_imports() {
3274
3275
  getInt32Memory0()[arg0 / 4 + 1] = len1;
3275
3276
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3276
3277
  };
3277
- imports.wbg.__wbindgen_closure_wrapper1559 = function(arg0, arg1, arg2) {
3278
- const ret = makeMutClosure(arg0, arg1, 574, __wbg_adapter_38);
3278
+ imports.wbg.__wbindgen_closure_wrapper1585 = function(arg0, arg1, arg2) {
3279
+ const ret = makeMutClosure(arg0, arg1, 594, __wbg_adapter_38);
3279
3280
  return addHeapObject(ret);
3280
3281
  };
3281
3282