@breeztech/breez-sdk-spark 0.14.0 → 0.15.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 +114 -40
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +118 -104
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -11
- package/deno/breez_sdk_spark_wasm.d.ts +114 -40
- package/deno/breez_sdk_spark_wasm.js +118 -104
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -11
- package/nodejs/breez_sdk_spark_wasm.d.ts +114 -40
- package/nodejs/breez_sdk_spark_wasm.js +121 -106
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -11
- package/nodejs/index.mjs +3 -2
- package/nodejs/mysql-session-manager/index.cjs +26 -8
- package/nodejs/mysql-session-manager/migrations.cjs +40 -3
- package/nodejs/mysql-storage/index.cjs +67 -48
- package/nodejs/mysql-storage/migrations.cjs +220 -85
- package/nodejs/mysql-token-store/index.cjs +133 -68
- package/nodejs/mysql-token-store/migrations.cjs +309 -80
- package/nodejs/mysql-tree-store/index.cjs +76 -41
- package/nodejs/mysql-tree-store/migrations.cjs +254 -71
- package/nodejs/postgres-session-manager/index.cjs +27 -9
- package/nodejs/postgres-session-manager/migrations.cjs +45 -6
- package/nodejs/postgres-storage/index.cjs +81 -62
- package/nodejs/postgres-storage/migrations.cjs +207 -79
- package/nodejs/postgres-token-store/index.cjs +111 -67
- package/nodejs/postgres-token-store/migrations.cjs +153 -61
- package/nodejs/postgres-tree-store/index.cjs +60 -42
- package/nodejs/postgres-tree-store/migrations.cjs +130 -46
- package/package.json +1 -1
- package/ssr/index.js +14 -9
- package/web/breez_sdk_spark_wasm.d.ts +126 -51
- package/web/breez_sdk_spark_wasm.js +118 -104
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -11
|
@@ -355,6 +355,13 @@ export class BreezSdk {
|
|
|
355
355
|
const ret = wasm.breezsdk_refundDeposit(this.__wbg_ptr, request);
|
|
356
356
|
return ret;
|
|
357
357
|
}
|
|
358
|
+
/**
|
|
359
|
+
* @returns {Promise<void>}
|
|
360
|
+
*/
|
|
361
|
+
refundPendingConversions() {
|
|
362
|
+
const ret = wasm.breezsdk_refundPendingConversions(this.__wbg_ptr);
|
|
363
|
+
return ret;
|
|
364
|
+
}
|
|
358
365
|
/**
|
|
359
366
|
* @param {RegisterLightningAddressRequest} request
|
|
360
367
|
* @returns {Promise<LightningAddressInfo>}
|
|
@@ -767,7 +774,8 @@ export class IntoUnderlyingSource {
|
|
|
767
774
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
768
775
|
|
|
769
776
|
/**
|
|
770
|
-
* A shareable MySQL connection pool. See
|
|
777
|
+
* A shareable `MySQL` connection pool. See
|
|
778
|
+
* [`PostgresConnectionPool`](super::postgres_pool::PostgresConnectionPool)
|
|
771
779
|
* for sharing semantics and lifecycle.
|
|
772
780
|
*/
|
|
773
781
|
export class MysqlConnectionPool {
|
|
@@ -992,7 +1000,8 @@ export class SdkBuilder {
|
|
|
992
1000
|
return SdkBuilder.__wrap(ret);
|
|
993
1001
|
}
|
|
994
1002
|
/**
|
|
995
|
-
* **Deprecated.** Call `
|
|
1003
|
+
* **Deprecated.** Call `createMysqlConnectionPool(config)` and
|
|
1004
|
+
* `withMysqlConnectionPool(pool)` instead.
|
|
996
1005
|
* @param {MysqlStorageConfig} config
|
|
997
1006
|
* @returns {SdkBuilder}
|
|
998
1007
|
*/
|
|
@@ -1006,8 +1015,9 @@ export class SdkBuilder {
|
|
|
1006
1015
|
}
|
|
1007
1016
|
/**
|
|
1008
1017
|
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1009
|
-
*
|
|
1010
|
-
* `
|
|
1018
|
+
*
|
|
1019
|
+
* If the same builder also receives a `WasmSdkContext` carrying a MySQL
|
|
1020
|
+
* pool, `build()` returns an error — pick one source.
|
|
1011
1021
|
* @param {MysqlConnectionPool} pool
|
|
1012
1022
|
* @returns {SdkBuilder}
|
|
1013
1023
|
*/
|
|
@@ -1027,7 +1037,8 @@ export class SdkBuilder {
|
|
|
1027
1037
|
return SdkBuilder.__wrap(ret);
|
|
1028
1038
|
}
|
|
1029
1039
|
/**
|
|
1030
|
-
* **Deprecated.** Call `
|
|
1040
|
+
* **Deprecated.** Call `createPostgresConnectionPool(config)` and
|
|
1041
|
+
* `withPostgresConnectionPool(pool)` instead.
|
|
1031
1042
|
* @param {PostgresStorageConfig} config
|
|
1032
1043
|
* @returns {SdkBuilder}
|
|
1033
1044
|
*/
|
|
@@ -1040,9 +1051,10 @@ export class SdkBuilder {
|
|
|
1040
1051
|
return SdkBuilder.__wrap(ret[0]);
|
|
1041
1052
|
}
|
|
1042
1053
|
/**
|
|
1043
|
-
* Sets a shared
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1054
|
+
* Sets a shared Postgres connection pool as the backend for all stores.
|
|
1055
|
+
*
|
|
1056
|
+
* If the same builder also receives a `WasmSdkContext` carrying a
|
|
1057
|
+
* Postgres pool, `build()` returns an error — pick one source.
|
|
1046
1058
|
* @param {PostgresConnectionPool} pool
|
|
1047
1059
|
* @returns {SdkBuilder}
|
|
1048
1060
|
*/
|
|
@@ -1066,30 +1078,18 @@ export class SdkBuilder {
|
|
|
1066
1078
|
return SdkBuilder.__wrap(ret);
|
|
1067
1079
|
}
|
|
1068
1080
|
/**
|
|
1069
|
-
*
|
|
1081
|
+
* Threads a shared [`WasmSdkContext`] into the builder.
|
|
1070
1082
|
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1074
|
-
* @param {
|
|
1075
|
-
* @returns {SdkBuilder}
|
|
1076
|
-
*/
|
|
1077
|
-
withSessionManager(session_manager) {
|
|
1078
|
-
const ptr = this.__destroy_into_raw();
|
|
1079
|
-
const ret = wasm.sdkbuilder_withSessionManager(ptr, session_manager);
|
|
1080
|
-
return SdkBuilder.__wrap(ret);
|
|
1081
|
-
}
|
|
1082
|
-
/**
|
|
1083
|
-
* Reuses a shared SSP connection across SDK instances. Pass the same
|
|
1084
|
-
* manager to every `SdkBuilder` whose SSP traffic should share an
|
|
1085
|
-
* underlying HTTP client.
|
|
1086
|
-
* @param {SspConnectionManager} manager
|
|
1083
|
+
* Construct the context once via `newSharedSdkContext` and pass the same
|
|
1084
|
+
* handle to every `SdkBuilder` whose SDKs should share its resources
|
|
1085
|
+
* (operator gRPC channels, SSP HTTP client, database pool).
|
|
1086
|
+
* @param {WasmSdkContext} context
|
|
1087
1087
|
* @returns {SdkBuilder}
|
|
1088
1088
|
*/
|
|
1089
|
-
|
|
1089
|
+
withSharedContext(context) {
|
|
1090
1090
|
const ptr = this.__destroy_into_raw();
|
|
1091
|
-
_assertClass(
|
|
1092
|
-
const ret = wasm.
|
|
1091
|
+
_assertClass(context, WasmSdkContext);
|
|
1092
|
+
const ret = wasm.sdkbuilder_withSharedContext(ptr, context.__wbg_ptr);
|
|
1093
1093
|
return SdkBuilder.__wrap(ret);
|
|
1094
1094
|
}
|
|
1095
1095
|
/**
|
|
@@ -1104,32 +1104,6 @@ export class SdkBuilder {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
1106
1106
|
|
|
1107
|
-
/**
|
|
1108
|
-
* Shared transport for SSP GraphQL traffic across SDK instances.
|
|
1109
|
-
*
|
|
1110
|
-
* All SDK instances built with the same `SspConnectionManager` share a single
|
|
1111
|
-
* underlying HTTP client (and its h2 connection pool) for SSP requests.
|
|
1112
|
-
*/
|
|
1113
|
-
export class SspConnectionManager {
|
|
1114
|
-
static __wrap(ptr) {
|
|
1115
|
-
const obj = Object.create(SspConnectionManager.prototype);
|
|
1116
|
-
obj.__wbg_ptr = ptr;
|
|
1117
|
-
SspConnectionManagerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1118
|
-
return obj;
|
|
1119
|
-
}
|
|
1120
|
-
__destroy_into_raw() {
|
|
1121
|
-
const ptr = this.__wbg_ptr;
|
|
1122
|
-
this.__wbg_ptr = 0;
|
|
1123
|
-
SspConnectionManagerFinalization.unregister(this);
|
|
1124
|
-
return ptr;
|
|
1125
|
-
}
|
|
1126
|
-
free() {
|
|
1127
|
-
const ptr = this.__destroy_into_raw();
|
|
1128
|
-
wasm.__wbg_sspconnectionmanager_free(ptr, 0);
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
if (Symbol.dispose) SspConnectionManager.prototype[Symbol.dispose] = SspConnectionManager.prototype.free;
|
|
1132
|
-
|
|
1133
1107
|
export class TokenIssuer {
|
|
1134
1108
|
static __wrap(ptr) {
|
|
1135
1109
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1204,6 +1178,33 @@ export class TokenIssuer {
|
|
|
1204
1178
|
}
|
|
1205
1179
|
if (Symbol.dispose) TokenIssuer.prototype[Symbol.dispose] = TokenIssuer.prototype.free;
|
|
1206
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* Process-shared resources backing one or more `BreezSdk` instances on WASM.
|
|
1183
|
+
*
|
|
1184
|
+
* Construct once via `newSharedSdkContext` and pass the handle to every
|
|
1185
|
+
* `SdkBuilder` whose SDKs should share its operator gRPC channels, SSP HTTP
|
|
1186
|
+
* client, and (optionally) database connection pool.
|
|
1187
|
+
*/
|
|
1188
|
+
export class WasmSdkContext {
|
|
1189
|
+
static __wrap(ptr) {
|
|
1190
|
+
const obj = Object.create(WasmSdkContext.prototype);
|
|
1191
|
+
obj.__wbg_ptr = ptr;
|
|
1192
|
+
WasmSdkContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1193
|
+
return obj;
|
|
1194
|
+
}
|
|
1195
|
+
__destroy_into_raw() {
|
|
1196
|
+
const ptr = this.__wbg_ptr;
|
|
1197
|
+
this.__wbg_ptr = 0;
|
|
1198
|
+
WasmSdkContextFinalization.unregister(this);
|
|
1199
|
+
return ptr;
|
|
1200
|
+
}
|
|
1201
|
+
free() {
|
|
1202
|
+
const ptr = this.__destroy_into_raw();
|
|
1203
|
+
wasm.__wbg_wasmsdkcontext_free(ptr, 0);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
if (Symbol.dispose) WasmSdkContext.prototype[Symbol.dispose] = WasmSdkContext.prototype.free;
|
|
1207
|
+
|
|
1207
1208
|
/**
|
|
1208
1209
|
* @param {ConnectRequest} request
|
|
1209
1210
|
* @returns {Promise<BreezSdk>}
|
|
@@ -1227,7 +1228,7 @@ export function connectWithSigner(config, signer, storage_dir) {
|
|
|
1227
1228
|
}
|
|
1228
1229
|
|
|
1229
1230
|
/**
|
|
1230
|
-
* Creates a shareable MySQL connection pool from the given config.
|
|
1231
|
+
* Creates a shareable `MySQL` connection pool from the given config.
|
|
1231
1232
|
* @param {MysqlStorageConfig} config
|
|
1232
1233
|
* @returns {MysqlConnectionPool}
|
|
1233
1234
|
*/
|
|
@@ -1287,6 +1288,7 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
1287
1288
|
* - `maxPoolSize`: 10
|
|
1288
1289
|
* - `createTimeoutSecs`: 0 (no timeout)
|
|
1289
1290
|
* - `recycleTimeoutSecs`: 10
|
|
1291
|
+
* - `foreignKeyMode`: `Enforced`
|
|
1290
1292
|
* @param {string} connection_string
|
|
1291
1293
|
* @returns {MysqlStorageConfig}
|
|
1292
1294
|
*/
|
|
@@ -1314,6 +1316,15 @@ export function defaultPostgresStorageConfig(connection_string) {
|
|
|
1314
1316
|
return ret;
|
|
1315
1317
|
}
|
|
1316
1318
|
|
|
1319
|
+
/**
|
|
1320
|
+
* @param {Network} network
|
|
1321
|
+
* @returns {Config}
|
|
1322
|
+
*/
|
|
1323
|
+
export function defaultServerConfig(network) {
|
|
1324
|
+
const ret = wasm.defaultServerConfig(network);
|
|
1325
|
+
return ret;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1317
1328
|
/**
|
|
1318
1329
|
* Creates a default external signer from a mnemonic phrase.
|
|
1319
1330
|
*
|
|
@@ -1359,14 +1370,13 @@ export function newRestChainService(url, network, api_type, credentials) {
|
|
|
1359
1370
|
}
|
|
1360
1371
|
|
|
1361
1372
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
* @
|
|
1373
|
+
* Constructs a [`WasmSdkContext`] from a `WasmSdkContextConfig`.
|
|
1374
|
+
* @param {WasmSdkContextConfig} config
|
|
1375
|
+
* @returns {Promise<WasmSdkContext>}
|
|
1364
1376
|
*/
|
|
1365
|
-
export function
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
const ret = wasm.newSspConnectionManager(ptr0, len0);
|
|
1369
|
-
return SspConnectionManager.__wrap(ret);
|
|
1377
|
+
export function newSharedSdkContext(config) {
|
|
1378
|
+
const ret = wasm.newSharedSdkContext(config);
|
|
1379
|
+
return ret;
|
|
1370
1380
|
}
|
|
1371
1381
|
|
|
1372
1382
|
/**
|
|
@@ -1637,40 +1647,40 @@ export function __wbg_createMysqlPool_8927bff3a28fcef9() { return handleError(fu
|
|
|
1637
1647
|
const ret = createMysqlPool(arg0);
|
|
1638
1648
|
return ret;
|
|
1639
1649
|
}, arguments); }
|
|
1640
|
-
export function
|
|
1641
|
-
const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1650
|
+
export function __wbg_createMysqlSessionManagerWithPool_81f4147900a5a954() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1651
|
+
const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1642
1652
|
return ret;
|
|
1643
1653
|
}, arguments); }
|
|
1644
|
-
export function
|
|
1645
|
-
const ret = createMysqlStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1654
|
+
export function __wbg_createMysqlStorageWithPool_22d23b0d068eae47() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1655
|
+
const ret = createMysqlStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1646
1656
|
return ret;
|
|
1647
1657
|
}, arguments); }
|
|
1648
|
-
export function
|
|
1649
|
-
const ret = createMysqlTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1658
|
+
export function __wbg_createMysqlTokenStoreWithPool_f59d99943757f602() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1659
|
+
const ret = createMysqlTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0);
|
|
1650
1660
|
return ret;
|
|
1651
1661
|
}, arguments); }
|
|
1652
|
-
export function
|
|
1653
|
-
const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1662
|
+
export function __wbg_createMysqlTreeStoreWithPool_4c6bcff518c7f9c4() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1663
|
+
const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0);
|
|
1654
1664
|
return ret;
|
|
1655
1665
|
}, arguments); }
|
|
1656
1666
|
export function __wbg_createPostgresPool_3c396c7ab2f0eab2() { return handleError(function (arg0) {
|
|
1657
1667
|
const ret = createPostgresPool(arg0);
|
|
1658
1668
|
return ret;
|
|
1659
1669
|
}, arguments); }
|
|
1660
|
-
export function
|
|
1661
|
-
const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1670
|
+
export function __wbg_createPostgresSessionManagerWithPool_989bf80d96829c18() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1671
|
+
const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1662
1672
|
return ret;
|
|
1663
1673
|
}, arguments); }
|
|
1664
|
-
export function
|
|
1665
|
-
const ret = createPostgresStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1674
|
+
export function __wbg_createPostgresStorageWithPool_9408116e32ab58f8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1675
|
+
const ret = createPostgresStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1666
1676
|
return ret;
|
|
1667
1677
|
}, arguments); }
|
|
1668
|
-
export function
|
|
1669
|
-
const ret = createPostgresTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1678
|
+
export function __wbg_createPostgresTokenStoreWithPool_5e936f3aa8bd424a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1679
|
+
const ret = createPostgresTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1670
1680
|
return ret;
|
|
1671
1681
|
}, arguments); }
|
|
1672
|
-
export function
|
|
1673
|
-
const ret = createPostgresTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1682
|
+
export function __wbg_createPostgresTreeStoreWithPool_03a03c4c0664703c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1683
|
+
const ret = createPostgresTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1674
1684
|
return ret;
|
|
1675
1685
|
}, arguments); }
|
|
1676
1686
|
export function __wbg_crypto_38df2bab126b63dc(arg0) {
|
|
@@ -2090,10 +2100,6 @@ export function __wbg_insertPayment_830c37c6efef1f8a() { return handleError(func
|
|
|
2090
2100
|
const ret = arg0.insertPayment(arg1);
|
|
2091
2101
|
return ret;
|
|
2092
2102
|
}, arguments); }
|
|
2093
|
-
export function __wbg_insertTokenOutputs_11b256443d099417() { return handleError(function (arg0, arg1) {
|
|
2094
|
-
const ret = arg0.insertTokenOutputs(arg1);
|
|
2095
|
-
return ret;
|
|
2096
|
-
}, arguments); }
|
|
2097
2103
|
export function __wbg_instanceof_ArrayBuffer_eab9f28fbec23477(arg0) {
|
|
2098
2104
|
let result;
|
|
2099
2105
|
try {
|
|
@@ -2761,6 +2767,10 @@ export function __wbg_updateReservation_8d9f42570704dca1() { return handleError(
|
|
|
2761
2767
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2762
2768
|
}
|
|
2763
2769
|
}, arguments); }
|
|
2770
|
+
export function __wbg_updateTokenOutputs_d978e01c817e8230() { return handleError(function (arg0, arg1, arg2) {
|
|
2771
|
+
const ret = arg0.updateTokenOutputs(arg1, arg2);
|
|
2772
|
+
return ret;
|
|
2773
|
+
}, arguments); }
|
|
2764
2774
|
export function __wbg_url_68fd9a221360e0db(arg0, arg1) {
|
|
2765
2775
|
const ret = arg1.url;
|
|
2766
2776
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2791,48 +2801,52 @@ export function __wbg_wasClean_92b4133f985dfae0(arg0) {
|
|
|
2791
2801
|
const ret = arg0.wasClean;
|
|
2792
2802
|
return ret;
|
|
2793
2803
|
}
|
|
2804
|
+
export function __wbg_wasmsdkcontext_new(arg0) {
|
|
2805
|
+
const ret = WasmSdkContext.__wrap(arg0);
|
|
2806
|
+
return ret;
|
|
2807
|
+
}
|
|
2794
2808
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2795
2809
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2796
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2810
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21);
|
|
2797
2811
|
return ret;
|
|
2798
2812
|
}
|
|
2799
2813
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2800
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2814
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2801
2815
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
|
|
2802
2816
|
return ret;
|
|
2803
2817
|
}
|
|
2804
2818
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
2805
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2819
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2806
2820
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2);
|
|
2807
2821
|
return ret;
|
|
2808
2822
|
}
|
|
2809
2823
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
2810
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2824
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2811
2825
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
|
|
2812
2826
|
return ret;
|
|
2813
2827
|
}
|
|
2814
2828
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
2815
2829
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionManager")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2816
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2830
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4);
|
|
2817
2831
|
return ret;
|
|
2818
2832
|
}
|
|
2819
2833
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
2820
2834
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2821
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2835
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5);
|
|
2822
2836
|
return ret;
|
|
2823
2837
|
}
|
|
2824
2838
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
2825
2839
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2826
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2840
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6);
|
|
2827
2841
|
return ret;
|
|
2828
2842
|
}
|
|
2829
2843
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
2830
2844
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2831
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2845
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7);
|
|
2832
2846
|
return ret;
|
|
2833
2847
|
}
|
|
2834
2848
|
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
2835
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2849
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 408, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2836
2850
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h124479769cd429fd);
|
|
2837
2851
|
return ret;
|
|
2838
2852
|
}
|
|
@@ -2926,36 +2940,36 @@ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, a
|
|
|
2926
2940
|
wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
|
|
2927
2941
|
}
|
|
2928
2942
|
|
|
2929
|
-
function
|
|
2930
|
-
const ret = wasm.
|
|
2943
|
+
function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21(arg0, arg1, arg2) {
|
|
2944
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21(arg0, arg1, arg2);
|
|
2931
2945
|
if (ret[1]) {
|
|
2932
2946
|
throw takeFromExternrefTable0(ret[0]);
|
|
2933
2947
|
}
|
|
2934
2948
|
}
|
|
2935
2949
|
|
|
2936
|
-
function
|
|
2937
|
-
const ret = wasm.
|
|
2950
|
+
function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4(arg0, arg1, arg2) {
|
|
2951
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4(arg0, arg1, arg2);
|
|
2938
2952
|
if (ret[1]) {
|
|
2939
2953
|
throw takeFromExternrefTable0(ret[0]);
|
|
2940
2954
|
}
|
|
2941
2955
|
}
|
|
2942
2956
|
|
|
2943
|
-
function
|
|
2944
|
-
const ret = wasm.
|
|
2957
|
+
function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5(arg0, arg1, arg2) {
|
|
2958
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5(arg0, arg1, arg2);
|
|
2945
2959
|
if (ret[1]) {
|
|
2946
2960
|
throw takeFromExternrefTable0(ret[0]);
|
|
2947
2961
|
}
|
|
2948
2962
|
}
|
|
2949
2963
|
|
|
2950
|
-
function
|
|
2951
|
-
const ret = wasm.
|
|
2964
|
+
function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6(arg0, arg1, arg2) {
|
|
2965
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6(arg0, arg1, arg2);
|
|
2952
2966
|
if (ret[1]) {
|
|
2953
2967
|
throw takeFromExternrefTable0(ret[0]);
|
|
2954
2968
|
}
|
|
2955
2969
|
}
|
|
2956
2970
|
|
|
2957
|
-
function
|
|
2958
|
-
const ret = wasm.
|
|
2971
|
+
function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7(arg0, arg1, arg2) {
|
|
2972
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7(arg0, arg1, arg2);
|
|
2959
2973
|
if (ret[1]) {
|
|
2960
2974
|
throw takeFromExternrefTable0(ret[0]);
|
|
2961
2975
|
}
|
|
@@ -3015,12 +3029,12 @@ const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'und
|
|
|
3015
3029
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3016
3030
|
? { register: () => {}, unregister: () => {} }
|
|
3017
3031
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3018
|
-
const SspConnectionManagerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3019
|
-
? { register: () => {}, unregister: () => {} }
|
|
3020
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_sspconnectionmanager_free(ptr, 1));
|
|
3021
3032
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3022
3033
|
? { register: () => {}, unregister: () => {} }
|
|
3023
3034
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
3035
|
+
const WasmSdkContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3036
|
+
? { register: () => {}, unregister: () => {} }
|
|
3037
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsdkcontext_free(ptr, 1));
|
|
3024
3038
|
|
|
3025
3039
|
function addToExternrefTable0(obj) {
|
|
3026
3040
|
const idx = wasm.__externref_table_alloc();
|
|
Binary file
|
|
@@ -6,9 +6,10 @@ export const __wbg_breezsdk_free: (a: number, b: number) => void;
|
|
|
6
6
|
export const __wbg_defaultsigner_free: (a: number, b: number) => void;
|
|
7
7
|
export const __wbg_mysqlconnectionpool_free: (a: number, b: number) => void;
|
|
8
8
|
export const __wbg_passkey_free: (a: number, b: number) => void;
|
|
9
|
+
export const __wbg_postgresconnectionpool_free: (a: number, b: number) => void;
|
|
9
10
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
10
|
-
export const __wbg_sspconnectionmanager_free: (a: number, b: number) => void;
|
|
11
11
|
export const __wbg_tokenissuer_free: (a: number, b: number) => void;
|
|
12
|
+
export const __wbg_wasmsdkcontext_free: (a: number, b: number) => void;
|
|
12
13
|
export const bitcoinchainservicehandle_broadcastTransaction: (a: number, b: number, c: number) => any;
|
|
13
14
|
export const bitcoinchainservicehandle_getAddressUtxos: (a: number, b: number, c: number) => any;
|
|
14
15
|
export const bitcoinchainservicehandle_getTransactionHex: (a: number, b: number, c: number) => any;
|
|
@@ -48,6 +49,7 @@ export const breezsdk_prepareSendPayment: (a: number, b: any) => any;
|
|
|
48
49
|
export const breezsdk_receivePayment: (a: number, b: any) => any;
|
|
49
50
|
export const breezsdk_recommendedFees: (a: number) => any;
|
|
50
51
|
export const breezsdk_refundDeposit: (a: number, b: any) => any;
|
|
52
|
+
export const breezsdk_refundPendingConversions: (a: number) => any;
|
|
51
53
|
export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
52
54
|
export const breezsdk_registerWebhook: (a: number, b: any) => any;
|
|
53
55
|
export const breezsdk_removeEventListener: (a: number, b: number, c: number) => any;
|
|
@@ -65,6 +67,8 @@ export const createPostgresConnectionPool: (a: any) => [number, number, number];
|
|
|
65
67
|
export const defaultConfig: (a: any) => any;
|
|
66
68
|
export const defaultExternalSigner: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
67
69
|
export const defaultMysqlStorageConfig: (a: number, b: number) => any;
|
|
70
|
+
export const defaultPostgresStorageConfig: (a: number, b: number) => any;
|
|
71
|
+
export const defaultServerConfig: (a: any) => any;
|
|
68
72
|
export const defaultsigner_aggregateFrost: (a: number, b: any) => any;
|
|
69
73
|
export const defaultsigner_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
70
74
|
export const defaultsigner_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
@@ -88,7 +92,7 @@ export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
|
88
92
|
export const getSparkStatus: () => any;
|
|
89
93
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
90
94
|
export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
|
|
91
|
-
export const
|
|
95
|
+
export const newSharedSdkContext: (a: any) => any;
|
|
92
96
|
export const passkey_getWallet: (a: number, b: number, c: number) => any;
|
|
93
97
|
export const passkey_isAvailable: (a: number) => any;
|
|
94
98
|
export const passkey_listLabels: (a: number) => any;
|
|
@@ -108,8 +112,7 @@ export const sdkbuilder_withPaymentObserver: (a: number, b: any) => number;
|
|
|
108
112
|
export const sdkbuilder_withPostgresBackend: (a: number, b: any) => [number, number, number];
|
|
109
113
|
export const sdkbuilder_withPostgresConnectionPool: (a: number, b: number) => number;
|
|
110
114
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: any, e: number) => number;
|
|
111
|
-
export const
|
|
112
|
-
export const sdkbuilder_withSspConnectionManager: (a: number, b: number) => number;
|
|
115
|
+
export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
|
|
113
116
|
export const sdkbuilder_withStorage: (a: number, b: any) => number;
|
|
114
117
|
export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
|
|
115
118
|
export const tokenissuer_createIssuerToken: (a: number, b: any) => any;
|
|
@@ -136,13 +139,11 @@ export const intounderlyingsink_close: (a: number) => any;
|
|
|
136
139
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
137
140
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
138
141
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
139
|
-
export const
|
|
140
|
-
export const
|
|
141
|
-
export const
|
|
142
|
-
export const
|
|
143
|
-
export const
|
|
144
|
-
export const wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6: (a: number, b: number, c: any) => [number, number];
|
|
145
|
-
export const wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7: (a: number, b: number, c: any) => [number, number];
|
|
142
|
+
export const wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21: (a: number, b: number, c: any) => [number, number];
|
|
143
|
+
export const wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4: (a: number, b: number, c: any) => [number, number];
|
|
144
|
+
export const wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5: (a: number, b: number, c: any) => [number, number];
|
|
145
|
+
export const wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6: (a: number, b: number, c: any) => [number, number];
|
|
146
|
+
export const wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7: (a: number, b: number, c: any) => [number, number];
|
|
146
147
|
export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
147
148
|
export const wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57: (a: number, b: number, c: any) => void;
|
|
148
149
|
export const wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2: (a: number, b: number, c: any) => void;
|