saito-wasm 0.2.175 → 0.2.177

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,16 +1,12 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-c6993c19012bb0e6/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-466f9f7a003f28db/js/msg_handler.js`);
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]; }
7
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
12
8
 
13
- let WASM_VECTOR_LEN = 0;
9
+ cachedTextDecoder.decode();
14
10
 
15
11
  let cachedUint8Memory0 = null;
16
12
 
@@ -21,6 +17,30 @@ function getUint8Memory0() {
21
17
  return cachedUint8Memory0;
22
18
  }
23
19
 
20
+ function getStringFromWasm0(ptr, len) {
21
+ ptr = ptr >>> 0;
22
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
23
+ }
24
+
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
+ function addHeapObject(obj) {
32
+ if (heap_next === heap.length) heap.push(heap.length + 1);
33
+ const idx = heap_next;
34
+ heap_next = heap[idx];
35
+
36
+ heap[idx] = obj;
37
+ return idx;
38
+ }
39
+
40
+ function getObject(idx) { return heap[idx]; }
41
+
42
+ let WASM_VECTOR_LEN = 0;
43
+
24
44
  let cachedTextEncoder = new TextEncoder('utf-8');
25
45
 
26
46
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -88,8 +108,6 @@ function getInt32Memory0() {
88
108
  return cachedInt32Memory0;
89
109
  }
90
110
 
91
- let heap_next = heap.length;
92
-
93
111
  function dropObject(idx) {
94
112
  if (idx < 132) return;
95
113
  heap[idx] = heap_next;
@@ -102,24 +120,6 @@ function takeObject(idx) {
102
120
  return ret;
103
121
  }
104
122
 
105
- function addHeapObject(obj) {
106
- if (heap_next === heap.length) heap.push(heap.length + 1);
107
- const idx = heap_next;
108
- heap_next = heap[idx];
109
-
110
- heap[idx] = obj;
111
- return idx;
112
- }
113
-
114
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
115
-
116
- cachedTextDecoder.decode();
117
-
118
- function getStringFromWasm0(ptr, len) {
119
- ptr = ptr >>> 0;
120
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
121
- }
122
-
123
123
  let cachedFloat64Memory0 = null;
124
124
 
125
125
  function getFloat64Memory0() {
@@ -234,101 +234,107 @@ function _assertClass(instance, klass) {
234
234
  }
235
235
  return instance.ptr;
236
236
  }
237
+ /**
238
+ * @param {Uint8Array} buffer
239
+ * @param {number} msg_index
240
+ * @param {bigint} peer_index
241
+ * @returns {Promise<void>}
242
+ */
243
+ module.exports.send_api_call = function(buffer, msg_index, peer_index) {
244
+ const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
245
+ return takeObject(ret);
246
+ };
237
247
 
238
- let stack_pointer = 128;
239
-
240
- function addBorrowedObject(obj) {
241
- if (stack_pointer == 1) throw new Error('out of js stack');
242
- heap[--stack_pointer] = obj;
243
- return stack_pointer;
244
- }
245
248
  /**
246
- * @returns {Promise<string>}
249
+ * @param {bigint} peer_index
250
+ * @returns {Promise<void>}
247
251
  */
248
- module.exports.get_latest_block_hash = function() {
249
- const ret = wasm.get_latest_block_hash();
252
+ module.exports.remove_stun_peer = function(peer_index) {
253
+ const ret = wasm.remove_stun_peer(peer_index);
250
254
  return takeObject(ret);
251
255
  };
252
256
 
253
257
  /**
254
- * @param {string} public_key
255
258
  * @returns {Promise<Array<any>>}
256
259
  */
257
- module.exports.get_account_slips = function(public_key) {
258
- const ret = wasm.get_account_slips(addHeapObject(public_key));
260
+ module.exports.get_mempool_txs = function() {
261
+ const ret = wasm.get_mempool_txs();
259
262
  return takeObject(ret);
260
263
  };
261
264
 
262
265
  /**
263
- * @param {bigint} peer_index
264
- * @returns {Promise<void>}
266
+ * @param {string} key
267
+ * @returns {boolean}
265
268
  */
266
- module.exports.process_peer_disconnection = function(peer_index) {
267
- const ret = wasm.process_peer_disconnection(peer_index);
268
- return takeObject(ret);
269
+ module.exports.is_valid_public_key = function(key) {
270
+ const ret = wasm.is_valid_public_key(addHeapObject(key));
271
+ return ret !== 0;
269
272
  };
270
273
 
271
274
  /**
272
- * @returns {Promise<any>}
275
+ * @returns {Promise<boolean>}
273
276
  */
274
- module.exports.get_confirmations = function() {
275
- const ret = wasm.get_confirmations();
277
+ module.exports.produce_block_without_gt = function() {
278
+ const ret = wasm.produce_block_without_gt();
276
279
  return takeObject(ret);
277
280
  };
278
281
 
279
282
  /**
280
- * @param {bigint} amt
281
- * @param {string} slip1_utxo_key
282
- * @param {string} slip2_utxo_key
283
- * @param {string} slip3_utxo_key
284
- * @param {string} recipient_public_key
285
- * @param {Uint8Array} tx_msg
286
- * @returns {Promise<WasmTransaction>}
283
+ * @param {number} major
284
+ * @param {number} minor
285
+ * @param {number} patch
286
+ * @returns {Promise<void>}
287
287
  */
288
- module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
289
- 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));
288
+ module.exports.set_wallet_version = function(major, minor, patch) {
289
+ const ret = wasm.set_wallet_version(major, minor, patch);
290
290
  return takeObject(ret);
291
291
  };
292
292
 
293
293
  /**
294
- * @param {string} config_json
295
- * @param {string} private_key
296
- * @param {number} log_level_num
297
- * @param {bigint} hasten_multiplier
298
- * @param {boolean} delete_old_blocks
299
- * @returns {Promise<any>}
294
+ * @param {bigint} threshold
295
+ * @returns {Promise<void>}
300
296
  */
301
- module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
302
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
297
+ module.exports.write_issuance_file = function(threshold) {
298
+ const ret = wasm.write_issuance_file(threshold);
303
299
  return takeObject(ret);
304
300
  };
305
301
 
306
302
  /**
307
- * @param {WasmTransaction} tx
308
- * @returns {Promise<void>}
303
+ * @returns {Promise<Array<any>>}
309
304
  */
310
- module.exports.propagate_transaction = function(tx) {
311
- _assertClass(tx, WasmTransaction);
312
- const ret = wasm.propagate_transaction(tx.__wbg_ptr);
305
+ module.exports.get_peers = function() {
306
+ const ret = wasm.get_peers();
313
307
  return takeObject(ret);
314
308
  };
315
309
 
316
310
  /**
317
- * @param {Array<any>} keys
318
- * @returns {Promise<WasmBalanceSnapshot>}
311
+ * @param {string} public_key
312
+ * @returns {Promise<Array<any>>}
319
313
  */
320
- module.exports.get_balance_snapshot = function(keys) {
321
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
314
+ module.exports.get_account_slips = function(public_key) {
315
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
322
316
  return takeObject(ret);
323
317
  };
324
318
 
325
319
  /**
326
320
  * @param {Uint8Array} buffer
321
+ * @param {string} private_key
327
322
  * @returns {string}
328
323
  */
329
- module.exports.hash = function(buffer) {
330
- const ret = wasm.hash(addHeapObject(buffer));
331
- return takeObject(ret);
324
+ module.exports.sign_buffer = function(buffer, private_key) {
325
+ try {
326
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
327
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
328
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
329
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
330
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
331
+ if (r2) {
332
+ throw takeObject(r1);
333
+ }
334
+ return takeObject(r0);
335
+ } finally {
336
+ wasm.__wbindgen_add_to_stack_pointer(16);
337
+ }
332
338
  };
333
339
 
334
340
  /**
@@ -345,35 +351,52 @@ module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
345
351
 
346
352
  /**
347
353
  * @param {Uint8Array} buffer
348
- * @param {Uint8Array} hash
349
- * @param {bigint} block_id
354
+ * @param {number} msg_index
350
355
  * @param {bigint} peer_index
351
356
  * @returns {Promise<void>}
352
357
  */
353
- module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
354
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
358
+ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
359
+ const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
355
360
  return takeObject(ret);
356
361
  };
357
362
 
358
363
  /**
359
- * @param {Uint8Array} hash
360
- * @param {bigint} block_id
361
- * @param {bigint} peer_index
362
- * @returns {Promise<void>}
364
+ * @param {string} slip1_utxo_key
365
+ * @param {string} slip2_utxo_key
366
+ * @param {string} slip3_utxo_key
367
+ * @param {Uint8Array} tx_msg
368
+ * @returns {Promise<WasmTransaction>}
363
369
  */
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);
370
+ module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
371
+ const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
366
372
  return takeObject(ret);
367
373
  };
368
374
 
369
375
  /**
370
- * @param {number} major
371
- * @param {number} minor
372
- * @param {number} patch
376
+ * @returns {Promise<string>}
377
+ */
378
+ module.exports.get_latest_block_hash = function() {
379
+ const ret = wasm.get_latest_block_hash();
380
+ return takeObject(ret);
381
+ };
382
+
383
+ /**
384
+ * @returns {Promise<string>}
385
+ */
386
+ module.exports.get_congestion_stats = function() {
387
+ const ret = wasm.get_congestion_stats();
388
+ return takeObject(ret);
389
+ };
390
+
391
+ /**
392
+ * @param {Uint8Array} buffer
393
+ * @param {Uint8Array} hash
394
+ * @param {bigint} block_id
395
+ * @param {bigint} peer_index
373
396
  * @returns {Promise<void>}
374
397
  */
375
- module.exports.set_wallet_version = function(major, minor, patch) {
376
- const ret = wasm.set_wallet_version(major, minor, patch);
398
+ module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
399
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
377
400
  return takeObject(ret);
378
401
  };
379
402
 
@@ -389,34 +412,39 @@ module.exports.update_from_balance_snapshot = function(snapshot) {
389
412
  };
390
413
 
391
414
  /**
392
- * @param {string} private_key
393
- * @returns {string}
415
+ * @param {bigint} peer_index
416
+ * @param {string} public_key
417
+ * @returns {Promise<void>}
394
418
  */
395
- module.exports.generate_public_key = function(private_key) {
396
- try {
397
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
398
- wasm.generate_public_key(retptr, addHeapObject(private_key));
399
- var r0 = getInt32Memory0()[retptr / 4 + 0];
400
- var r1 = getInt32Memory0()[retptr / 4 + 1];
401
- var r2 = getInt32Memory0()[retptr / 4 + 2];
402
- if (r2) {
403
- throw takeObject(r1);
404
- }
405
- return takeObject(r0);
406
- } finally {
407
- wasm.__wbindgen_add_to_stack_pointer(16);
408
- }
419
+ module.exports.process_stun_peer = function(peer_index, public_key) {
420
+ const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
421
+ return takeObject(ret);
409
422
  };
410
423
 
411
424
  /**
412
- * @param {Uint8Array} buffer
413
- * @param {string} signature
414
- * @param {string} public_key
415
- * @returns {boolean}
425
+ * @param {bigint} peer_index
426
+ * @returns {Promise<void>}
416
427
  */
417
- module.exports.verify_signature = function(buffer, signature, public_key) {
418
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
419
- return ret !== 0;
428
+ module.exports.process_peer_disconnection = function(peer_index) {
429
+ const ret = wasm.process_peer_disconnection(peer_index);
430
+ return takeObject(ret);
431
+ };
432
+
433
+ /**
434
+ * @param {bigint} current_time
435
+ * @returns {Promise<void>}
436
+ */
437
+ module.exports.process_stat_interval = function(current_time) {
438
+ const ret = wasm.process_stat_interval(current_time);
439
+ return takeObject(ret);
440
+ };
441
+
442
+ /**
443
+ * @returns {Promise<void>}
444
+ */
445
+ module.exports.start_from_received_ghost_chain = function() {
446
+ const ret = wasm.start_from_received_ghost_chain();
447
+ return takeObject(ret);
420
448
  };
421
449
 
422
450
  /**
@@ -430,129 +458,127 @@ module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
430
458
  };
431
459
 
432
460
  /**
433
- * @param {bigint} threshold
434
- * @returns {Promise<void>}
461
+ * @param {bigint} amt
462
+ * @param {string} slip1_utxo_key
463
+ * @param {string} slip2_utxo_key
464
+ * @param {string} slip3_utxo_key
465
+ * @param {string} recipient_public_key
466
+ * @param {Uint8Array} tx_msg
467
+ * @returns {Promise<WasmTransaction>}
435
468
  */
436
- module.exports.write_issuance_file = function(threshold) {
437
- const ret = wasm.write_issuance_file(threshold);
469
+ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
470
+ 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));
438
471
  return takeObject(ret);
439
472
  };
440
473
 
441
474
  /**
442
- * @returns {Promise<bigint>}
475
+ * @param {string} block_hash
476
+ * @returns {Promise<WasmBlock>}
443
477
  */
444
- module.exports.get_next_peer_index = function() {
445
- const ret = wasm.get_next_peer_index();
478
+ module.exports.get_block = function(block_hash) {
479
+ const ret = wasm.get_block(addHeapObject(block_hash));
446
480
  return takeObject(ret);
447
481
  };
448
482
 
449
483
  /**
450
- * @returns {Promise<string>}
484
+ * @returns {Promise<WasmBlockchain>}
451
485
  */
452
- module.exports.get_congestion_stats = function() {
453
- const ret = wasm.get_congestion_stats();
486
+ module.exports.get_blockchain = function() {
487
+ const ret = wasm.get_blockchain();
454
488
  return takeObject(ret);
455
489
  };
456
490
 
457
491
  /**
458
- * @param {bigint} num
459
- * @param {bigint} deposit
460
- * @param {Uint8Array} tx_msg
461
- * @param {bigint} fee
462
- * @param {string} recipient_public_key
463
- * @param {string} nft_type
464
- * @returns {Promise<WasmTransaction>}
492
+ * @param {bigint} peer_index
493
+ * @returns {Promise<WasmPeer | undefined>}
465
494
  */
466
- module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
467
- const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
495
+ module.exports.get_peer = function(peer_index) {
496
+ const ret = wasm.get_peer(peer_index);
468
497
  return takeObject(ret);
469
498
  };
470
499
 
471
500
  /**
472
- * @returns {Promise<Array<any>>}
501
+ * @returns {Promise<string>}
473
502
  */
474
- module.exports.get_mempool_txs = function() {
475
- const ret = wasm.get_mempool_txs();
503
+ module.exports.get_stats = function() {
504
+ const ret = wasm.get_stats();
476
505
  return takeObject(ret);
477
506
  };
478
507
 
479
508
  /**
480
- * @returns {Promise<void>}
509
+ * @returns {Promise<boolean>}
481
510
  */
482
- module.exports.start_from_received_ghost_chain = function() {
483
- const ret = wasm.start_from_received_ghost_chain();
511
+ module.exports.produce_block_with_gt = function() {
512
+ const ret = wasm.produce_block_with_gt();
484
513
  return takeObject(ret);
485
514
  };
486
515
 
487
516
  /**
488
- * @param {bigint} duration_in_ms
489
- * @returns {Promise<void>}
517
+ * @param {string} slip1_utxo_key
518
+ * @param {string} slip2_utxo_key
519
+ * @param {string} slip3_utxo_key
520
+ * @param {number} left_count
521
+ * @param {number} right_count
522
+ * @param {Uint8Array} tx_msg
523
+ * @returns {Promise<WasmTransaction>}
490
524
  */
491
- module.exports.process_timer_event = function(duration_in_ms) {
492
- const ret = wasm.process_timer_event(duration_in_ms);
525
+ module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
526
+ const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
493
527
  return takeObject(ret);
494
528
  };
495
529
 
496
530
  /**
497
- * @param {bigint} peer_index
498
- * @param {string} ip
531
+ * @param {bigint} duration_in_ms
499
532
  * @returns {Promise<void>}
500
533
  */
501
- module.exports.process_new_peer = function(peer_index, ip) {
502
- const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
534
+ module.exports.process_timer_event = function(duration_in_ms) {
535
+ const ret = wasm.process_timer_event(duration_in_ms);
503
536
  return takeObject(ret);
504
537
  };
505
538
 
506
539
  /**
507
- * @param {bigint} current_time
508
- * @returns {Promise<void>}
540
+ * @param {Uint8Array} buffer
541
+ * @param {string} signature
542
+ * @param {string} public_key
543
+ * @returns {boolean}
509
544
  */
510
- module.exports.process_stat_interval = function(current_time) {
511
- const ret = wasm.process_stat_interval(current_time);
512
- return takeObject(ret);
545
+ module.exports.verify_signature = function(buffer, signature, public_key) {
546
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
547
+ return ret !== 0;
513
548
  };
514
549
 
515
550
  /**
516
- * @param {bigint} peer_index
517
- * @returns {Promise<WasmPeer | undefined>}
551
+ * @returns {Promise<Array<any>>}
518
552
  */
519
- module.exports.get_peer = function(peer_index) {
520
- const ret = wasm.get_peer(peer_index);
553
+ module.exports.get_nft_list = function() {
554
+ const ret = wasm.get_nft_list();
521
555
  return takeObject(ret);
522
556
  };
523
557
 
524
558
  /**
525
- * @param {Uint8Array} buffer
526
- * @param {number} msg_index
527
- * @param {bigint} peer_index
528
- * @returns {Promise<void>}
559
+ * @returns {Promise<string>}
529
560
  */
530
- module.exports.send_api_call = function(buffer, msg_index, peer_index) {
531
- const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
561
+ module.exports.get_peer_stats = function() {
562
+ const ret = wasm.get_peer_stats();
532
563
  return takeObject(ret);
533
564
  };
534
565
 
535
566
  /**
536
- * @param {string} slip1_utxo_key
537
- * @param {string} slip2_utxo_key
538
- * @param {string} slip3_utxo_key
539
- * @param {Uint8Array} tx_msg
540
- * @returns {Promise<WasmTransaction>}
567
+ * @returns {Promise<void>}
541
568
  */
542
- module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
543
- const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
569
+ module.exports.disable_producing_blocks_by_timer = function() {
570
+ const ret = wasm.disable_producing_blocks_by_timer();
544
571
  return takeObject(ret);
545
572
  };
546
573
 
547
574
  /**
548
- * @param {Uint8Array} buffer
549
575
  * @param {string} private_key
550
576
  * @returns {string}
551
577
  */
552
- module.exports.sign_buffer = function(buffer, private_key) {
578
+ module.exports.generate_public_key = function(private_key) {
553
579
  try {
554
580
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
555
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
581
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
556
582
  var r0 = getInt32Memory0()[retptr / 4 + 0];
557
583
  var r1 = getInt32Memory0()[retptr / 4 + 1];
558
584
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -566,12 +592,11 @@ module.exports.sign_buffer = function(buffer, private_key) {
566
592
  };
567
593
 
568
594
  /**
569
- * @param {string} key
570
- * @returns {boolean}
595
+ * @returns {Promise<bigint>}
571
596
  */
572
- module.exports.is_valid_public_key = function(key) {
573
- const ret = wasm.is_valid_public_key(addHeapObject(key));
574
- return ret !== 0;
597
+ module.exports.get_next_peer_index = function() {
598
+ const ret = wasm.get_next_peer_index();
599
+ return takeObject(ret);
575
600
  };
576
601
 
577
602
  /**
@@ -583,130 +608,84 @@ module.exports.get_wallet = function() {
583
608
  };
584
609
 
585
610
  /**
586
- * @param {string} block_hash
587
- * @returns {Promise<WasmBlock>}
588
- */
589
- module.exports.get_block = function(block_hash) {
590
- const ret = wasm.get_block(addHeapObject(block_hash));
591
- return takeObject(ret);
592
- };
593
-
594
- /**
595
- * @param {bigint} peer_index
596
- * @param {string} public_key
597
- * @returns {Promise<void>}
598
- */
599
- module.exports.process_stun_peer = function(peer_index, public_key) {
600
- const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
601
- return takeObject(ret);
602
- };
603
-
604
- /**
605
- * @param {Uint8Array} buffer
606
- * @param {number} msg_index
607
- * @param {bigint} peer_index
608
- * @returns {Promise<void>}
611
+ * @returns {string}
609
612
  */
610
- module.exports.send_api_error = function(buffer, msg_index, peer_index) {
611
- const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
613
+ module.exports.generate_private_key = function() {
614
+ const ret = wasm.generate_private_key();
612
615
  return takeObject(ret);
613
616
  };
614
617
 
615
618
  /**
616
- * @returns {Promise<WasmBlockchain>}
619
+ * @returns {Promise<any>}
617
620
  */
618
- module.exports.get_blockchain = function() {
619
- const ret = wasm.get_blockchain();
621
+ module.exports.get_confirmations = function() {
622
+ const ret = wasm.get_confirmations();
620
623
  return takeObject(ret);
621
624
  };
622
625
 
623
626
  /**
624
- * @returns {Promise<void>}
627
+ * @param {string} config_json
628
+ * @param {string} private_key
629
+ * @param {number} log_level_num
630
+ * @param {bigint} hasten_multiplier
631
+ * @param {boolean} delete_old_blocks
632
+ * @returns {Promise<any>}
625
633
  */
626
- module.exports.disable_producing_blocks_by_timer = function() {
627
- const ret = wasm.disable_producing_blocks_by_timer();
634
+ module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
635
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
628
636
  return takeObject(ret);
629
637
  };
630
638
 
631
639
  /**
632
- * @returns {Promise<string>}
640
+ * @param {bigint} num
641
+ * @param {bigint} deposit
642
+ * @param {Uint8Array} tx_msg
643
+ * @param {bigint} fee
644
+ * @param {string} recipient_public_key
645
+ * @param {string} nft_type
646
+ * @returns {Promise<WasmTransaction>}
633
647
  */
634
- module.exports.get_stats = function() {
635
- const ret = wasm.get_stats();
648
+ module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
649
+ const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
636
650
  return takeObject(ret);
637
651
  };
638
652
 
639
653
  /**
640
- * @returns {Promise<Array<any>>}
654
+ * @param {Uint8Array} buffer
655
+ * @returns {string}
641
656
  */
642
- module.exports.get_nft_list = function() {
643
- const ret = wasm.get_nft_list();
657
+ module.exports.hash = function(buffer) {
658
+ const ret = wasm.hash(addHeapObject(buffer));
644
659
  return takeObject(ret);
645
660
  };
646
661
 
647
662
  /**
648
- * @returns {Promise<Array<any>>}
663
+ * @param {Array<any>} keys
664
+ * @returns {Promise<WasmBalanceSnapshot>}
649
665
  */
650
- module.exports.get_peers = function() {
651
- const ret = wasm.get_peers();
666
+ module.exports.get_balance_snapshot = function(keys) {
667
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
652
668
  return takeObject(ret);
653
669
  };
654
670
 
655
671
  /**
656
672
  * @param {bigint} peer_index
673
+ * @param {string} ip
657
674
  * @returns {Promise<void>}
658
675
  */
659
- module.exports.remove_stun_peer = function(peer_index) {
660
- const ret = wasm.remove_stun_peer(peer_index);
676
+ module.exports.process_new_peer = function(peer_index, ip) {
677
+ const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
661
678
  return takeObject(ret);
662
679
  };
663
680
 
664
681
  /**
665
- * @param {Uint8Array} buffer
666
- * @param {number} msg_index
682
+ * @param {Uint8Array} hash
683
+ * @param {bigint} block_id
667
684
  * @param {bigint} peer_index
668
685
  * @returns {Promise<void>}
669
686
  */
670
- module.exports.send_api_success = function(buffer, msg_index, peer_index) {
671
- const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
672
- return takeObject(ret);
673
- };
674
-
675
- /**
676
- * @returns {Promise<boolean>}
677
- */
678
- module.exports.produce_block_with_gt = function() {
679
- const ret = wasm.produce_block_with_gt();
680
- return takeObject(ret);
681
- };
682
-
683
- /**
684
- * @param {string} slip1_utxo_key
685
- * @param {string} slip2_utxo_key
686
- * @param {string} slip3_utxo_key
687
- * @param {number} left_count
688
- * @param {number} right_count
689
- * @param {Uint8Array} tx_msg
690
- * @returns {Promise<WasmTransaction>}
691
- */
692
- module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
693
- const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
694
- return takeObject(ret);
695
- };
696
-
697
- /**
698
- * @returns {string}
699
- */
700
- module.exports.generate_private_key = function() {
701
- const ret = wasm.generate_private_key();
702
- return takeObject(ret);
703
- };
704
-
705
- /**
706
- * @returns {Promise<string>}
707
- */
708
- module.exports.get_peer_stats = function() {
709
- const ret = wasm.get_peer_stats();
687
+ module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
688
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
710
689
  return takeObject(ret);
711
690
  };
712
691
 
@@ -722,6 +701,17 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
722
701
  return takeObject(ret);
723
702
  };
724
703
 
704
+ /**
705
+ * @param {Uint8Array} buffer
706
+ * @param {number} msg_index
707
+ * @param {bigint} peer_index
708
+ * @returns {Promise<void>}
709
+ */
710
+ module.exports.send_api_success = function(buffer, msg_index, peer_index) {
711
+ const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
712
+ return takeObject(ret);
713
+ };
714
+
725
715
  /**
726
716
  * @param {string} public_key
727
717
  * @param {bigint} amount
@@ -735,10 +725,12 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
735
725
  };
736
726
 
737
727
  /**
738
- * @returns {Promise<boolean>}
728
+ * @param {WasmTransaction} tx
729
+ * @returns {Promise<void>}
739
730
  */
740
- module.exports.produce_block_without_gt = function() {
741
- const ret = wasm.produce_block_without_gt();
731
+ module.exports.propagate_transaction = function(tx) {
732
+ _assertClass(tx, WasmTransaction);
733
+ const ret = wasm.propagate_transaction(tx.__wbg_ptr);
742
734
  return takeObject(ret);
743
735
  };
744
736
 
@@ -749,6 +741,14 @@ function handleError(f, args) {
749
741
  wasm.__wbindgen_exn_store(addHeapObject(e));
750
742
  }
751
743
  }
744
+
745
+ let stack_pointer = 128;
746
+
747
+ function addBorrowedObject(obj) {
748
+ if (stack_pointer == 1) throw new Error('out of js stack');
749
+ heap[--stack_pointer] = obj;
750
+ return stack_pointer;
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,6 +2681,11 @@ class WasmWalletSlip {
2681
2681
  }
2682
2682
  module.exports.WasmWalletSlip = WasmWalletSlip;
2683
2683
 
2684
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2685
+ const ret = getStringFromWasm0(arg0, arg1);
2686
+ return addHeapObject(ret);
2687
+ };
2688
+
2684
2689
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
2685
2690
  const obj = getObject(arg1);
2686
2691
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2694,53 +2699,38 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2694
2699
  takeObject(arg0);
2695
2700
  };
2696
2701
 
2697
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2698
- const ret = getObject(arg0);
2699
- return addHeapObject(ret);
2700
- };
2701
-
2702
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2703
- const ret = getStringFromWasm0(arg0, arg1);
2704
- return addHeapObject(ret);
2705
- };
2706
-
2707
- module.exports.__wbg_wasmblock_new = function(arg0) {
2708
- const ret = WasmBlock.__wrap(arg0);
2709
- return addHeapObject(ret);
2710
- };
2711
-
2712
2702
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
2713
2703
  const ret = WasmTransaction.__wrap(arg0);
2714
2704
  return addHeapObject(ret);
2715
2705
  };
2716
2706
 
2717
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2718
- const ret = BigInt.asUintN(64, arg0);
2707
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2708
+ const ret = WasmPeer.__wrap(arg0);
2719
2709
  return addHeapObject(ret);
2720
2710
  };
2721
2711
 
2722
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2723
- const ret = WasmWalletSlip.__wrap(arg0);
2712
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2713
+ const ret = BigInt.asUintN(64, arg0);
2724
2714
  return addHeapObject(ret);
2725
2715
  };
2726
2716
 
2727
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2728
- const ret = WasmWallet.__wrap(arg0);
2717
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2718
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2729
2719
  return addHeapObject(ret);
2730
2720
  };
2731
2721
 
2732
- module.exports.__wbg_wasmnft_new = function(arg0) {
2733
- const ret = WasmNFT.__wrap(arg0);
2722
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2723
+ const ret = getObject(arg0);
2734
2724
  return addHeapObject(ret);
2735
2725
  };
2736
2726
 
2737
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2738
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2727
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2728
+ const ret = WasmBlock.__wrap(arg0);
2739
2729
  return addHeapObject(ret);
2740
2730
  };
2741
2731
 
2742
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2743
- const ret = WasmPeer.__wrap(arg0);
2732
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2733
+ const ret = WasmBlockchain.__wrap(arg0);
2744
2734
  return addHeapObject(ret);
2745
2735
  };
2746
2736
 
@@ -2749,18 +2739,18 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2749
2739
  return addHeapObject(ret);
2750
2740
  };
2751
2741
 
2752
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2753
- const ret = WasmBlockchain.__wrap(arg0);
2742
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2743
+ const ret = WasmNFT.__wrap(arg0);
2754
2744
  return addHeapObject(ret);
2755
2745
  };
2756
2746
 
2757
- module.exports.__wbg_wasmhop_new = function(arg0) {
2758
- const ret = WasmHop.__wrap(arg0);
2747
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2748
+ const ret = WasmWallet.__wrap(arg0);
2759
2749
  return addHeapObject(ret);
2760
2750
  };
2761
2751
 
2762
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2763
- const ret = WasmPeerService.__wrap(arg0);
2752
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2753
+ const ret = WasmWalletSlip.__wrap(arg0);
2764
2754
  return addHeapObject(ret);
2765
2755
  };
2766
2756
 
@@ -2769,6 +2759,11 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2769
2759
  return addHeapObject(ret);
2770
2760
  };
2771
2761
 
2762
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2763
+ const ret = WasmPeerService.__wrap(arg0);
2764
+ return addHeapObject(ret);
2765
+ };
2766
+
2772
2767
  module.exports.__wbindgen_is_object = function(arg0) {
2773
2768
  const val = getObject(arg0);
2774
2769
  const ret = typeof(val) === 'object' && val !== null;
@@ -2785,7 +2780,12 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2785
2780
  return ret;
2786
2781
  };
2787
2782
 
2788
- module.exports.__wbg_flushdata_e95c407e1e0bc0ed = function(arg0, arg1) {
2783
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2784
+ const ret = WasmHop.__wrap(arg0);
2785
+ return addHeapObject(ret);
2786
+ };
2787
+
2788
+ module.exports.__wbg_flushdata_fe8f2b14acc9b24d = function(arg0, arg1) {
2789
2789
  let deferred0_0;
2790
2790
  let deferred0_1;
2791
2791
  try {
@@ -2797,7 +2797,7 @@ module.exports.__wbg_flushdata_e95c407e1e0bc0ed = function(arg0, arg1) {
2797
2797
  }
2798
2798
  };
2799
2799
 
2800
- module.exports.__wbg_readvalue_6ebbd343ed520a97 = function() { return handleError(function (arg0, arg1) {
2800
+ module.exports.__wbg_readvalue_d64cea469f05b942 = function() { return handleError(function (arg0, arg1) {
2801
2801
  let deferred0_0;
2802
2802
  let deferred0_1;
2803
2803
  try {
@@ -2810,15 +2810,15 @@ module.exports.__wbg_readvalue_6ebbd343ed520a97 = function() { return handleErro
2810
2810
  }
2811
2811
  }, arguments) };
2812
2812
 
2813
- module.exports.__wbg_loadwallet_4611bb91011ed68d = function() {
2813
+ module.exports.__wbg_loadwallet_e2fe08af150b25b3 = function() {
2814
2814
  MsgHandler.load_wallet();
2815
2815
  };
2816
2816
 
2817
- module.exports.__wbg_savewallet_be5ed22d23a8d22b = function() {
2817
+ module.exports.__wbg_savewallet_40b319771a21726b = function() {
2818
2818
  MsgHandler.save_wallet();
2819
2819
  };
2820
2820
 
2821
- module.exports.__wbg_writevalue_a7a3857c8de8fe9b = function(arg0, arg1, arg2) {
2821
+ module.exports.__wbg_writevalue_32ec94b797810683 = function(arg0, arg1, arg2) {
2822
2822
  let deferred0_0;
2823
2823
  let deferred0_1;
2824
2824
  try {
@@ -2830,7 +2830,7 @@ module.exports.__wbg_writevalue_a7a3857c8de8fe9b = function(arg0, arg1, arg2) {
2830
2830
  }
2831
2831
  };
2832
2832
 
2833
- module.exports.__wbg_appendvalue_10c14942126ab54a = function(arg0, arg1, arg2) {
2833
+ module.exports.__wbg_appendvalue_f7131aa8b22d0eaf = function(arg0, arg1, arg2) {
2834
2834
  let deferred0_0;
2835
2835
  let deferred0_1;
2836
2836
  try {
@@ -2842,7 +2842,7 @@ module.exports.__wbg_appendvalue_10c14942126ab54a = function(arg0, arg1, arg2) {
2842
2842
  }
2843
2843
  };
2844
2844
 
2845
- module.exports.__wbg_removevalue_c76dfa9feb88807e = function() { return handleError(function (arg0, arg1) {
2845
+ module.exports.__wbg_removevalue_9b8aebaa72738b75 = function() { return handleError(function (arg0, arg1) {
2846
2846
  let deferred0_0;
2847
2847
  let deferred0_1;
2848
2848
  try {
@@ -2855,11 +2855,11 @@ module.exports.__wbg_removevalue_c76dfa9feb88807e = function() { return handleEr
2855
2855
  }
2856
2856
  }, arguments) };
2857
2857
 
2858
- module.exports.__wbg_sendmessage_22f62139ce41353a = function(arg0, arg1) {
2858
+ module.exports.__wbg_sendmessage_eb846022c945f874 = function(arg0, arg1) {
2859
2859
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2860
2860
  };
2861
2861
 
2862
- module.exports.__wbg_connecttopeer_6c04afe8364b7cf3 = function() { return handleError(function (arg0, arg1, arg2) {
2862
+ module.exports.__wbg_connecttopeer_eaf6ce31754ad986 = function() { return handleError(function (arg0, arg1, arg2) {
2863
2863
  let deferred0_0;
2864
2864
  let deferred0_1;
2865
2865
  try {
@@ -2872,14 +2872,14 @@ module.exports.__wbg_connecttopeer_6c04afe8364b7cf3 = function() { return handle
2872
2872
  }
2873
2873
  }, arguments) };
2874
2874
 
2875
- module.exports.__wbg_getmyservices_d92480755161663e = function() {
2875
+ module.exports.__wbg_getmyservices_62760619d2342fa5 = function() {
2876
2876
  const ret = MsgHandler.get_my_services();
2877
2877
  _assertClass(ret, WasmPeerServiceList);
2878
2878
  var ptr1 = ret.__destroy_into_raw();
2879
2879
  return ptr1;
2880
2880
  };
2881
2881
 
2882
- module.exports.__wbg_isexistingfile_85c80475e06ba07f = function() { return handleError(function (arg0, arg1) {
2882
+ module.exports.__wbg_isexistingfile_e40370e8a861f62f = function() { return handleError(function (arg0, arg1) {
2883
2883
  let deferred0_0;
2884
2884
  let deferred0_1;
2885
2885
  try {
@@ -2892,33 +2892,33 @@ module.exports.__wbg_isexistingfile_85c80475e06ba07f = function() { return handl
2892
2892
  }
2893
2893
  }, arguments) };
2894
2894
 
2895
- module.exports.__wbg_processapicall_1f6a45361c80a202 = function(arg0, arg1, arg2) {
2895
+ module.exports.__wbg_processapicall_66f8ffbeb5c99ff6 = function(arg0, arg1, arg2) {
2896
2896
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2897
2897
  };
2898
2898
 
2899
- module.exports.__wbg_processapierror_5be3075a9e01e034 = function(arg0, arg1, arg2) {
2899
+ module.exports.__wbg_processapierror_4fa7d921e6184952 = function(arg0, arg1, arg2) {
2900
2900
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2901
2901
  };
2902
2902
 
2903
- module.exports.__wbg_processapisuccess_c356c59e3b2ab942 = function(arg0, arg1, arg2) {
2903
+ module.exports.__wbg_processapisuccess_58560e91ffc5828f = function(arg0, arg1, arg2) {
2904
2904
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2905
2905
  };
2906
2906
 
2907
- module.exports.__wbg_sendmessagetoall_2ed176436bb0fafc = function(arg0, arg1) {
2907
+ module.exports.__wbg_sendmessagetoall_4dd78d8ae91ba697 = function(arg0, arg1) {
2908
2908
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2909
2909
  };
2910
2910
 
2911
- module.exports.__wbg_disconnectfrompeer_1e04c9dfd2862c76 = function() { return handleError(function (arg0) {
2911
+ module.exports.__wbg_disconnectfrompeer_d68f336d7341192e = function() { return handleError(function (arg0) {
2912
2912
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2913
2913
  return addHeapObject(ret);
2914
2914
  }, arguments) };
2915
2915
 
2916
- module.exports.__wbg_loadblockfilelist_5e3ff98c60a2a07f = function() { return handleError(function () {
2916
+ module.exports.__wbg_loadblockfilelist_b8ecca73e095b6a8 = function() { return handleError(function () {
2917
2917
  const ret = MsgHandler.load_block_file_list();
2918
2918
  return addHeapObject(ret);
2919
2919
  }, arguments) };
2920
2920
 
2921
- module.exports.__wbg_sendinterfaceevent_2481d64d2d629fce = function(arg0, arg1, arg2, arg3, arg4) {
2921
+ module.exports.__wbg_sendinterfaceevent_3dca7509961c850b = function(arg0, arg1, arg2, arg3, arg4) {
2922
2922
  let deferred0_0;
2923
2923
  let deferred0_1;
2924
2924
  let deferred1_0;
@@ -2935,7 +2935,7 @@ module.exports.__wbg_sendinterfaceevent_2481d64d2d629fce = function(arg0, arg1,
2935
2935
  }
2936
2936
  };
2937
2937
 
2938
- module.exports.__wbg_sendblocksuccess_0e0fa53d03cc8ee0 = function(arg0, arg1, arg2) {
2938
+ module.exports.__wbg_sendblocksuccess_1ce7c0c7e5070778 = function(arg0, arg1, arg2) {
2939
2939
  let deferred0_0;
2940
2940
  let deferred0_1;
2941
2941
  try {
@@ -2947,11 +2947,11 @@ module.exports.__wbg_sendblocksuccess_0e0fa53d03cc8ee0 = function(arg0, arg1, ar
2947
2947
  }
2948
2948
  };
2949
2949
 
2950
- module.exports.__wbg_sendwalletupdate_3f10039b18efd40b = function() {
2950
+ module.exports.__wbg_sendwalletupdate_7478002f88b31974 = function() {
2951
2951
  MsgHandler.send_wallet_update();
2952
2952
  };
2953
2953
 
2954
- module.exports.__wbg_sendnewversionalert_dfe7cede819b908a = function(arg0, arg1, arg2) {
2954
+ module.exports.__wbg_sendnewversionalert_8b31deb2b86f3516 = function(arg0, arg1, arg2) {
2955
2955
  let deferred0_0;
2956
2956
  let deferred0_1;
2957
2957
  try {
@@ -2963,15 +2963,15 @@ module.exports.__wbg_sendnewversionalert_dfe7cede819b908a = function(arg0, arg1,
2963
2963
  }
2964
2964
  };
2965
2965
 
2966
- module.exports.__wbg_sendblockfetchstatusevent_16ec9b84c8c4b37e = function(arg0) {
2966
+ module.exports.__wbg_sendblockfetchstatusevent_e42c5bfced93021d = function(arg0) {
2967
2967
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2968
2968
  };
2969
2969
 
2970
- module.exports.__wbg_sendnewchaindetectedevent_b70b153e73432ccb = function() {
2970
+ module.exports.__wbg_sendnewchaindetectedevent_79305c180f237bc2 = function() {
2971
2971
  MsgHandler.send_new_chain_detected_event();
2972
2972
  };
2973
2973
 
2974
- module.exports.__wbg_fetchblockfrompeer_010d85cda12b2b4a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2974
+ module.exports.__wbg_fetchblockfrompeer_dbbd33e8b8a662e1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2975
2975
  let deferred0_0;
2976
2976
  let deferred0_1;
2977
2977
  try {
@@ -2984,7 +2984,7 @@ module.exports.__wbg_fetchblockfrompeer_010d85cda12b2b4a = function() { return h
2984
2984
  }
2985
2985
  }, arguments) };
2986
2986
 
2987
- module.exports.__wbg_ensuredirectoryexists_0950f22a5900a1dc = function() { return handleError(function (arg0, arg1) {
2987
+ module.exports.__wbg_ensuredirectoryexists_521d5078695937c9 = function() { return handleError(function (arg0, arg1) {
2988
2988
  let deferred0_0;
2989
2989
  let deferred0_1;
2990
2990
  try {
@@ -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_wrapper1585 = function(arg0, arg1, arg2) {
3376
- const ret = makeMutClosure(arg0, arg1, 594, __wbg_adapter_38);
3375
+ module.exports.__wbindgen_closure_wrapper1615 = function(arg0, arg1, arg2) {
3376
+ const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_38);
3377
3377
  return addHeapObject(ret);
3378
3378
  };
3379
3379