@breeztech/breez-sdk-spark 0.16.1-dev1 → 0.17.1
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 +94 -23
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +188 -46
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +15 -10
- package/bundler/storage/index.js +153 -21
- package/deno/breez_sdk_spark_wasm.d.ts +94 -23
- package/deno/breez_sdk_spark_wasm.js +188 -46
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +15 -10
- package/nodejs/breez_sdk_spark_wasm.d.ts +94 -23
- package/nodejs/breez_sdk_spark_wasm.js +189 -46
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +15 -10
- package/nodejs/index.mjs +1 -0
- package/nodejs/mysql-storage/index.cjs +129 -14
- package/nodejs/mysql-storage/migrations.cjs +31 -1
- package/nodejs/postgres-storage/index.cjs +122 -12
- package/nodejs/postgres-storage/migrations.cjs +28 -1
- package/nodejs/storage/index.cjs +118 -12
- package/nodejs/storage/migrations.cjs +25 -1
- package/package.json +1 -1
- package/ssr/index.js +5 -0
- package/web/breez_sdk_spark_wasm.d.ts +109 -33
- package/web/breez_sdk_spark_wasm.js +188 -46
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +15 -10
- package/web/storage/index.js +153 -21
|
@@ -194,6 +194,14 @@ export class BreezSdk {
|
|
|
194
194
|
const ret = wasm.breezsdk_fetchConversionLimits(this.__wbg_ptr, request);
|
|
195
195
|
return ret;
|
|
196
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* @param {CrossChainRouteFilter} filter
|
|
199
|
+
* @returns {Promise<CrossChainRoutePair[]>}
|
|
200
|
+
*/
|
|
201
|
+
getCrossChainRoutes(filter) {
|
|
202
|
+
const ret = wasm.breezsdk_getCrossChainRoutes(this.__wbg_ptr, filter);
|
|
203
|
+
return ret;
|
|
204
|
+
}
|
|
197
205
|
/**
|
|
198
206
|
* @param {GetInfoRequest} request
|
|
199
207
|
* @returns {Promise<GetInfoResponse>}
|
|
@@ -1486,6 +1494,16 @@ export function postgresStorage(config) {
|
|
|
1486
1494
|
return WasmStorageConfig.__wrap(ret);
|
|
1487
1495
|
}
|
|
1488
1496
|
|
|
1497
|
+
/**
|
|
1498
|
+
* Runs automatically when the wasm module is instantiated. Installs the
|
|
1499
|
+
* panic hook so Rust panics surface as readable `console.error` output
|
|
1500
|
+
* (with the panic message + `file.rs:line`) instead of a bare
|
|
1501
|
+
* `RuntimeError: unreachable`.
|
|
1502
|
+
*/
|
|
1503
|
+
export function start() {
|
|
1504
|
+
wasm.start();
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1489
1507
|
/**
|
|
1490
1508
|
* Entry point invoked by JavaScript in a worker.
|
|
1491
1509
|
* @param {number} ptr
|
|
@@ -1727,6 +1745,9 @@ export function __wbg_catch_f939343cb181958c(arg0, arg1) {
|
|
|
1727
1745
|
const ret = arg0.catch(arg1);
|
|
1728
1746
|
return ret;
|
|
1729
1747
|
}
|
|
1748
|
+
export function __wbg_clearInterval_d25b0cf526eff7ae(arg0) {
|
|
1749
|
+
globalThis.clearInterval(arg0);
|
|
1750
|
+
}
|
|
1730
1751
|
export function __wbg_clearTimeout_113b1cde814ec762(arg0) {
|
|
1731
1752
|
const ret = clearTimeout(arg0);
|
|
1732
1753
|
return ret;
|
|
@@ -1744,6 +1765,9 @@ export function __wbg_close_931d0c62e2aab92c() { return handleError(function (ar
|
|
|
1744
1765
|
export function __wbg_close_de471367367aa5cb() { return handleError(function (arg0) {
|
|
1745
1766
|
arg0.close();
|
|
1746
1767
|
}, arguments); }
|
|
1768
|
+
export function __wbg_close_f1af935d7d7cec78() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1769
|
+
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
1770
|
+
}, arguments); }
|
|
1747
1771
|
export function __wbg_code_be6f339819ebb2c4(arg0) {
|
|
1748
1772
|
const ret = arg0.code;
|
|
1749
1773
|
return ret;
|
|
@@ -1919,6 +1943,17 @@ export function __wbg_entries_bb9843ba73dc70d6(arg0) {
|
|
|
1919
1943
|
export function __wbg_error_145dadf4216d70bc(arg0, arg1) {
|
|
1920
1944
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1921
1945
|
}
|
|
1946
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
1947
|
+
let deferred0_0;
|
|
1948
|
+
let deferred0_1;
|
|
1949
|
+
try {
|
|
1950
|
+
deferred0_0 = arg0;
|
|
1951
|
+
deferred0_1 = arg1;
|
|
1952
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1953
|
+
} finally {
|
|
1954
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1922
1957
|
export function __wbg_externalsigners_new(arg0) {
|
|
1923
1958
|
const ret = ExternalSigners.__wrap(arg0);
|
|
1924
1959
|
return ret;
|
|
@@ -2015,6 +2050,23 @@ export function __wbg_getContact_35b5c6f2fa25cf9e() { return handleError(functio
|
|
|
2015
2050
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2016
2051
|
}
|
|
2017
2052
|
}, arguments); }
|
|
2053
|
+
export function __wbg_getCrossChainSwap_e3b8fcf14d3d17ce() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2054
|
+
let deferred0_0;
|
|
2055
|
+
let deferred0_1;
|
|
2056
|
+
let deferred1_0;
|
|
2057
|
+
let deferred1_1;
|
|
2058
|
+
try {
|
|
2059
|
+
deferred0_0 = arg1;
|
|
2060
|
+
deferred0_1 = arg2;
|
|
2061
|
+
deferred1_0 = arg3;
|
|
2062
|
+
deferred1_1 = arg4;
|
|
2063
|
+
const ret = arg0.getCrossChainSwap(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2064
|
+
return ret;
|
|
2065
|
+
} finally {
|
|
2066
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2067
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2068
|
+
}
|
|
2069
|
+
}, arguments); }
|
|
2018
2070
|
export function __wbg_getIdentityPublicKey_c6fcd87d66ed6927() { return handleError(function (arg0) {
|
|
2019
2071
|
const ret = arg0.getIdentityPublicKey();
|
|
2020
2072
|
return ret;
|
|
@@ -2297,6 +2349,18 @@ export function __wbg_length_ba3c032602efe310(arg0) {
|
|
|
2297
2349
|
const ret = arg0.length;
|
|
2298
2350
|
return ret;
|
|
2299
2351
|
}
|
|
2352
|
+
export function __wbg_listActiveCrossChainSwaps_7339427675c1ddec() { return handleError(function (arg0, arg1, arg2) {
|
|
2353
|
+
let deferred0_0;
|
|
2354
|
+
let deferred0_1;
|
|
2355
|
+
try {
|
|
2356
|
+
deferred0_0 = arg1;
|
|
2357
|
+
deferred0_1 = arg2;
|
|
2358
|
+
const ret = arg0.listActiveCrossChainSwaps(getStringFromWasm0(arg1, arg2));
|
|
2359
|
+
return ret;
|
|
2360
|
+
} finally {
|
|
2361
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2362
|
+
}
|
|
2363
|
+
}, arguments); }
|
|
2300
2364
|
export function __wbg_listContacts_0afeb7e9554fdb74() { return handleError(function (arg0, arg1) {
|
|
2301
2365
|
const ret = arg0.listContacts(arg1);
|
|
2302
2366
|
return ret;
|
|
@@ -2346,6 +2410,10 @@ export function __wbg_new_18865c63fa645c6f() { return handleError(function () {
|
|
|
2346
2410
|
const ret = new Headers();
|
|
2347
2411
|
return ret;
|
|
2348
2412
|
}, arguments); }
|
|
2413
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
2414
|
+
const ret = new Error();
|
|
2415
|
+
return ret;
|
|
2416
|
+
}
|
|
2349
2417
|
export function __wbg_new_2fad8ca02fd00684() {
|
|
2350
2418
|
const ret = new Object();
|
|
2351
2419
|
return ret;
|
|
@@ -2607,6 +2675,14 @@ export function __wbg_setCachedItem_a09dafdd0852fcb6() { return handleError(func
|
|
|
2607
2675
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2608
2676
|
}
|
|
2609
2677
|
}, arguments); }
|
|
2678
|
+
export function __wbg_setCrossChainSwap_9047f4cc41fe2eca() { return handleError(function (arg0, arg1) {
|
|
2679
|
+
const ret = arg0.setCrossChainSwap(arg1);
|
|
2680
|
+
return ret;
|
|
2681
|
+
}, arguments); }
|
|
2682
|
+
export function __wbg_setInterval_2aba203c2a1ea83f(arg0, arg1) {
|
|
2683
|
+
const ret = globalThis.setInterval(arg0, arg1);
|
|
2684
|
+
return ret;
|
|
2685
|
+
}
|
|
2610
2686
|
export function __wbg_setLeaves_3a013e3266762f4b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2611
2687
|
const ret = arg0.setLeaves(arg1, arg2, arg3);
|
|
2612
2688
|
return ret;
|
|
@@ -2775,6 +2851,13 @@ export function __wbg_signal_4643ce883b92b553(arg0) {
|
|
|
2775
2851
|
const ret = arg0.signal;
|
|
2776
2852
|
return ret;
|
|
2777
2853
|
}
|
|
2854
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
2855
|
+
const ret = arg1.stack;
|
|
2856
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2857
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2858
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2859
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2860
|
+
}
|
|
2778
2861
|
export function __wbg_startStaticDepositRefund_5b591bbea22aa0d2() { return handleError(function (arg0, arg1) {
|
|
2779
2862
|
const ret = arg0.startStaticDepositRefund(arg1);
|
|
2780
2863
|
return ret;
|
|
@@ -2944,108 +3027,130 @@ export function __wbg_wasmsdkcontext_new(arg0) {
|
|
|
2944
3027
|
}
|
|
2945
3028
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2946
3029
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2947
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3030
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522);
|
|
2948
3031
|
return ret;
|
|
2949
3032
|
}
|
|
2950
3033
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2951
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2952
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3034
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3035
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
|
|
2953
3036
|
return ret;
|
|
2954
3037
|
}
|
|
2955
3038
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
2956
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2957
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3039
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3040
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
|
|
2958
3041
|
return ret;
|
|
2959
3042
|
}
|
|
2960
3043
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
2961
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2962
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3044
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3045
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
|
|
2963
3046
|
return ret;
|
|
2964
3047
|
}
|
|
2965
3048
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
2966
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2967
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3049
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3050
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
|
|
2968
3051
|
return ret;
|
|
2969
3052
|
}
|
|
2970
3053
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
2971
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2972
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3054
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3055
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
2973
3056
|
return ret;
|
|
2974
3057
|
}
|
|
2975
3058
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
2976
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2977
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3059
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3060
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6);
|
|
2978
3061
|
return ret;
|
|
2979
3062
|
}
|
|
2980
3063
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
2981
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2982
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3064
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3065
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7);
|
|
2983
3066
|
return ret;
|
|
2984
3067
|
}
|
|
2985
3068
|
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
2986
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2987
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3069
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3070
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8);
|
|
3071
|
+
return ret;
|
|
3072
|
+
}
|
|
3073
|
+
export function __wbindgen_cast_000000000000000a(arg0, arg1) {
|
|
3074
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3075
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9);
|
|
2988
3076
|
return ret;
|
|
2989
3077
|
}
|
|
2990
|
-
export function
|
|
3078
|
+
export function __wbindgen_cast_000000000000000b(arg0, arg1) {
|
|
3079
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3080
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
3081
|
+
return ret;
|
|
3082
|
+
}
|
|
3083
|
+
export function __wbindgen_cast_000000000000000c(arg0, arg1) {
|
|
3084
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3085
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3086
|
+
return ret;
|
|
3087
|
+
}
|
|
3088
|
+
export function __wbindgen_cast_000000000000000d(arg0) {
|
|
2991
3089
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2992
3090
|
const ret = arg0;
|
|
2993
3091
|
return ret;
|
|
2994
3092
|
}
|
|
2995
|
-
export function
|
|
3093
|
+
export function __wbindgen_cast_000000000000000e(arg0) {
|
|
2996
3094
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2997
3095
|
const ret = arg0;
|
|
2998
3096
|
return ret;
|
|
2999
3097
|
}
|
|
3000
|
-
export function
|
|
3098
|
+
export function __wbindgen_cast_000000000000000f(arg0, arg1) {
|
|
3001
3099
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3002
3100
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3003
3101
|
return ret;
|
|
3004
3102
|
}
|
|
3005
|
-
export function
|
|
3103
|
+
export function __wbindgen_cast_0000000000000010(arg0, arg1) {
|
|
3006
3104
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3007
3105
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3008
3106
|
return ret;
|
|
3009
3107
|
}
|
|
3010
|
-
export function
|
|
3108
|
+
export function __wbindgen_cast_0000000000000011(arg0, arg1) {
|
|
3011
3109
|
// Cast intrinsic for `U128 -> Externref`.
|
|
3012
3110
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
3013
3111
|
return ret;
|
|
3014
3112
|
}
|
|
3015
|
-
export function
|
|
3113
|
+
export function __wbindgen_cast_0000000000000012(arg0) {
|
|
3016
3114
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3017
3115
|
const ret = BigInt.asUintN(64, arg0);
|
|
3018
3116
|
return ret;
|
|
3019
3117
|
}
|
|
3020
|
-
export function
|
|
3118
|
+
export function __wbindgen_cast_0000000000000013(arg0, arg1) {
|
|
3021
3119
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3022
3120
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3023
3121
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
3024
3122
|
const ret = v0;
|
|
3025
3123
|
return ret;
|
|
3026
3124
|
}
|
|
3027
|
-
export function
|
|
3125
|
+
export function __wbindgen_cast_0000000000000014(arg0, arg1) {
|
|
3126
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3127
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3128
|
+
// Cast intrinsic for `Vector(NamedExternref("CrossChainRoutePair")) -> Externref`.
|
|
3129
|
+
const ret = v0;
|
|
3130
|
+
return ret;
|
|
3131
|
+
}
|
|
3132
|
+
export function __wbindgen_cast_0000000000000015(arg0, arg1) {
|
|
3028
3133
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3029
3134
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3030
3135
|
// Cast intrinsic for `Vector(NamedExternref("ExternalFrostShareResult")) -> Externref`.
|
|
3031
3136
|
const ret = v0;
|
|
3032
3137
|
return ret;
|
|
3033
3138
|
}
|
|
3034
|
-
export function
|
|
3139
|
+
export function __wbindgen_cast_0000000000000016(arg0, arg1) {
|
|
3035
3140
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3036
3141
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3037
3142
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
3038
3143
|
const ret = v0;
|
|
3039
3144
|
return ret;
|
|
3040
3145
|
}
|
|
3041
|
-
export function
|
|
3146
|
+
export function __wbindgen_cast_0000000000000017(arg0, arg1) {
|
|
3042
3147
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3043
3148
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3044
3149
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
3045
3150
|
const ret = v0;
|
|
3046
3151
|
return ret;
|
|
3047
3152
|
}
|
|
3048
|
-
export function
|
|
3153
|
+
export function __wbindgen_cast_0000000000000018(arg0, arg1) {
|
|
3049
3154
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3050
3155
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3051
3156
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -3061,52 +3166,64 @@ export function __wbindgen_init_externref_table() {
|
|
|
3061
3166
|
table.set(offset + 2, true);
|
|
3062
3167
|
table.set(offset + 3, false);
|
|
3063
3168
|
}
|
|
3064
|
-
function
|
|
3065
|
-
wasm.
|
|
3169
|
+
function wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1) {
|
|
3170
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1);
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
function wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1) {
|
|
3174
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1);
|
|
3066
3175
|
}
|
|
3067
3176
|
|
|
3068
|
-
function
|
|
3069
|
-
wasm.
|
|
3177
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2) {
|
|
3178
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2);
|
|
3070
3179
|
}
|
|
3071
3180
|
|
|
3072
|
-
function
|
|
3073
|
-
wasm.
|
|
3181
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2) {
|
|
3182
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2);
|
|
3074
3183
|
}
|
|
3075
3184
|
|
|
3076
|
-
function
|
|
3077
|
-
wasm.
|
|
3185
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2) {
|
|
3186
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2);
|
|
3078
3187
|
}
|
|
3079
3188
|
|
|
3080
|
-
function
|
|
3081
|
-
|
|
3189
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2) {
|
|
3190
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2);
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2) {
|
|
3194
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2) {
|
|
3198
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2);
|
|
3082
3199
|
if (ret[1]) {
|
|
3083
3200
|
throw takeFromExternrefTable0(ret[0]);
|
|
3084
3201
|
}
|
|
3085
3202
|
}
|
|
3086
3203
|
|
|
3087
|
-
function
|
|
3088
|
-
const ret = wasm.
|
|
3204
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2) {
|
|
3205
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2);
|
|
3089
3206
|
if (ret[1]) {
|
|
3090
3207
|
throw takeFromExternrefTable0(ret[0]);
|
|
3091
3208
|
}
|
|
3092
3209
|
}
|
|
3093
3210
|
|
|
3094
|
-
function
|
|
3095
|
-
const ret = wasm.
|
|
3211
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2) {
|
|
3212
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2);
|
|
3096
3213
|
if (ret[1]) {
|
|
3097
3214
|
throw takeFromExternrefTable0(ret[0]);
|
|
3098
3215
|
}
|
|
3099
3216
|
}
|
|
3100
3217
|
|
|
3101
|
-
function
|
|
3102
|
-
const ret = wasm.
|
|
3218
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2) {
|
|
3219
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2);
|
|
3103
3220
|
if (ret[1]) {
|
|
3104
3221
|
throw takeFromExternrefTable0(ret[0]);
|
|
3105
3222
|
}
|
|
3106
3223
|
}
|
|
3107
3224
|
|
|
3108
|
-
function
|
|
3109
|
-
const ret = wasm.
|
|
3225
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2) {
|
|
3226
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2);
|
|
3110
3227
|
if (ret[1]) {
|
|
3111
3228
|
throw takeFromExternrefTable0(ret[0]);
|
|
3112
3229
|
}
|
|
@@ -3309,6 +3426,31 @@ function isLikeNone(x) {
|
|
|
3309
3426
|
return x === undefined || x === null;
|
|
3310
3427
|
}
|
|
3311
3428
|
|
|
3429
|
+
function makeClosure(arg0, arg1, f) {
|
|
3430
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3431
|
+
const real = (...args) => {
|
|
3432
|
+
|
|
3433
|
+
// First up with a closure we increment the internal reference
|
|
3434
|
+
// count. This ensures that the Rust closure environment won't
|
|
3435
|
+
// be deallocated while we're invoking it.
|
|
3436
|
+
state.cnt++;
|
|
3437
|
+
try {
|
|
3438
|
+
return f(state.a, state.b, ...args);
|
|
3439
|
+
} finally {
|
|
3440
|
+
real._wbg_cb_unref();
|
|
3441
|
+
}
|
|
3442
|
+
};
|
|
3443
|
+
real._wbg_cb_unref = () => {
|
|
3444
|
+
if (--state.cnt === 0) {
|
|
3445
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3446
|
+
state.a = 0;
|
|
3447
|
+
CLOSURE_DTORS.unregister(state);
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3450
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
3451
|
+
return real;
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3312
3454
|
function makeMutClosure(arg0, arg1, f) {
|
|
3313
3455
|
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3314
3456
|
const real = (...args) => {
|
|
Binary file
|
|
@@ -28,6 +28,7 @@ export const breezsdk_deleteContact: (a: number, b: number, c: number) => any;
|
|
|
28
28
|
export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
29
29
|
export const breezsdk_disconnect: (a: number) => any;
|
|
30
30
|
export const breezsdk_fetchConversionLimits: (a: number, b: any) => any;
|
|
31
|
+
export const breezsdk_getCrossChainRoutes: (a: number, b: any) => any;
|
|
31
32
|
export const breezsdk_getInfo: (a: number, b: any) => any;
|
|
32
33
|
export const breezsdk_getLightningAddress: (a: number) => any;
|
|
33
34
|
export const breezsdk_getPayment: (a: number, b: any) => any;
|
|
@@ -121,6 +122,7 @@ export const sdkbuilder_withRestChainService: (a: number, b: number, c: number,
|
|
|
121
122
|
export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
|
|
122
123
|
export const sdkbuilder_withStorage: (a: number, b: any) => number;
|
|
123
124
|
export const sdkbuilder_withStorageBackend: (a: number, b: number) => number;
|
|
125
|
+
export const start: () => void;
|
|
124
126
|
export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
|
|
125
127
|
export const tokenissuer_createIssuerToken: (a: number, b: any) => any;
|
|
126
128
|
export const tokenissuer_freezeIssuerToken: (a: number, b: any) => any;
|
|
@@ -146,18 +148,21 @@ export const intounderlyingsink_close: (a: number) => any;
|
|
|
146
148
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
147
149
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
148
150
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
149
|
-
export const __wbg_externalbreezsignerhandle_free: (a: number, b: number) => void;
|
|
150
151
|
export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
|
|
151
|
-
export const
|
|
152
|
-
export const
|
|
153
|
-
export const
|
|
154
|
-
export const
|
|
155
|
-
export const
|
|
152
|
+
export const __wbg_externalbreezsignerhandle_free: (a: number, b: number) => void;
|
|
153
|
+
export const wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522: (a: number, b: number, c: any) => [number, number];
|
|
154
|
+
export const wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6: (a: number, b: number, c: any) => [number, number];
|
|
155
|
+
export const wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7: (a: number, b: number, c: any) => [number, number];
|
|
156
|
+
export const wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8: (a: number, b: number, c: any) => [number, number];
|
|
157
|
+
export const wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9: (a: number, b: number, c: any) => [number, number];
|
|
156
158
|
export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
157
|
-
export const
|
|
158
|
-
export const
|
|
159
|
-
export const
|
|
160
|
-
export const
|
|
159
|
+
export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2: (a: number, b: number, c: any) => void;
|
|
160
|
+
export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2: (a: number, b: number, c: any) => void;
|
|
161
|
+
export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3: (a: number, b: number, c: any) => void;
|
|
162
|
+
export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4: (a: number, b: number, c: any) => void;
|
|
163
|
+
export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5: (a: number, b: number, c: any) => void;
|
|
164
|
+
export const wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a: (a: number, b: number) => void;
|
|
165
|
+
export const wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e: (a: number, b: number) => void;
|
|
161
166
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
162
167
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
163
168
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|