saito-wasm 0.2.239 → 0.2.240

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-785d0781d8caf60c/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9fecb2991d64dbbe/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -254,32 +254,18 @@ function addBorrowedObject(obj) {
254
254
  return stack_pointer;
255
255
  }
256
256
  /**
257
- * @param {Uint8Array} buffer
258
- * @param {string} private_key
259
257
  * @returns {string}
260
258
  */
261
- module.exports.sign_buffer = function(buffer, private_key) {
262
- try {
263
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
264
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
265
- var r0 = getInt32Memory0()[retptr / 4 + 0];
266
- var r1 = getInt32Memory0()[retptr / 4 + 1];
267
- var r2 = getInt32Memory0()[retptr / 4 + 2];
268
- if (r2) {
269
- throw takeObject(r1);
270
- }
271
- return takeObject(r0);
272
- } finally {
273
- wasm.__wbindgen_add_to_stack_pointer(16);
274
- }
259
+ module.exports.generate_private_key = function() {
260
+ const ret = wasm.generate_private_key();
261
+ return takeObject(ret);
275
262
  };
276
263
 
277
264
  /**
278
- * @param {bigint} threshold
279
- * @returns {Promise<void>}
265
+ * @returns {Promise<boolean>}
280
266
  */
281
- module.exports.write_issuance_file = function(threshold) {
282
- const ret = wasm.write_issuance_file(threshold);
267
+ module.exports.produce_block_without_gt = function() {
268
+ const ret = wasm.produce_block_without_gt();
283
269
  return takeObject(ret);
284
270
  };
285
271
 
@@ -288,65 +274,65 @@ module.exports.write_issuance_file = function(threshold) {
288
274
  * @param {string} public_key
289
275
  * @returns {Promise<void>}
290
276
  */
291
- module.exports.process_stun_peer = function(peer_id, public_key) {
292
- const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
293
- return takeObject(ret);
294
- };
295
-
296
- /**
297
- * @returns {Promise<boolean>}
298
- */
299
- module.exports.produce_block_without_gt = function() {
300
- const ret = wasm.produce_block_without_gt();
277
+ module.exports.remove_stun_peer = function(peer_id, public_key) {
278
+ const ret = wasm.remove_stun_peer(peer_id, addHeapObject(public_key));
301
279
  return takeObject(ret);
302
280
  };
303
281
 
304
282
  /**
305
- * @param {WasmBalanceSnapshot} snapshot
306
- * @returns {Promise<void>}
283
+ * @param {string | undefined} [url]
284
+ * @returns {Promise<WasmNetworkPeer>}
307
285
  */
308
- module.exports.update_from_balance_snapshot = function(snapshot) {
309
- _assertClass(snapshot, WasmBalanceSnapshot);
310
- var ptr0 = snapshot.__destroy_into_raw();
311
- const ret = wasm.update_from_balance_snapshot(ptr0);
286
+ module.exports.create_network_peer = function(url) {
287
+ var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
288
+ var len0 = WASM_VECTOR_LEN;
289
+ const ret = wasm.create_network_peer(ptr0, len0);
312
290
  return takeObject(ret);
313
291
  };
314
292
 
315
293
  /**
316
- * @returns {Promise<void>}
294
+ * @returns {Promise<boolean>}
317
295
  */
318
- module.exports.disable_producing_blocks_by_timer = function() {
319
- const ret = wasm.disable_producing_blocks_by_timer();
296
+ module.exports.produce_block_with_gt = function() {
297
+ const ret = wasm.produce_block_with_gt();
320
298
  return takeObject(ret);
321
299
  };
322
300
 
323
301
  /**
324
- * @param {Uint8Array} hash
325
- * @param {bigint} block_id
326
- * @param {bigint} peer_id
327
- * @returns {Promise<void>}
302
+ * @returns {Promise<string>}
328
303
  */
329
- module.exports.process_failed_block_fetch = function(hash, block_id, peer_id) {
330
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
304
+ module.exports.get_latest_block_hash = function() {
305
+ const ret = wasm.get_latest_block_hash();
331
306
  return takeObject(ret);
332
307
  };
333
308
 
334
309
  /**
335
- * @param {string} block_hash
336
- * @returns {Promise<WasmBlock>}
310
+ * @param {Uint8Array} buffer
311
+ * @param {string} private_key
312
+ * @returns {string}
337
313
  */
338
- module.exports.get_block = function(block_hash) {
339
- const ret = wasm.get_block(addHeapObject(block_hash));
340
- return takeObject(ret);
314
+ module.exports.sign_buffer = function(buffer, private_key) {
315
+ try {
316
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
317
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
318
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
319
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
320
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
321
+ if (r2) {
322
+ throw takeObject(r1);
323
+ }
324
+ return takeObject(r0);
325
+ } finally {
326
+ wasm.__wbindgen_add_to_stack_pointer(16);
327
+ }
341
328
  };
342
329
 
343
330
  /**
344
- * @param {string} key
345
- * @returns {boolean}
331
+ * @returns {WasmNetwork}
346
332
  */
347
- module.exports.isPublicKey = function(key) {
348
- const ret = wasm.isPublicKey(addHeapObject(key));
349
- return ret !== 0;
333
+ module.exports.get_network = function() {
334
+ const ret = wasm.get_network();
335
+ return WasmNetwork.__wrap(ret);
350
336
  };
351
337
 
352
338
  /**
@@ -359,135 +345,115 @@ module.exports.hash = function(buffer) {
359
345
  };
360
346
 
361
347
  /**
362
- * @param {Array<any>} keys
363
- * @returns {Promise<WasmBalanceSnapshot>}
348
+ * @returns {Promise<WasmBlockchain>}
364
349
  */
365
- module.exports.get_balance_snapshot = function(keys) {
366
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
350
+ module.exports.get_blockchain = function() {
351
+ const ret = wasm.get_blockchain();
367
352
  return takeObject(ret);
368
353
  };
369
354
 
370
355
  /**
371
- * @param {Uint8Array} buffer
372
- * @param {string} signature
373
- * @param {string} public_key
374
- * @returns {boolean}
356
+ * @param {bigint} duration_in_ms
357
+ * @returns {Promise<void>}
375
358
  */
376
- module.exports.verify_signature = function(buffer, signature, public_key) {
377
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
378
- return ret !== 0;
359
+ module.exports.process_timer_event = function(duration_in_ms) {
360
+ const ret = wasm.process_timer_event(duration_in_ms);
361
+ return takeObject(ret);
379
362
  };
380
363
 
381
364
  /**
382
- * @returns {Promise<string>}
365
+ * @param {Uint8Array} buffer
366
+ * @param {Uint8Array} hash
367
+ * @param {bigint} block_id
368
+ * @param {bigint} peer_id
369
+ * @returns {Promise<void>}
383
370
  */
384
- module.exports.get_latest_block_hash = function() {
385
- const ret = wasm.get_latest_block_hash();
371
+ module.exports.process_fetched_block = function(buffer, hash, block_id, peer_id) {
372
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
386
373
  return takeObject(ret);
387
374
  };
388
375
 
389
376
  /**
390
- * @returns {Promise<boolean>}
377
+ * @param {string} json
378
+ * @returns {Promise<number>}
391
379
  */
392
- module.exports.produce_block_with_gt = function() {
393
- const ret = wasm.produce_block_with_gt();
380
+ module.exports.evaluate_script = function(json) {
381
+ const ret = wasm.evaluate_script(addHeapObject(json));
394
382
  return takeObject(ret);
395
383
  };
396
384
 
397
385
  /**
398
- * @param {bigint} peer_id
399
386
  * @returns {Promise<void>}
400
387
  */
401
- module.exports.process_peer_disconnection = function(peer_id) {
402
- const ret = wasm.process_peer_disconnection(peer_id);
388
+ module.exports.disable_producing_blocks_by_timer = function() {
389
+ const ret = wasm.disable_producing_blocks_by_timer();
403
390
  return takeObject(ret);
404
391
  };
405
392
 
406
393
  /**
407
- * @returns {Promise<WasmBlockchain>}
394
+ * @returns {Promise<WasmWallet>}
408
395
  */
409
- module.exports.get_blockchain = function() {
410
- const ret = wasm.get_blockchain();
396
+ module.exports.get_wallet = function() {
397
+ const ret = wasm.get_wallet();
411
398
  return takeObject(ret);
412
399
  };
413
400
 
414
401
  /**
415
- * @param {bigint} peer_id
416
- * @param {string} public_key
417
- * @returns {Promise<void>}
402
+ * @param {string} block_hash
403
+ * @returns {Promise<WasmBlock>}
418
404
  */
419
- module.exports.remove_stun_peer = function(peer_id, public_key) {
420
- const ret = wasm.remove_stun_peer(peer_id, addHeapObject(public_key));
405
+ module.exports.get_block = function(block_hash) {
406
+ const ret = wasm.get_block(addHeapObject(block_hash));
421
407
  return takeObject(ret);
422
408
  };
423
409
 
424
410
  /**
425
- * @param {bigint} peer_id
426
- * @param {boolean} initiate_handshake
427
- * @returns {Promise<void>}
411
+ * @returns {Promise<Array<any>>}
428
412
  */
429
- module.exports.process_new_peer = function(peer_id, initiate_handshake) {
430
- const ret = wasm.process_new_peer(peer_id, initiate_handshake);
413
+ module.exports.get_mempool_txs = function() {
414
+ const ret = wasm.get_mempool_txs();
431
415
  return takeObject(ret);
432
416
  };
433
417
 
434
418
  /**
435
- * @param {string} private_key
436
- * @returns {string}
437
- */
438
- module.exports.generate_public_key = function(private_key) {
439
- try {
440
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
441
- wasm.generate_public_key(retptr, addHeapObject(private_key));
442
- var r0 = getInt32Memory0()[retptr / 4 + 0];
443
- var r1 = getInt32Memory0()[retptr / 4 + 1];
444
- var r2 = getInt32Memory0()[retptr / 4 + 2];
445
- if (r2) {
446
- throw takeObject(r1);
447
- }
448
- return takeObject(r0);
449
- } finally {
450
- wasm.__wbindgen_add_to_stack_pointer(16);
451
- }
452
- };
453
-
454
- /**
455
- * @param {string | undefined} [url]
456
- * @returns {Promise<WasmNetworkPeer>}
419
+ * @param {WasmBalanceSnapshot} snapshot
420
+ * @returns {Promise<void>}
457
421
  */
458
- module.exports.create_network_peer = function(url) {
459
- var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
460
- var len0 = WASM_VECTOR_LEN;
461
- const ret = wasm.create_network_peer(ptr0, len0);
422
+ module.exports.update_from_balance_snapshot = function(snapshot) {
423
+ _assertClass(snapshot, WasmBalanceSnapshot);
424
+ var ptr0 = snapshot.__destroy_into_raw();
425
+ const ret = wasm.update_from_balance_snapshot(ptr0);
462
426
  return takeObject(ret);
463
427
  };
464
428
 
465
429
  /**
466
- * @returns {WasmNetwork}
430
+ * @param {string} key
431
+ * @returns {boolean}
467
432
  */
468
- module.exports.get_network = function() {
469
- const ret = wasm.get_network();
470
- return WasmNetwork.__wrap(ret);
433
+ module.exports.isPublicKey = function(key) {
434
+ const ret = wasm.isPublicKey(addHeapObject(key));
435
+ return ret !== 0;
471
436
  };
472
437
 
473
438
  /**
474
- * @param {Uint8Array} buffer
475
- * @param {Uint8Array} hash
476
- * @param {bigint} block_id
477
439
  * @param {bigint} peer_id
478
440
  * @returns {Promise<void>}
479
441
  */
480
- module.exports.process_fetched_block = function(buffer, hash, block_id, peer_id) {
481
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
442
+ module.exports.process_peer_disconnection = function(peer_id) {
443
+ const ret = wasm.process_peer_disconnection(peer_id);
482
444
  return takeObject(ret);
483
445
  };
484
446
 
485
447
  /**
486
- * @param {string} json
487
- * @returns {Promise<number>}
448
+ * @param {string} config_json
449
+ * @param {string} private_key
450
+ * @param {number} log_level_num
451
+ * @param {bigint} hasten_multiplier
452
+ * @param {boolean} delete_old_blocks
453
+ * @returns {Promise<any>}
488
454
  */
489
- module.exports.evaluate_script = function(json) {
490
- const ret = wasm.evaluate_script(addHeapObject(json));
455
+ module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
456
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
491
457
  return takeObject(ret);
492
458
  };
493
459
 
@@ -501,50 +467,42 @@ module.exports.process_stat_interval = function(current_time) {
501
467
  };
502
468
 
503
469
  /**
504
- * @param {string} public_key
505
- * @returns {Promise<Array<any>>}
506
- */
507
- module.exports.get_account_slips = function(public_key) {
508
- const ret = wasm.get_account_slips(addHeapObject(public_key));
509
- return takeObject(ret);
510
- };
511
-
512
- /**
513
- * @param {string} config_json
514
- * @param {string} private_key
515
- * @param {number} log_level_num
516
- * @param {bigint} hasten_multiplier
517
- * @param {boolean} delete_old_blocks
518
- * @returns {Promise<any>}
470
+ * @param {bigint} threshold
471
+ * @returns {Promise<void>}
519
472
  */
520
- module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
521
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
473
+ module.exports.write_issuance_file = function(threshold) {
474
+ const ret = wasm.write_issuance_file(threshold);
522
475
  return takeObject(ret);
523
476
  };
524
477
 
525
478
  /**
526
- * @returns {Promise<Array<any>>}
479
+ * @param {Array<any>} keys
480
+ * @returns {Promise<WasmBalanceSnapshot>}
527
481
  */
528
- module.exports.get_mempool_txs = function() {
529
- const ret = wasm.get_mempool_txs();
482
+ module.exports.get_balance_snapshot = function(keys) {
483
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
530
484
  return takeObject(ret);
531
485
  };
532
486
 
533
487
  /**
534
- * @param {bigint} duration_in_ms
488
+ * @param {bigint} peer_id
489
+ * @param {boolean} initiate_handshake
535
490
  * @returns {Promise<void>}
536
491
  */
537
- module.exports.process_timer_event = function(duration_in_ms) {
538
- const ret = wasm.process_timer_event(duration_in_ms);
492
+ module.exports.process_new_peer = function(peer_id, initiate_handshake) {
493
+ const ret = wasm.process_new_peer(peer_id, initiate_handshake);
539
494
  return takeObject(ret);
540
495
  };
541
496
 
542
497
  /**
543
- * @returns {string}
498
+ * @param {Uint8Array} buffer
499
+ * @param {string} signature
500
+ * @param {string} public_key
501
+ * @returns {boolean}
544
502
  */
545
- module.exports.generate_private_key = function() {
546
- const ret = wasm.generate_private_key();
547
- return takeObject(ret);
503
+ module.exports.verify_signature = function(buffer, signature, public_key) {
504
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
505
+ return ret !== 0;
548
506
  };
549
507
 
550
508
  /**
@@ -559,11 +517,23 @@ module.exports.process_msg_buffer_from_peer = function(buffer, peer) {
559
517
  };
560
518
 
561
519
  /**
562
- * @returns {Promise<WasmWallet>}
520
+ * @param {string} private_key
521
+ * @returns {string}
563
522
  */
564
- module.exports.get_wallet = function() {
565
- const ret = wasm.get_wallet();
566
- return takeObject(ret);
523
+ module.exports.generate_public_key = function(private_key) {
524
+ try {
525
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
526
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
527
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
528
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
529
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
530
+ if (r2) {
531
+ throw takeObject(r1);
532
+ }
533
+ return takeObject(r0);
534
+ } finally {
535
+ wasm.__wbindgen_add_to_stack_pointer(16);
536
+ }
567
537
  };
568
538
 
569
539
  /**
@@ -574,6 +544,36 @@ module.exports.get_nft_list = function() {
574
544
  return takeObject(ret);
575
545
  };
576
546
 
547
+ /**
548
+ * @param {string} public_key
549
+ * @returns {Promise<Array<any>>}
550
+ */
551
+ module.exports.get_account_slips = function(public_key) {
552
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
553
+ return takeObject(ret);
554
+ };
555
+
556
+ /**
557
+ * @param {bigint} peer_id
558
+ * @param {string} public_key
559
+ * @returns {Promise<void>}
560
+ */
561
+ module.exports.process_stun_peer = function(peer_id, public_key) {
562
+ const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
563
+ return takeObject(ret);
564
+ };
565
+
566
+ /**
567
+ * @param {Uint8Array} hash
568
+ * @param {bigint} block_id
569
+ * @param {bigint} peer_id
570
+ * @returns {Promise<void>}
571
+ */
572
+ module.exports.process_failed_block_fetch = function(hash, block_id, peer_id) {
573
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
574
+ return takeObject(ret);
575
+ };
576
+
577
577
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
578
578
  ? { register: () => {}, unregister: () => {} }
579
579
  : new FinalizationRegistry(ptr => wasm.__wbg_saitowasm_free(ptr >>> 0));
@@ -3248,7 +3248,7 @@ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3248
3248
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
3249
3249
  };
3250
3250
 
3251
- module.exports.__wbg_flushdata_b83ca5dfd0e29452 = function(arg0, arg1) {
3251
+ module.exports.__wbg_flushdata_15c72fd141afd1f6 = function(arg0, arg1) {
3252
3252
  let deferred0_0;
3253
3253
  let deferred0_1;
3254
3254
  try {
@@ -3260,7 +3260,7 @@ module.exports.__wbg_flushdata_b83ca5dfd0e29452 = function(arg0, arg1) {
3260
3260
  }
3261
3261
  };
3262
3262
 
3263
- module.exports.__wbg_readvalue_8ca89f95bfe8c944 = function() { return handleError(function (arg0, arg1) {
3263
+ module.exports.__wbg_readvalue_69a3f2e88a3c946e = function() { return handleError(function (arg0, arg1) {
3264
3264
  let deferred0_0;
3265
3265
  let deferred0_1;
3266
3266
  try {
@@ -3273,15 +3273,15 @@ module.exports.__wbg_readvalue_8ca89f95bfe8c944 = function() { return handleErro
3273
3273
  }
3274
3274
  }, arguments) };
3275
3275
 
3276
- module.exports.__wbg_loadwallet_97d25e53a03a6a56 = function() {
3276
+ module.exports.__wbg_loadwallet_513ce6acad23df9a = function() {
3277
3277
  MsgHandler.load_wallet();
3278
3278
  };
3279
3279
 
3280
- module.exports.__wbg_savewallet_596fb85e8cbee355 = function() {
3280
+ module.exports.__wbg_savewallet_9aec487e01fc9fd2 = function() {
3281
3281
  MsgHandler.save_wallet();
3282
3282
  };
3283
3283
 
3284
- module.exports.__wbg_writevalue_ea7fa78ef5b39d86 = function(arg0, arg1, arg2) {
3284
+ module.exports.__wbg_writevalue_1520a480bb7c22ad = function(arg0, arg1, arg2) {
3285
3285
  let deferred0_0;
3286
3286
  let deferred0_1;
3287
3287
  try {
@@ -3293,7 +3293,7 @@ module.exports.__wbg_writevalue_ea7fa78ef5b39d86 = function(arg0, arg1, arg2) {
3293
3293
  }
3294
3294
  };
3295
3295
 
3296
- module.exports.__wbg_appendvalue_24226e288f591dd1 = function(arg0, arg1, arg2) {
3296
+ module.exports.__wbg_appendvalue_581d6c9ae5452456 = function(arg0, arg1, arg2) {
3297
3297
  let deferred0_0;
3298
3298
  let deferred0_1;
3299
3299
  try {
@@ -3305,7 +3305,7 @@ module.exports.__wbg_appendvalue_24226e288f591dd1 = function(arg0, arg1, arg2) {
3305
3305
  }
3306
3306
  };
3307
3307
 
3308
- module.exports.__wbg_removevalue_f932e0ed2bf8400d = function() { return handleError(function (arg0, arg1) {
3308
+ module.exports.__wbg_removevalue_dd1985a9a11c06d0 = function() { return handleError(function (arg0, arg1) {
3309
3309
  let deferred0_0;
3310
3310
  let deferred0_1;
3311
3311
  try {
@@ -3318,7 +3318,7 @@ module.exports.__wbg_removevalue_f932e0ed2bf8400d = function() { return handleEr
3318
3318
  }
3319
3319
  }, arguments) };
3320
3320
 
3321
- module.exports.__wbg_sendmessage_b4d1847c2b021a82 = function(arg0, arg1, arg2) {
3321
+ module.exports.__wbg_sendmessage_f113d492eb4524b5 = function(arg0, arg1, arg2) {
3322
3322
  let deferred0_0;
3323
3323
  let deferred0_1;
3324
3324
  try {
@@ -3330,7 +3330,7 @@ module.exports.__wbg_sendmessage_b4d1847c2b021a82 = function(arg0, arg1, arg2) {
3330
3330
  }
3331
3331
  };
3332
3332
 
3333
- module.exports.__wbg_connecttopeer_8a6739b7848714bb = function() { return handleError(function (arg0, arg1) {
3333
+ module.exports.__wbg_connecttopeer_50c2d98a86c4e5b6 = function() { return handleError(function (arg0, arg1) {
3334
3334
  let deferred0_0;
3335
3335
  let deferred0_1;
3336
3336
  try {
@@ -3343,14 +3343,14 @@ module.exports.__wbg_connecttopeer_8a6739b7848714bb = function() { return handle
3343
3343
  }
3344
3344
  }, arguments) };
3345
3345
 
3346
- module.exports.__wbg_getmyservices_54e00b491be9702b = function() {
3346
+ module.exports.__wbg_getmyservices_cc19d8692abbc29e = function() {
3347
3347
  const ret = MsgHandler.get_my_services();
3348
3348
  _assertClass(ret, WasmPeerServiceList);
3349
3349
  var ptr1 = ret.__destroy_into_raw();
3350
3350
  return ptr1;
3351
3351
  };
3352
3352
 
3353
- module.exports.__wbg_isexistingfile_729bbaf16e1fc1eb = function() { return handleError(function (arg0, arg1) {
3353
+ module.exports.__wbg_isexistingfile_1a7b6ec3d354fe47 = function() { return handleError(function (arg0, arg1) {
3354
3354
  let deferred0_0;
3355
3355
  let deferred0_1;
3356
3356
  try {
@@ -3363,7 +3363,7 @@ module.exports.__wbg_isexistingfile_729bbaf16e1fc1eb = function() { return handl
3363
3363
  }
3364
3364
  }, arguments) };
3365
3365
 
3366
- module.exports.__wbg_processapicall_894298f60f733af7 = function(arg0, arg1, arg2, arg3) {
3366
+ module.exports.__wbg_processapicall_1e58d2a1f1ee5c8f = function(arg0, arg1, arg2, arg3) {
3367
3367
  let deferred0_0;
3368
3368
  let deferred0_1;
3369
3369
  try {
@@ -3375,7 +3375,7 @@ module.exports.__wbg_processapicall_894298f60f733af7 = function(arg0, arg1, arg2
3375
3375
  }
3376
3376
  };
3377
3377
 
3378
- module.exports.__wbg_processapierror_c0cff35bfda0d70f = function(arg0, arg1, arg2, arg3) {
3378
+ module.exports.__wbg_processapierror_10fc62fff96aca4e = function(arg0, arg1, arg2, arg3) {
3379
3379
  let deferred0_0;
3380
3380
  let deferred0_1;
3381
3381
  try {
@@ -3387,7 +3387,7 @@ module.exports.__wbg_processapierror_c0cff35bfda0d70f = function(arg0, arg1, arg
3387
3387
  }
3388
3388
  };
3389
3389
 
3390
- module.exports.__wbg_processapisuccess_52f79c0d74c970a8 = function(arg0, arg1, arg2, arg3) {
3390
+ module.exports.__wbg_processapisuccess_115f7ccf9993b8bb = function(arg0, arg1, arg2, arg3) {
3391
3391
  let deferred0_0;
3392
3392
  let deferred0_1;
3393
3393
  try {
@@ -3399,25 +3399,25 @@ module.exports.__wbg_processapisuccess_52f79c0d74c970a8 = function(arg0, arg1, a
3399
3399
  }
3400
3400
  };
3401
3401
 
3402
- module.exports.__wbg_sendmessagetoall_596c525857e45a64 = function(arg0, arg1) {
3402
+ module.exports.__wbg_sendmessagetoall_3a2755dbde8c724b = function(arg0, arg1) {
3403
3403
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
3404
3404
  };
3405
3405
 
3406
- module.exports.__wbg_disconnectfrompeer_de724f594081a3dd = function() { return handleError(function (arg0) {
3406
+ module.exports.__wbg_disconnectfrompeer_6b3a9c09ca632433 = function() { return handleError(function (arg0) {
3407
3407
  const ret = MsgHandler.disconnect_from_peer(BigInt.asUintN(64, arg0));
3408
3408
  return addHeapObject(ret);
3409
3409
  }, arguments) };
3410
3410
 
3411
- module.exports.__wbg_loadblockfilelist_27d8a02029193360 = function() { return handleError(function () {
3411
+ module.exports.__wbg_loadblockfilelist_233c686ce335ec67 = function() { return handleError(function () {
3412
3412
  const ret = MsgHandler.load_block_file_list();
3413
3413
  return addHeapObject(ret);
3414
3414
  }, arguments) };
3415
3415
 
3416
- module.exports.__wbg_emitinterfaceevent_9485f82710a2343d = function(arg0, arg1, arg2, arg3) {
3416
+ module.exports.__wbg_emitinterfaceevent_141e012d55133e7f = function(arg0, arg1, arg2, arg3) {
3417
3417
  MsgHandler.emit_interface_event(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
3418
3418
  };
3419
3419
 
3420
- module.exports.__wbg_fetchblockfrompeer_5cda6b7a0e312f7b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3420
+ module.exports.__wbg_fetchblockfrompeer_3c7bd808808548a3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3421
3421
  let deferred0_0;
3422
3422
  let deferred0_1;
3423
3423
  try {
@@ -3430,7 +3430,7 @@ module.exports.__wbg_fetchblockfrompeer_5cda6b7a0e312f7b = function() { return h
3430
3430
  }
3431
3431
  }, arguments) };
3432
3432
 
3433
- module.exports.__wbg_ensuredirectoryexists_c7d5f00e20b68be6 = function() { return handleError(function (arg0, arg1) {
3433
+ module.exports.__wbg_ensuredirectoryexists_46fdedb3a33ad8ed = function() { return handleError(function (arg0, arg1) {
3434
3434
  let deferred0_0;
3435
3435
  let deferred0_1;
3436
3436
  try {
@@ -3442,7 +3442,7 @@ module.exports.__wbg_ensuredirectoryexists_c7d5f00e20b68be6 = function() { retur
3442
3442
  }
3443
3443
  }, arguments) };
3444
3444
 
3445
- module.exports.__wbg_sendmessagebypeerid_6a3fb6b5731d0dfc = function(arg0, arg1) {
3445
+ module.exports.__wbg_sendmessagebypeerid_571fb58dab25fe97 = function(arg0, arg1) {
3446
3446
  MsgHandler.send_message_by_peer_id(BigInt.asUintN(64, arg0), getObject(arg1));
3447
3447
  };
3448
3448
 
@@ -3451,28 +3451,28 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
3451
3451
  return addHeapObject(ret);
3452
3452
  };
3453
3453
 
3454
- module.exports.__wbg_wasmwallet_new = function(arg0) {
3455
- const ret = WasmWallet.__wrap(arg0);
3454
+ module.exports.__wbg_wasmslip_new = function(arg0) {
3455
+ const ret = WasmSlip.__wrap(arg0);
3456
3456
  return addHeapObject(ret);
3457
3457
  };
3458
3458
 
3459
- module.exports.__wbg_wasmblock_new = function(arg0) {
3460
- const ret = WasmBlock.__wrap(arg0);
3459
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
3460
+ const ret = WasmBlockchain.__wrap(arg0);
3461
3461
  return addHeapObject(ret);
3462
3462
  };
3463
3463
 
3464
- module.exports.__wbg_wasmpeer_new = function(arg0) {
3465
- const ret = WasmPeer.__wrap(arg0);
3464
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
3465
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
3466
3466
  return addHeapObject(ret);
3467
3467
  };
3468
3468
 
3469
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
3470
- const ret = WasmBlockchain.__wrap(arg0);
3469
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
3470
+ const ret = WasmWallet.__wrap(arg0);
3471
3471
  return addHeapObject(ret);
3472
3472
  };
3473
3473
 
3474
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
3475
- const ret = WasmWalletSlip.__wrap(arg0);
3474
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
3475
+ const ret = WasmPeer.__wrap(arg0);
3476
3476
  return addHeapObject(ret);
3477
3477
  };
3478
3478
 
@@ -3481,18 +3481,18 @@ module.exports.__wbg_wasmnft_new = function(arg0) {
3481
3481
  return addHeapObject(ret);
3482
3482
  };
3483
3483
 
3484
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
3485
- const ret = WasmBalanceSnapshot.__wrap(arg0);
3484
+ module.exports.__wbg_wasmnetworkpeer_new = function(arg0) {
3485
+ const ret = WasmNetworkPeer.__wrap(arg0);
3486
3486
  return addHeapObject(ret);
3487
3487
  };
3488
3488
 
3489
- module.exports.__wbg_wasmslip_new = function(arg0) {
3490
- const ret = WasmSlip.__wrap(arg0);
3489
+ module.exports.__wbg_wasmblock_new = function(arg0) {
3490
+ const ret = WasmBlock.__wrap(arg0);
3491
3491
  return addHeapObject(ret);
3492
3492
  };
3493
3493
 
3494
- module.exports.__wbg_wasmnetworkpeer_new = function(arg0) {
3495
- const ret = WasmNetworkPeer.__wrap(arg0);
3494
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
3495
+ const ret = WasmWalletSlip.__wrap(arg0);
3496
3496
  return addHeapObject(ret);
3497
3497
  };
3498
3498