saito-wasm 0.2.47 → 0.2.49

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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.2.47"
3
+ version = "0.2.49"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.47",
3
+ "version": "0.2.49",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
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-fa6f5d071c260c51/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-7cb1fdb2d74c0083/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_38(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a522aab16cd3a22(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9555df729c12794d(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  function _assertClass(instance, klass) {
@@ -628,7 +628,7 @@ module.exports.produce_block_without_gt = function() {
628
628
  };
629
629
 
630
630
  function __wbg_adapter_402(arg0, arg1, arg2, arg3) {
631
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
631
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
632
632
  }
633
633
 
634
634
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2347,18 +2347,27 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2347
2347
  return addHeapObject(ret);
2348
2348
  };
2349
2349
 
2350
- module.exports.__wbg_wasmblock_new = function(arg0) {
2351
- const ret = WasmBlock.__wrap(arg0);
2350
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2351
+ const ret = WasmTransaction.__wrap(arg0);
2352
2352
  return addHeapObject(ret);
2353
2353
  };
2354
2354
 
2355
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2356
+ const obj = getObject(arg1);
2357
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2358
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2359
+ var len1 = WASM_VECTOR_LEN;
2360
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2361
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2362
+ };
2363
+
2355
2364
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2356
2365
  const ret = BigInt.asUintN(64, arg0);
2357
2366
  return addHeapObject(ret);
2358
2367
  };
2359
2368
 
2360
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2361
- const ret = WasmTransaction.__wrap(arg0);
2369
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2370
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2362
2371
  return addHeapObject(ret);
2363
2372
  };
2364
2373
 
@@ -2372,17 +2381,8 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2372
2381
  return addHeapObject(ret);
2373
2382
  };
2374
2383
 
2375
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2376
- const obj = getObject(arg1);
2377
- const ret = typeof(obj) === 'string' ? obj : undefined;
2378
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2379
- var len1 = WASM_VECTOR_LEN;
2380
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2381
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2382
- };
2383
-
2384
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2385
- const ret = WasmPeer.__wrap(arg0);
2384
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2385
+ const ret = WasmWallet.__wrap(arg0);
2386
2386
  return addHeapObject(ret);
2387
2387
  };
2388
2388
 
@@ -2391,13 +2391,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
2391
2391
  return addHeapObject(ret);
2392
2392
  };
2393
2393
 
2394
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2395
- const ret = WasmWallet.__wrap(arg0);
2394
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2395
+ const ret = WasmPeer.__wrap(arg0);
2396
2396
  return addHeapObject(ret);
2397
2397
  };
2398
2398
 
2399
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2400
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2399
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2400
+ const ret = WasmBlock.__wrap(arg0);
2401
2401
  return addHeapObject(ret);
2402
2402
  };
2403
2403
 
@@ -2427,15 +2427,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2427
2427
  return ret;
2428
2428
  };
2429
2429
 
2430
- module.exports.__wbg_sendmessage_c17bb4b2c64a2cd5 = function(arg0, arg1) {
2430
+ module.exports.__wbg_sendmessage_14fb7e3d76d1682e = function(arg0, arg1) {
2431
2431
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2432
2432
  };
2433
2433
 
2434
- module.exports.__wbg_sendmessagetoall_c15ae76a2ebf32e8 = function(arg0, arg1) {
2434
+ module.exports.__wbg_sendmessagetoall_0d41eeed5d7a6124 = function(arg0, arg1) {
2435
2435
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2436
2436
  };
2437
2437
 
2438
- module.exports.__wbg_connecttopeer_e802cb4fc8dc1c56 = function() { return handleError(function (arg0, arg1, arg2) {
2438
+ module.exports.__wbg_connecttopeer_5aaaadb986e0e20b = function() { return handleError(function (arg0, arg1, arg2) {
2439
2439
  let deferred0_0;
2440
2440
  let deferred0_1;
2441
2441
  try {
@@ -2448,12 +2448,12 @@ module.exports.__wbg_connecttopeer_e802cb4fc8dc1c56 = function() { return handle
2448
2448
  }
2449
2449
  }, arguments) };
2450
2450
 
2451
- module.exports.__wbg_disconnectfrompeer_3767febffe69eed4 = function() { return handleError(function (arg0) {
2451
+ module.exports.__wbg_disconnectfrompeer_f874ad2a5318b0bb = function() { return handleError(function (arg0) {
2452
2452
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2453
2453
  return addHeapObject(ret);
2454
2454
  }, arguments) };
2455
2455
 
2456
- module.exports.__wbg_fetchblockfrompeer_f8cc634110d5aac4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2456
+ module.exports.__wbg_fetchblockfrompeer_8f4164aacf26c0ab = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2457
2457
  let deferred0_0;
2458
2458
  let deferred0_1;
2459
2459
  try {
@@ -2466,7 +2466,7 @@ module.exports.__wbg_fetchblockfrompeer_f8cc634110d5aac4 = function() { return h
2466
2466
  }
2467
2467
  }, arguments) };
2468
2468
 
2469
- module.exports.__wbg_writevalue_dd606cfac0badbab = function(arg0, arg1, arg2) {
2469
+ module.exports.__wbg_writevalue_486d7c11839f447c = function(arg0, arg1, arg2) {
2470
2470
  let deferred0_0;
2471
2471
  let deferred0_1;
2472
2472
  try {
@@ -2478,7 +2478,7 @@ module.exports.__wbg_writevalue_dd606cfac0badbab = function(arg0, arg1, arg2) {
2478
2478
  }
2479
2479
  };
2480
2480
 
2481
- module.exports.__wbg_appendvalue_c6a090d14f62deeb = function(arg0, arg1, arg2) {
2481
+ module.exports.__wbg_appendvalue_0dff0080ac252a8e = function(arg0, arg1, arg2) {
2482
2482
  let deferred0_0;
2483
2483
  let deferred0_1;
2484
2484
  try {
@@ -2490,7 +2490,7 @@ module.exports.__wbg_appendvalue_c6a090d14f62deeb = function(arg0, arg1, arg2) {
2490
2490
  }
2491
2491
  };
2492
2492
 
2493
- module.exports.__wbg_flushdata_16e92e0d7a248fe5 = function(arg0, arg1) {
2493
+ module.exports.__wbg_flushdata_4431ef7d81685adf = function(arg0, arg1) {
2494
2494
  let deferred0_0;
2495
2495
  let deferred0_1;
2496
2496
  try {
@@ -2502,7 +2502,7 @@ module.exports.__wbg_flushdata_16e92e0d7a248fe5 = function(arg0, arg1) {
2502
2502
  }
2503
2503
  };
2504
2504
 
2505
- module.exports.__wbg_readvalue_5415a0144f951574 = function() { return handleError(function (arg0, arg1) {
2505
+ module.exports.__wbg_readvalue_5e2ba5ec20784c22 = function() { return handleError(function (arg0, arg1) {
2506
2506
  let deferred0_0;
2507
2507
  let deferred0_1;
2508
2508
  try {
@@ -2515,12 +2515,12 @@ module.exports.__wbg_readvalue_5415a0144f951574 = function() { return handleErro
2515
2515
  }
2516
2516
  }, arguments) };
2517
2517
 
2518
- module.exports.__wbg_loadblockfilelist_8fcee7030596dc75 = function() { return handleError(function () {
2518
+ module.exports.__wbg_loadblockfilelist_72515cab79de4170 = function() { return handleError(function () {
2519
2519
  const ret = MsgHandler.load_block_file_list();
2520
2520
  return addHeapObject(ret);
2521
2521
  }, arguments) };
2522
2522
 
2523
- module.exports.__wbg_isexistingfile_299ee7557f161118 = function() { return handleError(function (arg0, arg1) {
2523
+ module.exports.__wbg_isexistingfile_9dce6cccda9e3acc = function() { return handleError(function (arg0, arg1) {
2524
2524
  let deferred0_0;
2525
2525
  let deferred0_1;
2526
2526
  try {
@@ -2533,7 +2533,7 @@ module.exports.__wbg_isexistingfile_299ee7557f161118 = function() { return handl
2533
2533
  }
2534
2534
  }, arguments) };
2535
2535
 
2536
- module.exports.__wbg_removevalue_63b680169aa507e9 = function() { return handleError(function (arg0, arg1) {
2536
+ module.exports.__wbg_removevalue_b0153aee74faeb19 = function() { return handleError(function (arg0, arg1) {
2537
2537
  let deferred0_0;
2538
2538
  let deferred0_1;
2539
2539
  try {
@@ -2546,7 +2546,7 @@ module.exports.__wbg_removevalue_63b680169aa507e9 = function() { return handleEr
2546
2546
  }
2547
2547
  }, arguments) };
2548
2548
 
2549
- module.exports.__wbg_ensureblockdirectoryexists_7bf196ada1ce9616 = function() { return handleError(function (arg0, arg1) {
2549
+ module.exports.__wbg_ensureblockdirectoryexists_3a46ffae405d5ea9 = function() { return handleError(function (arg0, arg1) {
2550
2550
  let deferred0_0;
2551
2551
  let deferred0_1;
2552
2552
  try {
@@ -2558,19 +2558,19 @@ module.exports.__wbg_ensureblockdirectoryexists_7bf196ada1ce9616 = function() {
2558
2558
  }
2559
2559
  }, arguments) };
2560
2560
 
2561
- module.exports.__wbg_processapicall_39b1c86d275aa9dc = function(arg0, arg1, arg2) {
2561
+ module.exports.__wbg_processapicall_43f052163a76f535 = function(arg0, arg1, arg2) {
2562
2562
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2563
2563
  };
2564
2564
 
2565
- module.exports.__wbg_processapisuccess_b28d68f330f9df7a = function(arg0, arg1, arg2) {
2565
+ module.exports.__wbg_processapisuccess_5d13822083ee3829 = function(arg0, arg1, arg2) {
2566
2566
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2567
2567
  };
2568
2568
 
2569
- module.exports.__wbg_processapierror_ce0f946f1dde2055 = function(arg0, arg1, arg2) {
2569
+ module.exports.__wbg_processapierror_600b415cdd59c01f = function(arg0, arg1, arg2) {
2570
2570
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2571
2571
  };
2572
2572
 
2573
- module.exports.__wbg_sendinterfaceevent_55fb09ee075086ed = function(arg0, arg1, arg2, arg3, arg4) {
2573
+ module.exports.__wbg_sendinterfaceevent_3f2141752a17ec87 = function(arg0, arg1, arg2, arg3, arg4) {
2574
2574
  let deferred0_0;
2575
2575
  let deferred0_1;
2576
2576
  let deferred1_0;
@@ -2587,7 +2587,7 @@ module.exports.__wbg_sendinterfaceevent_55fb09ee075086ed = function(arg0, arg1,
2587
2587
  }
2588
2588
  };
2589
2589
 
2590
- module.exports.__wbg_sendblocksuccess_19d80b820ff29055 = function(arg0, arg1, arg2) {
2590
+ module.exports.__wbg_sendblocksuccess_2b5351867ceaca18 = function(arg0, arg1, arg2) {
2591
2591
  let deferred0_0;
2592
2592
  let deferred0_1;
2593
2593
  try {
@@ -2599,11 +2599,11 @@ module.exports.__wbg_sendblocksuccess_19d80b820ff29055 = function(arg0, arg1, ar
2599
2599
  }
2600
2600
  };
2601
2601
 
2602
- module.exports.__wbg_sendwalletupdate_9af33aac008f85ef = function() {
2602
+ module.exports.__wbg_sendwalletupdate_b0f32a5b0e35b62f = function() {
2603
2603
  MsgHandler.send_wallet_update();
2604
2604
  };
2605
2605
 
2606
- module.exports.__wbg_sendnewversionalert_6546210ce51b1993 = function(arg0, arg1, arg2) {
2606
+ module.exports.__wbg_sendnewversionalert_3dfe9c238acd83ee = function(arg0, arg1, arg2) {
2607
2607
  let deferred0_0;
2608
2608
  let deferred0_1;
2609
2609
  try {
@@ -2615,19 +2615,19 @@ module.exports.__wbg_sendnewversionalert_6546210ce51b1993 = function(arg0, arg1,
2615
2615
  }
2616
2616
  };
2617
2617
 
2618
- module.exports.__wbg_sendblockfetchstatusevent_75af13f516ddb066 = function(arg0) {
2618
+ module.exports.__wbg_sendblockfetchstatusevent_944cad52cd10fc9a = function(arg0) {
2619
2619
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2620
2620
  };
2621
2621
 
2622
- module.exports.__wbg_savewallet_0987aaef843b312e = function() {
2622
+ module.exports.__wbg_savewallet_5f84aa4093ef08ea = function() {
2623
2623
  MsgHandler.save_wallet();
2624
2624
  };
2625
2625
 
2626
- module.exports.__wbg_loadwallet_f444f37f296513d1 = function() {
2626
+ module.exports.__wbg_loadwallet_bca45c067563ea07 = function() {
2627
2627
  MsgHandler.load_wallet();
2628
2628
  };
2629
2629
 
2630
- module.exports.__wbg_getmyservices_ab30b6d0644a3a46 = function() {
2630
+ module.exports.__wbg_getmyservices_01bd7e7d8b383b95 = function() {
2631
2631
  const ret = MsgHandler.get_my_services();
2632
2632
  _assertClass(ret, WasmPeerServiceList);
2633
2633
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -241,8 +241,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
241
241
  export function __wbindgen_malloc(a: number, b: number): number;
242
242
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
243
243
  export const __wbindgen_export_2: WebAssembly.Table;
244
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a522aab16cd3a22(a: number, b: number, c: number): void;
244
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9555df729c12794d(a: number, b: number, c: number): void;
245
245
  export function __wbindgen_add_to_stack_pointer(a: number): number;
246
246
  export function __wbindgen_free(a: number, b: number, c: number): void;
247
247
  export function __wbindgen_exn_store(a: number): void;
248
- export function wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(a: number, b: number, c: number, d: number): void;
248
+ export function wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.47",
3
+ "version": "0.2.49",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "cross-env": "^7.0.3",
13
- "node-fetch": "^3.3.0"
12
+ "node-fetch": "^3.3.0",
13
+ "cross-env": "^7.0.3"
14
14
  }
15
15
  }
@@ -1088,11 +1088,11 @@ export interface InitOutput {
1088
1088
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1089
1089
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1090
1090
  readonly __wbindgen_export_2: WebAssembly.Table;
1091
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a522aab16cd3a22: (a: number, b: number, c: number) => void;
1091
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9555df729c12794d: (a: number, b: number, c: number) => void;
1092
1092
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1093
1093
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1094
1094
  readonly __wbindgen_exn_store: (a: number) => void;
1095
- readonly wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a: (a: number, b: number, c: number, d: number) => void;
1095
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc: (a: number, b: number, c: number, d: number) => void;
1096
1096
  }
1097
1097
 
1098
1098
  export type SyncInitInput = BufferSource | WebAssembly.Module;
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-fa6f5d071c260c51/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-7cb1fdb2d74c0083/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_38(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a522aab16cd3a22(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9555df729c12794d(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function _assertClass(instance, klass) {
@@ -626,7 +626,7 @@ export function produce_block_without_gt() {
626
626
  }
627
627
 
628
628
  function __wbg_adapter_402(arg0, arg1, arg2, arg3) {
629
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
629
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
630
630
  }
631
631
 
632
632
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2363,16 +2363,24 @@ function __wbg_get_imports() {
2363
2363
  const ret = getStringFromWasm0(arg0, arg1);
2364
2364
  return addHeapObject(ret);
2365
2365
  };
2366
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2367
- const ret = WasmBlock.__wrap(arg0);
2366
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2367
+ const ret = WasmTransaction.__wrap(arg0);
2368
2368
  return addHeapObject(ret);
2369
2369
  };
2370
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2371
+ const obj = getObject(arg1);
2372
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2373
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2374
+ var len1 = WASM_VECTOR_LEN;
2375
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2376
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2377
+ };
2370
2378
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2371
2379
  const ret = BigInt.asUintN(64, arg0);
2372
2380
  return addHeapObject(ret);
2373
2381
  };
2374
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2375
- const ret = WasmTransaction.__wrap(arg0);
2382
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2383
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2376
2384
  return addHeapObject(ret);
2377
2385
  };
2378
2386
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
@@ -2383,28 +2391,20 @@ function __wbg_get_imports() {
2383
2391
  const ret = WasmBlockchain.__wrap(arg0);
2384
2392
  return addHeapObject(ret);
2385
2393
  };
2386
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2387
- const obj = getObject(arg1);
2388
- const ret = typeof(obj) === 'string' ? obj : undefined;
2389
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2390
- var len1 = WASM_VECTOR_LEN;
2391
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2392
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2393
- };
2394
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2395
- const ret = WasmPeer.__wrap(arg0);
2394
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2395
+ const ret = WasmWallet.__wrap(arg0);
2396
2396
  return addHeapObject(ret);
2397
2397
  };
2398
2398
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2399
2399
  const ret = WasmSlip.__wrap(arg0);
2400
2400
  return addHeapObject(ret);
2401
2401
  };
2402
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2403
- const ret = WasmWallet.__wrap(arg0);
2402
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2403
+ const ret = WasmPeer.__wrap(arg0);
2404
2404
  return addHeapObject(ret);
2405
2405
  };
2406
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2407
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2406
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2407
+ const ret = WasmBlock.__wrap(arg0);
2408
2408
  return addHeapObject(ret);
2409
2409
  };
2410
2410
  imports.wbg.__wbg_wasmhop_new = function(arg0) {
@@ -2428,13 +2428,13 @@ function __wbg_get_imports() {
2428
2428
  const ret = getObject(arg0) in getObject(arg1);
2429
2429
  return ret;
2430
2430
  };
2431
- imports.wbg.__wbg_sendmessage_c17bb4b2c64a2cd5 = function(arg0, arg1) {
2431
+ imports.wbg.__wbg_sendmessage_14fb7e3d76d1682e = function(arg0, arg1) {
2432
2432
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2433
2433
  };
2434
- imports.wbg.__wbg_sendmessagetoall_c15ae76a2ebf32e8 = function(arg0, arg1) {
2434
+ imports.wbg.__wbg_sendmessagetoall_0d41eeed5d7a6124 = function(arg0, arg1) {
2435
2435
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2436
2436
  };
2437
- imports.wbg.__wbg_connecttopeer_e802cb4fc8dc1c56 = function() { return handleError(function (arg0, arg1, arg2) {
2437
+ imports.wbg.__wbg_connecttopeer_5aaaadb986e0e20b = function() { return handleError(function (arg0, arg1, arg2) {
2438
2438
  let deferred0_0;
2439
2439
  let deferred0_1;
2440
2440
  try {
@@ -2446,11 +2446,11 @@ function __wbg_get_imports() {
2446
2446
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2447
2447
  }
2448
2448
  }, arguments) };
2449
- imports.wbg.__wbg_disconnectfrompeer_3767febffe69eed4 = function() { return handleError(function (arg0) {
2449
+ imports.wbg.__wbg_disconnectfrompeer_f874ad2a5318b0bb = function() { return handleError(function (arg0) {
2450
2450
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2451
2451
  return addHeapObject(ret);
2452
2452
  }, arguments) };
2453
- imports.wbg.__wbg_fetchblockfrompeer_f8cc634110d5aac4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2453
+ imports.wbg.__wbg_fetchblockfrompeer_8f4164aacf26c0ab = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2454
2454
  let deferred0_0;
2455
2455
  let deferred0_1;
2456
2456
  try {
@@ -2462,7 +2462,7 @@ function __wbg_get_imports() {
2462
2462
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2463
2463
  }
2464
2464
  }, arguments) };
2465
- imports.wbg.__wbg_writevalue_dd606cfac0badbab = function(arg0, arg1, arg2) {
2465
+ imports.wbg.__wbg_writevalue_486d7c11839f447c = function(arg0, arg1, arg2) {
2466
2466
  let deferred0_0;
2467
2467
  let deferred0_1;
2468
2468
  try {
@@ -2473,7 +2473,7 @@ function __wbg_get_imports() {
2473
2473
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2474
2474
  }
2475
2475
  };
2476
- imports.wbg.__wbg_appendvalue_c6a090d14f62deeb = function(arg0, arg1, arg2) {
2476
+ imports.wbg.__wbg_appendvalue_0dff0080ac252a8e = function(arg0, arg1, arg2) {
2477
2477
  let deferred0_0;
2478
2478
  let deferred0_1;
2479
2479
  try {
@@ -2484,7 +2484,7 @@ function __wbg_get_imports() {
2484
2484
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2485
2485
  }
2486
2486
  };
2487
- imports.wbg.__wbg_flushdata_16e92e0d7a248fe5 = function(arg0, arg1) {
2487
+ imports.wbg.__wbg_flushdata_4431ef7d81685adf = function(arg0, arg1) {
2488
2488
  let deferred0_0;
2489
2489
  let deferred0_1;
2490
2490
  try {
@@ -2495,7 +2495,7 @@ function __wbg_get_imports() {
2495
2495
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2496
2496
  }
2497
2497
  };
2498
- imports.wbg.__wbg_readvalue_5415a0144f951574 = function() { return handleError(function (arg0, arg1) {
2498
+ imports.wbg.__wbg_readvalue_5e2ba5ec20784c22 = function() { return handleError(function (arg0, arg1) {
2499
2499
  let deferred0_0;
2500
2500
  let deferred0_1;
2501
2501
  try {
@@ -2507,11 +2507,11 @@ function __wbg_get_imports() {
2507
2507
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2508
2508
  }
2509
2509
  }, arguments) };
2510
- imports.wbg.__wbg_loadblockfilelist_8fcee7030596dc75 = function() { return handleError(function () {
2510
+ imports.wbg.__wbg_loadblockfilelist_72515cab79de4170 = function() { return handleError(function () {
2511
2511
  const ret = MsgHandler.load_block_file_list();
2512
2512
  return addHeapObject(ret);
2513
2513
  }, arguments) };
2514
- imports.wbg.__wbg_isexistingfile_299ee7557f161118 = function() { return handleError(function (arg0, arg1) {
2514
+ imports.wbg.__wbg_isexistingfile_9dce6cccda9e3acc = function() { return handleError(function (arg0, arg1) {
2515
2515
  let deferred0_0;
2516
2516
  let deferred0_1;
2517
2517
  try {
@@ -2523,7 +2523,7 @@ function __wbg_get_imports() {
2523
2523
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2524
2524
  }
2525
2525
  }, arguments) };
2526
- imports.wbg.__wbg_removevalue_63b680169aa507e9 = function() { return handleError(function (arg0, arg1) {
2526
+ imports.wbg.__wbg_removevalue_b0153aee74faeb19 = function() { return handleError(function (arg0, arg1) {
2527
2527
  let deferred0_0;
2528
2528
  let deferred0_1;
2529
2529
  try {
@@ -2535,7 +2535,7 @@ function __wbg_get_imports() {
2535
2535
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2536
2536
  }
2537
2537
  }, arguments) };
2538
- imports.wbg.__wbg_ensureblockdirectoryexists_7bf196ada1ce9616 = function() { return handleError(function (arg0, arg1) {
2538
+ imports.wbg.__wbg_ensureblockdirectoryexists_3a46ffae405d5ea9 = function() { return handleError(function (arg0, arg1) {
2539
2539
  let deferred0_0;
2540
2540
  let deferred0_1;
2541
2541
  try {
@@ -2546,16 +2546,16 @@ function __wbg_get_imports() {
2546
2546
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2547
2547
  }
2548
2548
  }, arguments) };
2549
- imports.wbg.__wbg_processapicall_39b1c86d275aa9dc = function(arg0, arg1, arg2) {
2549
+ imports.wbg.__wbg_processapicall_43f052163a76f535 = function(arg0, arg1, arg2) {
2550
2550
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2551
2551
  };
2552
- imports.wbg.__wbg_processapisuccess_b28d68f330f9df7a = function(arg0, arg1, arg2) {
2552
+ imports.wbg.__wbg_processapisuccess_5d13822083ee3829 = function(arg0, arg1, arg2) {
2553
2553
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2554
2554
  };
2555
- imports.wbg.__wbg_processapierror_ce0f946f1dde2055 = function(arg0, arg1, arg2) {
2555
+ imports.wbg.__wbg_processapierror_600b415cdd59c01f = function(arg0, arg1, arg2) {
2556
2556
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2557
2557
  };
2558
- imports.wbg.__wbg_sendinterfaceevent_55fb09ee075086ed = function(arg0, arg1, arg2, arg3, arg4) {
2558
+ imports.wbg.__wbg_sendinterfaceevent_3f2141752a17ec87 = function(arg0, arg1, arg2, arg3, arg4) {
2559
2559
  let deferred0_0;
2560
2560
  let deferred0_1;
2561
2561
  let deferred1_0;
@@ -2571,7 +2571,7 @@ function __wbg_get_imports() {
2571
2571
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2572
2572
  }
2573
2573
  };
2574
- imports.wbg.__wbg_sendblocksuccess_19d80b820ff29055 = function(arg0, arg1, arg2) {
2574
+ imports.wbg.__wbg_sendblocksuccess_2b5351867ceaca18 = function(arg0, arg1, arg2) {
2575
2575
  let deferred0_0;
2576
2576
  let deferred0_1;
2577
2577
  try {
@@ -2582,10 +2582,10 @@ function __wbg_get_imports() {
2582
2582
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2583
2583
  }
2584
2584
  };
2585
- imports.wbg.__wbg_sendwalletupdate_9af33aac008f85ef = function() {
2585
+ imports.wbg.__wbg_sendwalletupdate_b0f32a5b0e35b62f = function() {
2586
2586
  MsgHandler.send_wallet_update();
2587
2587
  };
2588
- imports.wbg.__wbg_sendnewversionalert_6546210ce51b1993 = function(arg0, arg1, arg2) {
2588
+ imports.wbg.__wbg_sendnewversionalert_3dfe9c238acd83ee = function(arg0, arg1, arg2) {
2589
2589
  let deferred0_0;
2590
2590
  let deferred0_1;
2591
2591
  try {
@@ -2596,16 +2596,16 @@ function __wbg_get_imports() {
2596
2596
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2597
2597
  }
2598
2598
  };
2599
- imports.wbg.__wbg_sendblockfetchstatusevent_75af13f516ddb066 = function(arg0) {
2599
+ imports.wbg.__wbg_sendblockfetchstatusevent_944cad52cd10fc9a = function(arg0) {
2600
2600
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2601
2601
  };
2602
- imports.wbg.__wbg_savewallet_0987aaef843b312e = function() {
2602
+ imports.wbg.__wbg_savewallet_5f84aa4093ef08ea = function() {
2603
2603
  MsgHandler.save_wallet();
2604
2604
  };
2605
- imports.wbg.__wbg_loadwallet_f444f37f296513d1 = function() {
2605
+ imports.wbg.__wbg_loadwallet_bca45c067563ea07 = function() {
2606
2606
  MsgHandler.load_wallet();
2607
2607
  };
2608
- imports.wbg.__wbg_getmyservices_ab30b6d0644a3a46 = function() {
2608
+ imports.wbg.__wbg_getmyservices_01bd7e7d8b383b95 = function() {
2609
2609
  const ret = MsgHandler.get_my_services();
2610
2610
  _assertClass(ret, WasmPeerServiceList);
2611
2611
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -241,8 +241,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
241
241
  export function __wbindgen_malloc(a: number, b: number): number;
242
242
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
243
243
  export const __wbindgen_export_2: WebAssembly.Table;
244
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a522aab16cd3a22(a: number, b: number, c: number): void;
244
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9555df729c12794d(a: number, b: number, c: number): void;
245
245
  export function __wbindgen_add_to_stack_pointer(a: number): number;
246
246
  export function __wbindgen_free(a: number, b: number, c: number): void;
247
247
  export function __wbindgen_exn_store(a: number): void;
248
- export function wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(a: number, b: number, c: number, d: number): void;
248
+ export function wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.47",
3
+ "version": "0.2.49",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",