@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
|
@@ -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 {
|
|
259
|
-
* @returns {
|
|
291
|
+
* @param {ConnectRequest} request
|
|
292
|
+
* @returns {Promise<BreezSdk>}
|
|
260
293
|
*/
|
|
261
|
-
export function
|
|
262
|
-
const ret = wasm.
|
|
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.
|
|
329
|
+
wasm.closure444_externref_shim(arg0, arg1, arg2);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
function __wbg_adapter_69(arg0, arg1) {
|
|
333
|
-
wasm.
|
|
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
|
|
337
|
-
wasm.
|
|
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
|
|
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
|
|
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.
|
|
2597
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
2601
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
2605
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
2609
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
2613
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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
|
|
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;
|