@breeztech/breez-sdk-spark 0.18.0-dev4 → 0.19.0
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 +162 -0
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +407 -22
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -5
- package/deno/breez_sdk_spark_wasm.d.ts +162 -0
- package/deno/breez_sdk_spark_wasm.js +407 -22
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -5
- package/nodejs/breez_sdk_spark_wasm.d.ts +162 -0
- package/nodejs/breez_sdk_spark_wasm.js +413 -22
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -5
- package/nodejs/index.mjs +6 -0
- package/nodejs/mysql-token-store/index.cjs +212 -70
- package/nodejs/mysql-tree-store/index.cjs +158 -26
- package/nodejs/postgres-token-store/index.cjs +207 -69
- package/nodejs/postgres-tree-store/index.cjs +157 -31
- package/package.json +1 -1
- package/ssr/index.js +36 -0
- package/web/breez_sdk_spark_wasm.d.ts +187 -5
- package/web/breez_sdk_spark_wasm.js +407 -22
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +25 -5
|
@@ -117,6 +117,22 @@ class BreezSdk {
|
|
|
117
117
|
const ret = wasm.breezsdk_authorizeLightningAddressTransfer(this.__wbg_ptr, request);
|
|
118
118
|
return ret;
|
|
119
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* @param {BuildUnsignedLnurlPayPackageRequest} request
|
|
122
|
+
* @returns {Promise<UnsignedTransferPackage>}
|
|
123
|
+
*/
|
|
124
|
+
buildUnsignedLnurlPayPackage(request) {
|
|
125
|
+
const ret = wasm.breezsdk_buildUnsignedLnurlPayPackage(this.__wbg_ptr, request);
|
|
126
|
+
return ret;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @param {BuildUnsignedTransferPackageRequest} request
|
|
130
|
+
* @returns {Promise<UnsignedTransferPackage>}
|
|
131
|
+
*/
|
|
132
|
+
buildUnsignedTransferPackage(request) {
|
|
133
|
+
const ret = wasm.breezsdk_buildUnsignedTransferPackage(this.__wbg_ptr, request);
|
|
134
|
+
return ret;
|
|
135
|
+
}
|
|
120
136
|
/**
|
|
121
137
|
* @param {BuyBitcoinRequest} request
|
|
122
138
|
* @returns {Promise<BuyBitcoinResponse>}
|
|
@@ -353,6 +369,22 @@ class BreezSdk {
|
|
|
353
369
|
const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
|
|
354
370
|
return ret;
|
|
355
371
|
}
|
|
372
|
+
/**
|
|
373
|
+
* @param {PublishSignedLnurlPayPackageRequest} request
|
|
374
|
+
* @returns {Promise<PublishSignedLnurlPayResponse>}
|
|
375
|
+
*/
|
|
376
|
+
publishSignedLnurlPayPackage(request) {
|
|
377
|
+
const ret = wasm.breezsdk_publishSignedLnurlPayPackage(this.__wbg_ptr, request);
|
|
378
|
+
return ret;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @param {PublishSignedTransferPackageRequest} request
|
|
382
|
+
* @returns {Promise<PublishSignedTransferPackageResponse>}
|
|
383
|
+
*/
|
|
384
|
+
publishSignedTransferPackage(request) {
|
|
385
|
+
const ret = wasm.breezsdk_publishSignedTransferPackage(this.__wbg_ptr, request);
|
|
386
|
+
return ret;
|
|
387
|
+
}
|
|
356
388
|
/**
|
|
357
389
|
* @param {ReceivePaymentRequest} request
|
|
358
390
|
* @returns {Promise<ReceivePaymentResponse>}
|
|
@@ -461,6 +493,55 @@ class BreezSdk {
|
|
|
461
493
|
if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
|
|
462
494
|
exports.BreezSdk = BreezSdk;
|
|
463
495
|
|
|
496
|
+
/**
|
|
497
|
+
* A JS handle to a backend's own session store (from `defaultSessionStore`),
|
|
498
|
+
* exposing the same `getSession` / `setSession` interface. Wrap it in a JS
|
|
499
|
+
* `SessionStore` decorator and pass that to `SdkBuilder.withSessionStore` to
|
|
500
|
+
* transform tokens while keeping the backend's persistence: for example
|
|
501
|
+
* at-rest encryption, which the SDK does not apply itself.
|
|
502
|
+
*/
|
|
503
|
+
class DefaultSessionStore {
|
|
504
|
+
static __wrap(ptr) {
|
|
505
|
+
const obj = Object.create(DefaultSessionStore.prototype);
|
|
506
|
+
obj.__wbg_ptr = ptr;
|
|
507
|
+
DefaultSessionStoreFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
508
|
+
return obj;
|
|
509
|
+
}
|
|
510
|
+
__destroy_into_raw() {
|
|
511
|
+
const ptr = this.__wbg_ptr;
|
|
512
|
+
this.__wbg_ptr = 0;
|
|
513
|
+
DefaultSessionStoreFinalization.unregister(this);
|
|
514
|
+
return ptr;
|
|
515
|
+
}
|
|
516
|
+
free() {
|
|
517
|
+
const ptr = this.__destroy_into_raw();
|
|
518
|
+
wasm.__wbg_defaultsessionstore_free(ptr, 0);
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* @param {string} service_identity_key
|
|
522
|
+
* @returns {Promise<Session>}
|
|
523
|
+
*/
|
|
524
|
+
getSession(service_identity_key) {
|
|
525
|
+
const ptr0 = passStringToWasm0(service_identity_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
526
|
+
const len0 = WASM_VECTOR_LEN;
|
|
527
|
+
const ret = wasm.defaultsessionstore_getSession(this.__wbg_ptr, ptr0, len0);
|
|
528
|
+
return ret;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @param {string} service_identity_key
|
|
532
|
+
* @param {Session} session
|
|
533
|
+
* @returns {Promise<void>}
|
|
534
|
+
*/
|
|
535
|
+
setSession(service_identity_key, session) {
|
|
536
|
+
const ptr0 = passStringToWasm0(service_identity_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
537
|
+
const len0 = WASM_VECTOR_LEN;
|
|
538
|
+
const ret = wasm.defaultsessionstore_setSession(this.__wbg_ptr, ptr0, len0, session);
|
|
539
|
+
return ret;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
if (Symbol.dispose) DefaultSessionStore.prototype[Symbol.dispose] = DefaultSessionStore.prototype.free;
|
|
543
|
+
exports.DefaultSessionStore = DefaultSessionStore;
|
|
544
|
+
|
|
464
545
|
/**
|
|
465
546
|
* A Rust-backed [`ExternalBreezSigner`] surfaced to JS as a signer object that
|
|
466
547
|
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
@@ -616,6 +697,80 @@ class ExternalSigners {
|
|
|
616
697
|
if (Symbol.dispose) ExternalSigners.prototype[Symbol.dispose] = ExternalSigners.prototype.free;
|
|
617
698
|
exports.ExternalSigners = ExternalSigners;
|
|
618
699
|
|
|
700
|
+
/**
|
|
701
|
+
* A Rust-backed [`ExternalSigningSigner`] surfaced to JS as a signer object
|
|
702
|
+
* that can be passed to `connectWithSigningOnlySigner` or
|
|
703
|
+
* `SdkBuilder.newWithSigningOnlySigner`. Produced by
|
|
704
|
+
* `createTurnkeySigningOnlySigner`.
|
|
705
|
+
*
|
|
706
|
+
* [`ExternalSigningSigner`]: breez_sdk_spark::signer::ExternalSigningSigner
|
|
707
|
+
*/
|
|
708
|
+
class ExternalSigningSignerHandle {
|
|
709
|
+
static __wrap(ptr) {
|
|
710
|
+
const obj = Object.create(ExternalSigningSignerHandle.prototype);
|
|
711
|
+
obj.__wbg_ptr = ptr;
|
|
712
|
+
ExternalSigningSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
713
|
+
return obj;
|
|
714
|
+
}
|
|
715
|
+
__destroy_into_raw() {
|
|
716
|
+
const ptr = this.__wbg_ptr;
|
|
717
|
+
this.__wbg_ptr = 0;
|
|
718
|
+
ExternalSigningSignerHandleFinalization.unregister(this);
|
|
719
|
+
return ptr;
|
|
720
|
+
}
|
|
721
|
+
free() {
|
|
722
|
+
const ptr = this.__destroy_into_raw();
|
|
723
|
+
wasm.__wbg_externalsigningsignerhandle_free(ptr, 0);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @param {string} path
|
|
727
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
728
|
+
*/
|
|
729
|
+
derivePublicKey(path) {
|
|
730
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
731
|
+
const len0 = WASM_VECTOR_LEN;
|
|
732
|
+
const ret = wasm.externalsigningsignerhandle_derivePublicKey(this.__wbg_ptr, ptr0, len0);
|
|
733
|
+
return ret;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* @param {MessageBytes} message
|
|
737
|
+
* @param {string} path
|
|
738
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
739
|
+
*/
|
|
740
|
+
signEcdsa(message, path) {
|
|
741
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
742
|
+
const len0 = WASM_VECTOR_LEN;
|
|
743
|
+
const ret = wasm.externalsigningsignerhandle_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
|
|
744
|
+
return ret;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* @param {MessageBytes} message
|
|
748
|
+
* @param {string} path
|
|
749
|
+
* @returns {Promise<RecoverableEcdsaSignatureBytes>}
|
|
750
|
+
*/
|
|
751
|
+
signEcdsaRecoverable(message, path) {
|
|
752
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
|
+
const len0 = WASM_VECTOR_LEN;
|
|
754
|
+
const ret = wasm.externalsigningsignerhandle_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
|
|
755
|
+
return ret;
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* @param {Uint8Array} hash
|
|
759
|
+
* @param {string} path
|
|
760
|
+
* @returns {Promise<SchnorrSignatureBytes>}
|
|
761
|
+
*/
|
|
762
|
+
signHashSchnorr(hash, path) {
|
|
763
|
+
const ptr0 = passArray8ToWasm0(hash, wasm.__wbindgen_malloc);
|
|
764
|
+
const len0 = WASM_VECTOR_LEN;
|
|
765
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
766
|
+
const len1 = WASM_VECTOR_LEN;
|
|
767
|
+
const ret = wasm.externalsigningsignerhandle_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
768
|
+
return ret;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
if (Symbol.dispose) ExternalSigningSignerHandle.prototype[Symbol.dispose] = ExternalSigningSignerHandle.prototype.free;
|
|
772
|
+
exports.ExternalSigningSignerHandle = ExternalSigningSignerHandle;
|
|
773
|
+
|
|
619
774
|
/**
|
|
620
775
|
* A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
|
|
621
776
|
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
@@ -1047,6 +1202,20 @@ class SdkBuilder {
|
|
|
1047
1202
|
const ret = wasm.sdkbuilder_newWithSigner(config, breez_signer, spark_signer);
|
|
1048
1203
|
return SdkBuilder.__wrap(ret);
|
|
1049
1204
|
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Creates a new `SdkBuilder` with a signing-only external signer, for a
|
|
1207
|
+
* signer that can't perform the SDK's local ECIES/HMAC operations. The SDK
|
|
1208
|
+
* keeps session tokens in plaintext and disables the features that rely on
|
|
1209
|
+
* ECIES/HMAC.
|
|
1210
|
+
* @param {Config} config
|
|
1211
|
+
* @param {ExternalSigningSigner} breez_signer
|
|
1212
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1213
|
+
* @returns {SdkBuilder}
|
|
1214
|
+
*/
|
|
1215
|
+
static newWithSigningOnlySigner(config, breez_signer, spark_signer) {
|
|
1216
|
+
const ret = wasm.sdkbuilder_newWithSigningOnlySigner(config, breez_signer, spark_signer);
|
|
1217
|
+
return SdkBuilder.__wrap(ret);
|
|
1218
|
+
}
|
|
1050
1219
|
/**
|
|
1051
1220
|
* @param {number} account_number
|
|
1052
1221
|
* @returns {SdkBuilder}
|
|
@@ -1142,6 +1311,19 @@ class SdkBuilder {
|
|
|
1142
1311
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1143
1312
|
return SdkBuilder.__wrap(ret);
|
|
1144
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Overrides the session store used to cache auth tokens, replacing the one
|
|
1316
|
+
* the backend provides. Pass any `SessionStore`: for example one that wraps
|
|
1317
|
+
* the backend's own store from `defaultSessionStore` to add at-rest
|
|
1318
|
+
* encryption, which the SDK does not apply itself.
|
|
1319
|
+
* @param {SessionStore} session_store
|
|
1320
|
+
* @returns {SdkBuilder}
|
|
1321
|
+
*/
|
|
1322
|
+
withSessionStore(session_store) {
|
|
1323
|
+
const ptr = this.__destroy_into_raw();
|
|
1324
|
+
const ret = wasm.sdkbuilder_withSessionStore(ptr, session_store);
|
|
1325
|
+
return SdkBuilder.__wrap(ret);
|
|
1326
|
+
}
|
|
1145
1327
|
/**
|
|
1146
1328
|
* Threads a shared [`WasmSdkContext`] into the builder.
|
|
1147
1329
|
*
|
|
@@ -1185,6 +1367,48 @@ class SdkBuilder {
|
|
|
1185
1367
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
1186
1368
|
exports.SdkBuilder = SdkBuilder;
|
|
1187
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* The signing-only external signers for the SDK's signer-based connect.
|
|
1372
|
+
* Returned by `createTurnkeySigningOnlySigner`; pass both halves to
|
|
1373
|
+
* `connectWithSigningOnlySigner` or `SdkBuilder.newWithSigningOnlySigner`.
|
|
1374
|
+
*/
|
|
1375
|
+
class SigningOnlyExternalSigners {
|
|
1376
|
+
static __wrap(ptr) {
|
|
1377
|
+
const obj = Object.create(SigningOnlyExternalSigners.prototype);
|
|
1378
|
+
obj.__wbg_ptr = ptr;
|
|
1379
|
+
SigningOnlyExternalSignersFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1380
|
+
return obj;
|
|
1381
|
+
}
|
|
1382
|
+
__destroy_into_raw() {
|
|
1383
|
+
const ptr = this.__wbg_ptr;
|
|
1384
|
+
this.__wbg_ptr = 0;
|
|
1385
|
+
SigningOnlyExternalSignersFinalization.unregister(this);
|
|
1386
|
+
return ptr;
|
|
1387
|
+
}
|
|
1388
|
+
free() {
|
|
1389
|
+
const ptr = this.__destroy_into_raw();
|
|
1390
|
+
wasm.__wbg_signingonlyexternalsigners_free(ptr, 0);
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Signing-only external signer for non-Spark SDK signing.
|
|
1394
|
+
* @returns {ExternalSigningSignerHandle}
|
|
1395
|
+
*/
|
|
1396
|
+
get breezSigner() {
|
|
1397
|
+
const ret = wasm.signingonlyexternalsigners_breezSigner(this.__wbg_ptr);
|
|
1398
|
+
return ExternalSigningSignerHandle.__wrap(ret);
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* External high-level Spark signer for the Spark wallet flows.
|
|
1402
|
+
* @returns {ExternalSparkSignerHandle}
|
|
1403
|
+
*/
|
|
1404
|
+
get sparkSigner() {
|
|
1405
|
+
const ret = wasm.signingonlyexternalsigners_sparkSigner(this.__wbg_ptr);
|
|
1406
|
+
return ExternalSparkSignerHandle.__wrap(ret);
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
if (Symbol.dispose) SigningOnlyExternalSigners.prototype[Symbol.dispose] = SigningOnlyExternalSigners.prototype.free;
|
|
1410
|
+
exports.SigningOnlyExternalSigners = SigningOnlyExternalSigners;
|
|
1411
|
+
|
|
1188
1412
|
class TokenIssuer {
|
|
1189
1413
|
static __wrap(ptr) {
|
|
1190
1414
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1340,6 +1564,24 @@ function connectWithSigner(config, breez_signer, spark_signer, storage_dir) {
|
|
|
1340
1564
|
}
|
|
1341
1565
|
exports.connectWithSigner = connectWithSigner;
|
|
1342
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* Connects using a signing-only external signer, for a signer that can't
|
|
1569
|
+
* perform the SDK's local ECIES/HMAC operations. The SDK keeps session tokens
|
|
1570
|
+
* in plaintext and disables the features that rely on ECIES/HMAC.
|
|
1571
|
+
* @param {Config} config
|
|
1572
|
+
* @param {ExternalSigningSigner} breez_signer
|
|
1573
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1574
|
+
* @param {string} storage_dir
|
|
1575
|
+
* @returns {Promise<BreezSdk>}
|
|
1576
|
+
*/
|
|
1577
|
+
function connectWithSigningOnlySigner(config, breez_signer, spark_signer, storage_dir) {
|
|
1578
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1579
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1580
|
+
const ret = wasm.connectWithSigningOnlySigner(config, breez_signer, spark_signer, ptr0, len0);
|
|
1581
|
+
return ret;
|
|
1582
|
+
}
|
|
1583
|
+
exports.connectWithSigningOnlySigner = connectWithSigningOnlySigner;
|
|
1584
|
+
|
|
1343
1585
|
/**
|
|
1344
1586
|
* Builds the Turnkey-backed signers from `config`, then pass
|
|
1345
1587
|
* `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
|
|
@@ -1353,6 +1595,20 @@ function createTurnkeySigner(config) {
|
|
|
1353
1595
|
}
|
|
1354
1596
|
exports.createTurnkeySigner = createTurnkeySigner;
|
|
1355
1597
|
|
|
1598
|
+
/**
|
|
1599
|
+
* Builds the signing-only Turnkey-backed signers from `config` (for a wallet
|
|
1600
|
+
* under a deny-export policy), then pass `signers.breezSigner` and
|
|
1601
|
+
* `signers.sparkSigner` to `connectWithSigningOnlySigner`. The Breez half
|
|
1602
|
+
* performs signing only and never exports a key.
|
|
1603
|
+
* @param {TurnkeyConfig} config
|
|
1604
|
+
* @returns {Promise<SigningOnlyExternalSigners>}
|
|
1605
|
+
*/
|
|
1606
|
+
function createTurnkeySigningOnlySigner(config) {
|
|
1607
|
+
const ret = wasm.createTurnkeySigningOnlySigner(config);
|
|
1608
|
+
return ret;
|
|
1609
|
+
}
|
|
1610
|
+
exports.createTurnkeySigningOnlySigner = createTurnkeySigningOnlySigner;
|
|
1611
|
+
|
|
1356
1612
|
/**
|
|
1357
1613
|
* @param {Network} network
|
|
1358
1614
|
* @returns {Config}
|
|
@@ -1434,6 +1690,25 @@ function defaultServerConfig(network) {
|
|
|
1434
1690
|
}
|
|
1435
1691
|
exports.defaultServerConfig = defaultServerConfig;
|
|
1436
1692
|
|
|
1693
|
+
/**
|
|
1694
|
+
* The session store the `config`'s backend provides for `identity` (the wallet
|
|
1695
|
+
* identity public key, hex), as a handle to wrap in a `SessionStore` decorator
|
|
1696
|
+
* and pass to `SdkBuilder.withSessionStore`, keeping the backend's persistence.
|
|
1697
|
+
* A typical use is at-rest encryption, which the SDK does not apply itself.
|
|
1698
|
+
* @param {WasmStorageConfig} config
|
|
1699
|
+
* @param {Network} network
|
|
1700
|
+
* @param {string} identity
|
|
1701
|
+
* @returns {Promise<DefaultSessionStore>}
|
|
1702
|
+
*/
|
|
1703
|
+
function defaultSessionStore(config, network, identity) {
|
|
1704
|
+
_assertClass(config, WasmStorageConfig);
|
|
1705
|
+
const ptr0 = passStringToWasm0(identity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1706
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1707
|
+
const ret = wasm.defaultSessionStore(config.__wbg_ptr, network, ptr0, len0);
|
|
1708
|
+
return ret;
|
|
1709
|
+
}
|
|
1710
|
+
exports.defaultSessionStore = defaultSessionStore;
|
|
1711
|
+
|
|
1437
1712
|
/**
|
|
1438
1713
|
* File-based storage rooted at `storageDir` — IndexedDB in the browser,
|
|
1439
1714
|
* SQLite under Node.js.
|
|
@@ -1882,6 +2157,10 @@ function __wbg_get_imports() {
|
|
|
1882
2157
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1883
2158
|
}
|
|
1884
2159
|
}, arguments); },
|
|
2160
|
+
__wbg_defaultsessionstore_new: function(arg0) {
|
|
2161
|
+
const ret = DefaultSessionStore.__wrap(arg0);
|
|
2162
|
+
return ret;
|
|
2163
|
+
},
|
|
1885
2164
|
__wbg_deleteCachedItem_b8fbe3ebea21ed7e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1886
2165
|
let deferred0_0;
|
|
1887
2166
|
let deferred0_1;
|
|
@@ -1947,6 +2226,18 @@ function __wbg_get_imports() {
|
|
|
1947
2226
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1948
2227
|
}
|
|
1949
2228
|
}, arguments); },
|
|
2229
|
+
__wbg_derivePublicKey_db43f40bd54e092a: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2230
|
+
let deferred0_0;
|
|
2231
|
+
let deferred0_1;
|
|
2232
|
+
try {
|
|
2233
|
+
deferred0_0 = arg1;
|
|
2234
|
+
deferred0_1 = arg2;
|
|
2235
|
+
const ret = arg0.derivePublicKey(getStringFromWasm0(arg1, arg2));
|
|
2236
|
+
return ret;
|
|
2237
|
+
} finally {
|
|
2238
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2239
|
+
}
|
|
2240
|
+
}, arguments); },
|
|
1950
2241
|
__wbg_deriveSeeds_5c331613e2894c56: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1951
2242
|
const ret = arg0.deriveSeeds(arg1, arg2);
|
|
1952
2243
|
return ret;
|
|
@@ -2215,6 +2506,10 @@ function __wbg_get_imports() {
|
|
|
2215
2506
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2216
2507
|
}
|
|
2217
2508
|
}, arguments); },
|
|
2509
|
+
__wbg_getVerifiedLeafKeys_12405bb5f39ffb61: function() { return handleError(function (arg0) {
|
|
2510
|
+
const ret = arg0.getVerifiedLeafKeys();
|
|
2511
|
+
return ret;
|
|
2512
|
+
}, arguments); },
|
|
2218
2513
|
__wbg_get_41476db20fef99a8: function() { return handleError(function (arg0, arg1) {
|
|
2219
2514
|
const ret = Reflect.get(arg0, arg1);
|
|
2220
2515
|
return ret;
|
|
@@ -2660,6 +2955,23 @@ function __wbg_get_imports() {
|
|
|
2660
2955
|
const ret = module.require;
|
|
2661
2956
|
return ret;
|
|
2662
2957
|
}, arguments); },
|
|
2958
|
+
__wbg_reserveTokenOutputsByOutpoints_a18be5f9fb4ab30a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2959
|
+
let deferred0_0;
|
|
2960
|
+
let deferred0_1;
|
|
2961
|
+
let deferred1_0;
|
|
2962
|
+
let deferred1_1;
|
|
2963
|
+
try {
|
|
2964
|
+
deferred0_0 = arg1;
|
|
2965
|
+
deferred0_1 = arg2;
|
|
2966
|
+
deferred1_0 = arg4;
|
|
2967
|
+
deferred1_1 = arg5;
|
|
2968
|
+
const ret = arg0.reserveTokenOutputsByOutpoints(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5));
|
|
2969
|
+
return ret;
|
|
2970
|
+
} finally {
|
|
2971
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2972
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2973
|
+
}
|
|
2974
|
+
}, arguments); },
|
|
2663
2975
|
__wbg_reserveTokenOutputs_233990fbd0ce963a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2664
2976
|
let deferred0_0;
|
|
2665
2977
|
let deferred0_1;
|
|
@@ -2688,6 +3000,18 @@ function __wbg_get_imports() {
|
|
|
2688
3000
|
const ret = SdkBuilder.__wrap(arg0);
|
|
2689
3001
|
return ret;
|
|
2690
3002
|
},
|
|
3003
|
+
__wbg_selectTokenOutputs_450f20621013b14d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
3004
|
+
let deferred0_0;
|
|
3005
|
+
let deferred0_1;
|
|
3006
|
+
try {
|
|
3007
|
+
deferred0_0 = arg1;
|
|
3008
|
+
deferred0_1 = arg2;
|
|
3009
|
+
const ret = arg0.selectTokenOutputs(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5);
|
|
3010
|
+
return ret;
|
|
3011
|
+
} finally {
|
|
3012
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3013
|
+
}
|
|
3014
|
+
}, arguments); },
|
|
2691
3015
|
__wbg_send_0edb796d05cd3239: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2692
3016
|
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
2693
3017
|
}, arguments); },
|
|
@@ -2827,6 +3151,18 @@ function __wbg_get_imports() {
|
|
|
2827
3151
|
const ret = arg0.signAuthenticationChallenge(v0);
|
|
2828
3152
|
return ret;
|
|
2829
3153
|
}, arguments); },
|
|
3154
|
+
__wbg_signEcdsaRecoverable_7a9da0490e388132: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3155
|
+
let deferred0_0;
|
|
3156
|
+
let deferred0_1;
|
|
3157
|
+
try {
|
|
3158
|
+
deferred0_0 = arg2;
|
|
3159
|
+
deferred0_1 = arg3;
|
|
3160
|
+
const ret = arg0.signEcdsaRecoverable(arg1, getStringFromWasm0(arg2, arg3));
|
|
3161
|
+
return ret;
|
|
3162
|
+
} finally {
|
|
3163
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3164
|
+
}
|
|
3165
|
+
}, arguments); },
|
|
2830
3166
|
__wbg_signEcdsaRecoverable_978c5526e66a433b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2831
3167
|
let deferred0_0;
|
|
2832
3168
|
let deferred0_1;
|
|
@@ -2851,10 +3187,36 @@ function __wbg_get_imports() {
|
|
|
2851
3187
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2852
3188
|
}
|
|
2853
3189
|
}, arguments); },
|
|
3190
|
+
__wbg_signEcdsa_89f0abf313463778: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3191
|
+
let deferred0_0;
|
|
3192
|
+
let deferred0_1;
|
|
3193
|
+
try {
|
|
3194
|
+
deferred0_0 = arg2;
|
|
3195
|
+
deferred0_1 = arg3;
|
|
3196
|
+
const ret = arg0.signEcdsa(arg1, getStringFromWasm0(arg2, arg3));
|
|
3197
|
+
return ret;
|
|
3198
|
+
} finally {
|
|
3199
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3200
|
+
}
|
|
3201
|
+
}, arguments); },
|
|
2854
3202
|
__wbg_signFrost_08951e01d00d4b1c: function() { return handleError(function (arg0, arg1) {
|
|
2855
3203
|
const ret = arg0.signFrost(arg1);
|
|
2856
3204
|
return ret;
|
|
2857
3205
|
}, arguments); },
|
|
3206
|
+
__wbg_signHashSchnorr_881022637f4bf583: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3207
|
+
let deferred1_0;
|
|
3208
|
+
let deferred1_1;
|
|
3209
|
+
try {
|
|
3210
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
3211
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
3212
|
+
deferred1_0 = arg3;
|
|
3213
|
+
deferred1_1 = arg4;
|
|
3214
|
+
const ret = arg0.signHashSchnorr(v0, getStringFromWasm0(arg3, arg4));
|
|
3215
|
+
return ret;
|
|
3216
|
+
} finally {
|
|
3217
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3218
|
+
}
|
|
3219
|
+
}, arguments); },
|
|
2858
3220
|
__wbg_signHashSchnorr_fc8afda9a7ee021a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2859
3221
|
let deferred1_0;
|
|
2860
3222
|
let deferred1_1;
|
|
@@ -2887,6 +3249,10 @@ function __wbg_get_imports() {
|
|
|
2887
3249
|
const ret = arg0.signal;
|
|
2888
3250
|
return ret;
|
|
2889
3251
|
},
|
|
3252
|
+
__wbg_signingonlyexternalsigners_new: function(arg0) {
|
|
3253
|
+
const ret = SigningOnlyExternalSigners.__wrap(arg0);
|
|
3254
|
+
return ret;
|
|
3255
|
+
},
|
|
2890
3256
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
2891
3257
|
const ret = arg1.stack;
|
|
2892
3258
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2987,6 +3353,18 @@ function __wbg_get_imports() {
|
|
|
2987
3353
|
const ret = arg0.toString();
|
|
2988
3354
|
return ret;
|
|
2989
3355
|
},
|
|
3356
|
+
__wbg_tryReserveLeavesByIds_a6433e824993a82f: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3357
|
+
let deferred0_0;
|
|
3358
|
+
let deferred0_1;
|
|
3359
|
+
try {
|
|
3360
|
+
deferred0_0 = arg2;
|
|
3361
|
+
deferred0_1 = arg3;
|
|
3362
|
+
const ret = arg0.tryReserveLeavesByIds(arg1, getStringFromWasm0(arg2, arg3));
|
|
3363
|
+
return ret;
|
|
3364
|
+
} finally {
|
|
3365
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3366
|
+
}
|
|
3367
|
+
}, arguments); },
|
|
2990
3368
|
__wbg_tryReserveLeaves_d2cd87cbc2a886d2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2991
3369
|
let deferred0_0;
|
|
2992
3370
|
let deferred0_1;
|
|
@@ -2999,6 +3377,10 @@ function __wbg_get_imports() {
|
|
|
2999
3377
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3000
3378
|
}
|
|
3001
3379
|
}, arguments); },
|
|
3380
|
+
__wbg_trySelectLeaves_ff1aeb7ffc5e4e57: function() { return handleError(function (arg0, arg1) {
|
|
3381
|
+
const ret = arg0.trySelectLeaves(arg1);
|
|
3382
|
+
return ret;
|
|
3383
|
+
}, arguments); },
|
|
3002
3384
|
__wbg_updateDeposit_efb96cf6e6fbe7b7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3003
3385
|
let deferred0_0;
|
|
3004
3386
|
let deferred0_1;
|
|
@@ -3063,61 +3445,61 @@ function __wbg_get_imports() {
|
|
|
3063
3445
|
},
|
|
3064
3446
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3065
3447
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3066
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3448
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575);
|
|
3067
3449
|
return ret;
|
|
3068
3450
|
},
|
|
3069
3451
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3070
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3452
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3071
3453
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
|
|
3072
3454
|
return ret;
|
|
3073
3455
|
},
|
|
3074
3456
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3075
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3457
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3076
3458
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
|
|
3077
3459
|
return ret;
|
|
3078
3460
|
},
|
|
3079
3461
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3080
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
3462
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3081
3463
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
|
|
3082
3464
|
return ret;
|
|
3083
3465
|
},
|
|
3084
3466
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3085
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3467
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3086
3468
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
|
|
3087
3469
|
return ret;
|
|
3088
3470
|
},
|
|
3089
3471
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3090
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3472
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3091
3473
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
3092
3474
|
return ret;
|
|
3093
3475
|
},
|
|
3094
3476
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3095
3477
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3096
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3478
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6);
|
|
3097
3479
|
return ret;
|
|
3098
3480
|
},
|
|
3099
3481
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3100
3482
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3101
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3483
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7);
|
|
3102
3484
|
return ret;
|
|
3103
3485
|
},
|
|
3104
3486
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3105
3487
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3106
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3488
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8);
|
|
3107
3489
|
return ret;
|
|
3108
3490
|
},
|
|
3109
3491
|
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
3110
3492
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3111
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3493
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9);
|
|
3112
3494
|
return ret;
|
|
3113
3495
|
},
|
|
3114
3496
|
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
3115
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3497
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 392, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3116
3498
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
3117
3499
|
return ret;
|
|
3118
3500
|
},
|
|
3119
3501
|
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
3120
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3502
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3121
3503
|
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3122
3504
|
return ret;
|
|
3123
3505
|
},
|
|
@@ -3237,36 +3619,36 @@ function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, a
|
|
|
3237
3619
|
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
|
|
3238
3620
|
}
|
|
3239
3621
|
|
|
3240
|
-
function
|
|
3241
|
-
const ret = wasm.
|
|
3622
|
+
function wasm_bindgen__convert__closures_____invoke__h21f6855640435575(arg0, arg1, arg2) {
|
|
3623
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575(arg0, arg1, arg2);
|
|
3242
3624
|
if (ret[1]) {
|
|
3243
3625
|
throw takeFromExternrefTable0(ret[0]);
|
|
3244
3626
|
}
|
|
3245
3627
|
}
|
|
3246
3628
|
|
|
3247
|
-
function
|
|
3248
|
-
const ret = wasm.
|
|
3629
|
+
function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6(arg0, arg1, arg2) {
|
|
3630
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6(arg0, arg1, arg2);
|
|
3249
3631
|
if (ret[1]) {
|
|
3250
3632
|
throw takeFromExternrefTable0(ret[0]);
|
|
3251
3633
|
}
|
|
3252
3634
|
}
|
|
3253
3635
|
|
|
3254
|
-
function
|
|
3255
|
-
const ret = wasm.
|
|
3636
|
+
function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7(arg0, arg1, arg2) {
|
|
3637
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7(arg0, arg1, arg2);
|
|
3256
3638
|
if (ret[1]) {
|
|
3257
3639
|
throw takeFromExternrefTable0(ret[0]);
|
|
3258
3640
|
}
|
|
3259
3641
|
}
|
|
3260
3642
|
|
|
3261
|
-
function
|
|
3262
|
-
const ret = wasm.
|
|
3643
|
+
function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8(arg0, arg1, arg2) {
|
|
3644
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8(arg0, arg1, arg2);
|
|
3263
3645
|
if (ret[1]) {
|
|
3264
3646
|
throw takeFromExternrefTable0(ret[0]);
|
|
3265
3647
|
}
|
|
3266
3648
|
}
|
|
3267
3649
|
|
|
3268
|
-
function
|
|
3269
|
-
const ret = wasm.
|
|
3650
|
+
function wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9(arg0, arg1, arg2) {
|
|
3651
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9(arg0, arg1, arg2);
|
|
3270
3652
|
if (ret[1]) {
|
|
3271
3653
|
throw takeFromExternrefTable0(ret[0]);
|
|
3272
3654
|
}
|
|
@@ -3302,12 +3684,18 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
|
|
|
3302
3684
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3303
3685
|
? { register: () => {}, unregister: () => {} }
|
|
3304
3686
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
3687
|
+
const DefaultSessionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3688
|
+
? { register: () => {}, unregister: () => {} }
|
|
3689
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_defaultsessionstore_free(ptr, 1));
|
|
3305
3690
|
const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3306
3691
|
? { register: () => {}, unregister: () => {} }
|
|
3307
3692
|
: new FinalizationRegistry(ptr => wasm.__wbg_externalbreezsignerhandle_free(ptr, 1));
|
|
3308
3693
|
const ExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3309
3694
|
? { register: () => {}, unregister: () => {} }
|
|
3310
3695
|
: new FinalizationRegistry(ptr => wasm.__wbg_externalsigners_free(ptr, 1));
|
|
3696
|
+
const ExternalSigningSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3697
|
+
? { register: () => {}, unregister: () => {} }
|
|
3698
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalsigningsignerhandle_free(ptr, 1));
|
|
3311
3699
|
const ExternalSparkSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3312
3700
|
? { register: () => {}, unregister: () => {} }
|
|
3313
3701
|
: new FinalizationRegistry(ptr => wasm.__wbg_externalsparksignerhandle_free(ptr, 1));
|
|
@@ -3329,6 +3717,9 @@ const PasskeyLabelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3329
3717
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3330
3718
|
? { register: () => {}, unregister: () => {} }
|
|
3331
3719
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3720
|
+
const SigningOnlyExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3721
|
+
? { register: () => {}, unregister: () => {} }
|
|
3722
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_signingonlyexternalsigners_free(ptr, 1));
|
|
3332
3723
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3333
3724
|
? { register: () => {}, unregister: () => {} }
|
|
3334
3725
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
Binary file
|