saito-wasm 0.2.184 → 0.2.185

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/node/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-1c3c6cebe5d2ec6b/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-592eed3127214563/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -228,6 +228,13 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
228
228
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f20d323127f6aa2(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
+ function _assertClass(instance, klass) {
232
+ if (!(instance instanceof klass)) {
233
+ throw new Error(`expected instance of ${klass.name}`);
234
+ }
235
+ return instance.ptr;
236
+ }
237
+
231
238
  let stack_pointer = 128;
232
239
 
233
240
  function addBorrowedObject(obj) {
@@ -236,62 +243,67 @@ function addBorrowedObject(obj) {
236
243
  return stack_pointer;
237
244
  }
238
245
 
239
- function _assertClass(instance, klass) {
240
- if (!(instance instanceof klass)) {
241
- throw new Error(`expected instance of ${klass.name}`);
246
+ function handleError(f, args) {
247
+ try {
248
+ return f.apply(this, args);
249
+ } catch (e) {
250
+ wasm.__wbindgen_exn_store(addHeapObject(e));
242
251
  }
243
- return instance.ptr;
244
252
  }
245
253
  /**
246
- * @returns {Promise<boolean>}
254
+ * @param {bigint} threshold
255
+ * @returns {Promise<void>}
247
256
  */
248
- module.exports.produce_block_without_gt = function() {
249
- const ret = wasm.produce_block_without_gt();
257
+ module.exports.write_issuance_file = function(threshold) {
258
+ const ret = wasm.write_issuance_file(threshold);
250
259
  return takeObject(ret);
251
260
  };
252
261
 
253
262
  /**
254
- * @returns {Promise<any>}
263
+ * @param {string} slip1_utxo_key
264
+ * @param {string} slip2_utxo_key
265
+ * @param {string} slip3_utxo_key
266
+ * @returns {Promise<WasmTransaction>}
255
267
  */
256
- module.exports.get_confirmations = function() {
257
- const ret = wasm.get_confirmations();
268
+ module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
269
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
258
270
  return takeObject(ret);
259
271
  };
260
272
 
261
273
  /**
262
- * @returns {Promise<string>}
274
+ * @returns {string}
263
275
  */
264
- module.exports.get_stats = function() {
265
- const ret = wasm.get_stats();
276
+ module.exports.generate_private_key = function() {
277
+ const ret = wasm.generate_private_key();
266
278
  return takeObject(ret);
267
279
  };
268
280
 
269
281
  /**
270
- * @param {Uint8Array} buffer
271
- * @param {number} msg_index
272
- * @param {bigint} peer_index
273
- * @returns {Promise<void>}
282
+ * @returns {Promise<boolean>}
274
283
  */
275
- module.exports.send_api_error = function(buffer, msg_index, peer_index) {
276
- const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
284
+ module.exports.produce_block_without_gt = function() {
285
+ const ret = wasm.produce_block_without_gt();
277
286
  return takeObject(ret);
278
287
  };
279
288
 
280
289
  /**
281
- * @param {Uint8Array} buffer
282
290
  * @param {bigint} peer_index
291
+ * @param {string} public_key
283
292
  * @returns {Promise<void>}
284
293
  */
285
- module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
286
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
294
+ module.exports.process_stun_peer = function(peer_index, public_key) {
295
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
287
296
  return takeObject(ret);
288
297
  };
289
298
 
290
299
  /**
300
+ * @param {Uint8Array} buffer
301
+ * @param {number} msg_index
302
+ * @param {bigint} peer_index
291
303
  * @returns {Promise<void>}
292
304
  */
293
- module.exports.disable_producing_blocks_by_timer = function() {
294
- const ret = wasm.disable_producing_blocks_by_timer();
305
+ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
306
+ const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
295
307
  return takeObject(ret);
296
308
  };
297
309
 
@@ -310,150 +322,87 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
310
322
  };
311
323
 
312
324
  /**
313
- * @param {bigint} duration_in_ms
314
325
  * @returns {Promise<void>}
315
326
  */
316
- module.exports.process_timer_event = function(duration_in_ms) {
317
- const ret = wasm.process_timer_event(duration_in_ms);
327
+ module.exports.start_from_received_ghost_chain = function() {
328
+ const ret = wasm.start_from_received_ghost_chain();
318
329
  return takeObject(ret);
319
330
  };
320
331
 
321
332
  /**
322
- * @param {bigint} peer_index
323
- * @returns {Promise<WasmPeer | undefined>}
333
+ * @returns {Promise<string>}
324
334
  */
325
- module.exports.get_peer = function(peer_index) {
326
- const ret = wasm.get_peer(peer_index);
335
+ module.exports.get_stats = function() {
336
+ const ret = wasm.get_stats();
327
337
  return takeObject(ret);
328
338
  };
329
339
 
330
340
  /**
331
- * @param {string} public_key
332
341
  * @returns {Promise<Array<any>>}
333
342
  */
334
- module.exports.get_account_slips = function(public_key) {
335
- const ret = wasm.get_account_slips(addHeapObject(public_key));
343
+ module.exports.get_nft_list = function() {
344
+ const ret = wasm.get_nft_list();
336
345
  return takeObject(ret);
337
346
  };
338
347
 
339
348
  /**
340
- * @param {WasmBalanceSnapshot} snapshot
341
- * @returns {Promise<void>}
349
+ * @param {string} nft_id_hex
350
+ * @param {Uint8Array} tx_msg
351
+ * @returns {Promise<WasmTransaction>}
342
352
  */
343
- module.exports.update_from_balance_snapshot = function(snapshot) {
344
- _assertClass(snapshot, WasmBalanceSnapshot);
345
- var ptr0 = snapshot.__destroy_into_raw();
346
- const ret = wasm.update_from_balance_snapshot(ptr0);
353
+ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
354
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
355
+ const len0 = WASM_VECTOR_LEN;
356
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
347
357
  return takeObject(ret);
348
358
  };
349
359
 
350
360
  /**
351
- * @returns {Promise<bigint>}
361
+ * @param {string} block_hash
362
+ * @returns {Promise<WasmBlock>}
352
363
  */
353
- module.exports.get_next_peer_index = function() {
354
- const ret = wasm.get_next_peer_index();
364
+ module.exports.get_block = function(block_hash) {
365
+ const ret = wasm.get_block(addHeapObject(block_hash));
355
366
  return takeObject(ret);
356
367
  };
357
368
 
358
369
  /**
359
- * @param {Uint8Array} hash
360
- * @param {bigint} block_id
361
- * @param {bigint} peer_index
362
- * @returns {Promise<void>}
370
+ * @returns {Promise<string>}
363
371
  */
364
- module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
365
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
372
+ module.exports.get_latest_block_hash = function() {
373
+ const ret = wasm.get_latest_block_hash();
366
374
  return takeObject(ret);
367
375
  };
368
376
 
369
377
  /**
370
378
  * @returns {Promise<Array<any>>}
371
379
  */
372
- module.exports.get_nft_list = function() {
373
- const ret = wasm.get_nft_list();
374
- return takeObject(ret);
375
- };
376
-
377
- /**
378
- * @param {number} major
379
- * @param {number} minor
380
- * @param {number} patch
381
- * @returns {Promise<void>}
382
- */
383
- module.exports.set_wallet_version = function(major, minor, patch) {
384
- const ret = wasm.set_wallet_version(major, minor, patch);
380
+ module.exports.get_peers = function() {
381
+ const ret = wasm.get_peers();
385
382
  return takeObject(ret);
386
383
  };
387
384
 
388
385
  /**
389
- * @param {bigint} peer_index
390
386
  * @param {string} public_key
391
- * @returns {Promise<void>}
392
- */
393
- module.exports.process_stun_peer = function(peer_index, public_key) {
394
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
395
- return takeObject(ret);
396
- };
397
-
398
- /**
399
- * @param {Array<any>} public_keys
400
- * @param {BigUint64Array} amounts
387
+ * @param {bigint} amount
401
388
  * @param {bigint} fee
402
- * @param {boolean} _force_merge
389
+ * @param {boolean} force_merge
403
390
  * @returns {Promise<WasmTransaction>}
404
391
  */
405
- module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
406
- const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
407
- return takeObject(ret);
408
- };
409
-
410
- /**
411
- * @returns {Promise<WasmBlockchain>}
412
- */
413
- module.exports.get_blockchain = function() {
414
- const ret = wasm.get_blockchain();
415
- return takeObject(ret);
416
- };
417
-
418
- /**
419
- * @param {Uint8Array} buffer
420
- * @param {Uint8Array} hash
421
- * @param {bigint} block_id
422
- * @param {bigint} peer_index
423
- * @returns {Promise<void>}
424
- */
425
- module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
426
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
392
+ module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
393
+ const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
427
394
  return takeObject(ret);
428
395
  };
429
396
 
430
397
  /**
431
398
  * @param {Uint8Array} buffer
432
- * @param {number} msg_index
433
- * @param {bigint} peer_index
434
- * @returns {Promise<void>}
435
- */
436
- module.exports.send_api_call = function(buffer, msg_index, peer_index) {
437
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
438
- return takeObject(ret);
439
- };
440
-
441
- /**
442
- * @returns {Promise<string>}
443
- */
444
- module.exports.get_latest_block_hash = function() {
445
- const ret = wasm.get_latest_block_hash();
446
- return takeObject(ret);
447
- };
448
-
449
- /**
450
399
  * @param {string} private_key
451
400
  * @returns {string}
452
401
  */
453
- module.exports.generate_public_key = function(private_key) {
402
+ module.exports.sign_buffer = function(buffer, private_key) {
454
403
  try {
455
404
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
456
- wasm.generate_public_key(retptr, addHeapObject(private_key));
405
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
457
406
  var r0 = getInt32Memory0()[retptr / 4 + 0];
458
407
  var r1 = getInt32Memory0()[retptr / 4 + 1];
459
408
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -467,56 +416,76 @@ module.exports.generate_public_key = function(private_key) {
467
416
  };
468
417
 
469
418
  /**
470
- * @returns {Promise<Array<any>>}
419
+ * @param {string} config_json
420
+ * @param {string} private_key
421
+ * @param {number} log_level_num
422
+ * @param {bigint} hasten_multiplier
423
+ * @param {boolean} delete_old_blocks
424
+ * @returns {Promise<any>}
471
425
  */
472
- module.exports.get_mempool_txs = function() {
473
- const ret = wasm.get_mempool_txs();
426
+ module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
427
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
474
428
  return takeObject(ret);
475
429
  };
476
430
 
477
431
  /**
478
- * @returns {Promise<Array<any>>}
432
+ * @returns {Promise<boolean>}
479
433
  */
480
- module.exports.get_peers = function() {
481
- const ret = wasm.get_peers();
434
+ module.exports.produce_block_with_gt = function() {
435
+ const ret = wasm.produce_block_with_gt();
482
436
  return takeObject(ret);
483
437
  };
484
438
 
485
439
  /**
486
- * @returns {Promise<WasmWallet>}
440
+ * @returns {Promise<bigint>}
487
441
  */
488
- module.exports.get_wallet = function() {
489
- const ret = wasm.get_wallet();
442
+ module.exports.get_next_peer_index = function() {
443
+ const ret = wasm.get_next_peer_index();
490
444
  return takeObject(ret);
491
445
  };
492
446
 
493
447
  /**
494
- * @param {bigint} num
495
- * @param {bigint} deposit
496
- * @param {Uint8Array} tx_msg
497
- * @param {bigint} fee
498
- * @param {string} recipient_public_key
499
- * @param {string} nft_type
500
- * @returns {Promise<WasmTransaction>}
448
+ * @returns {Promise<string>}
501
449
  */
502
- module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
503
- const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
450
+ module.exports.get_congestion_stats = function() {
451
+ const ret = wasm.get_congestion_stats();
504
452
  return takeObject(ret);
505
453
  };
506
454
 
507
455
  /**
508
- * @returns {Promise<string>}
456
+ * @param {bigint} peer_index
457
+ * @returns {Promise<void>}
509
458
  */
510
- module.exports.get_congestion_stats = function() {
511
- const ret = wasm.get_congestion_stats();
459
+ module.exports.remove_stun_peer = function(peer_index) {
460
+ const ret = wasm.remove_stun_peer(peer_index);
461
+ return takeObject(ret);
462
+ };
463
+
464
+ /**
465
+ * @returns {Promise<Array<any>>}
466
+ */
467
+ module.exports.get_mempool_txs = function() {
468
+ const ret = wasm.get_mempool_txs();
512
469
  return takeObject(ret);
513
470
  };
514
471
 
515
472
  /**
473
+ * @param {bigint} duration_in_ms
516
474
  * @returns {Promise<void>}
517
475
  */
518
- module.exports.start_from_received_ghost_chain = function() {
519
- const ret = wasm.start_from_received_ghost_chain();
476
+ module.exports.process_timer_event = function(duration_in_ms) {
477
+ const ret = wasm.process_timer_event(duration_in_ms);
478
+ return takeObject(ret);
479
+ };
480
+
481
+ /**
482
+ * @param {number} major
483
+ * @param {number} minor
484
+ * @param {number} patch
485
+ * @returns {Promise<void>}
486
+ */
487
+ module.exports.set_wallet_version = function(major, minor, patch) {
488
+ const ret = wasm.set_wallet_version(major, minor, patch);
520
489
  return takeObject(ret);
521
490
  };
522
491
 
@@ -524,8 +493,8 @@ module.exports.start_from_received_ghost_chain = function() {
524
493
  * @param {bigint} peer_index
525
494
  * @returns {Promise<void>}
526
495
  */
527
- module.exports.remove_stun_peer = function(peer_index) {
528
- const ret = wasm.remove_stun_peer(peer_index);
496
+ module.exports.process_peer_disconnection = function(peer_index) {
497
+ const ret = wasm.process_peer_disconnection(peer_index);
529
498
  return takeObject(ret);
530
499
  };
531
500
 
@@ -544,132 +513,123 @@ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_u
544
513
  };
545
514
 
546
515
  /**
547
- * @param {Array<any>} keys
548
- * @returns {Promise<WasmBalanceSnapshot>}
516
+ * @returns {Promise<string>}
549
517
  */
550
- module.exports.get_balance_snapshot = function(keys) {
551
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
518
+ module.exports.get_peer_stats = function() {
519
+ const ret = wasm.get_peer_stats();
552
520
  return takeObject(ret);
553
521
  };
554
522
 
555
523
  /**
556
- * @param {string} key
557
- * @returns {boolean}
524
+ * @returns {Promise<WasmBlockchain>}
558
525
  */
559
- module.exports.is_valid_public_key = function(key) {
560
- const ret = wasm.is_valid_public_key(addHeapObject(key));
561
- return ret !== 0;
526
+ module.exports.get_blockchain = function() {
527
+ const ret = wasm.get_blockchain();
528
+ return takeObject(ret);
562
529
  };
563
530
 
564
531
  /**
565
532
  * @param {Uint8Array} buffer
566
- * @param {string} private_key
567
- * @returns {string}
533
+ * @param {number} msg_index
534
+ * @param {bigint} peer_index
535
+ * @returns {Promise<void>}
568
536
  */
569
- module.exports.sign_buffer = function(buffer, private_key) {
570
- try {
571
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
572
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
573
- var r0 = getInt32Memory0()[retptr / 4 + 0];
574
- var r1 = getInt32Memory0()[retptr / 4 + 1];
575
- var r2 = getInt32Memory0()[retptr / 4 + 2];
576
- if (r2) {
577
- throw takeObject(r1);
578
- }
579
- return takeObject(r0);
580
- } finally {
581
- wasm.__wbindgen_add_to_stack_pointer(16);
582
- }
537
+ module.exports.send_api_call = function(buffer, msg_index, peer_index) {
538
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
539
+ return takeObject(ret);
583
540
  };
584
541
 
585
542
  /**
586
543
  * @param {string} public_key
587
- * @param {bigint} amount
588
- * @param {bigint} fee
589
- * @param {boolean} force_merge
590
- * @returns {Promise<WasmTransaction>}
544
+ * @returns {Promise<Array<any>>}
591
545
  */
592
- module.exports.create_transaction = function(public_key, amount, fee, force_merge) {
593
- const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
546
+ module.exports.get_account_slips = function(public_key) {
547
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
594
548
  return takeObject(ret);
595
549
  };
596
550
 
597
551
  /**
598
- * @param {string} config_json
599
- * @param {string} private_key
600
- * @param {number} log_level_num
601
- * @param {bigint} hasten_multiplier
602
- * @param {boolean} delete_old_blocks
603
- * @returns {Promise<any>}
552
+ * @param {Uint8Array} buffer
553
+ * @param {number} msg_index
554
+ * @param {bigint} peer_index
555
+ * @returns {Promise<void>}
604
556
  */
605
- module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
606
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
557
+ module.exports.send_api_success = function(buffer, msg_index, peer_index) {
558
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
607
559
  return takeObject(ret);
608
560
  };
609
561
 
610
562
  /**
611
- * @param {WasmTransaction} tx
563
+ * @param {bigint} peer_index
564
+ * @param {string} ip
612
565
  * @returns {Promise<void>}
613
566
  */
614
- module.exports.propagate_transaction = function(tx) {
615
- _assertClass(tx, WasmTransaction);
616
- const ret = wasm.propagate_transaction(tx.__wbg_ptr);
567
+ module.exports.process_new_peer = function(peer_index, ip) {
568
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
617
569
  return takeObject(ret);
618
570
  };
619
571
 
620
572
  /**
621
- * @param {bigint} current_time
622
- * @returns {Promise<void>}
573
+ * @param {bigint} num
574
+ * @param {bigint} deposit
575
+ * @param {Uint8Array} tx_msg
576
+ * @param {bigint} fee
577
+ * @param {string} recipient_public_key
578
+ * @param {string} nft_type
579
+ * @returns {Promise<WasmTransaction>}
623
580
  */
624
- module.exports.process_stat_interval = function(current_time) {
625
- const ret = wasm.process_stat_interval(current_time);
581
+ module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
582
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
626
583
  return takeObject(ret);
627
584
  };
628
585
 
629
586
  /**
630
- * @returns {Promise<string>}
587
+ * @param {bigint} peer_index
588
+ * @returns {Promise<WasmPeer | undefined>}
631
589
  */
632
- module.exports.get_peer_stats = function() {
633
- const ret = wasm.get_peer_stats();
590
+ module.exports.get_peer = function(peer_index) {
591
+ const ret = wasm.get_peer(peer_index);
634
592
  return takeObject(ret);
635
593
  };
636
594
 
637
595
  /**
638
- * @param {string} nft_id_hex
639
- * @param {Uint8Array} tx_msg
640
- * @returns {Promise<WasmTransaction>}
596
+ * @param {string} key
597
+ * @returns {boolean}
641
598
  */
642
- module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
643
- const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
644
- const len0 = WASM_VECTOR_LEN;
645
- const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
646
- return takeObject(ret);
599
+ module.exports.is_valid_public_key = function(key) {
600
+ const ret = wasm.is_valid_public_key(addHeapObject(key));
601
+ return ret !== 0;
647
602
  };
648
603
 
649
604
  /**
650
- * @returns {string}
605
+ * @param {Uint8Array} hash
606
+ * @param {bigint} block_id
607
+ * @param {bigint} peer_index
608
+ * @returns {Promise<void>}
651
609
  */
652
- module.exports.generate_private_key = function() {
653
- const ret = wasm.generate_private_key();
610
+ module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
611
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
654
612
  return takeObject(ret);
655
613
  };
656
614
 
657
615
  /**
658
- * @returns {Promise<boolean>}
616
+ * @param {WasmTransaction} tx
617
+ * @returns {Promise<void>}
659
618
  */
660
- module.exports.produce_block_with_gt = function() {
661
- const ret = wasm.produce_block_with_gt();
619
+ module.exports.propagate_transaction = function(tx) {
620
+ _assertClass(tx, WasmTransaction);
621
+ const ret = wasm.propagate_transaction(tx.__wbg_ptr);
662
622
  return takeObject(ret);
663
623
  };
664
624
 
665
625
  /**
666
- * @param {Uint8Array} buffer
667
- * @param {number} msg_index
668
- * @param {bigint} peer_index
626
+ * @param {WasmBalanceSnapshot} snapshot
669
627
  * @returns {Promise<void>}
670
628
  */
671
- module.exports.send_api_success = function(buffer, msg_index, peer_index) {
672
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
629
+ module.exports.update_from_balance_snapshot = function(snapshot) {
630
+ _assertClass(snapshot, WasmBalanceSnapshot);
631
+ var ptr0 = snapshot.__destroy_into_raw();
632
+ const ret = wasm.update_from_balance_snapshot(ptr0);
673
633
  return takeObject(ret);
674
634
  };
675
635
 
@@ -685,51 +645,79 @@ module.exports.verify_signature = function(buffer, signature, public_key) {
685
645
  };
686
646
 
687
647
  /**
688
- * @param {string} slip1_utxo_key
689
- * @param {string} slip2_utxo_key
690
- * @param {string} slip3_utxo_key
691
- * @param {Uint8Array} tx_msg
692
- * @returns {Promise<WasmTransaction>}
648
+ * @param {string} private_key
649
+ * @returns {string}
650
+ */
651
+ module.exports.generate_public_key = function(private_key) {
652
+ try {
653
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
654
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
655
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
656
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
657
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
658
+ if (r2) {
659
+ throw takeObject(r1);
660
+ }
661
+ return takeObject(r0);
662
+ } finally {
663
+ wasm.__wbindgen_add_to_stack_pointer(16);
664
+ }
665
+ };
666
+
667
+ /**
668
+ * @returns {Promise<WasmWallet>}
693
669
  */
694
- module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
695
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
670
+ module.exports.get_wallet = function() {
671
+ const ret = wasm.get_wallet();
696
672
  return takeObject(ret);
697
673
  };
698
674
 
699
675
  /**
700
- * @param {string} block_hash
701
- * @returns {Promise<WasmBlock>}
676
+ * @returns {Promise<any>}
702
677
  */
703
- module.exports.get_block = function(block_hash) {
704
- const ret = wasm.get_block(addHeapObject(block_hash));
678
+ module.exports.get_confirmations = function() {
679
+ const ret = wasm.get_confirmations();
705
680
  return takeObject(ret);
706
681
  };
707
682
 
708
683
  /**
709
- * @param {bigint} peer_index
684
+ * @param {Array<any>} public_keys
685
+ * @param {BigUint64Array} amounts
686
+ * @param {bigint} fee
687
+ * @param {boolean} _force_merge
688
+ * @returns {Promise<WasmTransaction>}
689
+ */
690
+ module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
691
+ const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
692
+ return takeObject(ret);
693
+ };
694
+
695
+ /**
696
+ * @param {bigint} current_time
710
697
  * @returns {Promise<void>}
711
698
  */
712
- module.exports.process_peer_disconnection = function(peer_index) {
713
- const ret = wasm.process_peer_disconnection(peer_index);
699
+ module.exports.process_stat_interval = function(current_time) {
700
+ const ret = wasm.process_stat_interval(current_time);
714
701
  return takeObject(ret);
715
702
  };
716
703
 
717
704
  /**
705
+ * @param {Uint8Array} buffer
706
+ * @param {Uint8Array} hash
707
+ * @param {bigint} block_id
718
708
  * @param {bigint} peer_index
719
- * @param {string} ip
720
709
  * @returns {Promise<void>}
721
710
  */
722
- module.exports.process_new_peer = function(peer_index, ip) {
723
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
711
+ module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
712
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
724
713
  return takeObject(ret);
725
714
  };
726
715
 
727
716
  /**
728
- * @param {bigint} threshold
729
717
  * @returns {Promise<void>}
730
718
  */
731
- module.exports.write_issuance_file = function(threshold) {
732
- const ret = wasm.write_issuance_file(threshold);
719
+ module.exports.disable_producing_blocks_by_timer = function() {
720
+ const ret = wasm.disable_producing_blocks_by_timer();
733
721
  return takeObject(ret);
734
722
  };
735
723
 
@@ -742,13 +730,25 @@ module.exports.hash = function(buffer) {
742
730
  return takeObject(ret);
743
731
  };
744
732
 
745
- function handleError(f, args) {
746
- try {
747
- return f.apply(this, args);
748
- } catch (e) {
749
- wasm.__wbindgen_exn_store(addHeapObject(e));
750
- }
751
- }
733
+ /**
734
+ * @param {Uint8Array} buffer
735
+ * @param {bigint} peer_index
736
+ * @returns {Promise<void>}
737
+ */
738
+ module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
739
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
740
+ return takeObject(ret);
741
+ };
742
+
743
+ /**
744
+ * @param {Array<any>} keys
745
+ * @returns {Promise<WasmBalanceSnapshot>}
746
+ */
747
+ module.exports.get_balance_snapshot = function(keys) {
748
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
749
+ return takeObject(ret);
750
+ };
751
+
752
752
  function __wbg_adapter_454(arg0, arg1, arg2, arg3) {
753
753
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h67b6352f6b82f267(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
754
754
  }
@@ -2681,17 +2681,12 @@ class WasmWalletSlip {
2681
2681
  }
2682
2682
  module.exports.WasmWalletSlip = WasmWalletSlip;
2683
2683
 
2684
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2685
- const ret = WasmBlockchain.__wrap(arg0);
2686
- return addHeapObject(ret);
2687
- };
2688
-
2689
2684
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2690
2685
  takeObject(arg0);
2691
2686
  };
2692
2687
 
2693
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2694
- const ret = WasmWallet.__wrap(arg0);
2688
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2689
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2695
2690
  return addHeapObject(ret);
2696
2691
  };
2697
2692
 
@@ -2710,8 +2705,18 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2710
2705
  return addHeapObject(ret);
2711
2706
  };
2712
2707
 
2713
- module.exports.__wbg_wasmnft_new = function(arg0) {
2714
- const ret = WasmNFT.__wrap(arg0);
2708
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2709
+ const ret = WasmWallet.__wrap(arg0);
2710
+ return addHeapObject(ret);
2711
+ };
2712
+
2713
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2714
+ const ret = WasmBlockchain.__wrap(arg0);
2715
+ return addHeapObject(ret);
2716
+ };
2717
+
2718
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2719
+ const ret = WasmPeer.__wrap(arg0);
2715
2720
  return addHeapObject(ret);
2716
2721
  };
2717
2722
 
@@ -2724,8 +2729,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2724
2729
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2725
2730
  };
2726
2731
 
2727
- module.exports.__wbg_wasmblock_new = function(arg0) {
2728
- const ret = WasmBlock.__wrap(arg0);
2732
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2733
+ const ret = WasmNFT.__wrap(arg0);
2729
2734
  return addHeapObject(ret);
2730
2735
  };
2731
2736
 
@@ -2734,53 +2739,27 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2734
2739
  return addHeapObject(ret);
2735
2740
  };
2736
2741
 
2737
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2738
- const ret = WasmPeer.__wrap(arg0);
2739
- return addHeapObject(ret);
2740
- };
2741
-
2742
- module.exports.__wbg_wasmslip_new = function(arg0) {
2743
- const ret = WasmSlip.__wrap(arg0);
2744
- return addHeapObject(ret);
2745
- };
2746
-
2747
2742
  module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2748
2743
  const ret = WasmWalletSlip.__wrap(arg0);
2749
2744
  return addHeapObject(ret);
2750
2745
  };
2751
2746
 
2752
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2753
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2747
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2748
+ const ret = WasmSlip.__wrap(arg0);
2754
2749
  return addHeapObject(ret);
2755
2750
  };
2756
2751
 
2757
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2758
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2752
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2753
+ const ret = WasmBlock.__wrap(arg0);
2759
2754
  return addHeapObject(ret);
2760
2755
  };
2761
2756
 
2762
- module.exports.__wbindgen_is_object = function(arg0) {
2763
- const val = getObject(arg0);
2764
- const ret = typeof(val) === 'object' && val !== null;
2765
- return ret;
2766
- };
2767
-
2768
- module.exports.__wbindgen_is_undefined = function(arg0) {
2769
- const ret = getObject(arg0) === undefined;
2770
- return ret;
2771
- };
2772
-
2773
- module.exports.__wbindgen_in = function(arg0, arg1) {
2774
- const ret = getObject(arg0) in getObject(arg1);
2775
- return ret;
2776
- };
2777
-
2778
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2779
- const ret = WasmPeerService.__wrap(arg0);
2757
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2758
+ const ret = WasmHop.__wrap(arg0);
2780
2759
  return addHeapObject(ret);
2781
2760
  };
2782
2761
 
2783
- module.exports.__wbg_flushdata_2d9a58d2a961124a = function(arg0, arg1) {
2762
+ module.exports.__wbg_flushdata_c5fb94f20e61667d = function(arg0, arg1) {
2784
2763
  let deferred0_0;
2785
2764
  let deferred0_1;
2786
2765
  try {
@@ -2792,7 +2771,7 @@ module.exports.__wbg_flushdata_2d9a58d2a961124a = function(arg0, arg1) {
2792
2771
  }
2793
2772
  };
2794
2773
 
2795
- module.exports.__wbg_readvalue_dc0fad371b95d5f5 = function() { return handleError(function (arg0, arg1) {
2774
+ module.exports.__wbg_readvalue_d4e9f8d18aab0919 = function() { return handleError(function (arg0, arg1) {
2796
2775
  let deferred0_0;
2797
2776
  let deferred0_1;
2798
2777
  try {
@@ -2805,15 +2784,15 @@ module.exports.__wbg_readvalue_dc0fad371b95d5f5 = function() { return handleErro
2805
2784
  }
2806
2785
  }, arguments) };
2807
2786
 
2808
- module.exports.__wbg_loadwallet_0156379da7d658d2 = function() {
2787
+ module.exports.__wbg_loadwallet_ccc13e4f4e7dad03 = function() {
2809
2788
  MsgHandler.load_wallet();
2810
2789
  };
2811
2790
 
2812
- module.exports.__wbg_savewallet_a7da8fa8e3c7df71 = function() {
2791
+ module.exports.__wbg_savewallet_bf0b6227ec4f768e = function() {
2813
2792
  MsgHandler.save_wallet();
2814
2793
  };
2815
2794
 
2816
- module.exports.__wbg_writevalue_13f772ae77962025 = function(arg0, arg1, arg2) {
2795
+ module.exports.__wbg_writevalue_a7963afb95e24e08 = function(arg0, arg1, arg2) {
2817
2796
  let deferred0_0;
2818
2797
  let deferred0_1;
2819
2798
  try {
@@ -2825,7 +2804,7 @@ module.exports.__wbg_writevalue_13f772ae77962025 = function(arg0, arg1, arg2) {
2825
2804
  }
2826
2805
  };
2827
2806
 
2828
- module.exports.__wbg_appendvalue_d6c597eb89e5280d = function(arg0, arg1, arg2) {
2807
+ module.exports.__wbg_appendvalue_f54945e591ebc4b3 = function(arg0, arg1, arg2) {
2829
2808
  let deferred0_0;
2830
2809
  let deferred0_1;
2831
2810
  try {
@@ -2837,7 +2816,7 @@ module.exports.__wbg_appendvalue_d6c597eb89e5280d = function(arg0, arg1, arg2) {
2837
2816
  }
2838
2817
  };
2839
2818
 
2840
- module.exports.__wbg_removevalue_899d6f86e70a1cf5 = function() { return handleError(function (arg0, arg1) {
2819
+ module.exports.__wbg_removevalue_e4da4a81798d43bb = function() { return handleError(function (arg0, arg1) {
2841
2820
  let deferred0_0;
2842
2821
  let deferred0_1;
2843
2822
  try {
@@ -2850,11 +2829,11 @@ module.exports.__wbg_removevalue_899d6f86e70a1cf5 = function() { return handleEr
2850
2829
  }
2851
2830
  }, arguments) };
2852
2831
 
2853
- module.exports.__wbg_sendmessage_382716fe1b29c2b9 = function(arg0, arg1) {
2832
+ module.exports.__wbg_sendmessage_85d5402318037f38 = function(arg0, arg1) {
2854
2833
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2855
2834
  };
2856
2835
 
2857
- module.exports.__wbg_connecttopeer_036c64bfc0ed0648 = function() { return handleError(function (arg0, arg1, arg2) {
2836
+ module.exports.__wbg_connecttopeer_c72e2e7e6b594c42 = function() { return handleError(function (arg0, arg1, arg2) {
2858
2837
  let deferred0_0;
2859
2838
  let deferred0_1;
2860
2839
  try {
@@ -2867,14 +2846,14 @@ module.exports.__wbg_connecttopeer_036c64bfc0ed0648 = function() { return handle
2867
2846
  }
2868
2847
  }, arguments) };
2869
2848
 
2870
- module.exports.__wbg_getmyservices_6703313edc3be1c4 = function() {
2849
+ module.exports.__wbg_getmyservices_cf9799d927c26b2f = function() {
2871
2850
  const ret = MsgHandler.get_my_services();
2872
2851
  _assertClass(ret, WasmPeerServiceList);
2873
2852
  var ptr1 = ret.__destroy_into_raw();
2874
2853
  return ptr1;
2875
2854
  };
2876
2855
 
2877
- module.exports.__wbg_isexistingfile_d940522bc2dc6e49 = function() { return handleError(function (arg0, arg1) {
2856
+ module.exports.__wbg_isexistingfile_17396ccf571a01ed = function() { return handleError(function (arg0, arg1) {
2878
2857
  let deferred0_0;
2879
2858
  let deferred0_1;
2880
2859
  try {
@@ -2887,33 +2866,33 @@ module.exports.__wbg_isexistingfile_d940522bc2dc6e49 = function() { return handl
2887
2866
  }
2888
2867
  }, arguments) };
2889
2868
 
2890
- module.exports.__wbg_processapicall_e861a088302c11e9 = function(arg0, arg1, arg2) {
2869
+ module.exports.__wbg_processapicall_f717f116b6d2591a = function(arg0, arg1, arg2) {
2891
2870
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2892
2871
  };
2893
2872
 
2894
- module.exports.__wbg_processapierror_adb5d666d18435ac = function(arg0, arg1, arg2) {
2873
+ module.exports.__wbg_processapierror_a3c4cfc5b5697cb0 = function(arg0, arg1, arg2) {
2895
2874
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2896
2875
  };
2897
2876
 
2898
- module.exports.__wbg_processapisuccess_b0fda7748cc0a144 = function(arg0, arg1, arg2) {
2877
+ module.exports.__wbg_processapisuccess_b9c631c10e6f60f3 = function(arg0, arg1, arg2) {
2899
2878
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2900
2879
  };
2901
2880
 
2902
- module.exports.__wbg_sendmessagetoall_9f875c9bb56f1dfd = function(arg0, arg1) {
2881
+ module.exports.__wbg_sendmessagetoall_0fefcdd7e321e20d = function(arg0, arg1) {
2903
2882
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2904
2883
  };
2905
2884
 
2906
- module.exports.__wbg_disconnectfrompeer_b5a5088e7e21977d = function() { return handleError(function (arg0) {
2885
+ module.exports.__wbg_disconnectfrompeer_bf11125180030965 = function() { return handleError(function (arg0) {
2907
2886
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2908
2887
  return addHeapObject(ret);
2909
2888
  }, arguments) };
2910
2889
 
2911
- module.exports.__wbg_loadblockfilelist_60cf3ac3d0b7a6ff = function() { return handleError(function () {
2890
+ module.exports.__wbg_loadblockfilelist_db1ce64c301d7362 = function() { return handleError(function () {
2912
2891
  const ret = MsgHandler.load_block_file_list();
2913
2892
  return addHeapObject(ret);
2914
2893
  }, arguments) };
2915
2894
 
2916
- module.exports.__wbg_sendinterfaceevent_c2b2936b088e567c = function(arg0, arg1, arg2, arg3, arg4) {
2895
+ module.exports.__wbg_sendinterfaceevent_83db5689d68d05e9 = function(arg0, arg1, arg2, arg3, arg4) {
2917
2896
  let deferred0_0;
2918
2897
  let deferred0_1;
2919
2898
  let deferred1_0;
@@ -2930,7 +2909,7 @@ module.exports.__wbg_sendinterfaceevent_c2b2936b088e567c = function(arg0, arg1,
2930
2909
  }
2931
2910
  };
2932
2911
 
2933
- module.exports.__wbg_sendblocksuccess_eb9fa854db9156fe = function(arg0, arg1, arg2) {
2912
+ module.exports.__wbg_sendblocksuccess_d5094f7101228215 = function(arg0, arg1, arg2) {
2934
2913
  let deferred0_0;
2935
2914
  let deferred0_1;
2936
2915
  try {
@@ -2942,11 +2921,11 @@ module.exports.__wbg_sendblocksuccess_eb9fa854db9156fe = function(arg0, arg1, ar
2942
2921
  }
2943
2922
  };
2944
2923
 
2945
- module.exports.__wbg_sendwalletupdate_9b7bf5e3e94de9bd = function() {
2924
+ module.exports.__wbg_sendwalletupdate_18f247a8d4e8229d = function() {
2946
2925
  MsgHandler.send_wallet_update();
2947
2926
  };
2948
2927
 
2949
- module.exports.__wbg_sendnewversionalert_0aed290da1a5b71b = function(arg0, arg1, arg2) {
2928
+ module.exports.__wbg_sendnewversionalert_19c6e66d6e3c6e42 = function(arg0, arg1, arg2) {
2950
2929
  let deferred0_0;
2951
2930
  let deferred0_1;
2952
2931
  try {
@@ -2958,15 +2937,15 @@ module.exports.__wbg_sendnewversionalert_0aed290da1a5b71b = function(arg0, arg1,
2958
2937
  }
2959
2938
  };
2960
2939
 
2961
- module.exports.__wbg_sendblockfetchstatusevent_8256391a1ac06325 = function(arg0) {
2940
+ module.exports.__wbg_sendblockfetchstatusevent_c287b426456f1ec6 = function(arg0) {
2962
2941
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2963
2942
  };
2964
2943
 
2965
- module.exports.__wbg_sendnewchaindetectedevent_b9a4c1d850cffb31 = function() {
2944
+ module.exports.__wbg_sendnewchaindetectedevent_8e8b1e467a700504 = function() {
2966
2945
  MsgHandler.send_new_chain_detected_event();
2967
2946
  };
2968
2947
 
2969
- module.exports.__wbg_fetchblockfrompeer_47df0e28715e3015 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2948
+ module.exports.__wbg_fetchblockfrompeer_c1963cae6892ee80 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2970
2949
  let deferred0_0;
2971
2950
  let deferred0_1;
2972
2951
  try {
@@ -2979,7 +2958,7 @@ module.exports.__wbg_fetchblockfrompeer_47df0e28715e3015 = function() { return h
2979
2958
  }
2980
2959
  }, arguments) };
2981
2960
 
2982
- module.exports.__wbg_ensuredirectoryexists_0267cf2a75fa8138 = function() { return handleError(function (arg0, arg1) {
2961
+ module.exports.__wbg_ensuredirectoryexists_6c03e2440e0d5f37 = function() { return handleError(function (arg0, arg1) {
2983
2962
  let deferred0_0;
2984
2963
  let deferred0_1;
2985
2964
  try {
@@ -2991,11 +2970,32 @@ module.exports.__wbg_ensuredirectoryexists_0267cf2a75fa8138 = function() { retur
2991
2970
  }
2992
2971
  }, arguments) };
2993
2972
 
2994
- module.exports.__wbg_wasmhop_new = function(arg0) {
2995
- const ret = WasmHop.__wrap(arg0);
2973
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2974
+ const ret = WasmPeerService.__wrap(arg0);
2975
+ return addHeapObject(ret);
2976
+ };
2977
+
2978
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2979
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2996
2980
  return addHeapObject(ret);
2997
2981
  };
2998
2982
 
2983
+ module.exports.__wbindgen_is_object = function(arg0) {
2984
+ const val = getObject(arg0);
2985
+ const ret = typeof(val) === 'object' && val !== null;
2986
+ return ret;
2987
+ };
2988
+
2989
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2990
+ const ret = getObject(arg0) === undefined;
2991
+ return ret;
2992
+ };
2993
+
2994
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2995
+ const ret = getObject(arg0) in getObject(arg1);
2996
+ return ret;
2997
+ };
2998
+
2999
2999
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3000
3000
  const ret = getObject(arg0) == getObject(arg1);
3001
3001
  return ret;
@@ -3372,8 +3372,8 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
3372
3372
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3373
3373
  };
3374
3374
 
3375
- module.exports.__wbindgen_closure_wrapper1618 = function(arg0, arg1, arg2) {
3376
- const ret = makeMutClosure(arg0, arg1, 602, __wbg_adapter_38);
3375
+ module.exports.__wbindgen_closure_wrapper1585 = function(arg0, arg1, arg2) {
3376
+ const ret = makeMutClosure(arg0, arg1, 594, __wbg_adapter_38);
3377
3377
  return addHeapObject(ret);
3378
3378
  };
3379
3379