@breeztech/breez-sdk-spark 0.8.3-dev1 → 0.9.0
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 +564 -564
- package/bundler/breez_sdk_spark_wasm_bg.js +29 -29
- 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 +564 -564
- package/deno/breez_sdk_spark_wasm.js +29 -29
- 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 +564 -564
- package/nodejs/breez_sdk_spark_wasm.js +29 -29
- 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 +567 -567
- package/web/breez_sdk_spark_wasm.js +29 -29
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
|
@@ -238,15 +238,6 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
238
238
|
return DefaultSigner.__wrap(ret[0]);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
/**
|
|
242
|
-
* @param {ConnectRequest} request
|
|
243
|
-
* @returns {Promise<BreezSdk>}
|
|
244
|
-
*/
|
|
245
|
-
export function connect(request) {
|
|
246
|
-
const ret = wasm.connect(request);
|
|
247
|
-
return ret;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
241
|
/**
|
|
251
242
|
* @param {Logger} logger
|
|
252
243
|
* @param {string | null} [filter]
|
|
@@ -259,19 +250,6 @@ export function initLogging(logger, filter) {
|
|
|
259
250
|
return ret;
|
|
260
251
|
}
|
|
261
252
|
|
|
262
|
-
/**
|
|
263
|
-
* @param {Config} config
|
|
264
|
-
* @param {ExternalSigner} signer
|
|
265
|
-
* @param {string} storage_dir
|
|
266
|
-
* @returns {Promise<BreezSdk>}
|
|
267
|
-
*/
|
|
268
|
-
export function connectWithSigner(config, signer, storage_dir) {
|
|
269
|
-
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
270
|
-
const len0 = WASM_VECTOR_LEN;
|
|
271
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
272
|
-
return ret;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
253
|
/**
|
|
276
254
|
* @param {Network} network
|
|
277
255
|
* @returns {Config}
|
|
@@ -292,6 +270,28 @@ export function getSparkStatus() {
|
|
|
292
270
|
return ret;
|
|
293
271
|
}
|
|
294
272
|
|
|
273
|
+
/**
|
|
274
|
+
* @param {Config} config
|
|
275
|
+
* @param {ExternalSigner} signer
|
|
276
|
+
* @param {string} storage_dir
|
|
277
|
+
* @returns {Promise<BreezSdk>}
|
|
278
|
+
*/
|
|
279
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
280
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len0 = WASM_VECTOR_LEN;
|
|
282
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
283
|
+
return ret;
|
|
284
|
+
}
|
|
285
|
+
|
|
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
295
|
function passArray8ToWasm0(arg, malloc) {
|
|
296
296
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
297
297
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -310,15 +310,15 @@ export function task_worker_entry_point(ptr) {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
function __wbg_adapter_64(arg0, arg1) {
|
|
313
|
-
wasm.
|
|
313
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64(arg0, arg1);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
function __wbg_adapter_67(arg0, arg1, arg2) {
|
|
317
|
-
wasm.
|
|
317
|
+
wasm.closure1082_externref_shim(arg0, arg1, arg2);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
function __wbg_adapter_285(arg0, arg1, arg2, arg3) {
|
|
321
|
-
wasm.
|
|
321
|
+
wasm.closure667_externref_shim(arg0, arg1, arg2, arg3);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -2242,12 +2242,12 @@ function __wbg_get_imports() {
|
|
|
2242
2242
|
const ret = false;
|
|
2243
2243
|
return ret;
|
|
2244
2244
|
};
|
|
2245
|
-
imports.wbg.
|
|
2246
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2245
|
+
imports.wbg.__wbindgen_closure_wrapper11841 = function(arg0, arg1, arg2) {
|
|
2246
|
+
const ret = makeMutClosure(arg0, arg1, 845, __wbg_adapter_64);
|
|
2247
2247
|
return ret;
|
|
2248
2248
|
};
|
|
2249
|
-
imports.wbg.
|
|
2250
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2249
|
+
imports.wbg.__wbindgen_closure_wrapper13789 = function(arg0, arg1, arg2) {
|
|
2250
|
+
const ret = makeMutClosure(arg0, arg1, 1083, __wbg_adapter_67);
|
|
2251
2251
|
return ret;
|
|
2252
2252
|
};
|
|
2253
2253
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -113,7 +113,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
113
113
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
114
114
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
115
115
|
export const __externref_table_dealloc: (a: number) => void;
|
|
116
|
-
export const
|
|
117
|
-
export const
|
|
118
|
-
export const
|
|
116
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64: (a: number, b: number) => void;
|
|
117
|
+
export const closure1082_externref_shim: (a: number, b: number, c: any) => void;
|
|
118
|
+
export const closure667_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
119
119
|
export const __wbindgen_start: () => void;
|