saito-wasm 0.2.237 → 0.2.239

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