saito-wasm 0.2.80 → 0.2.81

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.80"
3
+ version = "0.2.81"
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.80",
3
+ "version": "0.2.81",
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,17 +1,26 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-a7a480dcce53f88d/js/msg_handler.js`);
5
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-83691da784da2e89/js/msg_handler.js`);
5
+ const { TextEncoder, TextDecoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
9
9
  heap.push(undefined, null, true, false);
10
10
 
11
- function getObject(idx) { return heap[idx]; }
12
-
13
11
  let heap_next = heap.length;
14
12
 
13
+ function addHeapObject(obj) {
14
+ if (heap_next === heap.length) heap.push(heap.length + 1);
15
+ const idx = heap_next;
16
+ heap_next = heap[idx];
17
+
18
+ heap[idx] = obj;
19
+ return idx;
20
+ }
21
+
22
+ function getObject(idx) { return heap[idx]; }
23
+
15
24
  function dropObject(idx) {
16
25
  if (idx < 132) return;
17
26
  heap[idx] = heap_next;
@@ -24,18 +33,7 @@ function takeObject(idx) {
24
33
  return ret;
25
34
  }
26
35
 
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
-
38
- cachedTextDecoder.decode();
36
+ let WASM_VECTOR_LEN = 0;
39
37
 
40
38
  let cachedUint8Memory0 = null;
41
39
 
@@ -46,13 +44,6 @@ function getUint8Memory0() {
46
44
  return cachedUint8Memory0;
47
45
  }
48
46
 
49
- function getStringFromWasm0(ptr, len) {
50
- ptr = ptr >>> 0;
51
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
- }
53
-
54
- let WASM_VECTOR_LEN = 0;
55
-
56
47
  let cachedTextEncoder = new TextEncoder('utf-8');
57
48
 
58
49
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -120,6 +111,15 @@ function getInt32Memory0() {
120
111
  return cachedInt32Memory0;
121
112
  }
122
113
 
114
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
115
+
116
+ cachedTextDecoder.decode();
117
+
118
+ function getStringFromWasm0(ptr, len) {
119
+ ptr = ptr >>> 0;
120
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
121
+ }
122
+
123
123
  let cachedFloat64Memory0 = null;
124
124
 
125
125
  function getFloat64Memory0() {
@@ -2353,22 +2353,36 @@ class WasmWalletSlip {
2353
2353
  }
2354
2354
  module.exports.WasmWalletSlip = WasmWalletSlip;
2355
2355
 
2356
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2357
+ const ret = BigInt.asUintN(64, arg0);
2358
+ return addHeapObject(ret);
2359
+ };
2360
+
2356
2361
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
2357
2362
  takeObject(arg0);
2358
2363
  };
2359
2364
 
2360
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2361
- const ret = BigInt.asUintN(64, arg0);
2365
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2366
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2362
2367
  return addHeapObject(ret);
2363
2368
  };
2364
2369
 
2370
+ module.exports.__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
+ };
2378
+
2365
2379
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2366
2380
  const ret = getStringFromWasm0(arg0, arg1);
2367
2381
  return addHeapObject(ret);
2368
2382
  };
2369
2383
 
2370
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2371
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2384
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2385
+ const ret = WasmBlock.__wrap(arg0);
2372
2386
  return addHeapObject(ret);
2373
2387
  };
2374
2388
 
@@ -2377,42 +2391,28 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2377
2391
  return addHeapObject(ret);
2378
2392
  };
2379
2393
 
2380
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2381
- const ret = WasmWallet.__wrap(arg0);
2382
- return addHeapObject(ret);
2383
- };
2384
-
2385
2394
  module.exports.__wbg_wasmpeer_new = function(arg0) {
2386
2395
  const ret = WasmPeer.__wrap(arg0);
2387
2396
  return addHeapObject(ret);
2388
2397
  };
2389
2398
 
2390
- module.exports.__wbg_wasmblock_new = function(arg0) {
2391
- const ret = WasmBlock.__wrap(arg0);
2399
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2400
+ const ret = WasmWallet.__wrap(arg0);
2392
2401
  return addHeapObject(ret);
2393
2402
  };
2394
2403
 
2395
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2396
- const ret = WasmWalletSlip.__wrap(arg0);
2404
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2405
+ const ret = WasmSlip.__wrap(arg0);
2397
2406
  return addHeapObject(ret);
2398
2407
  };
2399
2408
 
2400
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2401
- const obj = getObject(arg1);
2402
- const ret = typeof(obj) === 'string' ? obj : undefined;
2403
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2404
- var len1 = WASM_VECTOR_LEN;
2405
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2406
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2407
- };
2408
-
2409
2409
  module.exports.__wbg_wasmblockchain_new = function(arg0) {
2410
2410
  const ret = WasmBlockchain.__wrap(arg0);
2411
2411
  return addHeapObject(ret);
2412
2412
  };
2413
2413
 
2414
- module.exports.__wbg_wasmslip_new = function(arg0) {
2415
- const ret = WasmSlip.__wrap(arg0);
2414
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2415
+ const ret = WasmWalletSlip.__wrap(arg0);
2416
2416
  return addHeapObject(ret);
2417
2417
  };
2418
2418
 
@@ -2437,15 +2437,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2437
2437
  return ret;
2438
2438
  };
2439
2439
 
2440
- module.exports.__wbg_sendmessage_03f4ea0cbf8ad319 = function(arg0, arg1) {
2440
+ module.exports.__wbg_sendmessage_723ae5ae445e3f2e = function(arg0, arg1) {
2441
2441
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2442
2442
  };
2443
2443
 
2444
- module.exports.__wbg_sendmessagetoall_291136687e8341da = function(arg0, arg1) {
2444
+ module.exports.__wbg_sendmessagetoall_ae2f52ae4e0daa29 = function(arg0, arg1) {
2445
2445
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2446
2446
  };
2447
2447
 
2448
- module.exports.__wbg_connecttopeer_9c6761c9fcc20a19 = function() { return handleError(function (arg0, arg1, arg2) {
2448
+ module.exports.__wbg_connecttopeer_622a836776abcf6f = function() { return handleError(function (arg0, arg1, arg2) {
2449
2449
  let deferred0_0;
2450
2450
  let deferred0_1;
2451
2451
  try {
@@ -2458,12 +2458,12 @@ module.exports.__wbg_connecttopeer_9c6761c9fcc20a19 = function() { return handle
2458
2458
  }
2459
2459
  }, arguments) };
2460
2460
 
2461
- module.exports.__wbg_disconnectfrompeer_4b73b03992d2e450 = function() { return handleError(function (arg0) {
2461
+ module.exports.__wbg_disconnectfrompeer_cf4c6a20e6b994ff = function() { return handleError(function (arg0) {
2462
2462
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2463
2463
  return addHeapObject(ret);
2464
2464
  }, arguments) };
2465
2465
 
2466
- module.exports.__wbg_fetchblockfrompeer_9b2841a6f79db213 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2466
+ module.exports.__wbg_fetchblockfrompeer_56858a5699cf8a97 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2467
2467
  let deferred0_0;
2468
2468
  let deferred0_1;
2469
2469
  try {
@@ -2476,7 +2476,7 @@ module.exports.__wbg_fetchblockfrompeer_9b2841a6f79db213 = function() { return h
2476
2476
  }
2477
2477
  }, arguments) };
2478
2478
 
2479
- module.exports.__wbg_writevalue_a8403cf977e4052e = function(arg0, arg1, arg2) {
2479
+ module.exports.__wbg_writevalue_76b29f55df8bff9f = function(arg0, arg1, arg2) {
2480
2480
  let deferred0_0;
2481
2481
  let deferred0_1;
2482
2482
  try {
@@ -2488,7 +2488,7 @@ module.exports.__wbg_writevalue_a8403cf977e4052e = function(arg0, arg1, arg2) {
2488
2488
  }
2489
2489
  };
2490
2490
 
2491
- module.exports.__wbg_appendvalue_190095493f5c4495 = function(arg0, arg1, arg2) {
2491
+ module.exports.__wbg_appendvalue_57ffee5de06647d6 = function(arg0, arg1, arg2) {
2492
2492
  let deferred0_0;
2493
2493
  let deferred0_1;
2494
2494
  try {
@@ -2500,7 +2500,7 @@ module.exports.__wbg_appendvalue_190095493f5c4495 = function(arg0, arg1, arg2) {
2500
2500
  }
2501
2501
  };
2502
2502
 
2503
- module.exports.__wbg_flushdata_eadfae44e1856e60 = function(arg0, arg1) {
2503
+ module.exports.__wbg_flushdata_351471dabe52ef2a = function(arg0, arg1) {
2504
2504
  let deferred0_0;
2505
2505
  let deferred0_1;
2506
2506
  try {
@@ -2512,7 +2512,7 @@ module.exports.__wbg_flushdata_eadfae44e1856e60 = function(arg0, arg1) {
2512
2512
  }
2513
2513
  };
2514
2514
 
2515
- module.exports.__wbg_readvalue_8ab291f863bcbeca = function() { return handleError(function (arg0, arg1) {
2515
+ module.exports.__wbg_readvalue_f5ed47242b009240 = function() { return handleError(function (arg0, arg1) {
2516
2516
  let deferred0_0;
2517
2517
  let deferred0_1;
2518
2518
  try {
@@ -2525,12 +2525,12 @@ module.exports.__wbg_readvalue_8ab291f863bcbeca = function() { return handleErro
2525
2525
  }
2526
2526
  }, arguments) };
2527
2527
 
2528
- module.exports.__wbg_loadblockfilelist_adb2a0176b41669b = function() { return handleError(function () {
2528
+ module.exports.__wbg_loadblockfilelist_39a7aae64bebd183 = function() { return handleError(function () {
2529
2529
  const ret = MsgHandler.load_block_file_list();
2530
2530
  return addHeapObject(ret);
2531
2531
  }, arguments) };
2532
2532
 
2533
- module.exports.__wbg_isexistingfile_a28742a5ca8d5b97 = function() { return handleError(function (arg0, arg1) {
2533
+ module.exports.__wbg_isexistingfile_8f7df2c92038c5c0 = function() { return handleError(function (arg0, arg1) {
2534
2534
  let deferred0_0;
2535
2535
  let deferred0_1;
2536
2536
  try {
@@ -2543,7 +2543,7 @@ module.exports.__wbg_isexistingfile_a28742a5ca8d5b97 = function() { return handl
2543
2543
  }
2544
2544
  }, arguments) };
2545
2545
 
2546
- module.exports.__wbg_removevalue_4d4a95a6de3f83dc = function() { return handleError(function (arg0, arg1) {
2546
+ module.exports.__wbg_removevalue_8cbfd80603f8ca45 = function() { return handleError(function (arg0, arg1) {
2547
2547
  let deferred0_0;
2548
2548
  let deferred0_1;
2549
2549
  try {
@@ -2556,7 +2556,7 @@ module.exports.__wbg_removevalue_4d4a95a6de3f83dc = function() { return handleEr
2556
2556
  }
2557
2557
  }, arguments) };
2558
2558
 
2559
- module.exports.__wbg_ensureblockdirectoryexists_c37d9a6766483afe = function() { return handleError(function (arg0, arg1) {
2559
+ module.exports.__wbg_ensureblockdirectoryexists_ca2dd705a0559dc3 = function() { return handleError(function (arg0, arg1) {
2560
2560
  let deferred0_0;
2561
2561
  let deferred0_1;
2562
2562
  try {
@@ -2568,19 +2568,19 @@ module.exports.__wbg_ensureblockdirectoryexists_c37d9a6766483afe = function() {
2568
2568
  }
2569
2569
  }, arguments) };
2570
2570
 
2571
- module.exports.__wbg_processapicall_df16f778f2f36bcf = function(arg0, arg1, arg2) {
2571
+ module.exports.__wbg_processapicall_88b7a2ced812a0ba = function(arg0, arg1, arg2) {
2572
2572
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2573
2573
  };
2574
2574
 
2575
- module.exports.__wbg_processapisuccess_e3a5a19f2cdf11bc = function(arg0, arg1, arg2) {
2575
+ module.exports.__wbg_processapisuccess_a64bdba2deee7538 = function(arg0, arg1, arg2) {
2576
2576
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2577
2577
  };
2578
2578
 
2579
- module.exports.__wbg_processapierror_4c0ecbabccdd69d5 = function(arg0, arg1, arg2) {
2579
+ module.exports.__wbg_processapierror_e1089f7cb683ca63 = function(arg0, arg1, arg2) {
2580
2580
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2581
2581
  };
2582
2582
 
2583
- module.exports.__wbg_sendinterfaceevent_37e6fbef320176f6 = function(arg0, arg1, arg2, arg3, arg4) {
2583
+ module.exports.__wbg_sendinterfaceevent_26318639ca041fb2 = function(arg0, arg1, arg2, arg3, arg4) {
2584
2584
  let deferred0_0;
2585
2585
  let deferred0_1;
2586
2586
  let deferred1_0;
@@ -2597,7 +2597,7 @@ module.exports.__wbg_sendinterfaceevent_37e6fbef320176f6 = function(arg0, arg1,
2597
2597
  }
2598
2598
  };
2599
2599
 
2600
- module.exports.__wbg_sendblocksuccess_951ef1ef8d7c4afe = function(arg0, arg1, arg2) {
2600
+ module.exports.__wbg_sendblocksuccess_d67a76ebbb3a9ae5 = function(arg0, arg1, arg2) {
2601
2601
  let deferred0_0;
2602
2602
  let deferred0_1;
2603
2603
  try {
@@ -2609,11 +2609,11 @@ module.exports.__wbg_sendblocksuccess_951ef1ef8d7c4afe = function(arg0, arg1, ar
2609
2609
  }
2610
2610
  };
2611
2611
 
2612
- module.exports.__wbg_sendwalletupdate_2254c46d7bdc5a3a = function() {
2612
+ module.exports.__wbg_sendwalletupdate_492cabfbc2e1cb23 = function() {
2613
2613
  MsgHandler.send_wallet_update();
2614
2614
  };
2615
2615
 
2616
- module.exports.__wbg_sendnewversionalert_05420df3223668e8 = function(arg0, arg1, arg2) {
2616
+ module.exports.__wbg_sendnewversionalert_7d3ffc4d7d3caf79 = function(arg0, arg1, arg2) {
2617
2617
  let deferred0_0;
2618
2618
  let deferred0_1;
2619
2619
  try {
@@ -2625,19 +2625,19 @@ module.exports.__wbg_sendnewversionalert_05420df3223668e8 = function(arg0, arg1,
2625
2625
  }
2626
2626
  };
2627
2627
 
2628
- module.exports.__wbg_sendblockfetchstatusevent_5bd86b7ec49bc56d = function(arg0) {
2628
+ module.exports.__wbg_sendblockfetchstatusevent_c58ce82ce2c258da = function(arg0) {
2629
2629
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2630
2630
  };
2631
2631
 
2632
- module.exports.__wbg_savewallet_879fb0a29802aeb6 = function() {
2632
+ module.exports.__wbg_savewallet_767b6b2498ba2b65 = function() {
2633
2633
  MsgHandler.save_wallet();
2634
2634
  };
2635
2635
 
2636
- module.exports.__wbg_loadwallet_48e4a41b74be35ea = function() {
2636
+ module.exports.__wbg_loadwallet_65f265c5a8709226 = function() {
2637
2637
  MsgHandler.load_wallet();
2638
2638
  };
2639
2639
 
2640
- module.exports.__wbg_getmyservices_828ce1628153fe52 = function() {
2640
+ module.exports.__wbg_getmyservices_7f2915bf49a11afe = function() {
2641
2641
  const ret = MsgHandler.get_my_services();
2642
2642
  _assertClass(ret, WasmPeerServiceList);
2643
2643
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-a7a480dcce53f88d/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-83691da784da2e89/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -6,10 +6,19 @@ const heap = new Array(128).fill(undefined);
6
6
 
7
7
  heap.push(undefined, null, true, false);
8
8
 
9
- function getObject(idx) { return heap[idx]; }
10
-
11
9
  let heap_next = heap.length;
12
10
 
11
+ function addHeapObject(obj) {
12
+ if (heap_next === heap.length) heap.push(heap.length + 1);
13
+ const idx = heap_next;
14
+ heap_next = heap[idx];
15
+
16
+ heap[idx] = obj;
17
+ return idx;
18
+ }
19
+
20
+ function getObject(idx) { return heap[idx]; }
21
+
13
22
  function dropObject(idx) {
14
23
  if (idx < 132) return;
15
24
  heap[idx] = heap_next;
@@ -22,18 +31,7 @@ function takeObject(idx) {
22
31
  return ret;
23
32
  }
24
33
 
25
- function addHeapObject(obj) {
26
- if (heap_next === heap.length) heap.push(heap.length + 1);
27
- const idx = heap_next;
28
- heap_next = heap[idx];
29
-
30
- heap[idx] = obj;
31
- return idx;
32
- }
33
-
34
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
-
36
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
34
+ let WASM_VECTOR_LEN = 0;
37
35
 
38
36
  let cachedUint8Memory0 = null;
39
37
 
@@ -44,13 +42,6 @@ function getUint8Memory0() {
44
42
  return cachedUint8Memory0;
45
43
  }
46
44
 
47
- function getStringFromWasm0(ptr, len) {
48
- ptr = ptr >>> 0;
49
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
- }
51
-
52
- let WASM_VECTOR_LEN = 0;
53
-
54
45
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
55
46
 
56
47
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,6 +109,15 @@ function getInt32Memory0() {
118
109
  return cachedInt32Memory0;
119
110
  }
120
111
 
112
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
113
+
114
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
115
+
116
+ function getStringFromWasm0(ptr, len) {
117
+ ptr = ptr >>> 0;
118
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
119
+ }
120
+
121
121
  let cachedFloat64Memory0 = null;
122
122
 
123
123
  function getFloat64Memory0() {
@@ -2371,55 +2371,55 @@ async function __wbg_load(module, imports) {
2371
2371
  function __wbg_get_imports() {
2372
2372
  const imports = {};
2373
2373
  imports.wbg = {};
2374
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2375
+ const ret = BigInt.asUintN(64, arg0);
2376
+ return addHeapObject(ret);
2377
+ };
2374
2378
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2375
2379
  takeObject(arg0);
2376
2380
  };
2377
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2378
- const ret = BigInt.asUintN(64, arg0);
2381
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2382
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2379
2383
  return addHeapObject(ret);
2380
2384
  };
2385
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2386
+ const obj = getObject(arg1);
2387
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2388
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2389
+ var len1 = WASM_VECTOR_LEN;
2390
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2391
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2392
+ };
2381
2393
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2382
2394
  const ret = getStringFromWasm0(arg0, arg1);
2383
2395
  return addHeapObject(ret);
2384
2396
  };
2385
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2386
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2397
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2398
+ const ret = WasmBlock.__wrap(arg0);
2387
2399
  return addHeapObject(ret);
2388
2400
  };
2389
2401
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2390
2402
  const ret = WasmTransaction.__wrap(arg0);
2391
2403
  return addHeapObject(ret);
2392
2404
  };
2393
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2394
- const ret = WasmWallet.__wrap(arg0);
2395
- return addHeapObject(ret);
2396
- };
2397
2405
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2398
2406
  const ret = WasmPeer.__wrap(arg0);
2399
2407
  return addHeapObject(ret);
2400
2408
  };
2401
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2402
- const ret = WasmBlock.__wrap(arg0);
2409
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2410
+ const ret = WasmWallet.__wrap(arg0);
2403
2411
  return addHeapObject(ret);
2404
2412
  };
2405
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2406
- const ret = WasmWalletSlip.__wrap(arg0);
2413
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2414
+ const ret = WasmSlip.__wrap(arg0);
2407
2415
  return addHeapObject(ret);
2408
2416
  };
2409
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2410
- const obj = getObject(arg1);
2411
- const ret = typeof(obj) === 'string' ? obj : undefined;
2412
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2413
- var len1 = WASM_VECTOR_LEN;
2414
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2415
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2416
- };
2417
2417
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2418
2418
  const ret = WasmBlockchain.__wrap(arg0);
2419
2419
  return addHeapObject(ret);
2420
2420
  };
2421
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2422
- const ret = WasmSlip.__wrap(arg0);
2421
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2422
+ const ret = WasmWalletSlip.__wrap(arg0);
2423
2423
  return addHeapObject(ret);
2424
2424
  };
2425
2425
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
@@ -2439,13 +2439,13 @@ function __wbg_get_imports() {
2439
2439
  const ret = getObject(arg0) in getObject(arg1);
2440
2440
  return ret;
2441
2441
  };
2442
- imports.wbg.__wbg_sendmessage_03f4ea0cbf8ad319 = function(arg0, arg1) {
2442
+ imports.wbg.__wbg_sendmessage_723ae5ae445e3f2e = function(arg0, arg1) {
2443
2443
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2444
2444
  };
2445
- imports.wbg.__wbg_sendmessagetoall_291136687e8341da = function(arg0, arg1) {
2445
+ imports.wbg.__wbg_sendmessagetoall_ae2f52ae4e0daa29 = function(arg0, arg1) {
2446
2446
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2447
2447
  };
2448
- imports.wbg.__wbg_connecttopeer_9c6761c9fcc20a19 = function() { return handleError(function (arg0, arg1, arg2) {
2448
+ imports.wbg.__wbg_connecttopeer_622a836776abcf6f = function() { return handleError(function (arg0, arg1, arg2) {
2449
2449
  let deferred0_0;
2450
2450
  let deferred0_1;
2451
2451
  try {
@@ -2457,11 +2457,11 @@ function __wbg_get_imports() {
2457
2457
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2458
2458
  }
2459
2459
  }, arguments) };
2460
- imports.wbg.__wbg_disconnectfrompeer_4b73b03992d2e450 = function() { return handleError(function (arg0) {
2460
+ imports.wbg.__wbg_disconnectfrompeer_cf4c6a20e6b994ff = function() { return handleError(function (arg0) {
2461
2461
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2462
2462
  return addHeapObject(ret);
2463
2463
  }, arguments) };
2464
- imports.wbg.__wbg_fetchblockfrompeer_9b2841a6f79db213 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2464
+ imports.wbg.__wbg_fetchblockfrompeer_56858a5699cf8a97 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2465
2465
  let deferred0_0;
2466
2466
  let deferred0_1;
2467
2467
  try {
@@ -2473,7 +2473,7 @@ function __wbg_get_imports() {
2473
2473
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2474
2474
  }
2475
2475
  }, arguments) };
2476
- imports.wbg.__wbg_writevalue_a8403cf977e4052e = function(arg0, arg1, arg2) {
2476
+ imports.wbg.__wbg_writevalue_76b29f55df8bff9f = 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_appendvalue_190095493f5c4495 = function(arg0, arg1, arg2) {
2487
+ imports.wbg.__wbg_appendvalue_57ffee5de06647d6 = function(arg0, arg1, arg2) {
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_flushdata_eadfae44e1856e60 = function(arg0, arg1) {
2498
+ imports.wbg.__wbg_flushdata_351471dabe52ef2a = function(arg0, arg1) {
2499
2499
  let deferred0_0;
2500
2500
  let deferred0_1;
2501
2501
  try {
@@ -2506,7 +2506,7 @@ function __wbg_get_imports() {
2506
2506
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2507
2507
  }
2508
2508
  };
2509
- imports.wbg.__wbg_readvalue_8ab291f863bcbeca = function() { return handleError(function (arg0, arg1) {
2509
+ imports.wbg.__wbg_readvalue_f5ed47242b009240 = function() { return handleError(function (arg0, arg1) {
2510
2510
  let deferred0_0;
2511
2511
  let deferred0_1;
2512
2512
  try {
@@ -2518,11 +2518,11 @@ function __wbg_get_imports() {
2518
2518
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2519
2519
  }
2520
2520
  }, arguments) };
2521
- imports.wbg.__wbg_loadblockfilelist_adb2a0176b41669b = function() { return handleError(function () {
2521
+ imports.wbg.__wbg_loadblockfilelist_39a7aae64bebd183 = function() { return handleError(function () {
2522
2522
  const ret = MsgHandler.load_block_file_list();
2523
2523
  return addHeapObject(ret);
2524
2524
  }, arguments) };
2525
- imports.wbg.__wbg_isexistingfile_a28742a5ca8d5b97 = function() { return handleError(function (arg0, arg1) {
2525
+ imports.wbg.__wbg_isexistingfile_8f7df2c92038c5c0 = function() { return handleError(function (arg0, arg1) {
2526
2526
  let deferred0_0;
2527
2527
  let deferred0_1;
2528
2528
  try {
@@ -2534,7 +2534,7 @@ function __wbg_get_imports() {
2534
2534
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2535
2535
  }
2536
2536
  }, arguments) };
2537
- imports.wbg.__wbg_removevalue_4d4a95a6de3f83dc = function() { return handleError(function (arg0, arg1) {
2537
+ imports.wbg.__wbg_removevalue_8cbfd80603f8ca45 = function() { return handleError(function (arg0, arg1) {
2538
2538
  let deferred0_0;
2539
2539
  let deferred0_1;
2540
2540
  try {
@@ -2546,7 +2546,7 @@ function __wbg_get_imports() {
2546
2546
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2547
2547
  }
2548
2548
  }, arguments) };
2549
- imports.wbg.__wbg_ensureblockdirectoryexists_c37d9a6766483afe = function() { return handleError(function (arg0, arg1) {
2549
+ imports.wbg.__wbg_ensureblockdirectoryexists_ca2dd705a0559dc3 = function() { return handleError(function (arg0, arg1) {
2550
2550
  let deferred0_0;
2551
2551
  let deferred0_1;
2552
2552
  try {
@@ -2557,16 +2557,16 @@ function __wbg_get_imports() {
2557
2557
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2558
2558
  }
2559
2559
  }, arguments) };
2560
- imports.wbg.__wbg_processapicall_df16f778f2f36bcf = function(arg0, arg1, arg2) {
2560
+ imports.wbg.__wbg_processapicall_88b7a2ced812a0ba = function(arg0, arg1, arg2) {
2561
2561
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2562
2562
  };
2563
- imports.wbg.__wbg_processapisuccess_e3a5a19f2cdf11bc = function(arg0, arg1, arg2) {
2563
+ imports.wbg.__wbg_processapisuccess_a64bdba2deee7538 = function(arg0, arg1, arg2) {
2564
2564
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2565
2565
  };
2566
- imports.wbg.__wbg_processapierror_4c0ecbabccdd69d5 = function(arg0, arg1, arg2) {
2566
+ imports.wbg.__wbg_processapierror_e1089f7cb683ca63 = function(arg0, arg1, arg2) {
2567
2567
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2568
2568
  };
2569
- imports.wbg.__wbg_sendinterfaceevent_37e6fbef320176f6 = function(arg0, arg1, arg2, arg3, arg4) {
2569
+ imports.wbg.__wbg_sendinterfaceevent_26318639ca041fb2 = function(arg0, arg1, arg2, arg3, arg4) {
2570
2570
  let deferred0_0;
2571
2571
  let deferred0_1;
2572
2572
  let deferred1_0;
@@ -2582,7 +2582,7 @@ function __wbg_get_imports() {
2582
2582
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2583
2583
  }
2584
2584
  };
2585
- imports.wbg.__wbg_sendblocksuccess_951ef1ef8d7c4afe = function(arg0, arg1, arg2) {
2585
+ imports.wbg.__wbg_sendblocksuccess_d67a76ebbb3a9ae5 = function(arg0, arg1, arg2) {
2586
2586
  let deferred0_0;
2587
2587
  let deferred0_1;
2588
2588
  try {
@@ -2593,10 +2593,10 @@ function __wbg_get_imports() {
2593
2593
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2594
2594
  }
2595
2595
  };
2596
- imports.wbg.__wbg_sendwalletupdate_2254c46d7bdc5a3a = function() {
2596
+ imports.wbg.__wbg_sendwalletupdate_492cabfbc2e1cb23 = function() {
2597
2597
  MsgHandler.send_wallet_update();
2598
2598
  };
2599
- imports.wbg.__wbg_sendnewversionalert_05420df3223668e8 = function(arg0, arg1, arg2) {
2599
+ imports.wbg.__wbg_sendnewversionalert_7d3ffc4d7d3caf79 = function(arg0, arg1, arg2) {
2600
2600
  let deferred0_0;
2601
2601
  let deferred0_1;
2602
2602
  try {
@@ -2607,16 +2607,16 @@ function __wbg_get_imports() {
2607
2607
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2608
2608
  }
2609
2609
  };
2610
- imports.wbg.__wbg_sendblockfetchstatusevent_5bd86b7ec49bc56d = function(arg0) {
2610
+ imports.wbg.__wbg_sendblockfetchstatusevent_c58ce82ce2c258da = function(arg0) {
2611
2611
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2612
2612
  };
2613
- imports.wbg.__wbg_savewallet_879fb0a29802aeb6 = function() {
2613
+ imports.wbg.__wbg_savewallet_767b6b2498ba2b65 = function() {
2614
2614
  MsgHandler.save_wallet();
2615
2615
  };
2616
- imports.wbg.__wbg_loadwallet_48e4a41b74be35ea = function() {
2616
+ imports.wbg.__wbg_loadwallet_65f265c5a8709226 = function() {
2617
2617
  MsgHandler.load_wallet();
2618
2618
  };
2619
- imports.wbg.__wbg_getmyservices_828ce1628153fe52 = function() {
2619
+ imports.wbg.__wbg_getmyservices_7f2915bf49a11afe = function() {
2620
2620
  const ret = MsgHandler.get_my_services();
2621
2621
  _assertClass(ret, WasmPeerServiceList);
2622
2622
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",