@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
|
@@ -205,11 +205,15 @@ function debugString(val) {
|
|
|
205
205
|
return className;
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
|
-
* @param {
|
|
208
|
+
* @param {Config} config
|
|
209
|
+
* @param {ExternalSigner} signer
|
|
210
|
+
* @param {string} storage_dir
|
|
209
211
|
* @returns {Promise<BreezSdk>}
|
|
210
212
|
*/
|
|
211
|
-
export function
|
|
212
|
-
const
|
|
213
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
214
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
215
|
+
const len0 = WASM_VECTOR_LEN;
|
|
216
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
213
217
|
return ret;
|
|
214
218
|
}
|
|
215
219
|
|
|
@@ -226,15 +230,11 @@ export function initLogging(logger, filter) {
|
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
/**
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {ExternalSigner} signer
|
|
231
|
-
* @param {string} storage_dir
|
|
233
|
+
* @param {ConnectRequest} request
|
|
232
234
|
* @returns {Promise<BreezSdk>}
|
|
233
235
|
*/
|
|
234
|
-
export function
|
|
235
|
-
const
|
|
236
|
-
const len0 = WASM_VECTOR_LEN;
|
|
237
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
236
|
+
export function connect(request) {
|
|
237
|
+
const ret = wasm.connect(request);
|
|
238
238
|
return ret;
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -292,17 +292,19 @@ export function task_worker_entry_point(ptr) {
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
function __wbg_adapter_64(arg0, arg1) {
|
|
295
|
-
wasm.
|
|
295
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f40343a8ffdf67e(arg0, arg1);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
function __wbg_adapter_67(arg0, arg1, arg2) {
|
|
299
|
-
wasm.
|
|
299
|
+
wasm.closure446_externref_shim(arg0, arg1, arg2);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
function
|
|
303
|
-
wasm.
|
|
302
|
+
function __wbg_adapter_304(arg0, arg1, arg2, arg3) {
|
|
303
|
+
wasm.closure709_externref_shim(arg0, arg1, arg2, arg3);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
307
|
+
|
|
306
308
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
307
309
|
|
|
308
310
|
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"];
|
|
@@ -1098,6 +1100,104 @@ export class SdkBuilder {
|
|
|
1098
1100
|
}
|
|
1099
1101
|
}
|
|
1100
1102
|
|
|
1103
|
+
const SeedlessRestoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1104
|
+
? { register: () => {}, unregister: () => {} }
|
|
1105
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_seedlessrestore_free(ptr >>> 0, 1));
|
|
1106
|
+
/**
|
|
1107
|
+
* WASM wrapper for SeedlessRestore.
|
|
1108
|
+
*
|
|
1109
|
+
* Orchestrates seedless wallet creation and restore operations using
|
|
1110
|
+
* passkey PRF and Nostr relays.
|
|
1111
|
+
*/
|
|
1112
|
+
export class SeedlessRestore {
|
|
1113
|
+
|
|
1114
|
+
__destroy_into_raw() {
|
|
1115
|
+
const ptr = this.__wbg_ptr;
|
|
1116
|
+
this.__wbg_ptr = 0;
|
|
1117
|
+
SeedlessRestoreFinalization.unregister(this);
|
|
1118
|
+
return ptr;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
free() {
|
|
1122
|
+
const ptr = this.__destroy_into_raw();
|
|
1123
|
+
wasm.__wbg_seedlessrestore_free(ptr, 0);
|
|
1124
|
+
}
|
|
1125
|
+
/**
|
|
1126
|
+
* List all salts published to Nostr for this passkey's identity.
|
|
1127
|
+
*
|
|
1128
|
+
* This method queries Nostr relays for all kind-1 text note events
|
|
1129
|
+
* authored by the Nostr identity derived from the passkey.
|
|
1130
|
+
*
|
|
1131
|
+
* @returns A Promise resolving to an array of salt strings
|
|
1132
|
+
* @returns {Promise<any>}
|
|
1133
|
+
*/
|
|
1134
|
+
listSalts() {
|
|
1135
|
+
const ret = wasm.seedlessrestore_listSalts(this.__wbg_ptr);
|
|
1136
|
+
return ret;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Create a new wallet seed from a user-provided salt.
|
|
1140
|
+
*
|
|
1141
|
+
* This method:
|
|
1142
|
+
* 1. Derives the Nostr identity from the passkey using the magic salt
|
|
1143
|
+
* 2. Checks if the salt already exists on Nostr (idempotency)
|
|
1144
|
+
* 3. If not, publishes the salt to Nostr relays
|
|
1145
|
+
* 4. Derives the wallet seed from the passkey using the user's salt
|
|
1146
|
+
*
|
|
1147
|
+
* @param salt - A user-chosen salt string (e.g., "personal", "business")
|
|
1148
|
+
* @returns A Promise resolving to the derived wallet seed (24-word mnemonic)
|
|
1149
|
+
* @param {string} salt
|
|
1150
|
+
* @returns {Promise<any>}
|
|
1151
|
+
*/
|
|
1152
|
+
createSeed(salt) {
|
|
1153
|
+
const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1154
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1155
|
+
const ret = wasm.seedlessrestore_createSeed(this.__wbg_ptr, ptr0, len0);
|
|
1156
|
+
return ret;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Restore a wallet seed from a specific salt.
|
|
1160
|
+
*
|
|
1161
|
+
* Use this after calling listSalts() to restore a specific wallet.
|
|
1162
|
+
* This method only derives the seed; it does not publish anything.
|
|
1163
|
+
*
|
|
1164
|
+
* @param salt - The salt string to use for seed derivation
|
|
1165
|
+
* @returns A Promise resolving to the derived wallet seed (24-word mnemonic)
|
|
1166
|
+
* @param {string} salt
|
|
1167
|
+
* @returns {Promise<any>}
|
|
1168
|
+
*/
|
|
1169
|
+
restoreSeed(salt) {
|
|
1170
|
+
const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1171
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1172
|
+
const ret = wasm.seedlessrestore_restoreSeed(this.__wbg_ptr, ptr0, len0);
|
|
1173
|
+
return ret;
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Check if passkey PRF is available on this device.
|
|
1177
|
+
*
|
|
1178
|
+
* @returns A Promise resolving to true if PRF-capable passkey is available
|
|
1179
|
+
* @returns {Promise<boolean>}
|
|
1180
|
+
*/
|
|
1181
|
+
isPrfAvailable() {
|
|
1182
|
+
const ret = wasm.seedlessrestore_isPrfAvailable(this.__wbg_ptr);
|
|
1183
|
+
return ret;
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* Create a new SeedlessRestore instance.
|
|
1187
|
+
*
|
|
1188
|
+
* @param prf_provider - Platform implementation of passkey PRF operations
|
|
1189
|
+
* @param relay_config - Configuration for Nostr relay connections
|
|
1190
|
+
* @param {PasskeyPrfProvider} prf_provider
|
|
1191
|
+
* @param {NostrRelayConfig | null} [relay_config]
|
|
1192
|
+
*/
|
|
1193
|
+
constructor(prf_provider, relay_config) {
|
|
1194
|
+
const ret = wasm.seedlessrestore_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
|
|
1195
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1196
|
+
SeedlessRestoreFinalization.register(this, this.__wbg_ptr, this);
|
|
1197
|
+
return this;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1101
1201
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1102
1202
|
? { register: () => {}, unregister: () => {} }
|
|
1103
1203
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr >>> 0, 1));
|
|
@@ -1279,10 +1379,17 @@ const imports = {
|
|
|
1279
1379
|
const ret = arg0.catch(arg1);
|
|
1280
1380
|
return ret;
|
|
1281
1381
|
},
|
|
1382
|
+
__wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
|
|
1383
|
+
const ret = clearTimeout(arg0);
|
|
1384
|
+
return ret;
|
|
1385
|
+
},
|
|
1282
1386
|
__wbg_clearTimeout_6222fede17abcb1a: function(arg0) {
|
|
1283
1387
|
const ret = clearTimeout(arg0);
|
|
1284
1388
|
return ret;
|
|
1285
1389
|
},
|
|
1390
|
+
__wbg_close_2893b7d056a0627d: function() { return handleError(function (arg0) {
|
|
1391
|
+
arg0.close();
|
|
1392
|
+
}, arguments) },
|
|
1286
1393
|
__wbg_close_304cc1fef3466669: function() { return handleError(function (arg0) {
|
|
1287
1394
|
arg0.close();
|
|
1288
1395
|
}, arguments) },
|
|
@@ -1293,6 +1400,10 @@ const imports = {
|
|
|
1293
1400
|
const ret = arg0.code;
|
|
1294
1401
|
return ret;
|
|
1295
1402
|
},
|
|
1403
|
+
__wbg_code_f4ec1e6e2e1b0417: function(arg0) {
|
|
1404
|
+
const ret = arg0.code;
|
|
1405
|
+
return ret;
|
|
1406
|
+
},
|
|
1296
1407
|
__wbg_createDefaultStorage_458aa01b5eaead27: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1297
1408
|
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1298
1409
|
return ret;
|
|
@@ -1301,6 +1412,10 @@ const imports = {
|
|
|
1301
1412
|
const ret = arg0.crypto;
|
|
1302
1413
|
return ret;
|
|
1303
1414
|
},
|
|
1415
|
+
__wbg_data_432d9c3df2630942: function(arg0) {
|
|
1416
|
+
const ret = arg0.data;
|
|
1417
|
+
return ret;
|
|
1418
|
+
},
|
|
1304
1419
|
__wbg_deleteCachedItem_ff3c84380e94360b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1305
1420
|
let deferred0_0;
|
|
1306
1421
|
let deferred0_1;
|
|
@@ -1342,6 +1457,18 @@ const imports = {
|
|
|
1342
1457
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1343
1458
|
}
|
|
1344
1459
|
}, arguments) },
|
|
1460
|
+
__wbg_derivePrfSeed_8584c0fcf554b593: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1461
|
+
let deferred0_0;
|
|
1462
|
+
let deferred0_1;
|
|
1463
|
+
try {
|
|
1464
|
+
deferred0_0 = arg1;
|
|
1465
|
+
deferred0_1 = arg2;
|
|
1466
|
+
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1467
|
+
return ret;
|
|
1468
|
+
} finally {
|
|
1469
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1470
|
+
}
|
|
1471
|
+
}, arguments) },
|
|
1345
1472
|
__wbg_derivePublicKey_736fb57b6852f201: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1346
1473
|
let deferred0_0;
|
|
1347
1474
|
let deferred0_1;
|
|
@@ -1480,6 +1607,12 @@ const imports = {
|
|
|
1480
1607
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1481
1608
|
}
|
|
1482
1609
|
}, arguments) },
|
|
1610
|
+
__wbg_getPaymentsByParentIds_0f8f8e0097a07321: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1611
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1612
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1613
|
+
const ret = arg0.getPaymentsByParentIds(v0);
|
|
1614
|
+
return ret;
|
|
1615
|
+
}, arguments) },
|
|
1483
1616
|
__wbg_getPublicKeyForNode_5ddb3378904e4ad4: function() { return handleError(function (arg0, arg1) {
|
|
1484
1617
|
const ret = arg0.getPublicKeyForNode(arg1);
|
|
1485
1618
|
return ret;
|
|
@@ -1592,6 +1725,18 @@ const imports = {
|
|
|
1592
1725
|
const ret = arg0.identityPublicKey();
|
|
1593
1726
|
return ret;
|
|
1594
1727
|
}, arguments) },
|
|
1728
|
+
__wbg_insertPaymentMetadata_0c4ebdcde694d29b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1729
|
+
let deferred0_0;
|
|
1730
|
+
let deferred0_1;
|
|
1731
|
+
try {
|
|
1732
|
+
deferred0_0 = arg1;
|
|
1733
|
+
deferred0_1 = arg2;
|
|
1734
|
+
const ret = arg0.insertPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
1735
|
+
return ret;
|
|
1736
|
+
} finally {
|
|
1737
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1738
|
+
}
|
|
1739
|
+
}, arguments) },
|
|
1595
1740
|
__wbg_insertPayment_2afe3300c5f86ccf: function() { return handleError(function (arg0, arg1) {
|
|
1596
1741
|
const ret = arg0.insertPayment(arg1);
|
|
1597
1742
|
return ret;
|
|
@@ -1606,6 +1751,16 @@ const imports = {
|
|
|
1606
1751
|
const ret = result;
|
|
1607
1752
|
return ret;
|
|
1608
1753
|
},
|
|
1754
|
+
__wbg_instanceof_Blob_ca721ef3bdab15d1: function(arg0) {
|
|
1755
|
+
let result;
|
|
1756
|
+
try {
|
|
1757
|
+
result = arg0 instanceof Blob;
|
|
1758
|
+
} catch (_) {
|
|
1759
|
+
result = false;
|
|
1760
|
+
}
|
|
1761
|
+
const ret = result;
|
|
1762
|
+
return ret;
|
|
1763
|
+
},
|
|
1609
1764
|
__wbg_instanceof_DomException_ed1ccb7aaf39034c: function(arg0) {
|
|
1610
1765
|
let result;
|
|
1611
1766
|
try {
|
|
@@ -1670,6 +1825,10 @@ const imports = {
|
|
|
1670
1825
|
const ret = Array.isArray(arg0);
|
|
1671
1826
|
return ret;
|
|
1672
1827
|
},
|
|
1828
|
+
__wbg_isPrfAvailable_c13e727932109c6e: function() { return handleError(function (arg0) {
|
|
1829
|
+
const ret = arg0.isPrfAvailable();
|
|
1830
|
+
return ret;
|
|
1831
|
+
}, arguments) },
|
|
1673
1832
|
__wbg_isSafeInteger_343e2beeeece1bb0: function(arg0) {
|
|
1674
1833
|
const ret = Number.isSafeInteger(arg0);
|
|
1675
1834
|
return ret;
|
|
@@ -1734,7 +1893,7 @@ const imports = {
|
|
|
1734
1893
|
const a = state0.a;
|
|
1735
1894
|
state0.a = 0;
|
|
1736
1895
|
try {
|
|
1737
|
-
return
|
|
1896
|
+
return __wbg_adapter_304(a, state0.b, arg0, arg1);
|
|
1738
1897
|
} finally {
|
|
1739
1898
|
state0.a = a;
|
|
1740
1899
|
}
|
|
@@ -1757,6 +1916,10 @@ const imports = {
|
|
|
1757
1916
|
const ret = new Array();
|
|
1758
1917
|
return ret;
|
|
1759
1918
|
},
|
|
1919
|
+
__wbg_new_92c54fc74574ef55: function() { return handleError(function (arg0, arg1) {
|
|
1920
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1921
|
+
return ret;
|
|
1922
|
+
}, arguments) },
|
|
1760
1923
|
__wbg_new_a12002a7f91c75be: function(arg0) {
|
|
1761
1924
|
const ret = new Uint8Array(arg0);
|
|
1762
1925
|
return ret;
|
|
@@ -1854,6 +2017,17 @@ const imports = {
|
|
|
1854
2017
|
const ret = arg0.read();
|
|
1855
2018
|
return ret;
|
|
1856
2019
|
},
|
|
2020
|
+
__wbg_readyState_7ef6e63c349899ed: function(arg0) {
|
|
2021
|
+
const ret = arg0.readyState;
|
|
2022
|
+
return ret;
|
|
2023
|
+
},
|
|
2024
|
+
__wbg_reason_49f1cede8bcf23dd: function(arg0, arg1) {
|
|
2025
|
+
const ret = arg1.reason;
|
|
2026
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2027
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2028
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2029
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2030
|
+
},
|
|
1857
2031
|
__wbg_recommendedFees_a61f331fce46523e: function() { return handleError(function (arg0) {
|
|
1858
2032
|
const ret = arg0.recommendedFees();
|
|
1859
2033
|
return ret;
|
|
@@ -1876,6 +2050,12 @@ const imports = {
|
|
|
1876
2050
|
const ret = SdkBuilder.__wrap(arg0);
|
|
1877
2051
|
return ret;
|
|
1878
2052
|
},
|
|
2053
|
+
__wbg_send_0293179ba074ffb4: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2054
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
2055
|
+
}, arguments) },
|
|
2056
|
+
__wbg_send_fc0c204e8a1757f4: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2057
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
2058
|
+
}, arguments) },
|
|
1879
2059
|
__wbg_setCachedItem_91b03741dfb0b4c2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1880
2060
|
let deferred0_0;
|
|
1881
2061
|
let deferred0_1;
|
|
@@ -1899,18 +2079,6 @@ const imports = {
|
|
|
1899
2079
|
const ret = arg0.setLnurlMetadata(v0);
|
|
1900
2080
|
return ret;
|
|
1901
2081
|
}, arguments) },
|
|
1902
|
-
__wbg_setPaymentMetadata_0bbf82aa72b85deb: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1903
|
-
let deferred0_0;
|
|
1904
|
-
let deferred0_1;
|
|
1905
|
-
try {
|
|
1906
|
-
deferred0_0 = arg1;
|
|
1907
|
-
deferred0_1 = arg2;
|
|
1908
|
-
const ret = arg0.setPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
1909
|
-
return ret;
|
|
1910
|
-
} finally {
|
|
1911
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1912
|
-
}
|
|
1913
|
-
}, arguments) },
|
|
1914
2082
|
__wbg_setTimeout_2b339866a2aa3789: function(arg0, arg1) {
|
|
1915
2083
|
const ret = setTimeout(arg0, arg1);
|
|
1916
2084
|
return ret;
|
|
@@ -1918,6 +2086,10 @@ const imports = {
|
|
|
1918
2086
|
__wbg_setTimeout_8f06012fba12034e: function(arg0, arg1) {
|
|
1919
2087
|
globalThis.setTimeout(arg0, arg1);
|
|
1920
2088
|
},
|
|
2089
|
+
__wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
|
|
2090
|
+
const ret = setTimeout(arg0, arg1);
|
|
2091
|
+
return ret;
|
|
2092
|
+
}, arguments) },
|
|
1921
2093
|
__wbg_set_37837023f3d740e8: function(arg0, arg1, arg2) {
|
|
1922
2094
|
arg0[arg1 >>> 0] = arg2;
|
|
1923
2095
|
},
|
|
@@ -1935,6 +2107,9 @@ const imports = {
|
|
|
1935
2107
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1936
2108
|
return ret;
|
|
1937
2109
|
}, arguments) },
|
|
2110
|
+
__wbg_setbinaryType_92fa1ffd873b327c: function(arg0, arg1) {
|
|
2111
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2112
|
+
},
|
|
1938
2113
|
__wbg_setbody_5923b78a95eedf29: function(arg0, arg1) {
|
|
1939
2114
|
arg0.body = arg1;
|
|
1940
2115
|
},
|
|
@@ -1956,6 +2131,18 @@ const imports = {
|
|
|
1956
2131
|
__wbg_setmode_5dc300b865044b65: function(arg0, arg1) {
|
|
1957
2132
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1958
2133
|
},
|
|
2134
|
+
__wbg_setonclose_14fc475a49d488fc: function(arg0, arg1) {
|
|
2135
|
+
arg0.onclose = arg1;
|
|
2136
|
+
},
|
|
2137
|
+
__wbg_setonerror_8639efe354b947cd: function(arg0, arg1) {
|
|
2138
|
+
arg0.onerror = arg1;
|
|
2139
|
+
},
|
|
2140
|
+
__wbg_setonmessage_6eccab530a8fb4c7: function(arg0, arg1) {
|
|
2141
|
+
arg0.onmessage = arg1;
|
|
2142
|
+
},
|
|
2143
|
+
__wbg_setonopen_2da654e1f39745d5: function(arg0, arg1) {
|
|
2144
|
+
arg0.onopen = arg1;
|
|
2145
|
+
},
|
|
1959
2146
|
__wbg_setredirect_40e6a7f717a2f86a: function(arg0, arg1) {
|
|
1960
2147
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1961
2148
|
},
|
|
@@ -2127,6 +2314,13 @@ const imports = {
|
|
|
2127
2314
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2128
2315
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2129
2316
|
},
|
|
2317
|
+
__wbg_url_ce9ab75bf9627ae4: function(arg0, arg1) {
|
|
2318
|
+
const ret = arg1.url;
|
|
2319
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2320
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2321
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2322
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2323
|
+
},
|
|
2130
2324
|
__wbg_value_cd1ffa7b1ab794f1: function(arg0) {
|
|
2131
2325
|
const ret = arg0.value;
|
|
2132
2326
|
return ret;
|
|
@@ -2139,6 +2333,10 @@ const imports = {
|
|
|
2139
2333
|
const ret = arg0.view;
|
|
2140
2334
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2141
2335
|
},
|
|
2336
|
+
__wbg_wasClean_605b4fd66d44354a: function(arg0) {
|
|
2337
|
+
const ret = arg0.wasClean;
|
|
2338
|
+
return ret;
|
|
2339
|
+
},
|
|
2142
2340
|
__wbindgen_array_new: function() {
|
|
2143
2341
|
const ret = [];
|
|
2144
2342
|
return ret;
|
|
@@ -2182,12 +2380,24 @@ const imports = {
|
|
|
2182
2380
|
const ret = false;
|
|
2183
2381
|
return ret;
|
|
2184
2382
|
},
|
|
2185
|
-
|
|
2186
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2383
|
+
__wbindgen_closure_wrapper1405: function(arg0, arg1, arg2) {
|
|
2384
|
+
const ret = makeMutClosure(arg0, arg1, 950, __wbg_adapter_64);
|
|
2385
|
+
return ret;
|
|
2386
|
+
},
|
|
2387
|
+
__wbindgen_closure_wrapper14979: function(arg0, arg1, arg2) {
|
|
2388
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2389
|
+
return ret;
|
|
2390
|
+
},
|
|
2391
|
+
__wbindgen_closure_wrapper5733: function(arg0, arg1, arg2) {
|
|
2392
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2393
|
+
return ret;
|
|
2394
|
+
},
|
|
2395
|
+
__wbindgen_closure_wrapper5738: function(arg0, arg1, arg2) {
|
|
2396
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2187
2397
|
return ret;
|
|
2188
2398
|
},
|
|
2189
|
-
|
|
2190
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2399
|
+
__wbindgen_closure_wrapper9713: function(arg0, arg1, arg2) {
|
|
2400
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_64);
|
|
2191
2401
|
return ret;
|
|
2192
2402
|
},
|
|
2193
2403
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
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;
|