saito-wasm 0.1.43 → 0.1.44

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.43"
3
+ version = "0.1.44"
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.43",
3
+ "version": "0.1.44",
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-3dea4dee83672e04/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-fedb6ef7f38dc051/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -24,6 +24,15 @@ 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
+
27
36
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
37
 
29
38
  cachedTextDecoder.decode();
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
42
51
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
43
52
  }
44
53
 
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,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2125
2125
  takeObject(arg0);
2126
2126
  };
2127
2127
 
2128
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2129
- const ret = WasmWallet.__wrap(arg0);
2128
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2129
+ const ret = BigInt.asUintN(64, arg0);
2130
+ return addHeapObject(ret);
2131
+ };
2132
+
2133
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2134
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2130
2135
  return addHeapObject(ret);
2131
2136
  };
2132
2137
 
@@ -2135,23 +2140,19 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2135
2140
  return addHeapObject(ret);
2136
2141
  };
2137
2142
 
2138
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2139
- const ret = BigInt.asUintN(64, arg0);
2143
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2144
+ const ret = WasmSlip.__wrap(arg0);
2140
2145
  return addHeapObject(ret);
2141
2146
  };
2142
2147
 
2143
- module.exports.__wbindgen_is_falsy = function(arg0) {
2144
- const ret = !getObject(arg0);
2145
- return ret;
2148
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2149
+ const ret = WasmPeer.__wrap(arg0);
2150
+ return addHeapObject(ret);
2146
2151
  };
2147
2152
 
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;
2153
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2154
+ const ret = WasmBlock.__wrap(arg0);
2155
+ return addHeapObject(ret);
2155
2156
  };
2156
2157
 
2157
2158
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
@@ -2159,13 +2160,13 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2159
2160
  return addHeapObject(ret);
2160
2161
  };
2161
2162
 
2162
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2163
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2163
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2164
+ const ret = WasmWallet.__wrap(arg0);
2164
2165
  return addHeapObject(ret);
2165
2166
  };
2166
2167
 
2167
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2168
- const ret = WasmPeer.__wrap(arg0);
2168
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2169
+ const ret = WasmWalletSlip.__wrap(arg0);
2169
2170
  return addHeapObject(ret);
2170
2171
  };
2171
2172
 
@@ -2174,19 +2175,18 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2174
2175
  return addHeapObject(ret);
2175
2176
  };
2176
2177
 
2177
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2178
- const ret = WasmWalletSlip.__wrap(arg0);
2179
- return addHeapObject(ret);
2180
- };
2181
-
2182
- module.exports.__wbg_wasmslip_new = function(arg0) {
2183
- const ret = WasmSlip.__wrap(arg0);
2184
- return addHeapObject(ret);
2178
+ module.exports.__wbindgen_is_falsy = function(arg0) {
2179
+ const ret = !getObject(arg0);
2180
+ return ret;
2185
2181
  };
2186
2182
 
2187
- module.exports.__wbg_wasmblock_new = function(arg0) {
2188
- const ret = WasmBlock.__wrap(arg0);
2189
- return addHeapObject(ret);
2183
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2184
+ const obj = getObject(arg1);
2185
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2186
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2187
+ var len1 = WASM_VECTOR_LEN;
2188
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2189
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2190
2190
  };
2191
2191
 
2192
2192
  module.exports.__wbg_wasmpeerservice_new = function(arg0) {
@@ -2225,25 +2225,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2225
2225
  return ret;
2226
2226
  };
2227
2227
 
2228
- module.exports.__wbg_sendmessage_5d104f5715ecd079 = function(arg0, arg1) {
2228
+ module.exports.__wbg_sendmessage_9d23fc3ed24f62a5 = function(arg0, arg1) {
2229
2229
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2230
2230
  };
2231
2231
 
2232
- module.exports.__wbg_sendmessagetoall_489e47cbd556d6fb = function(arg0, arg1) {
2232
+ module.exports.__wbg_sendmessagetoall_3f27c49ca05fa31a = function(arg0, arg1) {
2233
2233
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2234
2234
  };
2235
2235
 
2236
- module.exports.__wbg_connecttopeer_32c9d392a1866b20 = function() { return handleError(function (arg0) {
2236
+ module.exports.__wbg_connecttopeer_f54b81c1364fdede = 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_920d1aa577d4881a = function() { return handleError(function (arg0) {
2241
+ module.exports.__wbg_disconnectfrompeer_5260417a66da7389 = 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_e3c35de35f696ece = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2246
+ module.exports.__wbg_fetchblockfrompeer_41b27c4db5a88aff = 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_e3c35de35f696ece = function() { return h
2256
2256
  }
2257
2257
  }, arguments) };
2258
2258
 
2259
- module.exports.__wbg_writevalue_7e1687df014e0e78 = function(arg0, arg1, arg2) {
2259
+ module.exports.__wbg_writevalue_d74438aa544d2bb7 = function(arg0, arg1, arg2) {
2260
2260
  let deferred0_0;
2261
2261
  let deferred0_1;
2262
2262
  try {
@@ -2268,7 +2268,7 @@ module.exports.__wbg_writevalue_7e1687df014e0e78 = function(arg0, arg1, arg2) {
2268
2268
  }
2269
2269
  };
2270
2270
 
2271
- module.exports.__wbg_readvalue_12f9abaf6b4f5a56 = function() { return handleError(function (arg0, arg1) {
2271
+ module.exports.__wbg_readvalue_61f9a9de39915219 = function() { return handleError(function (arg0, arg1) {
2272
2272
  let deferred0_0;
2273
2273
  let deferred0_1;
2274
2274
  try {
@@ -2281,12 +2281,12 @@ module.exports.__wbg_readvalue_12f9abaf6b4f5a56 = function() { return handleErro
2281
2281
  }
2282
2282
  }, arguments) };
2283
2283
 
2284
- module.exports.__wbg_loadblockfilelist_90219d06d5dbe94b = function() { return handleError(function () {
2284
+ module.exports.__wbg_loadblockfilelist_6f74f8d50642a6fe = function() { return handleError(function () {
2285
2285
  const ret = MsgHandler.load_block_file_list();
2286
2286
  return addHeapObject(ret);
2287
2287
  }, arguments) };
2288
2288
 
2289
- module.exports.__wbg_isexistingfile_0ce883f120e0ecf0 = function() { return handleError(function (arg0, arg1) {
2289
+ module.exports.__wbg_isexistingfile_f9fc5641114cf63c = function() { return handleError(function (arg0, arg1) {
2290
2290
  let deferred0_0;
2291
2291
  let deferred0_1;
2292
2292
  try {
@@ -2299,7 +2299,7 @@ module.exports.__wbg_isexistingfile_0ce883f120e0ecf0 = function() { return handl
2299
2299
  }
2300
2300
  }, arguments) };
2301
2301
 
2302
- module.exports.__wbg_removevalue_0ec748984d5f121a = function() { return handleError(function (arg0, arg1) {
2302
+ module.exports.__wbg_removevalue_1090f58c927a2071 = function() { return handleError(function (arg0, arg1) {
2303
2303
  let deferred0_0;
2304
2304
  let deferred0_1;
2305
2305
  try {
@@ -2312,7 +2312,7 @@ module.exports.__wbg_removevalue_0ec748984d5f121a = function() { return handleEr
2312
2312
  }
2313
2313
  }, arguments) };
2314
2314
 
2315
- module.exports.__wbg_ensureblockdirectoryexists_39ac46f714ebeb10 = function() { return handleError(function (arg0, arg1) {
2315
+ module.exports.__wbg_ensureblockdirectoryexists_765b793dd19f9c1b = function() { return handleError(function (arg0, arg1) {
2316
2316
  let deferred0_0;
2317
2317
  let deferred0_1;
2318
2318
  try {
@@ -2324,19 +2324,19 @@ module.exports.__wbg_ensureblockdirectoryexists_39ac46f714ebeb10 = function() {
2324
2324
  }
2325
2325
  }, arguments) };
2326
2326
 
2327
- module.exports.__wbg_processapicall_b73a8c67116db170 = function(arg0, arg1, arg2) {
2327
+ module.exports.__wbg_processapicall_adea261c1eaf6551 = 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_2dc4797968c9bb05 = function(arg0, arg1, arg2) {
2331
+ module.exports.__wbg_processapisuccess_b594d7df62ed90ac = 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_8b6d3c9126a1bf98 = function(arg0, arg1, arg2) {
2335
+ module.exports.__wbg_processapierror_24ca199886d1f2d7 = 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_05618a236639c923 = function(arg0, arg1, arg2) {
2339
+ module.exports.__wbg_sendinterfaceevent_d91c674d658a5ed7 = 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_05618a236639c923 = function(arg0, arg1,
2348
2348
  }
2349
2349
  };
2350
2350
 
2351
- module.exports.__wbg_sendblocksuccess_dacc4162ea57c21d = function(arg0, arg1, arg2) {
2351
+ module.exports.__wbg_sendblocksuccess_33fbbf5e82ec047c = 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_dacc4162ea57c21d = function(arg0, arg1, ar
2360
2360
  }
2361
2361
  };
2362
2362
 
2363
- module.exports.__wbg_sendwalletupdate_1f89938445201dbd = function() {
2363
+ module.exports.__wbg_sendwalletupdate_5bbd32d8ca829e03 = function() {
2364
2364
  MsgHandler.send_wallet_update();
2365
2365
  };
2366
2366
 
2367
- module.exports.__wbg_sendnewversionalert_5a0d7b5ea3e83f68 = function(arg0, arg1, arg2) {
2367
+ module.exports.__wbg_sendnewversionalert_fdeae65b17d57a78 = 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_5a0d7b5ea3e83f68 = function(arg0, arg1,
2376
2376
  }
2377
2377
  };
2378
2378
 
2379
- module.exports.__wbg_savewallet_07805be96425622b = function() {
2379
+ module.exports.__wbg_savewallet_2b7ffc0ec69b725d = function() {
2380
2380
  MsgHandler.save_wallet();
2381
2381
  };
2382
2382
 
2383
- module.exports.__wbg_loadwallet_d4c96426978dfb6b = function() {
2383
+ module.exports.__wbg_loadwallet_5161ce756f3284cb = function() {
2384
2384
  MsgHandler.load_wallet();
2385
2385
  };
2386
2386
 
2387
- module.exports.__wbg_getmyservices_c3629da571b739bb = function() {
2387
+ module.exports.__wbg_getmyservices_c5bf043d6123d4fd = function() {
2388
2388
  const ret = MsgHandler.get_my_services();
2389
2389
  _assertClass(ret, WasmPeerServiceList);
2390
2390
  var ptr1 = ret.__destroy_into_raw();
@@ -2737,8 +2737,8 @@ module.exports.__wbindgen_memory = function() {
2737
2737
  return addHeapObject(ret);
2738
2738
  };
2739
2739
 
2740
- module.exports.__wbindgen_closure_wrapper1166 = function(arg0, arg1, arg2) {
2741
- const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_40);
2740
+ module.exports.__wbindgen_closure_wrapper1165 = function(arg0, arg1, arg2) {
2741
+ const ret = makeMutClosure(arg0, arg1, 427, __wbg_adapter_40);
2742
2742
  return addHeapObject(ret);
2743
2743
  };
2744
2744
 
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
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,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-3dea4dee83672e04/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-fedb6ef7f38dc051/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,6 +22,15 @@ 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
+
25
34
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
26
35
 
27
36
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -40,15 +49,6 @@ function getStringFromWasm0(ptr, len) {
40
49
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
50
  }
42
51
 
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,57 +2142,57 @@ function __wbg_get_imports() {
2142
2142
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2143
2143
  takeObject(arg0);
2144
2144
  };
2145
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2146
- const ret = WasmWallet.__wrap(arg0);
2145
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2146
+ const ret = BigInt.asUintN(64, arg0);
2147
+ return addHeapObject(ret);
2148
+ };
2149
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2150
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2147
2151
  return addHeapObject(ret);
2148
2152
  };
2149
2153
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2150
2154
  const ret = getStringFromWasm0(arg0, arg1);
2151
2155
  return addHeapObject(ret);
2152
2156
  };
2153
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2154
- const ret = BigInt.asUintN(64, arg0);
2157
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2158
+ const ret = WasmSlip.__wrap(arg0);
2155
2159
  return addHeapObject(ret);
2156
2160
  };
2157
- imports.wbg.__wbindgen_is_falsy = function(arg0) {
2158
- const ret = !getObject(arg0);
2159
- return ret;
2161
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2162
+ const ret = WasmPeer.__wrap(arg0);
2163
+ return addHeapObject(ret);
2160
2164
  };
2161
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2162
- const obj = getObject(arg1);
2163
- const ret = typeof(obj) === 'string' ? obj : undefined;
2164
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2165
- var len1 = WASM_VECTOR_LEN;
2166
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2167
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2165
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2166
+ const ret = WasmBlock.__wrap(arg0);
2167
+ return addHeapObject(ret);
2168
2168
  };
2169
2169
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2170
2170
  const ret = WasmTransaction.__wrap(arg0);
2171
2171
  return addHeapObject(ret);
2172
2172
  };
2173
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2174
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2173
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2174
+ const ret = WasmWallet.__wrap(arg0);
2175
2175
  return addHeapObject(ret);
2176
2176
  };
2177
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2178
- const ret = WasmPeer.__wrap(arg0);
2177
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2178
+ const ret = WasmWalletSlip.__wrap(arg0);
2179
2179
  return addHeapObject(ret);
2180
2180
  };
2181
2181
  imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2182
2182
  const ret = WasmBlockchain.__wrap(arg0);
2183
2183
  return addHeapObject(ret);
2184
2184
  };
2185
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2186
- const ret = WasmWalletSlip.__wrap(arg0);
2187
- return addHeapObject(ret);
2188
- };
2189
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2190
- const ret = WasmSlip.__wrap(arg0);
2191
- return addHeapObject(ret);
2185
+ imports.wbg.__wbindgen_is_falsy = function(arg0) {
2186
+ const ret = !getObject(arg0);
2187
+ return ret;
2192
2188
  };
2193
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2194
- const ret = WasmBlock.__wrap(arg0);
2195
- return addHeapObject(ret);
2189
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2190
+ const obj = getObject(arg1);
2191
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2192
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2193
+ var len1 = WASM_VECTOR_LEN;
2194
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2195
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2196
2196
  };
2197
2197
  imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
2198
2198
  const ret = WasmPeerService.__wrap(arg0);
@@ -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_5d104f5715ecd079 = function(arg0, arg1) {
2226
+ imports.wbg.__wbg_sendmessage_9d23fc3ed24f62a5 = function(arg0, arg1) {
2227
2227
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2228
2228
  };
2229
- imports.wbg.__wbg_sendmessagetoall_489e47cbd556d6fb = function(arg0, arg1) {
2229
+ imports.wbg.__wbg_sendmessagetoall_3f27c49ca05fa31a = function(arg0, arg1) {
2230
2230
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2231
2231
  };
2232
- imports.wbg.__wbg_connecttopeer_32c9d392a1866b20 = function() { return handleError(function (arg0) {
2232
+ imports.wbg.__wbg_connecttopeer_f54b81c1364fdede = 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_920d1aa577d4881a = function() { return handleError(function (arg0) {
2236
+ imports.wbg.__wbg_disconnectfrompeer_5260417a66da7389 = 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_e3c35de35f696ece = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2240
+ imports.wbg.__wbg_fetchblockfrompeer_41b27c4db5a88aff = 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_7e1687df014e0e78 = function(arg0, arg1, arg2) {
2252
+ imports.wbg.__wbg_writevalue_d74438aa544d2bb7 = function(arg0, arg1, arg2) {
2253
2253
  let deferred0_0;
2254
2254
  let deferred0_1;
2255
2255
  try {
@@ -2260,7 +2260,7 @@ function __wbg_get_imports() {
2260
2260
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2261
2261
  }
2262
2262
  };
2263
- imports.wbg.__wbg_readvalue_12f9abaf6b4f5a56 = function() { return handleError(function (arg0, arg1) {
2263
+ imports.wbg.__wbg_readvalue_61f9a9de39915219 = function() { return handleError(function (arg0, arg1) {
2264
2264
  let deferred0_0;
2265
2265
  let deferred0_1;
2266
2266
  try {
@@ -2272,11 +2272,11 @@ function __wbg_get_imports() {
2272
2272
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2273
2273
  }
2274
2274
  }, arguments) };
2275
- imports.wbg.__wbg_loadblockfilelist_90219d06d5dbe94b = function() { return handleError(function () {
2275
+ imports.wbg.__wbg_loadblockfilelist_6f74f8d50642a6fe = function() { return handleError(function () {
2276
2276
  const ret = MsgHandler.load_block_file_list();
2277
2277
  return addHeapObject(ret);
2278
2278
  }, arguments) };
2279
- imports.wbg.__wbg_isexistingfile_0ce883f120e0ecf0 = function() { return handleError(function (arg0, arg1) {
2279
+ imports.wbg.__wbg_isexistingfile_f9fc5641114cf63c = function() { return handleError(function (arg0, arg1) {
2280
2280
  let deferred0_0;
2281
2281
  let deferred0_1;
2282
2282
  try {
@@ -2288,7 +2288,7 @@ function __wbg_get_imports() {
2288
2288
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2289
2289
  }
2290
2290
  }, arguments) };
2291
- imports.wbg.__wbg_removevalue_0ec748984d5f121a = function() { return handleError(function (arg0, arg1) {
2291
+ imports.wbg.__wbg_removevalue_1090f58c927a2071 = function() { return handleError(function (arg0, arg1) {
2292
2292
  let deferred0_0;
2293
2293
  let deferred0_1;
2294
2294
  try {
@@ -2300,7 +2300,7 @@ function __wbg_get_imports() {
2300
2300
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2301
2301
  }
2302
2302
  }, arguments) };
2303
- imports.wbg.__wbg_ensureblockdirectoryexists_39ac46f714ebeb10 = function() { return handleError(function (arg0, arg1) {
2303
+ imports.wbg.__wbg_ensureblockdirectoryexists_765b793dd19f9c1b = function() { return handleError(function (arg0, arg1) {
2304
2304
  let deferred0_0;
2305
2305
  let deferred0_1;
2306
2306
  try {
@@ -2311,16 +2311,16 @@ function __wbg_get_imports() {
2311
2311
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2312
2312
  }
2313
2313
  }, arguments) };
2314
- imports.wbg.__wbg_processapicall_b73a8c67116db170 = function(arg0, arg1, arg2) {
2314
+ imports.wbg.__wbg_processapicall_adea261c1eaf6551 = 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_2dc4797968c9bb05 = function(arg0, arg1, arg2) {
2317
+ imports.wbg.__wbg_processapisuccess_b594d7df62ed90ac = 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_8b6d3c9126a1bf98 = function(arg0, arg1, arg2) {
2320
+ imports.wbg.__wbg_processapierror_24ca199886d1f2d7 = 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_05618a236639c923 = function(arg0, arg1, arg2) {
2323
+ imports.wbg.__wbg_sendinterfaceevent_d91c674d658a5ed7 = 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_dacc4162ea57c21d = function(arg0, arg1, arg2) {
2334
+ imports.wbg.__wbg_sendblocksuccess_33fbbf5e82ec047c = 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_1f89938445201dbd = function() {
2345
+ imports.wbg.__wbg_sendwalletupdate_5bbd32d8ca829e03 = function() {
2346
2346
  MsgHandler.send_wallet_update();
2347
2347
  };
2348
- imports.wbg.__wbg_sendnewversionalert_5a0d7b5ea3e83f68 = function(arg0, arg1, arg2) {
2348
+ imports.wbg.__wbg_sendnewversionalert_fdeae65b17d57a78 = 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_07805be96425622b = function() {
2359
+ imports.wbg.__wbg_savewallet_2b7ffc0ec69b725d = function() {
2360
2360
  MsgHandler.save_wallet();
2361
2361
  };
2362
- imports.wbg.__wbg_loadwallet_d4c96426978dfb6b = function() {
2362
+ imports.wbg.__wbg_loadwallet_5161ce756f3284cb = function() {
2363
2363
  MsgHandler.load_wallet();
2364
2364
  };
2365
- imports.wbg.__wbg_getmyservices_c3629da571b739bb = function() {
2365
+ imports.wbg.__wbg_getmyservices_c5bf043d6123d4fd = function() {
2366
2366
  const ret = MsgHandler.get_my_services();
2367
2367
  _assertClass(ret, WasmPeerServiceList);
2368
2368
  var ptr1 = ret.__destroy_into_raw();
@@ -2650,8 +2650,8 @@ function __wbg_get_imports() {
2650
2650
  const ret = wasm.memory;
2651
2651
  return addHeapObject(ret);
2652
2652
  };
2653
- imports.wbg.__wbindgen_closure_wrapper1166 = function(arg0, arg1, arg2) {
2654
- const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_40);
2653
+ imports.wbg.__wbindgen_closure_wrapper1165 = function(arg0, arg1, arg2) {
2654
+ const ret = makeMutClosure(arg0, arg1, 427, __wbg_adapter_40);
2655
2655
  return addHeapObject(ret);
2656
2656
  };
2657
2657
 
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -12,7 +12,7 @@
12
12
  "./snippets/*"
13
13
  ],
14
14
  "dependencies": {
15
- "node-fetch": "^3.3.0",
16
- "cross-env": "^7.0.3"
15
+ "cross-env": "^7.0.3",
16
+ "node-fetch": "^3.3.0"
17
17
  }
18
18
  }