@breeztech/breez-sdk-spark 0.11.0-dev2 → 0.11.0-dev3
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 +760 -592
- package/bundler/breez_sdk_spark_wasm_bg.js +342 -42
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +10 -3
- package/deno/breez_sdk_spark_wasm.d.ts +760 -592
- package/deno/breez_sdk_spark_wasm.js +310 -42
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +10 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +760 -592
- package/nodejs/breez_sdk_spark_wasm.js +343 -42
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +10 -3
- package/nodejs/index.js +10 -0
- package/nodejs/package.json +1 -0
- package/nodejs/postgres-tree-store/errors.cjs +13 -0
- package/nodejs/postgres-tree-store/index.cjs +798 -0
- package/nodejs/postgres-tree-store/migrations.cjs +150 -0
- package/nodejs/postgres-tree-store/package.json +9 -0
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +770 -595
- package/web/breez_sdk_spark_wasm.js +310 -42
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +10 -3
|
@@ -221,15 +221,28 @@ export function defaultPostgresStorageConfig(connection_string) {
|
|
|
221
221
|
return ret;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
function takeFromExternrefTable0(idx) {
|
|
225
|
+
const value = wasm.__wbindgen_export_5.get(idx);
|
|
226
|
+
wasm.__externref_table_dealloc(idx);
|
|
227
|
+
return value;
|
|
228
|
+
}
|
|
224
229
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* @
|
|
230
|
+
* @param {string} mnemonic
|
|
231
|
+
* @param {string | null | undefined} passphrase
|
|
232
|
+
* @param {Network} network
|
|
233
|
+
* @param {KeySetConfig | null} [key_set_config]
|
|
234
|
+
* @returns {DefaultSigner}
|
|
229
235
|
*/
|
|
230
|
-
export function
|
|
231
|
-
const
|
|
232
|
-
|
|
236
|
+
export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
|
|
237
|
+
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len0 = WASM_VECTOR_LEN;
|
|
239
|
+
var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
+
var len1 = WASM_VECTOR_LEN;
|
|
241
|
+
const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
|
|
242
|
+
if (ret[2]) {
|
|
243
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
244
|
+
}
|
|
245
|
+
return DefaultSigner.__wrap(ret[0]);
|
|
233
246
|
}
|
|
234
247
|
|
|
235
248
|
/**
|
|
@@ -253,30 +266,6 @@ export function initLogging(logger, filter) {
|
|
|
253
266
|
return ret;
|
|
254
267
|
}
|
|
255
268
|
|
|
256
|
-
function takeFromExternrefTable0(idx) {
|
|
257
|
-
const value = wasm.__wbindgen_export_5.get(idx);
|
|
258
|
-
wasm.__externref_table_dealloc(idx);
|
|
259
|
-
return value;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* @param {string} mnemonic
|
|
263
|
-
* @param {string | null | undefined} passphrase
|
|
264
|
-
* @param {Network} network
|
|
265
|
-
* @param {KeySetConfig | null} [key_set_config]
|
|
266
|
-
* @returns {DefaultSigner}
|
|
267
|
-
*/
|
|
268
|
-
export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
|
|
269
|
-
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
270
|
-
const len0 = WASM_VECTOR_LEN;
|
|
271
|
-
var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
272
|
-
var len1 = WASM_VECTOR_LEN;
|
|
273
|
-
const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
|
|
274
|
-
if (ret[2]) {
|
|
275
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
276
|
-
}
|
|
277
|
-
return DefaultSigner.__wrap(ret[0]);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
269
|
/**
|
|
281
270
|
* @param {ConnectRequest} request
|
|
282
271
|
* @returns {Promise<BreezSdk>}
|
|
@@ -286,6 +275,17 @@ export function connect(request) {
|
|
|
286
275
|
return ret;
|
|
287
276
|
}
|
|
288
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Creates a default external signer from a mnemonic phrase.
|
|
280
|
+
*
|
|
281
|
+
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
282
|
+
* @returns {Promise<SparkStatus>}
|
|
283
|
+
*/
|
|
284
|
+
export function getSparkStatus() {
|
|
285
|
+
const ret = wasm.getSparkStatus();
|
|
286
|
+
return ret;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
289
|
/**
|
|
290
290
|
* @param {Config} config
|
|
291
291
|
* @param {ExternalSigner} signer
|
|
@@ -316,18 +316,20 @@ export function task_worker_entry_point(ptr) {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
function __wbg_adapter_64(arg0, arg1) {
|
|
320
|
-
wasm.
|
|
319
|
+
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
320
|
+
wasm.closure440_externref_shim(arg0, arg1, arg2);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
function
|
|
324
|
-
wasm.
|
|
323
|
+
function __wbg_adapter_69(arg0, arg1) {
|
|
324
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29e986a86553656d(arg0, arg1);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
function
|
|
328
|
-
wasm.
|
|
327
|
+
function __wbg_adapter_339(arg0, arg1, arg2, arg3) {
|
|
328
|
+
wasm.closure720_externref_shim(arg0, arg1, arg2, arg3);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
332
|
+
|
|
331
333
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
332
334
|
|
|
333
335
|
const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
|
|
@@ -1034,6 +1036,91 @@ export class IntoUnderlyingSource {
|
|
|
1034
1036
|
}
|
|
1035
1037
|
}
|
|
1036
1038
|
|
|
1039
|
+
const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1040
|
+
? { register: () => {}, unregister: () => {} }
|
|
1041
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr >>> 0, 1));
|
|
1042
|
+
/**
|
|
1043
|
+
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
1044
|
+
*
|
|
1045
|
+
* Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
|
|
1046
|
+
* wallet derivation and name management via Nostr relays.
|
|
1047
|
+
*/
|
|
1048
|
+
export class Passkey {
|
|
1049
|
+
|
|
1050
|
+
__destroy_into_raw() {
|
|
1051
|
+
const ptr = this.__wbg_ptr;
|
|
1052
|
+
this.__wbg_ptr = 0;
|
|
1053
|
+
PasskeyFinalization.unregister(this);
|
|
1054
|
+
return ptr;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
free() {
|
|
1058
|
+
const ptr = this.__destroy_into_raw();
|
|
1059
|
+
wasm.__wbg_passkey_free(ptr, 0);
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Derive a wallet for a given wallet name.
|
|
1063
|
+
*
|
|
1064
|
+
* Uses the passkey PRF to derive a `Wallet` containing the seed and resolved name.
|
|
1065
|
+
*
|
|
1066
|
+
* @param walletName - Optional wallet name string (defaults to "Default")
|
|
1067
|
+
* @param {string | null} [wallet_name]
|
|
1068
|
+
* @returns {Promise<Wallet>}
|
|
1069
|
+
*/
|
|
1070
|
+
getWallet(wallet_name) {
|
|
1071
|
+
var ptr0 = isLikeNone(wallet_name) ? 0 : passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1072
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1073
|
+
const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
|
|
1074
|
+
return ret;
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Check if passkey PRF is available on this device.
|
|
1078
|
+
* @returns {Promise<boolean>}
|
|
1079
|
+
*/
|
|
1080
|
+
isAvailable() {
|
|
1081
|
+
const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
|
|
1082
|
+
return ret;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* List all wallet names published to Nostr for this passkey's identity.
|
|
1086
|
+
*
|
|
1087
|
+
* Requires 1 PRF call (for Nostr identity derivation).
|
|
1088
|
+
* @returns {Promise<string[]>}
|
|
1089
|
+
*/
|
|
1090
|
+
listWalletNames() {
|
|
1091
|
+
const ret = wasm.passkey_listWalletNames(this.__wbg_ptr);
|
|
1092
|
+
return ret;
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Publish a wallet name to Nostr relays for this passkey's identity.
|
|
1096
|
+
*
|
|
1097
|
+
* Idempotent: if the wallet name already exists, it is not published again.
|
|
1098
|
+
* Requires 1 PRF call.
|
|
1099
|
+
* @param {string} wallet_name
|
|
1100
|
+
* @returns {Promise<void>}
|
|
1101
|
+
*/
|
|
1102
|
+
storeWalletName(wallet_name) {
|
|
1103
|
+
const ptr0 = passStringToWasm0(wallet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1104
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1105
|
+
const ret = wasm.passkey_storeWalletName(this.__wbg_ptr, ptr0, len0);
|
|
1106
|
+
return ret;
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Create a new `Passkey` instance.
|
|
1110
|
+
*
|
|
1111
|
+
* @param prfProvider - Platform implementation of passkey PRF operations
|
|
1112
|
+
* @param relayConfig - Optional configuration for Nostr relay connections
|
|
1113
|
+
* @param {PasskeyPrfProvider} prf_provider
|
|
1114
|
+
* @param {NostrRelayConfig | null} [relay_config]
|
|
1115
|
+
*/
|
|
1116
|
+
constructor(prf_provider, relay_config) {
|
|
1117
|
+
const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
|
|
1118
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1119
|
+
PasskeyFinalization.register(this, this.__wbg_ptr, this);
|
|
1120
|
+
return this;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1037
1124
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1038
1125
|
? { register: () => {}, unregister: () => {} }
|
|
1039
1126
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr >>> 0, 1));
|
|
@@ -1155,6 +1242,15 @@ export class SdkBuilder {
|
|
|
1155
1242
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1156
1243
|
return SdkBuilder.__wrap(ret);
|
|
1157
1244
|
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @param {PostgresStorageConfig} config
|
|
1247
|
+
* @returns {SdkBuilder}
|
|
1248
|
+
*/
|
|
1249
|
+
withPostgresTreeStore(config) {
|
|
1250
|
+
const ptr = this.__destroy_into_raw();
|
|
1251
|
+
const ret = wasm.sdkbuilder_withPostgresTreeStore(ptr, config);
|
|
1252
|
+
return SdkBuilder.__wrap(ret);
|
|
1253
|
+
}
|
|
1158
1254
|
/**
|
|
1159
1255
|
* @param {Config} config
|
|
1160
1256
|
* @param {Seed} seed
|
|
@@ -1282,6 +1378,10 @@ const imports = {
|
|
|
1282
1378
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1283
1379
|
}
|
|
1284
1380
|
}, arguments) },
|
|
1381
|
+
__wbg_addLeaves_226f98499cdaa66d: function() { return handleError(function (arg0, arg1) {
|
|
1382
|
+
const ret = arg0.addLeaves(arg1);
|
|
1383
|
+
return ret;
|
|
1384
|
+
}, arguments) },
|
|
1285
1385
|
__wbg_aggregateFrost_053f2d54394422d5: function() { return handleError(function (arg0, arg1) {
|
|
1286
1386
|
const ret = arg0.aggregateFrost(arg1);
|
|
1287
1387
|
return ret;
|
|
@@ -1347,6 +1447,18 @@ const imports = {
|
|
|
1347
1447
|
const ret = arg0.call(arg1, arg2);
|
|
1348
1448
|
return ret;
|
|
1349
1449
|
}, arguments) },
|
|
1450
|
+
__wbg_cancelReservation_d85a13db3e8e3c7b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1451
|
+
let deferred0_0;
|
|
1452
|
+
let deferred0_1;
|
|
1453
|
+
try {
|
|
1454
|
+
deferred0_0 = arg1;
|
|
1455
|
+
deferred0_1 = arg2;
|
|
1456
|
+
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
|
|
1457
|
+
return ret;
|
|
1458
|
+
} finally {
|
|
1459
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1460
|
+
}
|
|
1461
|
+
}, arguments) },
|
|
1350
1462
|
__wbg_cancel_8a308660caa6cadf: function(arg0) {
|
|
1351
1463
|
const ret = arg0.cancel();
|
|
1352
1464
|
return ret;
|
|
@@ -1355,10 +1467,17 @@ const imports = {
|
|
|
1355
1467
|
const ret = arg0.catch(arg1);
|
|
1356
1468
|
return ret;
|
|
1357
1469
|
},
|
|
1470
|
+
__wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
|
|
1471
|
+
const ret = clearTimeout(arg0);
|
|
1472
|
+
return ret;
|
|
1473
|
+
},
|
|
1358
1474
|
__wbg_clearTimeout_6222fede17abcb1a: function(arg0) {
|
|
1359
1475
|
const ret = clearTimeout(arg0);
|
|
1360
1476
|
return ret;
|
|
1361
1477
|
},
|
|
1478
|
+
__wbg_close_2893b7d056a0627d: function() { return handleError(function (arg0) {
|
|
1479
|
+
arg0.close();
|
|
1480
|
+
}, arguments) },
|
|
1362
1481
|
__wbg_close_304cc1fef3466669: function() { return handleError(function (arg0) {
|
|
1363
1482
|
arg0.close();
|
|
1364
1483
|
}, arguments) },
|
|
@@ -1369,6 +1488,10 @@ const imports = {
|
|
|
1369
1488
|
const ret = arg0.code;
|
|
1370
1489
|
return ret;
|
|
1371
1490
|
},
|
|
1491
|
+
__wbg_code_f4ec1e6e2e1b0417: function(arg0) {
|
|
1492
|
+
const ret = arg0.code;
|
|
1493
|
+
return ret;
|
|
1494
|
+
},
|
|
1372
1495
|
__wbg_createDefaultStorage_458aa01b5eaead27: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1373
1496
|
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1374
1497
|
return ret;
|
|
@@ -1377,10 +1500,18 @@ const imports = {
|
|
|
1377
1500
|
const ret = createPostgresStorage(arg0, arg1);
|
|
1378
1501
|
return ret;
|
|
1379
1502
|
}, arguments) },
|
|
1503
|
+
__wbg_createPostgresTreeStore_7887b0b703c72f83: function() { return handleError(function (arg0, arg1) {
|
|
1504
|
+
const ret = createPostgresTreeStore(arg0, arg1);
|
|
1505
|
+
return ret;
|
|
1506
|
+
}, arguments) },
|
|
1380
1507
|
__wbg_crypto_574e78ad8b13b65f: function(arg0) {
|
|
1381
1508
|
const ret = arg0.crypto;
|
|
1382
1509
|
return ret;
|
|
1383
1510
|
},
|
|
1511
|
+
__wbg_data_432d9c3df2630942: function(arg0) {
|
|
1512
|
+
const ret = arg0.data;
|
|
1513
|
+
return ret;
|
|
1514
|
+
},
|
|
1384
1515
|
__wbg_deleteCachedItem_ff3c84380e94360b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1385
1516
|
let deferred0_0;
|
|
1386
1517
|
let deferred0_1;
|
|
@@ -1434,6 +1565,18 @@ const imports = {
|
|
|
1434
1565
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1435
1566
|
}
|
|
1436
1567
|
}, arguments) },
|
|
1568
|
+
__wbg_derivePrfSeed_8584c0fcf554b593: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1569
|
+
let deferred0_0;
|
|
1570
|
+
let deferred0_1;
|
|
1571
|
+
try {
|
|
1572
|
+
deferred0_0 = arg1;
|
|
1573
|
+
deferred0_1 = arg2;
|
|
1574
|
+
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1575
|
+
return ret;
|
|
1576
|
+
} finally {
|
|
1577
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1578
|
+
}
|
|
1579
|
+
}, arguments) },
|
|
1437
1580
|
__wbg_derivePublicKey_736fb57b6852f201: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1438
1581
|
let deferred0_0;
|
|
1439
1582
|
let deferred0_1;
|
|
@@ -1516,6 +1659,18 @@ const imports = {
|
|
|
1516
1659
|
const ret = fetch(arg0);
|
|
1517
1660
|
return ret;
|
|
1518
1661
|
},
|
|
1662
|
+
__wbg_finalizeReservation_a8fad570b7fe5185: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1663
|
+
let deferred0_0;
|
|
1664
|
+
let deferred0_1;
|
|
1665
|
+
try {
|
|
1666
|
+
deferred0_0 = arg1;
|
|
1667
|
+
deferred0_1 = arg2;
|
|
1668
|
+
const ret = arg0.finalizeReservation(getStringFromWasm0(arg1, arg2), arg3);
|
|
1669
|
+
return ret;
|
|
1670
|
+
} finally {
|
|
1671
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1672
|
+
}
|
|
1673
|
+
}, arguments) },
|
|
1519
1674
|
__wbg_generateFrostSigningCommitments_0630bbabc5b72b42: function() { return handleError(function (arg0) {
|
|
1520
1675
|
const ret = arg0.generateFrostSigningCommitments();
|
|
1521
1676
|
return ret;
|
|
@@ -1560,6 +1715,10 @@ const imports = {
|
|
|
1560
1715
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1561
1716
|
}
|
|
1562
1717
|
}, arguments) },
|
|
1718
|
+
__wbg_getLeaves_c94a1c927d239738: function() { return handleError(function (arg0) {
|
|
1719
|
+
const ret = arg0.getLeaves();
|
|
1720
|
+
return ret;
|
|
1721
|
+
}, arguments) },
|
|
1563
1722
|
__wbg_getPaymentById_c23144bfc404b2fc: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1564
1723
|
let deferred0_0;
|
|
1565
1724
|
let deferred0_1;
|
|
@@ -1732,6 +1891,16 @@ const imports = {
|
|
|
1732
1891
|
const ret = result;
|
|
1733
1892
|
return ret;
|
|
1734
1893
|
},
|
|
1894
|
+
__wbg_instanceof_Blob_ca721ef3bdab15d1: function(arg0) {
|
|
1895
|
+
let result;
|
|
1896
|
+
try {
|
|
1897
|
+
result = arg0 instanceof Blob;
|
|
1898
|
+
} catch (_) {
|
|
1899
|
+
result = false;
|
|
1900
|
+
}
|
|
1901
|
+
const ret = result;
|
|
1902
|
+
return ret;
|
|
1903
|
+
},
|
|
1735
1904
|
__wbg_instanceof_DomException_ed1ccb7aaf39034c: function(arg0) {
|
|
1736
1905
|
let result;
|
|
1737
1906
|
try {
|
|
@@ -1796,6 +1965,10 @@ const imports = {
|
|
|
1796
1965
|
const ret = Array.isArray(arg0);
|
|
1797
1966
|
return ret;
|
|
1798
1967
|
},
|
|
1968
|
+
__wbg_isPrfAvailable_c13e727932109c6e: function() { return handleError(function (arg0) {
|
|
1969
|
+
const ret = arg0.isPrfAvailable();
|
|
1970
|
+
return ret;
|
|
1971
|
+
}, arguments) },
|
|
1799
1972
|
__wbg_isSafeInteger_343e2beeeece1bb0: function(arg0) {
|
|
1800
1973
|
const ret = Number.isSafeInteger(arg0);
|
|
1801
1974
|
return ret;
|
|
@@ -1864,7 +2037,7 @@ const imports = {
|
|
|
1864
2037
|
const a = state0.a;
|
|
1865
2038
|
state0.a = 0;
|
|
1866
2039
|
try {
|
|
1867
|
-
return
|
|
2040
|
+
return __wbg_adapter_339(a, state0.b, arg0, arg1);
|
|
1868
2041
|
} finally {
|
|
1869
2042
|
state0.a = a;
|
|
1870
2043
|
}
|
|
@@ -1887,6 +2060,10 @@ const imports = {
|
|
|
1887
2060
|
const ret = new Array();
|
|
1888
2061
|
return ret;
|
|
1889
2062
|
},
|
|
2063
|
+
__wbg_new_92c54fc74574ef55: function() { return handleError(function (arg0, arg1) {
|
|
2064
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
2065
|
+
return ret;
|
|
2066
|
+
}, arguments) },
|
|
1890
2067
|
__wbg_new_a12002a7f91c75be: function(arg0) {
|
|
1891
2068
|
const ret = new Uint8Array(arg0);
|
|
1892
2069
|
return ret;
|
|
@@ -1927,6 +2104,10 @@ const imports = {
|
|
|
1927
2104
|
const ret = arg0.node;
|
|
1928
2105
|
return ret;
|
|
1929
2106
|
},
|
|
2107
|
+
__wbg_now_063c1184182e178a: function() { return handleError(function (arg0) {
|
|
2108
|
+
const ret = arg0.now();
|
|
2109
|
+
return ret;
|
|
2110
|
+
}, arguments) },
|
|
1930
2111
|
__wbg_now_2c95c9de01293173: function(arg0) {
|
|
1931
2112
|
const ret = arg0.now();
|
|
1932
2113
|
return ret;
|
|
@@ -1984,6 +2165,17 @@ const imports = {
|
|
|
1984
2165
|
const ret = arg0.read();
|
|
1985
2166
|
return ret;
|
|
1986
2167
|
},
|
|
2168
|
+
__wbg_readyState_7ef6e63c349899ed: function(arg0) {
|
|
2169
|
+
const ret = arg0.readyState;
|
|
2170
|
+
return ret;
|
|
2171
|
+
},
|
|
2172
|
+
__wbg_reason_49f1cede8bcf23dd: function(arg0, arg1) {
|
|
2173
|
+
const ret = arg1.reason;
|
|
2174
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2175
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2176
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2177
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2178
|
+
},
|
|
1987
2179
|
__wbg_recommendedFees_a61f331fce46523e: function() { return handleError(function (arg0) {
|
|
1988
2180
|
const ret = arg0.recommendedFees();
|
|
1989
2181
|
return ret;
|
|
@@ -2006,6 +2198,12 @@ const imports = {
|
|
|
2006
2198
|
const ret = SdkBuilder.__wrap(arg0);
|
|
2007
2199
|
return ret;
|
|
2008
2200
|
},
|
|
2201
|
+
__wbg_send_0293179ba074ffb4: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2202
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
2203
|
+
}, arguments) },
|
|
2204
|
+
__wbg_send_fc0c204e8a1757f4: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2205
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
2206
|
+
}, arguments) },
|
|
2009
2207
|
__wbg_setCachedItem_91b03741dfb0b4c2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2010
2208
|
let deferred0_0;
|
|
2011
2209
|
let deferred0_1;
|
|
@@ -2023,6 +2221,10 @@ const imports = {
|
|
|
2023
2221
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2024
2222
|
}
|
|
2025
2223
|
}, arguments) },
|
|
2224
|
+
__wbg_setLeaves_d1c338c6d7d2ef28: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2225
|
+
const ret = arg0.setLeaves(arg1, arg2, arg3);
|
|
2226
|
+
return ret;
|
|
2227
|
+
}, arguments) },
|
|
2026
2228
|
__wbg_setLnurlMetadata_0bf15cc7efb6cc11: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2027
2229
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
2028
2230
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
@@ -2036,6 +2238,10 @@ const imports = {
|
|
|
2036
2238
|
__wbg_setTimeout_8f06012fba12034e: function(arg0, arg1) {
|
|
2037
2239
|
globalThis.setTimeout(arg0, arg1);
|
|
2038
2240
|
},
|
|
2241
|
+
__wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
|
|
2242
|
+
const ret = setTimeout(arg0, arg1);
|
|
2243
|
+
return ret;
|
|
2244
|
+
}, arguments) },
|
|
2039
2245
|
__wbg_set_37837023f3d740e8: function(arg0, arg1, arg2) {
|
|
2040
2246
|
arg0[arg1 >>> 0] = arg2;
|
|
2041
2247
|
},
|
|
@@ -2053,6 +2259,9 @@ const imports = {
|
|
|
2053
2259
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
2054
2260
|
return ret;
|
|
2055
2261
|
}, arguments) },
|
|
2262
|
+
__wbg_setbinaryType_92fa1ffd873b327c: function(arg0, arg1) {
|
|
2263
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2264
|
+
},
|
|
2056
2265
|
__wbg_setbody_5923b78a95eedf29: function(arg0, arg1) {
|
|
2057
2266
|
arg0.body = arg1;
|
|
2058
2267
|
},
|
|
@@ -2074,6 +2283,18 @@ const imports = {
|
|
|
2074
2283
|
__wbg_setmode_5dc300b865044b65: function(arg0, arg1) {
|
|
2075
2284
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
2076
2285
|
},
|
|
2286
|
+
__wbg_setonclose_14fc475a49d488fc: function(arg0, arg1) {
|
|
2287
|
+
arg0.onclose = arg1;
|
|
2288
|
+
},
|
|
2289
|
+
__wbg_setonerror_8639efe354b947cd: function(arg0, arg1) {
|
|
2290
|
+
arg0.onerror = arg1;
|
|
2291
|
+
},
|
|
2292
|
+
__wbg_setonmessage_6eccab530a8fb4c7: function(arg0, arg1) {
|
|
2293
|
+
arg0.onmessage = arg1;
|
|
2294
|
+
},
|
|
2295
|
+
__wbg_setonopen_2da654e1f39745d5: function(arg0, arg1) {
|
|
2296
|
+
arg0.onopen = arg1;
|
|
2297
|
+
},
|
|
2077
2298
|
__wbg_setredirect_40e6a7f717a2f86a: function(arg0, arg1) {
|
|
2078
2299
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
2079
2300
|
},
|
|
@@ -2222,6 +2443,18 @@ const imports = {
|
|
|
2222
2443
|
const ret = arg0.toString();
|
|
2223
2444
|
return ret;
|
|
2224
2445
|
},
|
|
2446
|
+
__wbg_tryReserveLeaves_9aacd30c9750a9df: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2447
|
+
let deferred0_0;
|
|
2448
|
+
let deferred0_1;
|
|
2449
|
+
try {
|
|
2450
|
+
deferred0_0 = arg3;
|
|
2451
|
+
deferred0_1 = arg4;
|
|
2452
|
+
const ret = arg0.tryReserveLeaves(arg1, arg2 !== 0, getStringFromWasm0(arg3, arg4));
|
|
2453
|
+
return ret;
|
|
2454
|
+
} finally {
|
|
2455
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2456
|
+
}
|
|
2457
|
+
}, arguments) },
|
|
2225
2458
|
__wbg_updateDeposit_87746090235ed235: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2226
2459
|
let deferred0_0;
|
|
2227
2460
|
let deferred0_1;
|
|
@@ -2234,6 +2467,18 @@ const imports = {
|
|
|
2234
2467
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2235
2468
|
}
|
|
2236
2469
|
}, arguments) },
|
|
2470
|
+
__wbg_updateReservation_7641cd63d1a894b8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2471
|
+
let deferred0_0;
|
|
2472
|
+
let deferred0_1;
|
|
2473
|
+
try {
|
|
2474
|
+
deferred0_0 = arg1;
|
|
2475
|
+
deferred0_1 = arg2;
|
|
2476
|
+
const ret = arg0.updateReservation(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
2477
|
+
return ret;
|
|
2478
|
+
} finally {
|
|
2479
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2480
|
+
}
|
|
2481
|
+
}, arguments) },
|
|
2237
2482
|
__wbg_url_ae10c34ca209681d: function(arg0, arg1) {
|
|
2238
2483
|
const ret = arg1.url;
|
|
2239
2484
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2241,6 +2486,13 @@ const imports = {
|
|
|
2241
2486
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2242
2487
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2243
2488
|
},
|
|
2489
|
+
__wbg_url_ce9ab75bf9627ae4: function(arg0, arg1) {
|
|
2490
|
+
const ret = arg1.url;
|
|
2491
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2492
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2493
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2494
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2495
|
+
},
|
|
2244
2496
|
__wbg_value_cd1ffa7b1ab794f1: function(arg0) {
|
|
2245
2497
|
const ret = arg0.value;
|
|
2246
2498
|
return ret;
|
|
@@ -2253,6 +2505,10 @@ const imports = {
|
|
|
2253
2505
|
const ret = arg0.view;
|
|
2254
2506
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2255
2507
|
},
|
|
2508
|
+
__wbg_wasClean_605b4fd66d44354a: function(arg0) {
|
|
2509
|
+
const ret = arg0.wasClean;
|
|
2510
|
+
return ret;
|
|
2511
|
+
},
|
|
2256
2512
|
__wbindgen_array_new: function() {
|
|
2257
2513
|
const ret = [];
|
|
2258
2514
|
return ret;
|
|
@@ -2296,12 +2552,24 @@ const imports = {
|
|
|
2296
2552
|
const ret = false;
|
|
2297
2553
|
return ret;
|
|
2298
2554
|
},
|
|
2299
|
-
|
|
2300
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2555
|
+
__wbindgen_closure_wrapper10357: function(arg0, arg1, arg2) {
|
|
2556
|
+
const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_69);
|
|
2557
|
+
return ret;
|
|
2558
|
+
},
|
|
2559
|
+
__wbindgen_closure_wrapper15769: function(arg0, arg1, arg2) {
|
|
2560
|
+
const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
|
|
2561
|
+
return ret;
|
|
2562
|
+
},
|
|
2563
|
+
__wbindgen_closure_wrapper5872: function(arg0, arg1, arg2) {
|
|
2564
|
+
const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
|
|
2565
|
+
return ret;
|
|
2566
|
+
},
|
|
2567
|
+
__wbindgen_closure_wrapper5878: function(arg0, arg1, arg2) {
|
|
2568
|
+
const ret = makeMutClosure(arg0, arg1, 441, __wbg_adapter_64);
|
|
2301
2569
|
return ret;
|
|
2302
2570
|
},
|
|
2303
|
-
|
|
2304
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2571
|
+
__wbindgen_closure_wrapper7556: function(arg0, arg1, arg2) {
|
|
2572
|
+
const ret = makeMutClosure(arg0, arg1, 964, __wbg_adapter_69);
|
|
2305
2573
|
return ret;
|
|
2306
2574
|
},
|
|
2307
2575
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
Binary file
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const __wbg_breezsdk_free: (a: number, b: number) => void;
|
|
5
5
|
export const __wbg_defaultsigner_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_passkey_free: (a: number, b: number) => void;
|
|
6
7
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_tokenissuer_free: (a: number, b: number) => void;
|
|
8
9
|
export const breezsdk_addContact: (a: number, b: any) => any;
|
|
@@ -73,6 +74,11 @@ export const defaultsigner_staticDepositSigningKey: (a: number, b: number) => an
|
|
|
73
74
|
export const defaultsigner_subtractSecrets: (a: number, b: any, c: any) => any;
|
|
74
75
|
export const getSparkStatus: () => any;
|
|
75
76
|
export const initLogging: (a: any, b: number, c: number) => any;
|
|
77
|
+
export const passkey_getWallet: (a: number, b: number, c: number) => any;
|
|
78
|
+
export const passkey_isAvailable: (a: number) => any;
|
|
79
|
+
export const passkey_listWalletNames: (a: number) => any;
|
|
80
|
+
export const passkey_new: (a: any, b: number) => number;
|
|
81
|
+
export const passkey_storeWalletName: (a: number, b: number, c: number) => any;
|
|
76
82
|
export const sdkbuilder_build: (a: number) => any;
|
|
77
83
|
export const sdkbuilder_new: (a: any, b: any) => number;
|
|
78
84
|
export const sdkbuilder_newWithSigner: (a: any, b: any) => number;
|
|
@@ -83,6 +89,7 @@ export const sdkbuilder_withKeySet: (a: number, b: any) => number;
|
|
|
83
89
|
export const sdkbuilder_withLnurlClient: (a: number, b: any) => number;
|
|
84
90
|
export const sdkbuilder_withPaymentObserver: (a: number, b: any) => number;
|
|
85
91
|
export const sdkbuilder_withPostgresStorage: (a: number, b: any) => number;
|
|
92
|
+
export const sdkbuilder_withPostgresTreeStore: (a: number, b: any) => number;
|
|
86
93
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: any, e: number) => number;
|
|
87
94
|
export const sdkbuilder_withStorage: (a: number, b: any) => number;
|
|
88
95
|
export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
|
|
@@ -119,7 +126,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
119
126
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
120
127
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
121
128
|
export const __externref_table_dealloc: (a: number) => void;
|
|
122
|
-
export const
|
|
123
|
-
export const
|
|
124
|
-
export const
|
|
129
|
+
export const closure440_externref_shim: (a: number, b: number, c: any) => void;
|
|
130
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h29e986a86553656d: (a: number, b: number) => void;
|
|
131
|
+
export const closure720_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
125
132
|
export const __wbindgen_start: () => void;
|