saito-wasm 0.2.13 → 0.2.15

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.13"
3
+ version = "0.2.15"
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.13",
3
+ "version": "0.2.15",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -42,6 +42,5 @@
42
42
  "dependencies": {
43
43
  "node-fetch": "^3.3.0",
44
44
  "cross-env": "^7.0.3"
45
- },
46
- "type": "commonjs"
45
+ }
47
46
  }
package/pkg/node/index.js CHANGED
@@ -1,29 +1,9 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-05fef3044ea533d9/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-1fcd78c7482fbbf4/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
12
-
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
7
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
8
 
29
9
  cachedTextDecoder.decode();
@@ -42,6 +22,12 @@ function getStringFromWasm0(ptr, len) {
42
22
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
23
  }
44
24
 
25
+ const heap = new Array(128).fill(undefined);
26
+
27
+ heap.push(undefined, null, true, false);
28
+
29
+ let heap_next = heap.length;
30
+
45
31
  function addHeapObject(obj) {
46
32
  if (heap_next === heap.length) heap.push(heap.length + 1);
47
33
  const idx = heap_next;
@@ -51,6 +37,20 @@ function addHeapObject(obj) {
51
37
  return idx;
52
38
  }
53
39
 
40
+ function getObject(idx) { return heap[idx]; }
41
+
42
+ function dropObject(idx) {
43
+ if (idx < 132) return;
44
+ heap[idx] = heap_next;
45
+ heap_next = idx;
46
+ }
47
+
48
+ function takeObject(idx) {
49
+ const ret = getObject(idx);
50
+ dropObject(idx);
51
+ return ret;
52
+ }
53
+
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -2173,8 +2173,8 @@ class WasmWalletSlip {
2173
2173
  }
2174
2174
  module.exports.WasmWalletSlip = WasmWalletSlip;
2175
2175
 
2176
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2177
- const ret = WasmTransaction.__wrap(arg0);
2176
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2177
+ const ret = getStringFromWasm0(arg0, arg1);
2178
2178
  return addHeapObject(ret);
2179
2179
  };
2180
2180
 
@@ -2182,8 +2182,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2182
2182
  takeObject(arg0);
2183
2183
  };
2184
2184
 
2185
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2186
- const ret = getStringFromWasm0(arg0, arg1);
2185
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2186
+ const ret = WasmBlock.__wrap(arg0);
2187
2187
  return addHeapObject(ret);
2188
2188
  };
2189
2189
 
@@ -2192,18 +2192,13 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2192
2192
  return addHeapObject(ret);
2193
2193
  };
2194
2194
 
2195
- module.exports.__wbg_wasmslip_new = function(arg0) {
2196
- const ret = WasmSlip.__wrap(arg0);
2197
- return addHeapObject(ret);
2198
- };
2199
-
2200
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2201
- const ret = WasmBlockchain.__wrap(arg0);
2195
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2196
+ const ret = WasmPeer.__wrap(arg0);
2202
2197
  return addHeapObject(ret);
2203
2198
  };
2204
2199
 
2205
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2206
- const ret = WasmPeer.__wrap(arg0);
2200
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2201
+ const ret = WasmTransaction.__wrap(arg0);
2207
2202
  return addHeapObject(ret);
2208
2203
  };
2209
2204
 
@@ -2217,8 +2212,13 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2217
2212
  return addHeapObject(ret);
2218
2213
  };
2219
2214
 
2220
- module.exports.__wbg_wasmblock_new = function(arg0) {
2221
- const ret = WasmBlock.__wrap(arg0);
2215
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2216
+ const ret = WasmSlip.__wrap(arg0);
2217
+ return addHeapObject(ret);
2218
+ };
2219
+
2220
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2221
+ const ret = WasmBlockchain.__wrap(arg0);
2222
2222
  return addHeapObject(ret);
2223
2223
  };
2224
2224
 
@@ -2272,15 +2272,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2272
2272
  return ret;
2273
2273
  };
2274
2274
 
2275
- module.exports.__wbg_sendmessage_961f1ed327086f6d = function(arg0, arg1) {
2275
+ module.exports.__wbg_sendmessage_689a98fa2f95c68e = function(arg0, arg1) {
2276
2276
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2277
2277
  };
2278
2278
 
2279
- module.exports.__wbg_sendmessagetoall_0d9782a65e68efcc = function(arg0, arg1) {
2279
+ module.exports.__wbg_sendmessagetoall_c2b64f419a547794 = function(arg0, arg1) {
2280
2280
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2281
2281
  };
2282
2282
 
2283
- module.exports.__wbg_connecttopeer_5912b4bcd3d6e32d = function() { return handleError(function (arg0, arg1, arg2) {
2283
+ module.exports.__wbg_connecttopeer_489ee8f1128a1425 = function() { return handleError(function (arg0, arg1, arg2) {
2284
2284
  let deferred0_0;
2285
2285
  let deferred0_1;
2286
2286
  try {
@@ -2293,12 +2293,12 @@ module.exports.__wbg_connecttopeer_5912b4bcd3d6e32d = function() { return handle
2293
2293
  }
2294
2294
  }, arguments) };
2295
2295
 
2296
- module.exports.__wbg_disconnectfrompeer_828542b07e5cc1c8 = function() { return handleError(function (arg0) {
2296
+ module.exports.__wbg_disconnectfrompeer_7e577a0de8d4ab98 = function() { return handleError(function (arg0) {
2297
2297
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2298
2298
  return addHeapObject(ret);
2299
2299
  }, arguments) };
2300
2300
 
2301
- module.exports.__wbg_fetchblockfrompeer_7ffa6fb61833119d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2301
+ module.exports.__wbg_fetchblockfrompeer_70f13b49c5c0e41d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2302
2302
  let deferred0_0;
2303
2303
  let deferred0_1;
2304
2304
  try {
@@ -2311,7 +2311,7 @@ module.exports.__wbg_fetchblockfrompeer_7ffa6fb61833119d = function() { return h
2311
2311
  }
2312
2312
  }, arguments) };
2313
2313
 
2314
- module.exports.__wbg_writevalue_ac7523e26dea760b = function(arg0, arg1, arg2) {
2314
+ module.exports.__wbg_writevalue_def0c50fbd95d8e4 = function(arg0, arg1, arg2) {
2315
2315
  let deferred0_0;
2316
2316
  let deferred0_1;
2317
2317
  try {
@@ -2323,7 +2323,7 @@ module.exports.__wbg_writevalue_ac7523e26dea760b = function(arg0, arg1, arg2) {
2323
2323
  }
2324
2324
  };
2325
2325
 
2326
- module.exports.__wbg_appendvalue_4f65e96fc882929a = function(arg0, arg1, arg2) {
2326
+ module.exports.__wbg_appendvalue_d6c1584393bee6b8 = function(arg0, arg1, arg2) {
2327
2327
  let deferred0_0;
2328
2328
  let deferred0_1;
2329
2329
  try {
@@ -2335,7 +2335,7 @@ module.exports.__wbg_appendvalue_4f65e96fc882929a = function(arg0, arg1, arg2) {
2335
2335
  }
2336
2336
  };
2337
2337
 
2338
- module.exports.__wbg_flushdata_4ffa0c3519c5abf8 = function(arg0, arg1) {
2338
+ module.exports.__wbg_flushdata_dbf731aafd619959 = function(arg0, arg1) {
2339
2339
  let deferred0_0;
2340
2340
  let deferred0_1;
2341
2341
  try {
@@ -2347,7 +2347,7 @@ module.exports.__wbg_flushdata_4ffa0c3519c5abf8 = function(arg0, arg1) {
2347
2347
  }
2348
2348
  };
2349
2349
 
2350
- module.exports.__wbg_readvalue_98f4cc42b38611c5 = function() { return handleError(function (arg0, arg1) {
2350
+ module.exports.__wbg_readvalue_1fc0ffa5766bf83d = function() { return handleError(function (arg0, arg1) {
2351
2351
  let deferred0_0;
2352
2352
  let deferred0_1;
2353
2353
  try {
@@ -2360,12 +2360,12 @@ module.exports.__wbg_readvalue_98f4cc42b38611c5 = function() { return handleErro
2360
2360
  }
2361
2361
  }, arguments) };
2362
2362
 
2363
- module.exports.__wbg_loadblockfilelist_2811ef288ff3e52f = function() { return handleError(function () {
2363
+ module.exports.__wbg_loadblockfilelist_76411c0cb7e138db = function() { return handleError(function () {
2364
2364
  const ret = MsgHandler.load_block_file_list();
2365
2365
  return addHeapObject(ret);
2366
2366
  }, arguments) };
2367
2367
 
2368
- module.exports.__wbg_isexistingfile_05f26740b44c72d9 = function() { return handleError(function (arg0, arg1) {
2368
+ module.exports.__wbg_isexistingfile_268f244b35b40714 = function() { return handleError(function (arg0, arg1) {
2369
2369
  let deferred0_0;
2370
2370
  let deferred0_1;
2371
2371
  try {
@@ -2378,7 +2378,7 @@ module.exports.__wbg_isexistingfile_05f26740b44c72d9 = function() { return handl
2378
2378
  }
2379
2379
  }, arguments) };
2380
2380
 
2381
- module.exports.__wbg_removevalue_a479819831ee2cea = function() { return handleError(function (arg0, arg1) {
2381
+ module.exports.__wbg_removevalue_b243f768e52bb210 = function() { return handleError(function (arg0, arg1) {
2382
2382
  let deferred0_0;
2383
2383
  let deferred0_1;
2384
2384
  try {
@@ -2391,7 +2391,7 @@ module.exports.__wbg_removevalue_a479819831ee2cea = function() { return handleEr
2391
2391
  }
2392
2392
  }, arguments) };
2393
2393
 
2394
- module.exports.__wbg_ensureblockdirectoryexists_be36f4bbabdb7e83 = function() { return handleError(function (arg0, arg1) {
2394
+ module.exports.__wbg_ensureblockdirectoryexists_45371b00a9be9e53 = function() { return handleError(function (arg0, arg1) {
2395
2395
  let deferred0_0;
2396
2396
  let deferred0_1;
2397
2397
  try {
@@ -2403,19 +2403,19 @@ module.exports.__wbg_ensureblockdirectoryexists_be36f4bbabdb7e83 = function() {
2403
2403
  }
2404
2404
  }, arguments) };
2405
2405
 
2406
- module.exports.__wbg_processapicall_c2d4747cb4b84341 = function(arg0, arg1, arg2) {
2406
+ module.exports.__wbg_processapicall_9d0bfa0627d9e0d1 = function(arg0, arg1, arg2) {
2407
2407
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2408
2408
  };
2409
2409
 
2410
- module.exports.__wbg_processapisuccess_9afefb86a6655414 = function(arg0, arg1, arg2) {
2410
+ module.exports.__wbg_processapisuccess_a75e06c0a286e9d2 = function(arg0, arg1, arg2) {
2411
2411
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2412
2412
  };
2413
2413
 
2414
- module.exports.__wbg_processapierror_2cfea4bbc1706e6a = function(arg0, arg1, arg2) {
2414
+ module.exports.__wbg_processapierror_f5d47e39fc79d88d = function(arg0, arg1, arg2) {
2415
2415
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2416
2416
  };
2417
2417
 
2418
- module.exports.__wbg_sendinterfaceevent_da5e3734cd2a960d = function(arg0, arg1, arg2) {
2418
+ module.exports.__wbg_sendinterfaceevent_7c4230b0caa9d632 = function(arg0, arg1, arg2) {
2419
2419
  let deferred0_0;
2420
2420
  let deferred0_1;
2421
2421
  try {
@@ -2427,7 +2427,7 @@ module.exports.__wbg_sendinterfaceevent_da5e3734cd2a960d = function(arg0, arg1,
2427
2427
  }
2428
2428
  };
2429
2429
 
2430
- module.exports.__wbg_sendblocksuccess_ca329c7fa6d29614 = function(arg0, arg1, arg2) {
2430
+ module.exports.__wbg_sendblocksuccess_36ee77c098eee1a4 = function(arg0, arg1, arg2) {
2431
2431
  let deferred0_0;
2432
2432
  let deferred0_1;
2433
2433
  try {
@@ -2439,11 +2439,11 @@ module.exports.__wbg_sendblocksuccess_ca329c7fa6d29614 = function(arg0, arg1, ar
2439
2439
  }
2440
2440
  };
2441
2441
 
2442
- module.exports.__wbg_sendwalletupdate_b93eaad602246c4f = function() {
2442
+ module.exports.__wbg_sendwalletupdate_1a6cd0c24566ea12 = function() {
2443
2443
  MsgHandler.send_wallet_update();
2444
2444
  };
2445
2445
 
2446
- module.exports.__wbg_sendnewversionalert_04609634bae95a4c = function(arg0, arg1, arg2) {
2446
+ module.exports.__wbg_sendnewversionalert_8ce5f9f194c7f005 = function(arg0, arg1, arg2) {
2447
2447
  let deferred0_0;
2448
2448
  let deferred0_1;
2449
2449
  try {
@@ -2455,15 +2455,15 @@ module.exports.__wbg_sendnewversionalert_04609634bae95a4c = function(arg0, arg1,
2455
2455
  }
2456
2456
  };
2457
2457
 
2458
- module.exports.__wbg_savewallet_91f376539bc06e87 = function() {
2458
+ module.exports.__wbg_savewallet_4a375e24b66d3406 = function() {
2459
2459
  MsgHandler.save_wallet();
2460
2460
  };
2461
2461
 
2462
- module.exports.__wbg_loadwallet_e5cd268f68ec9854 = function() {
2462
+ module.exports.__wbg_loadwallet_9b25307f5cac6045 = function() {
2463
2463
  MsgHandler.load_wallet();
2464
2464
  };
2465
2465
 
2466
- module.exports.__wbg_getmyservices_46adb1f91f86c194 = function() {
2466
+ module.exports.__wbg_getmyservices_35e1dba7fa958e39 = function() {
2467
2467
  const ret = MsgHandler.get_my_services();
2468
2468
  _assertClass(ret, WasmPeerServiceList);
2469
2469
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
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
  }
package/pkg/web/index.js CHANGED
@@ -1,27 +1,7 @@
1
- import { MsgHandler } from './snippets/saito-wasm-05fef3044ea533d9/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-1fcd78c7482fbbf4/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
5
- const heap = new Array(128).fill(undefined);
6
-
7
- heap.push(undefined, null, true, false);
8
-
9
- function getObject(idx) { return heap[idx]; }
10
-
11
- let heap_next = heap.length;
12
-
13
- function dropObject(idx) {
14
- if (idx < 132) return;
15
- heap[idx] = heap_next;
16
- heap_next = idx;
17
- }
18
-
19
- function takeObject(idx) {
20
- const ret = getObject(idx);
21
- dropObject(idx);
22
- return ret;
23
- }
24
-
25
5
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
6
 
27
7
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -40,6 +20,12 @@ function getStringFromWasm0(ptr, len) {
40
20
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
21
  }
42
22
 
23
+ const heap = new Array(128).fill(undefined);
24
+
25
+ heap.push(undefined, null, true, false);
26
+
27
+ let heap_next = heap.length;
28
+
43
29
  function addHeapObject(obj) {
44
30
  if (heap_next === heap.length) heap.push(heap.length + 1);
45
31
  const idx = heap_next;
@@ -49,6 +35,20 @@ function addHeapObject(obj) {
49
35
  return idx;
50
36
  }
51
37
 
38
+ function getObject(idx) { return heap[idx]; }
39
+
40
+ function dropObject(idx) {
41
+ if (idx < 132) return;
42
+ heap[idx] = heap_next;
43
+ heap_next = idx;
44
+ }
45
+
46
+ function takeObject(idx) {
47
+ const ret = getObject(idx);
48
+ dropObject(idx);
49
+ return ret;
50
+ }
51
+
52
52
  let WASM_VECTOR_LEN = 0;
53
53
 
54
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -2191,33 +2191,29 @@ async function __wbg_load(module, imports) {
2191
2191
  function __wbg_get_imports() {
2192
2192
  const imports = {};
2193
2193
  imports.wbg = {};
2194
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2195
- const ret = WasmTransaction.__wrap(arg0);
2194
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2195
+ const ret = getStringFromWasm0(arg0, arg1);
2196
2196
  return addHeapObject(ret);
2197
2197
  };
2198
2198
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2199
2199
  takeObject(arg0);
2200
2200
  };
2201
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2202
- const ret = getStringFromWasm0(arg0, arg1);
2201
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2202
+ const ret = WasmBlock.__wrap(arg0);
2203
2203
  return addHeapObject(ret);
2204
2204
  };
2205
2205
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2206
2206
  const ret = BigInt.asUintN(64, arg0);
2207
2207
  return addHeapObject(ret);
2208
2208
  };
2209
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2210
- const ret = WasmSlip.__wrap(arg0);
2211
- return addHeapObject(ret);
2212
- };
2213
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2214
- const ret = WasmBlockchain.__wrap(arg0);
2215
- return addHeapObject(ret);
2216
- };
2217
2209
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2218
2210
  const ret = WasmPeer.__wrap(arg0);
2219
2211
  return addHeapObject(ret);
2220
2212
  };
2213
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2214
+ const ret = WasmTransaction.__wrap(arg0);
2215
+ return addHeapObject(ret);
2216
+ };
2221
2217
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2222
2218
  const ret = WasmWalletSlip.__wrap(arg0);
2223
2219
  return addHeapObject(ret);
@@ -2226,8 +2222,12 @@ function __wbg_get_imports() {
2226
2222
  const ret = WasmWallet.__wrap(arg0);
2227
2223
  return addHeapObject(ret);
2228
2224
  };
2229
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2230
- const ret = WasmBlock.__wrap(arg0);
2225
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2226
+ const ret = WasmSlip.__wrap(arg0);
2227
+ return addHeapObject(ret);
2228
+ };
2229
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2230
+ const ret = WasmBlockchain.__wrap(arg0);
2231
2231
  return addHeapObject(ret);
2232
2232
  };
2233
2233
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
@@ -2271,13 +2271,13 @@ function __wbg_get_imports() {
2271
2271
  const ret = getObject(arg0) in getObject(arg1);
2272
2272
  return ret;
2273
2273
  };
2274
- imports.wbg.__wbg_sendmessage_961f1ed327086f6d = function(arg0, arg1) {
2274
+ imports.wbg.__wbg_sendmessage_689a98fa2f95c68e = function(arg0, arg1) {
2275
2275
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2276
2276
  };
2277
- imports.wbg.__wbg_sendmessagetoall_0d9782a65e68efcc = function(arg0, arg1) {
2277
+ imports.wbg.__wbg_sendmessagetoall_c2b64f419a547794 = function(arg0, arg1) {
2278
2278
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2279
2279
  };
2280
- imports.wbg.__wbg_connecttopeer_5912b4bcd3d6e32d = function() { return handleError(function (arg0, arg1, arg2) {
2280
+ imports.wbg.__wbg_connecttopeer_489ee8f1128a1425 = function() { return handleError(function (arg0, arg1, arg2) {
2281
2281
  let deferred0_0;
2282
2282
  let deferred0_1;
2283
2283
  try {
@@ -2289,11 +2289,11 @@ function __wbg_get_imports() {
2289
2289
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2290
2290
  }
2291
2291
  }, arguments) };
2292
- imports.wbg.__wbg_disconnectfrompeer_828542b07e5cc1c8 = function() { return handleError(function (arg0) {
2292
+ imports.wbg.__wbg_disconnectfrompeer_7e577a0de8d4ab98 = function() { return handleError(function (arg0) {
2293
2293
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2294
2294
  return addHeapObject(ret);
2295
2295
  }, arguments) };
2296
- imports.wbg.__wbg_fetchblockfrompeer_7ffa6fb61833119d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2296
+ imports.wbg.__wbg_fetchblockfrompeer_70f13b49c5c0e41d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2297
2297
  let deferred0_0;
2298
2298
  let deferred0_1;
2299
2299
  try {
@@ -2305,7 +2305,7 @@ function __wbg_get_imports() {
2305
2305
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2306
2306
  }
2307
2307
  }, arguments) };
2308
- imports.wbg.__wbg_writevalue_ac7523e26dea760b = function(arg0, arg1, arg2) {
2308
+ imports.wbg.__wbg_writevalue_def0c50fbd95d8e4 = function(arg0, arg1, arg2) {
2309
2309
  let deferred0_0;
2310
2310
  let deferred0_1;
2311
2311
  try {
@@ -2316,7 +2316,7 @@ function __wbg_get_imports() {
2316
2316
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2317
2317
  }
2318
2318
  };
2319
- imports.wbg.__wbg_appendvalue_4f65e96fc882929a = function(arg0, arg1, arg2) {
2319
+ imports.wbg.__wbg_appendvalue_d6c1584393bee6b8 = function(arg0, arg1, arg2) {
2320
2320
  let deferred0_0;
2321
2321
  let deferred0_1;
2322
2322
  try {
@@ -2327,7 +2327,7 @@ function __wbg_get_imports() {
2327
2327
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2328
2328
  }
2329
2329
  };
2330
- imports.wbg.__wbg_flushdata_4ffa0c3519c5abf8 = function(arg0, arg1) {
2330
+ imports.wbg.__wbg_flushdata_dbf731aafd619959 = function(arg0, arg1) {
2331
2331
  let deferred0_0;
2332
2332
  let deferred0_1;
2333
2333
  try {
@@ -2338,7 +2338,7 @@ function __wbg_get_imports() {
2338
2338
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2339
2339
  }
2340
2340
  };
2341
- imports.wbg.__wbg_readvalue_98f4cc42b38611c5 = function() { return handleError(function (arg0, arg1) {
2341
+ imports.wbg.__wbg_readvalue_1fc0ffa5766bf83d = function() { return handleError(function (arg0, arg1) {
2342
2342
  let deferred0_0;
2343
2343
  let deferred0_1;
2344
2344
  try {
@@ -2350,11 +2350,11 @@ function __wbg_get_imports() {
2350
2350
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2351
2351
  }
2352
2352
  }, arguments) };
2353
- imports.wbg.__wbg_loadblockfilelist_2811ef288ff3e52f = function() { return handleError(function () {
2353
+ imports.wbg.__wbg_loadblockfilelist_76411c0cb7e138db = function() { return handleError(function () {
2354
2354
  const ret = MsgHandler.load_block_file_list();
2355
2355
  return addHeapObject(ret);
2356
2356
  }, arguments) };
2357
- imports.wbg.__wbg_isexistingfile_05f26740b44c72d9 = function() { return handleError(function (arg0, arg1) {
2357
+ imports.wbg.__wbg_isexistingfile_268f244b35b40714 = function() { return handleError(function (arg0, arg1) {
2358
2358
  let deferred0_0;
2359
2359
  let deferred0_1;
2360
2360
  try {
@@ -2366,7 +2366,7 @@ function __wbg_get_imports() {
2366
2366
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2367
2367
  }
2368
2368
  }, arguments) };
2369
- imports.wbg.__wbg_removevalue_a479819831ee2cea = function() { return handleError(function (arg0, arg1) {
2369
+ imports.wbg.__wbg_removevalue_b243f768e52bb210 = function() { return handleError(function (arg0, arg1) {
2370
2370
  let deferred0_0;
2371
2371
  let deferred0_1;
2372
2372
  try {
@@ -2378,7 +2378,7 @@ function __wbg_get_imports() {
2378
2378
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2379
2379
  }
2380
2380
  }, arguments) };
2381
- imports.wbg.__wbg_ensureblockdirectoryexists_be36f4bbabdb7e83 = function() { return handleError(function (arg0, arg1) {
2381
+ imports.wbg.__wbg_ensureblockdirectoryexists_45371b00a9be9e53 = function() { return handleError(function (arg0, arg1) {
2382
2382
  let deferred0_0;
2383
2383
  let deferred0_1;
2384
2384
  try {
@@ -2389,16 +2389,16 @@ function __wbg_get_imports() {
2389
2389
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2390
2390
  }
2391
2391
  }, arguments) };
2392
- imports.wbg.__wbg_processapicall_c2d4747cb4b84341 = function(arg0, arg1, arg2) {
2392
+ imports.wbg.__wbg_processapicall_9d0bfa0627d9e0d1 = function(arg0, arg1, arg2) {
2393
2393
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2394
2394
  };
2395
- imports.wbg.__wbg_processapisuccess_9afefb86a6655414 = function(arg0, arg1, arg2) {
2395
+ imports.wbg.__wbg_processapisuccess_a75e06c0a286e9d2 = function(arg0, arg1, arg2) {
2396
2396
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2397
2397
  };
2398
- imports.wbg.__wbg_processapierror_2cfea4bbc1706e6a = function(arg0, arg1, arg2) {
2398
+ imports.wbg.__wbg_processapierror_f5d47e39fc79d88d = function(arg0, arg1, arg2) {
2399
2399
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2400
2400
  };
2401
- imports.wbg.__wbg_sendinterfaceevent_da5e3734cd2a960d = function(arg0, arg1, arg2) {
2401
+ imports.wbg.__wbg_sendinterfaceevent_7c4230b0caa9d632 = function(arg0, arg1, arg2) {
2402
2402
  let deferred0_0;
2403
2403
  let deferred0_1;
2404
2404
  try {
@@ -2409,7 +2409,7 @@ function __wbg_get_imports() {
2409
2409
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2410
2410
  }
2411
2411
  };
2412
- imports.wbg.__wbg_sendblocksuccess_ca329c7fa6d29614 = function(arg0, arg1, arg2) {
2412
+ imports.wbg.__wbg_sendblocksuccess_36ee77c098eee1a4 = function(arg0, arg1, arg2) {
2413
2413
  let deferred0_0;
2414
2414
  let deferred0_1;
2415
2415
  try {
@@ -2420,10 +2420,10 @@ function __wbg_get_imports() {
2420
2420
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2421
2421
  }
2422
2422
  };
2423
- imports.wbg.__wbg_sendwalletupdate_b93eaad602246c4f = function() {
2423
+ imports.wbg.__wbg_sendwalletupdate_1a6cd0c24566ea12 = function() {
2424
2424
  MsgHandler.send_wallet_update();
2425
2425
  };
2426
- imports.wbg.__wbg_sendnewversionalert_04609634bae95a4c = function(arg0, arg1, arg2) {
2426
+ imports.wbg.__wbg_sendnewversionalert_8ce5f9f194c7f005 = function(arg0, arg1, arg2) {
2427
2427
  let deferred0_0;
2428
2428
  let deferred0_1;
2429
2429
  try {
@@ -2434,13 +2434,13 @@ function __wbg_get_imports() {
2434
2434
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2435
2435
  }
2436
2436
  };
2437
- imports.wbg.__wbg_savewallet_91f376539bc06e87 = function() {
2437
+ imports.wbg.__wbg_savewallet_4a375e24b66d3406 = function() {
2438
2438
  MsgHandler.save_wallet();
2439
2439
  };
2440
- imports.wbg.__wbg_loadwallet_e5cd268f68ec9854 = function() {
2440
+ imports.wbg.__wbg_loadwallet_9b25307f5cac6045 = function() {
2441
2441
  MsgHandler.load_wallet();
2442
2442
  };
2443
- imports.wbg.__wbg_getmyservices_46adb1f91f86c194 = function() {
2443
+ imports.wbg.__wbg_getmyservices_35e1dba7fa958e39 = function() {
2444
2444
  const ret = MsgHandler.get_my_services();
2445
2445
  _assertClass(ret, WasmPeerServiceList);
2446
2446
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "type": "module",
4
- "version": "0.2.13",
3
+ "version": "0.2.15",
5
4
  "files": [
6
5
  "index_bg.wasm",
7
6
  "index.js",
8
7
  "index.d.ts"
9
8
  ],
10
- "main": "index.js",
9
+ "module": "index.js",
11
10
  "types": "index.d.ts",
12
11
  "sideEffects": [
13
12
  "./snippets/*"
14
13
  ],
15
14
  "dependencies": {
16
- "node-fetch": "^3.3.0",
17
- "cross-env": "^7.0.3"
15
+ "cross-env": "^7.0.3",
16
+ "node-fetch": "^3.3.0"
18
17
  }
19
18
  }