@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
|
@@ -234,6 +234,39 @@ module.exports.defaultPostgresStorageConfig = function(connection_string) {
|
|
|
234
234
|
return ret;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Creates a default external signer from a mnemonic phrase.
|
|
239
|
+
*
|
|
240
|
+
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
241
|
+
* @returns {Promise<SparkStatus>}
|
|
242
|
+
*/
|
|
243
|
+
module.exports.getSparkStatus = function() {
|
|
244
|
+
const ret = wasm.getSparkStatus();
|
|
245
|
+
return ret;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @param {Config} config
|
|
250
|
+
* @param {ExternalSigner} signer
|
|
251
|
+
* @param {string} storage_dir
|
|
252
|
+
* @returns {Promise<BreezSdk>}
|
|
253
|
+
*/
|
|
254
|
+
module.exports.connectWithSigner = function(config, signer, storage_dir) {
|
|
255
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
|
+
const len0 = WASM_VECTOR_LEN;
|
|
257
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
258
|
+
return ret;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @param {Network} network
|
|
263
|
+
* @returns {Config}
|
|
264
|
+
*/
|
|
265
|
+
module.exports.defaultConfig = function(network) {
|
|
266
|
+
const ret = wasm.defaultConfig(network);
|
|
267
|
+
return ret;
|
|
268
|
+
};
|
|
269
|
+
|
|
237
270
|
function takeFromExternrefTable0(idx) {
|
|
238
271
|
const value = wasm.__wbindgen_export_5.get(idx);
|
|
239
272
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -259,11 +292,11 @@ module.exports.defaultExternalSigner = function(mnemonic, passphrase, network, k
|
|
|
259
292
|
};
|
|
260
293
|
|
|
261
294
|
/**
|
|
262
|
-
* @param {
|
|
263
|
-
* @returns {
|
|
295
|
+
* @param {ConnectRequest} request
|
|
296
|
+
* @returns {Promise<BreezSdk>}
|
|
264
297
|
*/
|
|
265
|
-
module.exports.
|
|
266
|
-
const ret = wasm.
|
|
298
|
+
module.exports.connect = function(request) {
|
|
299
|
+
const ret = wasm.connect(request);
|
|
267
300
|
return ret;
|
|
268
301
|
};
|
|
269
302
|
|
|
@@ -279,39 +312,6 @@ module.exports.initLogging = function(logger, filter) {
|
|
|
279
312
|
return ret;
|
|
280
313
|
};
|
|
281
314
|
|
|
282
|
-
/**
|
|
283
|
-
* @param {ConnectRequest} request
|
|
284
|
-
* @returns {Promise<BreezSdk>}
|
|
285
|
-
*/
|
|
286
|
-
module.exports.connect = function(request) {
|
|
287
|
-
const ret = wasm.connect(request);
|
|
288
|
-
return ret;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Creates a default external signer from a mnemonic phrase.
|
|
293
|
-
*
|
|
294
|
-
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
295
|
-
* @returns {Promise<SparkStatus>}
|
|
296
|
-
*/
|
|
297
|
-
module.exports.getSparkStatus = function() {
|
|
298
|
-
const ret = wasm.getSparkStatus();
|
|
299
|
-
return ret;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @param {Config} config
|
|
304
|
-
* @param {ExternalSigner} signer
|
|
305
|
-
* @param {string} storage_dir
|
|
306
|
-
* @returns {Promise<BreezSdk>}
|
|
307
|
-
*/
|
|
308
|
-
module.exports.connectWithSigner = function(config, signer, storage_dir) {
|
|
309
|
-
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
-
const len0 = WASM_VECTOR_LEN;
|
|
311
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
312
|
-
return ret;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
315
|
function passArray8ToWasm0(arg, malloc) {
|
|
316
316
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
317
317
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -330,15 +330,15 @@ module.exports.task_worker_entry_point = function(ptr) {
|
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
333
|
-
wasm.
|
|
333
|
+
wasm.closure444_externref_shim(arg0, arg1, arg2);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
function __wbg_adapter_69(arg0, arg1) {
|
|
337
|
-
wasm.
|
|
337
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1bbbe552b190da27(arg0, arg1);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
function
|
|
341
|
-
wasm.
|
|
340
|
+
function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
|
|
341
|
+
wasm.closure716_externref_shim(arg0, arg1, arg2, arg3);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1061,7 +1061,7 @@ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1061
1061
|
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
1062
1062
|
*
|
|
1063
1063
|
* Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
|
|
1064
|
-
* wallet derivation and
|
|
1064
|
+
* wallet derivation and label management via Nostr relays.
|
|
1065
1065
|
*/
|
|
1066
1066
|
class Passkey {
|
|
1067
1067
|
|
|
@@ -2166,7 +2166,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
2166
2166
|
const a = state0.a;
|
|
2167
2167
|
state0.a = 0;
|
|
2168
2168
|
try {
|
|
2169
|
-
return
|
|
2169
|
+
return __wbg_adapter_373(a, state0.b, arg0, arg1);
|
|
2170
2170
|
} finally {
|
|
2171
2171
|
state0.a = a;
|
|
2172
2172
|
}
|
|
@@ -2791,28 +2791,28 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2791
2791
|
return ret;
|
|
2792
2792
|
};
|
|
2793
2793
|
|
|
2794
|
-
module.exports.
|
|
2795
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2794
|
+
module.exports.__wbindgen_closure_wrapper10359 = function(arg0, arg1, arg2) {
|
|
2795
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_69);
|
|
2796
2796
|
return ret;
|
|
2797
2797
|
};
|
|
2798
2798
|
|
|
2799
|
-
module.exports.
|
|
2800
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2799
|
+
module.exports.__wbindgen_closure_wrapper15747 = function(arg0, arg1, arg2) {
|
|
2800
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
|
|
2801
2801
|
return ret;
|
|
2802
2802
|
};
|
|
2803
2803
|
|
|
2804
|
-
module.exports.
|
|
2805
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2804
|
+
module.exports.__wbindgen_closure_wrapper5892 = function(arg0, arg1, arg2) {
|
|
2805
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
|
|
2806
2806
|
return ret;
|
|
2807
2807
|
};
|
|
2808
2808
|
|
|
2809
|
-
module.exports.
|
|
2810
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2809
|
+
module.exports.__wbindgen_closure_wrapper5900 = function(arg0, arg1, arg2) {
|
|
2810
|
+
const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
|
|
2811
2811
|
return ret;
|
|
2812
2812
|
};
|
|
2813
2813
|
|
|
2814
|
-
module.exports.
|
|
2815
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2814
|
+
module.exports.__wbindgen_closure_wrapper7579 = function(arg0, arg1, arg2) {
|
|
2815
|
+
const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_69);
|
|
2816
2816
|
return ret;
|
|
2817
2817
|
};
|
|
2818
2818
|
|
|
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;
|
package/package.json
CHANGED