@breeztech/breez-sdk-spark 0.11.0-dev5 → 0.12.1

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.
@@ -262,6 +262,15 @@ export function connectWithSigner(config, signer, storage_dir) {
262
262
  return ret;
263
263
  }
264
264
 
265
+ /**
266
+ * @param {ConnectRequest} request
267
+ * @returns {Promise<BreezSdk>}
268
+ */
269
+ export function connect(request) {
270
+ const ret = wasm.connect(request);
271
+ return ret;
272
+ }
273
+
265
274
  /**
266
275
  * @param {Network} network
267
276
  * @returns {Config}
@@ -271,6 +280,18 @@ export function defaultConfig(network) {
271
280
  return ret;
272
281
  }
273
282
 
283
+ /**
284
+ * @param {Logger} logger
285
+ * @param {string | null} [filter]
286
+ * @returns {Promise<void>}
287
+ */
288
+ export function initLogging(logger, filter) {
289
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
+ var len0 = WASM_VECTOR_LEN;
291
+ const ret = wasm.initLogging(logger, ptr0, len0);
292
+ return ret;
293
+ }
294
+
274
295
  function takeFromExternrefTable0(idx) {
275
296
  const value = wasm.__wbindgen_export_5.get(idx);
276
297
  wasm.__externref_table_dealloc(idx);
@@ -295,27 +316,6 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
295
316
  return DefaultSigner.__wrap(ret[0]);
296
317
  }
297
318
 
298
- /**
299
- * @param {ConnectRequest} request
300
- * @returns {Promise<BreezSdk>}
301
- */
302
- export function connect(request) {
303
- const ret = wasm.connect(request);
304
- return ret;
305
- }
306
-
307
- /**
308
- * @param {Logger} logger
309
- * @param {string | null} [filter]
310
- * @returns {Promise<void>}
311
- */
312
- export function initLogging(logger, filter) {
313
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
314
- var len0 = WASM_VECTOR_LEN;
315
- const ret = wasm.initLogging(logger, ptr0, len0);
316
- return ret;
317
- }
318
-
319
319
  function passArray8ToWasm0(arg, malloc) {
320
320
  const ptr = malloc(arg.length * 1, 1) >>> 0;
321
321
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -342,7 +342,7 @@ function __wbg_adapter_69(arg0, arg1) {
342
342
  }
343
343
 
344
344
  function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
345
- wasm.closure716_externref_shim(arg0, arg1, arg2, arg3);
345
+ wasm.closure711_externref_shim(arg0, arg1, arg2, arg3);
346
346
  }
347
347
 
348
348
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2787,28 +2787,28 @@ export function __wbindgen_cb_drop(arg0) {
2787
2787
  return ret;
2788
2788
  };
2789
2789
 
2790
- export function __wbindgen_closure_wrapper10359(arg0, arg1, arg2) {
2790
+ export function __wbindgen_closure_wrapper10364(arg0, arg1, arg2) {
2791
2791
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_69);
2792
2792
  return ret;
2793
2793
  };
2794
2794
 
2795
- export function __wbindgen_closure_wrapper15747(arg0, arg1, arg2) {
2795
+ export function __wbindgen_closure_wrapper15749(arg0, arg1, arg2) {
2796
2796
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2797
2797
  return ret;
2798
2798
  };
2799
2799
 
2800
- export function __wbindgen_closure_wrapper5892(arg0, arg1, arg2) {
2800
+ export function __wbindgen_closure_wrapper5886(arg0, arg1, arg2) {
2801
2801
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2802
2802
  return ret;
2803
2803
  };
2804
2804
 
2805
- export function __wbindgen_closure_wrapper5900(arg0, arg1, arg2) {
2805
+ export function __wbindgen_closure_wrapper5894(arg0, arg1, arg2) {
2806
2806
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2807
2807
  return ret;
2808
2808
  };
2809
2809
 
2810
- export function __wbindgen_closure_wrapper7579(arg0, arg1, arg2) {
2811
- const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_69);
2810
+ export function __wbindgen_closure_wrapper7591(arg0, arg1, arg2) {
2811
+ const ret = makeMutClosure(arg0, arg1, 954, __wbg_adapter_69);
2812
2812
  return ret;
2813
2813
  };
2814
2814
 
@@ -128,5 +128,5 @@ export const __wbindgen_export_7: WebAssembly.Table;
128
128
  export const __externref_table_dealloc: (a: number) => void;
129
129
  export const closure444_externref_shim: (a: number, b: number, c: any) => void;
130
130
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1bbbe552b190da27: (a: number, b: number) => void;
131
- export const closure716_externref_shim: (a: number, b: number, c: any, d: any) => void;
131
+ export const closure711_externref_shim: (a: number, b: number, c: any, d: any) => void;
132
132
  export const __wbindgen_start: () => void;