@breeztech/breez-sdk-spark 0.15.1 → 0.17.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 +604 -237
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +729 -434
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/bundler/storage/index.js +356 -34
- package/deno/breez_sdk_spark_wasm.d.ts +604 -237
- package/deno/breez_sdk_spark_wasm.js +729 -434
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/nodejs/breez_sdk_spark_wasm.d.ts +604 -237
- package/nodejs/breez_sdk_spark_wasm.js +741 -441
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/nodejs/index.js +10 -10
- package/nodejs/index.mjs +13 -8
- package/nodejs/mysql-session-store/errors.cjs +13 -0
- package/nodejs/{mysql-session-manager → mysql-session-store}/index.cjs +24 -21
- package/nodejs/{mysql-session-manager → mysql-session-store}/migrations.cjs +17 -11
- package/nodejs/mysql-session-store/package.json +9 -0
- package/nodejs/mysql-storage/index.cjs +358 -125
- package/nodejs/mysql-storage/migrations.cjs +67 -2
- package/nodejs/mysql-token-store/index.cjs +99 -79
- package/nodejs/mysql-token-store/migrations.cjs +59 -2
- package/nodejs/mysql-tree-store/index.cjs +15 -9
- package/nodejs/mysql-tree-store/migrations.cjs +16 -2
- package/nodejs/package.json +2 -2
- package/nodejs/postgres-session-store/errors.cjs +13 -0
- package/nodejs/{postgres-session-manager → postgres-session-store}/index.cjs +23 -23
- package/nodejs/{postgres-session-manager → postgres-session-store}/migrations.cjs +14 -14
- package/nodejs/postgres-session-store/package.json +9 -0
- package/nodejs/postgres-storage/index.cjs +296 -119
- package/nodejs/postgres-storage/migrations.cjs +51 -0
- package/nodejs/postgres-token-store/index.cjs +89 -64
- package/nodejs/postgres-token-store/migrations.cjs +44 -0
- package/nodejs/storage/index.cjs +285 -125
- package/nodejs/storage/migrations.cjs +47 -0
- package/package.json +6 -1
- package/ssr/index.js +57 -28
- package/web/breez_sdk_spark_wasm.d.ts +667 -286
- package/web/breez_sdk_spark_wasm.js +729 -434
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/web/passkey-prf-provider/index.d.ts +203 -0
- package/web/passkey-prf-provider/index.js +733 -0
- package/web/storage/index.js +356 -34
- package/nodejs/mysql-session-manager/errors.cjs +0 -13
- package/nodejs/mysql-session-manager/package.json +0 -9
- package/nodejs/postgres-session-manager/errors.cjs +0 -13
- package/nodejs/postgres-session-manager/package.json +0 -9
|
@@ -110,18 +110,19 @@ class BreezSdk {
|
|
|
110
110
|
return ret;
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* @param {
|
|
114
|
-
* @returns {Promise<
|
|
113
|
+
* @param {AuthorizeTransferRequest} request
|
|
114
|
+
* @returns {Promise<TransferAuthorization>}
|
|
115
115
|
*/
|
|
116
|
-
|
|
117
|
-
const ret = wasm.
|
|
116
|
+
authorizeLightningAddressTransfer(request) {
|
|
117
|
+
const ret = wasm.breezsdk_authorizeLightningAddressTransfer(this.__wbg_ptr, request);
|
|
118
118
|
return ret;
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
|
-
* @
|
|
121
|
+
* @param {BuyBitcoinRequest} request
|
|
122
|
+
* @returns {Promise<BuyBitcoinResponse>}
|
|
122
123
|
*/
|
|
123
|
-
|
|
124
|
-
const ret = wasm.
|
|
124
|
+
buyBitcoin(request) {
|
|
125
|
+
const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
|
|
125
126
|
return ret;
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
@@ -156,6 +157,14 @@ class BreezSdk {
|
|
|
156
157
|
const ret = wasm.breezsdk_claimHtlcPayment(this.__wbg_ptr, request);
|
|
157
158
|
return ret;
|
|
158
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* @param {ClaimTransferRequest} request
|
|
162
|
+
* @returns {Promise<LightningAddressInfo>}
|
|
163
|
+
*/
|
|
164
|
+
claimLightningAddressTransfer(request) {
|
|
165
|
+
const ret = wasm.breezsdk_claimLightningAddressTransfer(this.__wbg_ptr, request);
|
|
166
|
+
return ret;
|
|
167
|
+
}
|
|
159
168
|
/**
|
|
160
169
|
* @param {string} id
|
|
161
170
|
* @returns {Promise<void>}
|
|
@@ -189,18 +198,19 @@ class BreezSdk {
|
|
|
189
198
|
return ret;
|
|
190
199
|
}
|
|
191
200
|
/**
|
|
192
|
-
* @param {
|
|
193
|
-
* @returns {Promise<
|
|
201
|
+
* @param {CrossChainRouteFilter} filter
|
|
202
|
+
* @returns {Promise<CrossChainRoutePair[]>}
|
|
194
203
|
*/
|
|
195
|
-
|
|
196
|
-
const ret = wasm.
|
|
204
|
+
getCrossChainRoutes(filter) {
|
|
205
|
+
const ret = wasm.breezsdk_getCrossChainRoutes(this.__wbg_ptr, filter);
|
|
197
206
|
return ret;
|
|
198
207
|
}
|
|
199
208
|
/**
|
|
200
|
-
* @
|
|
209
|
+
* @param {GetInfoRequest} request
|
|
210
|
+
* @returns {Promise<GetInfoResponse>}
|
|
201
211
|
*/
|
|
202
|
-
|
|
203
|
-
const ret = wasm.
|
|
212
|
+
getInfo(request) {
|
|
213
|
+
const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
|
|
204
214
|
return ret;
|
|
205
215
|
}
|
|
206
216
|
/**
|
|
@@ -309,6 +319,14 @@ class BreezSdk {
|
|
|
309
319
|
const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
|
|
310
320
|
return ret;
|
|
311
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* @param {OptimizeLeavesRequest} request
|
|
324
|
+
* @returns {Promise<OptimizeLeavesResponse>}
|
|
325
|
+
*/
|
|
326
|
+
optimizeLeaves(request) {
|
|
327
|
+
const ret = wasm.breezsdk_optimizeLeaves(this.__wbg_ptr, request);
|
|
328
|
+
return ret;
|
|
329
|
+
}
|
|
312
330
|
/**
|
|
313
331
|
* @param {string} input
|
|
314
332
|
* @returns {Promise<InputType>}
|
|
@@ -407,13 +425,6 @@ class BreezSdk {
|
|
|
407
425
|
const ret = wasm.breezsdk_signMessage(this.__wbg_ptr, request);
|
|
408
426
|
return ret;
|
|
409
427
|
}
|
|
410
|
-
/**
|
|
411
|
-
* @returns {Promise<void>}
|
|
412
|
-
*/
|
|
413
|
-
startLeafOptimization() {
|
|
414
|
-
const ret = wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
|
|
415
|
-
return ret;
|
|
416
|
-
}
|
|
417
428
|
/**
|
|
418
429
|
* @param {SyncWalletRequest} request
|
|
419
430
|
* @returns {Promise<SyncWalletResponse>}
|
|
@@ -451,33 +462,28 @@ if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free
|
|
|
451
462
|
exports.BreezSdk = BreezSdk;
|
|
452
463
|
|
|
453
464
|
/**
|
|
454
|
-
* A
|
|
455
|
-
*
|
|
465
|
+
* A Rust-backed [`ExternalBreezSigner`] surfaced to JS as a signer object that
|
|
466
|
+
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
467
|
+
* by `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey).
|
|
468
|
+
*
|
|
469
|
+
* [`ExternalBreezSigner`]: breez_sdk_spark::signer::ExternalBreezSigner
|
|
456
470
|
*/
|
|
457
|
-
class
|
|
471
|
+
class ExternalBreezSignerHandle {
|
|
458
472
|
static __wrap(ptr) {
|
|
459
|
-
const obj = Object.create(
|
|
473
|
+
const obj = Object.create(ExternalBreezSignerHandle.prototype);
|
|
460
474
|
obj.__wbg_ptr = ptr;
|
|
461
|
-
|
|
475
|
+
ExternalBreezSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
462
476
|
return obj;
|
|
463
477
|
}
|
|
464
478
|
__destroy_into_raw() {
|
|
465
479
|
const ptr = this.__wbg_ptr;
|
|
466
480
|
this.__wbg_ptr = 0;
|
|
467
|
-
|
|
481
|
+
ExternalBreezSignerHandleFinalization.unregister(this);
|
|
468
482
|
return ptr;
|
|
469
483
|
}
|
|
470
484
|
free() {
|
|
471
485
|
const ptr = this.__destroy_into_raw();
|
|
472
|
-
wasm.
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* @param {ExternalAggregateFrostRequest} request
|
|
476
|
-
* @returns {Promise<ExternalFrostSignature>}
|
|
477
|
-
*/
|
|
478
|
-
aggregateFrost(request) {
|
|
479
|
-
const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
|
|
480
|
-
return ret;
|
|
486
|
+
wasm.__wbg_externalbreezsignerhandle_free(ptr, 0);
|
|
481
487
|
}
|
|
482
488
|
/**
|
|
483
489
|
* @param {Uint8Array} message
|
|
@@ -489,7 +495,7 @@ class DefaultSigner {
|
|
|
489
495
|
const len0 = WASM_VECTOR_LEN;
|
|
490
496
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
491
497
|
const len1 = WASM_VECTOR_LEN;
|
|
492
|
-
const ret = wasm.
|
|
498
|
+
const ret = wasm.externalbreezsignerhandle_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
493
499
|
return ret;
|
|
494
500
|
}
|
|
495
501
|
/**
|
|
@@ -499,7 +505,7 @@ class DefaultSigner {
|
|
|
499
505
|
derivePublicKey(path) {
|
|
500
506
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
501
507
|
const len0 = WASM_VECTOR_LEN;
|
|
502
|
-
const ret = wasm.
|
|
508
|
+
const ret = wasm.externalbreezsignerhandle_derivePublicKey(this.__wbg_ptr, ptr0, len0);
|
|
503
509
|
return ret;
|
|
504
510
|
}
|
|
505
511
|
/**
|
|
@@ -512,38 +518,7 @@ class DefaultSigner {
|
|
|
512
518
|
const len0 = WASM_VECTOR_LEN;
|
|
513
519
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
514
520
|
const len1 = WASM_VECTOR_LEN;
|
|
515
|
-
const ret = wasm.
|
|
516
|
-
return ret;
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* @param {ExternalEncryptedSecret} private_key
|
|
520
|
-
* @param {PublicKeyBytes} receiver_public_key
|
|
521
|
-
* @returns {Promise<Uint8Array>}
|
|
522
|
-
*/
|
|
523
|
-
encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
|
|
524
|
-
const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
|
|
525
|
-
return ret;
|
|
526
|
-
}
|
|
527
|
-
/**
|
|
528
|
-
* @returns {Promise<ExternalEncryptedSecret>}
|
|
529
|
-
*/
|
|
530
|
-
generateRandomSecret() {
|
|
531
|
-
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
532
|
-
return ret;
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* @returns {Promise<ExternalFrostCommitments>}
|
|
536
|
-
*/
|
|
537
|
-
generateRandomSigningCommitment() {
|
|
538
|
-
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
539
|
-
return ret;
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* @param {ExternalTreeNodeId} id
|
|
543
|
-
* @returns {Promise<PublicKeyBytes>}
|
|
544
|
-
*/
|
|
545
|
-
getPublicKeyForNode(id) {
|
|
546
|
-
const ret = wasm.defaultsigner_getPublicKeyForNode(this.__wbg_ptr, id);
|
|
521
|
+
const ret = wasm.externalbreezsignerhandle_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
547
522
|
return ret;
|
|
548
523
|
}
|
|
549
524
|
/**
|
|
@@ -556,25 +531,7 @@ class DefaultSigner {
|
|
|
556
531
|
const len0 = WASM_VECTOR_LEN;
|
|
557
532
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
558
533
|
const len1 = WASM_VECTOR_LEN;
|
|
559
|
-
const ret = wasm.
|
|
560
|
-
return ret;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* @returns {PublicKeyBytes}
|
|
564
|
-
*/
|
|
565
|
-
identityPublicKey() {
|
|
566
|
-
const ret = wasm.defaultsigner_identityPublicKey(this.__wbg_ptr);
|
|
567
|
-
if (ret[2]) {
|
|
568
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
569
|
-
}
|
|
570
|
-
return takeFromExternrefTable0(ret[0]);
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* @param {ExternalSecretSource} private_key
|
|
574
|
-
* @returns {Promise<PublicKeyBytes>}
|
|
575
|
-
*/
|
|
576
|
-
publicKeyFromSecret(private_key) {
|
|
577
|
-
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
534
|
+
const ret = wasm.externalbreezsignerhandle_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
578
535
|
return ret;
|
|
579
536
|
}
|
|
580
537
|
/**
|
|
@@ -585,7 +542,7 @@ class DefaultSigner {
|
|
|
585
542
|
signEcdsa(message, path) {
|
|
586
543
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
587
544
|
const len0 = WASM_VECTOR_LEN;
|
|
588
|
-
const ret = wasm.
|
|
545
|
+
const ret = wasm.externalbreezsignerhandle_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
|
|
589
546
|
return ret;
|
|
590
547
|
}
|
|
591
548
|
/**
|
|
@@ -596,15 +553,7 @@ class DefaultSigner {
|
|
|
596
553
|
signEcdsaRecoverable(message, path) {
|
|
597
554
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
598
555
|
const len0 = WASM_VECTOR_LEN;
|
|
599
|
-
const ret = wasm.
|
|
600
|
-
return ret;
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* @param {ExternalSignFrostRequest} request
|
|
604
|
-
* @returns {Promise<ExternalFrostSignatureShare>}
|
|
605
|
-
*/
|
|
606
|
-
signFrost(request) {
|
|
607
|
-
const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
|
|
556
|
+
const ret = wasm.externalbreezsignerhandle_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
|
|
608
557
|
return ret;
|
|
609
558
|
}
|
|
610
559
|
/**
|
|
@@ -617,55 +566,208 @@ class DefaultSigner {
|
|
|
617
566
|
const len0 = WASM_VECTOR_LEN;
|
|
618
567
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
619
568
|
const len1 = WASM_VECTOR_LEN;
|
|
620
|
-
const ret = wasm.
|
|
569
|
+
const ret = wasm.externalbreezsignerhandle_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
621
570
|
return ret;
|
|
622
571
|
}
|
|
572
|
+
}
|
|
573
|
+
if (Symbol.dispose) ExternalBreezSignerHandle.prototype[Symbol.dispose] = ExternalBreezSignerHandle.prototype.free;
|
|
574
|
+
exports.ExternalBreezSignerHandle = ExternalBreezSignerHandle;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* The two external signers for the SDK's signer-based connect. Returned by
|
|
578
|
+
* `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey); pass
|
|
579
|
+
* both halves to `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
580
|
+
*/
|
|
581
|
+
class ExternalSigners {
|
|
582
|
+
static __wrap(ptr) {
|
|
583
|
+
const obj = Object.create(ExternalSigners.prototype);
|
|
584
|
+
obj.__wbg_ptr = ptr;
|
|
585
|
+
ExternalSignersFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
586
|
+
return obj;
|
|
587
|
+
}
|
|
588
|
+
__destroy_into_raw() {
|
|
589
|
+
const ptr = this.__wbg_ptr;
|
|
590
|
+
this.__wbg_ptr = 0;
|
|
591
|
+
ExternalSignersFinalization.unregister(this);
|
|
592
|
+
return ptr;
|
|
593
|
+
}
|
|
594
|
+
free() {
|
|
595
|
+
const ptr = this.__destroy_into_raw();
|
|
596
|
+
wasm.__wbg_externalsigners_free(ptr, 0);
|
|
597
|
+
}
|
|
623
598
|
/**
|
|
624
|
-
*
|
|
625
|
-
*
|
|
626
|
-
* @
|
|
627
|
-
* @returns {Promise<ExternalVerifiableSecretShare[]>}
|
|
599
|
+
* External signer for non-Spark SDK signing (LNURL-auth, sync, message
|
|
600
|
+
* signing, ECIES).
|
|
601
|
+
* @returns {ExternalBreezSignerHandle}
|
|
628
602
|
*/
|
|
629
|
-
|
|
630
|
-
const ret = wasm.
|
|
631
|
-
return ret;
|
|
603
|
+
get breezSigner() {
|
|
604
|
+
const ret = wasm.externalsigners_breezSigner(this.__wbg_ptr);
|
|
605
|
+
return ExternalBreezSignerHandle.__wrap(ret);
|
|
632
606
|
}
|
|
633
607
|
/**
|
|
634
|
-
*
|
|
635
|
-
* @returns {
|
|
608
|
+
* External high-level Spark signer for the Spark wallet flows.
|
|
609
|
+
* @returns {ExternalSparkSignerHandle}
|
|
610
|
+
*/
|
|
611
|
+
get sparkSigner() {
|
|
612
|
+
const ret = wasm.externalsigners_sparkSigner(this.__wbg_ptr);
|
|
613
|
+
return ExternalSparkSignerHandle.__wrap(ret);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
if (Symbol.dispose) ExternalSigners.prototype[Symbol.dispose] = ExternalSigners.prototype.free;
|
|
617
|
+
exports.ExternalSigners = ExternalSigners;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
|
|
621
|
+
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
622
|
+
* by `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey).
|
|
623
|
+
*
|
|
624
|
+
* [`ExternalSparkSigner`]: breez_sdk_spark::signer::ExternalSparkSigner
|
|
625
|
+
*/
|
|
626
|
+
class ExternalSparkSignerHandle {
|
|
627
|
+
static __wrap(ptr) {
|
|
628
|
+
const obj = Object.create(ExternalSparkSignerHandle.prototype);
|
|
629
|
+
obj.__wbg_ptr = ptr;
|
|
630
|
+
ExternalSparkSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
631
|
+
return obj;
|
|
632
|
+
}
|
|
633
|
+
__destroy_into_raw() {
|
|
634
|
+
const ptr = this.__wbg_ptr;
|
|
635
|
+
this.__wbg_ptr = 0;
|
|
636
|
+
ExternalSparkSignerHandleFinalization.unregister(this);
|
|
637
|
+
return ptr;
|
|
638
|
+
}
|
|
639
|
+
free() {
|
|
640
|
+
const ptr = this.__destroy_into_raw();
|
|
641
|
+
wasm.__wbg_externalsparksignerhandle_free(ptr, 0);
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
636
645
|
*/
|
|
637
|
-
|
|
638
|
-
const ret = wasm.
|
|
646
|
+
getIdentityPublicKey() {
|
|
647
|
+
const ret = wasm.externalsparksignerhandle_getIdentityPublicKey(this.__wbg_ptr);
|
|
639
648
|
return ret;
|
|
640
649
|
}
|
|
641
650
|
/**
|
|
642
|
-
* @param {
|
|
643
|
-
* @returns {Promise<
|
|
651
|
+
* @param {ExternalTreeNodeId} leaf_id
|
|
652
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
644
653
|
*/
|
|
645
|
-
|
|
646
|
-
const ret = wasm.
|
|
654
|
+
getPublicKeyForLeaf(leaf_id) {
|
|
655
|
+
const ret = wasm.externalsparksignerhandle_getPublicKeyForLeaf(this.__wbg_ptr, leaf_id);
|
|
647
656
|
return ret;
|
|
648
657
|
}
|
|
649
658
|
/**
|
|
650
659
|
* @param {number} index
|
|
651
660
|
* @returns {Promise<PublicKeyBytes>}
|
|
652
661
|
*/
|
|
653
|
-
|
|
654
|
-
const ret = wasm.
|
|
662
|
+
getStaticDepositPublicKey(index) {
|
|
663
|
+
const ret = wasm.externalsparksignerhandle_getStaticDepositPublicKey(this.__wbg_ptr, index);
|
|
664
|
+
return ret;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* @param {ExternalPrepareClaimRequest} request
|
|
668
|
+
* @returns {Promise<ExternalPreparedClaim>}
|
|
669
|
+
*/
|
|
670
|
+
prepareClaim(request) {
|
|
671
|
+
const ret = wasm.externalsparksignerhandle_prepareClaim(this.__wbg_ptr, request);
|
|
655
672
|
return ret;
|
|
656
673
|
}
|
|
657
674
|
/**
|
|
658
|
-
* @param {
|
|
659
|
-
* @
|
|
660
|
-
* @returns {Promise<ExternalSecretSource>}
|
|
675
|
+
* @param {ExternalPrepareLightningReceiveRequest} request
|
|
676
|
+
* @returns {Promise<ExternalPreparedLightningReceive>}
|
|
661
677
|
*/
|
|
662
|
-
|
|
663
|
-
const ret = wasm.
|
|
678
|
+
prepareLightningReceive(request) {
|
|
679
|
+
const ret = wasm.externalsparksignerhandle_prepareLightningReceive(this.__wbg_ptr, request);
|
|
680
|
+
return ret;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* @param {ExternalPrepareStaticDepositRequest} request
|
|
684
|
+
* @returns {Promise<ExternalPreparedStaticDeposit>}
|
|
685
|
+
*/
|
|
686
|
+
prepareStaticDeposit(request) {
|
|
687
|
+
const ret = wasm.externalsparksignerhandle_prepareStaticDeposit(this.__wbg_ptr, request);
|
|
688
|
+
return ret;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* @param {ExternalPrepareStaticDepositClaimRequest} request
|
|
692
|
+
* @returns {Promise<ExternalPreparedStaticDepositClaim>}
|
|
693
|
+
*/
|
|
694
|
+
prepareStaticDepositClaim(request) {
|
|
695
|
+
const ret = wasm.externalsparksignerhandle_prepareStaticDepositClaim(this.__wbg_ptr, request);
|
|
696
|
+
return ret;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* @param {ExternalPrepareTokenTransactionRequest} request
|
|
700
|
+
* @returns {Promise<ExternalPreparedTokenTransaction>}
|
|
701
|
+
*/
|
|
702
|
+
prepareTokenTransaction(request) {
|
|
703
|
+
const ret = wasm.externalsparksignerhandle_prepareTokenTransaction(this.__wbg_ptr, request);
|
|
704
|
+
return ret;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* @param {ExternalPrepareTransferRequest} request
|
|
708
|
+
* @returns {Promise<ExternalPreparedTransfer>}
|
|
709
|
+
*/
|
|
710
|
+
prepareTransfer(request) {
|
|
711
|
+
const ret = wasm.externalsparksignerhandle_prepareTransfer(this.__wbg_ptr, request);
|
|
712
|
+
return ret;
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* @param {Uint8Array} challenge
|
|
716
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
717
|
+
*/
|
|
718
|
+
signAuthenticationChallenge(challenge) {
|
|
719
|
+
const ptr0 = passArray8ToWasm0(challenge, wasm.__wbindgen_malloc);
|
|
720
|
+
const len0 = WASM_VECTOR_LEN;
|
|
721
|
+
const ret = wasm.externalsparksignerhandle_signAuthenticationChallenge(this.__wbg_ptr, ptr0, len0);
|
|
722
|
+
return ret;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* @param {ExternalFrostJob[]} jobs
|
|
726
|
+
* @returns {Promise<ExternalFrostShareResult[]>}
|
|
727
|
+
*/
|
|
728
|
+
signFrost(jobs) {
|
|
729
|
+
const ptr0 = passArrayJsValueToWasm0(jobs, wasm.__wbindgen_malloc);
|
|
730
|
+
const len0 = WASM_VECTOR_LEN;
|
|
731
|
+
const ret = wasm.externalsparksignerhandle_signFrost(this.__wbg_ptr, ptr0, len0);
|
|
732
|
+
return ret;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* @param {Uint8Array} message
|
|
736
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
737
|
+
*/
|
|
738
|
+
signMessage(message) {
|
|
739
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
740
|
+
const len0 = WASM_VECTOR_LEN;
|
|
741
|
+
const ret = wasm.externalsparksignerhandle_signMessage(this.__wbg_ptr, ptr0, len0);
|
|
742
|
+
return ret;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* @param {ExternalSignSparkInvoiceRequest} request
|
|
746
|
+
* @returns {Promise<ExternalSignedSparkInvoice>}
|
|
747
|
+
*/
|
|
748
|
+
signSparkInvoice(request) {
|
|
749
|
+
const ret = wasm.externalsparksignerhandle_signSparkInvoice(this.__wbg_ptr, request);
|
|
750
|
+
return ret;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @param {ExternalSignStaticDepositRefundRequest} request
|
|
754
|
+
* @returns {Promise<ExternalFrostSignature>}
|
|
755
|
+
*/
|
|
756
|
+
signStaticDepositRefund(request) {
|
|
757
|
+
const ret = wasm.externalsparksignerhandle_signStaticDepositRefund(this.__wbg_ptr, request);
|
|
758
|
+
return ret;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* @param {ExternalStartStaticDepositRefundRequest} request
|
|
762
|
+
* @returns {Promise<ExternalStartedStaticDepositRefund>}
|
|
763
|
+
*/
|
|
764
|
+
startStaticDepositRefund(request) {
|
|
765
|
+
const ret = wasm.externalsparksignerhandle_startStaticDepositRefund(this.__wbg_ptr, request);
|
|
664
766
|
return ret;
|
|
665
767
|
}
|
|
666
768
|
}
|
|
667
|
-
if (Symbol.dispose)
|
|
668
|
-
exports.
|
|
769
|
+
if (Symbol.dispose) ExternalSparkSignerHandle.prototype[Symbol.dispose] = ExternalSparkSignerHandle.prototype.free;
|
|
770
|
+
exports.ExternalSparkSignerHandle = ExternalSparkSignerHandle;
|
|
669
771
|
|
|
670
772
|
class IntoUnderlyingByteSource {
|
|
671
773
|
__destroy_into_raw() {
|
|
@@ -782,143 +884,124 @@ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderly
|
|
|
782
884
|
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
783
885
|
|
|
784
886
|
/**
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
887
|
+
* High-level orchestrator that collapses register / sign-in flows
|
|
888
|
+
* into single calls. See the matching Rust types for full semantics;
|
|
889
|
+
* the JS surface is a thin wasm-bindgen wrapper.
|
|
788
890
|
*/
|
|
789
|
-
class
|
|
790
|
-
static __wrap(ptr) {
|
|
791
|
-
const obj = Object.create(MysqlConnectionPool.prototype);
|
|
792
|
-
obj.__wbg_ptr = ptr;
|
|
793
|
-
MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
794
|
-
return obj;
|
|
795
|
-
}
|
|
891
|
+
class PasskeyClient {
|
|
796
892
|
__destroy_into_raw() {
|
|
797
893
|
const ptr = this.__wbg_ptr;
|
|
798
894
|
this.__wbg_ptr = 0;
|
|
799
|
-
|
|
895
|
+
PasskeyClientFinalization.unregister(this);
|
|
800
896
|
return ptr;
|
|
801
897
|
}
|
|
802
898
|
free() {
|
|
803
899
|
const ptr = this.__destroy_into_raw();
|
|
804
|
-
wasm.
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
|
|
808
|
-
exports.MysqlConnectionPool = MysqlConnectionPool;
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
812
|
-
*
|
|
813
|
-
* Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
|
|
814
|
-
* wallet derivation and label management via Nostr relays.
|
|
815
|
-
*/
|
|
816
|
-
class Passkey {
|
|
817
|
-
__destroy_into_raw() {
|
|
818
|
-
const ptr = this.__wbg_ptr;
|
|
819
|
-
this.__wbg_ptr = 0;
|
|
820
|
-
PasskeyFinalization.unregister(this);
|
|
821
|
-
return ptr;
|
|
822
|
-
}
|
|
823
|
-
free() {
|
|
824
|
-
const ptr = this.__destroy_into_raw();
|
|
825
|
-
wasm.__wbg_passkey_free(ptr, 0);
|
|
900
|
+
wasm.__wbg_passkeyclient_free(ptr, 0);
|
|
826
901
|
}
|
|
827
902
|
/**
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
* @param label - Optional label string (defaults to "Default")
|
|
833
|
-
* @param {string | null} [label]
|
|
834
|
-
* @returns {Promise<Wallet>}
|
|
903
|
+
* One-shot capability probe (PRF support + domain association)
|
|
904
|
+
* hosts can gate UX on.
|
|
905
|
+
* @returns {Promise<PasskeyAvailability>}
|
|
835
906
|
*/
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
var len0 = WASM_VECTOR_LEN;
|
|
839
|
-
const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
|
|
907
|
+
checkAvailability() {
|
|
908
|
+
const ret = wasm.passkeyclient_checkAvailability(this.__wbg_ptr);
|
|
840
909
|
return ret;
|
|
841
910
|
}
|
|
842
911
|
/**
|
|
843
|
-
*
|
|
844
|
-
* @returns {
|
|
912
|
+
* Label sub-object. List / publish labels for this passkey's identity.
|
|
913
|
+
* @returns {PasskeyLabels}
|
|
845
914
|
*/
|
|
846
|
-
|
|
847
|
-
const ret = wasm.
|
|
848
|
-
return ret;
|
|
915
|
+
labels() {
|
|
916
|
+
const ret = wasm.passkeyclient_labels(this.__wbg_ptr);
|
|
917
|
+
return PasskeyLabels.__wrap(ret);
|
|
849
918
|
}
|
|
850
919
|
/**
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
920
|
+
* Create a `PasskeyClient` backed by the supplied `PrfProvider` and
|
|
921
|
+
* the default Nostr-backed label store. `breezApiKey` enables
|
|
922
|
+
* authenticated (NIP-42) relay access for label storage; omit for
|
|
923
|
+
* public relays only.
|
|
924
|
+
* @param {PrfProvider} prf_provider
|
|
925
|
+
* @param {string | null} [breez_api_key]
|
|
926
|
+
* @param {PasskeyConfig | null} [config]
|
|
855
927
|
*/
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
928
|
+
constructor(prf_provider, breez_api_key, config) {
|
|
929
|
+
var ptr0 = isLikeNone(breez_api_key) ? 0 : passStringToWasm0(breez_api_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
930
|
+
var len0 = WASM_VECTOR_LEN;
|
|
931
|
+
const ret = wasm.passkeyclient_new(prf_provider, ptr0, len0, isLikeNone(config) ? 0 : addToExternrefTable0(config));
|
|
932
|
+
this.__wbg_ptr = ret;
|
|
933
|
+
PasskeyClientFinalization.register(this, this.__wbg_ptr, this);
|
|
934
|
+
return this;
|
|
859
935
|
}
|
|
860
936
|
/**
|
|
861
|
-
*
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* @param
|
|
865
|
-
* @
|
|
866
|
-
* @param {NostrRelayConfig | null} [relay_config]
|
|
937
|
+
* First-time setup. Drives the platform's create-passkey ceremony
|
|
938
|
+
* then derives the wallet seed in the same PRF assertion ceremony
|
|
939
|
+
* where the platform supports it.
|
|
940
|
+
* @param {RegisterRequest} request
|
|
941
|
+
* @returns {Promise<RegisterResponse>}
|
|
867
942
|
*/
|
|
868
|
-
|
|
869
|
-
const ret = wasm.
|
|
870
|
-
|
|
871
|
-
PasskeyFinalization.register(this, this.__wbg_ptr, this);
|
|
872
|
-
return this;
|
|
943
|
+
register(request) {
|
|
944
|
+
const ret = wasm.passkeyclient_register(this.__wbg_ptr, request);
|
|
945
|
+
return ret;
|
|
873
946
|
}
|
|
874
947
|
/**
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
* @param {
|
|
880
|
-
* @returns {Promise<
|
|
948
|
+
* Returning-user sign-in. With `label` set, uses the fast path
|
|
949
|
+
* (one ceremony, no Nostr round-trip). With `label` omitted,
|
|
950
|
+
* derives the default-label wallet and discovers the user's
|
|
951
|
+
* label set in the same ceremony.
|
|
952
|
+
* @param {SignInRequest} request
|
|
953
|
+
* @returns {Promise<SignInResponse>}
|
|
881
954
|
*/
|
|
882
|
-
|
|
883
|
-
const
|
|
884
|
-
const len0 = WASM_VECTOR_LEN;
|
|
885
|
-
const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
|
|
955
|
+
signIn(request) {
|
|
956
|
+
const ret = wasm.passkeyclient_signIn(this.__wbg_ptr, request);
|
|
886
957
|
return ret;
|
|
887
958
|
}
|
|
888
959
|
}
|
|
889
|
-
if (Symbol.dispose)
|
|
890
|
-
exports.
|
|
960
|
+
if (Symbol.dispose) PasskeyClient.prototype[Symbol.dispose] = PasskeyClient.prototype.free;
|
|
961
|
+
exports.PasskeyClient = PasskeyClient;
|
|
891
962
|
|
|
892
963
|
/**
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
* Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
|
|
896
|
-
* `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
|
|
897
|
-
* Per-tenant scoping is derived from each SDK's seed.
|
|
898
|
-
*
|
|
899
|
-
* The pool's lifecycle is controlled by the integrator: it stays alive as
|
|
900
|
-
* long as any reference is held. `disconnect()` does **not** close the pool.
|
|
964
|
+
* Label sub-object surfaced from `PasskeyClient.labels()`.
|
|
901
965
|
*/
|
|
902
|
-
class
|
|
966
|
+
class PasskeyLabels {
|
|
903
967
|
static __wrap(ptr) {
|
|
904
|
-
const obj = Object.create(
|
|
968
|
+
const obj = Object.create(PasskeyLabels.prototype);
|
|
905
969
|
obj.__wbg_ptr = ptr;
|
|
906
|
-
|
|
970
|
+
PasskeyLabelsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
907
971
|
return obj;
|
|
908
972
|
}
|
|
909
973
|
__destroy_into_raw() {
|
|
910
974
|
const ptr = this.__wbg_ptr;
|
|
911
975
|
this.__wbg_ptr = 0;
|
|
912
|
-
|
|
976
|
+
PasskeyLabelsFinalization.unregister(this);
|
|
913
977
|
return ptr;
|
|
914
978
|
}
|
|
915
979
|
free() {
|
|
916
980
|
const ptr = this.__destroy_into_raw();
|
|
917
|
-
wasm.
|
|
981
|
+
wasm.__wbg_passkeylabels_free(ptr, 0);
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* List labels published for this passkey's identity.
|
|
985
|
+
* @returns {Promise<string[]>}
|
|
986
|
+
*/
|
|
987
|
+
list() {
|
|
988
|
+
const ret = wasm.passkeylabels_list(this.__wbg_ptr);
|
|
989
|
+
return ret;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Idempotently publish `label` for this passkey's identity.
|
|
993
|
+
* @param {string} label
|
|
994
|
+
* @returns {Promise<void>}
|
|
995
|
+
*/
|
|
996
|
+
store(label) {
|
|
997
|
+
const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
998
|
+
const len0 = WASM_VECTOR_LEN;
|
|
999
|
+
const ret = wasm.passkeylabels_store(this.__wbg_ptr, ptr0, len0);
|
|
1000
|
+
return ret;
|
|
918
1001
|
}
|
|
919
1002
|
}
|
|
920
|
-
if (Symbol.dispose)
|
|
921
|
-
exports.
|
|
1003
|
+
if (Symbol.dispose) PasskeyLabels.prototype[Symbol.dispose] = PasskeyLabels.prototype.free;
|
|
1004
|
+
exports.PasskeyLabels = PasskeyLabels;
|
|
922
1005
|
|
|
923
1006
|
class SdkBuilder {
|
|
924
1007
|
static __wrap(ptr) {
|
|
@@ -956,11 +1039,21 @@ class SdkBuilder {
|
|
|
956
1039
|
}
|
|
957
1040
|
/**
|
|
958
1041
|
* @param {Config} config
|
|
959
|
-
* @param {
|
|
1042
|
+
* @param {ExternalBreezSigner} breez_signer
|
|
1043
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1044
|
+
* @returns {SdkBuilder}
|
|
1045
|
+
*/
|
|
1046
|
+
static newWithSigner(config, breez_signer, spark_signer) {
|
|
1047
|
+
const ret = wasm.sdkbuilder_newWithSigner(config, breez_signer, spark_signer);
|
|
1048
|
+
return SdkBuilder.__wrap(ret);
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* @param {number} account_number
|
|
960
1052
|
* @returns {SdkBuilder}
|
|
961
1053
|
*/
|
|
962
|
-
|
|
963
|
-
const
|
|
1054
|
+
withAccountNumber(account_number) {
|
|
1055
|
+
const ptr = this.__destroy_into_raw();
|
|
1056
|
+
const ret = wasm.sdkbuilder_withAccountNumber(ptr, account_number);
|
|
964
1057
|
return SdkBuilder.__wrap(ret);
|
|
965
1058
|
}
|
|
966
1059
|
/**
|
|
@@ -992,15 +1085,6 @@ class SdkBuilder {
|
|
|
992
1085
|
const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
|
|
993
1086
|
return SdkBuilder.__wrap(ret);
|
|
994
1087
|
}
|
|
995
|
-
/**
|
|
996
|
-
* @param {KeySetConfig} config
|
|
997
|
-
* @returns {SdkBuilder}
|
|
998
|
-
*/
|
|
999
|
-
withKeySet(config) {
|
|
1000
|
-
const ptr = this.__destroy_into_raw();
|
|
1001
|
-
const ret = wasm.sdkbuilder_withKeySet(ptr, config);
|
|
1002
|
-
return SdkBuilder.__wrap(ret);
|
|
1003
|
-
}
|
|
1004
1088
|
/**
|
|
1005
1089
|
* @param {RestClient} lnurl_client
|
|
1006
1090
|
* @returns {SdkBuilder}
|
|
@@ -1011,8 +1095,7 @@ class SdkBuilder {
|
|
|
1011
1095
|
return SdkBuilder.__wrap(ret);
|
|
1012
1096
|
}
|
|
1013
1097
|
/**
|
|
1014
|
-
* **Deprecated.**
|
|
1015
|
-
* `withMysqlConnectionPool(pool)` instead.
|
|
1098
|
+
* **Deprecated.** Use `withStorageBackend(mysqlStorage(config))`.
|
|
1016
1099
|
* @param {MysqlStorageConfig} config
|
|
1017
1100
|
* @returns {SdkBuilder}
|
|
1018
1101
|
*/
|
|
@@ -1024,20 +1107,6 @@ class SdkBuilder {
|
|
|
1024
1107
|
}
|
|
1025
1108
|
return SdkBuilder.__wrap(ret[0]);
|
|
1026
1109
|
}
|
|
1027
|
-
/**
|
|
1028
|
-
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1029
|
-
*
|
|
1030
|
-
* If the same builder also receives a `WasmSdkContext` carrying a MySQL
|
|
1031
|
-
* pool, `build()` returns an error — pick one source.
|
|
1032
|
-
* @param {MysqlConnectionPool} pool
|
|
1033
|
-
* @returns {SdkBuilder}
|
|
1034
|
-
*/
|
|
1035
|
-
withMysqlConnectionPool(pool) {
|
|
1036
|
-
const ptr = this.__destroy_into_raw();
|
|
1037
|
-
_assertClass(pool, MysqlConnectionPool);
|
|
1038
|
-
const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
|
|
1039
|
-
return SdkBuilder.__wrap(ret);
|
|
1040
|
-
}
|
|
1041
1110
|
/**
|
|
1042
1111
|
* @param {PaymentObserver} payment_observer
|
|
1043
1112
|
* @returns {SdkBuilder}
|
|
@@ -1048,8 +1117,7 @@ class SdkBuilder {
|
|
|
1048
1117
|
return SdkBuilder.__wrap(ret);
|
|
1049
1118
|
}
|
|
1050
1119
|
/**
|
|
1051
|
-
* **Deprecated.**
|
|
1052
|
-
* `withPostgresConnectionPool(pool)` instead.
|
|
1120
|
+
* **Deprecated.** Use `withStorageBackend(postgresStorage(config))`.
|
|
1053
1121
|
* @param {PostgresStorageConfig} config
|
|
1054
1122
|
* @returns {SdkBuilder}
|
|
1055
1123
|
*/
|
|
@@ -1061,20 +1129,6 @@ class SdkBuilder {
|
|
|
1061
1129
|
}
|
|
1062
1130
|
return SdkBuilder.__wrap(ret[0]);
|
|
1063
1131
|
}
|
|
1064
|
-
/**
|
|
1065
|
-
* Sets a shared Postgres connection pool as the backend for all stores.
|
|
1066
|
-
*
|
|
1067
|
-
* If the same builder also receives a `WasmSdkContext` carrying a
|
|
1068
|
-
* Postgres pool, `build()` returns an error — pick one source.
|
|
1069
|
-
* @param {PostgresConnectionPool} pool
|
|
1070
|
-
* @returns {SdkBuilder}
|
|
1071
|
-
*/
|
|
1072
|
-
withPostgresConnectionPool(pool) {
|
|
1073
|
-
const ptr = this.__destroy_into_raw();
|
|
1074
|
-
_assertClass(pool, PostgresConnectionPool);
|
|
1075
|
-
const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
|
|
1076
|
-
return SdkBuilder.__wrap(ret);
|
|
1077
|
-
}
|
|
1078
1132
|
/**
|
|
1079
1133
|
* @param {string} url
|
|
1080
1134
|
* @param {ChainApiType} api_type
|
|
@@ -1112,6 +1166,21 @@ class SdkBuilder {
|
|
|
1112
1166
|
const ret = wasm.sdkbuilder_withStorage(ptr, storage);
|
|
1113
1167
|
return SdkBuilder.__wrap(ret);
|
|
1114
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Sets one of the SDK's built-in storage backends.
|
|
1171
|
+
*
|
|
1172
|
+
* Construct the [`WasmStorageConfig`] via `defaultStorage`,
|
|
1173
|
+
* `postgresStorage` or `mysqlStorage`.
|
|
1174
|
+
* @param {WasmStorageConfig} config
|
|
1175
|
+
* @returns {SdkBuilder}
|
|
1176
|
+
*/
|
|
1177
|
+
withStorageBackend(config) {
|
|
1178
|
+
const ptr = this.__destroy_into_raw();
|
|
1179
|
+
_assertClass(config, WasmStorageConfig);
|
|
1180
|
+
var ptr0 = config.__destroy_into_raw();
|
|
1181
|
+
const ret = wasm.sdkbuilder_withStorageBackend(ptr, ptr0);
|
|
1182
|
+
return SdkBuilder.__wrap(ret);
|
|
1183
|
+
}
|
|
1115
1184
|
}
|
|
1116
1185
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
1117
1186
|
exports.SdkBuilder = SdkBuilder;
|
|
@@ -1219,6 +1288,33 @@ class WasmSdkContext {
|
|
|
1219
1288
|
if (Symbol.dispose) WasmSdkContext.prototype[Symbol.dispose] = WasmSdkContext.prototype.free;
|
|
1220
1289
|
exports.WasmSdkContext = WasmSdkContext;
|
|
1221
1290
|
|
|
1291
|
+
/**
|
|
1292
|
+
* Selects one of the SDK's built-in storage backends.
|
|
1293
|
+
*
|
|
1294
|
+
* Construct it via `defaultStorage`, `postgresStorage` or `mysqlStorage` and
|
|
1295
|
+
* pass it to `SdkBuilder.withStorageBackend`.
|
|
1296
|
+
*/
|
|
1297
|
+
class WasmStorageConfig {
|
|
1298
|
+
static __wrap(ptr) {
|
|
1299
|
+
const obj = Object.create(WasmStorageConfig.prototype);
|
|
1300
|
+
obj.__wbg_ptr = ptr;
|
|
1301
|
+
WasmStorageConfigFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1302
|
+
return obj;
|
|
1303
|
+
}
|
|
1304
|
+
__destroy_into_raw() {
|
|
1305
|
+
const ptr = this.__wbg_ptr;
|
|
1306
|
+
this.__wbg_ptr = 0;
|
|
1307
|
+
WasmStorageConfigFinalization.unregister(this);
|
|
1308
|
+
return ptr;
|
|
1309
|
+
}
|
|
1310
|
+
free() {
|
|
1311
|
+
const ptr = this.__destroy_into_raw();
|
|
1312
|
+
wasm.__wbg_wasmstorageconfig_free(ptr, 0);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
if (Symbol.dispose) WasmStorageConfig.prototype[Symbol.dispose] = WasmStorageConfig.prototype.free;
|
|
1316
|
+
exports.WasmStorageConfig = WasmStorageConfig;
|
|
1317
|
+
|
|
1222
1318
|
/**
|
|
1223
1319
|
* @param {ConnectRequest} request
|
|
1224
1320
|
* @returns {Promise<BreezSdk>}
|
|
@@ -1231,45 +1327,31 @@ exports.connect = connect;
|
|
|
1231
1327
|
|
|
1232
1328
|
/**
|
|
1233
1329
|
* @param {Config} config
|
|
1234
|
-
* @param {
|
|
1330
|
+
* @param {ExternalBreezSigner} breez_signer
|
|
1331
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1235
1332
|
* @param {string} storage_dir
|
|
1236
1333
|
* @returns {Promise<BreezSdk>}
|
|
1237
1334
|
*/
|
|
1238
|
-
function connectWithSigner(config,
|
|
1335
|
+
function connectWithSigner(config, breez_signer, spark_signer, storage_dir) {
|
|
1239
1336
|
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1240
1337
|
const len0 = WASM_VECTOR_LEN;
|
|
1241
|
-
const ret = wasm.connectWithSigner(config,
|
|
1338
|
+
const ret = wasm.connectWithSigner(config, breez_signer, spark_signer, ptr0, len0);
|
|
1242
1339
|
return ret;
|
|
1243
1340
|
}
|
|
1244
1341
|
exports.connectWithSigner = connectWithSigner;
|
|
1245
1342
|
|
|
1246
1343
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
*
|
|
1249
|
-
*
|
|
1344
|
+
* Builds the Turnkey-backed signers from `config`, then pass
|
|
1345
|
+
* `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
|
|
1346
|
+
* exactly as with any other external signer.
|
|
1347
|
+
* @param {TurnkeyConfig} config
|
|
1348
|
+
* @returns {Promise<ExternalSigners>}
|
|
1250
1349
|
*/
|
|
1251
|
-
function
|
|
1252
|
-
const ret = wasm.
|
|
1253
|
-
|
|
1254
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1255
|
-
}
|
|
1256
|
-
return MysqlConnectionPool.__wrap(ret[0]);
|
|
1257
|
-
}
|
|
1258
|
-
exports.createMysqlConnectionPool = createMysqlConnectionPool;
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* Creates a shareable Postgres connection pool from the given config.
|
|
1262
|
-
* @param {PostgresStorageConfig} config
|
|
1263
|
-
* @returns {PostgresConnectionPool}
|
|
1264
|
-
*/
|
|
1265
|
-
function createPostgresConnectionPool(config) {
|
|
1266
|
-
const ret = wasm.createPostgresConnectionPool(config);
|
|
1267
|
-
if (ret[2]) {
|
|
1268
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1269
|
-
}
|
|
1270
|
-
return PostgresConnectionPool.__wrap(ret[0]);
|
|
1350
|
+
function createTurnkeySigner(config) {
|
|
1351
|
+
const ret = wasm.createTurnkeySigner(config);
|
|
1352
|
+
return ret;
|
|
1271
1353
|
}
|
|
1272
|
-
exports.
|
|
1354
|
+
exports.createTurnkeySigner = createTurnkeySigner;
|
|
1273
1355
|
|
|
1274
1356
|
/**
|
|
1275
1357
|
* @param {Network} network
|
|
@@ -1282,24 +1364,28 @@ function defaultConfig(network) {
|
|
|
1282
1364
|
exports.defaultConfig = defaultConfig;
|
|
1283
1365
|
|
|
1284
1366
|
/**
|
|
1367
|
+
* Creates the default external signers from a mnemonic phrase.
|
|
1368
|
+
*
|
|
1369
|
+
* Key derivation matches the seed-based connect path: an SDK built either
|
|
1370
|
+
* way from the same mnemonic is the same wallet.
|
|
1285
1371
|
* @param {string} mnemonic
|
|
1286
1372
|
* @param {string | null | undefined} passphrase
|
|
1287
1373
|
* @param {Network} network
|
|
1288
|
-
* @param {
|
|
1289
|
-
* @returns {
|
|
1374
|
+
* @param {number | null} [account_number]
|
|
1375
|
+
* @returns {ExternalSigners}
|
|
1290
1376
|
*/
|
|
1291
|
-
function
|
|
1377
|
+
function defaultExternalSigners(mnemonic, passphrase, network, account_number) {
|
|
1292
1378
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1293
1379
|
const len0 = WASM_VECTOR_LEN;
|
|
1294
1380
|
var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1295
1381
|
var len1 = WASM_VECTOR_LEN;
|
|
1296
|
-
const ret = wasm.
|
|
1382
|
+
const ret = wasm.defaultExternalSigners(ptr0, len0, ptr1, len1, network, isLikeNone(account_number) ? Number.MAX_SAFE_INTEGER : (account_number) >>> 0);
|
|
1297
1383
|
if (ret[2]) {
|
|
1298
1384
|
throw takeFromExternrefTable0(ret[1]);
|
|
1299
1385
|
}
|
|
1300
|
-
return
|
|
1386
|
+
return ExternalSigners.__wrap(ret[0]);
|
|
1301
1387
|
}
|
|
1302
|
-
exports.
|
|
1388
|
+
exports.defaultExternalSigners = defaultExternalSigners;
|
|
1303
1389
|
|
|
1304
1390
|
/**
|
|
1305
1391
|
* Creates a default MySQL storage configuration with sensible defaults.
|
|
@@ -1349,9 +1435,20 @@ function defaultServerConfig(network) {
|
|
|
1349
1435
|
exports.defaultServerConfig = defaultServerConfig;
|
|
1350
1436
|
|
|
1351
1437
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1438
|
+
* File-based storage rooted at `storageDir` — IndexedDB in the browser,
|
|
1439
|
+
* SQLite under Node.js.
|
|
1440
|
+
* @param {string} storage_dir
|
|
1441
|
+
* @returns {WasmStorageConfig}
|
|
1442
|
+
*/
|
|
1443
|
+
function defaultStorage(storage_dir) {
|
|
1444
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1445
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1446
|
+
const ret = wasm.defaultStorage(ptr0, len0);
|
|
1447
|
+
return WasmStorageConfig.__wrap(ret);
|
|
1448
|
+
}
|
|
1449
|
+
exports.defaultStorage = defaultStorage;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1355
1452
|
* @returns {Promise<SparkStatus>}
|
|
1356
1453
|
*/
|
|
1357
1454
|
function getSparkStatus() {
|
|
@@ -1373,6 +1470,17 @@ function initLogging(logger, filter) {
|
|
|
1373
1470
|
}
|
|
1374
1471
|
exports.initLogging = initLogging;
|
|
1375
1472
|
|
|
1473
|
+
/**
|
|
1474
|
+
* `MySQL`-backed storage built from `config`.
|
|
1475
|
+
* @param {MysqlStorageConfig} config
|
|
1476
|
+
* @returns {WasmStorageConfig}
|
|
1477
|
+
*/
|
|
1478
|
+
function mysqlStorage(config) {
|
|
1479
|
+
const ret = wasm.mysqlStorage(config);
|
|
1480
|
+
return WasmStorageConfig.__wrap(ret);
|
|
1481
|
+
}
|
|
1482
|
+
exports.mysqlStorage = mysqlStorage;
|
|
1483
|
+
|
|
1376
1484
|
/**
|
|
1377
1485
|
* Constructs a shareable REST-based Bitcoin chain service.
|
|
1378
1486
|
*
|
|
@@ -1406,6 +1514,28 @@ function newSharedSdkContext(config) {
|
|
|
1406
1514
|
}
|
|
1407
1515
|
exports.newSharedSdkContext = newSharedSdkContext;
|
|
1408
1516
|
|
|
1517
|
+
/**
|
|
1518
|
+
* `PostgreSQL`-backed storage built from `config`.
|
|
1519
|
+
* @param {PostgresStorageConfig} config
|
|
1520
|
+
* @returns {WasmStorageConfig}
|
|
1521
|
+
*/
|
|
1522
|
+
function postgresStorage(config) {
|
|
1523
|
+
const ret = wasm.postgresStorage(config);
|
|
1524
|
+
return WasmStorageConfig.__wrap(ret);
|
|
1525
|
+
}
|
|
1526
|
+
exports.postgresStorage = postgresStorage;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Runs automatically when the wasm module is instantiated. Installs the
|
|
1530
|
+
* panic hook so Rust panics surface as readable `console.error` output
|
|
1531
|
+
* (with the panic message + `file.rs:line`) instead of a bare
|
|
1532
|
+
* `RuntimeError: unreachable`.
|
|
1533
|
+
*/
|
|
1534
|
+
function start() {
|
|
1535
|
+
wasm.start();
|
|
1536
|
+
}
|
|
1537
|
+
exports.start = start;
|
|
1538
|
+
|
|
1409
1539
|
/**
|
|
1410
1540
|
* Entry point invoked by JavaScript in a worker.
|
|
1411
1541
|
* @param {number} ptr
|
|
@@ -1548,13 +1678,19 @@ function __wbg_get_imports() {
|
|
|
1548
1678
|
const ret = arg0.addLeaves(arg1);
|
|
1549
1679
|
return ret;
|
|
1550
1680
|
}, arguments); },
|
|
1551
|
-
|
|
1552
|
-
|
|
1681
|
+
__wbg_afterSend_465a6d26048f7342: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1682
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1683
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1684
|
+
const ret = arg0.afterSend(v0);
|
|
1553
1685
|
return ret;
|
|
1554
1686
|
}, arguments); },
|
|
1555
1687
|
__wbg_append_8df396311184f750: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1556
1688
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1557
1689
|
}, arguments); },
|
|
1690
|
+
__wbg_applyPaymentUpdate_8526d773e5ac8314: function() { return handleError(function (arg0, arg1) {
|
|
1691
|
+
const ret = arg0.applyPaymentUpdate(arg1);
|
|
1692
|
+
return ret;
|
|
1693
|
+
}, arguments); },
|
|
1558
1694
|
__wbg_arrayBuffer_87e3ac06d961f7a0: function() { return handleError(function (arg0) {
|
|
1559
1695
|
const ret = arg0.arrayBuffer();
|
|
1560
1696
|
return ret;
|
|
@@ -1645,6 +1781,9 @@ function __wbg_get_imports() {
|
|
|
1645
1781
|
const ret = arg0.catch(arg1);
|
|
1646
1782
|
return ret;
|
|
1647
1783
|
},
|
|
1784
|
+
__wbg_clearInterval_d25b0cf526eff7ae: function(arg0) {
|
|
1785
|
+
globalThis.clearInterval(arg0);
|
|
1786
|
+
},
|
|
1648
1787
|
__wbg_clearTimeout_113b1cde814ec762: function(arg0) {
|
|
1649
1788
|
const ret = clearTimeout(arg0);
|
|
1650
1789
|
return ret;
|
|
@@ -1662,6 +1801,9 @@ function __wbg_get_imports() {
|
|
|
1662
1801
|
__wbg_close_de471367367aa5cb: function() { return handleError(function (arg0) {
|
|
1663
1802
|
arg0.close();
|
|
1664
1803
|
}, arguments); },
|
|
1804
|
+
__wbg_close_f1af935d7d7cec78: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1805
|
+
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
1806
|
+
}, arguments); },
|
|
1665
1807
|
__wbg_code_be6f339819ebb2c4: function(arg0) {
|
|
1666
1808
|
const ret = arg0.code;
|
|
1667
1809
|
return ret;
|
|
@@ -1678,8 +1820,8 @@ function __wbg_get_imports() {
|
|
|
1678
1820
|
const ret = createMysqlPool(arg0);
|
|
1679
1821
|
return ret;
|
|
1680
1822
|
}, arguments); },
|
|
1681
|
-
|
|
1682
|
-
const ret =
|
|
1823
|
+
__wbg_createMysqlSessionStoreWithPool_52192c9b2932ff7c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1824
|
+
const ret = createMysqlSessionStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1683
1825
|
return ret;
|
|
1684
1826
|
}, arguments); },
|
|
1685
1827
|
__wbg_createMysqlStorageWithPool_22d23b0d068eae47: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
@@ -1694,12 +1836,16 @@ function __wbg_get_imports() {
|
|
|
1694
1836
|
const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0);
|
|
1695
1837
|
return ret;
|
|
1696
1838
|
}, arguments); },
|
|
1839
|
+
__wbg_createPasskey_5ceae054474c582a: function() { return handleError(function (arg0, arg1) {
|
|
1840
|
+
const ret = arg0.createPasskey(arg1);
|
|
1841
|
+
return ret;
|
|
1842
|
+
}, arguments); },
|
|
1697
1843
|
__wbg_createPostgresPool_3c396c7ab2f0eab2: function() { return handleError(function (arg0) {
|
|
1698
1844
|
const ret = createPostgresPool(arg0);
|
|
1699
1845
|
return ret;
|
|
1700
1846
|
}, arguments); },
|
|
1701
|
-
|
|
1702
|
-
const ret =
|
|
1847
|
+
__wbg_createPostgresSessionStoreWithPool_dd76c7c3517d7bd0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1848
|
+
const ret = createPostgresSessionStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1703
1849
|
return ret;
|
|
1704
1850
|
}, arguments); },
|
|
1705
1851
|
__wbg_createPostgresStorageWithPool_9408116e32ab58f8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
@@ -1722,6 +1868,20 @@ function __wbg_get_imports() {
|
|
|
1722
1868
|
const ret = arg0.data;
|
|
1723
1869
|
return ret;
|
|
1724
1870
|
},
|
|
1871
|
+
__wbg_decryptEcies_ebe426814020926b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1872
|
+
let deferred1_0;
|
|
1873
|
+
let deferred1_1;
|
|
1874
|
+
try {
|
|
1875
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1876
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1877
|
+
deferred1_0 = arg3;
|
|
1878
|
+
deferred1_1 = arg4;
|
|
1879
|
+
const ret = arg0.decryptEcies(v0, getStringFromWasm0(arg3, arg4));
|
|
1880
|
+
return ret;
|
|
1881
|
+
} finally {
|
|
1882
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1883
|
+
}
|
|
1884
|
+
}, arguments); },
|
|
1725
1885
|
__wbg_deleteCachedItem_b8fbe3ebea21ed7e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1726
1886
|
let deferred0_0;
|
|
1727
1887
|
let deferred0_1;
|
|
@@ -1775,19 +1935,7 @@ function __wbg_get_imports() {
|
|
|
1775
1935
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1776
1936
|
}
|
|
1777
1937
|
}, arguments); },
|
|
1778
|
-
|
|
1779
|
-
let deferred0_0;
|
|
1780
|
-
let deferred0_1;
|
|
1781
|
-
try {
|
|
1782
|
-
deferred0_0 = arg1;
|
|
1783
|
-
deferred0_1 = arg2;
|
|
1784
|
-
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1785
|
-
return ret;
|
|
1786
|
-
} finally {
|
|
1787
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1788
|
-
}
|
|
1789
|
-
}, arguments); },
|
|
1790
|
-
__wbg_derivePublicKey_bab57284cd981e9a: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1938
|
+
__wbg_derivePublicKey_1bc53f60dc792488: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1791
1939
|
let deferred0_0;
|
|
1792
1940
|
let deferred0_1;
|
|
1793
1941
|
try {
|
|
@@ -1799,25 +1947,15 @@ function __wbg_get_imports() {
|
|
|
1799
1947
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1800
1948
|
}
|
|
1801
1949
|
}, arguments); },
|
|
1950
|
+
__wbg_deriveSeeds_5c331613e2894c56: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1951
|
+
const ret = arg0.deriveSeeds(arg1, arg2);
|
|
1952
|
+
return ret;
|
|
1953
|
+
}, arguments); },
|
|
1802
1954
|
__wbg_done_b1afd6201ac045e0: function(arg0) {
|
|
1803
1955
|
const ret = arg0.done;
|
|
1804
1956
|
return ret;
|
|
1805
1957
|
},
|
|
1806
|
-
|
|
1807
|
-
let deferred1_0;
|
|
1808
|
-
let deferred1_1;
|
|
1809
|
-
try {
|
|
1810
|
-
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1811
|
-
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1812
|
-
deferred1_0 = arg3;
|
|
1813
|
-
deferred1_1 = arg4;
|
|
1814
|
-
const ret = arg0.eciesDecrypt(v0, getStringFromWasm0(arg3, arg4));
|
|
1815
|
-
return ret;
|
|
1816
|
-
} finally {
|
|
1817
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1818
|
-
}
|
|
1819
|
-
}, arguments); },
|
|
1820
|
-
__wbg_eciesEncrypt_95486f45d5d74f6a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1958
|
+
__wbg_encryptEcies_6a990da1c19d1f7c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1821
1959
|
let deferred1_0;
|
|
1822
1960
|
let deferred1_1;
|
|
1823
1961
|
try {
|
|
@@ -1825,16 +1963,12 @@ function __wbg_get_imports() {
|
|
|
1825
1963
|
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1826
1964
|
deferred1_0 = arg3;
|
|
1827
1965
|
deferred1_1 = arg4;
|
|
1828
|
-
const ret = arg0.
|
|
1966
|
+
const ret = arg0.encryptEcies(v0, getStringFromWasm0(arg3, arg4));
|
|
1829
1967
|
return ret;
|
|
1830
1968
|
} finally {
|
|
1831
1969
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1832
1970
|
}
|
|
1833
1971
|
}, arguments); },
|
|
1834
|
-
__wbg_encryptPrivateKeyForReceiver_a5414ece502e2eec: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1835
|
-
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1836
|
-
return ret;
|
|
1837
|
-
}, arguments); },
|
|
1838
1972
|
__wbg_enqueue_6c7cd543c0f3828e: function() { return handleError(function (arg0, arg1) {
|
|
1839
1973
|
arg0.enqueue(arg1);
|
|
1840
1974
|
}, arguments); },
|
|
@@ -1845,6 +1979,21 @@ function __wbg_get_imports() {
|
|
|
1845
1979
|
__wbg_error_145dadf4216d70bc: function(arg0, arg1) {
|
|
1846
1980
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1847
1981
|
},
|
|
1982
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
1983
|
+
let deferred0_0;
|
|
1984
|
+
let deferred0_1;
|
|
1985
|
+
try {
|
|
1986
|
+
deferred0_0 = arg0;
|
|
1987
|
+
deferred0_1 = arg1;
|
|
1988
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1989
|
+
} finally {
|
|
1990
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
__wbg_externalsigners_new: function(arg0) {
|
|
1994
|
+
const ret = ExternalSigners.__wrap(arg0);
|
|
1995
|
+
return ret;
|
|
1996
|
+
},
|
|
1848
1997
|
__wbg_fetchFiatCurrencies_8afa0468f01bf013: function() { return handleError(function (arg0) {
|
|
1849
1998
|
const ret = arg0.fetchFiatCurrencies();
|
|
1850
1999
|
return ret;
|
|
@@ -1893,14 +2042,10 @@ function __wbg_get_imports() {
|
|
|
1893
2042
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1894
2043
|
}
|
|
1895
2044
|
}, arguments); },
|
|
1896
|
-
|
|
1897
|
-
const ret =
|
|
1898
|
-
return ret;
|
|
1899
|
-
}, arguments); },
|
|
1900
|
-
__wbg_generateRandomSecret_432432761a2594b7: function() { return handleError(function (arg0) {
|
|
1901
|
-
const ret = arg0.generateRandomSecret();
|
|
2045
|
+
__wbg_from_ff141b1e4c69b979: function(arg0) {
|
|
2046
|
+
const ret = Array.from(arg0);
|
|
1902
2047
|
return ret;
|
|
1903
|
-
},
|
|
2048
|
+
},
|
|
1904
2049
|
__wbg_getAddressUtxos_9526b6d8078b867e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1905
2050
|
let deferred0_0;
|
|
1906
2051
|
let deferred0_1;
|
|
@@ -1941,6 +2086,27 @@ function __wbg_get_imports() {
|
|
|
1941
2086
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1942
2087
|
}
|
|
1943
2088
|
}, arguments); },
|
|
2089
|
+
__wbg_getCrossChainSwap_e3b8fcf14d3d17ce: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2090
|
+
let deferred0_0;
|
|
2091
|
+
let deferred0_1;
|
|
2092
|
+
let deferred1_0;
|
|
2093
|
+
let deferred1_1;
|
|
2094
|
+
try {
|
|
2095
|
+
deferred0_0 = arg1;
|
|
2096
|
+
deferred0_1 = arg2;
|
|
2097
|
+
deferred1_0 = arg3;
|
|
2098
|
+
deferred1_1 = arg4;
|
|
2099
|
+
const ret = arg0.getCrossChainSwap(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2100
|
+
return ret;
|
|
2101
|
+
} finally {
|
|
2102
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2103
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2104
|
+
}
|
|
2105
|
+
}, arguments); },
|
|
2106
|
+
__wbg_getIdentityPublicKey_c6fcd87d66ed6927: function() { return handleError(function (arg0) {
|
|
2107
|
+
const ret = arg0.getIdentityPublicKey();
|
|
2108
|
+
return ret;
|
|
2109
|
+
}, arguments); },
|
|
1944
2110
|
__wbg_getLeaves_5259dc2b9de80ff0: function() { return handleError(function (arg0) {
|
|
1945
2111
|
const ret = arg0.getLeaves();
|
|
1946
2112
|
return ret;
|
|
@@ -1975,12 +2141,8 @@ function __wbg_get_imports() {
|
|
|
1975
2141
|
const ret = arg0.getPaymentsByParentIds(v0);
|
|
1976
2142
|
return ret;
|
|
1977
2143
|
}, arguments); },
|
|
1978
|
-
|
|
1979
|
-
const ret = arg0.
|
|
1980
|
-
return ret;
|
|
1981
|
-
}, arguments); },
|
|
1982
|
-
__wbg_getPublicKeyFromSecretSource_cecb0b3d2ce521bd: function() { return handleError(function (arg0, arg1) {
|
|
1983
|
-
const ret = arg0.getPublicKeyFromSecretSource(arg1);
|
|
2144
|
+
__wbg_getPublicKeyForLeaf_9826724c9b0c3963: function() { return handleError(function (arg0, arg1) {
|
|
2145
|
+
const ret = arg0.getPublicKeyForLeaf(arg1);
|
|
1984
2146
|
return ret;
|
|
1985
2147
|
}, arguments); },
|
|
1986
2148
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2005,7 +2167,7 @@ function __wbg_get_imports() {
|
|
|
2005
2167
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2006
2168
|
}
|
|
2007
2169
|
}, arguments); },
|
|
2008
|
-
|
|
2170
|
+
__wbg_getSession_95998cc236a30653: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2009
2171
|
let deferred0_0;
|
|
2010
2172
|
let deferred0_1;
|
|
2011
2173
|
try {
|
|
@@ -2017,18 +2179,10 @@ function __wbg_get_imports() {
|
|
|
2017
2179
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2018
2180
|
}
|
|
2019
2181
|
}, arguments); },
|
|
2020
|
-
|
|
2021
|
-
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
2022
|
-
return ret;
|
|
2023
|
-
}, arguments); },
|
|
2024
|
-
__wbg_getStaticDepositPublicKey_8424ddc7bb238008: function() { return handleError(function (arg0, arg1) {
|
|
2182
|
+
__wbg_getStaticDepositPublicKey_9c7c893612c4c53f: function() { return handleError(function (arg0, arg1) {
|
|
2025
2183
|
const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
|
|
2026
2184
|
return ret;
|
|
2027
2185
|
}, arguments); },
|
|
2028
|
-
__wbg_getStaticDepositSecretSource_86007c41c79d2bea: function() { return handleError(function (arg0, arg1) {
|
|
2029
|
-
const ret = arg0.getStaticDepositSecretSource(arg1 >>> 0);
|
|
2030
|
-
return ret;
|
|
2031
|
-
}, arguments); },
|
|
2032
2186
|
__wbg_getTokenBalances_b788cda26e92f342: function() { return handleError(function (arg0) {
|
|
2033
2187
|
const ret = arg0.getTokenBalances();
|
|
2034
2188
|
return ret;
|
|
@@ -2061,6 +2215,10 @@ function __wbg_get_imports() {
|
|
|
2061
2215
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2062
2216
|
}
|
|
2063
2217
|
}, arguments); },
|
|
2218
|
+
__wbg_get_41476db20fef99a8: function() { return handleError(function (arg0, arg1) {
|
|
2219
|
+
const ret = Reflect.get(arg0, arg1);
|
|
2220
|
+
return ret;
|
|
2221
|
+
}, arguments); },
|
|
2064
2222
|
__wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
|
|
2065
2223
|
const ret = arg0[arg1 >>> 0];
|
|
2066
2224
|
return ret;
|
|
@@ -2093,7 +2251,7 @@ function __wbg_get_imports() {
|
|
|
2093
2251
|
const ret = arg0.headers;
|
|
2094
2252
|
return ret;
|
|
2095
2253
|
},
|
|
2096
|
-
|
|
2254
|
+
__wbg_hmacSha256_04164bea6bd3c7d4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2097
2255
|
let deferred1_0;
|
|
2098
2256
|
let deferred1_1;
|
|
2099
2257
|
try {
|
|
@@ -2107,10 +2265,6 @@ function __wbg_get_imports() {
|
|
|
2107
2265
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2108
2266
|
}
|
|
2109
2267
|
}, arguments); },
|
|
2110
|
-
__wbg_identityPublicKey_157f9d906d49e5c4: function() { return handleError(function (arg0) {
|
|
2111
|
-
const ret = arg0.identityPublicKey();
|
|
2112
|
-
return ret;
|
|
2113
|
-
}, arguments); },
|
|
2114
2268
|
__wbg_insertContact_cc39397cb8e88ff8: function() { return handleError(function (arg0, arg1) {
|
|
2115
2269
|
const ret = arg0.insertContact(arg1);
|
|
2116
2270
|
return ret;
|
|
@@ -2127,10 +2281,6 @@ function __wbg_get_imports() {
|
|
|
2127
2281
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2128
2282
|
}
|
|
2129
2283
|
}, arguments); },
|
|
2130
|
-
__wbg_insertPayment_830c37c6efef1f8a: function() { return handleError(function (arg0, arg1) {
|
|
2131
|
-
const ret = arg0.insertPayment(arg1);
|
|
2132
|
-
return ret;
|
|
2133
|
-
}, arguments); },
|
|
2134
2284
|
__wbg_instanceof_ArrayBuffer_eab9f28fbec23477: function(arg0) {
|
|
2135
2285
|
let result;
|
|
2136
2286
|
try {
|
|
@@ -2215,14 +2365,14 @@ function __wbg_get_imports() {
|
|
|
2215
2365
|
const ret = Array.isArray(arg0);
|
|
2216
2366
|
return ret;
|
|
2217
2367
|
},
|
|
2218
|
-
__wbg_isPrfAvailable_f77f283e48e966e1: function() { return handleError(function (arg0) {
|
|
2219
|
-
const ret = arg0.isPrfAvailable();
|
|
2220
|
-
return ret;
|
|
2221
|
-
}, arguments); },
|
|
2222
2368
|
__wbg_isSafeInteger_3c56c421a5b4cce4: function(arg0) {
|
|
2223
2369
|
const ret = Number.isSafeInteger(arg0);
|
|
2224
2370
|
return ret;
|
|
2225
2371
|
},
|
|
2372
|
+
__wbg_isSupported_0fab0220495a1089: function() { return handleError(function (arg0) {
|
|
2373
|
+
const ret = arg0.isSupported();
|
|
2374
|
+
return ret;
|
|
2375
|
+
}, arguments); },
|
|
2226
2376
|
__wbg_iterator_9d68985a1d096fc2: function() {
|
|
2227
2377
|
const ret = Symbol.iterator;
|
|
2228
2378
|
return ret;
|
|
@@ -2235,6 +2385,18 @@ function __wbg_get_imports() {
|
|
|
2235
2385
|
const ret = arg0.length;
|
|
2236
2386
|
return ret;
|
|
2237
2387
|
},
|
|
2388
|
+
__wbg_listActiveCrossChainSwaps_7339427675c1ddec: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2389
|
+
let deferred0_0;
|
|
2390
|
+
let deferred0_1;
|
|
2391
|
+
try {
|
|
2392
|
+
deferred0_0 = arg1;
|
|
2393
|
+
deferred0_1 = arg2;
|
|
2394
|
+
const ret = arg0.listActiveCrossChainSwaps(getStringFromWasm0(arg1, arg2));
|
|
2395
|
+
return ret;
|
|
2396
|
+
} finally {
|
|
2397
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2398
|
+
}
|
|
2399
|
+
}, arguments); },
|
|
2238
2400
|
__wbg_listContacts_0afeb7e9554fdb74: function() { return handleError(function (arg0, arg1) {
|
|
2239
2401
|
const ret = arg0.listContacts(arg1);
|
|
2240
2402
|
return ret;
|
|
@@ -2284,6 +2446,10 @@ function __wbg_get_imports() {
|
|
|
2284
2446
|
const ret = new Headers();
|
|
2285
2447
|
return ret;
|
|
2286
2448
|
}, arguments); },
|
|
2449
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
2450
|
+
const ret = new Error();
|
|
2451
|
+
return ret;
|
|
2452
|
+
},
|
|
2287
2453
|
__wbg_new_2fad8ca02fd00684: function() {
|
|
2288
2454
|
const ret = new Object();
|
|
2289
2455
|
return ret;
|
|
@@ -2423,6 +2589,30 @@ function __wbg_get_imports() {
|
|
|
2423
2589
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2424
2590
|
}
|
|
2425
2591
|
}, arguments); },
|
|
2592
|
+
__wbg_prepareClaim_1286899715876e7d: function() { return handleError(function (arg0, arg1) {
|
|
2593
|
+
const ret = arg0.prepareClaim(arg1);
|
|
2594
|
+
return ret;
|
|
2595
|
+
}, arguments); },
|
|
2596
|
+
__wbg_prepareLightningReceive_fe5b5a46a5d5d976: function() { return handleError(function (arg0, arg1) {
|
|
2597
|
+
const ret = arg0.prepareLightningReceive(arg1);
|
|
2598
|
+
return ret;
|
|
2599
|
+
}, arguments); },
|
|
2600
|
+
__wbg_prepareStaticDepositClaim_2aac4f9634448525: function() { return handleError(function (arg0, arg1) {
|
|
2601
|
+
const ret = arg0.prepareStaticDepositClaim(arg1);
|
|
2602
|
+
return ret;
|
|
2603
|
+
}, arguments); },
|
|
2604
|
+
__wbg_prepareStaticDeposit_66175a4078320749: function() { return handleError(function (arg0, arg1) {
|
|
2605
|
+
const ret = arg0.prepareStaticDeposit(arg1);
|
|
2606
|
+
return ret;
|
|
2607
|
+
}, arguments); },
|
|
2608
|
+
__wbg_prepareTokenTransaction_d2e097f1363077c0: function() { return handleError(function (arg0, arg1) {
|
|
2609
|
+
const ret = arg0.prepareTokenTransaction(arg1);
|
|
2610
|
+
return ret;
|
|
2611
|
+
}, arguments); },
|
|
2612
|
+
__wbg_prepareTransfer_f1fd01fccd18c85b: function() { return handleError(function (arg0, arg1) {
|
|
2613
|
+
const ret = arg0.prepareTransfer(arg1);
|
|
2614
|
+
return ret;
|
|
2615
|
+
}, arguments); },
|
|
2426
2616
|
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
2427
2617
|
const ret = arg0.process;
|
|
2428
2618
|
return ret;
|
|
@@ -2430,6 +2620,10 @@ function __wbg_get_imports() {
|
|
|
2430
2620
|
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
2431
2621
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2432
2622
|
},
|
|
2623
|
+
__wbg_push_60a5366c0bb22a7d: function(arg0, arg1) {
|
|
2624
|
+
const ret = arg0.push(arg1);
|
|
2625
|
+
return ret;
|
|
2626
|
+
},
|
|
2433
2627
|
__wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) {
|
|
2434
2628
|
queueMicrotask(arg0);
|
|
2435
2629
|
},
|
|
@@ -2517,6 +2711,14 @@ function __wbg_get_imports() {
|
|
|
2517
2711
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2518
2712
|
}
|
|
2519
2713
|
}, arguments); },
|
|
2714
|
+
__wbg_setCrossChainSwap_9047f4cc41fe2eca: function() { return handleError(function (arg0, arg1) {
|
|
2715
|
+
const ret = arg0.setCrossChainSwap(arg1);
|
|
2716
|
+
return ret;
|
|
2717
|
+
}, arguments); },
|
|
2718
|
+
__wbg_setInterval_2aba203c2a1ea83f: function(arg0, arg1) {
|
|
2719
|
+
const ret = globalThis.setInterval(arg0, arg1);
|
|
2720
|
+
return ret;
|
|
2721
|
+
},
|
|
2520
2722
|
__wbg_setLeaves_3a013e3266762f4b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2521
2723
|
const ret = arg0.setLeaves(arg1, arg2, arg3);
|
|
2522
2724
|
return ret;
|
|
@@ -2527,7 +2729,7 @@ function __wbg_get_imports() {
|
|
|
2527
2729
|
const ret = arg0.setLnurlMetadata(v0);
|
|
2528
2730
|
return ret;
|
|
2529
2731
|
}, arguments); },
|
|
2530
|
-
|
|
2732
|
+
__wbg_setSession_86d7fef1f452677c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2531
2733
|
let deferred0_0;
|
|
2532
2734
|
let deferred0_1;
|
|
2533
2735
|
try {
|
|
@@ -2619,7 +2821,13 @@ function __wbg_get_imports() {
|
|
|
2619
2821
|
__wbg_set_signal_8c5cf4c3b27bd8a8: function(arg0, arg1) {
|
|
2620
2822
|
arg0.signal = arg1;
|
|
2621
2823
|
},
|
|
2622
|
-
|
|
2824
|
+
__wbg_signAuthenticationChallenge_e2ea9cf87c76a6de: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2825
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
2826
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
2827
|
+
const ret = arg0.signAuthenticationChallenge(v0);
|
|
2828
|
+
return ret;
|
|
2829
|
+
}, arguments); },
|
|
2830
|
+
__wbg_signEcdsaRecoverable_978c5526e66a433b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2623
2831
|
let deferred0_0;
|
|
2624
2832
|
let deferred0_1;
|
|
2625
2833
|
try {
|
|
@@ -2631,7 +2839,7 @@ function __wbg_get_imports() {
|
|
|
2631
2839
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2632
2840
|
}
|
|
2633
2841
|
}, arguments); },
|
|
2634
|
-
|
|
2842
|
+
__wbg_signEcdsa_1947a1a2c8f39a16: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2635
2843
|
let deferred0_0;
|
|
2636
2844
|
let deferred0_1;
|
|
2637
2845
|
try {
|
|
@@ -2643,11 +2851,11 @@ function __wbg_get_imports() {
|
|
|
2643
2851
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2644
2852
|
}
|
|
2645
2853
|
}, arguments); },
|
|
2646
|
-
|
|
2854
|
+
__wbg_signFrost_08951e01d00d4b1c: function() { return handleError(function (arg0, arg1) {
|
|
2647
2855
|
const ret = arg0.signFrost(arg1);
|
|
2648
2856
|
return ret;
|
|
2649
2857
|
}, arguments); },
|
|
2650
|
-
|
|
2858
|
+
__wbg_signHashSchnorr_fc8afda9a7ee021a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2651
2859
|
let deferred1_0;
|
|
2652
2860
|
let deferred1_1;
|
|
2653
2861
|
try {
|
|
@@ -2661,12 +2869,33 @@ function __wbg_get_imports() {
|
|
|
2661
2869
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2662
2870
|
}
|
|
2663
2871
|
}, arguments); },
|
|
2872
|
+
__wbg_signMessage_80ec0b0dfc7f00ee: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2873
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
2874
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
2875
|
+
const ret = arg0.signMessage(v0);
|
|
2876
|
+
return ret;
|
|
2877
|
+
}, arguments); },
|
|
2878
|
+
__wbg_signSparkInvoice_cca6c7f35b5e85d2: function() { return handleError(function (arg0, arg1) {
|
|
2879
|
+
const ret = arg0.signSparkInvoice(arg1);
|
|
2880
|
+
return ret;
|
|
2881
|
+
}, arguments); },
|
|
2882
|
+
__wbg_signStaticDepositRefund_3a6fb4e71a15bebd: function() { return handleError(function (arg0, arg1) {
|
|
2883
|
+
const ret = arg0.signStaticDepositRefund(arg1);
|
|
2884
|
+
return ret;
|
|
2885
|
+
}, arguments); },
|
|
2664
2886
|
__wbg_signal_4643ce883b92b553: function(arg0) {
|
|
2665
2887
|
const ret = arg0.signal;
|
|
2666
2888
|
return ret;
|
|
2667
2889
|
},
|
|
2668
|
-
|
|
2669
|
-
const ret =
|
|
2890
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
2891
|
+
const ret = arg1.stack;
|
|
2892
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2893
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2894
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2895
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2896
|
+
},
|
|
2897
|
+
__wbg_startStaticDepositRefund_5b591bbea22aa0d2: function() { return handleError(function (arg0, arg1) {
|
|
2898
|
+
const ret = arg0.startStaticDepositRefund(arg1);
|
|
2670
2899
|
return ret;
|
|
2671
2900
|
}, arguments); },
|
|
2672
2901
|
__wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
|
|
@@ -2697,10 +2926,6 @@ function __wbg_get_imports() {
|
|
|
2697
2926
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2698
2927
|
return ret;
|
|
2699
2928
|
},
|
|
2700
|
-
__wbg_subtractPrivateKeys_c66265ac85e781b7: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2701
|
-
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2702
|
-
return ret;
|
|
2703
|
-
}, arguments); },
|
|
2704
2929
|
__wbg_syncAddOutgoingChange_69db2a1430cbd55a: function() { return handleError(function (arg0, arg1) {
|
|
2705
2930
|
const ret = arg0.syncAddOutgoingChange(arg1);
|
|
2706
2931
|
return ret;
|
|
@@ -2837,109 +3062,131 @@ function __wbg_get_imports() {
|
|
|
2837
3062
|
return ret;
|
|
2838
3063
|
},
|
|
2839
3064
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2840
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2841
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3065
|
+
// 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, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522);
|
|
2842
3067
|
return ret;
|
|
2843
3068
|
},
|
|
2844
3069
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2845
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2846
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3070
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3071
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
|
|
2847
3072
|
return ret;
|
|
2848
3073
|
},
|
|
2849
3074
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2850
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2851
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3075
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3076
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
|
|
2852
3077
|
return ret;
|
|
2853
3078
|
},
|
|
2854
3079
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2855
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2856
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3080
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3081
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
|
|
2857
3082
|
return ret;
|
|
2858
3083
|
},
|
|
2859
3084
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2860
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2861
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3085
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3086
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
|
|
2862
3087
|
return ret;
|
|
2863
3088
|
},
|
|
2864
3089
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2865
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2866
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3090
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3091
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
2867
3092
|
return ret;
|
|
2868
3093
|
},
|
|
2869
3094
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
2870
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2871
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3095
|
+
// 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, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6);
|
|
2872
3097
|
return ret;
|
|
2873
3098
|
},
|
|
2874
3099
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
2875
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2876
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3100
|
+
// 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, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7);
|
|
2877
3102
|
return ret;
|
|
2878
3103
|
},
|
|
2879
3104
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
2880
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2881
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3105
|
+
// 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, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8);
|
|
3107
|
+
return ret;
|
|
3108
|
+
},
|
|
3109
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
3110
|
+
// 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, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9);
|
|
3112
|
+
return ret;
|
|
3113
|
+
},
|
|
3114
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
3115
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3116
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
2882
3117
|
return ret;
|
|
2883
3118
|
},
|
|
2884
|
-
|
|
3119
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
3120
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3121
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3122
|
+
return ret;
|
|
3123
|
+
},
|
|
3124
|
+
__wbindgen_cast_000000000000000d: function(arg0) {
|
|
2885
3125
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2886
3126
|
const ret = arg0;
|
|
2887
3127
|
return ret;
|
|
2888
3128
|
},
|
|
2889
|
-
|
|
3129
|
+
__wbindgen_cast_000000000000000e: function(arg0) {
|
|
2890
3130
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2891
3131
|
const ret = arg0;
|
|
2892
3132
|
return ret;
|
|
2893
3133
|
},
|
|
2894
|
-
|
|
3134
|
+
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
2895
3135
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2896
3136
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2897
3137
|
return ret;
|
|
2898
3138
|
},
|
|
2899
|
-
|
|
3139
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
2900
3140
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2901
3141
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2902
3142
|
return ret;
|
|
2903
3143
|
},
|
|
2904
|
-
|
|
3144
|
+
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
2905
3145
|
// Cast intrinsic for `U128 -> Externref`.
|
|
2906
3146
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
2907
3147
|
return ret;
|
|
2908
3148
|
},
|
|
2909
|
-
|
|
3149
|
+
__wbindgen_cast_0000000000000012: function(arg0) {
|
|
2910
3150
|
// Cast intrinsic for `U64 -> Externref`.
|
|
2911
3151
|
const ret = BigInt.asUintN(64, arg0);
|
|
2912
3152
|
return ret;
|
|
2913
3153
|
},
|
|
2914
|
-
|
|
3154
|
+
__wbindgen_cast_0000000000000013: function(arg0, arg1) {
|
|
2915
3155
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2916
3156
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2917
3157
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
2918
3158
|
const ret = v0;
|
|
2919
3159
|
return ret;
|
|
2920
3160
|
},
|
|
2921
|
-
|
|
3161
|
+
__wbindgen_cast_0000000000000014: function(arg0, arg1) {
|
|
3162
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3163
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3164
|
+
// Cast intrinsic for `Vector(NamedExternref("CrossChainRoutePair")) -> Externref`.
|
|
3165
|
+
const ret = v0;
|
|
3166
|
+
return ret;
|
|
3167
|
+
},
|
|
3168
|
+
__wbindgen_cast_0000000000000015: function(arg0, arg1) {
|
|
2922
3169
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2923
3170
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2924
|
-
// Cast intrinsic for `Vector(NamedExternref("
|
|
3171
|
+
// Cast intrinsic for `Vector(NamedExternref("ExternalFrostShareResult")) -> Externref`.
|
|
2925
3172
|
const ret = v0;
|
|
2926
3173
|
return ret;
|
|
2927
3174
|
},
|
|
2928
|
-
|
|
3175
|
+
__wbindgen_cast_0000000000000016: function(arg0, arg1) {
|
|
2929
3176
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2930
3177
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2931
3178
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
2932
3179
|
const ret = v0;
|
|
2933
3180
|
return ret;
|
|
2934
3181
|
},
|
|
2935
|
-
|
|
3182
|
+
__wbindgen_cast_0000000000000017: function(arg0, arg1) {
|
|
2936
3183
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2937
3184
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2938
3185
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
2939
3186
|
const ret = v0;
|
|
2940
3187
|
return ret;
|
|
2941
3188
|
},
|
|
2942
|
-
|
|
3189
|
+
__wbindgen_cast_0000000000000018: function(arg0, arg1) {
|
|
2943
3190
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2944
3191
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2945
3192
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -2962,52 +3209,64 @@ function __wbg_get_imports() {
|
|
|
2962
3209
|
};
|
|
2963
3210
|
}
|
|
2964
3211
|
|
|
2965
|
-
function
|
|
2966
|
-
wasm.
|
|
3212
|
+
function wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1) {
|
|
3213
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1);
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
function wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1) {
|
|
3217
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1);
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2) {
|
|
3221
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2);
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2) {
|
|
3225
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2);
|
|
2967
3226
|
}
|
|
2968
3227
|
|
|
2969
|
-
function
|
|
2970
|
-
wasm.
|
|
3228
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2) {
|
|
3229
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2);
|
|
2971
3230
|
}
|
|
2972
3231
|
|
|
2973
|
-
function
|
|
2974
|
-
wasm.
|
|
3232
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2) {
|
|
3233
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2);
|
|
2975
3234
|
}
|
|
2976
3235
|
|
|
2977
|
-
function
|
|
2978
|
-
wasm.
|
|
3236
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2) {
|
|
3237
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
|
|
2979
3238
|
}
|
|
2980
3239
|
|
|
2981
|
-
function
|
|
2982
|
-
const ret = wasm.
|
|
3240
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2) {
|
|
3241
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2);
|
|
2983
3242
|
if (ret[1]) {
|
|
2984
3243
|
throw takeFromExternrefTable0(ret[0]);
|
|
2985
3244
|
}
|
|
2986
3245
|
}
|
|
2987
3246
|
|
|
2988
|
-
function
|
|
2989
|
-
const ret = wasm.
|
|
3247
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2) {
|
|
3248
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2);
|
|
2990
3249
|
if (ret[1]) {
|
|
2991
3250
|
throw takeFromExternrefTable0(ret[0]);
|
|
2992
3251
|
}
|
|
2993
3252
|
}
|
|
2994
3253
|
|
|
2995
|
-
function
|
|
2996
|
-
const ret = wasm.
|
|
3254
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2) {
|
|
3255
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2);
|
|
2997
3256
|
if (ret[1]) {
|
|
2998
3257
|
throw takeFromExternrefTable0(ret[0]);
|
|
2999
3258
|
}
|
|
3000
3259
|
}
|
|
3001
3260
|
|
|
3002
|
-
function
|
|
3003
|
-
const ret = wasm.
|
|
3261
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2) {
|
|
3262
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2);
|
|
3004
3263
|
if (ret[1]) {
|
|
3005
3264
|
throw takeFromExternrefTable0(ret[0]);
|
|
3006
3265
|
}
|
|
3007
3266
|
}
|
|
3008
3267
|
|
|
3009
|
-
function
|
|
3010
|
-
const ret = wasm.
|
|
3268
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2) {
|
|
3269
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2);
|
|
3011
3270
|
if (ret[1]) {
|
|
3012
3271
|
throw takeFromExternrefTable0(ret[0]);
|
|
3013
3272
|
}
|
|
@@ -3043,9 +3302,15 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
|
|
|
3043
3302
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3044
3303
|
? { register: () => {}, unregister: () => {} }
|
|
3045
3304
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
3046
|
-
const
|
|
3305
|
+
const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3047
3306
|
? { register: () => {}, unregister: () => {} }
|
|
3048
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
3307
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalbreezsignerhandle_free(ptr, 1));
|
|
3308
|
+
const ExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3309
|
+
? { register: () => {}, unregister: () => {} }
|
|
3310
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalsigners_free(ptr, 1));
|
|
3311
|
+
const ExternalSparkSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3312
|
+
? { register: () => {}, unregister: () => {} }
|
|
3313
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalsparksignerhandle_free(ptr, 1));
|
|
3049
3314
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3050
3315
|
? { register: () => {}, unregister: () => {} }
|
|
3051
3316
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
@@ -3055,15 +3320,12 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
3055
3320
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3056
3321
|
? { register: () => {}, unregister: () => {} }
|
|
3057
3322
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
3058
|
-
const
|
|
3323
|
+
const PasskeyClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3059
3324
|
? { register: () => {}, unregister: () => {} }
|
|
3060
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
3061
|
-
const
|
|
3325
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkeyclient_free(ptr, 1));
|
|
3326
|
+
const PasskeyLabelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3062
3327
|
? { register: () => {}, unregister: () => {} }
|
|
3063
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
3064
|
-
const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3065
|
-
? { register: () => {}, unregister: () => {} }
|
|
3066
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
|
|
3328
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkeylabels_free(ptr, 1));
|
|
3067
3329
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3068
3330
|
? { register: () => {}, unregister: () => {} }
|
|
3069
3331
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
@@ -3073,6 +3335,9 @@ const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3073
3335
|
const WasmSdkContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3074
3336
|
? { register: () => {}, unregister: () => {} }
|
|
3075
3337
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsdkcontext_free(ptr, 1));
|
|
3338
|
+
const WasmStorageConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3339
|
+
? { register: () => {}, unregister: () => {} }
|
|
3340
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstorageconfig_free(ptr, 1));
|
|
3076
3341
|
|
|
3077
3342
|
function addToExternrefTable0(obj) {
|
|
3078
3343
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -3204,6 +3469,31 @@ function isLikeNone(x) {
|
|
|
3204
3469
|
return x === undefined || x === null;
|
|
3205
3470
|
}
|
|
3206
3471
|
|
|
3472
|
+
function makeClosure(arg0, arg1, f) {
|
|
3473
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3474
|
+
const real = (...args) => {
|
|
3475
|
+
|
|
3476
|
+
// First up with a closure we increment the internal reference
|
|
3477
|
+
// count. This ensures that the Rust closure environment won't
|
|
3478
|
+
// be deallocated while we're invoking it.
|
|
3479
|
+
state.cnt++;
|
|
3480
|
+
try {
|
|
3481
|
+
return f(state.a, state.b, ...args);
|
|
3482
|
+
} finally {
|
|
3483
|
+
real._wbg_cb_unref();
|
|
3484
|
+
}
|
|
3485
|
+
};
|
|
3486
|
+
real._wbg_cb_unref = () => {
|
|
3487
|
+
if (--state.cnt === 0) {
|
|
3488
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3489
|
+
state.a = 0;
|
|
3490
|
+
CLOSURE_DTORS.unregister(state);
|
|
3491
|
+
}
|
|
3492
|
+
};
|
|
3493
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
3494
|
+
return real;
|
|
3495
|
+
}
|
|
3496
|
+
|
|
3207
3497
|
function makeMutClosure(arg0, arg1, f) {
|
|
3208
3498
|
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3209
3499
|
const real = (...args) => {
|
|
@@ -3239,6 +3529,16 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
3239
3529
|
return ptr;
|
|
3240
3530
|
}
|
|
3241
3531
|
|
|
3532
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
3533
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
3534
|
+
for (let i = 0; i < array.length; i++) {
|
|
3535
|
+
const add = addToExternrefTable0(array[i]);
|
|
3536
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
3537
|
+
}
|
|
3538
|
+
WASM_VECTOR_LEN = array.length;
|
|
3539
|
+
return ptr;
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3242
3542
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
3243
3543
|
if (realloc === undefined) {
|
|
3244
3544
|
const buf = cachedTextEncoder.encode(arg);
|