@breeztech/breez-sdk-spark 0.16.1-dev1 → 0.17.0
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
|
@@ -196,6 +196,14 @@ export class BreezSdk {
|
|
|
196
196
|
const ret = wasm.breezsdk_fetchConversionLimits(this.__wbg_ptr, request);
|
|
197
197
|
return ret;
|
|
198
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* @param {CrossChainRouteFilter} filter
|
|
201
|
+
* @returns {Promise<CrossChainRoutePair[]>}
|
|
202
|
+
*/
|
|
203
|
+
getCrossChainRoutes(filter) {
|
|
204
|
+
const ret = wasm.breezsdk_getCrossChainRoutes(this.__wbg_ptr, filter);
|
|
205
|
+
return ret;
|
|
206
|
+
}
|
|
199
207
|
/**
|
|
200
208
|
* @param {GetInfoRequest} request
|
|
201
209
|
* @returns {Promise<GetInfoResponse>}
|
|
@@ -1488,6 +1496,16 @@ export function postgresStorage(config) {
|
|
|
1488
1496
|
return WasmStorageConfig.__wrap(ret);
|
|
1489
1497
|
}
|
|
1490
1498
|
|
|
1499
|
+
/**
|
|
1500
|
+
* Runs automatically when the wasm module is instantiated. Installs the
|
|
1501
|
+
* panic hook so Rust panics surface as readable `console.error` output
|
|
1502
|
+
* (with the panic message + `file.rs:line`) instead of a bare
|
|
1503
|
+
* `RuntimeError: unreachable`.
|
|
1504
|
+
*/
|
|
1505
|
+
export function start() {
|
|
1506
|
+
wasm.start();
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1491
1509
|
/**
|
|
1492
1510
|
* Entry point invoked by JavaScript in a worker.
|
|
1493
1511
|
* @param {number} ptr
|
|
@@ -1732,6 +1750,9 @@ function __wbg_get_imports() {
|
|
|
1732
1750
|
const ret = arg0.catch(arg1);
|
|
1733
1751
|
return ret;
|
|
1734
1752
|
},
|
|
1753
|
+
__wbg_clearInterval_d25b0cf526eff7ae: function(arg0) {
|
|
1754
|
+
globalThis.clearInterval(arg0);
|
|
1755
|
+
},
|
|
1735
1756
|
__wbg_clearTimeout_113b1cde814ec762: function(arg0) {
|
|
1736
1757
|
const ret = clearTimeout(arg0);
|
|
1737
1758
|
return ret;
|
|
@@ -1749,6 +1770,9 @@ function __wbg_get_imports() {
|
|
|
1749
1770
|
__wbg_close_de471367367aa5cb: function() { return handleError(function (arg0) {
|
|
1750
1771
|
arg0.close();
|
|
1751
1772
|
}, arguments); },
|
|
1773
|
+
__wbg_close_f1af935d7d7cec78: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1774
|
+
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
1775
|
+
}, arguments); },
|
|
1752
1776
|
__wbg_code_be6f339819ebb2c4: function(arg0) {
|
|
1753
1777
|
const ret = arg0.code;
|
|
1754
1778
|
return ret;
|
|
@@ -1924,6 +1948,17 @@ function __wbg_get_imports() {
|
|
|
1924
1948
|
__wbg_error_145dadf4216d70bc: function(arg0, arg1) {
|
|
1925
1949
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1926
1950
|
},
|
|
1951
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
1952
|
+
let deferred0_0;
|
|
1953
|
+
let deferred0_1;
|
|
1954
|
+
try {
|
|
1955
|
+
deferred0_0 = arg0;
|
|
1956
|
+
deferred0_1 = arg1;
|
|
1957
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1958
|
+
} finally {
|
|
1959
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1927
1962
|
__wbg_externalsigners_new: function(arg0) {
|
|
1928
1963
|
const ret = ExternalSigners.__wrap(arg0);
|
|
1929
1964
|
return ret;
|
|
@@ -2020,6 +2055,23 @@ function __wbg_get_imports() {
|
|
|
2020
2055
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2021
2056
|
}
|
|
2022
2057
|
}, arguments); },
|
|
2058
|
+
__wbg_getCrossChainSwap_e3b8fcf14d3d17ce: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2059
|
+
let deferred0_0;
|
|
2060
|
+
let deferred0_1;
|
|
2061
|
+
let deferred1_0;
|
|
2062
|
+
let deferred1_1;
|
|
2063
|
+
try {
|
|
2064
|
+
deferred0_0 = arg1;
|
|
2065
|
+
deferred0_1 = arg2;
|
|
2066
|
+
deferred1_0 = arg3;
|
|
2067
|
+
deferred1_1 = arg4;
|
|
2068
|
+
const ret = arg0.getCrossChainSwap(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2069
|
+
return ret;
|
|
2070
|
+
} finally {
|
|
2071
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2072
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2073
|
+
}
|
|
2074
|
+
}, arguments); },
|
|
2023
2075
|
__wbg_getIdentityPublicKey_c6fcd87d66ed6927: function() { return handleError(function (arg0) {
|
|
2024
2076
|
const ret = arg0.getIdentityPublicKey();
|
|
2025
2077
|
return ret;
|
|
@@ -2302,6 +2354,18 @@ function __wbg_get_imports() {
|
|
|
2302
2354
|
const ret = arg0.length;
|
|
2303
2355
|
return ret;
|
|
2304
2356
|
},
|
|
2357
|
+
__wbg_listActiveCrossChainSwaps_7339427675c1ddec: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2358
|
+
let deferred0_0;
|
|
2359
|
+
let deferred0_1;
|
|
2360
|
+
try {
|
|
2361
|
+
deferred0_0 = arg1;
|
|
2362
|
+
deferred0_1 = arg2;
|
|
2363
|
+
const ret = arg0.listActiveCrossChainSwaps(getStringFromWasm0(arg1, arg2));
|
|
2364
|
+
return ret;
|
|
2365
|
+
} finally {
|
|
2366
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2367
|
+
}
|
|
2368
|
+
}, arguments); },
|
|
2305
2369
|
__wbg_listContacts_0afeb7e9554fdb74: function() { return handleError(function (arg0, arg1) {
|
|
2306
2370
|
const ret = arg0.listContacts(arg1);
|
|
2307
2371
|
return ret;
|
|
@@ -2351,6 +2415,10 @@ function __wbg_get_imports() {
|
|
|
2351
2415
|
const ret = new Headers();
|
|
2352
2416
|
return ret;
|
|
2353
2417
|
}, arguments); },
|
|
2418
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
2419
|
+
const ret = new Error();
|
|
2420
|
+
return ret;
|
|
2421
|
+
},
|
|
2354
2422
|
__wbg_new_2fad8ca02fd00684: function() {
|
|
2355
2423
|
const ret = new Object();
|
|
2356
2424
|
return ret;
|
|
@@ -2612,6 +2680,14 @@ function __wbg_get_imports() {
|
|
|
2612
2680
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2613
2681
|
}
|
|
2614
2682
|
}, arguments); },
|
|
2683
|
+
__wbg_setCrossChainSwap_9047f4cc41fe2eca: function() { return handleError(function (arg0, arg1) {
|
|
2684
|
+
const ret = arg0.setCrossChainSwap(arg1);
|
|
2685
|
+
return ret;
|
|
2686
|
+
}, arguments); },
|
|
2687
|
+
__wbg_setInterval_2aba203c2a1ea83f: function(arg0, arg1) {
|
|
2688
|
+
const ret = globalThis.setInterval(arg0, arg1);
|
|
2689
|
+
return ret;
|
|
2690
|
+
},
|
|
2615
2691
|
__wbg_setLeaves_3a013e3266762f4b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2616
2692
|
const ret = arg0.setLeaves(arg1, arg2, arg3);
|
|
2617
2693
|
return ret;
|
|
@@ -2780,6 +2856,13 @@ function __wbg_get_imports() {
|
|
|
2780
2856
|
const ret = arg0.signal;
|
|
2781
2857
|
return ret;
|
|
2782
2858
|
},
|
|
2859
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
2860
|
+
const ret = arg1.stack;
|
|
2861
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2862
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2863
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2864
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2865
|
+
},
|
|
2783
2866
|
__wbg_startStaticDepositRefund_5b591bbea22aa0d2: function() { return handleError(function (arg0, arg1) {
|
|
2784
2867
|
const ret = arg0.startStaticDepositRefund(arg1);
|
|
2785
2868
|
return ret;
|
|
@@ -2949,108 +3032,130 @@ function __wbg_get_imports() {
|
|
|
2949
3032
|
},
|
|
2950
3033
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2951
3034
|
// 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`.
|
|
2952
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3035
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522);
|
|
2953
3036
|
return ret;
|
|
2954
3037
|
},
|
|
2955
3038
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2956
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2957
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3039
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3040
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
|
|
2958
3041
|
return ret;
|
|
2959
3042
|
},
|
|
2960
3043
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2961
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2962
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3044
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3045
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
|
|
2963
3046
|
return ret;
|
|
2964
3047
|
},
|
|
2965
3048
|
__wbindgen_cast_0000000000000004: function(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("ErrorEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3050
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
|
|
2968
3051
|
return ret;
|
|
2969
3052
|
},
|
|
2970
3053
|
__wbindgen_cast_0000000000000005: function(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("Event")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3055
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
|
|
2973
3056
|
return ret;
|
|
2974
3057
|
},
|
|
2975
3058
|
__wbindgen_cast_0000000000000006: function(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("MessageEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3060
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
2978
3061
|
return ret;
|
|
2979
3062
|
},
|
|
2980
3063
|
__wbindgen_cast_0000000000000007: function(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("SessionStore")], 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_6);
|
|
2983
3066
|
return ret;
|
|
2984
3067
|
},
|
|
2985
3068
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
2986
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2987
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3069
|
+
// 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`.
|
|
3070
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7);
|
|
2988
3071
|
return ret;
|
|
2989
3072
|
},
|
|
2990
3073
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
2991
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2992
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3074
|
+
// 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`.
|
|
3075
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8);
|
|
3076
|
+
return ret;
|
|
3077
|
+
},
|
|
3078
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
3079
|
+
// 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`.
|
|
3080
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9);
|
|
2993
3081
|
return ret;
|
|
2994
3082
|
},
|
|
2995
|
-
|
|
3083
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
3084
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3085
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
3086
|
+
return ret;
|
|
3087
|
+
},
|
|
3088
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
3089
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3090
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3091
|
+
return ret;
|
|
3092
|
+
},
|
|
3093
|
+
__wbindgen_cast_000000000000000d: function(arg0) {
|
|
2996
3094
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2997
3095
|
const ret = arg0;
|
|
2998
3096
|
return ret;
|
|
2999
3097
|
},
|
|
3000
|
-
|
|
3098
|
+
__wbindgen_cast_000000000000000e: function(arg0) {
|
|
3001
3099
|
// Cast intrinsic for `I64 -> Externref`.
|
|
3002
3100
|
const ret = arg0;
|
|
3003
3101
|
return ret;
|
|
3004
3102
|
},
|
|
3005
|
-
|
|
3103
|
+
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
3006
3104
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3007
3105
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3008
3106
|
return ret;
|
|
3009
3107
|
},
|
|
3010
|
-
|
|
3108
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
3011
3109
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3012
3110
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3013
3111
|
return ret;
|
|
3014
3112
|
},
|
|
3015
|
-
|
|
3113
|
+
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
3016
3114
|
// Cast intrinsic for `U128 -> Externref`.
|
|
3017
3115
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
3018
3116
|
return ret;
|
|
3019
3117
|
},
|
|
3020
|
-
|
|
3118
|
+
__wbindgen_cast_0000000000000012: function(arg0) {
|
|
3021
3119
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3022
3120
|
const ret = BigInt.asUintN(64, arg0);
|
|
3023
3121
|
return ret;
|
|
3024
3122
|
},
|
|
3025
|
-
|
|
3123
|
+
__wbindgen_cast_0000000000000013: function(arg0, arg1) {
|
|
3026
3124
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3027
3125
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3028
3126
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
3029
3127
|
const ret = v0;
|
|
3030
3128
|
return ret;
|
|
3031
3129
|
},
|
|
3032
|
-
|
|
3130
|
+
__wbindgen_cast_0000000000000014: function(arg0, arg1) {
|
|
3131
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3132
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3133
|
+
// Cast intrinsic for `Vector(NamedExternref("CrossChainRoutePair")) -> Externref`.
|
|
3134
|
+
const ret = v0;
|
|
3135
|
+
return ret;
|
|
3136
|
+
},
|
|
3137
|
+
__wbindgen_cast_0000000000000015: function(arg0, arg1) {
|
|
3033
3138
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3034
3139
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3035
3140
|
// Cast intrinsic for `Vector(NamedExternref("ExternalFrostShareResult")) -> Externref`.
|
|
3036
3141
|
const ret = v0;
|
|
3037
3142
|
return ret;
|
|
3038
3143
|
},
|
|
3039
|
-
|
|
3144
|
+
__wbindgen_cast_0000000000000016: function(arg0, arg1) {
|
|
3040
3145
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3041
3146
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3042
3147
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
3043
3148
|
const ret = v0;
|
|
3044
3149
|
return ret;
|
|
3045
3150
|
},
|
|
3046
|
-
|
|
3151
|
+
__wbindgen_cast_0000000000000017: function(arg0, arg1) {
|
|
3047
3152
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3048
3153
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3049
3154
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
3050
3155
|
const ret = v0;
|
|
3051
3156
|
return ret;
|
|
3052
3157
|
},
|
|
3053
|
-
|
|
3158
|
+
__wbindgen_cast_0000000000000018: function(arg0, arg1) {
|
|
3054
3159
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3055
3160
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3056
3161
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -3073,52 +3178,64 @@ function __wbg_get_imports() {
|
|
|
3073
3178
|
};
|
|
3074
3179
|
}
|
|
3075
3180
|
|
|
3076
|
-
function
|
|
3077
|
-
wasm.
|
|
3181
|
+
function wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1) {
|
|
3182
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1);
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
function wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1) {
|
|
3186
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1);
|
|
3078
3187
|
}
|
|
3079
3188
|
|
|
3080
|
-
function
|
|
3081
|
-
wasm.
|
|
3189
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2) {
|
|
3190
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2);
|
|
3082
3191
|
}
|
|
3083
3192
|
|
|
3084
|
-
function
|
|
3085
|
-
wasm.
|
|
3193
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2) {
|
|
3194
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2);
|
|
3086
3195
|
}
|
|
3087
3196
|
|
|
3088
|
-
function
|
|
3089
|
-
wasm.
|
|
3197
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2) {
|
|
3198
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2);
|
|
3090
3199
|
}
|
|
3091
3200
|
|
|
3092
|
-
function
|
|
3093
|
-
|
|
3201
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2) {
|
|
3202
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2);
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2) {
|
|
3206
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2) {
|
|
3210
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2);
|
|
3094
3211
|
if (ret[1]) {
|
|
3095
3212
|
throw takeFromExternrefTable0(ret[0]);
|
|
3096
3213
|
}
|
|
3097
3214
|
}
|
|
3098
3215
|
|
|
3099
|
-
function
|
|
3100
|
-
const ret = wasm.
|
|
3216
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2) {
|
|
3217
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2);
|
|
3101
3218
|
if (ret[1]) {
|
|
3102
3219
|
throw takeFromExternrefTable0(ret[0]);
|
|
3103
3220
|
}
|
|
3104
3221
|
}
|
|
3105
3222
|
|
|
3106
|
-
function
|
|
3107
|
-
const ret = wasm.
|
|
3223
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2) {
|
|
3224
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2);
|
|
3108
3225
|
if (ret[1]) {
|
|
3109
3226
|
throw takeFromExternrefTable0(ret[0]);
|
|
3110
3227
|
}
|
|
3111
3228
|
}
|
|
3112
3229
|
|
|
3113
|
-
function
|
|
3114
|
-
const ret = wasm.
|
|
3230
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2) {
|
|
3231
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2);
|
|
3115
3232
|
if (ret[1]) {
|
|
3116
3233
|
throw takeFromExternrefTable0(ret[0]);
|
|
3117
3234
|
}
|
|
3118
3235
|
}
|
|
3119
3236
|
|
|
3120
|
-
function
|
|
3121
|
-
const ret = wasm.
|
|
3237
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2) {
|
|
3238
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2);
|
|
3122
3239
|
if (ret[1]) {
|
|
3123
3240
|
throw takeFromExternrefTable0(ret[0]);
|
|
3124
3241
|
}
|
|
@@ -3321,6 +3438,31 @@ function isLikeNone(x) {
|
|
|
3321
3438
|
return x === undefined || x === null;
|
|
3322
3439
|
}
|
|
3323
3440
|
|
|
3441
|
+
function makeClosure(arg0, arg1, f) {
|
|
3442
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3443
|
+
const real = (...args) => {
|
|
3444
|
+
|
|
3445
|
+
// First up with a closure we increment the internal reference
|
|
3446
|
+
// count. This ensures that the Rust closure environment won't
|
|
3447
|
+
// be deallocated while we're invoking it.
|
|
3448
|
+
state.cnt++;
|
|
3449
|
+
try {
|
|
3450
|
+
return f(state.a, state.b, ...args);
|
|
3451
|
+
} finally {
|
|
3452
|
+
real._wbg_cb_unref();
|
|
3453
|
+
}
|
|
3454
|
+
};
|
|
3455
|
+
real._wbg_cb_unref = () => {
|
|
3456
|
+
if (--state.cnt === 0) {
|
|
3457
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3458
|
+
state.a = 0;
|
|
3459
|
+
CLOSURE_DTORS.unregister(state);
|
|
3460
|
+
}
|
|
3461
|
+
};
|
|
3462
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
3463
|
+
return real;
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3324
3466
|
function makeMutClosure(arg0, arg1, f) {
|
|
3325
3467
|
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3326
3468
|
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;
|