@breeztech/breez-sdk-spark 0.13.2-dev5 → 0.13.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.
@@ -238,17 +238,6 @@ export function defaultPostgresStorageConfig(connection_string) {
238
238
  return ret;
239
239
  }
240
240
 
241
- /**
242
- * Creates a default external signer from a mnemonic phrase.
243
- *
244
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
245
- * @returns {Promise<SparkStatus>}
246
- */
247
- export function getSparkStatus() {
248
- const ret = wasm.getSparkStatus();
249
- return ret;
250
- }
251
-
252
241
  /**
253
242
  * @param {Network} network
254
243
  * @returns {Config}
@@ -258,18 +247,6 @@ export function defaultConfig(network) {
258
247
  return ret;
259
248
  }
260
249
 
261
- /**
262
- * @param {Logger} logger
263
- * @param {string | null} [filter]
264
- * @returns {Promise<void>}
265
- */
266
- export function initLogging(logger, filter) {
267
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
268
- var len0 = WASM_VECTOR_LEN;
269
- const ret = wasm.initLogging(logger, ptr0, len0);
270
- return ret;
271
- }
272
-
273
250
  /**
274
251
  * @param {ConnectRequest} request
275
252
  * @returns {Promise<BreezSdk>}
@@ -279,19 +256,6 @@ export function connect(request) {
279
256
  return ret;
280
257
  }
281
258
 
282
- /**
283
- * @param {Config} config
284
- * @param {ExternalSigner} signer
285
- * @param {string} storage_dir
286
- * @returns {Promise<BreezSdk>}
287
- */
288
- export function connectWithSigner(config, signer, storage_dir) {
289
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
- const len0 = WASM_VECTOR_LEN;
291
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
292
- return ret;
293
- }
294
-
295
259
  function takeFromExternrefTable0(idx) {
296
260
  const value = wasm.__wbindgen_export_5.get(idx);
297
261
  wasm.__externref_table_dealloc(idx);
@@ -316,6 +280,42 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
316
280
  return DefaultSigner.__wrap(ret[0]);
317
281
  }
318
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
+
295
+ /**
296
+ * Creates a default external signer from a mnemonic phrase.
297
+ *
298
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
299
+ * @returns {Promise<SparkStatus>}
300
+ */
301
+ export function getSparkStatus() {
302
+ const ret = wasm.getSparkStatus();
303
+ return ret;
304
+ }
305
+
306
+ /**
307
+ * @param {Config} config
308
+ * @param {ExternalSigner} signer
309
+ * @param {string} storage_dir
310
+ * @returns {Promise<BreezSdk>}
311
+ */
312
+ export function connectWithSigner(config, signer, storage_dir) {
313
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
314
+ const len0 = WASM_VECTOR_LEN;
315
+ const ret = wasm.connectWithSigner(config, signer, 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);
@@ -334,15 +334,15 @@ export function task_worker_entry_point(ptr) {
334
334
  }
335
335
 
336
336
  function __wbg_adapter_64(arg0, arg1, arg2) {
337
- wasm.closure384_externref_shim(arg0, arg1, arg2);
337
+ wasm.closure385_externref_shim(arg0, arg1, arg2);
338
338
  }
339
339
 
340
340
  function __wbg_adapter_69(arg0, arg1) {
341
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73(arg0, arg1);
341
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c(arg0, arg1);
342
342
  }
343
343
 
344
- function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
345
- wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
344
+ function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
345
+ wasm.closure663_externref_shim(arg0, arg1, arg2, arg3);
346
346
  }
347
347
 
348
348
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2231,7 +2231,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
2231
2231
  const a = state0.a;
2232
2232
  state0.a = 0;
2233
2233
  try {
2234
- return __wbg_adapter_423(a, state0.b, arg0, arg1);
2234
+ return __wbg_adapter_433(a, state0.b, arg0, arg1);
2235
2235
  } finally {
2236
2236
  state0.a = a;
2237
2237
  }
@@ -2884,28 +2884,28 @@ export function __wbindgen_cb_drop(arg0) {
2884
2884
  return ret;
2885
2885
  };
2886
2886
 
2887
- export function __wbindgen_closure_wrapper10276(arg0, arg1, arg2) {
2888
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2887
+ export function __wbindgen_closure_wrapper13486(arg0, arg1, arg2) {
2888
+ const ret = makeMutClosure(arg0, arg1, 867, __wbg_adapter_69);
2889
2889
  return ret;
2890
2890
  };
2891
2891
 
2892
- export function __wbindgen_closure_wrapper15432(arg0, arg1, arg2) {
2893
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2892
+ export function __wbindgen_closure_wrapper15492(arg0, arg1, arg2) {
2893
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2894
2894
  return ret;
2895
2895
  };
2896
2896
 
2897
- export function __wbindgen_closure_wrapper5935(arg0, arg1, arg2) {
2898
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2897
+ export function __wbindgen_closure_wrapper5977(arg0, arg1, arg2) {
2898
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2899
2899
  return ret;
2900
2900
  };
2901
2901
 
2902
- export function __wbindgen_closure_wrapper5941(arg0, arg1, arg2) {
2903
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2902
+ export function __wbindgen_closure_wrapper5984(arg0, arg1, arg2) {
2903
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2904
2904
  return ret;
2905
2905
  };
2906
2906
 
2907
- export function __wbindgen_closure_wrapper7576(arg0, arg1, arg2) {
2908
- const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2907
+ export function __wbindgen_closure_wrapper7603(arg0, arg1, arg2) {
2908
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_69);
2909
2909
  return ret;
2910
2910
  };
2911
2911
 
@@ -128,7 +128,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
128
128
  export const __externref_drop_slice: (a: number, b: number) => void;
129
129
  export const __wbindgen_export_7: WebAssembly.Table;
130
130
  export const __externref_table_dealloc: (a: number) => void;
131
- export const closure384_externref_shim: (a: number, b: number, c: any) => void;
132
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73: (a: number, b: number) => void;
133
- export const closure656_externref_shim: (a: number, b: number, c: any, d: any) => void;
131
+ export const closure385_externref_shim: (a: number, b: number, c: any) => void;
132
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c: (a: number, b: number) => void;
133
+ export const closure663_externref_shim: (a: number, b: number, c: any, d: any) => void;
134
134
  export const __wbindgen_start: () => void;