@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,3 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rust-built implementation of the JS `BitcoinChainService` interface.
|
|
3
|
+
*
|
|
4
|
+
* Returned by factories like [`new_rest_chain_service`]; users see it as a
|
|
5
|
+
* `BitcoinChainService` and pass it to `withChainService`. Pass the same
|
|
6
|
+
* instance to multiple `SdkBuilder`s to share a single underlying HTTP
|
|
7
|
+
* client (and its connection pool) across SDK instances.
|
|
8
|
+
*/
|
|
9
|
+
export class BitcoinChainServiceHandle {
|
|
10
|
+
static __wrap(ptr) {
|
|
11
|
+
const obj = Object.create(BitcoinChainServiceHandle.prototype);
|
|
12
|
+
obj.__wbg_ptr = ptr;
|
|
13
|
+
BitcoinChainServiceHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
14
|
+
return obj;
|
|
15
|
+
}
|
|
16
|
+
__destroy_into_raw() {
|
|
17
|
+
const ptr = this.__wbg_ptr;
|
|
18
|
+
this.__wbg_ptr = 0;
|
|
19
|
+
BitcoinChainServiceHandleFinalization.unregister(this);
|
|
20
|
+
return ptr;
|
|
21
|
+
}
|
|
22
|
+
free() {
|
|
23
|
+
const ptr = this.__destroy_into_raw();
|
|
24
|
+
wasm.__wbg_bitcoinchainservicehandle_free(ptr, 0);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @param {string} tx
|
|
28
|
+
* @returns {Promise<void>}
|
|
29
|
+
*/
|
|
30
|
+
broadcastTransaction(tx) {
|
|
31
|
+
const ptr0 = passStringToWasm0(tx, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
32
|
+
const len0 = WASM_VECTOR_LEN;
|
|
33
|
+
const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
|
|
34
|
+
return ret;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} address
|
|
38
|
+
* @returns {Promise<any>}
|
|
39
|
+
*/
|
|
40
|
+
getAddressUtxos(address) {
|
|
41
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
42
|
+
const len0 = WASM_VECTOR_LEN;
|
|
43
|
+
const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
|
|
44
|
+
return ret;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @param {string} txid
|
|
48
|
+
* @returns {Promise<any>}
|
|
49
|
+
*/
|
|
50
|
+
getTransactionHex(txid) {
|
|
51
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
52
|
+
const len0 = WASM_VECTOR_LEN;
|
|
53
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionHex(this.__wbg_ptr, ptr0, len0);
|
|
54
|
+
return ret;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @param {string} txid
|
|
58
|
+
* @returns {Promise<any>}
|
|
59
|
+
*/
|
|
60
|
+
getTransactionStatus(txid) {
|
|
61
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
62
|
+
const len0 = WASM_VECTOR_LEN;
|
|
63
|
+
const ret = wasm.bitcoinchainservicehandle_getTransactionStatus(this.__wbg_ptr, ptr0, len0);
|
|
64
|
+
return ret;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @returns {Promise<any>}
|
|
68
|
+
*/
|
|
69
|
+
recommendedFees() {
|
|
70
|
+
const ret = wasm.bitcoinchainservicehandle_recommendedFees(this.__wbg_ptr);
|
|
71
|
+
return ret;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (Symbol.dispose) BitcoinChainServiceHandle.prototype[Symbol.dispose] = BitcoinChainServiceHandle.prototype.free;
|
|
75
|
+
|
|
1
76
|
export class BreezSdk {
|
|
2
77
|
static __wrap(ptr) {
|
|
3
78
|
const obj = Object.create(BreezSdk.prototype);
|
|
@@ -691,6 +766,30 @@ export class IntoUnderlyingSource {
|
|
|
691
766
|
}
|
|
692
767
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
693
768
|
|
|
769
|
+
/**
|
|
770
|
+
* A shareable MySQL connection pool. See [`PostgresConnectionPool`](super::postgres_pool::PostgresConnectionPool)
|
|
771
|
+
* for sharing semantics and lifecycle.
|
|
772
|
+
*/
|
|
773
|
+
export class MysqlConnectionPool {
|
|
774
|
+
static __wrap(ptr) {
|
|
775
|
+
const obj = Object.create(MysqlConnectionPool.prototype);
|
|
776
|
+
obj.__wbg_ptr = ptr;
|
|
777
|
+
MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
778
|
+
return obj;
|
|
779
|
+
}
|
|
780
|
+
__destroy_into_raw() {
|
|
781
|
+
const ptr = this.__wbg_ptr;
|
|
782
|
+
this.__wbg_ptr = 0;
|
|
783
|
+
MysqlConnectionPoolFinalization.unregister(this);
|
|
784
|
+
return ptr;
|
|
785
|
+
}
|
|
786
|
+
free() {
|
|
787
|
+
const ptr = this.__destroy_into_raw();
|
|
788
|
+
wasm.__wbg_mysqlconnectionpool_free(ptr, 0);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
|
|
792
|
+
|
|
694
793
|
/**
|
|
695
794
|
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
696
795
|
*
|
|
@@ -772,6 +871,36 @@ export class Passkey {
|
|
|
772
871
|
}
|
|
773
872
|
if (Symbol.dispose) Passkey.prototype[Symbol.dispose] = Passkey.prototype.free;
|
|
774
873
|
|
|
874
|
+
/**
|
|
875
|
+
* A shareable Postgres connection pool.
|
|
876
|
+
*
|
|
877
|
+
* Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
|
|
878
|
+
* `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
|
|
879
|
+
* Per-tenant scoping is derived from each SDK's seed.
|
|
880
|
+
*
|
|
881
|
+
* The pool's lifecycle is controlled by the integrator: it stays alive as
|
|
882
|
+
* long as any reference is held. `disconnect()` does **not** close the pool.
|
|
883
|
+
*/
|
|
884
|
+
export class PostgresConnectionPool {
|
|
885
|
+
static __wrap(ptr) {
|
|
886
|
+
const obj = Object.create(PostgresConnectionPool.prototype);
|
|
887
|
+
obj.__wbg_ptr = ptr;
|
|
888
|
+
PostgresConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
889
|
+
return obj;
|
|
890
|
+
}
|
|
891
|
+
__destroy_into_raw() {
|
|
892
|
+
const ptr = this.__wbg_ptr;
|
|
893
|
+
this.__wbg_ptr = 0;
|
|
894
|
+
PostgresConnectionPoolFinalization.unregister(this);
|
|
895
|
+
return ptr;
|
|
896
|
+
}
|
|
897
|
+
free() {
|
|
898
|
+
const ptr = this.__destroy_into_raw();
|
|
899
|
+
wasm.__wbg_postgresconnectionpool_free(ptr, 0);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
if (Symbol.dispose) PostgresConnectionPool.prototype[Symbol.dispose] = PostgresConnectionPool.prototype.free;
|
|
903
|
+
|
|
775
904
|
export class SdkBuilder {
|
|
776
905
|
static __wrap(ptr) {
|
|
777
906
|
const obj = Object.create(SdkBuilder.prototype);
|
|
@@ -862,6 +991,32 @@ export class SdkBuilder {
|
|
|
862
991
|
const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
|
|
863
992
|
return SdkBuilder.__wrap(ret);
|
|
864
993
|
}
|
|
994
|
+
/**
|
|
995
|
+
* **Deprecated.** Call `withMysqlConnectionPool(config)` and `withMysqlConnectionPool(pool)` instead.
|
|
996
|
+
* @param {MysqlStorageConfig} config
|
|
997
|
+
* @returns {SdkBuilder}
|
|
998
|
+
*/
|
|
999
|
+
withMysqlBackend(config) {
|
|
1000
|
+
const ptr = this.__destroy_into_raw();
|
|
1001
|
+
const ret = wasm.sdkbuilder_withMysqlBackend(ptr, config);
|
|
1002
|
+
if (ret[2]) {
|
|
1003
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1004
|
+
}
|
|
1005
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1009
|
+
* Construct via `createMysqlConnectionPool` and pass the same handle to multiple
|
|
1010
|
+
* `SdkBuilder`s to share connections across SDKs.
|
|
1011
|
+
* @param {MysqlConnectionPool} pool
|
|
1012
|
+
* @returns {SdkBuilder}
|
|
1013
|
+
*/
|
|
1014
|
+
withMysqlConnectionPool(pool) {
|
|
1015
|
+
const ptr = this.__destroy_into_raw();
|
|
1016
|
+
_assertClass(pool, MysqlConnectionPool);
|
|
1017
|
+
const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
|
|
1018
|
+
return SdkBuilder.__wrap(ret);
|
|
1019
|
+
}
|
|
865
1020
|
/**
|
|
866
1021
|
* @param {PaymentObserver} payment_observer
|
|
867
1022
|
* @returns {SdkBuilder}
|
|
@@ -872,12 +1027,29 @@ export class SdkBuilder {
|
|
|
872
1027
|
return SdkBuilder.__wrap(ret);
|
|
873
1028
|
}
|
|
874
1029
|
/**
|
|
1030
|
+
* **Deprecated.** Call `withPostgresConnectionPool(config)` and `withPostgresConnectionPool(pool)` instead.
|
|
875
1031
|
* @param {PostgresStorageConfig} config
|
|
876
1032
|
* @returns {SdkBuilder}
|
|
877
1033
|
*/
|
|
878
1034
|
withPostgresBackend(config) {
|
|
879
1035
|
const ptr = this.__destroy_into_raw();
|
|
880
1036
|
const ret = wasm.sdkbuilder_withPostgresBackend(ptr, config);
|
|
1037
|
+
if (ret[2]) {
|
|
1038
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1039
|
+
}
|
|
1040
|
+
return SdkBuilder.__wrap(ret[0]);
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Sets a shared `PostgreSQL` connection pool as the backend for all
|
|
1044
|
+
* stores. Construct via `createPostgresConnectionPool` and pass the same handle
|
|
1045
|
+
* to multiple `SdkBuilder`s to share connections across SDKs.
|
|
1046
|
+
* @param {PostgresConnectionPool} pool
|
|
1047
|
+
* @returns {SdkBuilder}
|
|
1048
|
+
*/
|
|
1049
|
+
withPostgresConnectionPool(pool) {
|
|
1050
|
+
const ptr = this.__destroy_into_raw();
|
|
1051
|
+
_assertClass(pool, PostgresConnectionPool);
|
|
1052
|
+
const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
|
|
881
1053
|
return SdkBuilder.__wrap(ret);
|
|
882
1054
|
}
|
|
883
1055
|
/**
|
|
@@ -893,6 +1065,33 @@ export class SdkBuilder {
|
|
|
893
1065
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
894
1066
|
return SdkBuilder.__wrap(ret);
|
|
895
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Sets a custom session manager used to persist authentication sessions.
|
|
1070
|
+
*
|
|
1071
|
+
* Provide a shared, persistent implementation (e.g. backed by `PostgreSQL`
|
|
1072
|
+
* or Redis) to let multiple SDK instances share authentication state and
|
|
1073
|
+
* bootstrap quickly. If not set, an in-memory session manager is used.
|
|
1074
|
+
* @param {SessionManager} session_manager
|
|
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
|
|
1087
|
+
* @returns {SdkBuilder}
|
|
1088
|
+
*/
|
|
1089
|
+
withSspConnectionManager(manager) {
|
|
1090
|
+
const ptr = this.__destroy_into_raw();
|
|
1091
|
+
_assertClass(manager, SspConnectionManager);
|
|
1092
|
+
const ret = wasm.sdkbuilder_withSspConnectionManager(ptr, manager.__wbg_ptr);
|
|
1093
|
+
return SdkBuilder.__wrap(ret);
|
|
1094
|
+
}
|
|
896
1095
|
/**
|
|
897
1096
|
* @param {Storage} storage
|
|
898
1097
|
* @returns {SdkBuilder}
|
|
@@ -905,6 +1104,32 @@ export class SdkBuilder {
|
|
|
905
1104
|
}
|
|
906
1105
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
907
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
|
+
|
|
908
1133
|
export class TokenIssuer {
|
|
909
1134
|
static __wrap(ptr) {
|
|
910
1135
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1001,6 +1226,32 @@ export function connectWithSigner(config, signer, storage_dir) {
|
|
|
1001
1226
|
return ret;
|
|
1002
1227
|
}
|
|
1003
1228
|
|
|
1229
|
+
/**
|
|
1230
|
+
* Creates a shareable MySQL connection pool from the given config.
|
|
1231
|
+
* @param {MysqlStorageConfig} config
|
|
1232
|
+
* @returns {MysqlConnectionPool}
|
|
1233
|
+
*/
|
|
1234
|
+
export function createMysqlConnectionPool(config) {
|
|
1235
|
+
const ret = wasm.createMysqlConnectionPool(config);
|
|
1236
|
+
if (ret[2]) {
|
|
1237
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1238
|
+
}
|
|
1239
|
+
return MysqlConnectionPool.__wrap(ret[0]);
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Creates a shareable Postgres connection pool from the given config.
|
|
1244
|
+
* @param {PostgresStorageConfig} config
|
|
1245
|
+
* @returns {PostgresConnectionPool}
|
|
1246
|
+
*/
|
|
1247
|
+
export function createPostgresConnectionPool(config) {
|
|
1248
|
+
const ret = wasm.createPostgresConnectionPool(config);
|
|
1249
|
+
if (ret[2]) {
|
|
1250
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1251
|
+
}
|
|
1252
|
+
return PostgresConnectionPool.__wrap(ret[0]);
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1004
1255
|
/**
|
|
1005
1256
|
* @param {Network} network
|
|
1006
1257
|
* @returns {Config}
|
|
@@ -1029,6 +1280,23 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
1029
1280
|
return DefaultSigner.__wrap(ret[0]);
|
|
1030
1281
|
}
|
|
1031
1282
|
|
|
1283
|
+
/**
|
|
1284
|
+
* Creates a default MySQL storage configuration with sensible defaults.
|
|
1285
|
+
*
|
|
1286
|
+
* Default values:
|
|
1287
|
+
* - `maxPoolSize`: 10
|
|
1288
|
+
* - `createTimeoutSecs`: 0 (no timeout)
|
|
1289
|
+
* - `recycleTimeoutSecs`: 10
|
|
1290
|
+
* @param {string} connection_string
|
|
1291
|
+
* @returns {MysqlStorageConfig}
|
|
1292
|
+
*/
|
|
1293
|
+
export function defaultMysqlStorageConfig(connection_string) {
|
|
1294
|
+
const ptr0 = passStringToWasm0(connection_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1295
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1296
|
+
const ret = wasm.defaultMysqlStorageConfig(ptr0, len0);
|
|
1297
|
+
return ret;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1032
1300
|
/**
|
|
1033
1301
|
* Creates a default PostgreSQL storage configuration with sensible defaults.
|
|
1034
1302
|
*
|
|
@@ -1069,6 +1337,38 @@ export function initLogging(logger, filter) {
|
|
|
1069
1337
|
return ret;
|
|
1070
1338
|
}
|
|
1071
1339
|
|
|
1340
|
+
/**
|
|
1341
|
+
* Constructs a shareable REST-based Bitcoin chain service.
|
|
1342
|
+
*
|
|
1343
|
+
* Pass the returned chain service to multiple `SdkBuilder`s via
|
|
1344
|
+
* `withChainService` to reuse one HTTP client across SDK instances. All
|
|
1345
|
+
* SDKs sharing the chain service must use the same `network`.
|
|
1346
|
+
*
|
|
1347
|
+
* For one-off, non-shared use, prefer `withRestChainService`.
|
|
1348
|
+
* @param {string} url
|
|
1349
|
+
* @param {Network} network
|
|
1350
|
+
* @param {ChainApiType} api_type
|
|
1351
|
+
* @param {Credentials | null} [credentials]
|
|
1352
|
+
* @returns {BitcoinChainService}
|
|
1353
|
+
*/
|
|
1354
|
+
export function newRestChainService(url, network, api_type, credentials) {
|
|
1355
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1356
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1357
|
+
const ret = wasm.newRestChainService(ptr0, len0, network, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1358
|
+
return BitcoinChainServiceHandle.__wrap(ret);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string | null} [user_agent]
|
|
1363
|
+
* @returns {SspConnectionManager}
|
|
1364
|
+
*/
|
|
1365
|
+
export function newSspConnectionManager(user_agent) {
|
|
1366
|
+
var ptr0 = isLikeNone(user_agent) ? 0 : passStringToWasm0(user_agent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1367
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1368
|
+
const ret = wasm.newSspConnectionManager(ptr0, len0);
|
|
1369
|
+
return SspConnectionManager.__wrap(ret);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1072
1372
|
/**
|
|
1073
1373
|
* Entry point invoked by JavaScript in a worker.
|
|
1074
1374
|
* @param {number} ptr
|
|
@@ -1329,20 +1629,44 @@ export function __wbg_createDefaultStorage_0d66fd24fb8cc6f3() { return handleErr
|
|
|
1329
1629
|
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1330
1630
|
return ret;
|
|
1331
1631
|
}, arguments); }
|
|
1632
|
+
export function __wbg_createMysqlPool_8927bff3a28fcef9() { return handleError(function (arg0) {
|
|
1633
|
+
const ret = createMysqlPool(arg0);
|
|
1634
|
+
return ret;
|
|
1635
|
+
}, arguments); }
|
|
1636
|
+
export function __wbg_createMysqlSessionManagerWithPool_e4a41fa210a1c161() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1637
|
+
const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1638
|
+
return ret;
|
|
1639
|
+
}, arguments); }
|
|
1640
|
+
export function __wbg_createMysqlStorageWithPool_c92d8cd5f2ca6ade() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1641
|
+
const ret = createMysqlStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1642
|
+
return ret;
|
|
1643
|
+
}, arguments); }
|
|
1644
|
+
export function __wbg_createMysqlTokenStoreWithPool_cb308b20dccd4b4e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1645
|
+
const ret = createMysqlTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1646
|
+
return ret;
|
|
1647
|
+
}, arguments); }
|
|
1648
|
+
export function __wbg_createMysqlTreeStoreWithPool_98638c799d6a967c() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1649
|
+
const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1650
|
+
return ret;
|
|
1651
|
+
}, arguments); }
|
|
1332
1652
|
export function __wbg_createPostgresPool_3c396c7ab2f0eab2() { return handleError(function (arg0) {
|
|
1333
1653
|
const ret = createPostgresPool(arg0);
|
|
1334
1654
|
return ret;
|
|
1335
1655
|
}, arguments); }
|
|
1336
|
-
export function
|
|
1337
|
-
const ret =
|
|
1656
|
+
export function __wbg_createPostgresSessionManagerWithPool_df33d3998bd54e5b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1657
|
+
const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1658
|
+
return ret;
|
|
1659
|
+
}, arguments); }
|
|
1660
|
+
export function __wbg_createPostgresStorageWithPool_3fe1b7ee3ca10589() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1661
|
+
const ret = createPostgresStorageWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1338
1662
|
return ret;
|
|
1339
1663
|
}, arguments); }
|
|
1340
|
-
export function
|
|
1341
|
-
const ret = createPostgresTokenStoreWithPool(arg0, arg1);
|
|
1664
|
+
export function __wbg_createPostgresTokenStoreWithPool_ebd4c54228196816() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1665
|
+
const ret = createPostgresTokenStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1342
1666
|
return ret;
|
|
1343
1667
|
}, arguments); }
|
|
1344
|
-
export function
|
|
1345
|
-
const ret = createPostgresTreeStoreWithPool(arg0, arg1);
|
|
1668
|
+
export function __wbg_createPostgresTreeStoreWithPool_6b43821b450142cb() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1669
|
+
const ret = createPostgresTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1346
1670
|
return ret;
|
|
1347
1671
|
}, arguments); }
|
|
1348
1672
|
export function __wbg_crypto_38df2bab126b63dc(arg0) {
|
|
@@ -1473,7 +1797,7 @@ export function __wbg_entries_bb9843ba73dc70d6(arg0) {
|
|
|
1473
1797
|
const ret = Object.entries(arg0);
|
|
1474
1798
|
return ret;
|
|
1475
1799
|
}
|
|
1476
|
-
export function
|
|
1800
|
+
export function __wbg_error_145dadf4216d70bc(arg0, arg1) {
|
|
1477
1801
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1478
1802
|
}
|
|
1479
1803
|
export function __wbg_fetchFiatCurrencies_8afa0468f01bf013() { return handleError(function (arg0) {
|
|
@@ -1636,6 +1960,18 @@ export function __wbg_getRequest_9153d27d6c51b5c7() { return handleError(functio
|
|
|
1636
1960
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1637
1961
|
}
|
|
1638
1962
|
}, arguments); }
|
|
1963
|
+
export function __wbg_getSession_05b1be4bb146adcf() { return handleError(function (arg0, arg1, arg2) {
|
|
1964
|
+
let deferred0_0;
|
|
1965
|
+
let deferred0_1;
|
|
1966
|
+
try {
|
|
1967
|
+
deferred0_0 = arg1;
|
|
1968
|
+
deferred0_1 = arg2;
|
|
1969
|
+
const ret = arg0.getSession(getStringFromWasm0(arg1, arg2));
|
|
1970
|
+
return ret;
|
|
1971
|
+
} finally {
|
|
1972
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1973
|
+
}
|
|
1974
|
+
}, arguments); }
|
|
1639
1975
|
export function __wbg_getStaticDepositPrivateKey_82943f7a0fe1208d() { return handleError(function (arg0, arg1) {
|
|
1640
1976
|
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1641
1977
|
return ret;
|
|
@@ -2150,7 +2486,19 @@ export function __wbg_setLnurlMetadata_084b50d8b878f93f() { return handleError(f
|
|
|
2150
2486
|
const ret = arg0.setLnurlMetadata(v0);
|
|
2151
2487
|
return ret;
|
|
2152
2488
|
}, arguments); }
|
|
2153
|
-
export function
|
|
2489
|
+
export function __wbg_setSession_35cb471ae7537391() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2490
|
+
let deferred0_0;
|
|
2491
|
+
let deferred0_1;
|
|
2492
|
+
try {
|
|
2493
|
+
deferred0_0 = arg1;
|
|
2494
|
+
deferred0_1 = arg2;
|
|
2495
|
+
const ret = arg0.setSession(getStringFromWasm0(arg1, arg2), arg3);
|
|
2496
|
+
return ret;
|
|
2497
|
+
} finally {
|
|
2498
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2499
|
+
}
|
|
2500
|
+
}, arguments); }
|
|
2501
|
+
export function __wbg_setTimeout_631eb4eafbc308a9(arg0, arg1) {
|
|
2154
2502
|
globalThis.setTimeout(arg0, arg1);
|
|
2155
2503
|
}
|
|
2156
2504
|
export function __wbg_setTimeout_ef24d2fc3ad97385() { return handleError(function (arg0, arg1) {
|
|
@@ -2441,103 +2789,108 @@ export function __wbg_wasClean_92b4133f985dfae0(arg0) {
|
|
|
2441
2789
|
}
|
|
2442
2790
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2443
2791
|
// 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`.
|
|
2444
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2792
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c);
|
|
2445
2793
|
return ret;
|
|
2446
2794
|
}
|
|
2447
2795
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2448
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2796
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2449
2797
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
|
|
2450
2798
|
return ret;
|
|
2451
2799
|
}
|
|
2452
2800
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
2453
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2801
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], 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_2);
|
|
2455
2803
|
return ret;
|
|
2456
2804
|
}
|
|
2457
2805
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
2458
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2806
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], 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_3);
|
|
2460
2808
|
return ret;
|
|
2461
2809
|
}
|
|
2462
2810
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
2463
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2464
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2811
|
+
// 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`.
|
|
2812
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4);
|
|
2465
2813
|
return ret;
|
|
2466
2814
|
}
|
|
2467
2815
|
export function __wbindgen_cast_0000000000000006(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("Storage")], 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_5);
|
|
2470
2818
|
return ret;
|
|
2471
2819
|
}
|
|
2472
2820
|
export function __wbindgen_cast_0000000000000007(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("TokenStore")], 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_6);
|
|
2475
2823
|
return ret;
|
|
2476
2824
|
}
|
|
2477
2825
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
2478
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2479
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2826
|
+
// 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`.
|
|
2827
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7);
|
|
2828
|
+
return ret;
|
|
2829
|
+
}
|
|
2830
|
+
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
2831
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 404, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2832
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h124479769cd429fd);
|
|
2480
2833
|
return ret;
|
|
2481
2834
|
}
|
|
2482
|
-
export function
|
|
2835
|
+
export function __wbindgen_cast_000000000000000a(arg0) {
|
|
2483
2836
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2484
2837
|
const ret = arg0;
|
|
2485
2838
|
return ret;
|
|
2486
2839
|
}
|
|
2487
|
-
export function
|
|
2840
|
+
export function __wbindgen_cast_000000000000000b(arg0) {
|
|
2488
2841
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2489
2842
|
const ret = arg0;
|
|
2490
2843
|
return ret;
|
|
2491
2844
|
}
|
|
2492
|
-
export function
|
|
2845
|
+
export function __wbindgen_cast_000000000000000c(arg0, arg1) {
|
|
2493
2846
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2494
2847
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2495
2848
|
return ret;
|
|
2496
2849
|
}
|
|
2497
|
-
export function
|
|
2850
|
+
export function __wbindgen_cast_000000000000000d(arg0, arg1) {
|
|
2498
2851
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2499
2852
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2500
2853
|
return ret;
|
|
2501
2854
|
}
|
|
2502
|
-
export function
|
|
2855
|
+
export function __wbindgen_cast_000000000000000e(arg0, arg1) {
|
|
2503
2856
|
// Cast intrinsic for `U128 -> Externref`.
|
|
2504
2857
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
2505
2858
|
return ret;
|
|
2506
2859
|
}
|
|
2507
|
-
export function
|
|
2860
|
+
export function __wbindgen_cast_000000000000000f(arg0) {
|
|
2508
2861
|
// Cast intrinsic for `U64 -> Externref`.
|
|
2509
2862
|
const ret = BigInt.asUintN(64, arg0);
|
|
2510
2863
|
return ret;
|
|
2511
2864
|
}
|
|
2512
|
-
export function
|
|
2865
|
+
export function __wbindgen_cast_0000000000000010(arg0, arg1) {
|
|
2513
2866
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2514
2867
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2515
2868
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
2516
2869
|
const ret = v0;
|
|
2517
2870
|
return ret;
|
|
2518
2871
|
}
|
|
2519
|
-
export function
|
|
2872
|
+
export function __wbindgen_cast_0000000000000011(arg0, arg1) {
|
|
2520
2873
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2521
2874
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2522
2875
|
// Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
|
|
2523
2876
|
const ret = v0;
|
|
2524
2877
|
return ret;
|
|
2525
2878
|
}
|
|
2526
|
-
export function
|
|
2879
|
+
export function __wbindgen_cast_0000000000000012(arg0, arg1) {
|
|
2527
2880
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2528
2881
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2529
2882
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
2530
2883
|
const ret = v0;
|
|
2531
2884
|
return ret;
|
|
2532
2885
|
}
|
|
2533
|
-
export function
|
|
2886
|
+
export function __wbindgen_cast_0000000000000013(arg0, arg1) {
|
|
2534
2887
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2535
2888
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2536
2889
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
2537
2890
|
const ret = v0;
|
|
2538
2891
|
return ret;
|
|
2539
2892
|
}
|
|
2540
|
-
export function
|
|
2893
|
+
export function __wbindgen_cast_0000000000000014(arg0, arg1) {
|
|
2541
2894
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2542
2895
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2543
2896
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -2553,8 +2906,8 @@ export function __wbindgen_init_externref_table() {
|
|
|
2553
2906
|
table.set(offset + 2, true);
|
|
2554
2907
|
table.set(offset + 3, false);
|
|
2555
2908
|
}
|
|
2556
|
-
function
|
|
2557
|
-
wasm.
|
|
2909
|
+
function wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1) {
|
|
2910
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1);
|
|
2558
2911
|
}
|
|
2559
2912
|
|
|
2560
2913
|
function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
|
|
@@ -2569,29 +2922,36 @@ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, a
|
|
|
2569
2922
|
wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
|
|
2570
2923
|
}
|
|
2571
2924
|
|
|
2572
|
-
function
|
|
2573
|
-
const ret = wasm.
|
|
2925
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2) {
|
|
2926
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c(arg0, arg1, arg2);
|
|
2927
|
+
if (ret[1]) {
|
|
2928
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2) {
|
|
2933
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_4(arg0, arg1, arg2);
|
|
2574
2934
|
if (ret[1]) {
|
|
2575
2935
|
throw takeFromExternrefTable0(ret[0]);
|
|
2576
2936
|
}
|
|
2577
2937
|
}
|
|
2578
2938
|
|
|
2579
|
-
function
|
|
2580
|
-
const ret = wasm.
|
|
2939
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2) {
|
|
2940
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_5(arg0, arg1, arg2);
|
|
2581
2941
|
if (ret[1]) {
|
|
2582
2942
|
throw takeFromExternrefTable0(ret[0]);
|
|
2583
2943
|
}
|
|
2584
2944
|
}
|
|
2585
2945
|
|
|
2586
|
-
function
|
|
2587
|
-
const ret = wasm.
|
|
2946
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2) {
|
|
2947
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_6(arg0, arg1, arg2);
|
|
2588
2948
|
if (ret[1]) {
|
|
2589
2949
|
throw takeFromExternrefTable0(ret[0]);
|
|
2590
2950
|
}
|
|
2591
2951
|
}
|
|
2592
2952
|
|
|
2593
|
-
function
|
|
2594
|
-
const ret = wasm.
|
|
2953
|
+
function wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2) {
|
|
2954
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459c42c6ffe5f52c_7(arg0, arg1, arg2);
|
|
2595
2955
|
if (ret[1]) {
|
|
2596
2956
|
throw takeFromExternrefTable0(ret[0]);
|
|
2597
2957
|
}
|
|
@@ -2621,6 +2981,9 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
2621
2981
|
|
|
2622
2982
|
|
|
2623
2983
|
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
2984
|
+
const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2985
|
+
? { register: () => {}, unregister: () => {} }
|
|
2986
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bitcoinchainservicehandle_free(ptr, 1));
|
|
2624
2987
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2625
2988
|
? { register: () => {}, unregister: () => {} }
|
|
2626
2989
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
@@ -2636,12 +2999,21 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
2636
2999
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2637
3000
|
? { register: () => {}, unregister: () => {} }
|
|
2638
3001
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
3002
|
+
const MysqlConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3003
|
+
? { register: () => {}, unregister: () => {} }
|
|
3004
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mysqlconnectionpool_free(ptr, 1));
|
|
2639
3005
|
const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2640
3006
|
? { register: () => {}, unregister: () => {} }
|
|
2641
3007
|
: new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
|
|
3008
|
+
const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3009
|
+
? { register: () => {}, unregister: () => {} }
|
|
3010
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
|
|
2642
3011
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2643
3012
|
? { register: () => {}, unregister: () => {} }
|
|
2644
3013
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3014
|
+
const SspConnectionManagerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3015
|
+
? { register: () => {}, unregister: () => {} }
|
|
3016
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sspconnectionmanager_free(ptr, 1));
|
|
2645
3017
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2646
3018
|
? { register: () => {}, unregister: () => {} }
|
|
2647
3019
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
@@ -2652,6 +3024,12 @@ function addToExternrefTable0(obj) {
|
|
|
2652
3024
|
return idx;
|
|
2653
3025
|
}
|
|
2654
3026
|
|
|
3027
|
+
function _assertClass(instance, klass) {
|
|
3028
|
+
if (!(instance instanceof klass)) {
|
|
3029
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
|
|
2655
3033
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2656
3034
|
? { register: () => {}, unregister: () => {} }
|
|
2657
3035
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|