saito-wasm 0.1.41 → 0.1.43

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.1.41"
3
+ version = "0.1.43"
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.1.41",
3
+ "version": "0.1.43",
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-40c9f302152100d5/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-3dea4dee83672e04/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -24,15 +24,6 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
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
27
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
28
 
38
29
  cachedTextDecoder.decode();
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
51
42
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
43
  }
53
44
 
45
+ function addHeapObject(obj) {
46
+ if (heap_next === heap.length) heap.push(heap.length + 1);
47
+ const idx = heap_next;
48
+ heap_next = heap[idx];
49
+
50
+ heap[idx] = obj;
51
+ return idx;
52
+ }
53
+
54
54
  let WASM_VECTOR_LEN = 0;
55
55
 
56
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -2125,8 +2125,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2125
2125
  takeObject(arg0);
2126
2126
  };
2127
2127
 
2128
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2129
- const ret = BigInt.asUintN(64, arg0);
2128
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2129
+ const ret = WasmWallet.__wrap(arg0);
2130
2130
  return addHeapObject(ret);
2131
2131
  };
2132
2132
 
@@ -2135,18 +2135,32 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2135
2135
  return addHeapObject(ret);
2136
2136
  };
2137
2137
 
2138
- module.exports.__wbg_wasmslip_new = function(arg0) {
2139
- const ret = WasmSlip.__wrap(arg0);
2138
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2139
+ const ret = BigInt.asUintN(64, arg0);
2140
2140
  return addHeapObject(ret);
2141
2141
  };
2142
2142
 
2143
+ module.exports.__wbindgen_is_falsy = function(arg0) {
2144
+ const ret = !getObject(arg0);
2145
+ return ret;
2146
+ };
2147
+
2148
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2149
+ const obj = getObject(arg1);
2150
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2151
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2152
+ var len1 = WASM_VECTOR_LEN;
2153
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2154
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2155
+ };
2156
+
2143
2157
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
2144
2158
  const ret = WasmTransaction.__wrap(arg0);
2145
2159
  return addHeapObject(ret);
2146
2160
  };
2147
2161
 
2148
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2149
- const ret = WasmWallet.__wrap(arg0);
2162
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2163
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2150
2164
  return addHeapObject(ret);
2151
2165
  };
2152
2166
 
@@ -2155,27 +2169,18 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2155
2169
  return addHeapObject(ret);
2156
2170
  };
2157
2171
 
2158
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2159
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2172
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2173
+ const ret = WasmBlockchain.__wrap(arg0);
2160
2174
  return addHeapObject(ret);
2161
2175
  };
2162
2176
 
2163
- module.exports.__wbindgen_is_falsy = function(arg0) {
2164
- const ret = !getObject(arg0);
2165
- return ret;
2166
- };
2167
-
2168
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2169
- const obj = getObject(arg1);
2170
- const ret = typeof(obj) === 'string' ? obj : undefined;
2171
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2172
- var len1 = WASM_VECTOR_LEN;
2173
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2174
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2177
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2178
+ const ret = WasmWalletSlip.__wrap(arg0);
2179
+ return addHeapObject(ret);
2175
2180
  };
2176
2181
 
2177
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2178
- const ret = WasmBlockchain.__wrap(arg0);
2182
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2183
+ const ret = WasmSlip.__wrap(arg0);
2179
2184
  return addHeapObject(ret);
2180
2185
  };
2181
2186
 
@@ -2184,11 +2189,6 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
2184
2189
  return addHeapObject(ret);
2185
2190
  };
2186
2191
 
2187
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2188
- const ret = WasmWalletSlip.__wrap(arg0);
2189
- return addHeapObject(ret);
2190
- };
2191
-
2192
2192
  module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2193
2193
  const ret = WasmPeerService.__wrap(arg0);
2194
2194
  return addHeapObject(ret);
@@ -2225,25 +2225,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2225
2225
  return ret;
2226
2226
  };
2227
2227
 
2228
- module.exports.__wbg_sendmessage_a0538d075fac7f97 = function(arg0, arg1) {
2228
+ module.exports.__wbg_sendmessage_5d104f5715ecd079 = function(arg0, arg1) {
2229
2229
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2230
2230
  };
2231
2231
 
2232
- module.exports.__wbg_sendmessagetoall_6ebb63654acc64ba = function(arg0, arg1) {
2232
+ module.exports.__wbg_sendmessagetoall_489e47cbd556d6fb = function(arg0, arg1) {
2233
2233
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2234
2234
  };
2235
2235
 
2236
- module.exports.__wbg_connecttopeer_189c065255cb49ac = function() { return handleError(function (arg0) {
2236
+ module.exports.__wbg_connecttopeer_32c9d392a1866b20 = function() { return handleError(function (arg0) {
2237
2237
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2238
2238
  return addHeapObject(ret);
2239
2239
  }, arguments) };
2240
2240
 
2241
- module.exports.__wbg_disconnectfrompeer_542a1fe95005d95e = function() { return handleError(function (arg0) {
2241
+ module.exports.__wbg_disconnectfrompeer_920d1aa577d4881a = function() { return handleError(function (arg0) {
2242
2242
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2243
2243
  return addHeapObject(ret);
2244
2244
  }, arguments) };
2245
2245
 
2246
- module.exports.__wbg_fetchblockfrompeer_8269d2ad1c635af5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2246
+ module.exports.__wbg_fetchblockfrompeer_e3c35de35f696ece = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2247
2247
  let deferred0_0;
2248
2248
  let deferred0_1;
2249
2249
  try {
@@ -2256,7 +2256,7 @@ module.exports.__wbg_fetchblockfrompeer_8269d2ad1c635af5 = function() { return h
2256
2256
  }
2257
2257
  }, arguments) };
2258
2258
 
2259
- module.exports.__wbg_writevalue_991db9848cba0521 = function(arg0, arg1, arg2) {
2259
+ module.exports.__wbg_writevalue_7e1687df014e0e78 = function(arg0, arg1, arg2) {
2260
2260
  let deferred0_0;
2261
2261
  let deferred0_1;
2262
2262
  try {
@@ -2268,75 +2268,75 @@ module.exports.__wbg_writevalue_991db9848cba0521 = function(arg0, arg1, arg2) {
2268
2268
  }
2269
2269
  };
2270
2270
 
2271
- module.exports.__wbg_ensureblockdirectoryexists_e52d4dab0961d5db = function() { return handleError(function (arg0, arg1) {
2271
+ module.exports.__wbg_readvalue_12f9abaf6b4f5a56 = function() { return handleError(function (arg0, arg1) {
2272
2272
  let deferred0_0;
2273
2273
  let deferred0_1;
2274
2274
  try {
2275
2275
  deferred0_0 = arg0;
2276
2276
  deferred0_1 = arg1;
2277
- MsgHandler.ensure_block_directory_exists(getStringFromWasm0(arg0, arg1));
2277
+ const ret = MsgHandler.read_value(getStringFromWasm0(arg0, arg1));
2278
+ return addHeapObject(ret);
2278
2279
  } finally {
2279
2280
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2280
2281
  }
2281
2282
  }, arguments) };
2282
2283
 
2283
- module.exports.__wbg_readvalue_1d63f1ef1493c3ef = function() { return handleError(function (arg0, arg1) {
2284
+ module.exports.__wbg_loadblockfilelist_90219d06d5dbe94b = function() { return handleError(function () {
2285
+ const ret = MsgHandler.load_block_file_list();
2286
+ return addHeapObject(ret);
2287
+ }, arguments) };
2288
+
2289
+ module.exports.__wbg_isexistingfile_0ce883f120e0ecf0 = function() { return handleError(function (arg0, arg1) {
2284
2290
  let deferred0_0;
2285
2291
  let deferred0_1;
2286
2292
  try {
2287
2293
  deferred0_0 = arg0;
2288
2294
  deferred0_1 = arg1;
2289
- const ret = MsgHandler.read_value(getStringFromWasm0(arg0, arg1));
2295
+ const ret = MsgHandler.is_existing_file(getStringFromWasm0(arg0, arg1));
2290
2296
  return addHeapObject(ret);
2291
2297
  } finally {
2292
2298
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2293
2299
  }
2294
2300
  }, arguments) };
2295
2301
 
2296
- module.exports.__wbg_loadblockfilelist_91a7e8bab5946a15 = function() { return handleError(function () {
2297
- const ret = MsgHandler.load_block_file_list();
2298
- return addHeapObject(ret);
2299
- }, arguments) };
2300
-
2301
- module.exports.__wbg_isexistingfile_fc490ffb57774753 = function() { return handleError(function (arg0, arg1) {
2302
+ module.exports.__wbg_removevalue_0ec748984d5f121a = function() { return handleError(function (arg0, arg1) {
2302
2303
  let deferred0_0;
2303
2304
  let deferred0_1;
2304
2305
  try {
2305
2306
  deferred0_0 = arg0;
2306
2307
  deferred0_1 = arg1;
2307
- const ret = MsgHandler.is_existing_file(getStringFromWasm0(arg0, arg1));
2308
+ const ret = MsgHandler.remove_value(getStringFromWasm0(arg0, arg1));
2308
2309
  return addHeapObject(ret);
2309
2310
  } finally {
2310
2311
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2311
2312
  }
2312
2313
  }, arguments) };
2313
2314
 
2314
- module.exports.__wbg_removevalue_d73c801e25353475 = function() { return handleError(function (arg0, arg1) {
2315
+ module.exports.__wbg_ensureblockdirectoryexists_39ac46f714ebeb10 = function() { return handleError(function (arg0, arg1) {
2315
2316
  let deferred0_0;
2316
2317
  let deferred0_1;
2317
2318
  try {
2318
2319
  deferred0_0 = arg0;
2319
2320
  deferred0_1 = arg1;
2320
- const ret = MsgHandler.remove_value(getStringFromWasm0(arg0, arg1));
2321
- return addHeapObject(ret);
2321
+ MsgHandler.ensure_block_directory_exists(getStringFromWasm0(arg0, arg1));
2322
2322
  } finally {
2323
2323
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2324
2324
  }
2325
2325
  }, arguments) };
2326
2326
 
2327
- module.exports.__wbg_processapicall_28f4fca3568c1b00 = function(arg0, arg1, arg2) {
2327
+ module.exports.__wbg_processapicall_b73a8c67116db170 = function(arg0, arg1, arg2) {
2328
2328
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2329
2329
  };
2330
2330
 
2331
- module.exports.__wbg_processapisuccess_fada0a70c463d3c1 = function(arg0, arg1, arg2) {
2331
+ module.exports.__wbg_processapisuccess_2dc4797968c9bb05 = function(arg0, arg1, arg2) {
2332
2332
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2333
2333
  };
2334
2334
 
2335
- module.exports.__wbg_processapierror_a699cace1ab55f27 = function(arg0, arg1, arg2) {
2335
+ module.exports.__wbg_processapierror_8b6d3c9126a1bf98 = function(arg0, arg1, arg2) {
2336
2336
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2337
2337
  };
2338
2338
 
2339
- module.exports.__wbg_sendinterfaceevent_5eb8deb83b907e8b = function(arg0, arg1, arg2) {
2339
+ module.exports.__wbg_sendinterfaceevent_05618a236639c923 = function(arg0, arg1, arg2) {
2340
2340
  let deferred0_0;
2341
2341
  let deferred0_1;
2342
2342
  try {
@@ -2348,7 +2348,7 @@ module.exports.__wbg_sendinterfaceevent_5eb8deb83b907e8b = function(arg0, arg1,
2348
2348
  }
2349
2349
  };
2350
2350
 
2351
- module.exports.__wbg_sendblocksuccess_809a0c0b0e69441d = function(arg0, arg1, arg2) {
2351
+ module.exports.__wbg_sendblocksuccess_dacc4162ea57c21d = function(arg0, arg1, arg2) {
2352
2352
  let deferred0_0;
2353
2353
  let deferred0_1;
2354
2354
  try {
@@ -2360,11 +2360,11 @@ module.exports.__wbg_sendblocksuccess_809a0c0b0e69441d = function(arg0, arg1, ar
2360
2360
  }
2361
2361
  };
2362
2362
 
2363
- module.exports.__wbg_sendwalletupdate_09d859adb0ea14a9 = function() {
2363
+ module.exports.__wbg_sendwalletupdate_1f89938445201dbd = function() {
2364
2364
  MsgHandler.send_wallet_update();
2365
2365
  };
2366
2366
 
2367
- module.exports.__wbg_sendnewversionalert_1e35e1a7d102f40b = function(arg0, arg1, arg2) {
2367
+ module.exports.__wbg_sendnewversionalert_5a0d7b5ea3e83f68 = function(arg0, arg1, arg2) {
2368
2368
  let deferred0_0;
2369
2369
  let deferred0_1;
2370
2370
  try {
@@ -2376,15 +2376,15 @@ module.exports.__wbg_sendnewversionalert_1e35e1a7d102f40b = function(arg0, arg1,
2376
2376
  }
2377
2377
  };
2378
2378
 
2379
- module.exports.__wbg_savewallet_0a9f3489e1d6a2c4 = function() {
2379
+ module.exports.__wbg_savewallet_07805be96425622b = function() {
2380
2380
  MsgHandler.save_wallet();
2381
2381
  };
2382
2382
 
2383
- module.exports.__wbg_loadwallet_3e50826561a1f1b4 = function() {
2383
+ module.exports.__wbg_loadwallet_d4c96426978dfb6b = function() {
2384
2384
  MsgHandler.load_wallet();
2385
2385
  };
2386
2386
 
2387
- module.exports.__wbg_getmyservices_ee748c7b35d60b74 = function() {
2387
+ module.exports.__wbg_getmyservices_c3629da571b739bb = function() {
2388
2388
  const ret = MsgHandler.get_my_services();
2389
2389
  _assertClass(ret, WasmPeerServiceList);
2390
2390
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
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-40c9f302152100d5/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-3dea4dee83672e04/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,15 +22,6 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
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
25
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
26
 
36
27
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -49,6 +40,15 @@ function getStringFromWasm0(ptr, len) {
49
40
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
41
  }
51
42
 
43
+ function addHeapObject(obj) {
44
+ if (heap_next === heap.length) heap.push(heap.length + 1);
45
+ const idx = heap_next;
46
+ heap_next = heap[idx];
47
+
48
+ heap[idx] = obj;
49
+ return idx;
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') } } );
@@ -2142,32 +2142,16 @@ function __wbg_get_imports() {
2142
2142
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2143
2143
  takeObject(arg0);
2144
2144
  };
2145
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2146
- const ret = BigInt.asUintN(64, arg0);
2147
- return addHeapObject(ret);
2148
- };
2149
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2150
- const ret = getStringFromWasm0(arg0, arg1);
2151
- return addHeapObject(ret);
2152
- };
2153
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2154
- const ret = WasmSlip.__wrap(arg0);
2155
- return addHeapObject(ret);
2156
- };
2157
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2158
- const ret = WasmTransaction.__wrap(arg0);
2159
- return addHeapObject(ret);
2160
- };
2161
2145
  imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2162
2146
  const ret = WasmWallet.__wrap(arg0);
2163
2147
  return addHeapObject(ret);
2164
2148
  };
2165
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2166
- const ret = WasmPeer.__wrap(arg0);
2149
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2150
+ const ret = getStringFromWasm0(arg0, arg1);
2167
2151
  return addHeapObject(ret);
2168
2152
  };
2169
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2170
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2153
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2154
+ const ret = BigInt.asUintN(64, arg0);
2171
2155
  return addHeapObject(ret);
2172
2156
  };
2173
2157
  imports.wbg.__wbindgen_is_falsy = function(arg0) {
@@ -2182,18 +2166,34 @@ function __wbg_get_imports() {
2182
2166
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2183
2167
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2184
2168
  };
2185
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2186
- const ret = WasmBlockchain.__wrap(arg0);
2169
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2170
+ const ret = WasmTransaction.__wrap(arg0);
2187
2171
  return addHeapObject(ret);
2188
2172
  };
2189
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2190
- const ret = WasmBlock.__wrap(arg0);
2173
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2174
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2175
+ return addHeapObject(ret);
2176
+ };
2177
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2178
+ const ret = WasmPeer.__wrap(arg0);
2179
+ return addHeapObject(ret);
2180
+ };
2181
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2182
+ const ret = WasmBlockchain.__wrap(arg0);
2191
2183
  return addHeapObject(ret);
2192
2184
  };
2193
2185
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2194
2186
  const ret = WasmWalletSlip.__wrap(arg0);
2195
2187
  return addHeapObject(ret);
2196
2188
  };
2189
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2190
+ const ret = WasmSlip.__wrap(arg0);
2191
+ return addHeapObject(ret);
2192
+ };
2193
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2194
+ const ret = WasmBlock.__wrap(arg0);
2195
+ return addHeapObject(ret);
2196
+ };
2197
2197
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2198
2198
  const ret = WasmPeerService.__wrap(arg0);
2199
2199
  return addHeapObject(ret);
@@ -2223,21 +2223,21 @@ function __wbg_get_imports() {
2223
2223
  const ret = getObject(arg0) in getObject(arg1);
2224
2224
  return ret;
2225
2225
  };
2226
- imports.wbg.__wbg_sendmessage_a0538d075fac7f97 = function(arg0, arg1) {
2226
+ imports.wbg.__wbg_sendmessage_5d104f5715ecd079 = function(arg0, arg1) {
2227
2227
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2228
2228
  };
2229
- imports.wbg.__wbg_sendmessagetoall_6ebb63654acc64ba = function(arg0, arg1) {
2229
+ imports.wbg.__wbg_sendmessagetoall_489e47cbd556d6fb = function(arg0, arg1) {
2230
2230
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2231
2231
  };
2232
- imports.wbg.__wbg_connecttopeer_189c065255cb49ac = function() { return handleError(function (arg0) {
2232
+ imports.wbg.__wbg_connecttopeer_32c9d392a1866b20 = function() { return handleError(function (arg0) {
2233
2233
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2234
2234
  return addHeapObject(ret);
2235
2235
  }, arguments) };
2236
- imports.wbg.__wbg_disconnectfrompeer_542a1fe95005d95e = function() { return handleError(function (arg0) {
2236
+ imports.wbg.__wbg_disconnectfrompeer_920d1aa577d4881a = function() { return handleError(function (arg0) {
2237
2237
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2238
2238
  return addHeapObject(ret);
2239
2239
  }, arguments) };
2240
- imports.wbg.__wbg_fetchblockfrompeer_8269d2ad1c635af5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2240
+ imports.wbg.__wbg_fetchblockfrompeer_e3c35de35f696ece = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2241
2241
  let deferred0_0;
2242
2242
  let deferred0_1;
2243
2243
  try {
@@ -2249,7 +2249,7 @@ function __wbg_get_imports() {
2249
2249
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2250
2250
  }
2251
2251
  }, arguments) };
2252
- imports.wbg.__wbg_writevalue_991db9848cba0521 = function(arg0, arg1, arg2) {
2252
+ imports.wbg.__wbg_writevalue_7e1687df014e0e78 = function(arg0, arg1, arg2) {
2253
2253
  let deferred0_0;
2254
2254
  let deferred0_1;
2255
2255
  try {
@@ -2260,67 +2260,67 @@ function __wbg_get_imports() {
2260
2260
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2261
2261
  }
2262
2262
  };
2263
- imports.wbg.__wbg_ensureblockdirectoryexists_e52d4dab0961d5db = function() { return handleError(function (arg0, arg1) {
2263
+ imports.wbg.__wbg_readvalue_12f9abaf6b4f5a56 = function() { return handleError(function (arg0, arg1) {
2264
2264
  let deferred0_0;
2265
2265
  let deferred0_1;
2266
2266
  try {
2267
2267
  deferred0_0 = arg0;
2268
2268
  deferred0_1 = arg1;
2269
- MsgHandler.ensure_block_directory_exists(getStringFromWasm0(arg0, arg1));
2269
+ const ret = MsgHandler.read_value(getStringFromWasm0(arg0, arg1));
2270
+ return addHeapObject(ret);
2270
2271
  } finally {
2271
2272
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2272
2273
  }
2273
2274
  }, arguments) };
2274
- imports.wbg.__wbg_readvalue_1d63f1ef1493c3ef = function() { return handleError(function (arg0, arg1) {
2275
+ imports.wbg.__wbg_loadblockfilelist_90219d06d5dbe94b = function() { return handleError(function () {
2276
+ const ret = MsgHandler.load_block_file_list();
2277
+ return addHeapObject(ret);
2278
+ }, arguments) };
2279
+ imports.wbg.__wbg_isexistingfile_0ce883f120e0ecf0 = function() { return handleError(function (arg0, arg1) {
2275
2280
  let deferred0_0;
2276
2281
  let deferred0_1;
2277
2282
  try {
2278
2283
  deferred0_0 = arg0;
2279
2284
  deferred0_1 = arg1;
2280
- const ret = MsgHandler.read_value(getStringFromWasm0(arg0, arg1));
2285
+ const ret = MsgHandler.is_existing_file(getStringFromWasm0(arg0, arg1));
2281
2286
  return addHeapObject(ret);
2282
2287
  } finally {
2283
2288
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2284
2289
  }
2285
2290
  }, arguments) };
2286
- imports.wbg.__wbg_loadblockfilelist_91a7e8bab5946a15 = function() { return handleError(function () {
2287
- const ret = MsgHandler.load_block_file_list();
2288
- return addHeapObject(ret);
2289
- }, arguments) };
2290
- imports.wbg.__wbg_isexistingfile_fc490ffb57774753 = function() { return handleError(function (arg0, arg1) {
2291
+ imports.wbg.__wbg_removevalue_0ec748984d5f121a = function() { return handleError(function (arg0, arg1) {
2291
2292
  let deferred0_0;
2292
2293
  let deferred0_1;
2293
2294
  try {
2294
2295
  deferred0_0 = arg0;
2295
2296
  deferred0_1 = arg1;
2296
- const ret = MsgHandler.is_existing_file(getStringFromWasm0(arg0, arg1));
2297
+ const ret = MsgHandler.remove_value(getStringFromWasm0(arg0, arg1));
2297
2298
  return addHeapObject(ret);
2298
2299
  } finally {
2299
2300
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2300
2301
  }
2301
2302
  }, arguments) };
2302
- imports.wbg.__wbg_removevalue_d73c801e25353475 = function() { return handleError(function (arg0, arg1) {
2303
+ imports.wbg.__wbg_ensureblockdirectoryexists_39ac46f714ebeb10 = function() { return handleError(function (arg0, arg1) {
2303
2304
  let deferred0_0;
2304
2305
  let deferred0_1;
2305
2306
  try {
2306
2307
  deferred0_0 = arg0;
2307
2308
  deferred0_1 = arg1;
2308
- const ret = MsgHandler.remove_value(getStringFromWasm0(arg0, arg1));
2309
- return addHeapObject(ret);
2309
+ MsgHandler.ensure_block_directory_exists(getStringFromWasm0(arg0, arg1));
2310
2310
  } finally {
2311
2311
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2312
2312
  }
2313
2313
  }, arguments) };
2314
- imports.wbg.__wbg_processapicall_28f4fca3568c1b00 = function(arg0, arg1, arg2) {
2314
+ imports.wbg.__wbg_processapicall_b73a8c67116db170 = function(arg0, arg1, arg2) {
2315
2315
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2316
2316
  };
2317
- imports.wbg.__wbg_processapisuccess_fada0a70c463d3c1 = function(arg0, arg1, arg2) {
2317
+ imports.wbg.__wbg_processapisuccess_2dc4797968c9bb05 = function(arg0, arg1, arg2) {
2318
2318
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2319
2319
  };
2320
- imports.wbg.__wbg_processapierror_a699cace1ab55f27 = function(arg0, arg1, arg2) {
2320
+ imports.wbg.__wbg_processapierror_8b6d3c9126a1bf98 = function(arg0, arg1, arg2) {
2321
2321
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2322
2322
  };
2323
- imports.wbg.__wbg_sendinterfaceevent_5eb8deb83b907e8b = function(arg0, arg1, arg2) {
2323
+ imports.wbg.__wbg_sendinterfaceevent_05618a236639c923 = function(arg0, arg1, arg2) {
2324
2324
  let deferred0_0;
2325
2325
  let deferred0_1;
2326
2326
  try {
@@ -2331,7 +2331,7 @@ function __wbg_get_imports() {
2331
2331
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2332
2332
  }
2333
2333
  };
2334
- imports.wbg.__wbg_sendblocksuccess_809a0c0b0e69441d = function(arg0, arg1, arg2) {
2334
+ imports.wbg.__wbg_sendblocksuccess_dacc4162ea57c21d = function(arg0, arg1, arg2) {
2335
2335
  let deferred0_0;
2336
2336
  let deferred0_1;
2337
2337
  try {
@@ -2342,10 +2342,10 @@ function __wbg_get_imports() {
2342
2342
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2343
2343
  }
2344
2344
  };
2345
- imports.wbg.__wbg_sendwalletupdate_09d859adb0ea14a9 = function() {
2345
+ imports.wbg.__wbg_sendwalletupdate_1f89938445201dbd = function() {
2346
2346
  MsgHandler.send_wallet_update();
2347
2347
  };
2348
- imports.wbg.__wbg_sendnewversionalert_1e35e1a7d102f40b = function(arg0, arg1, arg2) {
2348
+ imports.wbg.__wbg_sendnewversionalert_5a0d7b5ea3e83f68 = function(arg0, arg1, arg2) {
2349
2349
  let deferred0_0;
2350
2350
  let deferred0_1;
2351
2351
  try {
@@ -2356,13 +2356,13 @@ function __wbg_get_imports() {
2356
2356
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2357
2357
  }
2358
2358
  };
2359
- imports.wbg.__wbg_savewallet_0a9f3489e1d6a2c4 = function() {
2359
+ imports.wbg.__wbg_savewallet_07805be96425622b = function() {
2360
2360
  MsgHandler.save_wallet();
2361
2361
  };
2362
- imports.wbg.__wbg_loadwallet_3e50826561a1f1b4 = function() {
2362
+ imports.wbg.__wbg_loadwallet_d4c96426978dfb6b = function() {
2363
2363
  MsgHandler.load_wallet();
2364
2364
  };
2365
- imports.wbg.__wbg_getmyservices_ee748c7b35d60b74 = function() {
2365
+ imports.wbg.__wbg_getmyservices_c3629da571b739bb = function() {
2366
2366
  const ret = MsgHandler.get_my_services();
2367
2367
  _assertClass(ret, WasmPeerServiceList);
2368
2368
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",