@breeztech/breez-sdk-spark 0.6.4-rc3 → 0.6.6

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.
@@ -221,6 +221,15 @@ function debugString(val) {
221
221
  // TODO we could test for more things here, like `Set`s and `Map`s.
222
222
  return className;
223
223
  }
224
+ /**
225
+ * @param {Network} network
226
+ * @returns {Config}
227
+ */
228
+ export function defaultConfig(network) {
229
+ const ret = wasm.defaultConfig(network);
230
+ return ret;
231
+ }
232
+
224
233
  /**
225
234
  * @param {Logger} logger
226
235
  * @param {string | null} [filter]
@@ -233,15 +242,6 @@ export function initLogging(logger, filter) {
233
242
  return ret;
234
243
  }
235
244
 
236
- /**
237
- * @param {Network} network
238
- * @returns {Config}
239
- */
240
- export function defaultConfig(network) {
241
- const ret = wasm.defaultConfig(network);
242
- return ret;
243
- }
244
-
245
245
  /**
246
246
  * @param {ConnectRequest} request
247
247
  * @returns {Promise<BreezSdk>}
@@ -268,15 +268,15 @@ export function task_worker_entry_point(ptr) {
268
268
  }
269
269
 
270
270
  function __wbg_adapter_58(arg0, arg1) {
271
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4(arg0, arg1);
271
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272(arg0, arg1);
272
272
  }
273
273
 
274
274
  function __wbg_adapter_61(arg0, arg1, arg2) {
275
- wasm.closure979_externref_shim(arg0, arg1, arg2);
275
+ wasm.closure997_externref_shim(arg0, arg1, arg2);
276
276
  }
277
277
 
278
- function __wbg_adapter_227(arg0, arg1, arg2, arg3) {
279
- wasm.closure561_externref_shim(arg0, arg1, arg2, arg3);
278
+ function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
279
+ wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
280
280
  }
281
281
 
282
282
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -511,6 +511,16 @@ export class BreezSdk {
511
511
  const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
512
512
  return ret;
513
513
  }
514
+ startLeafOptimization() {
515
+ wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
516
+ }
517
+ /**
518
+ * @returns {Promise<void>}
519
+ */
520
+ cancelLeafOptimization() {
521
+ const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
522
+ return ret;
523
+ }
514
524
  /**
515
525
  * @returns {Promise<void>}
516
526
  */
@@ -526,6 +536,13 @@ export class BreezSdk {
526
536
  const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
527
537
  return ret;
528
538
  }
539
+ /**
540
+ * @returns {OptimizationProgress}
541
+ */
542
+ getLeafOptimizationProgress() {
543
+ const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
544
+ return ret;
545
+ }
529
546
  /**
530
547
  * @param {CheckLightningAddressRequest} request
531
548
  * @returns {Promise<boolean>}
@@ -1429,7 +1446,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1429
1446
  const a = state0.a;
1430
1447
  state0.a = 0;
1431
1448
  try {
1432
- return __wbg_adapter_227(a, state0.b, arg0, arg1);
1449
+ return __wbg_adapter_282(a, state0.b, arg0, arg1);
1433
1450
  } finally {
1434
1451
  state0.a = a;
1435
1452
  }
@@ -1907,13 +1924,13 @@ export function __wbindgen_cb_drop(arg0) {
1907
1924
  return ret;
1908
1925
  };
1909
1926
 
1910
- export function __wbindgen_closure_wrapper11748(arg0, arg1, arg2) {
1911
- const ret = makeMutClosure(arg0, arg1, 980, __wbg_adapter_61);
1927
+ export function __wbindgen_closure_wrapper11879(arg0, arg1, arg2) {
1928
+ const ret = makeMutClosure(arg0, arg1, 998, __wbg_adapter_61);
1912
1929
  return ret;
1913
1930
  };
1914
1931
 
1915
- export function __wbindgen_closure_wrapper9873(arg0, arg1, arg2) {
1916
- const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_58);
1932
+ export function __wbindgen_closure_wrapper9947(arg0, arg1, arg2) {
1933
+ const ret = makeMutClosure(arg0, arg1, 766, __wbg_adapter_58);
1917
1934
  return ret;
1918
1935
  };
1919
1936
 
@@ -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 closure997_externref_shim: (a: number, b: number, c: any) => void;
90
+ export const closure571_externref_shim: (a: number, b: number, c: any, d: any) => void;
88
91
  export const __wbindgen_start: () => void;