@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
|
@@ -214,11 +214,15 @@ function debugString(val) {
|
|
|
214
214
|
return className;
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
|
-
* @param {
|
|
217
|
+
* @param {Config} config
|
|
218
|
+
* @param {ExternalSigner} signer
|
|
219
|
+
* @param {string} storage_dir
|
|
218
220
|
* @returns {Promise<BreezSdk>}
|
|
219
221
|
*/
|
|
220
|
-
export function
|
|
221
|
-
const
|
|
222
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
223
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
224
|
+
const len0 = WASM_VECTOR_LEN;
|
|
225
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
222
226
|
return ret;
|
|
223
227
|
}
|
|
224
228
|
|
|
@@ -235,15 +239,11 @@ export function initLogging(logger, filter) {
|
|
|
235
239
|
}
|
|
236
240
|
|
|
237
241
|
/**
|
|
238
|
-
* @param {
|
|
239
|
-
* @param {ExternalSigner} signer
|
|
240
|
-
* @param {string} storage_dir
|
|
242
|
+
* @param {ConnectRequest} request
|
|
241
243
|
* @returns {Promise<BreezSdk>}
|
|
242
244
|
*/
|
|
243
|
-
export function
|
|
244
|
-
const
|
|
245
|
-
const len0 = WASM_VECTOR_LEN;
|
|
246
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
245
|
+
export function connect(request) {
|
|
246
|
+
const ret = wasm.connect(request);
|
|
247
247
|
return ret;
|
|
248
248
|
}
|
|
249
249
|
|
|
@@ -301,17 +301,19 @@ export function task_worker_entry_point(ptr) {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
function __wbg_adapter_64(arg0, arg1) {
|
|
304
|
-
wasm.
|
|
304
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f40343a8ffdf67e(arg0, arg1);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
function __wbg_adapter_67(arg0, arg1, arg2) {
|
|
308
|
-
wasm.
|
|
308
|
+
wasm.closure446_externref_shim(arg0, arg1, arg2);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
function
|
|
312
|
-
wasm.
|
|
311
|
+
function __wbg_adapter_304(arg0, arg1, arg2, arg3) {
|
|
312
|
+
wasm.closure709_externref_shim(arg0, arg1, arg2, arg3);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
316
|
+
|
|
315
317
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
316
318
|
|
|
317
319
|
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"];
|
|
@@ -1107,6 +1109,104 @@ export class SdkBuilder {
|
|
|
1107
1109
|
}
|
|
1108
1110
|
}
|
|
1109
1111
|
|
|
1112
|
+
const SeedlessRestoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1113
|
+
? { register: () => {}, unregister: () => {} }
|
|
1114
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_seedlessrestore_free(ptr >>> 0, 1));
|
|
1115
|
+
/**
|
|
1116
|
+
* WASM wrapper for SeedlessRestore.
|
|
1117
|
+
*
|
|
1118
|
+
* Orchestrates seedless wallet creation and restore operations using
|
|
1119
|
+
* passkey PRF and Nostr relays.
|
|
1120
|
+
*/
|
|
1121
|
+
export class SeedlessRestore {
|
|
1122
|
+
|
|
1123
|
+
__destroy_into_raw() {
|
|
1124
|
+
const ptr = this.__wbg_ptr;
|
|
1125
|
+
this.__wbg_ptr = 0;
|
|
1126
|
+
SeedlessRestoreFinalization.unregister(this);
|
|
1127
|
+
return ptr;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
free() {
|
|
1131
|
+
const ptr = this.__destroy_into_raw();
|
|
1132
|
+
wasm.__wbg_seedlessrestore_free(ptr, 0);
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* List all salts published to Nostr for this passkey's identity.
|
|
1136
|
+
*
|
|
1137
|
+
* This method queries Nostr relays for all kind-1 text note events
|
|
1138
|
+
* authored by the Nostr identity derived from the passkey.
|
|
1139
|
+
*
|
|
1140
|
+
* @returns A Promise resolving to an array of salt strings
|
|
1141
|
+
* @returns {Promise<any>}
|
|
1142
|
+
*/
|
|
1143
|
+
listSalts() {
|
|
1144
|
+
const ret = wasm.seedlessrestore_listSalts(this.__wbg_ptr);
|
|
1145
|
+
return ret;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Create a new wallet seed from a user-provided salt.
|
|
1149
|
+
*
|
|
1150
|
+
* This method:
|
|
1151
|
+
* 1. Derives the Nostr identity from the passkey using the magic salt
|
|
1152
|
+
* 2. Checks if the salt already exists on Nostr (idempotency)
|
|
1153
|
+
* 3. If not, publishes the salt to Nostr relays
|
|
1154
|
+
* 4. Derives the wallet seed from the passkey using the user's salt
|
|
1155
|
+
*
|
|
1156
|
+
* @param salt - A user-chosen salt string (e.g., "personal", "business")
|
|
1157
|
+
* @returns A Promise resolving to the derived wallet seed (24-word mnemonic)
|
|
1158
|
+
* @param {string} salt
|
|
1159
|
+
* @returns {Promise<any>}
|
|
1160
|
+
*/
|
|
1161
|
+
createSeed(salt) {
|
|
1162
|
+
const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1163
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1164
|
+
const ret = wasm.seedlessrestore_createSeed(this.__wbg_ptr, ptr0, len0);
|
|
1165
|
+
return ret;
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Restore a wallet seed from a specific salt.
|
|
1169
|
+
*
|
|
1170
|
+
* Use this after calling listSalts() to restore a specific wallet.
|
|
1171
|
+
* This method only derives the seed; it does not publish anything.
|
|
1172
|
+
*
|
|
1173
|
+
* @param salt - The salt string to use for seed derivation
|
|
1174
|
+
* @returns A Promise resolving to the derived wallet seed (24-word mnemonic)
|
|
1175
|
+
* @param {string} salt
|
|
1176
|
+
* @returns {Promise<any>}
|
|
1177
|
+
*/
|
|
1178
|
+
restoreSeed(salt) {
|
|
1179
|
+
const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1180
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1181
|
+
const ret = wasm.seedlessrestore_restoreSeed(this.__wbg_ptr, ptr0, len0);
|
|
1182
|
+
return ret;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Check if passkey PRF is available on this device.
|
|
1186
|
+
*
|
|
1187
|
+
* @returns A Promise resolving to true if PRF-capable passkey is available
|
|
1188
|
+
* @returns {Promise<boolean>}
|
|
1189
|
+
*/
|
|
1190
|
+
isPrfAvailable() {
|
|
1191
|
+
const ret = wasm.seedlessrestore_isPrfAvailable(this.__wbg_ptr);
|
|
1192
|
+
return ret;
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Create a new SeedlessRestore instance.
|
|
1196
|
+
*
|
|
1197
|
+
* @param prf_provider - Platform implementation of passkey PRF operations
|
|
1198
|
+
* @param relay_config - Configuration for Nostr relay connections
|
|
1199
|
+
* @param {PasskeyPrfProvider} prf_provider
|
|
1200
|
+
* @param {NostrRelayConfig | null} [relay_config]
|
|
1201
|
+
*/
|
|
1202
|
+
constructor(prf_provider, relay_config) {
|
|
1203
|
+
const ret = wasm.seedlessrestore_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
|
|
1204
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1205
|
+
SeedlessRestoreFinalization.register(this, this.__wbg_ptr, this);
|
|
1206
|
+
return this;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1110
1210
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1111
1211
|
? { register: () => {}, unregister: () => {} }
|
|
1112
1212
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr >>> 0, 1));
|
|
@@ -1320,10 +1420,17 @@ function __wbg_get_imports() {
|
|
|
1320
1420
|
const ret = arg0.catch(arg1);
|
|
1321
1421
|
return ret;
|
|
1322
1422
|
};
|
|
1423
|
+
imports.wbg.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
|
|
1424
|
+
const ret = clearTimeout(arg0);
|
|
1425
|
+
return ret;
|
|
1426
|
+
};
|
|
1323
1427
|
imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
|
|
1324
1428
|
const ret = clearTimeout(arg0);
|
|
1325
1429
|
return ret;
|
|
1326
1430
|
};
|
|
1431
|
+
imports.wbg.__wbg_close_2893b7d056a0627d = function() { return handleError(function (arg0) {
|
|
1432
|
+
arg0.close();
|
|
1433
|
+
}, arguments) };
|
|
1327
1434
|
imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
|
|
1328
1435
|
arg0.close();
|
|
1329
1436
|
}, arguments) };
|
|
@@ -1334,6 +1441,10 @@ function __wbg_get_imports() {
|
|
|
1334
1441
|
const ret = arg0.code;
|
|
1335
1442
|
return ret;
|
|
1336
1443
|
};
|
|
1444
|
+
imports.wbg.__wbg_code_f4ec1e6e2e1b0417 = function(arg0) {
|
|
1445
|
+
const ret = arg0.code;
|
|
1446
|
+
return ret;
|
|
1447
|
+
};
|
|
1337
1448
|
imports.wbg.__wbg_createDefaultStorage_458aa01b5eaead27 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1338
1449
|
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1339
1450
|
return ret;
|
|
@@ -1342,6 +1453,10 @@ function __wbg_get_imports() {
|
|
|
1342
1453
|
const ret = arg0.crypto;
|
|
1343
1454
|
return ret;
|
|
1344
1455
|
};
|
|
1456
|
+
imports.wbg.__wbg_data_432d9c3df2630942 = function(arg0) {
|
|
1457
|
+
const ret = arg0.data;
|
|
1458
|
+
return ret;
|
|
1459
|
+
};
|
|
1345
1460
|
imports.wbg.__wbg_deleteCachedItem_ff3c84380e94360b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1346
1461
|
let deferred0_0;
|
|
1347
1462
|
let deferred0_1;
|
|
@@ -1383,6 +1498,18 @@ function __wbg_get_imports() {
|
|
|
1383
1498
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1384
1499
|
}
|
|
1385
1500
|
}, arguments) };
|
|
1501
|
+
imports.wbg.__wbg_derivePrfSeed_8584c0fcf554b593 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1502
|
+
let deferred0_0;
|
|
1503
|
+
let deferred0_1;
|
|
1504
|
+
try {
|
|
1505
|
+
deferred0_0 = arg1;
|
|
1506
|
+
deferred0_1 = arg2;
|
|
1507
|
+
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1508
|
+
return ret;
|
|
1509
|
+
} finally {
|
|
1510
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1511
|
+
}
|
|
1512
|
+
}, arguments) };
|
|
1386
1513
|
imports.wbg.__wbg_derivePublicKey_736fb57b6852f201 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1387
1514
|
let deferred0_0;
|
|
1388
1515
|
let deferred0_1;
|
|
@@ -1521,6 +1648,12 @@ function __wbg_get_imports() {
|
|
|
1521
1648
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1522
1649
|
}
|
|
1523
1650
|
}, arguments) };
|
|
1651
|
+
imports.wbg.__wbg_getPaymentsByParentIds_0f8f8e0097a07321 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1652
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1653
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1654
|
+
const ret = arg0.getPaymentsByParentIds(v0);
|
|
1655
|
+
return ret;
|
|
1656
|
+
}, arguments) };
|
|
1524
1657
|
imports.wbg.__wbg_getPublicKeyForNode_5ddb3378904e4ad4 = function() { return handleError(function (arg0, arg1) {
|
|
1525
1658
|
const ret = arg0.getPublicKeyForNode(arg1);
|
|
1526
1659
|
return ret;
|
|
@@ -1633,6 +1766,18 @@ function __wbg_get_imports() {
|
|
|
1633
1766
|
const ret = arg0.identityPublicKey();
|
|
1634
1767
|
return ret;
|
|
1635
1768
|
}, arguments) };
|
|
1769
|
+
imports.wbg.__wbg_insertPaymentMetadata_0c4ebdcde694d29b = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1770
|
+
let deferred0_0;
|
|
1771
|
+
let deferred0_1;
|
|
1772
|
+
try {
|
|
1773
|
+
deferred0_0 = arg1;
|
|
1774
|
+
deferred0_1 = arg2;
|
|
1775
|
+
const ret = arg0.insertPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
1776
|
+
return ret;
|
|
1777
|
+
} finally {
|
|
1778
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1779
|
+
}
|
|
1780
|
+
}, arguments) };
|
|
1636
1781
|
imports.wbg.__wbg_insertPayment_2afe3300c5f86ccf = function() { return handleError(function (arg0, arg1) {
|
|
1637
1782
|
const ret = arg0.insertPayment(arg1);
|
|
1638
1783
|
return ret;
|
|
@@ -1647,6 +1792,16 @@ function __wbg_get_imports() {
|
|
|
1647
1792
|
const ret = result;
|
|
1648
1793
|
return ret;
|
|
1649
1794
|
};
|
|
1795
|
+
imports.wbg.__wbg_instanceof_Blob_ca721ef3bdab15d1 = function(arg0) {
|
|
1796
|
+
let result;
|
|
1797
|
+
try {
|
|
1798
|
+
result = arg0 instanceof Blob;
|
|
1799
|
+
} catch (_) {
|
|
1800
|
+
result = false;
|
|
1801
|
+
}
|
|
1802
|
+
const ret = result;
|
|
1803
|
+
return ret;
|
|
1804
|
+
};
|
|
1650
1805
|
imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
|
|
1651
1806
|
let result;
|
|
1652
1807
|
try {
|
|
@@ -1711,6 +1866,10 @@ function __wbg_get_imports() {
|
|
|
1711
1866
|
const ret = Array.isArray(arg0);
|
|
1712
1867
|
return ret;
|
|
1713
1868
|
};
|
|
1869
|
+
imports.wbg.__wbg_isPrfAvailable_c13e727932109c6e = function() { return handleError(function (arg0) {
|
|
1870
|
+
const ret = arg0.isPrfAvailable();
|
|
1871
|
+
return ret;
|
|
1872
|
+
}, arguments) };
|
|
1714
1873
|
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
1715
1874
|
const ret = Number.isSafeInteger(arg0);
|
|
1716
1875
|
return ret;
|
|
@@ -1775,7 +1934,7 @@ function __wbg_get_imports() {
|
|
|
1775
1934
|
const a = state0.a;
|
|
1776
1935
|
state0.a = 0;
|
|
1777
1936
|
try {
|
|
1778
|
-
return
|
|
1937
|
+
return __wbg_adapter_304(a, state0.b, arg0, arg1);
|
|
1779
1938
|
} finally {
|
|
1780
1939
|
state0.a = a;
|
|
1781
1940
|
}
|
|
@@ -1798,6 +1957,10 @@ function __wbg_get_imports() {
|
|
|
1798
1957
|
const ret = new Array();
|
|
1799
1958
|
return ret;
|
|
1800
1959
|
};
|
|
1960
|
+
imports.wbg.__wbg_new_92c54fc74574ef55 = function() { return handleError(function (arg0, arg1) {
|
|
1961
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1962
|
+
return ret;
|
|
1963
|
+
}, arguments) };
|
|
1801
1964
|
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1802
1965
|
const ret = new Uint8Array(arg0);
|
|
1803
1966
|
return ret;
|
|
@@ -1895,6 +2058,17 @@ function __wbg_get_imports() {
|
|
|
1895
2058
|
const ret = arg0.read();
|
|
1896
2059
|
return ret;
|
|
1897
2060
|
};
|
|
2061
|
+
imports.wbg.__wbg_readyState_7ef6e63c349899ed = function(arg0) {
|
|
2062
|
+
const ret = arg0.readyState;
|
|
2063
|
+
return ret;
|
|
2064
|
+
};
|
|
2065
|
+
imports.wbg.__wbg_reason_49f1cede8bcf23dd = function(arg0, arg1) {
|
|
2066
|
+
const ret = arg1.reason;
|
|
2067
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2068
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2069
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2070
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2071
|
+
};
|
|
1898
2072
|
imports.wbg.__wbg_recommendedFees_a61f331fce46523e = function() { return handleError(function (arg0) {
|
|
1899
2073
|
const ret = arg0.recommendedFees();
|
|
1900
2074
|
return ret;
|
|
@@ -1917,6 +2091,12 @@ function __wbg_get_imports() {
|
|
|
1917
2091
|
const ret = SdkBuilder.__wrap(arg0);
|
|
1918
2092
|
return ret;
|
|
1919
2093
|
};
|
|
2094
|
+
imports.wbg.__wbg_send_0293179ba074ffb4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2095
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
2096
|
+
}, arguments) };
|
|
2097
|
+
imports.wbg.__wbg_send_fc0c204e8a1757f4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2098
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
2099
|
+
}, arguments) };
|
|
1920
2100
|
imports.wbg.__wbg_setCachedItem_91b03741dfb0b4c2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1921
2101
|
let deferred0_0;
|
|
1922
2102
|
let deferred0_1;
|
|
@@ -1940,18 +2120,6 @@ function __wbg_get_imports() {
|
|
|
1940
2120
|
const ret = arg0.setLnurlMetadata(v0);
|
|
1941
2121
|
return ret;
|
|
1942
2122
|
}, arguments) };
|
|
1943
|
-
imports.wbg.__wbg_setPaymentMetadata_0bbf82aa72b85deb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1944
|
-
let deferred0_0;
|
|
1945
|
-
let deferred0_1;
|
|
1946
|
-
try {
|
|
1947
|
-
deferred0_0 = arg1;
|
|
1948
|
-
deferred0_1 = arg2;
|
|
1949
|
-
const ret = arg0.setPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
1950
|
-
return ret;
|
|
1951
|
-
} finally {
|
|
1952
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1953
|
-
}
|
|
1954
|
-
}, arguments) };
|
|
1955
2123
|
imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
1956
2124
|
const ret = setTimeout(arg0, arg1);
|
|
1957
2125
|
return ret;
|
|
@@ -1959,6 +2127,10 @@ function __wbg_get_imports() {
|
|
|
1959
2127
|
imports.wbg.__wbg_setTimeout_8f06012fba12034e = function(arg0, arg1) {
|
|
1960
2128
|
globalThis.setTimeout(arg0, arg1);
|
|
1961
2129
|
};
|
|
2130
|
+
imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
|
|
2131
|
+
const ret = setTimeout(arg0, arg1);
|
|
2132
|
+
return ret;
|
|
2133
|
+
}, arguments) };
|
|
1962
2134
|
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
1963
2135
|
arg0[arg1 >>> 0] = arg2;
|
|
1964
2136
|
};
|
|
@@ -1976,6 +2148,9 @@ function __wbg_get_imports() {
|
|
|
1976
2148
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1977
2149
|
return ret;
|
|
1978
2150
|
}, arguments) };
|
|
2151
|
+
imports.wbg.__wbg_setbinaryType_92fa1ffd873b327c = function(arg0, arg1) {
|
|
2152
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2153
|
+
};
|
|
1979
2154
|
imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
1980
2155
|
arg0.body = arg1;
|
|
1981
2156
|
};
|
|
@@ -1997,6 +2172,18 @@ function __wbg_get_imports() {
|
|
|
1997
2172
|
imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
1998
2173
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1999
2174
|
};
|
|
2175
|
+
imports.wbg.__wbg_setonclose_14fc475a49d488fc = function(arg0, arg1) {
|
|
2176
|
+
arg0.onclose = arg1;
|
|
2177
|
+
};
|
|
2178
|
+
imports.wbg.__wbg_setonerror_8639efe354b947cd = function(arg0, arg1) {
|
|
2179
|
+
arg0.onerror = arg1;
|
|
2180
|
+
};
|
|
2181
|
+
imports.wbg.__wbg_setonmessage_6eccab530a8fb4c7 = function(arg0, arg1) {
|
|
2182
|
+
arg0.onmessage = arg1;
|
|
2183
|
+
};
|
|
2184
|
+
imports.wbg.__wbg_setonopen_2da654e1f39745d5 = function(arg0, arg1) {
|
|
2185
|
+
arg0.onopen = arg1;
|
|
2186
|
+
};
|
|
2000
2187
|
imports.wbg.__wbg_setredirect_40e6a7f717a2f86a = function(arg0, arg1) {
|
|
2001
2188
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
2002
2189
|
};
|
|
@@ -2168,6 +2355,13 @@ function __wbg_get_imports() {
|
|
|
2168
2355
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2169
2356
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2170
2357
|
};
|
|
2358
|
+
imports.wbg.__wbg_url_ce9ab75bf9627ae4 = function(arg0, arg1) {
|
|
2359
|
+
const ret = arg1.url;
|
|
2360
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2361
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2362
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2363
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2364
|
+
};
|
|
2171
2365
|
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
2172
2366
|
const ret = arg0.value;
|
|
2173
2367
|
return ret;
|
|
@@ -2180,6 +2374,10 @@ function __wbg_get_imports() {
|
|
|
2180
2374
|
const ret = arg0.view;
|
|
2181
2375
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2182
2376
|
};
|
|
2377
|
+
imports.wbg.__wbg_wasClean_605b4fd66d44354a = function(arg0) {
|
|
2378
|
+
const ret = arg0.wasClean;
|
|
2379
|
+
return ret;
|
|
2380
|
+
};
|
|
2183
2381
|
imports.wbg.__wbindgen_array_new = function() {
|
|
2184
2382
|
const ret = [];
|
|
2185
2383
|
return ret;
|
|
@@ -2223,12 +2421,24 @@ function __wbg_get_imports() {
|
|
|
2223
2421
|
const ret = false;
|
|
2224
2422
|
return ret;
|
|
2225
2423
|
};
|
|
2226
|
-
imports.wbg.
|
|
2227
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2424
|
+
imports.wbg.__wbindgen_closure_wrapper1405 = function(arg0, arg1, arg2) {
|
|
2425
|
+
const ret = makeMutClosure(arg0, arg1, 950, __wbg_adapter_64);
|
|
2426
|
+
return ret;
|
|
2427
|
+
};
|
|
2428
|
+
imports.wbg.__wbindgen_closure_wrapper14979 = function(arg0, arg1, arg2) {
|
|
2429
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2430
|
+
return ret;
|
|
2431
|
+
};
|
|
2432
|
+
imports.wbg.__wbindgen_closure_wrapper5733 = function(arg0, arg1, arg2) {
|
|
2433
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2434
|
+
return ret;
|
|
2435
|
+
};
|
|
2436
|
+
imports.wbg.__wbindgen_closure_wrapper5738 = function(arg0, arg1, arg2) {
|
|
2437
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_67);
|
|
2228
2438
|
return ret;
|
|
2229
2439
|
};
|
|
2230
|
-
imports.wbg.
|
|
2231
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2440
|
+
imports.wbg.__wbindgen_closure_wrapper9713 = function(arg0, arg1, arg2) {
|
|
2441
|
+
const ret = makeMutClosure(arg0, arg1, 447, __wbg_adapter_64);
|
|
2232
2442
|
return ret;
|
|
2233
2443
|
};
|
|
2234
2444
|
imports.wbg.__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;
|