@breeztech/breez-sdk-spark 0.7.13 → 0.7.15-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 +658 -515
- package/bundler/breez_sdk_spark_wasm_bg.js +266 -32
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -3
- package/bundler/storage/index.js +289 -32
- package/deno/breez_sdk_spark_wasm.d.ts +658 -515
- package/deno/breez_sdk_spark_wasm.js +241 -31
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +658 -515
- package/nodejs/breez_sdk_spark_wasm.js +267 -32
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -3
- package/nodejs/storage/index.cjs +105 -112
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +667 -518
- package/web/breez_sdk_spark_wasm.js +241 -31
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +9 -3
- package/web/storage/index.js +289 -32
|
@@ -218,11 +218,15 @@ function debugString(val) {
|
|
|
218
218
|
return className;
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
* @param {
|
|
221
|
+
* @param {Config} config
|
|
222
|
+
* @param {ExternalSigner} signer
|
|
223
|
+
* @param {string} storage_dir
|
|
222
224
|
* @returns {Promise<BreezSdk>}
|
|
223
225
|
*/
|
|
224
|
-
module.exports.
|
|
225
|
-
const
|
|
226
|
+
module.exports.connectWithSigner = function(config, signer, storage_dir) {
|
|
227
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
228
|
+
const len0 = WASM_VECTOR_LEN;
|
|
229
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
226
230
|
return ret;
|
|
227
231
|
};
|
|
228
232
|
|
|
@@ -239,15 +243,11 @@ module.exports.initLogging = function(logger, filter) {
|
|
|
239
243
|
};
|
|
240
244
|
|
|
241
245
|
/**
|
|
242
|
-
* @param {
|
|
243
|
-
* @param {ExternalSigner} signer
|
|
244
|
-
* @param {string} storage_dir
|
|
246
|
+
* @param {ConnectRequest} request
|
|
245
247
|
* @returns {Promise<BreezSdk>}
|
|
246
248
|
*/
|
|
247
|
-
module.exports.
|
|
248
|
-
const
|
|
249
|
-
const len0 = WASM_VECTOR_LEN;
|
|
250
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
249
|
+
module.exports.connect = function(request) {
|
|
250
|
+
const ret = wasm.connect(request);
|
|
251
251
|
return ret;
|
|
252
252
|
};
|
|
253
253
|
|
|
@@ -305,17 +305,19 @@ module.exports.task_worker_entry_point = function(ptr) {
|
|
|
305
305
|
};
|
|
306
306
|
|
|
307
307
|
function __wbg_adapter_64(arg0, arg1) {
|
|
308
|
-
wasm.
|
|
308
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f40343a8ffdf67e(arg0, arg1);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
function __wbg_adapter_67(arg0, arg1, arg2) {
|
|
312
|
-
wasm.
|
|
312
|
+
wasm.closure446_externref_shim(arg0, arg1, arg2);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
function
|
|
316
|
-
wasm.
|
|
315
|
+
function __wbg_adapter_304(arg0, arg1, arg2, arg3) {
|
|
316
|
+
wasm.closure709_externref_shim(arg0, arg1, arg2, arg3);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
320
|
+
|
|
319
321
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
320
322
|
|
|
321
323
|
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"];
|
|
@@ -1117,6 +1119,105 @@ class SdkBuilder {
|
|
|
1117
1119
|
}
|
|
1118
1120
|
module.exports.SdkBuilder = SdkBuilder;
|
|
1119
1121
|
|
|
1122
|
+
const SeedlessRestoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1123
|
+
? { register: () => {}, unregister: () => {} }
|
|
1124
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_seedlessrestore_free(ptr >>> 0, 1));
|
|
1125
|
+
/**
|
|
1126
|
+
* WASM wrapper for SeedlessRestore.
|
|
1127
|
+
*
|
|
1128
|
+
* Orchestrates seedless wallet creation and restore operations using
|
|
1129
|
+
* passkey PRF and Nostr relays.
|
|
1130
|
+
*/
|
|
1131
|
+
class SeedlessRestore {
|
|
1132
|
+
|
|
1133
|
+
__destroy_into_raw() {
|
|
1134
|
+
const ptr = this.__wbg_ptr;
|
|
1135
|
+
this.__wbg_ptr = 0;
|
|
1136
|
+
SeedlessRestoreFinalization.unregister(this);
|
|
1137
|
+
return ptr;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
free() {
|
|
1141
|
+
const ptr = this.__destroy_into_raw();
|
|
1142
|
+
wasm.__wbg_seedlessrestore_free(ptr, 0);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* List all salts published to Nostr for this passkey's identity.
|
|
1146
|
+
*
|
|
1147
|
+
* This method queries Nostr relays for all kind-1 text note events
|
|
1148
|
+
* authored by the Nostr identity derived from the passkey.
|
|
1149
|
+
*
|
|
1150
|
+
* @returns A Promise resolving to an array of salt strings
|
|
1151
|
+
* @returns {Promise<any>}
|
|
1152
|
+
*/
|
|
1153
|
+
listSalts() {
|
|
1154
|
+
const ret = wasm.seedlessrestore_listSalts(this.__wbg_ptr);
|
|
1155
|
+
return ret;
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Create a new wallet seed from a user-provided salt.
|
|
1159
|
+
*
|
|
1160
|
+
* This method:
|
|
1161
|
+
* 1. Derives the Nostr identity from the passkey using the magic salt
|
|
1162
|
+
* 2. Checks if the salt already exists on Nostr (idempotency)
|
|
1163
|
+
* 3. If not, publishes the salt to Nostr relays
|
|
1164
|
+
* 4. Derives the wallet seed from the passkey using the user's salt
|
|
1165
|
+
*
|
|
1166
|
+
* @param salt - A user-chosen salt string (e.g., "personal", "business")
|
|
1167
|
+
* @returns A Promise resolving to the derived wallet seed (24-word mnemonic)
|
|
1168
|
+
* @param {string} salt
|
|
1169
|
+
* @returns {Promise<any>}
|
|
1170
|
+
*/
|
|
1171
|
+
createSeed(salt) {
|
|
1172
|
+
const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1173
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1174
|
+
const ret = wasm.seedlessrestore_createSeed(this.__wbg_ptr, ptr0, len0);
|
|
1175
|
+
return ret;
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Restore a wallet seed from a specific salt.
|
|
1179
|
+
*
|
|
1180
|
+
* Use this after calling listSalts() to restore a specific wallet.
|
|
1181
|
+
* This method only derives the seed; it does not publish anything.
|
|
1182
|
+
*
|
|
1183
|
+
* @param salt - The salt string to use for seed derivation
|
|
1184
|
+
* @returns A Promise resolving to the derived wallet seed (24-word mnemonic)
|
|
1185
|
+
* @param {string} salt
|
|
1186
|
+
* @returns {Promise<any>}
|
|
1187
|
+
*/
|
|
1188
|
+
restoreSeed(salt) {
|
|
1189
|
+
const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1190
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1191
|
+
const ret = wasm.seedlessrestore_restoreSeed(this.__wbg_ptr, ptr0, len0);
|
|
1192
|
+
return ret;
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Check if passkey PRF is available on this device.
|
|
1196
|
+
*
|
|
1197
|
+
* @returns A Promise resolving to true if PRF-capable passkey is available
|
|
1198
|
+
* @returns {Promise<boolean>}
|
|
1199
|
+
*/
|
|
1200
|
+
isPrfAvailable() {
|
|
1201
|
+
const ret = wasm.seedlessrestore_isPrfAvailable(this.__wbg_ptr);
|
|
1202
|
+
return ret;
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Create a new SeedlessRestore instance.
|
|
1206
|
+
*
|
|
1207
|
+
* @param prf_provider - Platform implementation of passkey PRF operations
|
|
1208
|
+
* @param relay_config - Configuration for Nostr relay connections
|
|
1209
|
+
* @param {PasskeyPrfProvider} prf_provider
|
|
1210
|
+
* @param {NostrRelayConfig | null} [relay_config]
|
|
1211
|
+
*/
|
|
1212
|
+
constructor(prf_provider, relay_config) {
|
|
1213
|
+
const ret = wasm.seedlessrestore_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
|
|
1214
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1215
|
+
SeedlessRestoreFinalization.register(this, this.__wbg_ptr, this);
|
|
1216
|
+
return this;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
module.exports.SeedlessRestore = SeedlessRestore;
|
|
1220
|
+
|
|
1120
1221
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1121
1222
|
? { register: () => {}, unregister: () => {} }
|
|
1122
1223
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr >>> 0, 1));
|
|
@@ -1317,11 +1418,20 @@ module.exports.__wbg_catch_a6e601879b2610e9 = function(arg0, arg1) {
|
|
|
1317
1418
|
return ret;
|
|
1318
1419
|
};
|
|
1319
1420
|
|
|
1421
|
+
module.exports.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
|
|
1422
|
+
const ret = clearTimeout(arg0);
|
|
1423
|
+
return ret;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1320
1426
|
module.exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
|
|
1321
1427
|
const ret = clearTimeout(arg0);
|
|
1322
1428
|
return ret;
|
|
1323
1429
|
};
|
|
1324
1430
|
|
|
1431
|
+
module.exports.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1432
|
+
arg0.close();
|
|
1433
|
+
}, arguments) };
|
|
1434
|
+
|
|
1325
1435
|
module.exports.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
|
|
1326
1436
|
arg0.close();
|
|
1327
1437
|
}, arguments) };
|
|
@@ -1335,6 +1445,11 @@ module.exports.__wbg_code_cfd8f6868bdaed9b = function(arg0) {
|
|
|
1335
1445
|
return ret;
|
|
1336
1446
|
};
|
|
1337
1447
|
|
|
1448
|
+
module.exports.__wbg_code_f4ec1e6e2e1b0417 = function(arg0) {
|
|
1449
|
+
const ret = arg0.code;
|
|
1450
|
+
return ret;
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1338
1453
|
module.exports.__wbg_createDefaultStorage_458aa01b5eaead27 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1339
1454
|
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1340
1455
|
return ret;
|
|
@@ -1345,6 +1460,11 @@ module.exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
|
1345
1460
|
return ret;
|
|
1346
1461
|
};
|
|
1347
1462
|
|
|
1463
|
+
module.exports.__wbg_data_432d9c3df2630942 = function(arg0) {
|
|
1464
|
+
const ret = arg0.data;
|
|
1465
|
+
return ret;
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1348
1468
|
module.exports.__wbg_deleteCachedItem_ff3c84380e94360b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1349
1469
|
let deferred0_0;
|
|
1350
1470
|
let deferred0_1;
|
|
@@ -1389,6 +1509,19 @@ module.exports.__wbg_deleteRequest_7be0a74a10deac70 = function() { return handle
|
|
|
1389
1509
|
}
|
|
1390
1510
|
}, arguments) };
|
|
1391
1511
|
|
|
1512
|
+
module.exports.__wbg_derivePrfSeed_8584c0fcf554b593 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1513
|
+
let deferred0_0;
|
|
1514
|
+
let deferred0_1;
|
|
1515
|
+
try {
|
|
1516
|
+
deferred0_0 = arg1;
|
|
1517
|
+
deferred0_1 = arg2;
|
|
1518
|
+
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1519
|
+
return ret;
|
|
1520
|
+
} finally {
|
|
1521
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1522
|
+
}
|
|
1523
|
+
}, arguments) };
|
|
1524
|
+
|
|
1392
1525
|
module.exports.__wbg_derivePublicKey_736fb57b6852f201 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1393
1526
|
let deferred0_0;
|
|
1394
1527
|
let deferred0_1;
|
|
@@ -1547,6 +1680,13 @@ module.exports.__wbg_getPaymentByInvoice_afddfcbefa5508b0 = function() { return
|
|
|
1547
1680
|
}
|
|
1548
1681
|
}, arguments) };
|
|
1549
1682
|
|
|
1683
|
+
module.exports.__wbg_getPaymentsByParentIds_0f8f8e0097a07321 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1684
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1685
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1686
|
+
const ret = arg0.getPaymentsByParentIds(v0);
|
|
1687
|
+
return ret;
|
|
1688
|
+
}, arguments) };
|
|
1689
|
+
|
|
1550
1690
|
module.exports.__wbg_getPublicKeyForNode_5ddb3378904e4ad4 = function() { return handleError(function (arg0, arg1) {
|
|
1551
1691
|
const ret = arg0.getPublicKeyForNode(arg1);
|
|
1552
1692
|
return ret;
|
|
@@ -1679,6 +1819,19 @@ module.exports.__wbg_identityPublicKey_c8b35005055a3df0 = function() { return ha
|
|
|
1679
1819
|
return ret;
|
|
1680
1820
|
}, arguments) };
|
|
1681
1821
|
|
|
1822
|
+
module.exports.__wbg_insertPaymentMetadata_0c4ebdcde694d29b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1823
|
+
let deferred0_0;
|
|
1824
|
+
let deferred0_1;
|
|
1825
|
+
try {
|
|
1826
|
+
deferred0_0 = arg1;
|
|
1827
|
+
deferred0_1 = arg2;
|
|
1828
|
+
const ret = arg0.insertPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
1829
|
+
return ret;
|
|
1830
|
+
} finally {
|
|
1831
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1832
|
+
}
|
|
1833
|
+
}, arguments) };
|
|
1834
|
+
|
|
1682
1835
|
module.exports.__wbg_insertPayment_2afe3300c5f86ccf = function() { return handleError(function (arg0, arg1) {
|
|
1683
1836
|
const ret = arg0.insertPayment(arg1);
|
|
1684
1837
|
return ret;
|
|
@@ -1695,6 +1848,17 @@ module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
|
1695
1848
|
return ret;
|
|
1696
1849
|
};
|
|
1697
1850
|
|
|
1851
|
+
module.exports.__wbg_instanceof_Blob_ca721ef3bdab15d1 = function(arg0) {
|
|
1852
|
+
let result;
|
|
1853
|
+
try {
|
|
1854
|
+
result = arg0 instanceof Blob;
|
|
1855
|
+
} catch (_) {
|
|
1856
|
+
result = false;
|
|
1857
|
+
}
|
|
1858
|
+
const ret = result;
|
|
1859
|
+
return ret;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1698
1862
|
module.exports.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
|
|
1699
1863
|
let result;
|
|
1700
1864
|
try {
|
|
@@ -1766,6 +1930,11 @@ module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
|
1766
1930
|
return ret;
|
|
1767
1931
|
};
|
|
1768
1932
|
|
|
1933
|
+
module.exports.__wbg_isPrfAvailable_c13e727932109c6e = function() { return handleError(function (arg0) {
|
|
1934
|
+
const ret = arg0.isPrfAvailable();
|
|
1935
|
+
return ret;
|
|
1936
|
+
}, arguments) };
|
|
1937
|
+
|
|
1769
1938
|
module.exports.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
1770
1939
|
const ret = Number.isSafeInteger(arg0);
|
|
1771
1940
|
return ret;
|
|
@@ -1843,7 +2012,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
1843
2012
|
const a = state0.a;
|
|
1844
2013
|
state0.a = 0;
|
|
1845
2014
|
try {
|
|
1846
|
-
return
|
|
2015
|
+
return __wbg_adapter_304(a, state0.b, arg0, arg1);
|
|
1847
2016
|
} finally {
|
|
1848
2017
|
state0.a = a;
|
|
1849
2018
|
}
|
|
@@ -1870,6 +2039,11 @@ module.exports.__wbg_new_78feb108b6472713 = function() {
|
|
|
1870
2039
|
return ret;
|
|
1871
2040
|
};
|
|
1872
2041
|
|
|
2042
|
+
module.exports.__wbg_new_92c54fc74574ef55 = function() { return handleError(function (arg0, arg1) {
|
|
2043
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
2044
|
+
return ret;
|
|
2045
|
+
}, arguments) };
|
|
2046
|
+
|
|
1873
2047
|
module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1874
2048
|
const ret = new Uint8Array(arg0);
|
|
1875
2049
|
return ret;
|
|
@@ -1989,6 +2163,19 @@ module.exports.__wbg_read_a2434af1186cb56c = function(arg0) {
|
|
|
1989
2163
|
return ret;
|
|
1990
2164
|
};
|
|
1991
2165
|
|
|
2166
|
+
module.exports.__wbg_readyState_7ef6e63c349899ed = function(arg0) {
|
|
2167
|
+
const ret = arg0.readyState;
|
|
2168
|
+
return ret;
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
module.exports.__wbg_reason_49f1cede8bcf23dd = function(arg0, arg1) {
|
|
2172
|
+
const ret = arg1.reason;
|
|
2173
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2174
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2175
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2176
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2177
|
+
};
|
|
2178
|
+
|
|
1992
2179
|
module.exports.__wbg_recommendedFees_a61f331fce46523e = function() { return handleError(function (arg0) {
|
|
1993
2180
|
const ret = arg0.recommendedFees();
|
|
1994
2181
|
return ret;
|
|
@@ -2017,6 +2204,14 @@ module.exports.__wbg_sdkbuilder_new = function(arg0) {
|
|
|
2017
2204
|
return ret;
|
|
2018
2205
|
};
|
|
2019
2206
|
|
|
2207
|
+
module.exports.__wbg_send_0293179ba074ffb4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2208
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
2209
|
+
}, arguments) };
|
|
2210
|
+
|
|
2211
|
+
module.exports.__wbg_send_fc0c204e8a1757f4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2212
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
2213
|
+
}, arguments) };
|
|
2214
|
+
|
|
2020
2215
|
module.exports.__wbg_setCachedItem_91b03741dfb0b4c2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2021
2216
|
let deferred0_0;
|
|
2022
2217
|
let deferred0_1;
|
|
@@ -2042,19 +2237,6 @@ module.exports.__wbg_setLnurlMetadata_0bf15cc7efb6cc11 = function() { return han
|
|
|
2042
2237
|
return ret;
|
|
2043
2238
|
}, arguments) };
|
|
2044
2239
|
|
|
2045
|
-
module.exports.__wbg_setPaymentMetadata_0bbf82aa72b85deb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2046
|
-
let deferred0_0;
|
|
2047
|
-
let deferred0_1;
|
|
2048
|
-
try {
|
|
2049
|
-
deferred0_0 = arg1;
|
|
2050
|
-
deferred0_1 = arg2;
|
|
2051
|
-
const ret = arg0.setPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
2052
|
-
return ret;
|
|
2053
|
-
} finally {
|
|
2054
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2055
|
-
}
|
|
2056
|
-
}, arguments) };
|
|
2057
|
-
|
|
2058
2240
|
module.exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
2059
2241
|
const ret = setTimeout(arg0, arg1);
|
|
2060
2242
|
return ret;
|
|
@@ -2064,6 +2246,11 @@ module.exports.__wbg_setTimeout_8f06012fba12034e = function(arg0, arg1) {
|
|
|
2064
2246
|
globalThis.setTimeout(arg0, arg1);
|
|
2065
2247
|
};
|
|
2066
2248
|
|
|
2249
|
+
module.exports.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
|
|
2250
|
+
const ret = setTimeout(arg0, arg1);
|
|
2251
|
+
return ret;
|
|
2252
|
+
}, arguments) };
|
|
2253
|
+
|
|
2067
2254
|
module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
2068
2255
|
arg0[arg1 >>> 0] = arg2;
|
|
2069
2256
|
};
|
|
@@ -2086,6 +2273,10 @@ module.exports.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(func
|
|
|
2086
2273
|
return ret;
|
|
2087
2274
|
}, arguments) };
|
|
2088
2275
|
|
|
2276
|
+
module.exports.__wbg_setbinaryType_92fa1ffd873b327c = function(arg0, arg1) {
|
|
2277
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2089
2280
|
module.exports.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
2090
2281
|
arg0.body = arg1;
|
|
2091
2282
|
};
|
|
@@ -2114,6 +2305,22 @@ module.exports.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
|
2114
2305
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
2115
2306
|
};
|
|
2116
2307
|
|
|
2308
|
+
module.exports.__wbg_setonclose_14fc475a49d488fc = function(arg0, arg1) {
|
|
2309
|
+
arg0.onclose = arg1;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
module.exports.__wbg_setonerror_8639efe354b947cd = function(arg0, arg1) {
|
|
2313
|
+
arg0.onerror = arg1;
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
module.exports.__wbg_setonmessage_6eccab530a8fb4c7 = function(arg0, arg1) {
|
|
2317
|
+
arg0.onmessage = arg1;
|
|
2318
|
+
};
|
|
2319
|
+
|
|
2320
|
+
module.exports.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
|
|
2321
|
+
arg0.onopen = arg1;
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2117
2324
|
module.exports.__wbg_setredirect_40e6a7f717a2f86a = function(arg0, arg1) {
|
|
2118
2325
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
2119
2326
|
};
|
|
@@ -2319,6 +2526,14 @@ module.exports.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
|
|
|
2319
2526
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2320
2527
|
};
|
|
2321
2528
|
|
|
2529
|
+
module.exports.__wbg_url_ce9ab75bf9627ae4 = function(arg0, arg1) {
|
|
2530
|
+
const ret = arg1.url;
|
|
2531
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2532
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2533
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2534
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2322
2537
|
module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
2323
2538
|
const ret = arg0.value;
|
|
2324
2539
|
return ret;
|
|
@@ -2334,6 +2549,11 @@ module.exports.__wbg_view_fd8a56e8983f448d = function(arg0) {
|
|
|
2334
2549
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2335
2550
|
};
|
|
2336
2551
|
|
|
2552
|
+
module.exports.__wbg_wasClean_605b4fd66d44354a = function(arg0) {
|
|
2553
|
+
const ret = arg0.wasClean;
|
|
2554
|
+
return ret;
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2337
2557
|
module.exports.__wbindgen_array_new = function() {
|
|
2338
2558
|
const ret = [];
|
|
2339
2559
|
return ret;
|
|
@@ -2386,13 +2606,28 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2386
2606
|
return ret;
|
|
2387
2607
|
};
|
|
2388
2608
|
|
|
2389
|
-
module.exports.
|
|
2390
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2609
|
+
module.exports.__wbindgen_closure_wrapper1405 = function(arg0, arg1, arg2) {
|
|
2610
|
+
const ret = makeMutClosure(arg0, arg1, 950, __wbg_adapter_64);
|
|
2611
|
+
return ret;
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
module.exports.__wbindgen_closure_wrapper14979 = function(arg0, arg1, arg2) {
|
|
2615
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2616
|
+
return ret;
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
module.exports.__wbindgen_closure_wrapper5733 = function(arg0, arg1, arg2) {
|
|
2620
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2621
|
+
return ret;
|
|
2622
|
+
};
|
|
2623
|
+
|
|
2624
|
+
module.exports.__wbindgen_closure_wrapper5738 = function(arg0, arg1, arg2) {
|
|
2625
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2391
2626
|
return ret;
|
|
2392
2627
|
};
|
|
2393
2628
|
|
|
2394
|
-
module.exports.
|
|
2395
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2629
|
+
module.exports.__wbindgen_closure_wrapper9713 = function(arg0, arg1, arg2) {
|
|
2630
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_64);
|
|
2396
2631
|
return ret;
|
|
2397
2632
|
};
|
|
2398
2633
|
|
|
Binary file
|
|
@@ -4,6 +4,7 @@ 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
6
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_seedlessrestore_free: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_tokenissuer_free: (a: number, b: number) => void;
|
|
8
9
|
export const breezsdk_addEventListener: (a: number, b: any) => any;
|
|
9
10
|
export const breezsdk_cancelLeafOptimization: (a: number) => any;
|
|
@@ -77,6 +78,11 @@ export const sdkbuilder_withLnurlClient: (a: number, b: any) => number;
|
|
|
77
78
|
export const sdkbuilder_withPaymentObserver: (a: number, b: any) => number;
|
|
78
79
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: any, e: number) => number;
|
|
79
80
|
export const sdkbuilder_withStorage: (a: number, b: any) => number;
|
|
81
|
+
export const seedlessrestore_createSeed: (a: number, b: number, c: number) => any;
|
|
82
|
+
export const seedlessrestore_isPrfAvailable: (a: number) => any;
|
|
83
|
+
export const seedlessrestore_listSalts: (a: number) => any;
|
|
84
|
+
export const seedlessrestore_new: (a: any, b: number) => number;
|
|
85
|
+
export const seedlessrestore_restoreSeed: (a: number, b: number, c: number) => any;
|
|
80
86
|
export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
|
|
81
87
|
export const tokenissuer_createIssuerToken: (a: number, b: any) => any;
|
|
82
88
|
export const tokenissuer_freezeIssuerToken: (a: number, b: any) => any;
|
|
@@ -111,7 +117,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
111
117
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
112
118
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
113
119
|
export const __externref_table_dealloc: (a: number) => void;
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
120
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f40343a8ffdf67e: (a: number, b: number) => void;
|
|
121
|
+
export const closure446_externref_shim: (a: number, b: number, c: any) => void;
|
|
122
|
+
export const closure709_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
117
123
|
export const __wbindgen_start: () => void;
|