saito-wasm 0.2.172 → 0.2.174

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,9 +1,29 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-d2385e3b1368ba5c/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ae65b4fbc9a49f9c/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
+ const heap = new Array(128).fill(undefined);
8
+
9
+ heap.push(undefined, null, true, false);
10
+
11
+ function getObject(idx) { return heap[idx]; }
12
+
13
+ let heap_next = heap.length;
14
+
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
19
+ }
20
+
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
26
+
7
27
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
8
28
 
9
29
  cachedTextDecoder.decode();
@@ -22,12 +42,6 @@ function getStringFromWasm0(ptr, len) {
22
42
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
23
43
  }
24
44
 
25
- const heap = new Array(128).fill(undefined);
26
-
27
- heap.push(undefined, null, true, false);
28
-
29
- let heap_next = heap.length;
30
-
31
45
  function addHeapObject(obj) {
32
46
  if (heap_next === heap.length) heap.push(heap.length + 1);
33
47
  const idx = heap_next;
@@ -37,20 +51,6 @@ function addHeapObject(obj) {
37
51
  return idx;
38
52
  }
39
53
 
40
- function getObject(idx) { return heap[idx]; }
41
-
42
- function dropObject(idx) {
43
- if (idx < 132) return;
44
- heap[idx] = heap_next;
45
- heap_next = idx;
46
- }
47
-
48
- function takeObject(idx) {
49
- const ret = getObject(idx);
50
- dropObject(idx);
51
- return ret;
52
- }
53
-
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -243,19 +243,25 @@ function addBorrowedObject(obj) {
243
243
  return stack_pointer;
244
244
  }
245
245
  /**
246
- * @returns {Promise<Array<any>>}
246
+ * @param {Uint8Array} buffer
247
+ * @param {Uint8Array} hash
248
+ * @param {bigint} block_id
249
+ * @param {bigint} peer_index
250
+ * @returns {Promise<void>}
247
251
  */
248
- module.exports.get_mempool_txs = function() {
249
- const ret = wasm.get_mempool_txs();
252
+ module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
253
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
250
254
  return takeObject(ret);
251
255
  };
252
256
 
253
257
  /**
258
+ * @param {Uint8Array} buffer
259
+ * @param {number} msg_index
254
260
  * @param {bigint} peer_index
255
261
  * @returns {Promise<void>}
256
262
  */
257
- module.exports.remove_stun_peer = function(peer_index) {
258
- const ret = wasm.remove_stun_peer(peer_index);
263
+ module.exports.send_api_call = function(buffer, msg_index, peer_index) {
264
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
259
265
  return takeObject(ret);
260
266
  };
261
267
 
@@ -272,20 +278,13 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
272
278
  };
273
279
 
274
280
  /**
275
- * @param {Array<any>} keys
276
- * @returns {Promise<WasmBalanceSnapshot>}
277
- */
278
- module.exports.get_balance_snapshot = function(keys) {
279
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
280
- return takeObject(ret);
281
- };
282
-
283
- /**
284
- * @param {bigint} peer_index
285
- * @returns {Promise<WasmPeer | undefined>}
281
+ * @param {number} major
282
+ * @param {number} minor
283
+ * @param {number} patch
284
+ * @returns {Promise<void>}
286
285
  */
287
- module.exports.get_peer = function(peer_index) {
288
- const ret = wasm.get_peer(peer_index);
286
+ module.exports.set_wallet_version = function(major, minor, patch) {
287
+ const ret = wasm.set_wallet_version(major, minor, patch);
289
288
  return takeObject(ret);
290
289
  };
291
290
 
@@ -298,11 +297,10 @@ module.exports.get_stats = function() {
298
297
  };
299
298
 
300
299
  /**
301
- * @param {Uint8Array} buffer
302
- * @returns {string}
300
+ * @returns {Promise<string>}
303
301
  */
304
- module.exports.hash = function(buffer) {
305
- const ret = wasm.hash(addHeapObject(buffer));
302
+ module.exports.get_peer_stats = function() {
303
+ const ret = wasm.get_peer_stats();
306
304
  return takeObject(ret);
307
305
  };
308
306
 
@@ -316,52 +314,48 @@ module.exports.is_valid_public_key = function(key) {
316
314
  };
317
315
 
318
316
  /**
319
- * @param {Uint8Array} buffer
320
- * @param {string} signature
321
- * @param {string} public_key
322
- * @returns {boolean}
323
- */
324
- module.exports.verify_signature = function(buffer, signature, public_key) {
325
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
326
- return ret !== 0;
327
- };
328
-
329
- /**
330
- * @param {bigint} peer_index
331
- * @param {string} ip
332
- * @returns {Promise<void>}
317
+ * @param {bigint} amt
318
+ * @param {string} slip1_utxo_key
319
+ * @param {string} slip2_utxo_key
320
+ * @param {string} slip3_utxo_key
321
+ * @param {string} recipient_public_key
322
+ * @param {Uint8Array} tx_msg
323
+ * @returns {Promise<WasmTransaction>}
333
324
  */
334
- module.exports.process_new_peer = function(peer_index, ip) {
335
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
325
+ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
326
+ 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));
336
327
  return takeObject(ret);
337
328
  };
338
329
 
339
330
  /**
340
- * @param {bigint} threshold
331
+ * @param {bigint} peer_index
341
332
  * @returns {Promise<void>}
342
333
  */
343
- module.exports.write_issuance_file = function(threshold) {
344
- const ret = wasm.write_issuance_file(threshold);
334
+ module.exports.process_peer_disconnection = function(peer_index) {
335
+ const ret = wasm.process_peer_disconnection(peer_index);
345
336
  return takeObject(ret);
346
337
  };
347
338
 
348
339
  /**
349
- * @returns {string}
340
+ * @param {string} nft_id_hex
341
+ * @param {Uint8Array} tx_msg
342
+ * @returns {Promise<WasmTransaction>}
350
343
  */
351
- module.exports.generate_private_key = function() {
352
- const ret = wasm.generate_private_key();
344
+ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
345
+ const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
+ const len0 = WASM_VECTOR_LEN;
347
+ const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
353
348
  return takeObject(ret);
354
349
  };
355
350
 
356
351
  /**
357
- * @param {Uint8Array} buffer
358
352
  * @param {string} private_key
359
353
  * @returns {string}
360
354
  */
361
- module.exports.sign_buffer = function(buffer, private_key) {
355
+ module.exports.generate_public_key = function(private_key) {
362
356
  try {
363
357
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
364
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
358
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
365
359
  var r0 = getInt32Memory0()[retptr / 4 + 0];
366
360
  var r1 = getInt32Memory0()[retptr / 4 + 1];
367
361
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -375,314 +369,313 @@ module.exports.sign_buffer = function(buffer, private_key) {
375
369
  };
376
370
 
377
371
  /**
378
- * @returns {Promise<string>}
372
+ * @param {bigint} peer_index
373
+ * @param {string} public_key
374
+ * @returns {Promise<void>}
379
375
  */
380
- module.exports.get_peer_stats = function() {
381
- const ret = wasm.get_peer_stats();
376
+ module.exports.process_stun_peer = function(peer_index, public_key) {
377
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
382
378
  return takeObject(ret);
383
379
  };
384
380
 
385
381
  /**
386
- * @returns {Promise<WasmBlockchain>}
382
+ * @param {Array<any>} keys
383
+ * @returns {Promise<WasmBalanceSnapshot>}
387
384
  */
388
- module.exports.get_blockchain = function() {
389
- const ret = wasm.get_blockchain();
385
+ module.exports.get_balance_snapshot = function(keys) {
386
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
390
387
  return takeObject(ret);
391
388
  };
392
389
 
393
390
  /**
394
- * @param {WasmBalanceSnapshot} snapshot
395
- * @returns {Promise<void>}
391
+ * @returns {Promise<WasmWallet>}
396
392
  */
397
- module.exports.update_from_balance_snapshot = function(snapshot) {
398
- _assertClass(snapshot, WasmBalanceSnapshot);
399
- var ptr0 = snapshot.__destroy_into_raw();
400
- const ret = wasm.update_from_balance_snapshot(ptr0);
393
+ module.exports.get_wallet = function() {
394
+ const ret = wasm.get_wallet();
395
+ return takeObject(ret);
396
+ };
397
+
398
+ /**
399
+ * @param {string} config_json
400
+ * @param {string} private_key
401
+ * @param {number} log_level_num
402
+ * @param {bigint} hasten_multiplier
403
+ * @param {boolean} delete_old_blocks
404
+ * @returns {Promise<any>}
405
+ */
406
+ module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
407
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
401
408
  return takeObject(ret);
402
409
  };
403
410
 
404
411
  /**
412
+ * @param {bigint} peer_index
405
413
  * @returns {Promise<void>}
406
414
  */
407
- module.exports.start_from_received_ghost_chain = function() {
408
- const ret = wasm.start_from_received_ghost_chain();
415
+ module.exports.remove_stun_peer = function(peer_index) {
416
+ const ret = wasm.remove_stun_peer(peer_index);
409
417
  return takeObject(ret);
410
418
  };
411
419
 
412
420
  /**
413
- * @returns {Promise<string>}
421
+ * @param {bigint} num
422
+ * @param {bigint} deposit
423
+ * @param {Uint8Array} tx_msg
424
+ * @param {bigint} fee
425
+ * @param {string} recipient_public_key
426
+ * @param {string} nft_type
427
+ * @returns {Promise<WasmTransaction>}
414
428
  */
415
- module.exports.get_congestion_stats = function() {
416
- const ret = wasm.get_congestion_stats();
429
+ module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
430
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
417
431
  return takeObject(ret);
418
432
  };
419
433
 
420
434
  /**
421
- * @returns {Promise<Array<any>>}
435
+ * @param {string} slip1_utxo_key
436
+ * @param {string} slip2_utxo_key
437
+ * @param {string} slip3_utxo_key
438
+ * @returns {Promise<WasmTransaction>}
422
439
  */
423
- module.exports.get_peers = function() {
424
- const ret = wasm.get_peers();
440
+ module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
441
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
425
442
  return takeObject(ret);
426
443
  };
427
444
 
428
445
  /**
429
- * @param {Uint8Array} buffer
430
- * @param {Uint8Array} hash
431
- * @param {bigint} block_id
432
- * @param {bigint} peer_index
446
+ * @param {bigint} current_time
433
447
  * @returns {Promise<void>}
434
448
  */
435
- module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
436
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
449
+ module.exports.process_stat_interval = function(current_time) {
450
+ const ret = wasm.process_stat_interval(current_time);
437
451
  return takeObject(ret);
438
452
  };
439
453
 
440
454
  /**
441
- * @param {string} public_key
442
- * @returns {Promise<Array<any>>}
455
+ * @param {Array<any>} public_keys
456
+ * @param {BigUint64Array} amounts
457
+ * @param {bigint} fee
458
+ * @param {boolean} _force_merge
459
+ * @returns {Promise<WasmTransaction>}
443
460
  */
444
- module.exports.get_account_slips = function(public_key) {
445
- const ret = wasm.get_account_slips(addHeapObject(public_key));
461
+ module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
462
+ const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
446
463
  return takeObject(ret);
447
464
  };
448
465
 
449
466
  /**
450
- * @returns {Promise<WasmWallet>}
467
+ * @returns {Promise<bigint>}
451
468
  */
452
- module.exports.get_wallet = function() {
453
- const ret = wasm.get_wallet();
469
+ module.exports.get_next_peer_index = function() {
470
+ const ret = wasm.get_next_peer_index();
454
471
  return takeObject(ret);
455
472
  };
456
473
 
457
474
  /**
458
- * @param {Uint8Array} hash
459
- * @param {bigint} block_id
460
- * @param {bigint} peer_index
475
+ * @param {bigint} duration_in_ms
461
476
  * @returns {Promise<void>}
462
477
  */
463
- module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
464
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
478
+ module.exports.process_timer_event = function(duration_in_ms) {
479
+ const ret = wasm.process_timer_event(duration_in_ms);
465
480
  return takeObject(ret);
466
481
  };
467
482
 
468
483
  /**
469
- * @param {bigint} num
470
- * @param {bigint} deposit
471
- * @param {Uint8Array} tx_msg
472
- * @param {bigint} fee
473
- * @param {string} recipient_public_key
474
- * @param {string} nft_type
475
- * @returns {Promise<WasmTransaction>}
484
+ * @returns {Promise<any>}
476
485
  */
477
- module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
478
- const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
486
+ module.exports.get_confirmations = function() {
487
+ const ret = wasm.get_confirmations();
479
488
  return takeObject(ret);
480
489
  };
481
490
 
482
491
  /**
483
492
  * @param {Uint8Array} buffer
484
- * @param {number} msg_index
485
493
  * @param {bigint} peer_index
486
494
  * @returns {Promise<void>}
487
495
  */
488
- module.exports.send_api_call = function(buffer, msg_index, peer_index) {
489
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
496
+ module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
497
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
490
498
  return takeObject(ret);
491
499
  };
492
500
 
493
501
  /**
494
- * @param {string} config_json
495
- * @param {string} private_key
496
- * @param {number} log_level_num
497
- * @param {bigint} hasten_multiplier
498
- * @param {boolean} delete_old_blocks
499
- * @returns {Promise<any>}
502
+ * @param {Uint8Array} buffer
503
+ * @param {number} msg_index
504
+ * @param {bigint} peer_index
505
+ * @returns {Promise<void>}
500
506
  */
501
- module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
502
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
507
+ module.exports.send_api_success = function(buffer, msg_index, peer_index) {
508
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
503
509
  return takeObject(ret);
504
510
  };
505
511
 
506
512
  /**
507
- * @returns {Promise<boolean>}
513
+ * @returns {Promise<Array<any>>}
508
514
  */
509
- module.exports.produce_block_with_gt = function() {
510
- const ret = wasm.produce_block_with_gt();
515
+ module.exports.get_nft_list = function() {
516
+ const ret = wasm.get_nft_list();
511
517
  return takeObject(ret);
512
518
  };
513
519
 
514
520
  /**
515
- * @param {bigint} peer_index
521
+ * @param {Uint8Array} buffer
522
+ * @param {string} private_key
523
+ * @returns {string}
524
+ */
525
+ module.exports.sign_buffer = function(buffer, private_key) {
526
+ try {
527
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
528
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
529
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
530
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
531
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
532
+ if (r2) {
533
+ throw takeObject(r1);
534
+ }
535
+ return takeObject(r0);
536
+ } finally {
537
+ wasm.__wbindgen_add_to_stack_pointer(16);
538
+ }
539
+ };
540
+
541
+ /**
542
+ * @param {WasmBalanceSnapshot} snapshot
516
543
  * @returns {Promise<void>}
517
544
  */
518
- module.exports.process_peer_disconnection = function(peer_index) {
519
- const ret = wasm.process_peer_disconnection(peer_index);
545
+ module.exports.update_from_balance_snapshot = function(snapshot) {
546
+ _assertClass(snapshot, WasmBalanceSnapshot);
547
+ var ptr0 = snapshot.__destroy_into_raw();
548
+ const ret = wasm.update_from_balance_snapshot(ptr0);
520
549
  return takeObject(ret);
521
550
  };
522
551
 
523
552
  /**
524
- * @returns {Promise<bigint>}
553
+ * @param {WasmTransaction} tx
554
+ * @returns {Promise<void>}
525
555
  */
526
- module.exports.get_next_peer_index = function() {
527
- const ret = wasm.get_next_peer_index();
556
+ module.exports.propagate_transaction = function(tx) {
557
+ _assertClass(tx, WasmTransaction);
558
+ const ret = wasm.propagate_transaction(tx.__wbg_ptr);
528
559
  return takeObject(ret);
529
560
  };
530
561
 
531
562
  /**
532
- * @param {string} slip1_utxo_key
533
- * @param {string} slip2_utxo_key
534
- * @param {string} slip3_utxo_key
535
- * @returns {Promise<WasmTransaction>}
563
+ * @returns {Promise<string>}
536
564
  */
537
- module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
538
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
565
+ module.exports.get_latest_block_hash = function() {
566
+ const ret = wasm.get_latest_block_hash();
539
567
  return takeObject(ret);
540
568
  };
541
569
 
542
570
  /**
543
- * @param {number} major
544
- * @param {number} minor
545
- * @param {number} patch
546
- * @returns {Promise<void>}
571
+ * @returns {Promise<boolean>}
547
572
  */
548
- module.exports.set_wallet_version = function(major, minor, patch) {
549
- const ret = wasm.set_wallet_version(major, minor, patch);
573
+ module.exports.produce_block_with_gt = function() {
574
+ const ret = wasm.produce_block_with_gt();
550
575
  return takeObject(ret);
551
576
  };
552
577
 
553
578
  /**
554
- * @returns {Promise<Array<any>>}
579
+ * @returns {Promise<boolean>}
555
580
  */
556
- module.exports.get_nft_list = function() {
557
- const ret = wasm.get_nft_list();
581
+ module.exports.produce_block_without_gt = function() {
582
+ const ret = wasm.produce_block_without_gt();
558
583
  return takeObject(ret);
559
584
  };
560
585
 
561
586
  /**
562
- * @returns {Promise<any>}
587
+ * @param {Uint8Array} buffer
588
+ * @param {string} signature
589
+ * @param {string} public_key
590
+ * @returns {boolean}
563
591
  */
564
- module.exports.get_confirmations = function() {
565
- const ret = wasm.get_confirmations();
566
- return takeObject(ret);
592
+ module.exports.verify_signature = function(buffer, signature, public_key) {
593
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
594
+ return ret !== 0;
567
595
  };
568
596
 
569
597
  /**
570
- * @param {Uint8Array} buffer
571
- * @param {number} msg_index
572
- * @param {bigint} peer_index
573
- * @returns {Promise<void>}
598
+ * @returns {string}
574
599
  */
575
- module.exports.send_api_error = function(buffer, msg_index, peer_index) {
576
- const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
600
+ module.exports.generate_private_key = function() {
601
+ const ret = wasm.generate_private_key();
577
602
  return takeObject(ret);
578
603
  };
579
604
 
580
605
  /**
581
- * @param {Uint8Array} buffer
582
- * @param {bigint} peer_index
606
+ * @param {bigint} threshold
583
607
  * @returns {Promise<void>}
584
608
  */
585
- module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
586
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
609
+ module.exports.write_issuance_file = function(threshold) {
610
+ const ret = wasm.write_issuance_file(threshold);
587
611
  return takeObject(ret);
588
612
  };
589
613
 
590
614
  /**
591
- * @param {bigint} amt
592
- * @param {string} slip1_utxo_key
593
- * @param {string} slip2_utxo_key
594
- * @param {string} slip3_utxo_key
595
- * @param {string} recipient_public_key
596
- * @param {Uint8Array} tx_msg
597
- * @returns {Promise<WasmTransaction>}
615
+ * @param {Uint8Array} buffer
616
+ * @returns {string}
598
617
  */
599
- module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
600
- 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));
618
+ module.exports.hash = function(buffer) {
619
+ const ret = wasm.hash(addHeapObject(buffer));
601
620
  return takeObject(ret);
602
621
  };
603
622
 
604
623
  /**
605
- * @returns {Promise<boolean>}
624
+ * @returns {Promise<void>}
606
625
  */
607
- module.exports.produce_block_without_gt = function() {
608
- const ret = wasm.produce_block_without_gt();
626
+ module.exports.disable_producing_blocks_by_timer = function() {
627
+ const ret = wasm.disable_producing_blocks_by_timer();
609
628
  return takeObject(ret);
610
629
  };
611
630
 
612
- /**
613
- * @param {string} private_key
614
- * @returns {string}
615
- */
616
- module.exports.generate_public_key = function(private_key) {
617
- try {
618
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
619
- wasm.generate_public_key(retptr, addHeapObject(private_key));
620
- var r0 = getInt32Memory0()[retptr / 4 + 0];
621
- var r1 = getInt32Memory0()[retptr / 4 + 1];
622
- var r2 = getInt32Memory0()[retptr / 4 + 2];
623
- if (r2) {
624
- throw takeObject(r1);
625
- }
626
- return takeObject(r0);
627
- } finally {
628
- wasm.__wbindgen_add_to_stack_pointer(16);
629
- }
630
- };
631
-
632
631
  /**
633
632
  * @returns {Promise<string>}
634
633
  */
635
- module.exports.get_latest_block_hash = function() {
636
- const ret = wasm.get_latest_block_hash();
634
+ module.exports.get_congestion_stats = function() {
635
+ const ret = wasm.get_congestion_stats();
637
636
  return takeObject(ret);
638
637
  };
639
638
 
640
639
  /**
640
+ * @param {Uint8Array} hash
641
+ * @param {bigint} block_id
642
+ * @param {bigint} peer_index
641
643
  * @returns {Promise<void>}
642
644
  */
643
- module.exports.disable_producing_blocks_by_timer = function() {
644
- const ret = wasm.disable_producing_blocks_by_timer();
645
+ module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
646
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
645
647
  return takeObject(ret);
646
648
  };
647
649
 
648
650
  /**
649
- * @param {WasmTransaction} tx
650
- * @returns {Promise<void>}
651
+ * @returns {Promise<WasmBlockchain>}
651
652
  */
652
- module.exports.propagate_transaction = function(tx) {
653
- _assertClass(tx, WasmTransaction);
654
- const ret = wasm.propagate_transaction(tx.__wbg_ptr);
653
+ module.exports.get_blockchain = function() {
654
+ const ret = wasm.get_blockchain();
655
655
  return takeObject(ret);
656
656
  };
657
657
 
658
658
  /**
659
- * @param {bigint} peer_index
660
- * @param {string} public_key
661
659
  * @returns {Promise<void>}
662
660
  */
663
- module.exports.process_stun_peer = function(peer_index, public_key) {
664
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
661
+ module.exports.start_from_received_ghost_chain = function() {
662
+ const ret = wasm.start_from_received_ghost_chain();
665
663
  return takeObject(ret);
666
664
  };
667
665
 
668
666
  /**
669
- * @param {string} nft_id_hex
670
- * @param {Uint8Array} tx_msg
671
- * @returns {Promise<WasmTransaction>}
667
+ * @returns {Promise<Array<any>>}
672
668
  */
673
- module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
674
- const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
675
- const len0 = WASM_VECTOR_LEN;
676
- const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
669
+ module.exports.get_mempool_txs = function() {
670
+ const ret = wasm.get_mempool_txs();
677
671
  return takeObject(ret);
678
672
  };
679
673
 
680
674
  /**
681
- * @param {bigint} current_time
682
- * @returns {Promise<void>}
675
+ * @returns {Promise<Array<any>>}
683
676
  */
684
- module.exports.process_stat_interval = function(current_time) {
685
- const ret = wasm.process_stat_interval(current_time);
677
+ module.exports.get_peers = function() {
678
+ const ret = wasm.get_peers();
686
679
  return takeObject(ret);
687
680
  };
688
681
 
@@ -701,43 +694,50 @@ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_u
701
694
  };
702
695
 
703
696
  /**
704
- * @param {Array<any>} public_keys
705
- * @param {BigUint64Array} amounts
706
- * @param {bigint} fee
707
- * @param {boolean} _force_merge
708
- * @returns {Promise<WasmTransaction>}
697
+ * @param {string} public_key
698
+ * @returns {Promise<Array<any>>}
709
699
  */
710
- module.exports.create_transaction_with_multiple_payments = function(public_keys, amounts, fee, _force_merge) {
711
- const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
700
+ module.exports.get_account_slips = function(public_key) {
701
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
712
702
  return takeObject(ret);
713
703
  };
714
704
 
715
705
  /**
716
- * @param {bigint} duration_in_ms
717
- * @returns {Promise<void>}
706
+ * @param {string} block_hash
707
+ * @returns {Promise<WasmBlock>}
718
708
  */
719
- module.exports.process_timer_event = function(duration_in_ms) {
720
- const ret = wasm.process_timer_event(duration_in_ms);
709
+ module.exports.get_block = function(block_hash) {
710
+ const ret = wasm.get_block(addHeapObject(block_hash));
711
+ return takeObject(ret);
712
+ };
713
+
714
+ /**
715
+ * @param {bigint} peer_index
716
+ * @returns {Promise<WasmPeer | undefined>}
717
+ */
718
+ module.exports.get_peer = function(peer_index) {
719
+ const ret = wasm.get_peer(peer_index);
721
720
  return takeObject(ret);
722
721
  };
723
722
 
724
723
  /**
725
- * @param {Uint8Array} buffer
726
- * @param {number} msg_index
727
724
  * @param {bigint} peer_index
725
+ * @param {string} ip
728
726
  * @returns {Promise<void>}
729
727
  */
730
- module.exports.send_api_success = function(buffer, msg_index, peer_index) {
731
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
728
+ module.exports.process_new_peer = function(peer_index, ip) {
729
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
732
730
  return takeObject(ret);
733
731
  };
734
732
 
735
733
  /**
736
- * @param {string} block_hash
737
- * @returns {Promise<WasmBlock>}
734
+ * @param {Uint8Array} buffer
735
+ * @param {number} msg_index
736
+ * @param {bigint} peer_index
737
+ * @returns {Promise<void>}
738
738
  */
739
- module.exports.get_block = function(block_hash) {
740
- const ret = wasm.get_block(addHeapObject(block_hash));
739
+ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
740
+ const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
741
741
  return takeObject(ret);
742
742
  };
743
743
 
@@ -2680,47 +2680,38 @@ class WasmWalletSlip {
2680
2680
  }
2681
2681
  module.exports.WasmWalletSlip = WasmWalletSlip;
2682
2682
 
2683
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2684
- const ret = getStringFromWasm0(arg0, arg1);
2685
- return addHeapObject(ret);
2686
- };
2687
-
2688
2683
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2689
2684
  takeObject(arg0);
2690
2685
  };
2691
2686
 
2692
- module.exports.__wbg_wasmblock_new = function(arg0) {
2693
- const ret = WasmBlock.__wrap(arg0);
2687
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2688
+ const ret = WasmNFT.__wrap(arg0);
2694
2689
  return addHeapObject(ret);
2695
2690
  };
2696
2691
 
2697
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2698
- const ret = WasmTransaction.__wrap(arg0);
2692
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2693
+ const ret = getStringFromWasm0(arg0, arg1);
2699
2694
  return addHeapObject(ret);
2700
2695
  };
2701
2696
 
2702
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2703
- const ret = BigInt.asUintN(64, arg0);
2697
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2698
+ const ret = WasmTransaction.__wrap(arg0);
2704
2699
  return addHeapObject(ret);
2705
2700
  };
2706
2701
 
2707
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2708
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2702
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2703
+ const ret = WasmPeer.__wrap(arg0);
2709
2704
  return addHeapObject(ret);
2710
2705
  };
2711
2706
 
2712
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2713
- const ret = WasmBlockchain.__wrap(arg0);
2707
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2708
+ const ret = BigInt.asUintN(64, arg0);
2714
2709
  return addHeapObject(ret);
2715
2710
  };
2716
2711
 
2717
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2718
- const obj = getObject(arg1);
2719
- const ret = typeof(obj) === 'string' ? obj : undefined;
2720
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2721
- var len1 = WASM_VECTOR_LEN;
2722
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2723
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2712
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2713
+ const ret = getObject(arg0);
2714
+ return addHeapObject(ret);
2724
2715
  };
2725
2716
 
2726
2717
  module.exports.__wbg_wasmwalletslip_new = function(arg0) {
@@ -2728,19 +2719,23 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2728
2719
  return addHeapObject(ret);
2729
2720
  };
2730
2721
 
2731
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2732
- const ret = WasmWallet.__wrap(arg0);
2722
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2723
+ const ret = WasmBlock.__wrap(arg0);
2733
2724
  return addHeapObject(ret);
2734
2725
  };
2735
2726
 
2736
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2737
- const ret = WasmPeer.__wrap(arg0);
2727
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2728
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2738
2729
  return addHeapObject(ret);
2739
2730
  };
2740
2731
 
2741
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2742
- const ret = getObject(arg0);
2743
- return addHeapObject(ret);
2732
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2733
+ const obj = getObject(arg1);
2734
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2735
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2736
+ var len1 = WASM_VECTOR_LEN;
2737
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2738
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2744
2739
  };
2745
2740
 
2746
2741
  module.exports.__wbg_wasmslip_new = function(arg0) {
@@ -2748,8 +2743,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2748
2743
  return addHeapObject(ret);
2749
2744
  };
2750
2745
 
2751
- module.exports.__wbg_wasmnft_new = function(arg0) {
2752
- const ret = WasmNFT.__wrap(arg0);
2746
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2747
+ const ret = WasmBlockchain.__wrap(arg0);
2748
+ return addHeapObject(ret);
2749
+ };
2750
+
2751
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2752
+ const ret = WasmWallet.__wrap(arg0);
2753
2753
  return addHeapObject(ret);
2754
2754
  };
2755
2755
 
@@ -2774,7 +2774,7 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
2774
2774
  return addHeapObject(ret);
2775
2775
  };
2776
2776
 
2777
- module.exports.__wbg_flushdata_92ac04166c91a15f = function(arg0, arg1) {
2777
+ module.exports.__wbg_flushdata_69f5339cf155fcf4 = function(arg0, arg1) {
2778
2778
  let deferred0_0;
2779
2779
  let deferred0_1;
2780
2780
  try {
@@ -2786,7 +2786,7 @@ module.exports.__wbg_flushdata_92ac04166c91a15f = function(arg0, arg1) {
2786
2786
  }
2787
2787
  };
2788
2788
 
2789
- module.exports.__wbg_readvalue_90364f7b3d978c70 = function() { return handleError(function (arg0, arg1) {
2789
+ module.exports.__wbg_readvalue_db587e79e6f3fb9e = function() { return handleError(function (arg0, arg1) {
2790
2790
  let deferred0_0;
2791
2791
  let deferred0_1;
2792
2792
  try {
@@ -2799,15 +2799,15 @@ module.exports.__wbg_readvalue_90364f7b3d978c70 = function() { return handleErro
2799
2799
  }
2800
2800
  }, arguments) };
2801
2801
 
2802
- module.exports.__wbg_loadwallet_7bf0714d74ae58ca = function() {
2802
+ module.exports.__wbg_loadwallet_9a8ac44bd0e449f2 = function() {
2803
2803
  MsgHandler.load_wallet();
2804
2804
  };
2805
2805
 
2806
- module.exports.__wbg_savewallet_aad7aa23a6e3d3ea = function() {
2806
+ module.exports.__wbg_savewallet_08659aa41a3a3b8c = function() {
2807
2807
  MsgHandler.save_wallet();
2808
2808
  };
2809
2809
 
2810
- module.exports.__wbg_writevalue_434a56c8c755c7f7 = function(arg0, arg1, arg2) {
2810
+ module.exports.__wbg_writevalue_829d6afba3d7e073 = function(arg0, arg1, arg2) {
2811
2811
  let deferred0_0;
2812
2812
  let deferred0_1;
2813
2813
  try {
@@ -2819,7 +2819,7 @@ module.exports.__wbg_writevalue_434a56c8c755c7f7 = function(arg0, arg1, arg2) {
2819
2819
  }
2820
2820
  };
2821
2821
 
2822
- module.exports.__wbg_appendvalue_ef25445ea7aa5547 = function(arg0, arg1, arg2) {
2822
+ module.exports.__wbg_appendvalue_717ada2450cd8353 = function(arg0, arg1, arg2) {
2823
2823
  let deferred0_0;
2824
2824
  let deferred0_1;
2825
2825
  try {
@@ -2831,7 +2831,7 @@ module.exports.__wbg_appendvalue_ef25445ea7aa5547 = function(arg0, arg1, arg2) {
2831
2831
  }
2832
2832
  };
2833
2833
 
2834
- module.exports.__wbg_removevalue_1ab6adf3d478d47d = function() { return handleError(function (arg0, arg1) {
2834
+ module.exports.__wbg_removevalue_5e61c5d5776e1642 = function() { return handleError(function (arg0, arg1) {
2835
2835
  let deferred0_0;
2836
2836
  let deferred0_1;
2837
2837
  try {
@@ -2844,11 +2844,11 @@ module.exports.__wbg_removevalue_1ab6adf3d478d47d = function() { return handleEr
2844
2844
  }
2845
2845
  }, arguments) };
2846
2846
 
2847
- module.exports.__wbg_sendmessage_fd89fdcc65002061 = function(arg0, arg1) {
2847
+ module.exports.__wbg_sendmessage_a2d8f51709ef90ba = function(arg0, arg1) {
2848
2848
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2849
2849
  };
2850
2850
 
2851
- module.exports.__wbg_connecttopeer_21362060cef5eda3 = function() { return handleError(function (arg0, arg1, arg2) {
2851
+ module.exports.__wbg_connecttopeer_044f65cc51be6b22 = function() { return handleError(function (arg0, arg1, arg2) {
2852
2852
  let deferred0_0;
2853
2853
  let deferred0_1;
2854
2854
  try {
@@ -2861,14 +2861,14 @@ module.exports.__wbg_connecttopeer_21362060cef5eda3 = function() { return handle
2861
2861
  }
2862
2862
  }, arguments) };
2863
2863
 
2864
- module.exports.__wbg_getmyservices_85df9f926e3733e1 = function() {
2864
+ module.exports.__wbg_getmyservices_1954474087b66484 = function() {
2865
2865
  const ret = MsgHandler.get_my_services();
2866
2866
  _assertClass(ret, WasmPeerServiceList);
2867
2867
  var ptr1 = ret.__destroy_into_raw();
2868
2868
  return ptr1;
2869
2869
  };
2870
2870
 
2871
- module.exports.__wbg_isexistingfile_0975acb4bc37b526 = function() { return handleError(function (arg0, arg1) {
2871
+ module.exports.__wbg_isexistingfile_b160b225b0ebf317 = function() { return handleError(function (arg0, arg1) {
2872
2872
  let deferred0_0;
2873
2873
  let deferred0_1;
2874
2874
  try {
@@ -2881,33 +2881,33 @@ module.exports.__wbg_isexistingfile_0975acb4bc37b526 = function() { return handl
2881
2881
  }
2882
2882
  }, arguments) };
2883
2883
 
2884
- module.exports.__wbg_processapicall_ab9e5e388fee9a7b = function(arg0, arg1, arg2) {
2884
+ module.exports.__wbg_processapicall_a09661040af24e29 = function(arg0, arg1, arg2) {
2885
2885
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2886
2886
  };
2887
2887
 
2888
- module.exports.__wbg_processapierror_11e0e60273b467f8 = function(arg0, arg1, arg2) {
2888
+ module.exports.__wbg_processapierror_c889a2b7d06c4549 = function(arg0, arg1, arg2) {
2889
2889
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2890
2890
  };
2891
2891
 
2892
- module.exports.__wbg_processapisuccess_43ffc82b662c3d70 = function(arg0, arg1, arg2) {
2892
+ module.exports.__wbg_processapisuccess_f458fbe6c019cc75 = function(arg0, arg1, arg2) {
2893
2893
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2894
2894
  };
2895
2895
 
2896
- module.exports.__wbg_sendmessagetoall_834ce6b1ee6e2349 = function(arg0, arg1) {
2896
+ module.exports.__wbg_sendmessagetoall_caeb7aa562fdcf58 = function(arg0, arg1) {
2897
2897
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2898
2898
  };
2899
2899
 
2900
- module.exports.__wbg_disconnectfrompeer_5d4d86a9711934ce = function() { return handleError(function (arg0) {
2900
+ module.exports.__wbg_disconnectfrompeer_77faa63c7da71011 = function() { return handleError(function (arg0) {
2901
2901
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2902
2902
  return addHeapObject(ret);
2903
2903
  }, arguments) };
2904
2904
 
2905
- module.exports.__wbg_loadblockfilelist_9b0508c4d8f1ec39 = function() { return handleError(function () {
2905
+ module.exports.__wbg_loadblockfilelist_d0b9744f9ef2f6e5 = function() { return handleError(function () {
2906
2906
  const ret = MsgHandler.load_block_file_list();
2907
2907
  return addHeapObject(ret);
2908
2908
  }, arguments) };
2909
2909
 
2910
- module.exports.__wbg_sendinterfaceevent_1e00e3d559fe276c = function(arg0, arg1, arg2, arg3, arg4) {
2910
+ module.exports.__wbg_sendinterfaceevent_6d41a333bfd8a21a = function(arg0, arg1, arg2, arg3, arg4) {
2911
2911
  let deferred0_0;
2912
2912
  let deferred0_1;
2913
2913
  let deferred1_0;
@@ -2924,7 +2924,7 @@ module.exports.__wbg_sendinterfaceevent_1e00e3d559fe276c = function(arg0, arg1,
2924
2924
  }
2925
2925
  };
2926
2926
 
2927
- module.exports.__wbg_sendblocksuccess_83826df6b037c48f = function(arg0, arg1, arg2) {
2927
+ module.exports.__wbg_sendblocksuccess_468375797025263d = function(arg0, arg1, arg2) {
2928
2928
  let deferred0_0;
2929
2929
  let deferred0_1;
2930
2930
  try {
@@ -2936,11 +2936,11 @@ module.exports.__wbg_sendblocksuccess_83826df6b037c48f = function(arg0, arg1, ar
2936
2936
  }
2937
2937
  };
2938
2938
 
2939
- module.exports.__wbg_sendwalletupdate_4283d7e6007f33e3 = function() {
2939
+ module.exports.__wbg_sendwalletupdate_f76f3cac797fc3dd = function() {
2940
2940
  MsgHandler.send_wallet_update();
2941
2941
  };
2942
2942
 
2943
- module.exports.__wbg_sendnewversionalert_cda1bd8ae6aa0de4 = function(arg0, arg1, arg2) {
2943
+ module.exports.__wbg_sendnewversionalert_6352ce612552e34f = function(arg0, arg1, arg2) {
2944
2944
  let deferred0_0;
2945
2945
  let deferred0_1;
2946
2946
  try {
@@ -2952,15 +2952,15 @@ module.exports.__wbg_sendnewversionalert_cda1bd8ae6aa0de4 = function(arg0, arg1,
2952
2952
  }
2953
2953
  };
2954
2954
 
2955
- module.exports.__wbg_sendblockfetchstatusevent_71e04f3cc7b890cc = function(arg0) {
2955
+ module.exports.__wbg_sendblockfetchstatusevent_c3fac19845f73f2d = function(arg0) {
2956
2956
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2957
2957
  };
2958
2958
 
2959
- module.exports.__wbg_sendnewchaindetectedevent_23c4451d625b4e58 = function() {
2959
+ module.exports.__wbg_sendnewchaindetectedevent_1ae7c31138b2d482 = function() {
2960
2960
  MsgHandler.send_new_chain_detected_event();
2961
2961
  };
2962
2962
 
2963
- module.exports.__wbg_fetchblockfrompeer_581983083ea4d34b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2963
+ module.exports.__wbg_fetchblockfrompeer_3cbbc387243e2582 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2964
2964
  let deferred0_0;
2965
2965
  let deferred0_1;
2966
2966
  try {
@@ -2973,7 +2973,7 @@ module.exports.__wbg_fetchblockfrompeer_581983083ea4d34b = function() { return h
2973
2973
  }
2974
2974
  }, arguments) };
2975
2975
 
2976
- module.exports.__wbg_ensuredirectoryexists_555fd844c3406afb = function() { return handleError(function (arg0, arg1) {
2976
+ module.exports.__wbg_ensuredirectoryexists_45bb4c871cc81be6 = function() { return handleError(function (arg0, arg1) {
2977
2977
  let deferred0_0;
2978
2978
  let deferred0_1;
2979
2979
  try {