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

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,6 +230,39 @@ 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
+ /**
245
+ * @param {Config} config
246
+ * @param {ExternalSigner} signer
247
+ * @param {string} storage_dir
248
+ * @returns {Promise<BreezSdk>}
249
+ */
250
+ export function connectWithSigner(config, signer, storage_dir) {
251
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
252
+ const len0 = WASM_VECTOR_LEN;
253
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
254
+ return ret;
255
+ }
256
+
257
+ /**
258
+ * @param {Network} network
259
+ * @returns {Config}
260
+ */
261
+ export function defaultConfig(network) {
262
+ const ret = wasm.defaultConfig(network);
263
+ return ret;
264
+ }
265
+
233
266
  function takeFromExternrefTable0(idx) {
234
267
  const value = wasm.__wbindgen_export_5.get(idx);
235
268
  wasm.__externref_table_dealloc(idx);
@@ -255,11 +288,11 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
255
288
  }
256
289
 
257
290
  /**
258
- * @param {Network} network
259
- * @returns {Config}
291
+ * @param {ConnectRequest} request
292
+ * @returns {Promise<BreezSdk>}
260
293
  */
261
- export function defaultConfig(network) {
262
- const ret = wasm.defaultConfig(network);
294
+ export function connect(request) {
295
+ const ret = wasm.connect(request);
263
296
  return ret;
264
297
  }
265
298
 
@@ -275,39 +308,6 @@ export function initLogging(logger, filter) {
275
308
  return ret;
276
309
  }
277
310
 
278
- /**
279
- * @param {ConnectRequest} request
280
- * @returns {Promise<BreezSdk>}
281
- */
282
- export function connect(request) {
283
- const ret = wasm.connect(request);
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.closure440_externref_shim(arg0, arg1, arg2);
329
+ wasm.closure444_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__h29e986a86553656d(arg0, arg1);
333
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1bbbe552b190da27(arg0, arg1);
334
334
  }
335
335
 
336
- function __wbg_adapter_339(arg0, arg1, arg2, arg3) {
337
- wasm.closure720_externref_shim(arg0, arg1, arg2, arg3);
336
+ function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
337
+ wasm.closure716_externref_shim(arg0, arg1, arg2, arg3);
338
338
  }
339
339
 
340
340
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -1052,7 +1052,7 @@ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
1052
1052
  * Passkey-based wallet operations using WebAuthn PRF extension.
1053
1053
  *
1054
1054
  * Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
1055
- * wallet derivation and name management via Nostr relays.
1055
+ * wallet derivation and label management via Nostr relays.
1056
1056
  */
1057
1057
  export class Passkey {
1058
1058
 
@@ -2078,7 +2078,7 @@ function __wbg_get_imports() {
2078
2078
  const a = state0.a;
2079
2079
  state0.a = 0;
2080
2080
  try {
2081
- return __wbg_adapter_339(a, state0.b, arg0, arg1);
2081
+ return __wbg_adapter_373(a, state0.b, arg0, arg1);
2082
2082
  } finally {
2083
2083
  state0.a = a;
2084
2084
  }
@@ -2593,24 +2593,24 @@ function __wbg_get_imports() {
2593
2593
  const ret = false;
2594
2594
  return ret;
2595
2595
  };
2596
- imports.wbg.__wbindgen_closure_wrapper10357 = function(arg0, arg1, arg2) {
2597
- const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
2596
+ imports.wbg.__wbindgen_closure_wrapper10359 = function(arg0, arg1, arg2) {
2597
+ const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_69);
2598
2598
  return ret;
2599
2599
  };
2600
- imports.wbg.__wbindgen_closure_wrapper15769 = function(arg0, arg1, arg2) {
2601
- const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2600
+ imports.wbg.__wbindgen_closure_wrapper15747 = function(arg0, arg1, arg2) {
2601
+ const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2602
2602
  return ret;
2603
2603
  };
2604
- imports.wbg.__wbindgen_closure_wrapper5872 = function(arg0, arg1, arg2) {
2605
- const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2604
+ imports.wbg.__wbindgen_closure_wrapper5892 = function(arg0, arg1, arg2) {
2605
+ const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2606
2606
  return ret;
2607
2607
  };
2608
- imports.wbg.__wbindgen_closure_wrapper5878 = function(arg0, arg1, arg2) {
2609
- const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
2608
+ imports.wbg.__wbindgen_closure_wrapper5900 = function(arg0, arg1, arg2) {
2609
+ const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2610
2610
  return ret;
2611
2611
  };
2612
- imports.wbg.__wbindgen_closure_wrapper7556 = function(arg0, arg1, arg2) {
2613
- const ret = makeMutClosure(arg0, arg1, 964, __wbg_adapter_69);
2612
+ imports.wbg.__wbindgen_closure_wrapper7579 = function(arg0, arg1, arg2) {
2613
+ const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_69);
2614
2614
  return ret;
2615
2615
  };
2616
2616
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -126,7 +126,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
126
126
  export const __externref_drop_slice: (a: number, b: number) => void;
127
127
  export const __wbindgen_export_7: WebAssembly.Table;
128
128
  export const __externref_table_dealloc: (a: number) => void;
129
- export const closure440_externref_shim: (a: number, b: number, c: any) => void;
130
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29e986a86553656d: (a: number, b: number) => void;
131
- export const closure720_externref_shim: (a: number, b: number, c: any, d: any) => void;
129
+ export const closure444_externref_shim: (a: number, b: number, c: any) => void;
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;
132
132
  export const __wbindgen_start: () => void;