saito-wasm 0.2.236 → 0.2.237

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-2b9a1c4a7c44b42e/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-04195e4e0e289216/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_40(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3b11bfd2adcc255d(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39c9a967ba047c79(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  function handleError(f, args) {
@@ -235,8 +235,8 @@ function handleError(f, args) {
235
235
  wasm.__wbindgen_exn_store(addHeapObject(e));
236
236
  }
237
237
  }
238
- function __wbg_adapter_75(arg0, arg1, arg2, arg3) {
239
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h0a4852a88044e43e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
238
+ function __wbg_adapter_83(arg0, arg1, arg2, arg3) {
239
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h01747b21cbcb5f0a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
240
240
  }
241
241
 
242
242
  function _assertClass(instance, klass) {
@@ -253,17 +253,6 @@ function addBorrowedObject(obj) {
253
253
  heap[--stack_pointer] = obj;
254
254
  return stack_pointer;
255
255
  }
256
- /**
257
- * @param {string | undefined} [url]
258
- * @returns {Promise<WasmNetworkPeer>}
259
- */
260
- module.exports.create_network_peer = function(url) {
261
- var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
262
- var len0 = WASM_VECTOR_LEN;
263
- const ret = wasm.create_network_peer(ptr0, len0);
264
- return takeObject(ret);
265
- };
266
-
267
256
  /**
268
257
  * @param {bigint} current_time
269
258
  * @returns {Promise<void>}
@@ -274,11 +263,10 @@ module.exports.process_stat_interval = function(current_time) {
274
263
  };
275
264
 
276
265
  /**
277
- * @param {string} block_hash
278
- * @returns {Promise<WasmBlock>}
266
+ * @returns {Promise<boolean>}
279
267
  */
280
- module.exports.get_block = function(block_hash) {
281
- const ret = wasm.get_block(addHeapObject(block_hash));
268
+ module.exports.produce_block_without_gt = function() {
269
+ const ret = wasm.produce_block_without_gt();
282
270
  return takeObject(ret);
283
271
  };
284
272
 
@@ -291,86 +279,75 @@ module.exports.get_network = function() {
291
279
  };
292
280
 
293
281
  /**
294
- * @param {string} public_key
295
- * @returns {Promise<Array<any>>}
282
+ * @param {bigint} peer_id
283
+ * @param {boolean} initiate_handshake
284
+ * @returns {Promise<void>}
296
285
  */
297
- module.exports.get_account_slips = function(public_key) {
298
- const ret = wasm.get_account_slips(addHeapObject(public_key));
286
+ module.exports.process_new_peer = function(peer_id, initiate_handshake) {
287
+ const ret = wasm.process_new_peer(peer_id, initiate_handshake);
299
288
  return takeObject(ret);
300
289
  };
301
290
 
302
291
  /**
303
- * @returns {Promise<Array<any>>}
292
+ * @param {string | undefined} [url]
293
+ * @returns {Promise<WasmNetworkPeer>}
304
294
  */
305
- module.exports.get_mempool_txs = function() {
306
- const ret = wasm.get_mempool_txs();
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);
307
299
  return takeObject(ret);
308
300
  };
309
301
 
310
302
  /**
311
- * @returns {Promise<boolean>}
303
+ * @param {Uint8Array} buffer
304
+ * @param {WasmNetworkPeer} peer
305
+ * @returns {Promise<Uint8Array>}
312
306
  */
313
- module.exports.produce_block_with_gt = function() {
314
- const ret = wasm.produce_block_with_gt();
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);
315
310
  return takeObject(ret);
316
311
  };
317
312
 
318
313
  /**
319
- * @param {Array<any>} keys
320
- * @returns {Promise<WasmBalanceSnapshot>}
314
+ * @returns {Promise<Array<any>>}
321
315
  */
322
- module.exports.get_balance_snapshot = function(keys) {
323
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
316
+ module.exports.get_mempool_txs = function() {
317
+ const ret = wasm.get_mempool_txs();
324
318
  return takeObject(ret);
325
319
  };
326
320
 
327
321
  /**
328
- * @param {string} private_key
329
322
  * @returns {string}
330
323
  */
331
- module.exports.generate_public_key = function(private_key) {
332
- try {
333
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
334
- wasm.generate_public_key(retptr, addHeapObject(private_key));
335
- var r0 = getInt32Memory0()[retptr / 4 + 0];
336
- var r1 = getInt32Memory0()[retptr / 4 + 1];
337
- var r2 = getInt32Memory0()[retptr / 4 + 2];
338
- if (r2) {
339
- throw takeObject(r1);
340
- }
341
- return takeObject(r0);
342
- } finally {
343
- wasm.__wbindgen_add_to_stack_pointer(16);
344
- }
324
+ module.exports.generate_private_key = function() {
325
+ const ret = wasm.generate_private_key();
326
+ return takeObject(ret);
345
327
  };
346
328
 
347
329
  /**
348
- * @param {bigint} duration_in_ms
349
- * @returns {Promise<void>}
330
+ * @returns {Promise<string>}
350
331
  */
351
- module.exports.process_timer_event = function(duration_in_ms) {
352
- const ret = wasm.process_timer_event(duration_in_ms);
332
+ module.exports.get_latest_block_hash = function() {
333
+ const ret = wasm.get_latest_block_hash();
353
334
  return takeObject(ret);
354
335
  };
355
336
 
356
337
  /**
357
- * @returns {Promise<WasmWallet>}
338
+ * @param {string} key
339
+ * @returns {boolean}
358
340
  */
359
- module.exports.get_wallet = function() {
360
- const ret = wasm.get_wallet();
361
- return takeObject(ret);
341
+ module.exports.isPublicKey = function(key) {
342
+ const ret = wasm.isPublicKey(addHeapObject(key));
343
+ return ret !== 0;
362
344
  };
363
345
 
364
346
  /**
365
- * @param {string} config_json
366
- * @param {string} private_key
367
- * @param {number} log_level_num
368
- * @param {bigint} hasten_multiplier
369
- * @param {boolean} delete_old_blocks
370
- * @returns {Promise<any>}
347
+ * @returns {Promise<WasmWallet>}
371
348
  */
372
- module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
373
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
349
+ module.exports.get_wallet = function() {
350
+ const ret = wasm.get_wallet();
374
351
  return takeObject(ret);
375
352
  };
376
353
 
@@ -384,42 +361,38 @@ module.exports.write_issuance_file = function(threshold) {
384
361
  };
385
362
 
386
363
  /**
387
- * @param {WasmBalanceSnapshot} snapshot
388
- * @returns {Promise<void>}
364
+ * @param {string} public_key
365
+ * @returns {Promise<Array<any>>}
389
366
  */
390
- module.exports.update_from_balance_snapshot = function(snapshot) {
391
- _assertClass(snapshot, WasmBalanceSnapshot);
392
- var ptr0 = snapshot.__destroy_into_raw();
393
- const ret = wasm.update_from_balance_snapshot(ptr0);
367
+ module.exports.get_account_slips = function(public_key) {
368
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
394
369
  return takeObject(ret);
395
370
  };
396
371
 
397
372
  /**
398
- * @returns {Promise<string>}
373
+ * @returns {Promise<void>}
399
374
  */
400
- module.exports.get_latest_block_hash = function() {
401
- const ret = wasm.get_latest_block_hash();
375
+ module.exports.disable_producing_blocks_by_timer = function() {
376
+ const ret = wasm.disable_producing_blocks_by_timer();
402
377
  return takeObject(ret);
403
378
  };
404
379
 
405
380
  /**
406
- * @param {Uint8Array} buffer
407
- * @param {WasmNetworkPeer} peer
408
- * @returns {Promise<Uint8Array>}
381
+ * @returns {Promise<WasmBlockchain>}
409
382
  */
410
- module.exports.process_msg_buffer_from_peer = function(buffer, peer) {
411
- _assertClass(peer, WasmNetworkPeer);
412
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer.__wbg_ptr);
383
+ module.exports.get_blockchain = function() {
384
+ const ret = wasm.get_blockchain();
413
385
  return takeObject(ret);
414
386
  };
415
387
 
416
388
  /**
417
- * @param {string} key
418
- * @returns {boolean}
389
+ * @param {bigint} peer_id
390
+ * @param {string} public_key
391
+ * @returns {Promise<void>}
419
392
  */
420
- module.exports.isPublicKey = function(key) {
421
- const ret = wasm.isPublicKey(addHeapObject(key));
422
- return ret !== 0;
393
+ module.exports.remove_stun_peer = function(peer_id, public_key) {
394
+ const ret = wasm.remove_stun_peer(peer_id, addHeapObject(public_key));
395
+ return takeObject(ret);
423
396
  };
424
397
 
425
398
  /**
@@ -434,68 +407,67 @@ module.exports.verify_signature = function(buffer, signature, public_key) {
434
407
  };
435
408
 
436
409
  /**
437
- * @param {Uint8Array} hash
438
- * @param {bigint} block_id
439
- * @param {bigint} peer_id
440
- * @returns {Promise<void>}
410
+ * @param {string} config_json
411
+ * @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>}
441
416
  */
442
- module.exports.process_failed_block_fetch = function(hash, block_id, peer_id) {
443
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
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);
444
419
  return takeObject(ret);
445
420
  };
446
421
 
447
422
  /**
448
423
  * @param {Uint8Array} buffer
449
- * @returns {string}
450
- */
451
- module.exports.hash = function(buffer) {
452
- const ret = wasm.hash(addHeapObject(buffer));
453
- return takeObject(ret);
454
- };
455
-
456
- /**
457
- * @returns {Promise<WasmBlockchain>}
424
+ * @param {Uint8Array} hash
425
+ * @param {bigint} block_id
426
+ * @param {bigint} peer_id
427
+ * @returns {Promise<void>}
458
428
  */
459
- module.exports.get_blockchain = function() {
460
- const ret = wasm.get_blockchain();
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);
461
431
  return takeObject(ret);
462
432
  };
463
433
 
464
434
  /**
465
- * @returns {string}
435
+ * @param {string} block_hash
436
+ * @returns {Promise<WasmBlock>}
466
437
  */
467
- module.exports.generate_private_key = function() {
468
- const ret = wasm.generate_private_key();
438
+ module.exports.get_block = function(block_hash) {
439
+ const ret = wasm.get_block(addHeapObject(block_hash));
469
440
  return takeObject(ret);
470
441
  };
471
442
 
472
443
  /**
444
+ * @param {Uint8Array} hash
445
+ * @param {bigint} block_id
473
446
  * @param {bigint} peer_id
474
- * @param {string} public_key
475
447
  * @returns {Promise<void>}
476
448
  */
477
- module.exports.remove_stun_peer = function(peer_id, public_key) {
478
- const ret = wasm.remove_stun_peer(peer_id, addHeapObject(public_key));
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);
479
451
  return takeObject(ret);
480
452
  };
481
453
 
482
454
  /**
483
- * @returns {Promise<boolean>}
455
+ * @param {Array<any>} keys
456
+ * @returns {Promise<WasmBalanceSnapshot>}
484
457
  */
485
- module.exports.produce_block_without_gt = function() {
486
- const ret = wasm.produce_block_without_gt();
458
+ module.exports.get_balance_snapshot = function(keys) {
459
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
487
460
  return takeObject(ret);
488
461
  };
489
462
 
490
463
  /**
491
- * @param {Uint8Array} buffer
492
- * @param {Uint8Array} hash
493
- * @param {bigint} block_id
494
- * @param {bigint} peer_id
464
+ * @param {WasmBalanceSnapshot} snapshot
495
465
  * @returns {Promise<void>}
496
466
  */
497
- module.exports.process_fetched_block = function(buffer, hash, block_id, peer_id) {
498
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
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);
499
471
  return takeObject(ret);
500
472
  };
501
473
 
@@ -519,32 +491,51 @@ module.exports.process_stun_peer = function(peer_id, public_key) {
519
491
  };
520
492
 
521
493
  /**
522
- * @returns {Promise<void>}
494
+ * @param {Uint8Array} buffer
495
+ * @param {string} private_key
496
+ * @returns {string}
523
497
  */
524
- module.exports.disable_producing_blocks_by_timer = function() {
525
- const ret = wasm.disable_producing_blocks_by_timer();
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
+ }
512
+ };
513
+
514
+ /**
515
+ * @param {Uint8Array} buffer
516
+ * @returns {string}
517
+ */
518
+ module.exports.hash = function(buffer) {
519
+ const ret = wasm.hash(addHeapObject(buffer));
526
520
  return takeObject(ret);
527
521
  };
528
522
 
529
523
  /**
530
- * @param {bigint} peer_id
531
- * @param {boolean} initiate_handshake
532
- * @returns {Promise<void>}
524
+ * @returns {Promise<boolean>}
533
525
  */
534
- module.exports.process_new_peer = function(peer_id, initiate_handshake) {
535
- const ret = wasm.process_new_peer(peer_id, initiate_handshake);
526
+ module.exports.produce_block_with_gt = function() {
527
+ const ret = wasm.produce_block_with_gt();
536
528
  return takeObject(ret);
537
529
  };
538
530
 
539
531
  /**
540
- * @param {Uint8Array} buffer
541
532
  * @param {string} private_key
542
533
  * @returns {string}
543
534
  */
544
- module.exports.sign_buffer = function(buffer, private_key) {
535
+ module.exports.generate_public_key = function(private_key) {
545
536
  try {
546
537
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
547
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
538
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
548
539
  var r0 = getInt32Memory0()[retptr / 4 + 0];
549
540
  var r1 = getInt32Memory0()[retptr / 4 + 1];
550
541
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -557,6 +548,15 @@ module.exports.sign_buffer = function(buffer, private_key) {
557
548
  }
558
549
  };
559
550
 
551
+ /**
552
+ * @param {bigint} duration_in_ms
553
+ * @returns {Promise<void>}
554
+ */
555
+ module.exports.process_timer_event = function(duration_in_ms) {
556
+ const ret = wasm.process_timer_event(duration_in_ms);
557
+ return takeObject(ret);
558
+ };
559
+
560
560
  /**
561
561
  * @returns {Promise<Array<any>>}
562
562
  */
@@ -3144,7 +3144,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
3144
3144
  const a = state0.a;
3145
3145
  state0.a = 0;
3146
3146
  try {
3147
- return __wbg_adapter_75(a, state0.b, arg0, arg1);
3147
+ return __wbg_adapter_83(a, state0.b, arg0, arg1);
3148
3148
  } finally {
3149
3149
  state0.a = a;
3150
3150
  }
@@ -3239,7 +3239,7 @@ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3239
3239
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
3240
3240
  };
3241
3241
 
3242
- module.exports.__wbg_flushdata_22cfa55555322299 = function(arg0, arg1) {
3242
+ module.exports.__wbg_flushdata_beb249a230c82766 = function(arg0, arg1) {
3243
3243
  let deferred0_0;
3244
3244
  let deferred0_1;
3245
3245
  try {
@@ -3251,7 +3251,7 @@ module.exports.__wbg_flushdata_22cfa55555322299 = function(arg0, arg1) {
3251
3251
  }
3252
3252
  };
3253
3253
 
3254
- module.exports.__wbg_readvalue_a014bedae5ff3e9c = function() { return handleError(function (arg0, arg1) {
3254
+ module.exports.__wbg_readvalue_c48590028c7df8a9 = function() { return handleError(function (arg0, arg1) {
3255
3255
  let deferred0_0;
3256
3256
  let deferred0_1;
3257
3257
  try {
@@ -3264,15 +3264,15 @@ module.exports.__wbg_readvalue_a014bedae5ff3e9c = function() { return handleErro
3264
3264
  }
3265
3265
  }, arguments) };
3266
3266
 
3267
- module.exports.__wbg_loadwallet_4b7301ec51f5a2f5 = function() {
3267
+ module.exports.__wbg_loadwallet_4ceb11a52ed31150 = function() {
3268
3268
  MsgHandler.load_wallet();
3269
3269
  };
3270
3270
 
3271
- module.exports.__wbg_savewallet_f35547cf83c3b8b3 = function() {
3271
+ module.exports.__wbg_savewallet_48a01048300d3ae0 = function() {
3272
3272
  MsgHandler.save_wallet();
3273
3273
  };
3274
3274
 
3275
- module.exports.__wbg_writevalue_91db0331ed8fdcb3 = function(arg0, arg1, arg2) {
3275
+ module.exports.__wbg_writevalue_51eec46fb19ca929 = function(arg0, arg1, arg2) {
3276
3276
  let deferred0_0;
3277
3277
  let deferred0_1;
3278
3278
  try {
@@ -3284,7 +3284,7 @@ module.exports.__wbg_writevalue_91db0331ed8fdcb3 = function(arg0, arg1, arg2) {
3284
3284
  }
3285
3285
  };
3286
3286
 
3287
- module.exports.__wbg_appendvalue_d2b4589b03ff06f8 = function(arg0, arg1, arg2) {
3287
+ module.exports.__wbg_appendvalue_f15e7c934617c061 = function(arg0, arg1, arg2) {
3288
3288
  let deferred0_0;
3289
3289
  let deferred0_1;
3290
3290
  try {
@@ -3296,7 +3296,7 @@ module.exports.__wbg_appendvalue_d2b4589b03ff06f8 = function(arg0, arg1, arg2) {
3296
3296
  }
3297
3297
  };
3298
3298
 
3299
- module.exports.__wbg_removevalue_440288a783d2d7bb = function() { return handleError(function (arg0, arg1) {
3299
+ module.exports.__wbg_removevalue_25479ac17db43454 = function() { return handleError(function (arg0, arg1) {
3300
3300
  let deferred0_0;
3301
3301
  let deferred0_1;
3302
3302
  try {
@@ -3309,7 +3309,7 @@ module.exports.__wbg_removevalue_440288a783d2d7bb = function() { return handleEr
3309
3309
  }
3310
3310
  }, arguments) };
3311
3311
 
3312
- module.exports.__wbg_sendmessage_98976f6c56db53ca = function(arg0, arg1, arg2) {
3312
+ module.exports.__wbg_sendmessage_08ead62f30c72dad = function(arg0, arg1, arg2) {
3313
3313
  let deferred0_0;
3314
3314
  let deferred0_1;
3315
3315
  try {
@@ -3321,7 +3321,7 @@ module.exports.__wbg_sendmessage_98976f6c56db53ca = function(arg0, arg1, arg2) {
3321
3321
  }
3322
3322
  };
3323
3323
 
3324
- module.exports.__wbg_connecttopeer_afb2773997357671 = function() { return handleError(function (arg0, arg1) {
3324
+ module.exports.__wbg_connecttopeer_af9c6648136c6fa9 = function() { return handleError(function (arg0, arg1) {
3325
3325
  let deferred0_0;
3326
3326
  let deferred0_1;
3327
3327
  try {
@@ -3334,14 +3334,14 @@ module.exports.__wbg_connecttopeer_afb2773997357671 = function() { return handle
3334
3334
  }
3335
3335
  }, arguments) };
3336
3336
 
3337
- module.exports.__wbg_getmyservices_c92dfe8bf6989459 = function() {
3337
+ module.exports.__wbg_getmyservices_a549f6123f9b4061 = function() {
3338
3338
  const ret = MsgHandler.get_my_services();
3339
3339
  _assertClass(ret, WasmPeerServiceList);
3340
3340
  var ptr1 = ret.__destroy_into_raw();
3341
3341
  return ptr1;
3342
3342
  };
3343
3343
 
3344
- module.exports.__wbg_isexistingfile_82a6da833c0d9e01 = function() { return handleError(function (arg0, arg1) {
3344
+ module.exports.__wbg_isexistingfile_cf510f78dcffb7f2 = function() { return handleError(function (arg0, arg1) {
3345
3345
  let deferred0_0;
3346
3346
  let deferred0_1;
3347
3347
  try {
@@ -3354,7 +3354,7 @@ module.exports.__wbg_isexistingfile_82a6da833c0d9e01 = function() { return handl
3354
3354
  }
3355
3355
  }, arguments) };
3356
3356
 
3357
- module.exports.__wbg_processapicall_0a45813746dd14d8 = function(arg0, arg1, arg2, arg3) {
3357
+ module.exports.__wbg_processapicall_21a70457c3678931 = function(arg0, arg1, arg2, arg3) {
3358
3358
  let deferred0_0;
3359
3359
  let deferred0_1;
3360
3360
  try {
@@ -3366,7 +3366,7 @@ module.exports.__wbg_processapicall_0a45813746dd14d8 = function(arg0, arg1, arg2
3366
3366
  }
3367
3367
  };
3368
3368
 
3369
- module.exports.__wbg_processapierror_f73bf5fd1dd64fe5 = function(arg0, arg1, arg2, arg3) {
3369
+ module.exports.__wbg_processapierror_a872953ac9a4bd83 = function(arg0, arg1, arg2, arg3) {
3370
3370
  let deferred0_0;
3371
3371
  let deferred0_1;
3372
3372
  try {
@@ -3378,7 +3378,7 @@ module.exports.__wbg_processapierror_f73bf5fd1dd64fe5 = function(arg0, arg1, arg
3378
3378
  }
3379
3379
  };
3380
3380
 
3381
- module.exports.__wbg_processapisuccess_5392e5b063119556 = function(arg0, arg1, arg2, arg3) {
3381
+ module.exports.__wbg_processapisuccess_cf9a66841e1cd4fb = function(arg0, arg1, arg2, arg3) {
3382
3382
  let deferred0_0;
3383
3383
  let deferred0_1;
3384
3384
  try {
@@ -3390,25 +3390,25 @@ module.exports.__wbg_processapisuccess_5392e5b063119556 = function(arg0, arg1, a
3390
3390
  }
3391
3391
  };
3392
3392
 
3393
- module.exports.__wbg_sendmessagetoall_9c34286dcf9fa790 = function(arg0, arg1) {
3393
+ module.exports.__wbg_sendmessagetoall_d8cc61d64753654f = function(arg0, arg1) {
3394
3394
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
3395
3395
  };
3396
3396
 
3397
- module.exports.__wbg_disconnectfrompeer_7498a4fc40776439 = function() { return handleError(function (arg0) {
3397
+ module.exports.__wbg_disconnectfrompeer_60611e0dc4c0512e = function() { return handleError(function (arg0) {
3398
3398
  const ret = MsgHandler.disconnect_from_peer(BigInt.asUintN(64, arg0));
3399
3399
  return addHeapObject(ret);
3400
3400
  }, arguments) };
3401
3401
 
3402
- module.exports.__wbg_loadblockfilelist_7538a71dd3965ec9 = function() { return handleError(function () {
3402
+ module.exports.__wbg_loadblockfilelist_02374f34ace16078 = function() { return handleError(function () {
3403
3403
  const ret = MsgHandler.load_block_file_list();
3404
3404
  return addHeapObject(ret);
3405
3405
  }, arguments) };
3406
3406
 
3407
- module.exports.__wbg_emitinterfaceevent_529275b38dbd5f27 = function(arg0, arg1, arg2, arg3) {
3407
+ module.exports.__wbg_emitinterfaceevent_1b2ec3532289893f = function(arg0, arg1, arg2, arg3) {
3408
3408
  MsgHandler.emit_interface_event(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
3409
3409
  };
3410
3410
 
3411
- module.exports.__wbg_fetchblockfrompeer_1537ae95789b52fc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3411
+ module.exports.__wbg_fetchblockfrompeer_b392dde3946bb09a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3412
3412
  let deferred0_0;
3413
3413
  let deferred0_1;
3414
3414
  try {
@@ -3421,7 +3421,7 @@ module.exports.__wbg_fetchblockfrompeer_1537ae95789b52fc = function() { return h
3421
3421
  }
3422
3422
  }, arguments) };
3423
3423
 
3424
- module.exports.__wbg_ensuredirectoryexists_84706b7ee03c04af = function() { return handleError(function (arg0, arg1) {
3424
+ module.exports.__wbg_ensuredirectoryexists_d1c681970723bd87 = function() { return handleError(function (arg0, arg1) {
3425
3425
  let deferred0_0;
3426
3426
  let deferred0_1;
3427
3427
  try {
@@ -3433,57 +3433,57 @@ module.exports.__wbg_ensuredirectoryexists_84706b7ee03c04af = function() { retur
3433
3433
  }
3434
3434
  }, arguments) };
3435
3435
 
3436
- module.exports.__wbg_sendmessagebypeerid_39857636f8073f01 = function(arg0, arg1) {
3436
+ module.exports.__wbg_sendmessagebypeerid_0304f60be3bb00c7 = function(arg0, arg1) {
3437
3437
  MsgHandler.send_message_by_peer_id(BigInt.asUintN(64, arg0), getObject(arg1));
3438
3438
  };
3439
3439
 
3440
- module.exports.__wbg_wasmpeer_new = function(arg0) {
3441
- const ret = WasmPeer.__wrap(arg0);
3440
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
3441
+ const ret = WasmTransaction.__wrap(arg0);
3442
3442
  return addHeapObject(ret);
3443
3443
  };
3444
3444
 
3445
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
3446
- const ret = WasmTransaction.__wrap(arg0);
3445
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
3446
+ const ret = WasmBlockchain.__wrap(arg0);
3447
3447
  return addHeapObject(ret);
3448
3448
  };
3449
3449
 
3450
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
3451
- const ret = WasmWalletSlip.__wrap(arg0);
3450
+ module.exports.__wbg_wasmnetworkpeer_new = function(arg0) {
3451
+ const ret = WasmNetworkPeer.__wrap(arg0);
3452
3452
  return addHeapObject(ret);
3453
3453
  };
3454
3454
 
3455
- module.exports.__wbg_wasmnft_new = function(arg0) {
3456
- const ret = WasmNFT.__wrap(arg0);
3455
+ module.exports.__wbg_wasmslip_new = function(arg0) {
3456
+ const ret = WasmSlip.__wrap(arg0);
3457
3457
  return addHeapObject(ret);
3458
3458
  };
3459
3459
 
3460
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
3461
- const ret = WasmBlockchain.__wrap(arg0);
3460
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
3461
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
3462
3462
  return addHeapObject(ret);
3463
3463
  };
3464
3464
 
3465
- module.exports.__wbg_wasmblock_new = function(arg0) {
3466
- const ret = WasmBlock.__wrap(arg0);
3465
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
3466
+ const ret = WasmPeer.__wrap(arg0);
3467
3467
  return addHeapObject(ret);
3468
3468
  };
3469
3469
 
3470
- module.exports.__wbg_wasmslip_new = function(arg0) {
3471
- const ret = WasmSlip.__wrap(arg0);
3470
+ module.exports.__wbg_wasmnft_new = function(arg0) {
3471
+ const ret = WasmNFT.__wrap(arg0);
3472
3472
  return addHeapObject(ret);
3473
3473
  };
3474
3474
 
3475
- module.exports.__wbg_wasmwallet_new = function(arg0) {
3476
- const ret = WasmWallet.__wrap(arg0);
3475
+ module.exports.__wbg_wasmblock_new = function(arg0) {
3476
+ const ret = WasmBlock.__wrap(arg0);
3477
3477
  return addHeapObject(ret);
3478
3478
  };
3479
3479
 
3480
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
3481
- const ret = WasmBalanceSnapshot.__wrap(arg0);
3480
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
3481
+ const ret = WasmWalletSlip.__wrap(arg0);
3482
3482
  return addHeapObject(ret);
3483
3483
  };
3484
3484
 
3485
- module.exports.__wbg_wasmnetworkpeer_new = function(arg0) {
3486
- const ret = WasmNetworkPeer.__wrap(arg0);
3485
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
3486
+ const ret = WasmWallet.__wrap(arg0);
3487
3487
  return addHeapObject(ret);
3488
3488
  };
3489
3489
 
@@ -3577,7 +3577,7 @@ module.exports.__wbg_error_696630710900ec44 = function(arg0, arg1, arg2, arg3) {
3577
3577
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
3578
3578
  };
3579
3579
 
3580
- module.exports.__wbindgen_closure_wrapper2806 = function(arg0, arg1, arg2) {
3580
+ module.exports.__wbindgen_closure_wrapper2803 = function(arg0, arg1, arg2) {
3581
3581
  const ret = makeMutClosure(arg0, arg1, 799, __wbg_adapter_40);
3582
3582
  return addHeapObject(ret);
3583
3583
  };
Binary file
@@ -291,8 +291,8 @@ export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b:
291
291
  export function __wbindgen_malloc(a: number, b: number): number;
292
292
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
293
293
  export const __wbindgen_export_2: WebAssembly.Table;
294
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3b11bfd2adcc255d(a: number, b: number, c: number): void;
294
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39c9a967ba047c79(a: number, b: number, c: number): void;
295
295
  export function __wbindgen_free(a: number, b: number, c: number): void;
296
296
  export function __wbindgen_exn_store(a: number): void;
297
- export function wasm_bindgen__convert__closures__invoke2_mut__h0a4852a88044e43e(a: number, b: number, c: number, d: number): void;
297
+ export function wasm_bindgen__convert__closures__invoke2_mut__h01747b21cbcb5f0a(a: number, b: number, c: number, d: number): void;
298
298
  export function __wbindgen_add_to_stack_pointer(a: number): number;