@breeztech/breez-sdk-spark 0.6.4-rc2 → 0.6.5
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 +436 -419
- package/bundler/breez_sdk_spark_wasm_bg.js +35 -18
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -3
- package/deno/breez_sdk_spark_wasm.d.ts +436 -419
- package/deno/breez_sdk_spark_wasm.js +35 -18
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +436 -419
- package/nodejs/breez_sdk_spark_wasm.js +35 -18
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -3
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +442 -422
- package/web/breez_sdk_spark_wasm.js +35 -18
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -3
|
@@ -213,6 +213,15 @@ function debugString(val) {
|
|
|
213
213
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
214
214
|
return className;
|
|
215
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* @param {Network} network
|
|
218
|
+
* @returns {Config}
|
|
219
|
+
*/
|
|
220
|
+
export function defaultConfig(network) {
|
|
221
|
+
const ret = wasm.defaultConfig(network);
|
|
222
|
+
return ret;
|
|
223
|
+
}
|
|
224
|
+
|
|
216
225
|
/**
|
|
217
226
|
* @param {Logger} logger
|
|
218
227
|
* @param {string | null} [filter]
|
|
@@ -225,15 +234,6 @@ export function initLogging(logger, filter) {
|
|
|
225
234
|
return ret;
|
|
226
235
|
}
|
|
227
236
|
|
|
228
|
-
/**
|
|
229
|
-
* @param {Network} network
|
|
230
|
-
* @returns {Config}
|
|
231
|
-
*/
|
|
232
|
-
export function defaultConfig(network) {
|
|
233
|
-
const ret = wasm.defaultConfig(network);
|
|
234
|
-
return ret;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
237
|
/**
|
|
238
238
|
* @param {ConnectRequest} request
|
|
239
239
|
* @returns {Promise<BreezSdk>}
|
|
@@ -260,15 +260,15 @@ export function task_worker_entry_point(ptr) {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
function __wbg_adapter_58(arg0, arg1) {
|
|
263
|
-
wasm.
|
|
263
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272(arg0, arg1);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
267
|
-
wasm.
|
|
267
|
+
wasm.closure996_externref_shim(arg0, arg1, arg2);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function
|
|
271
|
-
wasm.
|
|
270
|
+
function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
|
|
271
|
+
wasm.closure564_externref_shim(arg0, arg1, arg2, arg3);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -503,6 +503,16 @@ export class BreezSdk {
|
|
|
503
503
|
const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
|
|
504
504
|
return ret;
|
|
505
505
|
}
|
|
506
|
+
startLeafOptimization() {
|
|
507
|
+
wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* @returns {Promise<void>}
|
|
511
|
+
*/
|
|
512
|
+
cancelLeafOptimization() {
|
|
513
|
+
const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
|
|
514
|
+
return ret;
|
|
515
|
+
}
|
|
506
516
|
/**
|
|
507
517
|
* @returns {Promise<void>}
|
|
508
518
|
*/
|
|
@@ -518,6 +528,13 @@ export class BreezSdk {
|
|
|
518
528
|
const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
|
|
519
529
|
return ret;
|
|
520
530
|
}
|
|
531
|
+
/**
|
|
532
|
+
* @returns {OptimizationProgress}
|
|
533
|
+
*/
|
|
534
|
+
getLeafOptimizationProgress() {
|
|
535
|
+
const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
|
|
536
|
+
return ret;
|
|
537
|
+
}
|
|
521
538
|
/**
|
|
522
539
|
* @param {CheckLightningAddressRequest} request
|
|
523
540
|
* @returns {Promise<boolean>}
|
|
@@ -1378,7 +1395,7 @@ function __wbg_get_imports() {
|
|
|
1378
1395
|
const a = state0.a;
|
|
1379
1396
|
state0.a = 0;
|
|
1380
1397
|
try {
|
|
1381
|
-
return
|
|
1398
|
+
return __wbg_adapter_282(a, state0.b, arg0, arg1);
|
|
1382
1399
|
} finally {
|
|
1383
1400
|
state0.a = a;
|
|
1384
1401
|
}
|
|
@@ -1769,12 +1786,12 @@ function __wbg_get_imports() {
|
|
|
1769
1786
|
const ret = false;
|
|
1770
1787
|
return ret;
|
|
1771
1788
|
};
|
|
1772
|
-
imports.wbg.
|
|
1773
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1789
|
+
imports.wbg.__wbindgen_closure_wrapper11838 = function(arg0, arg1, arg2) {
|
|
1790
|
+
const ret = makeMutClosure(arg0, arg1, 997, __wbg_adapter_61);
|
|
1774
1791
|
return ret;
|
|
1775
1792
|
};
|
|
1776
|
-
imports.wbg.
|
|
1777
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1793
|
+
imports.wbg.__wbindgen_closure_wrapper9899 = function(arg0, arg1, arg2) {
|
|
1794
|
+
const ret = makeMutClosure(arg0, arg1, 759, __wbg_adapter_58);
|
|
1778
1795
|
return ret;
|
|
1779
1796
|
};
|
|
1780
1797
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -5,6 +5,7 @@ export const __wbg_breezsdk_free: (a: number, b: number) => void;
|
|
|
5
5
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
6
6
|
export const __wbg_tokenissuer_free: (a: number, b: number) => void;
|
|
7
7
|
export const breezsdk_addEventListener: (a: number, b: any) => any;
|
|
8
|
+
export const breezsdk_cancelLeafOptimization: (a: number) => any;
|
|
8
9
|
export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any;
|
|
9
10
|
export const breezsdk_checkMessage: (a: number, b: any) => any;
|
|
10
11
|
export const breezsdk_claimDeposit: (a: number, b: any) => any;
|
|
@@ -12,6 +13,7 @@ export const breezsdk_claimHtlcPayment: (a: number, b: any) => any;
|
|
|
12
13
|
export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
13
14
|
export const breezsdk_disconnect: (a: number) => any;
|
|
14
15
|
export const breezsdk_getInfo: (a: number, b: any) => any;
|
|
16
|
+
export const breezsdk_getLeafOptimizationProgress: (a: number) => any;
|
|
15
17
|
export const breezsdk_getLightningAddress: (a: number) => any;
|
|
16
18
|
export const breezsdk_getPayment: (a: number, b: any) => any;
|
|
17
19
|
export const breezsdk_getTokenIssuer: (a: number) => number;
|
|
@@ -33,6 +35,7 @@ export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
|
33
35
|
export const breezsdk_removeEventListener: (a: number, b: number, c: number) => any;
|
|
34
36
|
export const breezsdk_sendPayment: (a: number, b: any) => any;
|
|
35
37
|
export const breezsdk_signMessage: (a: number, b: any) => any;
|
|
38
|
+
export const breezsdk_startLeafOptimization: (a: number) => void;
|
|
36
39
|
export const breezsdk_syncWallet: (a: number, b: any) => any;
|
|
37
40
|
export const breezsdk_updateUserSettings: (a: number, b: any) => any;
|
|
38
41
|
export const connect: (a: any) => any;
|
|
@@ -82,7 +85,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
82
85
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
83
86
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
84
87
|
export const __externref_table_dealloc: (a: number) => void;
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272: (a: number, b: number) => void;
|
|
89
|
+
export const closure996_externref_shim: (a: number, b: number, c: any) => void;
|
|
90
|
+
export const closure564_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
88
91
|
export const __wbindgen_start: () => void;
|