@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
|
@@ -205,11 +205,11 @@ function debugString(val) {
|
|
|
205
205
|
return className;
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
|
-
* @param {
|
|
209
|
-
* @returns {
|
|
208
|
+
* @param {ConnectRequest} request
|
|
209
|
+
* @returns {Promise<BreezSdk>}
|
|
210
210
|
*/
|
|
211
|
-
export function
|
|
212
|
-
const ret = wasm.
|
|
211
|
+
export function connect(request) {
|
|
212
|
+
const ret = wasm.connect(request);
|
|
213
213
|
return ret;
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -226,11 +226,11 @@ export function initLogging(logger, filter) {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
* @param {
|
|
230
|
-
* @returns {
|
|
229
|
+
* @param {Network} network
|
|
230
|
+
* @returns {Config}
|
|
231
231
|
*/
|
|
232
|
-
export function
|
|
233
|
-
const ret = wasm.
|
|
232
|
+
export function defaultConfig(network) {
|
|
233
|
+
const ret = wasm.defaultConfig(network);
|
|
234
234
|
return ret;
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -251,15 +251,15 @@ export function task_worker_entry_point(ptr) {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
function __wbg_adapter_58(arg0, arg1) {
|
|
254
|
-
wasm.
|
|
254
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbac93e35ba6a14f4(arg0, arg1);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
258
|
-
wasm.
|
|
258
|
+
wasm.closure919_externref_shim(arg0, arg1, arg2);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function
|
|
262
|
-
wasm.
|
|
261
|
+
function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
|
|
262
|
+
wasm.closure517_externref_shim(arg0, arg1, arg2, arg3);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -401,11 +401,10 @@ export class BreezSdk {
|
|
|
401
401
|
return TokenIssuer.__wrap(ret);
|
|
402
402
|
}
|
|
403
403
|
/**
|
|
404
|
-
* @
|
|
405
|
-
* @returns {Promise<WaitForPaymentResponse>}
|
|
404
|
+
* @returns {Promise<RecommendedFees>}
|
|
406
405
|
*/
|
|
407
|
-
|
|
408
|
-
const ret = wasm.
|
|
406
|
+
recommendedFees() {
|
|
407
|
+
const ret = wasm.breezsdk_recommendedFees(this.__wbg_ptr);
|
|
409
408
|
return ret;
|
|
410
409
|
}
|
|
411
410
|
/**
|
|
@@ -758,14 +757,15 @@ export class SdkBuilder {
|
|
|
758
757
|
}
|
|
759
758
|
/**
|
|
760
759
|
* @param {string} url
|
|
760
|
+
* @param {ChainApiType} api_type
|
|
761
761
|
* @param {Credentials | null} [credentials]
|
|
762
762
|
* @returns {SdkBuilder}
|
|
763
763
|
*/
|
|
764
|
-
withRestChainService(url, credentials) {
|
|
764
|
+
withRestChainService(url, api_type, credentials) {
|
|
765
765
|
const ptr = this.__destroy_into_raw();
|
|
766
766
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
767
767
|
const len0 = WASM_VECTOR_LEN;
|
|
768
|
-
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
768
|
+
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
769
769
|
return SdkBuilder.__wrap(ret);
|
|
770
770
|
}
|
|
771
771
|
/**
|
|
@@ -1329,7 +1329,7 @@ const imports = {
|
|
|
1329
1329
|
const a = state0.a;
|
|
1330
1330
|
state0.a = 0;
|
|
1331
1331
|
try {
|
|
1332
|
-
return
|
|
1332
|
+
return __wbg_adapter_224(a, state0.b, arg0, arg1);
|
|
1333
1333
|
} finally {
|
|
1334
1334
|
state0.a = a;
|
|
1335
1335
|
}
|
|
@@ -1449,6 +1449,10 @@ const imports = {
|
|
|
1449
1449
|
const ret = arg0.read();
|
|
1450
1450
|
return ret;
|
|
1451
1451
|
},
|
|
1452
|
+
__wbg_recommendedFees_a61f331fce46523e: function() { return handleError(function (arg0) {
|
|
1453
|
+
const ret = arg0.recommendedFees();
|
|
1454
|
+
return ret;
|
|
1455
|
+
}, arguments) },
|
|
1452
1456
|
__wbg_releaseLock_091899af97991d2e: function(arg0) {
|
|
1453
1457
|
arg0.releaseLock();
|
|
1454
1458
|
},
|
|
@@ -1710,12 +1714,12 @@ const imports = {
|
|
|
1710
1714
|
const ret = false;
|
|
1711
1715
|
return ret;
|
|
1712
1716
|
},
|
|
1713
|
-
|
|
1714
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1717
|
+
__wbindgen_closure_wrapper11284: function(arg0, arg1, arg2) {
|
|
1718
|
+
const ret = makeMutClosure(arg0, arg1, 920, __wbg_adapter_61);
|
|
1715
1719
|
return ret;
|
|
1716
1720
|
},
|
|
1717
|
-
|
|
1718
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1721
|
+
__wbindgen_closure_wrapper9405: function(arg0, arg1, arg2) {
|
|
1722
|
+
const ret = makeMutClosure(arg0, arg1, 689, __wbg_adapter_58);
|
|
1719
1723
|
return ret;
|
|
1720
1724
|
},
|
|
1721
1725
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
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;
|