@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.
- package/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +629 -629
- package/bundler/breez_sdk_spark_wasm_bg.js +53 -53
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/deno/breez_sdk_spark_wasm.d.ts +629 -629
- package/deno/breez_sdk_spark_wasm.js +53 -53
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +629 -629
- package/nodejs/breez_sdk_spark_wasm.js +53 -53
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +632 -632
- package/web/breez_sdk_spark_wasm.js +53 -53
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
|
@@ -238,6 +238,39 @@ 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
|
+
/**
|
|
253
|
+
* @param {Config} config
|
|
254
|
+
* @param {ExternalSigner} signer
|
|
255
|
+
* @param {string} storage_dir
|
|
256
|
+
* @returns {Promise<BreezSdk>}
|
|
257
|
+
*/
|
|
258
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
259
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
|
+
const len0 = WASM_VECTOR_LEN;
|
|
261
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
262
|
+
return ret;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @param {Network} network
|
|
267
|
+
* @returns {Config}
|
|
268
|
+
*/
|
|
269
|
+
export function defaultConfig(network) {
|
|
270
|
+
const ret = wasm.defaultConfig(network);
|
|
271
|
+
return ret;
|
|
272
|
+
}
|
|
273
|
+
|
|
241
274
|
function takeFromExternrefTable0(idx) {
|
|
242
275
|
const value = wasm.__wbindgen_export_5.get(idx);
|
|
243
276
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -263,11 +296,11 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
263
296
|
}
|
|
264
297
|
|
|
265
298
|
/**
|
|
266
|
-
* @param {
|
|
267
|
-
* @returns {
|
|
299
|
+
* @param {ConnectRequest} request
|
|
300
|
+
* @returns {Promise<BreezSdk>}
|
|
268
301
|
*/
|
|
269
|
-
export function
|
|
270
|
-
const ret = wasm.
|
|
302
|
+
export function connect(request) {
|
|
303
|
+
const ret = wasm.connect(request);
|
|
271
304
|
return ret;
|
|
272
305
|
}
|
|
273
306
|
|
|
@@ -283,39 +316,6 @@ export function initLogging(logger, filter) {
|
|
|
283
316
|
return ret;
|
|
284
317
|
}
|
|
285
318
|
|
|
286
|
-
/**
|
|
287
|
-
* @param {ConnectRequest} request
|
|
288
|
-
* @returns {Promise<BreezSdk>}
|
|
289
|
-
*/
|
|
290
|
-
export function connect(request) {
|
|
291
|
-
const ret = wasm.connect(request);
|
|
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.
|
|
337
|
+
wasm.closure444_externref_shim(arg0, arg1, arg2);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
function __wbg_adapter_69(arg0, arg1) {
|
|
341
|
-
wasm.
|
|
341
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1bbbe552b190da27(arg0, arg1);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
function
|
|
345
|
-
wasm.
|
|
344
|
+
function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
|
|
345
|
+
wasm.closure716_externref_shim(arg0, arg1, arg2, arg3);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1060,7 +1060,7 @@ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1060
1060
|
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
1061
1061
|
*
|
|
1062
1062
|
* Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
|
|
1063
|
-
* wallet derivation and
|
|
1063
|
+
* wallet derivation and label management via Nostr relays.
|
|
1064
1064
|
*/
|
|
1065
1065
|
export class Passkey {
|
|
1066
1066
|
|
|
@@ -2162,7 +2162,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
2162
2162
|
const a = state0.a;
|
|
2163
2163
|
state0.a = 0;
|
|
2164
2164
|
try {
|
|
2165
|
-
return
|
|
2165
|
+
return __wbg_adapter_373(a, state0.b, arg0, arg1);
|
|
2166
2166
|
} finally {
|
|
2167
2167
|
state0.a = a;
|
|
2168
2168
|
}
|
|
@@ -2787,28 +2787,28 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
2787
2787
|
return ret;
|
|
2788
2788
|
};
|
|
2789
2789
|
|
|
2790
|
-
export function
|
|
2791
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2790
|
+
export function __wbindgen_closure_wrapper10359(arg0, arg1, arg2) {
|
|
2791
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_69);
|
|
2792
2792
|
return ret;
|
|
2793
2793
|
};
|
|
2794
2794
|
|
|
2795
|
-
export function
|
|
2796
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2795
|
+
export function __wbindgen_closure_wrapper15747(arg0, arg1, arg2) {
|
|
2796
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
|
|
2797
2797
|
return ret;
|
|
2798
2798
|
};
|
|
2799
2799
|
|
|
2800
|
-
export function
|
|
2801
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2800
|
+
export function __wbindgen_closure_wrapper5892(arg0, arg1, arg2) {
|
|
2801
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
|
|
2802
2802
|
return ret;
|
|
2803
2803
|
};
|
|
2804
2804
|
|
|
2805
|
-
export function
|
|
2806
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2805
|
+
export function __wbindgen_closure_wrapper5900(arg0, arg1, arg2) {
|
|
2806
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
|
|
2807
2807
|
return ret;
|
|
2808
2808
|
};
|
|
2809
2809
|
|
|
2810
|
-
export function
|
|
2811
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2810
|
+
export function __wbindgen_closure_wrapper7579(arg0, arg1, arg2) {
|
|
2811
|
+
const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_69);
|
|
2812
2812
|
return ret;
|
|
2813
2813
|
};
|
|
2814
2814
|
|
|
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
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
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;
|