@breeztech/breez-sdk-spark 0.13.2-dev4 → 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.
@@ -221,17 +221,6 @@ export function defaultPostgresStorageConfig(connection_string) {
221
221
  return ret;
222
222
  }
223
223
 
224
- /**
225
- * Creates a default external signer from a mnemonic phrase.
226
- *
227
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
228
- * @returns {Promise<SparkStatus>}
229
- */
230
- export function getSparkStatus() {
231
- const ret = wasm.getSparkStatus();
232
- return ret;
233
- }
234
-
235
224
  /**
236
225
  * @param {Network} network
237
226
  * @returns {Config}
@@ -241,18 +230,6 @@ export function defaultConfig(network) {
241
230
  return ret;
242
231
  }
243
232
 
244
- /**
245
- * @param {Logger} logger
246
- * @param {string | null} [filter]
247
- * @returns {Promise<void>}
248
- */
249
- export function initLogging(logger, filter) {
250
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
251
- var len0 = WASM_VECTOR_LEN;
252
- const ret = wasm.initLogging(logger, ptr0, len0);
253
- return ret;
254
- }
255
-
256
233
  /**
257
234
  * @param {ConnectRequest} request
258
235
  * @returns {Promise<BreezSdk>}
@@ -262,19 +239,6 @@ export function connect(request) {
262
239
  return ret;
263
240
  }
264
241
 
265
- /**
266
- * @param {Config} config
267
- * @param {ExternalSigner} signer
268
- * @param {string} storage_dir
269
- * @returns {Promise<BreezSdk>}
270
- */
271
- export function connectWithSigner(config, signer, storage_dir) {
272
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
273
- const len0 = WASM_VECTOR_LEN;
274
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
275
- return ret;
276
- }
277
-
278
242
  function takeFromExternrefTable0(idx) {
279
243
  const value = wasm.__wbindgen_export_5.get(idx);
280
244
  wasm.__externref_table_dealloc(idx);
@@ -299,6 +263,42 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
299
263
  return DefaultSigner.__wrap(ret[0]);
300
264
  }
301
265
 
266
+ /**
267
+ * @param {Logger} logger
268
+ * @param {string | null} [filter]
269
+ * @returns {Promise<void>}
270
+ */
271
+ export function initLogging(logger, filter) {
272
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
273
+ var len0 = WASM_VECTOR_LEN;
274
+ const ret = wasm.initLogging(logger, ptr0, len0);
275
+ return ret;
276
+ }
277
+
278
+ /**
279
+ * Creates a default external signer from a mnemonic phrase.
280
+ *
281
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
282
+ * @returns {Promise<SparkStatus>}
283
+ */
284
+ export function getSparkStatus() {
285
+ const ret = wasm.getSparkStatus();
286
+ return ret;
287
+ }
288
+
289
+ /**
290
+ * @param {Config} config
291
+ * @param {ExternalSigner} signer
292
+ * @param {string} storage_dir
293
+ * @returns {Promise<BreezSdk>}
294
+ */
295
+ export function connectWithSigner(config, signer, storage_dir) {
296
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
+ const len0 = WASM_VECTOR_LEN;
298
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
299
+ return ret;
300
+ }
301
+
302
302
  function passArray8ToWasm0(arg, malloc) {
303
303
  const ptr = malloc(arg.length * 1, 1) >>> 0;
304
304
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -317,15 +317,15 @@ export function task_worker_entry_point(ptr) {
317
317
  }
318
318
 
319
319
  function __wbg_adapter_64(arg0, arg1, arg2) {
320
- wasm.closure384_externref_shim(arg0, arg1, arg2);
320
+ wasm.closure385_externref_shim(arg0, arg1, arg2);
321
321
  }
322
322
 
323
323
  function __wbg_adapter_69(arg0, arg1) {
324
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73(arg0, arg1);
324
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c(arg0, arg1);
325
325
  }
326
326
 
327
- function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
328
- wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
327
+ function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
328
+ wasm.closure663_externref_shim(arg0, arg1, arg2, arg3);
329
329
  }
330
330
 
331
331
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2099,7 +2099,7 @@ const imports = {
2099
2099
  const a = state0.a;
2100
2100
  state0.a = 0;
2101
2101
  try {
2102
- return __wbg_adapter_423(a, state0.b, arg0, arg1);
2102
+ return __wbg_adapter_433(a, state0.b, arg0, arg1);
2103
2103
  } finally {
2104
2104
  state0.a = a;
2105
2105
  }
@@ -2639,24 +2639,24 @@ const imports = {
2639
2639
  const ret = false;
2640
2640
  return ret;
2641
2641
  },
2642
- __wbindgen_closure_wrapper10274: function(arg0, arg1, arg2) {
2643
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2642
+ __wbindgen_closure_wrapper13486: function(arg0, arg1, arg2) {
2643
+ const ret = makeMutClosure(arg0, arg1, 867, __wbg_adapter_69);
2644
2644
  return ret;
2645
2645
  },
2646
- __wbindgen_closure_wrapper15429: function(arg0, arg1, arg2) {
2647
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2646
+ __wbindgen_closure_wrapper15492: function(arg0, arg1, arg2) {
2647
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2648
2648
  return ret;
2649
2649
  },
2650
- __wbindgen_closure_wrapper5934: function(arg0, arg1, arg2) {
2651
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2650
+ __wbindgen_closure_wrapper5977: function(arg0, arg1, arg2) {
2651
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2652
2652
  return ret;
2653
2653
  },
2654
- __wbindgen_closure_wrapper5940: function(arg0, arg1, arg2) {
2655
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2654
+ __wbindgen_closure_wrapper5984: function(arg0, arg1, arg2) {
2655
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2656
2656
  return ret;
2657
2657
  },
2658
- __wbindgen_closure_wrapper7575: function(arg0, arg1, arg2) {
2659
- const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2658
+ __wbindgen_closure_wrapper7603: function(arg0, arg1, arg2) {
2659
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_69);
2660
2660
  return ret;
2661
2661
  },
2662
2662
  __wbindgen_debug_string: function(arg0, arg1) {
Binary file
@@ -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;