@breeztech/breez-sdk-spark 0.6.4-rc2 → 0.6.5

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.
@@ -204,6 +204,15 @@ function debugString(val) {
204
204
  // TODO we could test for more things here, like `Set`s and `Map`s.
205
205
  return className;
206
206
  }
207
+ /**
208
+ * @param {Network} network
209
+ * @returns {Config}
210
+ */
211
+ export function defaultConfig(network) {
212
+ const ret = wasm.defaultConfig(network);
213
+ return ret;
214
+ }
215
+
207
216
  /**
208
217
  * @param {Logger} logger
209
218
  * @param {string | null} [filter]
@@ -216,15 +225,6 @@ export function initLogging(logger, filter) {
216
225
  return ret;
217
226
  }
218
227
 
219
- /**
220
- * @param {Network} network
221
- * @returns {Config}
222
- */
223
- export function defaultConfig(network) {
224
- const ret = wasm.defaultConfig(network);
225
- return ret;
226
- }
227
-
228
228
  /**
229
229
  * @param {ConnectRequest} request
230
230
  * @returns {Promise<BreezSdk>}
@@ -251,15 +251,15 @@ export function task_worker_entry_point(ptr) {
251
251
  }
252
252
 
253
253
  function __wbg_adapter_58(arg0, arg1) {
254
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4(arg0, arg1);
254
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272(arg0, arg1);
255
255
  }
256
256
 
257
257
  function __wbg_adapter_61(arg0, arg1, arg2) {
258
- wasm.closure979_externref_shim(arg0, arg1, arg2);
258
+ wasm.closure996_externref_shim(arg0, arg1, arg2);
259
259
  }
260
260
 
261
- function __wbg_adapter_227(arg0, arg1, arg2, arg3) {
262
- wasm.closure561_externref_shim(arg0, arg1, arg2, arg3);
261
+ function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
262
+ wasm.closure564_externref_shim(arg0, arg1, arg2, arg3);
263
263
  }
264
264
 
265
265
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -494,6 +494,16 @@ export class BreezSdk {
494
494
  const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
495
495
  return ret;
496
496
  }
497
+ startLeafOptimization() {
498
+ wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
499
+ }
500
+ /**
501
+ * @returns {Promise<void>}
502
+ */
503
+ cancelLeafOptimization() {
504
+ const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
505
+ return ret;
506
+ }
497
507
  /**
498
508
  * @returns {Promise<void>}
499
509
  */
@@ -509,6 +519,13 @@ export class BreezSdk {
509
519
  const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
510
520
  return ret;
511
521
  }
522
+ /**
523
+ * @returns {OptimizationProgress}
524
+ */
525
+ getLeafOptimizationProgress() {
526
+ const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
527
+ return ret;
528
+ }
512
529
  /**
513
530
  * @param {CheckLightningAddressRequest} request
514
531
  * @returns {Promise<boolean>}
@@ -1337,7 +1354,7 @@ const imports = {
1337
1354
  const a = state0.a;
1338
1355
  state0.a = 0;
1339
1356
  try {
1340
- return __wbg_adapter_227(a, state0.b, arg0, arg1);
1357
+ return __wbg_adapter_282(a, state0.b, arg0, arg1);
1341
1358
  } finally {
1342
1359
  state0.a = a;
1343
1360
  }
@@ -1728,12 +1745,12 @@ const imports = {
1728
1745
  const ret = false;
1729
1746
  return ret;
1730
1747
  },
1731
- __wbindgen_closure_wrapper11748: function(arg0, arg1, arg2) {
1732
- const ret = makeMutClosure(arg0, arg1, 980, __wbg_adapter_61);
1748
+ __wbindgen_closure_wrapper11838: function(arg0, arg1, arg2) {
1749
+ const ret = makeMutClosure(arg0, arg1, 997, __wbg_adapter_61);
1733
1750
  return ret;
1734
1751
  },
1735
- __wbindgen_closure_wrapper9873: function(arg0, arg1, arg2) {
1736
- const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_58);
1752
+ __wbindgen_closure_wrapper9899: function(arg0, arg1, arg2) {
1753
+ const ret = makeMutClosure(arg0, arg1, 759, __wbg_adapter_58);
1737
1754
  return ret;
1738
1755
  },
1739
1756
  __wbindgen_debug_string: function(arg0, arg1) {
Binary file
@@ -5,6 +5,7 @@ export const __wbg_breezsdk_free: (a: number, b: number) => void;
5
5
  export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
6
6
  export const __wbg_tokenissuer_free: (a: number, b: number) => void;
7
7
  export const breezsdk_addEventListener: (a: number, b: any) => any;
8
+ export const breezsdk_cancelLeafOptimization: (a: number) => any;
8
9
  export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any;
9
10
  export const breezsdk_checkMessage: (a: number, b: any) => any;
10
11
  export const breezsdk_claimDeposit: (a: number, b: any) => any;
@@ -12,6 +13,7 @@ export const breezsdk_claimHtlcPayment: (a: number, b: any) => any;
12
13
  export const breezsdk_deleteLightningAddress: (a: number) => any;
13
14
  export const breezsdk_disconnect: (a: number) => any;
14
15
  export const breezsdk_getInfo: (a: number, b: any) => any;
16
+ export const breezsdk_getLeafOptimizationProgress: (a: number) => any;
15
17
  export const breezsdk_getLightningAddress: (a: number) => any;
16
18
  export const breezsdk_getPayment: (a: number, b: any) => any;
17
19
  export const breezsdk_getTokenIssuer: (a: number) => number;
@@ -33,6 +35,7 @@ export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
33
35
  export const breezsdk_removeEventListener: (a: number, b: number, c: number) => any;
34
36
  export const breezsdk_sendPayment: (a: number, b: any) => any;
35
37
  export const breezsdk_signMessage: (a: number, b: any) => any;
38
+ export const breezsdk_startLeafOptimization: (a: number) => void;
36
39
  export const breezsdk_syncWallet: (a: number, b: any) => any;
37
40
  export const breezsdk_updateUserSettings: (a: number, b: any) => any;
38
41
  export const connect: (a: any) => any;
@@ -82,7 +85,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
82
85
  export const __externref_drop_slice: (a: number, b: number) => void;
83
86
  export const __wbindgen_export_7: WebAssembly.Table;
84
87
  export const __externref_table_dealloc: (a: number) => void;
85
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4: (a: number, b: number) => void;
86
- export const closure979_externref_shim: (a: number, b: number, c: any) => void;
87
- export const closure561_externref_shim: (a: number, b: number, c: any, d: any) => void;
88
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272: (a: number, b: number) => void;
89
+ export const closure996_externref_shim: (a: number, b: number, c: any) => void;
90
+ export const closure564_externref_shim: (a: number, b: number, c: any, d: any) => void;
88
91
  export const __wbindgen_start: () => void;