saito-wasm 0.2.2 → 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.2"
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.2",
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,33 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-36ef46c03e11a68e/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);
7
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
8
 
11
- function getObject(idx) { return heap[idx]; }
9
+ cachedTextDecoder.decode();
12
10
 
13
- let heap_next = heap.length;
11
+ let cachedUint8Memory0 = null;
14
12
 
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
13
+ function getUint8Memory0() {
14
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
15
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
16
+ }
17
+ return cachedUint8Memory0;
19
18
  }
20
19
 
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
20
+ function getStringFromWasm0(ptr, len) {
21
+ ptr = ptr >>> 0;
22
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
25
23
  }
26
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
+
27
31
  function addHeapObject(obj) {
28
32
  if (heap_next === heap.length) heap.push(heap.length + 1);
29
33
  const idx = heap_next;
@@ -33,22 +37,18 @@ function addHeapObject(obj) {
33
37
  return idx;
34
38
  }
35
39
 
36
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
-
38
- cachedTextDecoder.decode();
39
-
40
- let cachedUint8Memory0 = null;
40
+ function getObject(idx) { return heap[idx]; }
41
41
 
42
- function getUint8Memory0() {
43
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
44
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
45
- }
46
- return cachedUint8Memory0;
42
+ function dropObject(idx) {
43
+ if (idx < 132) return;
44
+ heap[idx] = heap_next;
45
+ heap_next = idx;
47
46
  }
48
47
 
49
- function getStringFromWasm0(ptr, len) {
50
- ptr = ptr >>> 0;
51
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
48
+ function takeObject(idx) {
49
+ const ret = getObject(idx);
50
+ dropObject(idx);
51
+ return ret;
52
52
  }
53
53
 
54
54
  let WASM_VECTOR_LEN = 0;
@@ -225,23 +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));
229
- }
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;
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfdf4cfd2e1cdf82f(arg0, arg1, addHeapObject(arg2));
236
229
  }
237
230
 
238
- function handleError(f, args) {
239
- try {
240
- return f.apply(this, args);
241
- } catch (e) {
242
- wasm.__wbindgen_exn_store(addHeapObject(e));
243
- }
244
- }
245
231
  /**
246
232
  * @param {string} json
247
233
  * @param {string} private_key
@@ -448,6 +434,12 @@ module.exports.get_balance_snapshot = function(keys) {
448
434
  return takeObject(ret);
449
435
  };
450
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
+ }
451
443
  /**
452
444
  * @param {WasmBalanceSnapshot} snapshot
453
445
  * @returns {Promise<void>}
@@ -583,8 +575,15 @@ module.exports.write_issuance_file = function(threshold) {
583
575
  return takeObject(ret);
584
576
  };
585
577
 
586
- function __wbg_adapter_372(arg0, arg1, arg2, arg3) {
587
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h159099ca72b28043(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
578
+ function handleError(f, args) {
579
+ try {
580
+ return f.apply(this, args);
581
+ } catch (e) {
582
+ wasm.__wbindgen_exn_store(addHeapObject(e));
583
+ }
584
+ }
585
+ function __wbg_adapter_374(arg0, arg1, arg2, arg3) {
586
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h633d734e7d6d6514(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
588
587
  }
589
588
 
590
589
  const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1857,10 +1856,11 @@ class WasmTransaction {
1857
1856
  wasm.wasmtransaction_set_timestamp(this.__wbg_ptr, timestamp);
1858
1857
  }
1859
1858
  /**
1859
+ * @param {string} private_key
1860
1860
  * @returns {Promise<void>}
1861
1861
  */
1862
- sign() {
1863
- const ret = wasm.wasmtransaction_sign(this.__wbg_ptr);
1862
+ sign(private_key) {
1863
+ const ret = wasm.wasmtransaction_sign(this.__wbg_ptr, addHeapObject(private_key));
1864
1864
  return takeObject(ret);
1865
1865
  }
1866
1866
  /**
@@ -2068,7 +2068,7 @@ class WasmWalletSlip {
2068
2068
  * @returns {string}
2069
2069
  */
2070
2070
  get_utxokey() {
2071
- const ret = wasm.wasmwalletslip_get_utxokey(this.__wbg_ptr);
2071
+ const ret = wasm.wasmslip_utxo_key(this.__wbg_ptr);
2072
2072
  return takeObject(ret);
2073
2073
  }
2074
2074
  /**
@@ -2081,40 +2081,40 @@ class WasmWalletSlip {
2081
2081
  * @returns {bigint}
2082
2082
  */
2083
2083
  get_amount() {
2084
- const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
2084
+ const ret = wasm.wasmslip_amount(this.__wbg_ptr);
2085
2085
  return BigInt.asUintN(64, ret);
2086
2086
  }
2087
2087
  /**
2088
2088
  * @param {bigint} amount
2089
2089
  */
2090
2090
  set_amount(amount) {
2091
- wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
2091
+ wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
2092
2092
  }
2093
2093
  /**
2094
2094
  * @returns {bigint}
2095
2095
  */
2096
2096
  get_block_id() {
2097
- const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
2097
+ const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
2098
2098
  return BigInt.asUintN(64, ret);
2099
2099
  }
2100
2100
  /**
2101
2101
  * @param {bigint} block_id
2102
2102
  */
2103
2103
  set_block_id(block_id) {
2104
- wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
2104
+ wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
2105
2105
  }
2106
2106
  /**
2107
2107
  * @returns {bigint}
2108
2108
  */
2109
2109
  get_tx_ordinal() {
2110
- const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
2110
+ const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
2111
2111
  return BigInt.asUintN(64, ret);
2112
2112
  }
2113
2113
  /**
2114
2114
  * @param {bigint} ordinal
2115
2115
  */
2116
2116
  set_tx_ordinal(ordinal) {
2117
- wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2117
+ wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
2118
2118
  }
2119
2119
  /**
2120
2120
  * @returns {number}
@@ -2165,32 +2165,27 @@ class WasmWalletSlip {
2165
2165
  }
2166
2166
  module.exports.WasmWalletSlip = WasmWalletSlip;
2167
2167
 
2168
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
2169
- takeObject(arg0);
2170
- };
2171
-
2172
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2173
- const ret = BigInt.asUintN(64, arg0);
2174
- return addHeapObject(ret);
2175
- };
2176
-
2177
2168
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2178
2169
  const ret = getStringFromWasm0(arg0, arg1);
2179
2170
  return addHeapObject(ret);
2180
2171
  };
2181
2172
 
2182
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2183
- const ret = WasmPeer.__wrap(arg0);
2173
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2174
+ takeObject(arg0);
2175
+ };
2176
+
2177
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2178
+ const ret = WasmBlock.__wrap(arg0);
2184
2179
  return addHeapObject(ret);
2185
2180
  };
2186
2181
 
2187
- module.exports.__wbg_wasmslip_new = function(arg0) {
2188
- const ret = WasmSlip.__wrap(arg0);
2182
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2183
+ const ret = WasmTransaction.__wrap(arg0);
2189
2184
  return addHeapObject(ret);
2190
2185
  };
2191
2186
 
2192
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2193
- const ret = WasmWalletSlip.__wrap(arg0);
2187
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2188
+ const ret = BigInt.asUintN(64, arg0);
2194
2189
  return addHeapObject(ret);
2195
2190
  };
2196
2191
 
@@ -2199,28 +2194,28 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2199
2194
  return addHeapObject(ret);
2200
2195
  };
2201
2196
 
2202
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2203
- const ret = WasmTransaction.__wrap(arg0);
2197
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2198
+ const ret = WasmPeer.__wrap(arg0);
2204
2199
  return addHeapObject(ret);
2205
2200
  };
2206
2201
 
2207
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2208
- const ret = WasmWallet.__wrap(arg0);
2202
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2203
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2209
2204
  return addHeapObject(ret);
2210
2205
  };
2211
2206
 
2212
- module.exports.__wbg_wasmblock_new = function(arg0) {
2213
- const ret = WasmBlock.__wrap(arg0);
2207
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2208
+ const ret = WasmSlip.__wrap(arg0);
2214
2209
  return addHeapObject(ret);
2215
2210
  };
2216
2211
 
2217
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2218
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2212
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2213
+ const ret = WasmWalletSlip.__wrap(arg0);
2219
2214
  return addHeapObject(ret);
2220
2215
  };
2221
2216
 
2222
- module.exports.__wbg_wasmhop_new = function(arg0) {
2223
- const ret = WasmHop.__wrap(arg0);
2217
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2218
+ const ret = WasmWallet.__wrap(arg0);
2224
2219
  return addHeapObject(ret);
2225
2220
  };
2226
2221
 
@@ -2233,20 +2228,35 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2233
2228
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2234
2229
  };
2235
2230
 
2231
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2232
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2233
+ return addHeapObject(ret);
2234
+ };
2235
+
2236
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2237
+ const ret = WasmHop.__wrap(arg0);
2238
+ return addHeapObject(ret);
2239
+ };
2240
+
2236
2241
  module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
2237
2242
  const ret = WasmConsensusValues.__wrap(arg0);
2238
2243
  return addHeapObject(ret);
2239
2244
  };
2240
2245
 
2241
- module.exports.__wbg_sendmessage_b2a2d709de93c81c = function(arg0, arg1) {
2246
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2247
+ const ret = WasmPeerService.__wrap(arg0);
2248
+ return addHeapObject(ret);
2249
+ };
2250
+
2251
+ module.exports.__wbg_sendmessage_111cd294d0a1ba24 = function(arg0, arg1) {
2242
2252
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2243
2253
  };
2244
2254
 
2245
- module.exports.__wbg_sendmessagetoall_5d48bd710d0434b4 = function(arg0, arg1) {
2255
+ module.exports.__wbg_sendmessagetoall_099731cb25195ffa = function(arg0, arg1) {
2246
2256
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2247
2257
  };
2248
2258
 
2249
- module.exports.__wbg_connecttopeer_ff97d90270d8add5 = function() { return handleError(function (arg0, arg1, arg2) {
2259
+ module.exports.__wbg_connecttopeer_34eab1844d61a5c0 = function() { return handleError(function (arg0, arg1, arg2) {
2250
2260
  let deferred0_0;
2251
2261
  let deferred0_1;
2252
2262
  try {
@@ -2259,12 +2269,12 @@ module.exports.__wbg_connecttopeer_ff97d90270d8add5 = function() { return handle
2259
2269
  }
2260
2270
  }, arguments) };
2261
2271
 
2262
- module.exports.__wbg_disconnectfrompeer_dc066f7ed8274b6d = function() { return handleError(function (arg0) {
2272
+ module.exports.__wbg_disconnectfrompeer_08a68134af793703 = function() { return handleError(function (arg0) {
2263
2273
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2264
2274
  return addHeapObject(ret);
2265
2275
  }, arguments) };
2266
2276
 
2267
- module.exports.__wbg_fetchblockfrompeer_d043da5ff30449b8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2277
+ module.exports.__wbg_fetchblockfrompeer_7130e7753ae6e06c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2268
2278
  let deferred0_0;
2269
2279
  let deferred0_1;
2270
2280
  try {
@@ -2277,7 +2287,7 @@ module.exports.__wbg_fetchblockfrompeer_d043da5ff30449b8 = function() { return h
2277
2287
  }
2278
2288
  }, arguments) };
2279
2289
 
2280
- module.exports.__wbg_writevalue_a872d0cd4b9d437d = function(arg0, arg1, arg2) {
2290
+ module.exports.__wbg_writevalue_911fb41ea9729264 = function(arg0, arg1, arg2) {
2281
2291
  let deferred0_0;
2282
2292
  let deferred0_1;
2283
2293
  try {
@@ -2289,7 +2299,7 @@ module.exports.__wbg_writevalue_a872d0cd4b9d437d = function(arg0, arg1, arg2) {
2289
2299
  }
2290
2300
  };
2291
2301
 
2292
- module.exports.__wbg_appendvalue_af44896bd2f4a3f9 = function(arg0, arg1, arg2) {
2302
+ module.exports.__wbg_appendvalue_5c921467f4ba535e = function(arg0, arg1, arg2) {
2293
2303
  let deferred0_0;
2294
2304
  let deferred0_1;
2295
2305
  try {
@@ -2301,7 +2311,7 @@ module.exports.__wbg_appendvalue_af44896bd2f4a3f9 = function(arg0, arg1, arg2) {
2301
2311
  }
2302
2312
  };
2303
2313
 
2304
- module.exports.__wbg_flushdata_a5376eef6c458262 = function(arg0, arg1) {
2314
+ module.exports.__wbg_flushdata_69c2b56988946a06 = function(arg0, arg1) {
2305
2315
  let deferred0_0;
2306
2316
  let deferred0_1;
2307
2317
  try {
@@ -2313,7 +2323,7 @@ module.exports.__wbg_flushdata_a5376eef6c458262 = function(arg0, arg1) {
2313
2323
  }
2314
2324
  };
2315
2325
 
2316
- module.exports.__wbg_readvalue_3354a9ec31fb7e64 = function() { return handleError(function (arg0, arg1) {
2326
+ module.exports.__wbg_readvalue_a0ef58f234498dc1 = function() { return handleError(function (arg0, arg1) {
2317
2327
  let deferred0_0;
2318
2328
  let deferred0_1;
2319
2329
  try {
@@ -2326,12 +2336,12 @@ module.exports.__wbg_readvalue_3354a9ec31fb7e64 = function() { return handleErro
2326
2336
  }
2327
2337
  }, arguments) };
2328
2338
 
2329
- module.exports.__wbg_loadblockfilelist_4b47014827e6d51e = function() { return handleError(function () {
2339
+ module.exports.__wbg_loadblockfilelist_6deeaa1c5a65039b = function() { return handleError(function () {
2330
2340
  const ret = MsgHandler.load_block_file_list();
2331
2341
  return addHeapObject(ret);
2332
2342
  }, arguments) };
2333
2343
 
2334
- module.exports.__wbg_isexistingfile_e0b51536a97dca88 = function() { return handleError(function (arg0, arg1) {
2344
+ module.exports.__wbg_isexistingfile_dccfea43fa6c57a4 = function() { return handleError(function (arg0, arg1) {
2335
2345
  let deferred0_0;
2336
2346
  let deferred0_1;
2337
2347
  try {
@@ -2344,7 +2354,7 @@ module.exports.__wbg_isexistingfile_e0b51536a97dca88 = function() { return handl
2344
2354
  }
2345
2355
  }, arguments) };
2346
2356
 
2347
- module.exports.__wbg_removevalue_1437bd724935bcca = function() { return handleError(function (arg0, arg1) {
2357
+ module.exports.__wbg_removevalue_8d74a068d1ccffa9 = function() { return handleError(function (arg0, arg1) {
2348
2358
  let deferred0_0;
2349
2359
  let deferred0_1;
2350
2360
  try {
@@ -2357,7 +2367,7 @@ module.exports.__wbg_removevalue_1437bd724935bcca = function() { return handleEr
2357
2367
  }
2358
2368
  }, arguments) };
2359
2369
 
2360
- module.exports.__wbg_ensureblockdirectoryexists_9ee938234c25a908 = function() { return handleError(function (arg0, arg1) {
2370
+ module.exports.__wbg_ensureblockdirectoryexists_79540c3dff4ee1cf = function() { return handleError(function (arg0, arg1) {
2361
2371
  let deferred0_0;
2362
2372
  let deferred0_1;
2363
2373
  try {
@@ -2369,19 +2379,19 @@ module.exports.__wbg_ensureblockdirectoryexists_9ee938234c25a908 = function() {
2369
2379
  }
2370
2380
  }, arguments) };
2371
2381
 
2372
- module.exports.__wbg_processapicall_cf5ba9b390c1e67e = function(arg0, arg1, arg2) {
2382
+ module.exports.__wbg_processapicall_5ad8351d24492723 = function(arg0, arg1, arg2) {
2373
2383
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2374
2384
  };
2375
2385
 
2376
- module.exports.__wbg_processapisuccess_9582565ffd5a789f = function(arg0, arg1, arg2) {
2386
+ module.exports.__wbg_processapisuccess_eaca7c1703abc148 = function(arg0, arg1, arg2) {
2377
2387
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2378
2388
  };
2379
2389
 
2380
- module.exports.__wbg_processapierror_89b19b9db64339b5 = function(arg0, arg1, arg2) {
2390
+ module.exports.__wbg_processapierror_148539df8cba6e1c = function(arg0, arg1, arg2) {
2381
2391
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
2382
2392
  };
2383
2393
 
2384
- module.exports.__wbg_sendinterfaceevent_97e1b8bb6a3fec90 = function(arg0, arg1, arg2) {
2394
+ module.exports.__wbg_sendinterfaceevent_c214ce9e2a672dd1 = function(arg0, arg1, arg2) {
2385
2395
  let deferred0_0;
2386
2396
  let deferred0_1;
2387
2397
  try {
@@ -2393,7 +2403,7 @@ module.exports.__wbg_sendinterfaceevent_97e1b8bb6a3fec90 = function(arg0, arg1,
2393
2403
  }
2394
2404
  };
2395
2405
 
2396
- module.exports.__wbg_sendblocksuccess_ffe00a0435ab2679 = function(arg0, arg1, arg2) {
2406
+ module.exports.__wbg_sendblocksuccess_9628c887be151962 = function(arg0, arg1, arg2) {
2397
2407
  let deferred0_0;
2398
2408
  let deferred0_1;
2399
2409
  try {
@@ -2405,11 +2415,11 @@ module.exports.__wbg_sendblocksuccess_ffe00a0435ab2679 = function(arg0, arg1, ar
2405
2415
  }
2406
2416
  };
2407
2417
 
2408
- module.exports.__wbg_sendwalletupdate_38e7541127fed663 = function() {
2418
+ module.exports.__wbg_sendwalletupdate_8343add8492cdd78 = function() {
2409
2419
  MsgHandler.send_wallet_update();
2410
2420
  };
2411
2421
 
2412
- module.exports.__wbg_sendnewversionalert_2e913aeee49274f1 = function(arg0, arg1, arg2) {
2422
+ module.exports.__wbg_sendnewversionalert_97d88b033f29573c = function(arg0, arg1, arg2) {
2413
2423
  let deferred0_0;
2414
2424
  let deferred0_1;
2415
2425
  try {
@@ -2421,31 +2431,21 @@ module.exports.__wbg_sendnewversionalert_2e913aeee49274f1 = function(arg0, arg1,
2421
2431
  }
2422
2432
  };
2423
2433
 
2424
- module.exports.__wbg_savewallet_0176282c7faf6f1a = function() {
2434
+ module.exports.__wbg_savewallet_cd7d81c6ba423855 = function() {
2425
2435
  MsgHandler.save_wallet();
2426
2436
  };
2427
2437
 
2428
- module.exports.__wbg_loadwallet_bfb7b5a845ccdb99 = function() {
2438
+ module.exports.__wbg_loadwallet_1df5c65c3397d11c = function() {
2429
2439
  MsgHandler.load_wallet();
2430
2440
  };
2431
2441
 
2432
- module.exports.__wbg_getmyservices_289f4fd597e7e6c8 = function() {
2442
+ module.exports.__wbg_getmyservices_f959eef99aa33bb1 = function() {
2433
2443
  const ret = MsgHandler.get_my_services();
2434
2444
  _assertClass(ret, WasmPeerServiceList);
2435
2445
  var ptr1 = ret.__destroy_into_raw();
2436
2446
  return ptr1;
2437
2447
  };
2438
2448
 
2439
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2440
- const ret = WasmPeerService.__wrap(arg0);
2441
- return addHeapObject(ret);
2442
- };
2443
-
2444
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2445
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2446
- return addHeapObject(ret);
2447
- };
2448
-
2449
2449
  module.exports.__wbindgen_is_object = function(arg0) {
2450
2450
  const val = getObject(arg0);
2451
2451
  const ret = typeof(val) === 'object' && val !== null;
@@ -2480,13 +2480,13 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
2480
2480
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
2481
2481
  };
2482
2482
 
2483
- module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
2484
- const ret = getObject(arg0)[getObject(arg1)];
2483
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2484
+ const ret = getObject(arg0);
2485
2485
  return addHeapObject(ret);
2486
2486
  };
2487
2487
 
2488
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2489
- const ret = getObject(arg0);
2488
+ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
2489
+ const ret = getObject(arg0)[getObject(arg1)];
2490
2490
  return addHeapObject(ret);
2491
2491
  };
2492
2492
 
@@ -2500,6 +2500,10 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2500
2500
  return ret;
2501
2501
  };
2502
2502
 
2503
+ module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2504
+ queueMicrotask(getObject(arg0));
2505
+ };
2506
+
2503
2507
  module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
2504
2508
  const ret = getObject(arg0).queueMicrotask;
2505
2509
  return addHeapObject(ret);
@@ -2510,10 +2514,6 @@ module.exports.__wbindgen_is_function = function(arg0) {
2510
2514
  return ret;
2511
2515
  };
2512
2516
 
2513
- module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
2514
- queueMicrotask(getObject(arg0));
2515
- };
2516
-
2517
2517
  module.exports.__wbg_debug_7d879afce6cf56cb = function(arg0, arg1, arg2, arg3) {
2518
2518
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
2519
2519
  };
@@ -2637,6 +2637,11 @@ module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(fun
2637
2637
  return addHeapObject(ret);
2638
2638
  }, arguments) };
2639
2639
 
2640
+ module.exports.__wbg_length_dee433d4c85c9387 = function(arg0) {
2641
+ const ret = getObject(arg0).length;
2642
+ return ret;
2643
+ };
2644
+
2640
2645
  module.exports.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
2641
2646
  const ret = self.self;
2642
2647
  return addHeapObject(ret);
@@ -2709,7 +2714,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
2709
2714
  const a = state0.a;
2710
2715
  state0.a = 0;
2711
2716
  try {
2712
- return __wbg_adapter_372(a, state0.b, arg0, arg1);
2717
+ return __wbg_adapter_374(a, state0.b, arg0, arg1);
2713
2718
  } finally {
2714
2719
  state0.a = a;
2715
2720
  }
@@ -2807,8 +2812,8 @@ module.exports.__wbindgen_memory = function() {
2807
2812
  return addHeapObject(ret);
2808
2813
  };
2809
2814
 
2810
- module.exports.__wbindgen_closure_wrapper1267 = function(arg0, arg1, arg2) {
2811
- 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);
2812
2817
  return addHeapObject(ret);
2813
2818
  };
2814
2819
 
Binary file