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/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-785d0781d8caf60c/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-9fecb2991d64dbbe/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -252,32 +252,18 @@ function addBorrowedObject(obj) {
252
252
  return stack_pointer;
253
253
  }
254
254
  /**
255
- * @param {Uint8Array} buffer
256
- * @param {string} private_key
257
255
  * @returns {string}
258
256
  */
259
- export function sign_buffer(buffer, private_key) {
260
- try {
261
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
262
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
263
- var r0 = getInt32Memory0()[retptr / 4 + 0];
264
- var r1 = getInt32Memory0()[retptr / 4 + 1];
265
- var r2 = getInt32Memory0()[retptr / 4 + 2];
266
- if (r2) {
267
- throw takeObject(r1);
268
- }
269
- return takeObject(r0);
270
- } finally {
271
- wasm.__wbindgen_add_to_stack_pointer(16);
272
- }
257
+ export function generate_private_key() {
258
+ const ret = wasm.generate_private_key();
259
+ return takeObject(ret);
273
260
  }
274
261
 
275
262
  /**
276
- * @param {bigint} threshold
277
- * @returns {Promise<void>}
263
+ * @returns {Promise<boolean>}
278
264
  */
279
- export function write_issuance_file(threshold) {
280
- const ret = wasm.write_issuance_file(threshold);
265
+ export function produce_block_without_gt() {
266
+ const ret = wasm.produce_block_without_gt();
281
267
  return takeObject(ret);
282
268
  }
283
269
 
@@ -286,65 +272,65 @@ export function write_issuance_file(threshold) {
286
272
  * @param {string} public_key
287
273
  * @returns {Promise<void>}
288
274
  */
289
- export function process_stun_peer(peer_id, public_key) {
290
- const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
291
- return takeObject(ret);
292
- }
293
-
294
- /**
295
- * @returns {Promise<boolean>}
296
- */
297
- export function produce_block_without_gt() {
298
- const ret = wasm.produce_block_without_gt();
275
+ export function remove_stun_peer(peer_id, public_key) {
276
+ const ret = wasm.remove_stun_peer(peer_id, addHeapObject(public_key));
299
277
  return takeObject(ret);
300
278
  }
301
279
 
302
280
  /**
303
- * @param {WasmBalanceSnapshot} snapshot
304
- * @returns {Promise<void>}
281
+ * @param {string | undefined} [url]
282
+ * @returns {Promise<WasmNetworkPeer>}
305
283
  */
306
- export function update_from_balance_snapshot(snapshot) {
307
- _assertClass(snapshot, WasmBalanceSnapshot);
308
- var ptr0 = snapshot.__destroy_into_raw();
309
- const ret = wasm.update_from_balance_snapshot(ptr0);
284
+ export function create_network_peer(url) {
285
+ var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
286
+ var len0 = WASM_VECTOR_LEN;
287
+ const ret = wasm.create_network_peer(ptr0, len0);
310
288
  return takeObject(ret);
311
289
  }
312
290
 
313
291
  /**
314
- * @returns {Promise<void>}
292
+ * @returns {Promise<boolean>}
315
293
  */
316
- export function disable_producing_blocks_by_timer() {
317
- const ret = wasm.disable_producing_blocks_by_timer();
294
+ export function produce_block_with_gt() {
295
+ const ret = wasm.produce_block_with_gt();
318
296
  return takeObject(ret);
319
297
  }
320
298
 
321
299
  /**
322
- * @param {Uint8Array} hash
323
- * @param {bigint} block_id
324
- * @param {bigint} peer_id
325
- * @returns {Promise<void>}
300
+ * @returns {Promise<string>}
326
301
  */
327
- export function process_failed_block_fetch(hash, block_id, peer_id) {
328
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
302
+ export function get_latest_block_hash() {
303
+ const ret = wasm.get_latest_block_hash();
329
304
  return takeObject(ret);
330
305
  }
331
306
 
332
307
  /**
333
- * @param {string} block_hash
334
- * @returns {Promise<WasmBlock>}
308
+ * @param {Uint8Array} buffer
309
+ * @param {string} private_key
310
+ * @returns {string}
335
311
  */
336
- export function get_block(block_hash) {
337
- const ret = wasm.get_block(addHeapObject(block_hash));
338
- return takeObject(ret);
312
+ export function sign_buffer(buffer, private_key) {
313
+ try {
314
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
315
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
316
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
317
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
318
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
319
+ if (r2) {
320
+ throw takeObject(r1);
321
+ }
322
+ return takeObject(r0);
323
+ } finally {
324
+ wasm.__wbindgen_add_to_stack_pointer(16);
325
+ }
339
326
  }
340
327
 
341
328
  /**
342
- * @param {string} key
343
- * @returns {boolean}
329
+ * @returns {WasmNetwork}
344
330
  */
345
- export function isPublicKey(key) {
346
- const ret = wasm.isPublicKey(addHeapObject(key));
347
- return ret !== 0;
331
+ export function get_network() {
332
+ const ret = wasm.get_network();
333
+ return WasmNetwork.__wrap(ret);
348
334
  }
349
335
 
350
336
  /**
@@ -357,135 +343,115 @@ export function hash(buffer) {
357
343
  }
358
344
 
359
345
  /**
360
- * @param {Array<any>} keys
361
- * @returns {Promise<WasmBalanceSnapshot>}
346
+ * @returns {Promise<WasmBlockchain>}
362
347
  */
363
- export function get_balance_snapshot(keys) {
364
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
348
+ export function get_blockchain() {
349
+ const ret = wasm.get_blockchain();
365
350
  return takeObject(ret);
366
351
  }
367
352
 
368
353
  /**
369
- * @param {Uint8Array} buffer
370
- * @param {string} signature
371
- * @param {string} public_key
372
- * @returns {boolean}
354
+ * @param {bigint} duration_in_ms
355
+ * @returns {Promise<void>}
373
356
  */
374
- export function verify_signature(buffer, signature, public_key) {
375
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
376
- return ret !== 0;
357
+ export function process_timer_event(duration_in_ms) {
358
+ const ret = wasm.process_timer_event(duration_in_ms);
359
+ return takeObject(ret);
377
360
  }
378
361
 
379
362
  /**
380
- * @returns {Promise<string>}
363
+ * @param {Uint8Array} buffer
364
+ * @param {Uint8Array} hash
365
+ * @param {bigint} block_id
366
+ * @param {bigint} peer_id
367
+ * @returns {Promise<void>}
381
368
  */
382
- export function get_latest_block_hash() {
383
- const ret = wasm.get_latest_block_hash();
369
+ export function process_fetched_block(buffer, hash, block_id, peer_id) {
370
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
384
371
  return takeObject(ret);
385
372
  }
386
373
 
387
374
  /**
388
- * @returns {Promise<boolean>}
375
+ * @param {string} json
376
+ * @returns {Promise<number>}
389
377
  */
390
- export function produce_block_with_gt() {
391
- const ret = wasm.produce_block_with_gt();
378
+ export function evaluate_script(json) {
379
+ const ret = wasm.evaluate_script(addHeapObject(json));
392
380
  return takeObject(ret);
393
381
  }
394
382
 
395
383
  /**
396
- * @param {bigint} peer_id
397
384
  * @returns {Promise<void>}
398
385
  */
399
- export function process_peer_disconnection(peer_id) {
400
- const ret = wasm.process_peer_disconnection(peer_id);
386
+ export function disable_producing_blocks_by_timer() {
387
+ const ret = wasm.disable_producing_blocks_by_timer();
401
388
  return takeObject(ret);
402
389
  }
403
390
 
404
391
  /**
405
- * @returns {Promise<WasmBlockchain>}
392
+ * @returns {Promise<WasmWallet>}
406
393
  */
407
- export function get_blockchain() {
408
- const ret = wasm.get_blockchain();
394
+ export function get_wallet() {
395
+ const ret = wasm.get_wallet();
409
396
  return takeObject(ret);
410
397
  }
411
398
 
412
399
  /**
413
- * @param {bigint} peer_id
414
- * @param {string} public_key
415
- * @returns {Promise<void>}
400
+ * @param {string} block_hash
401
+ * @returns {Promise<WasmBlock>}
416
402
  */
417
- export function remove_stun_peer(peer_id, public_key) {
418
- const ret = wasm.remove_stun_peer(peer_id, addHeapObject(public_key));
403
+ export function get_block(block_hash) {
404
+ const ret = wasm.get_block(addHeapObject(block_hash));
419
405
  return takeObject(ret);
420
406
  }
421
407
 
422
408
  /**
423
- * @param {bigint} peer_id
424
- * @param {boolean} initiate_handshake
425
- * @returns {Promise<void>}
409
+ * @returns {Promise<Array<any>>}
426
410
  */
427
- export function process_new_peer(peer_id, initiate_handshake) {
428
- const ret = wasm.process_new_peer(peer_id, initiate_handshake);
411
+ export function get_mempool_txs() {
412
+ const ret = wasm.get_mempool_txs();
429
413
  return takeObject(ret);
430
414
  }
431
415
 
432
416
  /**
433
- * @param {string} private_key
434
- * @returns {string}
435
- */
436
- export function generate_public_key(private_key) {
437
- try {
438
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
439
- wasm.generate_public_key(retptr, addHeapObject(private_key));
440
- var r0 = getInt32Memory0()[retptr / 4 + 0];
441
- var r1 = getInt32Memory0()[retptr / 4 + 1];
442
- var r2 = getInt32Memory0()[retptr / 4 + 2];
443
- if (r2) {
444
- throw takeObject(r1);
445
- }
446
- return takeObject(r0);
447
- } finally {
448
- wasm.__wbindgen_add_to_stack_pointer(16);
449
- }
450
- }
451
-
452
- /**
453
- * @param {string | undefined} [url]
454
- * @returns {Promise<WasmNetworkPeer>}
417
+ * @param {WasmBalanceSnapshot} snapshot
418
+ * @returns {Promise<void>}
455
419
  */
456
- export function create_network_peer(url) {
457
- var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
458
- var len0 = WASM_VECTOR_LEN;
459
- const ret = wasm.create_network_peer(ptr0, len0);
420
+ export function update_from_balance_snapshot(snapshot) {
421
+ _assertClass(snapshot, WasmBalanceSnapshot);
422
+ var ptr0 = snapshot.__destroy_into_raw();
423
+ const ret = wasm.update_from_balance_snapshot(ptr0);
460
424
  return takeObject(ret);
461
425
  }
462
426
 
463
427
  /**
464
- * @returns {WasmNetwork}
428
+ * @param {string} key
429
+ * @returns {boolean}
465
430
  */
466
- export function get_network() {
467
- const ret = wasm.get_network();
468
- return WasmNetwork.__wrap(ret);
431
+ export function isPublicKey(key) {
432
+ const ret = wasm.isPublicKey(addHeapObject(key));
433
+ return ret !== 0;
469
434
  }
470
435
 
471
436
  /**
472
- * @param {Uint8Array} buffer
473
- * @param {Uint8Array} hash
474
- * @param {bigint} block_id
475
437
  * @param {bigint} peer_id
476
438
  * @returns {Promise<void>}
477
439
  */
478
- export function process_fetched_block(buffer, hash, block_id, peer_id) {
479
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
440
+ export function process_peer_disconnection(peer_id) {
441
+ const ret = wasm.process_peer_disconnection(peer_id);
480
442
  return takeObject(ret);
481
443
  }
482
444
 
483
445
  /**
484
- * @param {string} json
485
- * @returns {Promise<number>}
446
+ * @param {string} config_json
447
+ * @param {string} private_key
448
+ * @param {number} log_level_num
449
+ * @param {bigint} hasten_multiplier
450
+ * @param {boolean} delete_old_blocks
451
+ * @returns {Promise<any>}
486
452
  */
487
- export function evaluate_script(json) {
488
- const ret = wasm.evaluate_script(addHeapObject(json));
453
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
454
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
489
455
  return takeObject(ret);
490
456
  }
491
457
 
@@ -499,50 +465,42 @@ export function process_stat_interval(current_time) {
499
465
  }
500
466
 
501
467
  /**
502
- * @param {string} public_key
503
- * @returns {Promise<Array<any>>}
504
- */
505
- export function get_account_slips(public_key) {
506
- const ret = wasm.get_account_slips(addHeapObject(public_key));
507
- return takeObject(ret);
508
- }
509
-
510
- /**
511
- * @param {string} config_json
512
- * @param {string} private_key
513
- * @param {number} log_level_num
514
- * @param {bigint} hasten_multiplier
515
- * @param {boolean} delete_old_blocks
516
- * @returns {Promise<any>}
468
+ * @param {bigint} threshold
469
+ * @returns {Promise<void>}
517
470
  */
518
- export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
519
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
471
+ export function write_issuance_file(threshold) {
472
+ const ret = wasm.write_issuance_file(threshold);
520
473
  return takeObject(ret);
521
474
  }
522
475
 
523
476
  /**
524
- * @returns {Promise<Array<any>>}
477
+ * @param {Array<any>} keys
478
+ * @returns {Promise<WasmBalanceSnapshot>}
525
479
  */
526
- export function get_mempool_txs() {
527
- const ret = wasm.get_mempool_txs();
480
+ export function get_balance_snapshot(keys) {
481
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
528
482
  return takeObject(ret);
529
483
  }
530
484
 
531
485
  /**
532
- * @param {bigint} duration_in_ms
486
+ * @param {bigint} peer_id
487
+ * @param {boolean} initiate_handshake
533
488
  * @returns {Promise<void>}
534
489
  */
535
- export function process_timer_event(duration_in_ms) {
536
- const ret = wasm.process_timer_event(duration_in_ms);
490
+ export function process_new_peer(peer_id, initiate_handshake) {
491
+ const ret = wasm.process_new_peer(peer_id, initiate_handshake);
537
492
  return takeObject(ret);
538
493
  }
539
494
 
540
495
  /**
541
- * @returns {string}
496
+ * @param {Uint8Array} buffer
497
+ * @param {string} signature
498
+ * @param {string} public_key
499
+ * @returns {boolean}
542
500
  */
543
- export function generate_private_key() {
544
- const ret = wasm.generate_private_key();
545
- return takeObject(ret);
501
+ export function verify_signature(buffer, signature, public_key) {
502
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
503
+ return ret !== 0;
546
504
  }
547
505
 
548
506
  /**
@@ -557,11 +515,23 @@ export function process_msg_buffer_from_peer(buffer, peer) {
557
515
  }
558
516
 
559
517
  /**
560
- * @returns {Promise<WasmWallet>}
518
+ * @param {string} private_key
519
+ * @returns {string}
561
520
  */
562
- export function get_wallet() {
563
- const ret = wasm.get_wallet();
564
- return takeObject(ret);
521
+ export function generate_public_key(private_key) {
522
+ try {
523
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
524
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
525
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
526
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
527
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
528
+ if (r2) {
529
+ throw takeObject(r1);
530
+ }
531
+ return takeObject(r0);
532
+ } finally {
533
+ wasm.__wbindgen_add_to_stack_pointer(16);
534
+ }
565
535
  }
566
536
 
567
537
  /**
@@ -572,6 +542,36 @@ export function get_nft_list() {
572
542
  return takeObject(ret);
573
543
  }
574
544
 
545
+ /**
546
+ * @param {string} public_key
547
+ * @returns {Promise<Array<any>>}
548
+ */
549
+ export function get_account_slips(public_key) {
550
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
551
+ return takeObject(ret);
552
+ }
553
+
554
+ /**
555
+ * @param {bigint} peer_id
556
+ * @param {string} public_key
557
+ * @returns {Promise<void>}
558
+ */
559
+ export function process_stun_peer(peer_id, public_key) {
560
+ const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
561
+ return takeObject(ret);
562
+ }
563
+
564
+ /**
565
+ * @param {Uint8Array} hash
566
+ * @param {bigint} block_id
567
+ * @param {bigint} peer_id
568
+ * @returns {Promise<void>}
569
+ */
570
+ export function process_failed_block_fetch(hash, block_id, peer_id) {
571
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
572
+ return takeObject(ret);
573
+ }
574
+
575
575
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
576
576
  ? { register: () => {}, unregister: () => {} }
577
577
  : new FinalizationRegistry(ptr => wasm.__wbg_saitowasm_free(ptr >>> 0));
@@ -3194,7 +3194,7 @@ function __wbg_get_imports() {
3194
3194
  imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3195
3195
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
3196
3196
  };
3197
- imports.wbg.__wbg_flushdata_b83ca5dfd0e29452 = function(arg0, arg1) {
3197
+ imports.wbg.__wbg_flushdata_15c72fd141afd1f6 = function(arg0, arg1) {
3198
3198
  let deferred0_0;
3199
3199
  let deferred0_1;
3200
3200
  try {
@@ -3205,7 +3205,7 @@ function __wbg_get_imports() {
3205
3205
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3206
3206
  }
3207
3207
  };
3208
- imports.wbg.__wbg_readvalue_8ca89f95bfe8c944 = function() { return handleError(function (arg0, arg1) {
3208
+ imports.wbg.__wbg_readvalue_69a3f2e88a3c946e = function() { return handleError(function (arg0, arg1) {
3209
3209
  let deferred0_0;
3210
3210
  let deferred0_1;
3211
3211
  try {
@@ -3217,13 +3217,13 @@ function __wbg_get_imports() {
3217
3217
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3218
3218
  }
3219
3219
  }, arguments) };
3220
- imports.wbg.__wbg_loadwallet_97d25e53a03a6a56 = function() {
3220
+ imports.wbg.__wbg_loadwallet_513ce6acad23df9a = function() {
3221
3221
  MsgHandler.load_wallet();
3222
3222
  };
3223
- imports.wbg.__wbg_savewallet_596fb85e8cbee355 = function() {
3223
+ imports.wbg.__wbg_savewallet_9aec487e01fc9fd2 = function() {
3224
3224
  MsgHandler.save_wallet();
3225
3225
  };
3226
- imports.wbg.__wbg_writevalue_ea7fa78ef5b39d86 = function(arg0, arg1, arg2) {
3226
+ imports.wbg.__wbg_writevalue_1520a480bb7c22ad = function(arg0, arg1, arg2) {
3227
3227
  let deferred0_0;
3228
3228
  let deferred0_1;
3229
3229
  try {
@@ -3234,7 +3234,7 @@ function __wbg_get_imports() {
3234
3234
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3235
3235
  }
3236
3236
  };
3237
- imports.wbg.__wbg_appendvalue_24226e288f591dd1 = function(arg0, arg1, arg2) {
3237
+ imports.wbg.__wbg_appendvalue_581d6c9ae5452456 = function(arg0, arg1, arg2) {
3238
3238
  let deferred0_0;
3239
3239
  let deferred0_1;
3240
3240
  try {
@@ -3245,7 +3245,7 @@ function __wbg_get_imports() {
3245
3245
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3246
3246
  }
3247
3247
  };
3248
- imports.wbg.__wbg_removevalue_f932e0ed2bf8400d = function() { return handleError(function (arg0, arg1) {
3248
+ imports.wbg.__wbg_removevalue_dd1985a9a11c06d0 = function() { return handleError(function (arg0, arg1) {
3249
3249
  let deferred0_0;
3250
3250
  let deferred0_1;
3251
3251
  try {
@@ -3257,7 +3257,7 @@ function __wbg_get_imports() {
3257
3257
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3258
3258
  }
3259
3259
  }, arguments) };
3260
- imports.wbg.__wbg_sendmessage_b4d1847c2b021a82 = function(arg0, arg1, arg2) {
3260
+ imports.wbg.__wbg_sendmessage_f113d492eb4524b5 = function(arg0, arg1, arg2) {
3261
3261
  let deferred0_0;
3262
3262
  let deferred0_1;
3263
3263
  try {
@@ -3268,7 +3268,7 @@ function __wbg_get_imports() {
3268
3268
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3269
3269
  }
3270
3270
  };
3271
- imports.wbg.__wbg_connecttopeer_8a6739b7848714bb = function() { return handleError(function (arg0, arg1) {
3271
+ imports.wbg.__wbg_connecttopeer_50c2d98a86c4e5b6 = function() { return handleError(function (arg0, arg1) {
3272
3272
  let deferred0_0;
3273
3273
  let deferred0_1;
3274
3274
  try {
@@ -3280,13 +3280,13 @@ function __wbg_get_imports() {
3280
3280
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3281
3281
  }
3282
3282
  }, arguments) };
3283
- imports.wbg.__wbg_getmyservices_54e00b491be9702b = function() {
3283
+ imports.wbg.__wbg_getmyservices_cc19d8692abbc29e = function() {
3284
3284
  const ret = MsgHandler.get_my_services();
3285
3285
  _assertClass(ret, WasmPeerServiceList);
3286
3286
  var ptr1 = ret.__destroy_into_raw();
3287
3287
  return ptr1;
3288
3288
  };
3289
- imports.wbg.__wbg_isexistingfile_729bbaf16e1fc1eb = function() { return handleError(function (arg0, arg1) {
3289
+ imports.wbg.__wbg_isexistingfile_1a7b6ec3d354fe47 = function() { return handleError(function (arg0, arg1) {
3290
3290
  let deferred0_0;
3291
3291
  let deferred0_1;
3292
3292
  try {
@@ -3298,7 +3298,7 @@ function __wbg_get_imports() {
3298
3298
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3299
3299
  }
3300
3300
  }, arguments) };
3301
- imports.wbg.__wbg_processapicall_894298f60f733af7 = function(arg0, arg1, arg2, arg3) {
3301
+ imports.wbg.__wbg_processapicall_1e58d2a1f1ee5c8f = function(arg0, arg1, arg2, arg3) {
3302
3302
  let deferred0_0;
3303
3303
  let deferred0_1;
3304
3304
  try {
@@ -3309,7 +3309,7 @@ function __wbg_get_imports() {
3309
3309
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3310
3310
  }
3311
3311
  };
3312
- imports.wbg.__wbg_processapierror_c0cff35bfda0d70f = function(arg0, arg1, arg2, arg3) {
3312
+ imports.wbg.__wbg_processapierror_10fc62fff96aca4e = function(arg0, arg1, arg2, arg3) {
3313
3313
  let deferred0_0;
3314
3314
  let deferred0_1;
3315
3315
  try {
@@ -3320,7 +3320,7 @@ function __wbg_get_imports() {
3320
3320
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3321
3321
  }
3322
3322
  };
3323
- imports.wbg.__wbg_processapisuccess_52f79c0d74c970a8 = function(arg0, arg1, arg2, arg3) {
3323
+ imports.wbg.__wbg_processapisuccess_115f7ccf9993b8bb = function(arg0, arg1, arg2, arg3) {
3324
3324
  let deferred0_0;
3325
3325
  let deferred0_1;
3326
3326
  try {
@@ -3331,21 +3331,21 @@ function __wbg_get_imports() {
3331
3331
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3332
3332
  }
3333
3333
  };
3334
- imports.wbg.__wbg_sendmessagetoall_596c525857e45a64 = function(arg0, arg1) {
3334
+ imports.wbg.__wbg_sendmessagetoall_3a2755dbde8c724b = function(arg0, arg1) {
3335
3335
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
3336
3336
  };
3337
- imports.wbg.__wbg_disconnectfrompeer_de724f594081a3dd = function() { return handleError(function (arg0) {
3337
+ imports.wbg.__wbg_disconnectfrompeer_6b3a9c09ca632433 = function() { return handleError(function (arg0) {
3338
3338
  const ret = MsgHandler.disconnect_from_peer(BigInt.asUintN(64, arg0));
3339
3339
  return addHeapObject(ret);
3340
3340
  }, arguments) };
3341
- imports.wbg.__wbg_loadblockfilelist_27d8a02029193360 = function() { return handleError(function () {
3341
+ imports.wbg.__wbg_loadblockfilelist_233c686ce335ec67 = function() { return handleError(function () {
3342
3342
  const ret = MsgHandler.load_block_file_list();
3343
3343
  return addHeapObject(ret);
3344
3344
  }, arguments) };
3345
- imports.wbg.__wbg_emitinterfaceevent_9485f82710a2343d = function(arg0, arg1, arg2, arg3) {
3345
+ imports.wbg.__wbg_emitinterfaceevent_141e012d55133e7f = function(arg0, arg1, arg2, arg3) {
3346
3346
  MsgHandler.emit_interface_event(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
3347
3347
  };
3348
- imports.wbg.__wbg_fetchblockfrompeer_5cda6b7a0e312f7b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3348
+ imports.wbg.__wbg_fetchblockfrompeer_3c7bd808808548a3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3349
3349
  let deferred0_0;
3350
3350
  let deferred0_1;
3351
3351
  try {
@@ -3357,7 +3357,7 @@ function __wbg_get_imports() {
3357
3357
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3358
3358
  }
3359
3359
  }, arguments) };
3360
- imports.wbg.__wbg_ensuredirectoryexists_c7d5f00e20b68be6 = function() { return handleError(function (arg0, arg1) {
3360
+ imports.wbg.__wbg_ensuredirectoryexists_46fdedb3a33ad8ed = function() { return handleError(function (arg0, arg1) {
3361
3361
  let deferred0_0;
3362
3362
  let deferred0_1;
3363
3363
  try {
@@ -3368,47 +3368,47 @@ function __wbg_get_imports() {
3368
3368
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3369
3369
  }
3370
3370
  }, arguments) };
3371
- imports.wbg.__wbg_sendmessagebypeerid_6a3fb6b5731d0dfc = function(arg0, arg1) {
3371
+ imports.wbg.__wbg_sendmessagebypeerid_571fb58dab25fe97 = function(arg0, arg1) {
3372
3372
  MsgHandler.send_message_by_peer_id(BigInt.asUintN(64, arg0), getObject(arg1));
3373
3373
  };
3374
3374
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
3375
3375
  const ret = WasmTransaction.__wrap(arg0);
3376
3376
  return addHeapObject(ret);
3377
3377
  };
3378
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
3379
- const ret = WasmWallet.__wrap(arg0);
3378
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
3379
+ const ret = WasmSlip.__wrap(arg0);
3380
3380
  return addHeapObject(ret);
3381
3381
  };
3382
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
3383
- const ret = WasmBlock.__wrap(arg0);
3382
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
3383
+ const ret = WasmBlockchain.__wrap(arg0);
3384
3384
  return addHeapObject(ret);
3385
3385
  };
3386
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
3387
- const ret = WasmPeer.__wrap(arg0);
3386
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
3387
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
3388
3388
  return addHeapObject(ret);
3389
3389
  };
3390
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
3391
- const ret = WasmBlockchain.__wrap(arg0);
3390
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
3391
+ const ret = WasmWallet.__wrap(arg0);
3392
3392
  return addHeapObject(ret);
3393
3393
  };
3394
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
3395
- const ret = WasmWalletSlip.__wrap(arg0);
3394
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
3395
+ const ret = WasmPeer.__wrap(arg0);
3396
3396
  return addHeapObject(ret);
3397
3397
  };
3398
3398
  imports.wbg.__wbg_wasmnft_new = function(arg0) {
3399
3399
  const ret = WasmNFT.__wrap(arg0);
3400
3400
  return addHeapObject(ret);
3401
3401
  };
3402
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
3403
- const ret = WasmBalanceSnapshot.__wrap(arg0);
3402
+ imports.wbg.__wbg_wasmnetworkpeer_new = function(arg0) {
3403
+ const ret = WasmNetworkPeer.__wrap(arg0);
3404
3404
  return addHeapObject(ret);
3405
3405
  };
3406
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
3407
- const ret = WasmSlip.__wrap(arg0);
3406
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
3407
+ const ret = WasmBlock.__wrap(arg0);
3408
3408
  return addHeapObject(ret);
3409
3409
  };
3410
- imports.wbg.__wbg_wasmnetworkpeer_new = function(arg0) {
3411
- const ret = WasmNetworkPeer.__wrap(arg0);
3410
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
3411
+ const ret = WasmWalletSlip.__wrap(arg0);
3412
3412
  return addHeapObject(ret);
3413
3413
  };
3414
3414
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
Binary file