saito-wasm 0.2.3 → 0.2.4

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.3"
3
+ version = "0.2.4"
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.3",
3
+ "version": "0.2.4",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -588,9 +588,10 @@ export class WasmTransaction {
588
588
  */
589
589
  is_to(key: string): boolean;
590
590
  /**
591
+ * @param {string} private_key
591
592
  * @returns {Promise<void>}
592
593
  */
593
- sign(): Promise<void>;
594
+ sign(private_key: string): Promise<void>;
594
595
  /**
595
596
  * @returns {Uint8Array}
596
597
  */
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-d09df772ee8ec91d/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-a07e1fafe917b5c6/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');
@@ -225,15 +225,9 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_38(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h91828cc62290f99f(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfdf4cfd2e1cdf82f(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
- function _assertClass(instance, klass) {
232
- if (!(instance instanceof klass)) {
233
- throw new Error(`expected instance of ${klass.name}`);
234
- }
235
- return instance.ptr;
236
- }
237
231
  /**
238
232
  * @param {string} json
239
233
  * @param {string} private_key
@@ -440,6 +434,12 @@ module.exports.get_balance_snapshot = function(keys) {
440
434
  return takeObject(ret);
441
435
  };
442
436
 
437
+ function _assertClass(instance, klass) {
438
+ if (!(instance instanceof klass)) {
439
+ throw new Error(`expected instance of ${klass.name}`);
440
+ }
441
+ return instance.ptr;
442
+ }
443
443
  /**
444
444
  * @param {WasmBalanceSnapshot} snapshot
445
445
  * @returns {Promise<void>}
@@ -582,8 +582,8 @@ function handleError(f, args) {
582
582
  wasm.__wbindgen_exn_store(addHeapObject(e));
583
583
  }
584
584
  }
585
- function __wbg_adapter_372(arg0, arg1, arg2, arg3) {
586
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h159099ca72b28043(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
585
+ function __wbg_adapter_374(arg0, arg1, arg2, arg3) {
586
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h633d734e7d6d6514(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
587
587
  }
588
588
 
589
589
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1856,10 +1856,11 @@ class WasmTransaction {
1856
1856
  wasm.wasmtransaction_set_timestamp(this.__wbg_ptr, timestamp);
1857
1857
  }
1858
1858
  /**
1859
+ * @param {string} private_key
1859
1860
  * @returns {Promise<void>}
1860
1861
  */
1861
- sign() {
1862
- const ret = wasm.wasmtransaction_sign(this.__wbg_ptr);
1862
+ sign(private_key) {
1863
+ const ret = wasm.wasmtransaction_sign(this.__wbg_ptr, addHeapObject(private_key));
1863
1864
  return takeObject(ret);
1864
1865
  }
1865
1866
  /**
@@ -2067,7 +2068,7 @@ class WasmWalletSlip {
2067
2068
  * @returns {string}
2068
2069
  */
2069
2070
  get_utxokey() {
2070
- const ret = wasm.wasmwalletslip_get_utxokey(this.__wbg_ptr);
2071
+ const ret = wasm.wasmslip_utxo_key(this.__wbg_ptr);
2071
2072
  return takeObject(ret);
2072
2073
  }
2073
2074
  /**
@@ -2080,40 +2081,40 @@ class WasmWalletSlip {
2080
2081
  * @returns {bigint}
2081
2082
  */
2082
2083
  get_amount() {
2083
- const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
2084
+ const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2084
2085
  return BigInt.asUintN(64, ret);
2085
2086
  }
2086
2087
  /**
2087
2088
  * @param {bigint} amount
2088
2089
  */
2089
2090
  set_amount(amount) {
2090
- wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2091
+ wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2091
2092
  }
2092
2093
  /**
2093
2094
  * @returns {bigint}
2094
2095
  */
2095
2096
  get_block_id() {
2096
- const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2097
+ const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2097
2098
  return BigInt.asUintN(64, ret);
2098
2099
  }
2099
2100
  /**
2100
2101
  * @param {bigint} block_id
2101
2102
  */
2102
2103
  set_block_id(block_id) {
2103
- wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2104
+ wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2104
2105
  }
2105
2106
  /**
2106
2107
  * @returns {bigint}
2107
2108
  */
2108
2109
  get_tx_ordinal() {
2109
- const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2110
+ const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2110
2111
  return BigInt.asUintN(64, ret);
2111
2112
  }
2112
2113
  /**
2113
2114
  * @param {bigint} ordinal
2114
2115
  */
2115
2116
  set_tx_ordinal(ordinal) {
2116
- wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2117
+ wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2117
2118
  }
2118
2119
  /**
2119
2120
  * @returns {number}
@@ -2164,8 +2165,8 @@ class WasmWalletSlip {
2164
2165
  }
2165
2166
  module.exports.WasmWalletSlip = WasmWalletSlip;
2166
2167
 
2167
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2168
- const ret = WasmBlockchain.__wrap(arg0);
2168
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2169
+ const ret = getStringFromWasm0(arg0, arg1);
2169
2170
  return addHeapObject(ret);
2170
2171
  };
2171
2172
 
@@ -2173,28 +2174,23 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2173
2174
  takeObject(arg0);
2174
2175
  };
2175
2176
 
2176
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2177
- const ret = getStringFromWasm0(arg0, arg1);
2178
- return addHeapObject(ret);
2179
- };
2180
-
2181
2177
  module.exports.__wbg_wasmblock_new = function(arg0) {
2182
2178
  const ret = WasmBlock.__wrap(arg0);
2183
2179
  return addHeapObject(ret);
2184
2180
  };
2185
2181
 
2186
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2187
- const ret = BigInt.asUintN(64, arg0);
2182
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2183
+ const ret = WasmTransaction.__wrap(arg0);
2188
2184
  return addHeapObject(ret);
2189
2185
  };
2190
2186
 
2191
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2192
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2187
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2188
+ const ret = BigInt.asUintN(64, arg0);
2193
2189
  return addHeapObject(ret);
2194
2190
  };
2195
2191
 
2196
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2197
- const ret = WasmWallet.__wrap(arg0);
2192
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2193
+ const ret = WasmBlockchain.__wrap(arg0);
2198
2194
  return addHeapObject(ret);
2199
2195
  };
2200
2196
 
@@ -2203,8 +2199,8 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2203
2199
  return addHeapObject(ret);
2204
2200
  };
2205
2201
 
2206
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2207
- const ret = WasmTransaction.__wrap(arg0);
2202
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2203
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2208
2204
  return addHeapObject(ret);
2209
2205
  };
2210
2206
 
@@ -2218,6 +2214,11 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2218
2214
  return addHeapObject(ret);
2219
2215
  };
2220
2216
 
2217
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2218
+ const ret = WasmWallet.__wrap(arg0);
2219
+ return addHeapObject(ret);
2220
+ };
2221
+
2221
2222
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
2222
2223
  const obj = getObject(arg1);
2223
2224
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2227,8 +2228,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2227
2228
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2228
2229
  };
2229
2230
 
2230
- module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
2231
- const ret = WasmConsensusValues.__wrap(arg0);
2231
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2232
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2232
2233
  return addHeapObject(ret);
2233
2234
  };
2234
2235
 
@@ -2237,8 +2238,8 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
2237
2238
  return addHeapObject(ret);
2238
2239
  };
2239
2240
 
2240
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2241
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2241
+ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
2242
+ const ret = WasmConsensusValues.__wrap(arg0);
2242
2243
  return addHeapObject(ret);
2243
2244
  };
2244
2245
 
@@ -2247,31 +2248,15 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2247
2248
  return addHeapObject(ret);
2248
2249
  };
2249
2250
 
2250
- module.exports.__wbindgen_is_object = function(arg0) {
2251
- const val = getObject(arg0);
2252
- const ret = typeof(val) === 'object' && val !== null;
2253
- return ret;
2254
- };
2255
-
2256
- module.exports.__wbindgen_is_undefined = function(arg0) {
2257
- const ret = getObject(arg0) === undefined;
2258
- return ret;
2259
- };
2260
-
2261
- module.exports.__wbindgen_in = function(arg0, arg1) {
2262
- const ret = getObject(arg0) in getObject(arg1);
2263
- return ret;
2264
- };
2265
-
2266
- module.exports.__wbg_sendmessage_0b1a52b2c520071e = function(arg0, arg1) {
2251
+ module.exports.__wbg_sendmessage_111cd294d0a1ba24 = function(arg0, arg1) {
2267
2252
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2268
2253
  };
2269
2254
 
2270
- module.exports.__wbg_sendmessagetoall_b797f4c64a53d1cc = function(arg0, arg1) {
2255
+ module.exports.__wbg_sendmessagetoall_099731cb25195ffa = function(arg0, arg1) {
2271
2256
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2272
2257
  };
2273
2258
 
2274
- module.exports.__wbg_connecttopeer_f4305c605f1dc764 = function() { return handleError(function (arg0, arg1, arg2) {
2259
+ module.exports.__wbg_connecttopeer_34eab1844d61a5c0 = function() { return handleError(function (arg0, arg1, arg2) {
2275
2260
  let deferred0_0;
2276
2261
  let deferred0_1;
2277
2262
  try {
@@ -2284,12 +2269,12 @@ module.exports.__wbg_connecttopeer_f4305c605f1dc764 = function() { return handle
2284
2269
  }
2285
2270
  }, arguments) };
2286
2271
 
2287
- module.exports.__wbg_disconnectfrompeer_522caa9628a9991a = function() { return handleError(function (arg0) {
2272
+ module.exports.__wbg_disconnectfrompeer_08a68134af793703 = function() { return handleError(function (arg0) {
2288
2273
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2289
2274
  return addHeapObject(ret);
2290
2275
  }, arguments) };
2291
2276
 
2292
- module.exports.__wbg_fetchblockfrompeer_86f6a39b690bea3e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2277
+ module.exports.__wbg_fetchblockfrompeer_7130e7753ae6e06c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2293
2278
  let deferred0_0;
2294
2279
  let deferred0_1;
2295
2280
  try {
@@ -2302,7 +2287,7 @@ module.exports.__wbg_fetchblockfrompeer_86f6a39b690bea3e = function() { return h
2302
2287
  }
2303
2288
  }, arguments) };
2304
2289
 
2305
- module.exports.__wbg_writevalue_0a1c55d620d8482b = function(arg0, arg1, arg2) {
2290
+ module.exports.__wbg_writevalue_911fb41ea9729264 = function(arg0, arg1, arg2) {
2306
2291
  let deferred0_0;
2307
2292
  let deferred0_1;
2308
2293
  try {
@@ -2314,7 +2299,7 @@ module.exports.__wbg_writevalue_0a1c55d620d8482b = function(arg0, arg1, arg2) {
2314
2299
  }
2315
2300
  };
2316
2301
 
2317
- module.exports.__wbg_appendvalue_955e2680e0158308 = function(arg0, arg1, arg2) {
2302
+ module.exports.__wbg_appendvalue_5c921467f4ba535e = function(arg0, arg1, arg2) {
2318
2303
  let deferred0_0;
2319
2304
  let deferred0_1;
2320
2305
  try {
@@ -2326,7 +2311,7 @@ module.exports.__wbg_appendvalue_955e2680e0158308 = function(arg0, arg1, arg2) {
2326
2311
  }
2327
2312
  };
2328
2313
 
2329
- module.exports.__wbg_flushdata_1ff65703868693dc = function(arg0, arg1) {
2314
+ module.exports.__wbg_flushdata_69c2b56988946a06 = function(arg0, arg1) {
2330
2315
  let deferred0_0;
2331
2316
  let deferred0_1;
2332
2317
  try {
@@ -2338,7 +2323,7 @@ module.exports.__wbg_flushdata_1ff65703868693dc = function(arg0, arg1) {
2338
2323
  }
2339
2324
  };
2340
2325
 
2341
- module.exports.__wbg_readvalue_6326726e74830b6a = function() { return handleError(function (arg0, arg1) {
2326
+ module.exports.__wbg_readvalue_a0ef58f234498dc1 = function() { return handleError(function (arg0, arg1) {
2342
2327
  let deferred0_0;
2343
2328
  let deferred0_1;
2344
2329
  try {
@@ -2351,12 +2336,12 @@ module.exports.__wbg_readvalue_6326726e74830b6a = function() { return handleErro
2351
2336
  }
2352
2337
  }, arguments) };
2353
2338
 
2354
- module.exports.__wbg_loadblockfilelist_e5b675fc0edd4599 = function() { return handleError(function () {
2339
+ module.exports.__wbg_loadblockfilelist_6deeaa1c5a65039b = function() { return handleError(function () {
2355
2340
  const ret = MsgHandler.load_block_file_list();
2356
2341
  return addHeapObject(ret);
2357
2342
  }, arguments) };
2358
2343
 
2359
- module.exports.__wbg_isexistingfile_fba8b8a121aaeef0 = function() { return handleError(function (arg0, arg1) {
2344
+ module.exports.__wbg_isexistingfile_dccfea43fa6c57a4 = function() { return handleError(function (arg0, arg1) {
2360
2345
  let deferred0_0;
2361
2346
  let deferred0_1;
2362
2347
  try {
@@ -2369,7 +2354,7 @@ module.exports.__wbg_isexistingfile_fba8b8a121aaeef0 = function() { return handl
2369
2354
  }
2370
2355
  }, arguments) };
2371
2356
 
2372
- module.exports.__wbg_removevalue_56600749b17e6328 = function() { return handleError(function (arg0, arg1) {
2357
+ module.exports.__wbg_removevalue_8d74a068d1ccffa9 = function() { return handleError(function (arg0, arg1) {
2373
2358
  let deferred0_0;
2374
2359
  let deferred0_1;
2375
2360
  try {
@@ -2382,7 +2367,7 @@ module.exports.__wbg_removevalue_56600749b17e6328 = function() { return handleEr
2382
2367
  }
2383
2368
  }, arguments) };
2384
2369
 
2385
- module.exports.__wbg_ensureblockdirectoryexists_87a785b73a8702f3 = function() { return handleError(function (arg0, arg1) {
2370
+ module.exports.__wbg_ensureblockdirectoryexists_79540c3dff4ee1cf = function() { return handleError(function (arg0, arg1) {
2386
2371
  let deferred0_0;
2387
2372
  let deferred0_1;
2388
2373
  try {
@@ -2394,19 +2379,19 @@ module.exports.__wbg_ensureblockdirectoryexists_87a785b73a8702f3 = function() {
2394
2379
  }
2395
2380
  }, arguments) };
2396
2381
 
2397
- module.exports.__wbg_processapicall_c82c1dddf4e93967 = function(arg0, arg1, arg2) {
2382
+ module.exports.__wbg_processapicall_5ad8351d24492723 = function(arg0, arg1, arg2) {
2398
2383
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2399
2384
  };
2400
2385
 
2401
- module.exports.__wbg_processapisuccess_d30583726df5dfe6 = function(arg0, arg1, arg2) {
2386
+ module.exports.__wbg_processapisuccess_eaca7c1703abc148 = function(arg0, arg1, arg2) {
2402
2387
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2403
2388
  };
2404
2389
 
2405
- module.exports.__wbg_processapierror_c9229b17fa98409d = function(arg0, arg1, arg2) {
2390
+ module.exports.__wbg_processapierror_148539df8cba6e1c = function(arg0, arg1, arg2) {
2406
2391
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2407
2392
  };
2408
2393
 
2409
- module.exports.__wbg_sendinterfaceevent_f0f27fa0a8ab4f5e = function(arg0, arg1, arg2) {
2394
+ module.exports.__wbg_sendinterfaceevent_c214ce9e2a672dd1 = function(arg0, arg1, arg2) {
2410
2395
  let deferred0_0;
2411
2396
  let deferred0_1;
2412
2397
  try {
@@ -2418,7 +2403,7 @@ module.exports.__wbg_sendinterfaceevent_f0f27fa0a8ab4f5e = function(arg0, arg1,
2418
2403
  }
2419
2404
  };
2420
2405
 
2421
- module.exports.__wbg_sendblocksuccess_78989949d7798214 = function(arg0, arg1, arg2) {
2406
+ module.exports.__wbg_sendblocksuccess_9628c887be151962 = function(arg0, arg1, arg2) {
2422
2407
  let deferred0_0;
2423
2408
  let deferred0_1;
2424
2409
  try {
@@ -2430,11 +2415,11 @@ module.exports.__wbg_sendblocksuccess_78989949d7798214 = function(arg0, arg1, ar
2430
2415
  }
2431
2416
  };
2432
2417
 
2433
- module.exports.__wbg_sendwalletupdate_283c9249aac46ba4 = function() {
2418
+ module.exports.__wbg_sendwalletupdate_8343add8492cdd78 = function() {
2434
2419
  MsgHandler.send_wallet_update();
2435
2420
  };
2436
2421
 
2437
- module.exports.__wbg_sendnewversionalert_8441287a3f324077 = function(arg0, arg1, arg2) {
2422
+ module.exports.__wbg_sendnewversionalert_97d88b033f29573c = function(arg0, arg1, arg2) {
2438
2423
  let deferred0_0;
2439
2424
  let deferred0_1;
2440
2425
  try {
@@ -2446,21 +2431,37 @@ module.exports.__wbg_sendnewversionalert_8441287a3f324077 = function(arg0, arg1,
2446
2431
  }
2447
2432
  };
2448
2433
 
2449
- module.exports.__wbg_savewallet_6b9d3a8d989302c3 = function() {
2434
+ module.exports.__wbg_savewallet_cd7d81c6ba423855 = function() {
2450
2435
  MsgHandler.save_wallet();
2451
2436
  };
2452
2437
 
2453
- module.exports.__wbg_loadwallet_5539e12e2a77ba36 = function() {
2438
+ module.exports.__wbg_loadwallet_1df5c65c3397d11c = function() {
2454
2439
  MsgHandler.load_wallet();
2455
2440
  };
2456
2441
 
2457
- module.exports.__wbg_getmyservices_cde79f92638e3743 = function() {
2442
+ module.exports.__wbg_getmyservices_f959eef99aa33bb1 = function() {
2458
2443
  const ret = MsgHandler.get_my_services();
2459
2444
  _assertClass(ret, WasmPeerServiceList);
2460
2445
  var ptr1 = ret.__destroy_into_raw();
2461
2446
  return ptr1;
2462
2447
  };
2463
2448
 
2449
+ module.exports.__wbindgen_is_object = function(arg0) {
2450
+ const val = getObject(arg0);
2451
+ const ret = typeof(val) === 'object' && val !== null;
2452
+ return ret;
2453
+ };
2454
+
2455
+ module.exports.__wbindgen_is_undefined = function(arg0) {
2456
+ const ret = getObject(arg0) === undefined;
2457
+ return ret;
2458
+ };
2459
+
2460
+ module.exports.__wbindgen_in = function(arg0, arg1) {
2461
+ const ret = getObject(arg0) in getObject(arg1);
2462
+ return ret;
2463
+ };
2464
+
2464
2465
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2465
2466
  const ret = getObject(arg0) == getObject(arg1);
2466
2467
  return ret;
@@ -2479,13 +2480,13 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
2479
2480
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
2480
2481
  };
2481
2482
 
2482
- module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
2483
- const ret = getObject(arg0)[getObject(arg1)];
2483
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2484
+ const ret = getObject(arg0);
2484
2485
  return addHeapObject(ret);
2485
2486
  };
2486
2487
 
2487
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2488
- const ret = getObject(arg0);
2488
+ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
2489
+ const ret = getObject(arg0)[getObject(arg1)];
2489
2490
  return addHeapObject(ret);
2490
2491
  };
2491
2492
 
@@ -2499,6 +2500,10 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2499
2500
  return ret;
2500
2501
  };
2501
2502
 
2503
+ module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2504
+ queueMicrotask(getObject(arg0));
2505
+ };
2506
+
2502
2507
  module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
2503
2508
  const ret = getObject(arg0).queueMicrotask;
2504
2509
  return addHeapObject(ret);
@@ -2509,10 +2514,6 @@ module.exports.__wbindgen_is_function = function(arg0) {
2509
2514
  return ret;
2510
2515
  };
2511
2516
 
2512
- module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2513
- queueMicrotask(getObject(arg0));
2514
- };
2515
-
2516
2517
  module.exports.__wbg_debug_7d879afce6cf56cb = function(arg0, arg1, arg2, arg3) {
2517
2518
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
2518
2519
  };
@@ -2636,6 +2637,11 @@ module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(fun
2636
2637
  return addHeapObject(ret);
2637
2638
  }, arguments) };
2638
2639
 
2640
+ module.exports.__wbg_length_dee433d4c85c9387 = function(arg0) {
2641
+ const ret = getObject(arg0).length;
2642
+ return ret;
2643
+ };
2644
+
2639
2645
  module.exports.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
2640
2646
  const ret = self.self;
2641
2647
  return addHeapObject(ret);
@@ -2708,7 +2714,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
2708
2714
  const a = state0.a;
2709
2715
  state0.a = 0;
2710
2716
  try {
2711
- return __wbg_adapter_372(a, state0.b, arg0, arg1);
2717
+ return __wbg_adapter_374(a, state0.b, arg0, arg1);
2712
2718
  } finally {
2713
2719
  state0.a = a;
2714
2720
  }
@@ -2806,8 +2812,8 @@ module.exports.__wbindgen_memory = function() {
2806
2812
  return addHeapObject(ret);
2807
2813
  };
2808
2814
 
2809
- module.exports.__wbindgen_closure_wrapper1266 = function(arg0, arg1, arg2) {
2810
- const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
2815
+ module.exports.__wbindgen_closure_wrapper1210 = function(arg0, arg1, arg2) {
2816
+ const ret = makeMutClosure(arg0, arg1, 456, __wbg_adapter_38);
2811
2817
  return addHeapObject(ret);
2812
2818
  };
2813
2819
 
Binary file