@breeztech/breez-sdk-spark 0.13.10-dev → 0.13.12-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +157 -0
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +419 -41
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +27 -7
- package/deno/breez_sdk_spark_wasm.d.ts +157 -0
- package/deno/breez_sdk_spark_wasm.js +419 -41
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +27 -7
- package/nodejs/breez_sdk_spark_wasm.d.ts +157 -0
- package/nodejs/breez_sdk_spark_wasm.js +428 -41
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +27 -7
- package/nodejs/index.js +56 -0
- package/nodejs/index.mjs +9 -0
- package/nodejs/mysql-session-manager/errors.cjs +13 -0
- package/nodejs/mysql-session-manager/index.cjs +144 -0
- package/nodejs/mysql-session-manager/migrations.cjs +102 -0
- package/nodejs/mysql-session-manager/package.json +9 -0
- package/nodejs/mysql-storage/errors.cjs +19 -0
- package/nodejs/mysql-storage/index.cjs +1367 -0
- package/nodejs/mysql-storage/migrations.cjs +387 -0
- package/nodejs/mysql-storage/package.json +9 -0
- package/nodejs/mysql-token-store/errors.cjs +9 -0
- package/nodejs/mysql-token-store/index.cjs +980 -0
- package/nodejs/mysql-token-store/migrations.cjs +255 -0
- package/nodejs/mysql-token-store/package.json +9 -0
- package/nodejs/mysql-tree-store/errors.cjs +9 -0
- package/nodejs/mysql-tree-store/index.cjs +941 -0
- package/nodejs/mysql-tree-store/migrations.cjs +221 -0
- package/nodejs/mysql-tree-store/package.json +9 -0
- package/nodejs/package.json +5 -0
- package/nodejs/postgres-session-manager/errors.cjs +13 -0
- package/nodejs/postgres-session-manager/index.cjs +165 -0
- package/nodejs/postgres-session-manager/migrations.cjs +126 -0
- package/nodejs/postgres-session-manager/package.json +9 -0
- package/nodejs/postgres-storage/index.cjs +147 -92
- package/nodejs/postgres-storage/migrations.cjs +85 -4
- package/nodejs/postgres-token-store/index.cjs +178 -102
- package/nodejs/postgres-token-store/migrations.cjs +92 -3
- package/nodejs/postgres-tree-store/index.cjs +168 -83
- package/nodejs/postgres-tree-store/migrations.cjs +80 -3
- package/package.json +1 -1
- package/ssr/index.js +53 -0
- package/web/breez_sdk_spark_wasm.d.ts +184 -7
- package/web/breez_sdk_spark_wasm.js +419 -41
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +27 -7
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
/* @ts-self-types="./breez_sdk_spark_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Rust-built implementation of the JS `BitcoinChainService` interface.
|
|
5
|
+
*
|
|
6
|
+
* Returned by factories like [`new_rest_chain_service`]; users see it as a
|
|
7
|
+
* `BitcoinChainService` and pass it to `withChainService`. Pass the same
|
|
8
|
+
* instance to multiple `SdkBuilder`s to share a single underlying HTTP
|
|
9
|
+
* client (and its connection pool) across SDK instances.
|
|
10
|
+
*/
|
|
11
|
+
export class BitcoinChainServiceHandle {
|
|
12
|
+
static __wrap(ptr) {
|
|
13
|
+
const obj = Object.create(BitcoinChainServiceHandle.prototype);
|
|
14
|
+
obj.__wbg_ptr = ptr;
|
|
15
|
+
BitcoinChainServiceHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
16
|
+
return obj;
|
|
17
|
+
}
|
|
18
|
+
__destroy_into_raw() {
|
|
19
|
+
const ptr = this.__wbg_ptr;
|
|
20
|
+
this.__wbg_ptr = 0;
|
|
21
|
+
BitcoinChainServiceHandleFinalization.unregister(this);
|
|
22
|
+
return ptr;
|
|
23
|
+
}
|
|
24
|
+
free() {
|
|
25
|
+
const ptr = this.__destroy_into_raw();
|
|
26
|
+
wasm.__wbg_bitcoinchainservicehandle_free(ptr, 0);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} tx
|
|
30
|
+
* @returns {Promise<void>}
|
|
31
|
+
*/
|
|
32
|
+
broadcastTransaction(tx) {
|
|
33
|
+
const ptr0 = passStringToWasm0(tx, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
34
|
+
const len0 = WASM_VECTOR_LEN;
|
|
35
|
+
const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
|
|
36
|
+
return ret;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @param {string} address
|
|
40
|
+
* @returns {Promise<any>}
|
|
41
|
+
*/
|
|
42
|
+
getAddressUtxos(address) {
|
|
43
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
44
|
+
const len0 = WASM_VECTOR_LEN;
|
|
45
|
+
const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
|
|
46
|
+
return ret;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @param {string} txid
|
|
50
|
+
* @returns {Promise<any>}
|
|
51
|
+
*/
|
|
52
|
+
getTransactionHex(txid) {
|
|
53
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
54
|
+
const len0 = WASM_VECTOR_LEN;
|
|
55
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionHex(this.__wbg_ptr, ptr0, len0);
|
|
56
|
+
return ret;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {string} txid
|
|
60
|
+
* @returns {Promise<any>}
|
|
61
|
+
*/
|
|
62
|
+
getTransactionStatus(txid) {
|
|
63
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
64
|
+
const len0 = WASM_VECTOR_LEN;
|
|
65
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionStatus(this.__wbg_ptr, ptr0, len0);
|
|
66
|
+
return ret;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @returns {Promise<any>}
|
|
70
|
+
*/
|
|
71
|
+
recommendedFees() {
|
|
72
|
+
const ret = wasm.bitcoinchainservicehandle_recommendedFees(this.__wbg_ptr);
|
|
73
|
+
return ret;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (Symbol.dispose) BitcoinChainServiceHandle.prototype[Symbol.dispose] = BitcoinChainServiceHandle.prototype.free;
|
|
77
|
+
|
|
3
78
|
export class BreezSdk {
|
|
4
79
|
static __wrap(ptr) {
|
|
5
80
|
const obj = Object.create(BreezSdk.prototype);
|
|
@@ -693,6 +768,30 @@ export class IntoUnderlyingSource {
|
|
|
693
768
|
}
|
|
694
769
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
695
770
|
|
|
771
|
+
/**
|
|
772
|
+
* A shareable MySQL connection pool. See [`PostgresConnectionPool`](super::postgres_pool::PostgresConnectionPool)
|
|
773
|
+
* for sharing semantics and lifecycle.
|
|
774
|
+
*/
|
|
775
|
+
export class MysqlConnectionPool {
|
|
776
|
+
static __wrap(ptr) {
|
|
777
|
+
const obj = Object.create(MysqlConnectionPool.prototype);
|
|
778
|
+
obj.__wbg_ptr = ptr;
|
|
779
|
+
MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
780
|
+
return obj;
|
|
781
|
+
}
|
|
782
|
+
__destroy_into_raw() {
|
|
783
|
+
const ptr = this.__wbg_ptr;
|
|
784
|
+
this.__wbg_ptr = 0;
|
|
785
|
+
MysqlConnectionPoolFinalization.unregister(this);
|
|
786
|
+
return ptr;
|
|
787
|
+
}
|
|
788
|
+
free() {
|
|
789
|
+
const ptr = this.__destroy_into_raw();
|
|
790
|
+
wasm.__wbg_mysqlconnectionpool_free(ptr, 0);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
|
|
794
|
+
|
|
696
795
|
/**
|
|
697
796
|
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
698
797
|
*
|
|
@@ -774,6 +873,36 @@ export class Passkey {
|
|
|
774
873
|
}
|
|
775
874
|
if (Symbol.dispose) Passkey.prototype[Symbol.dispose] = Passkey.prototype.free;
|
|
776
875
|
|
|
876
|
+
/**
|
|
877
|
+
* A shareable Postgres connection pool.
|
|
878
|
+
*
|
|
879
|
+
* Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
|
|
880
|
+
* `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
|
|
881
|
+
* Per-tenant scoping is derived from each SDK's seed.
|
|
882
|
+
*
|
|
883
|
+
* The pool's lifecycle is controlled by the integrator: it stays alive as
|
|
884
|
+
* long as any reference is held. `disconnect()` does **not** close the pool.
|
|
885
|
+
*/
|
|
886
|
+
export class PostgresConnectionPool {
|
|
887
|
+
static __wrap(ptr) {
|
|
888
|
+
const obj = Object.create(PostgresConnectionPool.prototype);
|
|
889
|
+
obj.__wbg_ptr = ptr;
|
|
890
|
+
PostgresConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
891
|
+
return obj;
|
|
892
|
+
}
|
|
893
|
+
__destroy_into_raw() {
|
|
894
|
+
const ptr = this.__wbg_ptr;
|
|
895
|
+
this.__wbg_ptr = 0;
|
|
896
|
+
PostgresConnectionPoolFinalization.unregister(this);
|
|
897
|
+
return ptr;
|
|
898
|
+
}
|
|
899
|
+
free() {
|
|
900
|
+
const ptr = this.__destroy_into_raw();
|
|
901
|
+
wasm.__wbg_postgresconnectionpool_free(ptr, 0);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
if (Symbol.dispose) PostgresConnectionPool.prototype[Symbol.dispose] = PostgresConnectionPool.prototype.free;
|
|
905
|
+
|
|
777
906
|
export class SdkBuilder {
|
|
778
907
|
static __wrap(ptr) {
|
|
779
908
|
const obj = Object.create(SdkBuilder.prototype);
|
|
@@ -864,6 +993,32 @@ export class SdkBuilder {
|
|
|
864
993
|
const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
|
|
865
994
|
return SdkBuilder.__wrap(ret);
|
|
866
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* **Deprecated.** Call `withMysqlConnectionPool(config)` and `withMysqlConnectionPool(pool)` instead.
|
|
998
|
+
* @param {MysqlStorageConfig} config
|
|
999
|
+
* @returns {SdkBuilder}
|
|
1000
|
+
*/
|
|
1001
|
+
withMysqlBackend(config) {
|
|
1002
|
+
const ptr = this.__destroy_into_raw();
|
|
1003
|
+
const ret = wasm.sdkbuilder_withMysqlBackend(ptr, config);
|
|
1004
|
+
if (ret[2]) {
|
|
1005
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1006
|
+
}
|
|
1007
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1011
|
+
* Construct via `createMysqlConnectionPool` and pass the same handle to multiple
|
|
1012
|
+
* `SdkBuilder`s to share connections across SDKs.
|
|
1013
|
+
* @param {MysqlConnectionPool} pool
|
|
1014
|
+
* @returns {SdkBuilder}
|
|
1015
|
+
*/
|
|
1016
|
+
withMysqlConnectionPool(pool) {
|
|
1017
|
+
const ptr = this.__destroy_into_raw();
|
|
1018
|
+
_assertClass(pool, MysqlConnectionPool);
|
|
1019
|
+
const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
|
|
1020
|
+
return SdkBuilder.__wrap(ret);
|
|
1021
|
+
}
|
|
867
1022
|
/**
|
|
868
1023
|
* @param {PaymentObserver} payment_observer
|
|
869
1024
|
* @returns {SdkBuilder}
|
|
@@ -874,12 +1029,29 @@ export class SdkBuilder {
|
|
|
874
1029
|
return SdkBuilder.__wrap(ret);
|
|
875
1030
|
}
|
|
876
1031
|
/**
|
|
1032
|
+
* **Deprecated.** Call `withPostgresConnectionPool(config)` and `withPostgresConnectionPool(pool)` instead.
|
|
877
1033
|
* @param {PostgresStorageConfig} config
|
|
878
1034
|
* @returns {SdkBuilder}
|
|
879
1035
|
*/
|
|
880
1036
|
withPostgresBackend(config) {
|
|
881
1037
|
const ptr = this.__destroy_into_raw();
|
|
882
1038
|
const ret = wasm.sdkbuilder_withPostgresBackend(ptr, config);
|
|
1039
|
+
if (ret[2]) {
|
|
1040
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1041
|
+
}
|
|
1042
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Sets a shared `PostgreSQL` connection pool as the backend for all
|
|
1046
|
+
* stores. Construct via `createPostgresConnectionPool` and pass the same handle
|
|
1047
|
+
* to multiple `SdkBuilder`s to share connections across SDKs.
|
|
1048
|
+
* @param {PostgresConnectionPool} pool
|
|
1049
|
+
* @returns {SdkBuilder}
|
|
1050
|
+
*/
|
|
1051
|
+
withPostgresConnectionPool(pool) {
|
|
1052
|
+
const ptr = this.__destroy_into_raw();
|
|
1053
|
+
_assertClass(pool, PostgresConnectionPool);
|
|
1054
|
+
const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
|
|
883
1055
|
return SdkBuilder.__wrap(ret);
|
|
884
1056
|
}
|
|
885
1057
|
/**
|
|
@@ -895,6 +1067,33 @@ export class SdkBuilder {
|
|
|
895
1067
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
896
1068
|
return SdkBuilder.__wrap(ret);
|
|
897
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Sets a custom session manager used to persist authentication sessions.
|
|
1072
|
+
*
|
|
1073
|
+
* Provide a shared, persistent implementation (e.g. backed by `PostgreSQL`
|
|
1074
|
+
* or Redis) to let multiple SDK instances share authentication state and
|
|
1075
|
+
* bootstrap quickly. If not set, an in-memory session manager is used.
|
|
1076
|
+
* @param {SessionManager} session_manager
|
|
1077
|
+
* @returns {SdkBuilder}
|
|
1078
|
+
*/
|
|
1079
|
+
withSessionManager(session_manager) {
|
|
1080
|
+
const ptr = this.__destroy_into_raw();
|
|
1081
|
+
const ret = wasm.sdkbuilder_withSessionManager(ptr, session_manager);
|
|
1082
|
+
return SdkBuilder.__wrap(ret);
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Reuses a shared SSP connection across SDK instances. Pass the same
|
|
1086
|
+
* manager to every `SdkBuilder` whose SSP traffic should share an
|
|
1087
|
+
* underlying HTTP client.
|
|
1088
|
+
* @param {SspConnectionManager} manager
|
|
1089
|
+
* @returns {SdkBuilder}
|
|
1090
|
+
*/
|
|
1091
|
+
withSspConnectionManager(manager) {
|
|
1092
|
+
const ptr = this.__destroy_into_raw();
|
|
1093
|
+
_assertClass(manager, SspConnectionManager);
|
|
1094
|
+
const ret = wasm.sdkbuilder_withSspConnectionManager(ptr, manager.__wbg_ptr);
|
|
1095
|
+
return SdkBuilder.__wrap(ret);
|
|
1096
|
+
}
|
|
898
1097
|
/**
|
|
899
1098
|
* @param {Storage} storage
|
|
900
1099
|
* @returns {SdkBuilder}
|
|
@@ -907,6 +1106,32 @@ export class SdkBuilder {
|
|
|
907
1106
|
}
|
|
908
1107
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
909
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* Shared transport for SSP GraphQL traffic across SDK instances.
|
|
1111
|
+
*
|
|
1112
|
+
* All SDK instances built with the same `SspConnectionManager` share a single
|
|
1113
|
+
* underlying HTTP client (and its h2 connection pool) for SSP requests.
|
|
1114
|
+
*/
|
|
1115
|
+
export class SspConnectionManager {
|
|
1116
|
+
static __wrap(ptr) {
|
|
1117
|
+
const obj = Object.create(SspConnectionManager.prototype);
|
|
1118
|
+
obj.__wbg_ptr = ptr;
|
|
1119
|
+
SspConnectionManagerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1120
|
+
return obj;
|
|
1121
|
+
}
|
|
1122
|
+
__destroy_into_raw() {
|
|
1123
|
+
const ptr = this.__wbg_ptr;
|
|
1124
|
+
this.__wbg_ptr = 0;
|
|
1125
|
+
SspConnectionManagerFinalization.unregister(this);
|
|
1126
|
+
return ptr;
|
|
1127
|
+
}
|
|
1128
|
+
free() {
|
|
1129
|
+
const ptr = this.__destroy_into_raw();
|
|
1130
|
+
wasm.__wbg_sspconnectionmanager_free(ptr, 0);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
if (Symbol.dispose) SspConnectionManager.prototype[Symbol.dispose] = SspConnectionManager.prototype.free;
|
|
1134
|
+
|
|
910
1135
|
export class TokenIssuer {
|
|
911
1136
|
static __wrap(ptr) {
|
|
912
1137
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1003,6 +1228,32 @@ export function connectWithSigner(config, signer, storage_dir) {
|
|
|
1003
1228
|
return ret;
|
|
1004
1229
|
}
|
|
1005
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* Creates a shareable MySQL connection pool from the given config.
|
|
1233
|
+
* @param {MysqlStorageConfig} config
|
|
1234
|
+
* @returns {MysqlConnectionPool}
|
|
1235
|
+
*/
|
|
1236
|
+
export function createMysqlConnectionPool(config) {
|
|
1237
|
+
const ret = wasm.createMysqlConnectionPool(config);
|
|
1238
|
+
if (ret[2]) {
|
|
1239
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1240
|
+
}
|
|
1241
|
+
return MysqlConnectionPool.__wrap(ret[0]);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Creates a shareable Postgres connection pool from the given config.
|
|
1246
|
+
* @param {PostgresStorageConfig} config
|
|
1247
|
+
* @returns {PostgresConnectionPool}
|
|
1248
|
+
*/
|
|
1249
|
+
export function createPostgresConnectionPool(config) {
|
|
1250
|
+
const ret = wasm.createPostgresConnectionPool(config);
|
|
1251
|
+
if (ret[2]) {
|
|
1252
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1253
|
+
}
|
|
1254
|
+
return PostgresConnectionPool.__wrap(ret[0]);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1006
1257
|
/**
|
|
1007
1258
|
* @param {Network} network
|
|
1008
1259
|
* @returns {Config}
|
|
@@ -1031,6 +1282,23 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
1031
1282
|
return DefaultSigner.__wrap(ret[0]);
|
|
1032
1283
|
}
|
|
1033
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* Creates a default MySQL storage configuration with sensible defaults.
|
|
1287
|
+
*
|
|
1288
|
+
* Default values:
|
|
1289
|
+
* - `maxPoolSize`: 10
|
|
1290
|
+
* - `createTimeoutSecs`: 0 (no timeout)
|
|
1291
|
+
* - `recycleTimeoutSecs`: 10
|
|
1292
|
+
* @param {string} connection_string
|
|
1293
|
+
* @returns {MysqlStorageConfig}
|
|
1294
|
+
*/
|
|
1295
|
+
export function defaultMysqlStorageConfig(connection_string) {
|
|
1296
|
+
const ptr0 = passStringToWasm0(connection_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1297
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1298
|
+
const ret = wasm.defaultMysqlStorageConfig(ptr0, len0);
|
|
1299
|
+
return ret;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1034
1302
|
/**
|
|
1035
1303
|
* Creates a default PostgreSQL storage configuration with sensible defaults.
|
|
1036
1304
|
*
|
|
@@ -1071,6 +1339,38 @@ export function initLogging(logger, filter) {
|
|
|
1071
1339
|
return ret;
|
|
1072
1340
|
}
|
|
1073
1341
|
|
|
1342
|
+
/**
|
|
1343
|
+
* Constructs a shareable REST-based Bitcoin chain service.
|
|
1344
|
+
*
|
|
1345
|
+
* Pass the returned chain service to multiple `SdkBuilder`s via
|
|
1346
|
+
* `withChainService` to reuse one HTTP client across SDK instances. All
|
|
1347
|
+
* SDKs sharing the chain service must use the same `network`.
|
|
1348
|
+
*
|
|
1349
|
+
* For one-off, non-shared use, prefer `withRestChainService`.
|
|
1350
|
+
* @param {string} url
|
|
1351
|
+
* @param {Network} network
|
|
1352
|
+
* @param {ChainApiType} api_type
|
|
1353
|
+
* @param {Credentials | null} [credentials]
|
|
1354
|
+
* @returns {BitcoinChainService}
|
|
1355
|
+
*/
|
|
1356
|
+
export function newRestChainService(url, network, api_type, credentials) {
|
|
1357
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1358
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1359
|
+
const ret = wasm.newRestChainService(ptr0, len0, network, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1360
|
+
return BitcoinChainServiceHandle.__wrap(ret);
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* @param {string | null} [user_agent]
|
|
1365
|
+
* @returns {SspConnectionManager}
|
|
1366
|
+
*/
|
|
1367
|
+
export function newSspConnectionManager(user_agent) {
|
|
1368
|
+
var ptr0 = isLikeNone(user_agent) ? 0 : passStringToWasm0(user_agent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1369
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1370
|
+
const ret = wasm.newSspConnectionManager(ptr0, len0);
|
|
1371
|
+
return SspConnectionManager.__wrap(ret);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1074
1374
|
/**
|
|
1075
1375
|
* Entry point invoked by JavaScript in a worker.
|
|
1076
1376
|
* @param {number} ptr
|
|
@@ -1334,20 +1634,44 @@ function __wbg_get_imports() {
|
|
|
1334
1634
|
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1335
1635
|
return ret;
|
|
1336
1636
|
}, arguments); },
|
|
1637
|
+
__wbg_createMysqlPool_8927bff3a28fcef9: function() { return handleError(function (arg0) {
|
|
1638
|
+
const ret = createMysqlPool(arg0);
|
|
1639
|
+
return ret;
|
|
1640
|
+
}, arguments); },
|
|
1641
|
+
__wbg_createMysqlSessionManagerWithPool_e4a41fa210a1c161: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1642
|
+
const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1643
|
+
return ret;
|
|
1644
|
+
}, arguments); },
|
|
1645
|
+
__wbg_createMysqlStorageWithPool_c92d8cd5f2ca6ade: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1646
|
+
const ret = createMysqlStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1647
|
+
return ret;
|
|
1648
|
+
}, arguments); },
|
|
1649
|
+
__wbg_createMysqlTokenStoreWithPool_cb308b20dccd4b4e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1650
|
+
const ret = createMysqlTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1651
|
+
return ret;
|
|
1652
|
+
}, arguments); },
|
|
1653
|
+
__wbg_createMysqlTreeStoreWithPool_98638c799d6a967c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1654
|
+
const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1655
|
+
return ret;
|
|
1656
|
+
}, arguments); },
|
|
1337
1657
|
__wbg_createPostgresPool_3c396c7ab2f0eab2: function() { return handleError(function (arg0) {
|
|
1338
1658
|
const ret = createPostgresPool(arg0);
|
|
1339
1659
|
return ret;
|
|
1340
1660
|
}, arguments); },
|
|
1341
|
-
|
|
1342
|
-
const ret =
|
|
1661
|
+
__wbg_createPostgresSessionManagerWithPool_df33d3998bd54e5b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1662
|
+
const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1663
|
+
return ret;
|
|
1664
|
+
}, arguments); },
|
|
1665
|
+
__wbg_createPostgresStorageWithPool_3fe1b7ee3ca10589: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1666
|
+
const ret = createPostgresStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1343
1667
|
return ret;
|
|
1344
1668
|
}, arguments); },
|
|
1345
|
-
|
|
1346
|
-
const ret = createPostgresTokenStoreWithPool(arg0, arg1);
|
|
1669
|
+
__wbg_createPostgresTokenStoreWithPool_ebd4c54228196816: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1670
|
+
const ret = createPostgresTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1347
1671
|
return ret;
|
|
1348
1672
|
}, arguments); },
|
|
1349
|
-
|
|
1350
|
-
const ret = createPostgresTreeStoreWithPool(arg0, arg1);
|
|
1673
|
+
__wbg_createPostgresTreeStoreWithPool_6b43821b450142cb: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1674
|
+
const ret = createPostgresTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1351
1675
|
return ret;
|
|
1352
1676
|
}, arguments); },
|
|
1353
1677
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
@@ -1478,7 +1802,7 @@ function __wbg_get_imports() {
|
|
|
1478
1802
|
const ret = Object.entries(arg0);
|
|
1479
1803
|
return ret;
|
|
1480
1804
|
},
|
|
1481
|
-
|
|
1805
|
+
__wbg_error_145dadf4216d70bc: function(arg0, arg1) {
|
|
1482
1806
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1483
1807
|
},
|
|
1484
1808
|
__wbg_fetchFiatCurrencies_8afa0468f01bf013: function() { return handleError(function (arg0) {
|
|
@@ -1641,6 +1965,18 @@ function __wbg_get_imports() {
|
|
|
1641
1965
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1642
1966
|
}
|
|
1643
1967
|
}, arguments); },
|
|
1968
|
+
__wbg_getSession_05b1be4bb146adcf: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1969
|
+
let deferred0_0;
|
|
1970
|
+
let deferred0_1;
|
|
1971
|
+
try {
|
|
1972
|
+
deferred0_0 = arg1;
|
|
1973
|
+
deferred0_1 = arg2;
|
|
1974
|
+
const ret = arg0.getSession(getStringFromWasm0(arg1, arg2));
|
|
1975
|
+
return ret;
|
|
1976
|
+
} finally {
|
|
1977
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1978
|
+
}
|
|
1979
|
+
}, arguments); },
|
|
1644
1980
|
__wbg_getStaticDepositPrivateKey_82943f7a0fe1208d: function() { return handleError(function (arg0, arg1) {
|
|
1645
1981
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1646
1982
|
return ret;
|
|
@@ -2155,7 +2491,19 @@ function __wbg_get_imports() {
|
|
|
2155
2491
|
const ret = arg0.setLnurlMetadata(v0);
|
|
2156
2492
|
return ret;
|
|
2157
2493
|
}, arguments); },
|
|
2158
|
-
|
|
2494
|
+
__wbg_setSession_35cb471ae7537391: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2495
|
+
let deferred0_0;
|
|
2496
|
+
let deferred0_1;
|
|
2497
|
+
try {
|
|
2498
|
+
deferred0_0 = arg1;
|
|
2499
|
+
deferred0_1 = arg2;
|
|
2500
|
+
const ret = arg0.setSession(getStringFromWasm0(arg1, arg2), arg3);
|
|
2501
|
+
return ret;
|
|
2502
|
+
} finally {
|
|
2503
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2504
|
+
}
|
|
2505
|
+
}, arguments); },
|
|
2506
|
+
__wbg_setTimeout_631eb4eafbc308a9: function(arg0, arg1) {
|
|
2159
2507
|
globalThis.setTimeout(arg0, arg1);
|
|
2160
2508
|
},
|
|
2161
2509
|
__wbg_setTimeout_ef24d2fc3ad97385: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2446,103 +2794,108 @@ function __wbg_get_imports() {
|
|
|
2446
2794
|
},
|
|
2447
2795
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2448
2796
|
// 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`.
|
|
2449
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2797
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c);
|
|
2450
2798
|
return ret;
|
|
2451
2799
|
},
|
|
2452
2800
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2453
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2801
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2454
2802
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
|
|
2455
2803
|
return ret;
|
|
2456
2804
|
},
|
|
2457
2805
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2458
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2806
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2459
2807
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2);
|
|
2460
2808
|
return ret;
|
|
2461
2809
|
},
|
|
2462
2810
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2463
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2811
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2464
2812
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
|
|
2465
2813
|
return ret;
|
|
2466
2814
|
},
|
|
2467
2815
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2468
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2469
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2816
|
+
// 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`.
|
|
2817
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4);
|
|
2470
2818
|
return ret;
|
|
2471
2819
|
},
|
|
2472
2820
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2473
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2474
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2821
|
+
// 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`.
|
|
2822
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5);
|
|
2475
2823
|
return ret;
|
|
2476
2824
|
},
|
|
2477
2825
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
2478
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2479
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2826
|
+
// 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`.
|
|
2827
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6);
|
|
2480
2828
|
return ret;
|
|
2481
2829
|
},
|
|
2482
2830
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
2483
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2484
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2831
|
+
// 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`.
|
|
2832
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7);
|
|
2833
|
+
return ret;
|
|
2834
|
+
},
|
|
2835
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
2836
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 404, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2837
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h124479769cd429fd);
|
|
2485
2838
|
return ret;
|
|
2486
2839
|
},
|
|
2487
|
-
|
|
2840
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
2488
2841
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2489
2842
|
const ret = arg0;
|
|
2490
2843
|
return ret;
|
|
2491
2844
|
},
|
|
2492
|
-
|
|
2845
|
+
__wbindgen_cast_000000000000000b: function(arg0) {
|
|
2493
2846
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2494
2847
|
const ret = arg0;
|
|
2495
2848
|
return ret;
|
|
2496
2849
|
},
|
|
2497
|
-
|
|
2850
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
2498
2851
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2499
2852
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2500
2853
|
return ret;
|
|
2501
2854
|
},
|
|
2502
|
-
|
|
2855
|
+
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
2503
2856
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2504
2857
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2505
2858
|
return ret;
|
|
2506
2859
|
},
|
|
2507
|
-
|
|
2860
|
+
__wbindgen_cast_000000000000000e: function(arg0, arg1) {
|
|
2508
2861
|
// Cast intrinsic for `U128 -> Externref`.
|
|
2509
2862
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
2510
2863
|
return ret;
|
|
2511
2864
|
},
|
|
2512
|
-
|
|
2865
|
+
__wbindgen_cast_000000000000000f: function(arg0) {
|
|
2513
2866
|
// Cast intrinsic for `U64 -> Externref`.
|
|
2514
2867
|
const ret = BigInt.asUintN(64, arg0);
|
|
2515
2868
|
return ret;
|
|
2516
2869
|
},
|
|
2517
|
-
|
|
2870
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
2518
2871
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2519
2872
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2520
2873
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
2521
2874
|
const ret = v0;
|
|
2522
2875
|
return ret;
|
|
2523
2876
|
},
|
|
2524
|
-
|
|
2877
|
+
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
2525
2878
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2526
2879
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2527
2880
|
// Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
|
|
2528
2881
|
const ret = v0;
|
|
2529
2882
|
return ret;
|
|
2530
2883
|
},
|
|
2531
|
-
|
|
2884
|
+
__wbindgen_cast_0000000000000012: function(arg0, arg1) {
|
|
2532
2885
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2533
2886
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2534
2887
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
2535
2888
|
const ret = v0;
|
|
2536
2889
|
return ret;
|
|
2537
2890
|
},
|
|
2538
|
-
|
|
2891
|
+
__wbindgen_cast_0000000000000013: function(arg0, arg1) {
|
|
2539
2892
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2540
2893
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2541
2894
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
2542
2895
|
const ret = v0;
|
|
2543
2896
|
return ret;
|
|
2544
2897
|
},
|
|
2545
|
-
|
|
2898
|
+
__wbindgen_cast_0000000000000014: function(arg0, arg1) {
|
|
2546
2899
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2547
2900
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2548
2901
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -2565,8 +2918,8 @@ function __wbg_get_imports() {
|
|
|
2565
2918
|
};
|
|
2566
2919
|
}
|
|
2567
2920
|
|
|
2568
|
-
function
|
|
2569
|
-
wasm.
|
|
2921
|
+
function wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1) {
|
|
2922
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1);
|
|
2570
2923
|
}
|
|
2571
2924
|
|
|
2572
2925
|
function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
|
|
@@ -2581,29 +2934,36 @@ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, a
|
|
|
2581
2934
|
wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
|
|
2582
2935
|
}
|
|
2583
2936
|
|
|
2584
|
-
function
|
|
2585
|
-
const ret = wasm.
|
|
2937
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2) {
|
|
2938
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2);
|
|
2939
|
+
if (ret[1]) {
|
|
2940
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2) {
|
|
2945
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2);
|
|
2586
2946
|
if (ret[1]) {
|
|
2587
2947
|
throw takeFromExternrefTable0(ret[0]);
|
|
2588
2948
|
}
|
|
2589
2949
|
}
|
|
2590
2950
|
|
|
2591
|
-
function
|
|
2592
|
-
const ret = wasm.
|
|
2951
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2) {
|
|
2952
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2);
|
|
2593
2953
|
if (ret[1]) {
|
|
2594
2954
|
throw takeFromExternrefTable0(ret[0]);
|
|
2595
2955
|
}
|
|
2596
2956
|
}
|
|
2597
2957
|
|
|
2598
|
-
function
|
|
2599
|
-
const ret = wasm.
|
|
2958
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2) {
|
|
2959
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2);
|
|
2600
2960
|
if (ret[1]) {
|
|
2601
2961
|
throw takeFromExternrefTable0(ret[0]);
|
|
2602
2962
|
}
|
|
2603
2963
|
}
|
|
2604
2964
|
|
|
2605
|
-
function
|
|
2606
|
-
const ret = wasm.
|
|
2965
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2) {
|
|
2966
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2);
|
|
2607
2967
|
if (ret[1]) {
|
|
2608
2968
|
throw takeFromExternrefTable0(ret[0]);
|
|
2609
2969
|
}
|
|
@@ -2633,6 +2993,9 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
2633
2993
|
|
|
2634
2994
|
|
|
2635
2995
|
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
2996
|
+
const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2997
|
+
? { register: () => {}, unregister: () => {} }
|
|
2998
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bitcoinchainservicehandle_free(ptr, 1));
|
|
2636
2999
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2637
3000
|
? { register: () => {}, unregister: () => {} }
|
|
2638
3001
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
@@ -2648,12 +3011,21 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
2648
3011
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2649
3012
|
? { register: () => {}, unregister: () => {} }
|
|
2650
3013
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
3014
|
+
const MysqlConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3015
|
+
? { register: () => {}, unregister: () => {} }
|
|
3016
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mysqlconnectionpool_free(ptr, 1));
|
|
2651
3017
|
const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2652
3018
|
? { register: () => {}, unregister: () => {} }
|
|
2653
3019
|
: new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
|
|
3020
|
+
const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3021
|
+
? { register: () => {}, unregister: () => {} }
|
|
3022
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
|
|
2654
3023
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2655
3024
|
? { register: () => {}, unregister: () => {} }
|
|
2656
3025
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3026
|
+
const SspConnectionManagerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3027
|
+
? { register: () => {}, unregister: () => {} }
|
|
3028
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sspconnectionmanager_free(ptr, 1));
|
|
2657
3029
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2658
3030
|
? { register: () => {}, unregister: () => {} }
|
|
2659
3031
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
@@ -2664,6 +3036,12 @@ function addToExternrefTable0(obj) {
|
|
|
2664
3036
|
return idx;
|
|
2665
3037
|
}
|
|
2666
3038
|
|
|
3039
|
+
function _assertClass(instance, klass) {
|
|
3040
|
+
if (!(instance instanceof klass)) {
|
|
3041
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
|
|
2667
3045
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2668
3046
|
? { register: () => {}, unregister: () => {} }
|
|
2669
3047
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|