saito-wasm 0.1.28 → 0.1.30

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.28"
3
+ version = "0.1.30"
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.28",
3
+ "version": "0.1.30",
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,8 +1,8 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-1641dc6173601324/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-4d721863d51556f2/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
@@ -33,7 +33,9 @@ function addHeapObject(obj) {
33
33
  return idx;
34
34
  }
35
35
 
36
- let WASM_VECTOR_LEN = 0;
36
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
+
38
+ cachedTextDecoder.decode();
37
39
 
38
40
  let cachedUint8Memory0 = null;
39
41
 
@@ -44,6 +46,13 @@ function getUint8Memory0() {
44
46
  return cachedUint8Memory0;
45
47
  }
46
48
 
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
+
47
56
  let cachedTextEncoder = new TextEncoder('utf-8');
48
57
 
49
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -110,15 +119,6 @@ function getInt32Memory0() {
110
119
  return cachedInt32Memory0;
111
120
  }
112
121
 
113
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
114
-
115
- cachedTextDecoder.decode();
116
-
117
- function getStringFromWasm0(ptr, len) {
118
- ptr = ptr >>> 0;
119
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
120
- }
121
-
122
122
  let cachedFloat64Memory0 = null;
123
123
 
124
124
  function getFloat64Memory0() {
@@ -2155,18 +2155,9 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2155
2155
  return addHeapObject(ret);
2156
2156
  };
2157
2157
 
2158
- module.exports.__wbindgen_is_falsy = function(arg0) {
2159
- const ret = !getObject(arg0);
2160
- return ret;
2161
- };
2162
-
2163
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2164
- const obj = getObject(arg1);
2165
- const ret = typeof(obj) === 'string' ? obj : undefined;
2166
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2167
- var len1 = WASM_VECTOR_LEN;
2168
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2169
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2158
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2159
+ const ret = getStringFromWasm0(arg0, arg1);
2160
+ return addHeapObject(ret);
2170
2161
  };
2171
2162
 
2172
2163
  module.exports.__wbg_wasmtransaction_new = function(arg0) {
@@ -2174,11 +2165,6 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2174
2165
  return addHeapObject(ret);
2175
2166
  };
2176
2167
 
2177
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2178
- const ret = getStringFromWasm0(arg0, arg1);
2179
- return addHeapObject(ret);
2180
- };
2181
-
2182
2168
  module.exports.__wbg_wasmblock_new = function(arg0) {
2183
2169
  const ret = WasmBlock.__wrap(arg0);
2184
2170
  return addHeapObject(ret);
@@ -2194,13 +2180,13 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2194
2180
  return addHeapObject(ret);
2195
2181
  };
2196
2182
 
2197
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2198
- const ret = WasmWallet.__wrap(arg0);
2183
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2184
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2199
2185
  return addHeapObject(ret);
2200
2186
  };
2201
2187
 
2202
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2203
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2188
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2189
+ const ret = WasmWallet.__wrap(arg0);
2204
2190
  return addHeapObject(ret);
2205
2191
  };
2206
2192
 
@@ -2209,6 +2195,20 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2209
2195
  return addHeapObject(ret);
2210
2196
  };
2211
2197
 
2198
+ module.exports.__wbindgen_is_falsy = function(arg0) {
2199
+ const ret = !getObject(arg0);
2200
+ return ret;
2201
+ };
2202
+
2203
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2204
+ const obj = getObject(arg1);
2205
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2206
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2207
+ var len1 = WASM_VECTOR_LEN;
2208
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2209
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2210
+ };
2211
+
2212
2212
  module.exports.__wbg_wasmslip_new = function(arg0) {
2213
2213
  const ret = WasmSlip.__wrap(arg0);
2214
2214
  return addHeapObject(ret);
@@ -2255,25 +2255,25 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2255
2255
  return addHeapObject(ret);
2256
2256
  };
2257
2257
 
2258
- module.exports.__wbg_sendmessage_d3588ca715e40945 = function(arg0, arg1) {
2258
+ module.exports.__wbg_sendmessage_c0449d2c20c956ba = function(arg0, arg1) {
2259
2259
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2260
2260
  };
2261
2261
 
2262
- module.exports.__wbg_sendmessagetoall_be16d654c05a466f = function(arg0, arg1) {
2262
+ module.exports.__wbg_sendmessagetoall_3f8b069a7a88089c = function(arg0, arg1) {
2263
2263
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2264
2264
  };
2265
2265
 
2266
- module.exports.__wbg_connecttopeer_0960470381d302af = function() { return handleError(function (arg0) {
2266
+ module.exports.__wbg_connecttopeer_7f371c6e5b02e03a = function() { return handleError(function (arg0) {
2267
2267
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2268
2268
  return addHeapObject(ret);
2269
2269
  }, arguments) };
2270
2270
 
2271
- module.exports.__wbg_disconnectfrompeer_a78a478764a788fd = function() { return handleError(function (arg0) {
2271
+ module.exports.__wbg_disconnectfrompeer_c39dfe23c3d5c120 = function() { return handleError(function (arg0) {
2272
2272
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2273
2273
  return addHeapObject(ret);
2274
2274
  }, arguments) };
2275
2275
 
2276
- module.exports.__wbg_fetchblockfrompeer_3ca67d8e800e6a8b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2276
+ module.exports.__wbg_fetchblockfrompeer_4d821f1c0f31695c = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2277
2277
  let deferred0_0;
2278
2278
  let deferred0_1;
2279
2279
  try {
@@ -2286,7 +2286,7 @@ module.exports.__wbg_fetchblockfrompeer_3ca67d8e800e6a8b = function() { return h
2286
2286
  }
2287
2287
  }, arguments) };
2288
2288
 
2289
- module.exports.__wbg_writevalue_b5db9b2b7dc0c27f = function(arg0, arg1, arg2) {
2289
+ module.exports.__wbg_writevalue_af190ad0e9a4964b = function(arg0, arg1, arg2) {
2290
2290
  let deferred0_0;
2291
2291
  let deferred0_1;
2292
2292
  try {
@@ -2298,7 +2298,7 @@ module.exports.__wbg_writevalue_b5db9b2b7dc0c27f = function(arg0, arg1, arg2) {
2298
2298
  }
2299
2299
  };
2300
2300
 
2301
- module.exports.__wbg_readvalue_723f2c6e1b8c46fd = function() { return handleError(function (arg0, arg1) {
2301
+ module.exports.__wbg_readvalue_7435c5af1ad610dc = function() { return handleError(function (arg0, arg1) {
2302
2302
  let deferred0_0;
2303
2303
  let deferred0_1;
2304
2304
  try {
@@ -2311,12 +2311,12 @@ module.exports.__wbg_readvalue_723f2c6e1b8c46fd = function() { return handleErro
2311
2311
  }
2312
2312
  }, arguments) };
2313
2313
 
2314
- module.exports.__wbg_loadblockfilelist_a858788dae233165 = function() { return handleError(function () {
2314
+ module.exports.__wbg_loadblockfilelist_cbc25ff85cba7101 = function() { return handleError(function () {
2315
2315
  const ret = MsgHandler.load_block_file_list();
2316
2316
  return addHeapObject(ret);
2317
2317
  }, arguments) };
2318
2318
 
2319
- module.exports.__wbg_isexistingfile_1b942ea7223e7797 = function() { return handleError(function (arg0, arg1) {
2319
+ module.exports.__wbg_isexistingfile_02b40ce4a7cf5e4b = function() { return handleError(function (arg0, arg1) {
2320
2320
  let deferred0_0;
2321
2321
  let deferred0_1;
2322
2322
  try {
@@ -2329,7 +2329,7 @@ module.exports.__wbg_isexistingfile_1b942ea7223e7797 = function() { return handl
2329
2329
  }
2330
2330
  }, arguments) };
2331
2331
 
2332
- module.exports.__wbg_removevalue_25e74c4f2ea738ad = function() { return handleError(function (arg0, arg1) {
2332
+ module.exports.__wbg_removevalue_9cec82549ccfb4ec = function() { return handleError(function (arg0, arg1) {
2333
2333
  let deferred0_0;
2334
2334
  let deferred0_1;
2335
2335
  try {
@@ -2342,19 +2342,19 @@ module.exports.__wbg_removevalue_25e74c4f2ea738ad = function() { return handleEr
2342
2342
  }
2343
2343
  }, arguments) };
2344
2344
 
2345
- module.exports.__wbg_processapicall_0025f5712d7bdc3d = function(arg0, arg1, arg2) {
2345
+ module.exports.__wbg_processapicall_6102b14e8bd11d9a = function(arg0, arg1, arg2) {
2346
2346
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2347
2347
  };
2348
2348
 
2349
- module.exports.__wbg_processapisuccess_d8dfd9c99928d483 = function(arg0, arg1, arg2) {
2349
+ module.exports.__wbg_processapisuccess_36d10ca97b4c18db = function(arg0, arg1, arg2) {
2350
2350
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2351
2351
  };
2352
2352
 
2353
- module.exports.__wbg_processapierror_8ba761a4505acb3b = function(arg0, arg1, arg2) {
2353
+ module.exports.__wbg_processapierror_57fad4c60a785f5f = function(arg0, arg1, arg2) {
2354
2354
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2355
2355
  };
2356
2356
 
2357
- module.exports.__wbg_sendinterfaceevent_f9f5eeb1a3f09e04 = function(arg0, arg1, arg2) {
2357
+ module.exports.__wbg_sendinterfaceevent_ac42b70ba7f7b312 = function(arg0, arg1, arg2) {
2358
2358
  let deferred0_0;
2359
2359
  let deferred0_1;
2360
2360
  try {
@@ -2366,7 +2366,7 @@ module.exports.__wbg_sendinterfaceevent_f9f5eeb1a3f09e04 = function(arg0, arg1,
2366
2366
  }
2367
2367
  };
2368
2368
 
2369
- module.exports.__wbg_sendblocksuccess_135740b991bed9fd = function(arg0, arg1, arg2) {
2369
+ module.exports.__wbg_sendblocksuccess_cc0865040e49d3dc = function(arg0, arg1, arg2) {
2370
2370
  let deferred0_0;
2371
2371
  let deferred0_1;
2372
2372
  try {
@@ -2378,11 +2378,11 @@ module.exports.__wbg_sendblocksuccess_135740b991bed9fd = function(arg0, arg1, ar
2378
2378
  }
2379
2379
  };
2380
2380
 
2381
- module.exports.__wbg_sendwalletupdate_34bb65295bad23f6 = function() {
2381
+ module.exports.__wbg_sendwalletupdate_cb0e11da5d05cc9b = function() {
2382
2382
  MsgHandler.send_wallet_update();
2383
2383
  };
2384
2384
 
2385
- module.exports.__wbg_sendnewversionalert_8fcc9868dbc06f69 = function(arg0, arg1, arg2) {
2385
+ module.exports.__wbg_sendnewversionalert_9b97f55f5db8335d = function(arg0, arg1, arg2) {
2386
2386
  let deferred0_0;
2387
2387
  let deferred0_1;
2388
2388
  try {
@@ -2394,15 +2394,15 @@ module.exports.__wbg_sendnewversionalert_8fcc9868dbc06f69 = function(arg0, arg1,
2394
2394
  }
2395
2395
  };
2396
2396
 
2397
- module.exports.__wbg_savewallet_86003446864bba2f = function() {
2397
+ module.exports.__wbg_savewallet_a882a47cb2c15eec = function() {
2398
2398
  MsgHandler.save_wallet();
2399
2399
  };
2400
2400
 
2401
- module.exports.__wbg_loadwallet_fd5ff7c692760d39 = function() {
2401
+ module.exports.__wbg_loadwallet_85a7defe00a6d5ce = function() {
2402
2402
  MsgHandler.load_wallet();
2403
2403
  };
2404
2404
 
2405
- module.exports.__wbg_getmyservices_5a28b088381241de = function() {
2405
+ module.exports.__wbg_getmyservices_aa5851d74f4bc6d7 = function() {
2406
2406
  const ret = MsgHandler.get_my_services();
2407
2407
  _assertClass(ret, WasmPeerServiceList);
2408
2408
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
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-1641dc6173601324/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-4d721863d51556f2/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -31,7 +31,9 @@ function addHeapObject(obj) {
31
31
  return idx;
32
32
  }
33
33
 
34
- let WASM_VECTOR_LEN = 0;
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(); };
35
37
 
36
38
  let cachedUint8Memory0 = null;
37
39
 
@@ -42,6 +44,13 @@ function getUint8Memory0() {
42
44
  return cachedUint8Memory0;
43
45
  }
44
46
 
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
+
45
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
46
55
 
47
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -108,15 +117,6 @@ function getInt32Memory0() {
108
117
  return cachedInt32Memory0;
109
118
  }
110
119
 
111
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
112
-
113
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
114
-
115
- function getStringFromWasm0(ptr, len) {
116
- ptr = ptr >>> 0;
117
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
118
- }
119
-
120
120
  let cachedFloat64Memory0 = null;
121
121
 
122
122
  function getFloat64Memory0() {
@@ -2203,26 +2203,14 @@ function __wbg_get_imports() {
2203
2203
  const ret = BigInt.asUintN(64, arg0);
2204
2204
  return addHeapObject(ret);
2205
2205
  };
2206
- imports.wbg.__wbindgen_is_falsy = function(arg0) {
2207
- const ret = !getObject(arg0);
2208
- return ret;
2209
- };
2210
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2211
- const obj = getObject(arg1);
2212
- const ret = typeof(obj) === 'string' ? obj : undefined;
2213
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2214
- var len1 = WASM_VECTOR_LEN;
2215
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2216
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2206
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2207
+ const ret = getStringFromWasm0(arg0, arg1);
2208
+ return addHeapObject(ret);
2217
2209
  };
2218
2210
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2219
2211
  const ret = WasmTransaction.__wrap(arg0);
2220
2212
  return addHeapObject(ret);
2221
2213
  };
2222
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2223
- const ret = getStringFromWasm0(arg0, arg1);
2224
- return addHeapObject(ret);
2225
- };
2226
2214
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2227
2215
  const ret = WasmBlock.__wrap(arg0);
2228
2216
  return addHeapObject(ret);
@@ -2235,18 +2223,30 @@ function __wbg_get_imports() {
2235
2223
  const ret = WasmPeer.__wrap(arg0);
2236
2224
  return addHeapObject(ret);
2237
2225
  };
2238
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2239
- const ret = WasmWallet.__wrap(arg0);
2240
- return addHeapObject(ret);
2241
- };
2242
2226
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2243
2227
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2244
2228
  return addHeapObject(ret);
2245
2229
  };
2230
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2231
+ const ret = WasmWallet.__wrap(arg0);
2232
+ return addHeapObject(ret);
2233
+ };
2246
2234
  imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2247
2235
  const ret = WasmWalletSlip.__wrap(arg0);
2248
2236
  return addHeapObject(ret);
2249
2237
  };
2238
+ imports.wbg.__wbindgen_is_falsy = function(arg0) {
2239
+ const ret = !getObject(arg0);
2240
+ return ret;
2241
+ };
2242
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2243
+ const obj = getObject(arg1);
2244
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2245
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2246
+ var len1 = WASM_VECTOR_LEN;
2247
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2248
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2249
+ };
2250
2250
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2251
2251
  const ret = WasmSlip.__wrap(arg0);
2252
2252
  return addHeapObject(ret);
@@ -2284,21 +2284,21 @@ function __wbg_get_imports() {
2284
2284
  const ret = WasmPeerService.__wrap(arg0);
2285
2285
  return addHeapObject(ret);
2286
2286
  };
2287
- imports.wbg.__wbg_sendmessage_d3588ca715e40945 = function(arg0, arg1) {
2287
+ imports.wbg.__wbg_sendmessage_c0449d2c20c956ba = function(arg0, arg1) {
2288
2288
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2289
2289
  };
2290
- imports.wbg.__wbg_sendmessagetoall_be16d654c05a466f = function(arg0, arg1) {
2290
+ imports.wbg.__wbg_sendmessagetoall_3f8b069a7a88089c = function(arg0, arg1) {
2291
2291
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2292
2292
  };
2293
- imports.wbg.__wbg_connecttopeer_0960470381d302af = function() { return handleError(function (arg0) {
2293
+ imports.wbg.__wbg_connecttopeer_7f371c6e5b02e03a = function() { return handleError(function (arg0) {
2294
2294
  const ret = MsgHandler.connect_to_peer(takeObject(arg0));
2295
2295
  return addHeapObject(ret);
2296
2296
  }, arguments) };
2297
- imports.wbg.__wbg_disconnectfrompeer_a78a478764a788fd = function() { return handleError(function (arg0) {
2297
+ imports.wbg.__wbg_disconnectfrompeer_c39dfe23c3d5c120 = function() { return handleError(function (arg0) {
2298
2298
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2299
2299
  return addHeapObject(ret);
2300
2300
  }, arguments) };
2301
- imports.wbg.__wbg_fetchblockfrompeer_3ca67d8e800e6a8b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2301
+ imports.wbg.__wbg_fetchblockfrompeer_4d821f1c0f31695c = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2302
2302
  let deferred0_0;
2303
2303
  let deferred0_1;
2304
2304
  try {
@@ -2310,7 +2310,7 @@ function __wbg_get_imports() {
2310
2310
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2311
2311
  }
2312
2312
  }, arguments) };
2313
- imports.wbg.__wbg_writevalue_b5db9b2b7dc0c27f = function(arg0, arg1, arg2) {
2313
+ imports.wbg.__wbg_writevalue_af190ad0e9a4964b = function(arg0, arg1, arg2) {
2314
2314
  let deferred0_0;
2315
2315
  let deferred0_1;
2316
2316
  try {
@@ -2321,7 +2321,7 @@ function __wbg_get_imports() {
2321
2321
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2322
2322
  }
2323
2323
  };
2324
- imports.wbg.__wbg_readvalue_723f2c6e1b8c46fd = function() { return handleError(function (arg0, arg1) {
2324
+ imports.wbg.__wbg_readvalue_7435c5af1ad610dc = function() { return handleError(function (arg0, arg1) {
2325
2325
  let deferred0_0;
2326
2326
  let deferred0_1;
2327
2327
  try {
@@ -2333,11 +2333,11 @@ function __wbg_get_imports() {
2333
2333
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2334
2334
  }
2335
2335
  }, arguments) };
2336
- imports.wbg.__wbg_loadblockfilelist_a858788dae233165 = function() { return handleError(function () {
2336
+ imports.wbg.__wbg_loadblockfilelist_cbc25ff85cba7101 = function() { return handleError(function () {
2337
2337
  const ret = MsgHandler.load_block_file_list();
2338
2338
  return addHeapObject(ret);
2339
2339
  }, arguments) };
2340
- imports.wbg.__wbg_isexistingfile_1b942ea7223e7797 = function() { return handleError(function (arg0, arg1) {
2340
+ imports.wbg.__wbg_isexistingfile_02b40ce4a7cf5e4b = function() { return handleError(function (arg0, arg1) {
2341
2341
  let deferred0_0;
2342
2342
  let deferred0_1;
2343
2343
  try {
@@ -2349,7 +2349,7 @@ function __wbg_get_imports() {
2349
2349
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2350
2350
  }
2351
2351
  }, arguments) };
2352
- imports.wbg.__wbg_removevalue_25e74c4f2ea738ad = function() { return handleError(function (arg0, arg1) {
2352
+ imports.wbg.__wbg_removevalue_9cec82549ccfb4ec = function() { return handleError(function (arg0, arg1) {
2353
2353
  let deferred0_0;
2354
2354
  let deferred0_1;
2355
2355
  try {
@@ -2361,16 +2361,16 @@ function __wbg_get_imports() {
2361
2361
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2362
2362
  }
2363
2363
  }, arguments) };
2364
- imports.wbg.__wbg_processapicall_0025f5712d7bdc3d = function(arg0, arg1, arg2) {
2364
+ imports.wbg.__wbg_processapicall_6102b14e8bd11d9a = function(arg0, arg1, arg2) {
2365
2365
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2366
2366
  };
2367
- imports.wbg.__wbg_processapisuccess_d8dfd9c99928d483 = function(arg0, arg1, arg2) {
2367
+ imports.wbg.__wbg_processapisuccess_36d10ca97b4c18db = function(arg0, arg1, arg2) {
2368
2368
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2369
2369
  };
2370
- imports.wbg.__wbg_processapierror_8ba761a4505acb3b = function(arg0, arg1, arg2) {
2370
+ imports.wbg.__wbg_processapierror_57fad4c60a785f5f = function(arg0, arg1, arg2) {
2371
2371
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2372
2372
  };
2373
- imports.wbg.__wbg_sendinterfaceevent_f9f5eeb1a3f09e04 = function(arg0, arg1, arg2) {
2373
+ imports.wbg.__wbg_sendinterfaceevent_ac42b70ba7f7b312 = function(arg0, arg1, arg2) {
2374
2374
  let deferred0_0;
2375
2375
  let deferred0_1;
2376
2376
  try {
@@ -2381,7 +2381,7 @@ function __wbg_get_imports() {
2381
2381
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2382
2382
  }
2383
2383
  };
2384
- imports.wbg.__wbg_sendblocksuccess_135740b991bed9fd = function(arg0, arg1, arg2) {
2384
+ imports.wbg.__wbg_sendblocksuccess_cc0865040e49d3dc = function(arg0, arg1, arg2) {
2385
2385
  let deferred0_0;
2386
2386
  let deferred0_1;
2387
2387
  try {
@@ -2392,10 +2392,10 @@ function __wbg_get_imports() {
2392
2392
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2393
2393
  }
2394
2394
  };
2395
- imports.wbg.__wbg_sendwalletupdate_34bb65295bad23f6 = function() {
2395
+ imports.wbg.__wbg_sendwalletupdate_cb0e11da5d05cc9b = function() {
2396
2396
  MsgHandler.send_wallet_update();
2397
2397
  };
2398
- imports.wbg.__wbg_sendnewversionalert_8fcc9868dbc06f69 = function(arg0, arg1, arg2) {
2398
+ imports.wbg.__wbg_sendnewversionalert_9b97f55f5db8335d = function(arg0, arg1, arg2) {
2399
2399
  let deferred0_0;
2400
2400
  let deferred0_1;
2401
2401
  try {
@@ -2406,13 +2406,13 @@ function __wbg_get_imports() {
2406
2406
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2407
2407
  }
2408
2408
  };
2409
- imports.wbg.__wbg_savewallet_86003446864bba2f = function() {
2409
+ imports.wbg.__wbg_savewallet_a882a47cb2c15eec = function() {
2410
2410
  MsgHandler.save_wallet();
2411
2411
  };
2412
- imports.wbg.__wbg_loadwallet_fd5ff7c692760d39 = function() {
2412
+ imports.wbg.__wbg_loadwallet_85a7defe00a6d5ce = function() {
2413
2413
  MsgHandler.load_wallet();
2414
2414
  };
2415
- imports.wbg.__wbg_getmyservices_5a28b088381241de = function() {
2415
+ imports.wbg.__wbg_getmyservices_aa5851d74f4bc6d7 = function() {
2416
2416
  const ret = MsgHandler.get_my_services();
2417
2417
  _assertClass(ret, WasmPeerServiceList);
2418
2418
  var ptr1 = ret.__destroy_into_raw();
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
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
  }