@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.
@@ -230,17 +230,6 @@ export function defaultPostgresStorageConfig(connection_string) {
230
230
  return ret;
231
231
  }
232
232
 
233
- /**
234
- * Creates a default external signer from a mnemonic phrase.
235
- *
236
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
237
- * @returns {Promise<SparkStatus>}
238
- */
239
- export function getSparkStatus() {
240
- const ret = wasm.getSparkStatus();
241
- return ret;
242
- }
243
-
244
233
  /**
245
234
  * @param {Network} network
246
235
  * @returns {Config}
@@ -250,18 +239,6 @@ export function defaultConfig(network) {
250
239
  return ret;
251
240
  }
252
241
 
253
- /**
254
- * @param {Logger} logger
255
- * @param {string | null} [filter]
256
- * @returns {Promise<void>}
257
- */
258
- export function initLogging(logger, filter) {
259
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
260
- var len0 = WASM_VECTOR_LEN;
261
- const ret = wasm.initLogging(logger, ptr0, len0);
262
- return ret;
263
- }
264
-
265
242
  /**
266
243
  * @param {ConnectRequest} request
267
244
  * @returns {Promise<BreezSdk>}
@@ -271,19 +248,6 @@ export function connect(request) {
271
248
  return ret;
272
249
  }
273
250
 
274
- /**
275
- * @param {Config} config
276
- * @param {ExternalSigner} signer
277
- * @param {string} storage_dir
278
- * @returns {Promise<BreezSdk>}
279
- */
280
- export function connectWithSigner(config, signer, storage_dir) {
281
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
- const len0 = WASM_VECTOR_LEN;
283
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
284
- return ret;
285
- }
286
-
287
251
  function takeFromExternrefTable0(idx) {
288
252
  const value = wasm.__wbindgen_export_5.get(idx);
289
253
  wasm.__externref_table_dealloc(idx);
@@ -308,6 +272,42 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
308
272
  return DefaultSigner.__wrap(ret[0]);
309
273
  }
310
274
 
275
+ /**
276
+ * @param {Logger} logger
277
+ * @param {string | null} [filter]
278
+ * @returns {Promise<void>}
279
+ */
280
+ export function initLogging(logger, filter) {
281
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
+ var len0 = WASM_VECTOR_LEN;
283
+ const ret = wasm.initLogging(logger, ptr0, len0);
284
+ return ret;
285
+ }
286
+
287
+ /**
288
+ * Creates a default external signer from a mnemonic phrase.
289
+ *
290
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
291
+ * @returns {Promise<SparkStatus>}
292
+ */
293
+ export function getSparkStatus() {
294
+ const ret = wasm.getSparkStatus();
295
+ return ret;
296
+ }
297
+
298
+ /**
299
+ * @param {Config} config
300
+ * @param {ExternalSigner} signer
301
+ * @param {string} storage_dir
302
+ * @returns {Promise<BreezSdk>}
303
+ */
304
+ export function connectWithSigner(config, signer, storage_dir) {
305
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
+ const len0 = WASM_VECTOR_LEN;
307
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
308
+ return ret;
309
+ }
310
+
311
311
  function passArray8ToWasm0(arg, malloc) {
312
312
  const ptr = malloc(arg.length * 1, 1) >>> 0;
313
313
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -326,15 +326,15 @@ export function task_worker_entry_point(ptr) {
326
326
  }
327
327
 
328
328
  function __wbg_adapter_64(arg0, arg1, arg2) {
329
- wasm.closure384_externref_shim(arg0, arg1, arg2);
329
+ wasm.closure385_externref_shim(arg0, arg1, arg2);
330
330
  }
331
331
 
332
332
  function __wbg_adapter_69(arg0, arg1) {
333
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h140914a8cfe47e73(arg0, arg1);
333
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c(arg0, arg1);
334
334
  }
335
335
 
336
- function __wbg_adapter_423(arg0, arg1, arg2, arg3) {
337
- wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
336
+ function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
337
+ wasm.closure663_externref_shim(arg0, arg1, arg2, arg3);
338
338
  }
339
339
 
340
340
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2140,7 +2140,7 @@ function __wbg_get_imports() {
2140
2140
  const a = state0.a;
2141
2141
  state0.a = 0;
2142
2142
  try {
2143
- return __wbg_adapter_423(a, state0.b, arg0, arg1);
2143
+ return __wbg_adapter_433(a, state0.b, arg0, arg1);
2144
2144
  } finally {
2145
2145
  state0.a = a;
2146
2146
  }
@@ -2680,24 +2680,24 @@ function __wbg_get_imports() {
2680
2680
  const ret = false;
2681
2681
  return ret;
2682
2682
  };
2683
- imports.wbg.__wbindgen_closure_wrapper10276 = function(arg0, arg1, arg2) {
2684
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_69);
2683
+ imports.wbg.__wbindgen_closure_wrapper13486 = function(arg0, arg1, arg2) {
2684
+ const ret = makeMutClosure(arg0, arg1, 867, __wbg_adapter_69);
2685
2685
  return ret;
2686
2686
  };
2687
- imports.wbg.__wbindgen_closure_wrapper15432 = function(arg0, arg1, arg2) {
2688
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2687
+ imports.wbg.__wbindgen_closure_wrapper15492 = function(arg0, arg1, arg2) {
2688
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2689
2689
  return ret;
2690
2690
  };
2691
- imports.wbg.__wbindgen_closure_wrapper5935 = function(arg0, arg1, arg2) {
2692
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2691
+ imports.wbg.__wbindgen_closure_wrapper5977 = function(arg0, arg1, arg2) {
2692
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2693
2693
  return ret;
2694
2694
  };
2695
- imports.wbg.__wbindgen_closure_wrapper5941 = function(arg0, arg1, arg2) {
2696
- const ret = makeMutClosure(arg0, arg1, 385, __wbg_adapter_64);
2695
+ imports.wbg.__wbindgen_closure_wrapper5984 = function(arg0, arg1, arg2) {
2696
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
2697
2697
  return ret;
2698
2698
  };
2699
- imports.wbg.__wbindgen_closure_wrapper7576 = function(arg0, arg1, arg2) {
2700
- const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
2699
+ imports.wbg.__wbindgen_closure_wrapper7603 = function(arg0, arg1, arg2) {
2700
+ const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_69);
2701
2701
  return ret;
2702
2702
  };
2703
2703
  imports.wbg.__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;