@breeztech/breez-sdk-spark 0.6.4-rc3 → 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
|
@@ -217,6 +217,15 @@ function debugString(val) {
|
|
|
217
217
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
218
218
|
return className;
|
|
219
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* @param {Network} network
|
|
222
|
+
* @returns {Config}
|
|
223
|
+
*/
|
|
224
|
+
module.exports.defaultConfig = function(network) {
|
|
225
|
+
const ret = wasm.defaultConfig(network);
|
|
226
|
+
return ret;
|
|
227
|
+
};
|
|
228
|
+
|
|
220
229
|
/**
|
|
221
230
|
* @param {Logger} logger
|
|
222
231
|
* @param {string | null} [filter]
|
|
@@ -229,15 +238,6 @@ module.exports.initLogging = function(logger, filter) {
|
|
|
229
238
|
return ret;
|
|
230
239
|
};
|
|
231
240
|
|
|
232
|
-
/**
|
|
233
|
-
* @param {Network} network
|
|
234
|
-
* @returns {Config}
|
|
235
|
-
*/
|
|
236
|
-
module.exports.defaultConfig = function(network) {
|
|
237
|
-
const ret = wasm.defaultConfig(network);
|
|
238
|
-
return ret;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
241
|
/**
|
|
242
242
|
* @param {ConnectRequest} request
|
|
243
243
|
* @returns {Promise<BreezSdk>}
|
|
@@ -264,15 +264,15 @@ module.exports.task_worker_entry_point = function(ptr) {
|
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
function __wbg_adapter_58(arg0, arg1) {
|
|
267
|
-
wasm.
|
|
267
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272(arg0, arg1);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
271
|
-
wasm.
|
|
271
|
+
wasm.closure996_externref_shim(arg0, arg1, arg2);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
function
|
|
275
|
-
wasm.
|
|
274
|
+
function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
|
|
275
|
+
wasm.closure564_externref_shim(arg0, arg1, arg2, arg3);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -507,6 +507,16 @@ class BreezSdk {
|
|
|
507
507
|
const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
|
|
508
508
|
return ret;
|
|
509
509
|
}
|
|
510
|
+
startLeafOptimization() {
|
|
511
|
+
wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @returns {Promise<void>}
|
|
515
|
+
*/
|
|
516
|
+
cancelLeafOptimization() {
|
|
517
|
+
const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
|
|
518
|
+
return ret;
|
|
519
|
+
}
|
|
510
520
|
/**
|
|
511
521
|
* @returns {Promise<void>}
|
|
512
522
|
*/
|
|
@@ -522,6 +532,13 @@ class BreezSdk {
|
|
|
522
532
|
const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
|
|
523
533
|
return ret;
|
|
524
534
|
}
|
|
535
|
+
/**
|
|
536
|
+
* @returns {OptimizationProgress}
|
|
537
|
+
*/
|
|
538
|
+
getLeafOptimizationProgress() {
|
|
539
|
+
const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
|
|
540
|
+
return ret;
|
|
541
|
+
}
|
|
525
542
|
/**
|
|
526
543
|
* @param {CheckLightningAddressRequest} request
|
|
527
544
|
* @returns {Promise<boolean>}
|
|
@@ -1431,7 +1448,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
1431
1448
|
const a = state0.a;
|
|
1432
1449
|
state0.a = 0;
|
|
1433
1450
|
try {
|
|
1434
|
-
return
|
|
1451
|
+
return __wbg_adapter_282(a, state0.b, arg0, arg1);
|
|
1435
1452
|
} finally {
|
|
1436
1453
|
state0.a = a;
|
|
1437
1454
|
}
|
|
@@ -1909,13 +1926,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
1909
1926
|
return ret;
|
|
1910
1927
|
};
|
|
1911
1928
|
|
|
1912
|
-
module.exports.
|
|
1913
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1929
|
+
module.exports.__wbindgen_closure_wrapper11838 = function(arg0, arg1, arg2) {
|
|
1930
|
+
const ret = makeMutClosure(arg0, arg1, 997, __wbg_adapter_61);
|
|
1914
1931
|
return ret;
|
|
1915
1932
|
};
|
|
1916
1933
|
|
|
1917
|
-
module.exports.
|
|
1918
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1934
|
+
module.exports.__wbindgen_closure_wrapper9899 = function(arg0, arg1, arg2) {
|
|
1935
|
+
const ret = makeMutClosure(arg0, arg1, 759, __wbg_adapter_58);
|
|
1919
1936
|
return ret;
|
|
1920
1937
|
};
|
|
1921
1938
|
|
|
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;
|
package/package.json
CHANGED