@breeztech/breez-sdk-spark 0.7.3 → 0.7.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 +385 -368
- package/bundler/breez_sdk_spark_wasm_bg.js +64 -36
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -4
- package/deno/breez_sdk_spark_wasm.d.ts +385 -368
- package/deno/breez_sdk_spark_wasm.js +63 -36
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -4
- package/nodejs/breez_sdk_spark_wasm.d.ts +385 -368
- package/nodejs/breez_sdk_spark_wasm.js +64 -36
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -4
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +391 -372
- package/web/breez_sdk_spark_wasm.js +63 -36
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -4
|
@@ -296,11 +296,11 @@ function __wbg_adapter_64(arg0, arg1) {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
function __wbg_adapter_67(arg0, arg1, arg2) {
|
|
299
|
-
wasm.
|
|
299
|
+
wasm.closure1052_externref_shim(arg0, arg1, arg2);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
function
|
|
303
|
-
wasm.
|
|
302
|
+
function __wbg_adapter_353(arg0, arg1, arg2, arg3) {
|
|
303
|
+
wasm.closure637_externref_shim(arg0, arg1, arg2, arg3);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -347,6 +347,14 @@ export class BreezSdk {
|
|
|
347
347
|
const ret = wasm.breezsdk_disconnect(this.__wbg_ptr);
|
|
348
348
|
return ret;
|
|
349
349
|
}
|
|
350
|
+
/**
|
|
351
|
+
* @param {LnurlAuthRequestDetails} request_data
|
|
352
|
+
* @returns {Promise<LnurlCallbackStatus>}
|
|
353
|
+
*/
|
|
354
|
+
lnurlAuth(request_data) {
|
|
355
|
+
const ret = wasm.breezsdk_lnurlAuth(this.__wbg_ptr, request_data);
|
|
356
|
+
return ret;
|
|
357
|
+
}
|
|
350
358
|
/**
|
|
351
359
|
* @param {GetPaymentRequest} request
|
|
352
360
|
* @returns {Promise<GetPaymentResponse>}
|
|
@@ -640,16 +648,14 @@ export class DefaultSigner {
|
|
|
640
648
|
wasm.__wbg_defaultsigner_free(ptr, 0);
|
|
641
649
|
}
|
|
642
650
|
/**
|
|
643
|
-
* @param {
|
|
651
|
+
* @param {MessageBytes} message
|
|
644
652
|
* @param {string} path
|
|
645
653
|
* @returns {Promise<EcdsaSignatureBytes>}
|
|
646
654
|
*/
|
|
647
655
|
signEcdsa(message, path) {
|
|
648
|
-
const ptr0 =
|
|
656
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
649
657
|
const len0 = WASM_VECTOR_LEN;
|
|
650
|
-
const
|
|
651
|
-
const len1 = WASM_VECTOR_LEN;
|
|
652
|
-
const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
658
|
+
const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
|
|
653
659
|
return ret;
|
|
654
660
|
}
|
|
655
661
|
/**
|
|
@@ -660,6 +666,19 @@ export class DefaultSigner {
|
|
|
660
666
|
const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
|
|
661
667
|
return ret;
|
|
662
668
|
}
|
|
669
|
+
/**
|
|
670
|
+
* @param {Uint8Array} message
|
|
671
|
+
* @param {string} path
|
|
672
|
+
* @returns {Promise<HashedMessageBytes>}
|
|
673
|
+
*/
|
|
674
|
+
hmacSha256(message, path) {
|
|
675
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
676
|
+
const len0 = WASM_VECTOR_LEN;
|
|
677
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
678
|
+
const len1 = WASM_VECTOR_LEN;
|
|
679
|
+
const ret = wasm.defaultsigner_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
680
|
+
return ret;
|
|
681
|
+
}
|
|
663
682
|
/**
|
|
664
683
|
* @param {Uint8Array} message
|
|
665
684
|
* @param {string} path
|
|
@@ -744,16 +763,14 @@ export class DefaultSigner {
|
|
|
744
763
|
return ret;
|
|
745
764
|
}
|
|
746
765
|
/**
|
|
747
|
-
* @param {
|
|
766
|
+
* @param {MessageBytes} message
|
|
748
767
|
* @param {string} path
|
|
749
768
|
* @returns {Promise<RecoverableEcdsaSignatureBytes>}
|
|
750
769
|
*/
|
|
751
770
|
signEcdsaRecoverable(message, path) {
|
|
752
|
-
const ptr0 =
|
|
771
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
772
|
const len0 = WASM_VECTOR_LEN;
|
|
754
|
-
const
|
|
755
|
-
const len1 = WASM_VECTOR_LEN;
|
|
756
|
-
const ret = wasm.defaultsigner_signEcdsaRecoverable(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
773
|
+
const ret = wasm.defaultsigner_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
|
|
757
774
|
return ret;
|
|
758
775
|
}
|
|
759
776
|
/**
|
|
@@ -1557,6 +1574,20 @@ const imports = {
|
|
|
1557
1574
|
const ret = arg0.headers;
|
|
1558
1575
|
return ret;
|
|
1559
1576
|
},
|
|
1577
|
+
__wbg_hmacSha256_c6633de6089f686f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1578
|
+
let deferred1_0;
|
|
1579
|
+
let deferred1_1;
|
|
1580
|
+
try {
|
|
1581
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1582
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1583
|
+
deferred1_0 = arg3;
|
|
1584
|
+
deferred1_1 = arg4;
|
|
1585
|
+
const ret = arg0.hmacSha256(v0, getStringFromWasm0(arg3, arg4));
|
|
1586
|
+
return ret;
|
|
1587
|
+
} finally {
|
|
1588
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1589
|
+
}
|
|
1590
|
+
}, arguments) },
|
|
1560
1591
|
__wbg_identityPublicKey_c8b35005055a3df0: function() { return handleError(function (arg0) {
|
|
1561
1592
|
const ret = arg0.identityPublicKey();
|
|
1562
1593
|
return ret;
|
|
@@ -1703,7 +1734,7 @@ const imports = {
|
|
|
1703
1734
|
const a = state0.a;
|
|
1704
1735
|
state0.a = 0;
|
|
1705
1736
|
try {
|
|
1706
|
-
return
|
|
1737
|
+
return __wbg_adapter_353(a, state0.b, arg0, arg1);
|
|
1707
1738
|
} finally {
|
|
1708
1739
|
state0.a = a;
|
|
1709
1740
|
}
|
|
@@ -1937,32 +1968,28 @@ const imports = {
|
|
|
1937
1968
|
__wbg_setsignal_75b21ef3a81de905: function(arg0, arg1) {
|
|
1938
1969
|
arg0.signal = arg1;
|
|
1939
1970
|
},
|
|
1940
|
-
|
|
1941
|
-
let
|
|
1942
|
-
let
|
|
1971
|
+
__wbg_signEcdsaRecoverable_756dd79f08e5ed39: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1972
|
+
let deferred0_0;
|
|
1973
|
+
let deferred0_1;
|
|
1943
1974
|
try {
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
deferred1_1 = arg4;
|
|
1948
|
-
const ret = arg0.signEcdsaRecoverable(v0, getStringFromWasm0(arg3, arg4));
|
|
1975
|
+
deferred0_0 = arg2;
|
|
1976
|
+
deferred0_1 = arg3;
|
|
1977
|
+
const ret = arg0.signEcdsaRecoverable(arg1, getStringFromWasm0(arg2, arg3));
|
|
1949
1978
|
return ret;
|
|
1950
1979
|
} finally {
|
|
1951
|
-
wasm.__wbindgen_free(
|
|
1980
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1952
1981
|
}
|
|
1953
1982
|
}, arguments) },
|
|
1954
|
-
|
|
1955
|
-
let
|
|
1956
|
-
let
|
|
1983
|
+
__wbg_signEcdsa_0ebea9dfc3b7c28f: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1984
|
+
let deferred0_0;
|
|
1985
|
+
let deferred0_1;
|
|
1957
1986
|
try {
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
deferred1_1 = arg4;
|
|
1962
|
-
const ret = arg0.signEcdsa(v0, getStringFromWasm0(arg3, arg4));
|
|
1987
|
+
deferred0_0 = arg2;
|
|
1988
|
+
deferred0_1 = arg3;
|
|
1989
|
+
const ret = arg0.signEcdsa(arg1, getStringFromWasm0(arg2, arg3));
|
|
1963
1990
|
return ret;
|
|
1964
1991
|
} finally {
|
|
1965
|
-
wasm.__wbindgen_free(
|
|
1992
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1966
1993
|
}
|
|
1967
1994
|
}, arguments) },
|
|
1968
1995
|
__wbg_signFrost_06ac652135c4e862: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2155,12 +2182,12 @@ const imports = {
|
|
|
2155
2182
|
const ret = false;
|
|
2156
2183
|
return ret;
|
|
2157
2184
|
},
|
|
2158
|
-
|
|
2159
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2185
|
+
__wbindgen_closure_wrapper11278: function(arg0, arg1, arg2) {
|
|
2186
|
+
const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
|
|
2160
2187
|
return ret;
|
|
2161
2188
|
},
|
|
2162
|
-
|
|
2163
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2189
|
+
__wbindgen_closure_wrapper13182: function(arg0, arg1, arg2) {
|
|
2190
|
+
const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
|
|
2164
2191
|
return ret;
|
|
2165
2192
|
},
|
|
2166
2193
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
Binary file
|
|
@@ -25,6 +25,7 @@ export const breezsdk_listFiatCurrencies: (a: number) => any;
|
|
|
25
25
|
export const breezsdk_listFiatRates: (a: number) => any;
|
|
26
26
|
export const breezsdk_listPayments: (a: number, b: any) => any;
|
|
27
27
|
export const breezsdk_listUnclaimedDeposits: (a: number, b: any) => any;
|
|
28
|
+
export const breezsdk_lnurlAuth: (a: number, b: any) => any;
|
|
28
29
|
export const breezsdk_lnurlPay: (a: number, b: any) => any;
|
|
29
30
|
export const breezsdk_lnurlWithdraw: (a: number, b: any) => any;
|
|
30
31
|
export const breezsdk_parse: (a: number, b: number, c: number) => any;
|
|
@@ -56,9 +57,10 @@ export const defaultsigner_getPublicKeyFromPrivateKeySource: (a: number, b: any)
|
|
|
56
57
|
export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
|
|
57
58
|
export const defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
|
|
58
59
|
export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
60
|
+
export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
59
61
|
export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
|
|
60
|
-
export const defaultsigner_signEcdsa: (a: number, b:
|
|
61
|
-
export const defaultsigner_signEcdsaRecoverable: (a: number, b:
|
|
62
|
+
export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
63
|
+
export const defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
62
64
|
export const defaultsigner_signFrost: (a: number, b: any) => any;
|
|
63
65
|
export const defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
64
66
|
export const defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
|
|
@@ -110,6 +112,6 @@ export const __externref_drop_slice: (a: number, b: number) => void;
|
|
|
110
112
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
111
113
|
export const __externref_table_dealloc: (a: number) => void;
|
|
112
114
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272: (a: number, b: number) => void;
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
+
export const closure1052_externref_shim: (a: number, b: number, c: any) => void;
|
|
116
|
+
export const closure637_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
115
117
|
export const __wbindgen_start: () => void;
|