@breeztech/breez-sdk-spark 0.4.2 → 0.4.3-dev1
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 +391 -388
- package/bundler/breez_sdk_spark_wasm_bg.js +28 -23
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -5
- package/deno/breez_sdk_spark_wasm.d.ts +391 -388
- package/deno/breez_sdk_spark_wasm.js +27 -23
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -5
- package/nodejs/breez_sdk_spark_wasm.d.ts +391 -388
- package/nodejs/breez_sdk_spark_wasm.js +28 -23
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -5
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +396 -393
- package/web/breez_sdk_spark_wasm.js +27 -23
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -5
|
@@ -218,11 +218,11 @@ function debugString(val) {
|
|
|
218
218
|
return className;
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
* @param {
|
|
222
|
-
* @returns {
|
|
221
|
+
* @param {ConnectRequest} request
|
|
222
|
+
* @returns {Promise<BreezSdk>}
|
|
223
223
|
*/
|
|
224
|
-
module.exports.
|
|
225
|
-
const ret = wasm.
|
|
224
|
+
module.exports.connect = function(request) {
|
|
225
|
+
const ret = wasm.connect(request);
|
|
226
226
|
return ret;
|
|
227
227
|
};
|
|
228
228
|
|
|
@@ -239,11 +239,11 @@ module.exports.initLogging = function(logger, filter) {
|
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
|
-
* @param {
|
|
243
|
-
* @returns {
|
|
242
|
+
* @param {Network} network
|
|
243
|
+
* @returns {Config}
|
|
244
244
|
*/
|
|
245
|
-
module.exports.
|
|
246
|
-
const ret = wasm.
|
|
245
|
+
module.exports.defaultConfig = function(network) {
|
|
246
|
+
const ret = wasm.defaultConfig(network);
|
|
247
247
|
return ret;
|
|
248
248
|
};
|
|
249
249
|
|
|
@@ -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__hbac93e35ba6a14f4(arg0, arg1);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
271
|
-
wasm.
|
|
271
|
+
wasm.closure919_externref_shim(arg0, arg1, arg2);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
function
|
|
275
|
-
wasm.
|
|
274
|
+
function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
|
|
275
|
+
wasm.closure517_externref_shim(arg0, arg1, arg2, arg3);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -414,11 +414,10 @@ class BreezSdk {
|
|
|
414
414
|
return TokenIssuer.__wrap(ret);
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
|
-
* @
|
|
418
|
-
* @returns {Promise<WaitForPaymentResponse>}
|
|
417
|
+
* @returns {Promise<RecommendedFees>}
|
|
419
418
|
*/
|
|
420
|
-
|
|
421
|
-
const ret = wasm.
|
|
419
|
+
recommendedFees() {
|
|
420
|
+
const ret = wasm.breezsdk_recommendedFees(this.__wbg_ptr);
|
|
422
421
|
return ret;
|
|
423
422
|
}
|
|
424
423
|
/**
|
|
@@ -775,14 +774,15 @@ class SdkBuilder {
|
|
|
775
774
|
}
|
|
776
775
|
/**
|
|
777
776
|
* @param {string} url
|
|
777
|
+
* @param {ChainApiType} api_type
|
|
778
778
|
* @param {Credentials | null} [credentials]
|
|
779
779
|
* @returns {SdkBuilder}
|
|
780
780
|
*/
|
|
781
|
-
withRestChainService(url, credentials) {
|
|
781
|
+
withRestChainService(url, api_type, credentials) {
|
|
782
782
|
const ptr = this.__destroy_into_raw();
|
|
783
783
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
784
784
|
const len0 = WASM_VECTOR_LEN;
|
|
785
|
-
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
785
|
+
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
786
786
|
return SdkBuilder.__wrap(ret);
|
|
787
787
|
}
|
|
788
788
|
/**
|
|
@@ -1423,7 +1423,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
1423
1423
|
const a = state0.a;
|
|
1424
1424
|
state0.a = 0;
|
|
1425
1425
|
try {
|
|
1426
|
-
return
|
|
1426
|
+
return __wbg_adapter_224(a, state0.b, arg0, arg1);
|
|
1427
1427
|
} finally {
|
|
1428
1428
|
state0.a = a;
|
|
1429
1429
|
}
|
|
@@ -1569,6 +1569,11 @@ module.exports.__wbg_read_a2434af1186cb56c = function(arg0) {
|
|
|
1569
1569
|
return ret;
|
|
1570
1570
|
};
|
|
1571
1571
|
|
|
1572
|
+
module.exports.__wbg_recommendedFees_a61f331fce46523e = function() { return handleError(function (arg0) {
|
|
1573
|
+
const ret = arg0.recommendedFees();
|
|
1574
|
+
return ret;
|
|
1575
|
+
}, arguments) };
|
|
1576
|
+
|
|
1572
1577
|
module.exports.__wbg_releaseLock_091899af97991d2e = function(arg0) {
|
|
1573
1578
|
arg0.releaseLock();
|
|
1574
1579
|
};
|
|
@@ -1889,13 +1894,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
1889
1894
|
return ret;
|
|
1890
1895
|
};
|
|
1891
1896
|
|
|
1892
|
-
module.exports.
|
|
1893
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1897
|
+
module.exports.__wbindgen_closure_wrapper11284 = function(arg0, arg1, arg2) {
|
|
1898
|
+
const ret = makeMutClosure(arg0, arg1, 920, __wbg_adapter_61);
|
|
1894
1899
|
return ret;
|
|
1895
1900
|
};
|
|
1896
1901
|
|
|
1897
|
-
module.exports.
|
|
1898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1902
|
+
module.exports.__wbindgen_closure_wrapper9405 = function(arg0, arg1, arg2) {
|
|
1903
|
+
const ret = makeMutClosure(arg0, arg1, 689, __wbg_adapter_58);
|
|
1899
1904
|
return ret;
|
|
1900
1905
|
};
|
|
1901
1906
|
|
|
Binary file
|
|
@@ -26,6 +26,7 @@ export const breezsdk_parse: (a: number, b: number, c: number) => any;
|
|
|
26
26
|
export const breezsdk_prepareLnurlPay: (a: number, b: any) => any;
|
|
27
27
|
export const breezsdk_prepareSendPayment: (a: number, b: any) => any;
|
|
28
28
|
export const breezsdk_receivePayment: (a: number, b: any) => any;
|
|
29
|
+
export const breezsdk_recommendedFees: (a: number) => any;
|
|
29
30
|
export const breezsdk_refundDeposit: (a: number, b: any) => any;
|
|
30
31
|
export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
31
32
|
export const breezsdk_removeEventListener: (a: number, b: number, c: number) => any;
|
|
@@ -33,7 +34,6 @@ export const breezsdk_sendPayment: (a: number, b: any) => any;
|
|
|
33
34
|
export const breezsdk_signMessage: (a: number, b: any) => any;
|
|
34
35
|
export const breezsdk_syncWallet: (a: number, b: any) => any;
|
|
35
36
|
export const breezsdk_updateUserSettings: (a: number, b: any) => any;
|
|
36
|
-
export const breezsdk_waitForPayment: (a: number, b: any) => any;
|
|
37
37
|
export const connect: (a: any) => any;
|
|
38
38
|
export const defaultConfig: (a: any) => any;
|
|
39
39
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
@@ -45,7 +45,7 @@ export const sdkbuilder_withFiatService: (a: number, b: any) => number;
|
|
|
45
45
|
export const sdkbuilder_withKeySet: (a: number, b: any, c: number, d: number) => number;
|
|
46
46
|
export const sdkbuilder_withLnurlClient: (a: number, b: any) => number;
|
|
47
47
|
export const sdkbuilder_withPaymentObserver: (a: number, b: any) => number;
|
|
48
|
-
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
48
|
+
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: any, e: number) => number;
|
|
49
49
|
export const sdkbuilder_withStorage: (a: number, b: any) => number;
|
|
50
50
|
export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
|
|
51
51
|
export const tokenissuer_createIssuerToken: (a: number, b: any) => any;
|
|
@@ -81,7 +81,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
81
81
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
82
82
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
83
83
|
export const __externref_table_dealloc: (a: number) => void;
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
84
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbac93e35ba6a14f4: (a: number, b: number) => void;
|
|
85
|
+
export const closure919_externref_shim: (a: number, b: number, c: any) => void;
|
|
86
|
+
export const closure517_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
87
87
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED