@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
|
@@ -107,18 +107,19 @@ export class BreezSdk {
|
|
|
107
107
|
return ret;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* @param {
|
|
111
|
-
* @returns {Promise<
|
|
110
|
+
* @param {AuthorizeTransferRequest} request
|
|
111
|
+
* @returns {Promise<TransferAuthorization>}
|
|
112
112
|
*/
|
|
113
|
-
|
|
114
|
-
const ret = wasm.
|
|
113
|
+
authorizeLightningAddressTransfer(request) {
|
|
114
|
+
const ret = wasm.breezsdk_authorizeLightningAddressTransfer(this.__wbg_ptr, request);
|
|
115
115
|
return ret;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* @
|
|
118
|
+
* @param {BuyBitcoinRequest} request
|
|
119
|
+
* @returns {Promise<BuyBitcoinResponse>}
|
|
119
120
|
*/
|
|
120
|
-
|
|
121
|
-
const ret = wasm.
|
|
121
|
+
buyBitcoin(request) {
|
|
122
|
+
const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
|
|
122
123
|
return ret;
|
|
123
124
|
}
|
|
124
125
|
/**
|
|
@@ -153,6 +154,14 @@ export class BreezSdk {
|
|
|
153
154
|
const ret = wasm.breezsdk_claimHtlcPayment(this.__wbg_ptr, request);
|
|
154
155
|
return ret;
|
|
155
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* @param {ClaimTransferRequest} request
|
|
159
|
+
* @returns {Promise<LightningAddressInfo>}
|
|
160
|
+
*/
|
|
161
|
+
claimLightningAddressTransfer(request) {
|
|
162
|
+
const ret = wasm.breezsdk_claimLightningAddressTransfer(this.__wbg_ptr, request);
|
|
163
|
+
return ret;
|
|
164
|
+
}
|
|
156
165
|
/**
|
|
157
166
|
* @param {string} id
|
|
158
167
|
* @returns {Promise<void>}
|
|
@@ -186,18 +195,19 @@ export class BreezSdk {
|
|
|
186
195
|
return ret;
|
|
187
196
|
}
|
|
188
197
|
/**
|
|
189
|
-
* @param {
|
|
190
|
-
* @returns {Promise<
|
|
198
|
+
* @param {CrossChainRouteFilter} filter
|
|
199
|
+
* @returns {Promise<CrossChainRoutePair[]>}
|
|
191
200
|
*/
|
|
192
|
-
|
|
193
|
-
const ret = wasm.
|
|
201
|
+
getCrossChainRoutes(filter) {
|
|
202
|
+
const ret = wasm.breezsdk_getCrossChainRoutes(this.__wbg_ptr, filter);
|
|
194
203
|
return ret;
|
|
195
204
|
}
|
|
196
205
|
/**
|
|
197
|
-
* @
|
|
206
|
+
* @param {GetInfoRequest} request
|
|
207
|
+
* @returns {Promise<GetInfoResponse>}
|
|
198
208
|
*/
|
|
199
|
-
|
|
200
|
-
const ret = wasm.
|
|
209
|
+
getInfo(request) {
|
|
210
|
+
const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
|
|
201
211
|
return ret;
|
|
202
212
|
}
|
|
203
213
|
/**
|
|
@@ -306,6 +316,14 @@ export class BreezSdk {
|
|
|
306
316
|
const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
|
|
307
317
|
return ret;
|
|
308
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {OptimizeLeavesRequest} request
|
|
321
|
+
* @returns {Promise<OptimizeLeavesResponse>}
|
|
322
|
+
*/
|
|
323
|
+
optimizeLeaves(request) {
|
|
324
|
+
const ret = wasm.breezsdk_optimizeLeaves(this.__wbg_ptr, request);
|
|
325
|
+
return ret;
|
|
326
|
+
}
|
|
309
327
|
/**
|
|
310
328
|
* @param {string} input
|
|
311
329
|
* @returns {Promise<InputType>}
|
|
@@ -404,13 +422,6 @@ export class BreezSdk {
|
|
|
404
422
|
const ret = wasm.breezsdk_signMessage(this.__wbg_ptr, request);
|
|
405
423
|
return ret;
|
|
406
424
|
}
|
|
407
|
-
/**
|
|
408
|
-
* @returns {Promise<void>}
|
|
409
|
-
*/
|
|
410
|
-
startLeafOptimization() {
|
|
411
|
-
const ret = wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
|
|
412
|
-
return ret;
|
|
413
|
-
}
|
|
414
425
|
/**
|
|
415
426
|
* @param {SyncWalletRequest} request
|
|
416
427
|
* @returns {Promise<SyncWalletResponse>}
|
|
@@ -447,33 +458,28 @@ export class BreezSdk {
|
|
|
447
458
|
if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
|
|
448
459
|
|
|
449
460
|
/**
|
|
450
|
-
* A
|
|
451
|
-
*
|
|
461
|
+
* A Rust-backed [`ExternalBreezSigner`] surfaced to JS as a signer object that
|
|
462
|
+
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
463
|
+
* by `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey).
|
|
464
|
+
*
|
|
465
|
+
* [`ExternalBreezSigner`]: breez_sdk_spark::signer::ExternalBreezSigner
|
|
452
466
|
*/
|
|
453
|
-
export class
|
|
467
|
+
export class ExternalBreezSignerHandle {
|
|
454
468
|
static __wrap(ptr) {
|
|
455
|
-
const obj = Object.create(
|
|
469
|
+
const obj = Object.create(ExternalBreezSignerHandle.prototype);
|
|
456
470
|
obj.__wbg_ptr = ptr;
|
|
457
|
-
|
|
471
|
+
ExternalBreezSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
458
472
|
return obj;
|
|
459
473
|
}
|
|
460
474
|
__destroy_into_raw() {
|
|
461
475
|
const ptr = this.__wbg_ptr;
|
|
462
476
|
this.__wbg_ptr = 0;
|
|
463
|
-
|
|
477
|
+
ExternalBreezSignerHandleFinalization.unregister(this);
|
|
464
478
|
return ptr;
|
|
465
479
|
}
|
|
466
480
|
free() {
|
|
467
481
|
const ptr = this.__destroy_into_raw();
|
|
468
|
-
wasm.
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* @param {ExternalAggregateFrostRequest} request
|
|
472
|
-
* @returns {Promise<ExternalFrostSignature>}
|
|
473
|
-
*/
|
|
474
|
-
aggregateFrost(request) {
|
|
475
|
-
const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
|
|
476
|
-
return ret;
|
|
482
|
+
wasm.__wbg_externalbreezsignerhandle_free(ptr, 0);
|
|
477
483
|
}
|
|
478
484
|
/**
|
|
479
485
|
* @param {Uint8Array} message
|
|
@@ -485,7 +491,7 @@ export class DefaultSigner {
|
|
|
485
491
|
const len0 = WASM_VECTOR_LEN;
|
|
486
492
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
493
|
const len1 = WASM_VECTOR_LEN;
|
|
488
|
-
const ret = wasm.
|
|
494
|
+
const ret = wasm.externalbreezsignerhandle_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
489
495
|
return ret;
|
|
490
496
|
}
|
|
491
497
|
/**
|
|
@@ -495,7 +501,7 @@ export class DefaultSigner {
|
|
|
495
501
|
derivePublicKey(path) {
|
|
496
502
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
497
503
|
const len0 = WASM_VECTOR_LEN;
|
|
498
|
-
const ret = wasm.
|
|
504
|
+
const ret = wasm.externalbreezsignerhandle_derivePublicKey(this.__wbg_ptr, ptr0, len0);
|
|
499
505
|
return ret;
|
|
500
506
|
}
|
|
501
507
|
/**
|
|
@@ -508,38 +514,7 @@ export class DefaultSigner {
|
|
|
508
514
|
const len0 = WASM_VECTOR_LEN;
|
|
509
515
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
510
516
|
const len1 = WASM_VECTOR_LEN;
|
|
511
|
-
const ret = wasm.
|
|
512
|
-
return ret;
|
|
513
|
-
}
|
|
514
|
-
/**
|
|
515
|
-
* @param {ExternalEncryptedSecret} private_key
|
|
516
|
-
* @param {PublicKeyBytes} receiver_public_key
|
|
517
|
-
* @returns {Promise<Uint8Array>}
|
|
518
|
-
*/
|
|
519
|
-
encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
|
|
520
|
-
const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
|
|
521
|
-
return ret;
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* @returns {Promise<ExternalEncryptedSecret>}
|
|
525
|
-
*/
|
|
526
|
-
generateRandomSecret() {
|
|
527
|
-
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
528
|
-
return ret;
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
* @returns {Promise<ExternalFrostCommitments>}
|
|
532
|
-
*/
|
|
533
|
-
generateRandomSigningCommitment() {
|
|
534
|
-
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
535
|
-
return ret;
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
* @param {ExternalTreeNodeId} id
|
|
539
|
-
* @returns {Promise<PublicKeyBytes>}
|
|
540
|
-
*/
|
|
541
|
-
getPublicKeyForNode(id) {
|
|
542
|
-
const ret = wasm.defaultsigner_getPublicKeyForNode(this.__wbg_ptr, id);
|
|
517
|
+
const ret = wasm.externalbreezsignerhandle_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
543
518
|
return ret;
|
|
544
519
|
}
|
|
545
520
|
/**
|
|
@@ -552,25 +527,7 @@ export class DefaultSigner {
|
|
|
552
527
|
const len0 = WASM_VECTOR_LEN;
|
|
553
528
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
554
529
|
const len1 = WASM_VECTOR_LEN;
|
|
555
|
-
const ret = wasm.
|
|
556
|
-
return ret;
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* @returns {PublicKeyBytes}
|
|
560
|
-
*/
|
|
561
|
-
identityPublicKey() {
|
|
562
|
-
const ret = wasm.defaultsigner_identityPublicKey(this.__wbg_ptr);
|
|
563
|
-
if (ret[2]) {
|
|
564
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
565
|
-
}
|
|
566
|
-
return takeFromExternrefTable0(ret[0]);
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* @param {ExternalSecretSource} private_key
|
|
570
|
-
* @returns {Promise<PublicKeyBytes>}
|
|
571
|
-
*/
|
|
572
|
-
publicKeyFromSecret(private_key) {
|
|
573
|
-
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
530
|
+
const ret = wasm.externalbreezsignerhandle_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
574
531
|
return ret;
|
|
575
532
|
}
|
|
576
533
|
/**
|
|
@@ -581,7 +538,7 @@ export class DefaultSigner {
|
|
|
581
538
|
signEcdsa(message, path) {
|
|
582
539
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
583
540
|
const len0 = WASM_VECTOR_LEN;
|
|
584
|
-
const ret = wasm.
|
|
541
|
+
const ret = wasm.externalbreezsignerhandle_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
|
|
585
542
|
return ret;
|
|
586
543
|
}
|
|
587
544
|
/**
|
|
@@ -592,15 +549,7 @@ export class DefaultSigner {
|
|
|
592
549
|
signEcdsaRecoverable(message, path) {
|
|
593
550
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
594
551
|
const len0 = WASM_VECTOR_LEN;
|
|
595
|
-
const ret = wasm.
|
|
596
|
-
return ret;
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* @param {ExternalSignFrostRequest} request
|
|
600
|
-
* @returns {Promise<ExternalFrostSignatureShare>}
|
|
601
|
-
*/
|
|
602
|
-
signFrost(request) {
|
|
603
|
-
const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
|
|
552
|
+
const ret = wasm.externalbreezsignerhandle_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
|
|
604
553
|
return ret;
|
|
605
554
|
}
|
|
606
555
|
/**
|
|
@@ -613,54 +562,205 @@ export class DefaultSigner {
|
|
|
613
562
|
const len0 = WASM_VECTOR_LEN;
|
|
614
563
|
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
615
564
|
const len1 = WASM_VECTOR_LEN;
|
|
616
|
-
const ret = wasm.
|
|
565
|
+
const ret = wasm.externalbreezsignerhandle_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
617
566
|
return ret;
|
|
618
567
|
}
|
|
568
|
+
}
|
|
569
|
+
if (Symbol.dispose) ExternalBreezSignerHandle.prototype[Symbol.dispose] = ExternalBreezSignerHandle.prototype.free;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* The two external signers for the SDK's signer-based connect. Returned by
|
|
573
|
+
* `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey); pass
|
|
574
|
+
* both halves to `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
575
|
+
*/
|
|
576
|
+
export class ExternalSigners {
|
|
577
|
+
static __wrap(ptr) {
|
|
578
|
+
const obj = Object.create(ExternalSigners.prototype);
|
|
579
|
+
obj.__wbg_ptr = ptr;
|
|
580
|
+
ExternalSignersFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
581
|
+
return obj;
|
|
582
|
+
}
|
|
583
|
+
__destroy_into_raw() {
|
|
584
|
+
const ptr = this.__wbg_ptr;
|
|
585
|
+
this.__wbg_ptr = 0;
|
|
586
|
+
ExternalSignersFinalization.unregister(this);
|
|
587
|
+
return ptr;
|
|
588
|
+
}
|
|
589
|
+
free() {
|
|
590
|
+
const ptr = this.__destroy_into_raw();
|
|
591
|
+
wasm.__wbg_externalsigners_free(ptr, 0);
|
|
592
|
+
}
|
|
619
593
|
/**
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
* @
|
|
623
|
-
* @returns {Promise<ExternalVerifiableSecretShare[]>}
|
|
594
|
+
* External signer for non-Spark SDK signing (LNURL-auth, sync, message
|
|
595
|
+
* signing, ECIES).
|
|
596
|
+
* @returns {ExternalBreezSignerHandle}
|
|
624
597
|
*/
|
|
625
|
-
|
|
626
|
-
const ret = wasm.
|
|
627
|
-
return ret;
|
|
598
|
+
get breezSigner() {
|
|
599
|
+
const ret = wasm.externalsigners_breezSigner(this.__wbg_ptr);
|
|
600
|
+
return ExternalBreezSignerHandle.__wrap(ret);
|
|
628
601
|
}
|
|
629
602
|
/**
|
|
630
|
-
*
|
|
631
|
-
* @returns {
|
|
603
|
+
* External high-level Spark signer for the Spark wallet flows.
|
|
604
|
+
* @returns {ExternalSparkSignerHandle}
|
|
605
|
+
*/
|
|
606
|
+
get sparkSigner() {
|
|
607
|
+
const ret = wasm.externalsigners_sparkSigner(this.__wbg_ptr);
|
|
608
|
+
return ExternalSparkSignerHandle.__wrap(ret);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if (Symbol.dispose) ExternalSigners.prototype[Symbol.dispose] = ExternalSigners.prototype.free;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
|
|
615
|
+
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
616
|
+
* by `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey).
|
|
617
|
+
*
|
|
618
|
+
* [`ExternalSparkSigner`]: breez_sdk_spark::signer::ExternalSparkSigner
|
|
619
|
+
*/
|
|
620
|
+
export class ExternalSparkSignerHandle {
|
|
621
|
+
static __wrap(ptr) {
|
|
622
|
+
const obj = Object.create(ExternalSparkSignerHandle.prototype);
|
|
623
|
+
obj.__wbg_ptr = ptr;
|
|
624
|
+
ExternalSparkSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
625
|
+
return obj;
|
|
626
|
+
}
|
|
627
|
+
__destroy_into_raw() {
|
|
628
|
+
const ptr = this.__wbg_ptr;
|
|
629
|
+
this.__wbg_ptr = 0;
|
|
630
|
+
ExternalSparkSignerHandleFinalization.unregister(this);
|
|
631
|
+
return ptr;
|
|
632
|
+
}
|
|
633
|
+
free() {
|
|
634
|
+
const ptr = this.__destroy_into_raw();
|
|
635
|
+
wasm.__wbg_externalsparksignerhandle_free(ptr, 0);
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
632
639
|
*/
|
|
633
|
-
|
|
634
|
-
const ret = wasm.
|
|
640
|
+
getIdentityPublicKey() {
|
|
641
|
+
const ret = wasm.externalsparksignerhandle_getIdentityPublicKey(this.__wbg_ptr);
|
|
635
642
|
return ret;
|
|
636
643
|
}
|
|
637
644
|
/**
|
|
638
|
-
* @param {
|
|
639
|
-
* @returns {Promise<
|
|
645
|
+
* @param {ExternalTreeNodeId} leaf_id
|
|
646
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
640
647
|
*/
|
|
641
|
-
|
|
642
|
-
const ret = wasm.
|
|
648
|
+
getPublicKeyForLeaf(leaf_id) {
|
|
649
|
+
const ret = wasm.externalsparksignerhandle_getPublicKeyForLeaf(this.__wbg_ptr, leaf_id);
|
|
643
650
|
return ret;
|
|
644
651
|
}
|
|
645
652
|
/**
|
|
646
653
|
* @param {number} index
|
|
647
654
|
* @returns {Promise<PublicKeyBytes>}
|
|
648
655
|
*/
|
|
649
|
-
|
|
650
|
-
const ret = wasm.
|
|
656
|
+
getStaticDepositPublicKey(index) {
|
|
657
|
+
const ret = wasm.externalsparksignerhandle_getStaticDepositPublicKey(this.__wbg_ptr, index);
|
|
658
|
+
return ret;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param {ExternalPrepareClaimRequest} request
|
|
662
|
+
* @returns {Promise<ExternalPreparedClaim>}
|
|
663
|
+
*/
|
|
664
|
+
prepareClaim(request) {
|
|
665
|
+
const ret = wasm.externalsparksignerhandle_prepareClaim(this.__wbg_ptr, request);
|
|
651
666
|
return ret;
|
|
652
667
|
}
|
|
653
668
|
/**
|
|
654
|
-
* @param {
|
|
655
|
-
* @
|
|
656
|
-
* @returns {Promise<ExternalSecretSource>}
|
|
669
|
+
* @param {ExternalPrepareLightningReceiveRequest} request
|
|
670
|
+
* @returns {Promise<ExternalPreparedLightningReceive>}
|
|
657
671
|
*/
|
|
658
|
-
|
|
659
|
-
const ret = wasm.
|
|
672
|
+
prepareLightningReceive(request) {
|
|
673
|
+
const ret = wasm.externalsparksignerhandle_prepareLightningReceive(this.__wbg_ptr, request);
|
|
674
|
+
return ret;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* @param {ExternalPrepareStaticDepositRequest} request
|
|
678
|
+
* @returns {Promise<ExternalPreparedStaticDeposit>}
|
|
679
|
+
*/
|
|
680
|
+
prepareStaticDeposit(request) {
|
|
681
|
+
const ret = wasm.externalsparksignerhandle_prepareStaticDeposit(this.__wbg_ptr, request);
|
|
682
|
+
return ret;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* @param {ExternalPrepareStaticDepositClaimRequest} request
|
|
686
|
+
* @returns {Promise<ExternalPreparedStaticDepositClaim>}
|
|
687
|
+
*/
|
|
688
|
+
prepareStaticDepositClaim(request) {
|
|
689
|
+
const ret = wasm.externalsparksignerhandle_prepareStaticDepositClaim(this.__wbg_ptr, request);
|
|
690
|
+
return ret;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* @param {ExternalPrepareTokenTransactionRequest} request
|
|
694
|
+
* @returns {Promise<ExternalPreparedTokenTransaction>}
|
|
695
|
+
*/
|
|
696
|
+
prepareTokenTransaction(request) {
|
|
697
|
+
const ret = wasm.externalsparksignerhandle_prepareTokenTransaction(this.__wbg_ptr, request);
|
|
698
|
+
return ret;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* @param {ExternalPrepareTransferRequest} request
|
|
702
|
+
* @returns {Promise<ExternalPreparedTransfer>}
|
|
703
|
+
*/
|
|
704
|
+
prepareTransfer(request) {
|
|
705
|
+
const ret = wasm.externalsparksignerhandle_prepareTransfer(this.__wbg_ptr, request);
|
|
706
|
+
return ret;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* @param {Uint8Array} challenge
|
|
710
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
711
|
+
*/
|
|
712
|
+
signAuthenticationChallenge(challenge) {
|
|
713
|
+
const ptr0 = passArray8ToWasm0(challenge, wasm.__wbindgen_malloc);
|
|
714
|
+
const len0 = WASM_VECTOR_LEN;
|
|
715
|
+
const ret = wasm.externalsparksignerhandle_signAuthenticationChallenge(this.__wbg_ptr, ptr0, len0);
|
|
716
|
+
return ret;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* @param {ExternalFrostJob[]} jobs
|
|
720
|
+
* @returns {Promise<ExternalFrostShareResult[]>}
|
|
721
|
+
*/
|
|
722
|
+
signFrost(jobs) {
|
|
723
|
+
const ptr0 = passArrayJsValueToWasm0(jobs, wasm.__wbindgen_malloc);
|
|
724
|
+
const len0 = WASM_VECTOR_LEN;
|
|
725
|
+
const ret = wasm.externalsparksignerhandle_signFrost(this.__wbg_ptr, ptr0, len0);
|
|
726
|
+
return ret;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* @param {Uint8Array} message
|
|
730
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
731
|
+
*/
|
|
732
|
+
signMessage(message) {
|
|
733
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
734
|
+
const len0 = WASM_VECTOR_LEN;
|
|
735
|
+
const ret = wasm.externalsparksignerhandle_signMessage(this.__wbg_ptr, ptr0, len0);
|
|
736
|
+
return ret;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* @param {ExternalSignSparkInvoiceRequest} request
|
|
740
|
+
* @returns {Promise<ExternalSignedSparkInvoice>}
|
|
741
|
+
*/
|
|
742
|
+
signSparkInvoice(request) {
|
|
743
|
+
const ret = wasm.externalsparksignerhandle_signSparkInvoice(this.__wbg_ptr, request);
|
|
744
|
+
return ret;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* @param {ExternalSignStaticDepositRefundRequest} request
|
|
748
|
+
* @returns {Promise<ExternalFrostSignature>}
|
|
749
|
+
*/
|
|
750
|
+
signStaticDepositRefund(request) {
|
|
751
|
+
const ret = wasm.externalsparksignerhandle_signStaticDepositRefund(this.__wbg_ptr, request);
|
|
752
|
+
return ret;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* @param {ExternalStartStaticDepositRefundRequest} request
|
|
756
|
+
* @returns {Promise<ExternalStartedStaticDepositRefund>}
|
|
757
|
+
*/
|
|
758
|
+
startStaticDepositRefund(request) {
|
|
759
|
+
const ret = wasm.externalsparksignerhandle_startStaticDepositRefund(this.__wbg_ptr, request);
|
|
660
760
|
return ret;
|
|
661
761
|
}
|
|
662
762
|
}
|
|
663
|
-
if (Symbol.dispose)
|
|
763
|
+
if (Symbol.dispose) ExternalSparkSignerHandle.prototype[Symbol.dispose] = ExternalSparkSignerHandle.prototype.free;
|
|
664
764
|
|
|
665
765
|
export class IntoUnderlyingByteSource {
|
|
666
766
|
__destroy_into_raw() {
|
|
@@ -774,140 +874,122 @@ export class IntoUnderlyingSource {
|
|
|
774
874
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
775
875
|
|
|
776
876
|
/**
|
|
777
|
-
*
|
|
778
|
-
*
|
|
779
|
-
*
|
|
877
|
+
* High-level orchestrator that collapses register / sign-in flows
|
|
878
|
+
* into single calls. See the matching Rust types for full semantics;
|
|
879
|
+
* the JS surface is a thin wasm-bindgen wrapper.
|
|
780
880
|
*/
|
|
781
|
-
export class
|
|
782
|
-
static __wrap(ptr) {
|
|
783
|
-
const obj = Object.create(MysqlConnectionPool.prototype);
|
|
784
|
-
obj.__wbg_ptr = ptr;
|
|
785
|
-
MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
786
|
-
return obj;
|
|
787
|
-
}
|
|
881
|
+
export class PasskeyClient {
|
|
788
882
|
__destroy_into_raw() {
|
|
789
883
|
const ptr = this.__wbg_ptr;
|
|
790
884
|
this.__wbg_ptr = 0;
|
|
791
|
-
|
|
885
|
+
PasskeyClientFinalization.unregister(this);
|
|
792
886
|
return ptr;
|
|
793
887
|
}
|
|
794
888
|
free() {
|
|
795
889
|
const ptr = this.__destroy_into_raw();
|
|
796
|
-
wasm.
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
803
|
-
*
|
|
804
|
-
* Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
|
|
805
|
-
* wallet derivation and label management via Nostr relays.
|
|
806
|
-
*/
|
|
807
|
-
export class Passkey {
|
|
808
|
-
__destroy_into_raw() {
|
|
809
|
-
const ptr = this.__wbg_ptr;
|
|
810
|
-
this.__wbg_ptr = 0;
|
|
811
|
-
PasskeyFinalization.unregister(this);
|
|
812
|
-
return ptr;
|
|
813
|
-
}
|
|
814
|
-
free() {
|
|
815
|
-
const ptr = this.__destroy_into_raw();
|
|
816
|
-
wasm.__wbg_passkey_free(ptr, 0);
|
|
890
|
+
wasm.__wbg_passkeyclient_free(ptr, 0);
|
|
817
891
|
}
|
|
818
892
|
/**
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
823
|
-
* @param label - Optional label string (defaults to "Default")
|
|
824
|
-
* @param {string | null} [label]
|
|
825
|
-
* @returns {Promise<Wallet>}
|
|
893
|
+
* One-shot capability probe (PRF support + domain association)
|
|
894
|
+
* hosts can gate UX on.
|
|
895
|
+
* @returns {Promise<PasskeyAvailability>}
|
|
826
896
|
*/
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
var len0 = WASM_VECTOR_LEN;
|
|
830
|
-
const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
|
|
897
|
+
checkAvailability() {
|
|
898
|
+
const ret = wasm.passkeyclient_checkAvailability(this.__wbg_ptr);
|
|
831
899
|
return ret;
|
|
832
900
|
}
|
|
833
901
|
/**
|
|
834
|
-
*
|
|
835
|
-
* @returns {
|
|
902
|
+
* Label sub-object. List / publish labels for this passkey's identity.
|
|
903
|
+
* @returns {PasskeyLabels}
|
|
836
904
|
*/
|
|
837
|
-
|
|
838
|
-
const ret = wasm.
|
|
839
|
-
return ret;
|
|
905
|
+
labels() {
|
|
906
|
+
const ret = wasm.passkeyclient_labels(this.__wbg_ptr);
|
|
907
|
+
return PasskeyLabels.__wrap(ret);
|
|
840
908
|
}
|
|
841
909
|
/**
|
|
842
|
-
*
|
|
843
|
-
*
|
|
844
|
-
*
|
|
845
|
-
*
|
|
910
|
+
* Create a `PasskeyClient` backed by the supplied `PrfProvider` and
|
|
911
|
+
* the default Nostr-backed label store. `breezApiKey` enables
|
|
912
|
+
* authenticated (NIP-42) relay access for label storage; omit for
|
|
913
|
+
* public relays only.
|
|
914
|
+
* @param {PrfProvider} prf_provider
|
|
915
|
+
* @param {string | null} [breez_api_key]
|
|
916
|
+
* @param {PasskeyConfig | null} [config]
|
|
846
917
|
*/
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
918
|
+
constructor(prf_provider, breez_api_key, config) {
|
|
919
|
+
var ptr0 = isLikeNone(breez_api_key) ? 0 : passStringToWasm0(breez_api_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
920
|
+
var len0 = WASM_VECTOR_LEN;
|
|
921
|
+
const ret = wasm.passkeyclient_new(prf_provider, ptr0, len0, isLikeNone(config) ? 0 : addToExternrefTable0(config));
|
|
922
|
+
this.__wbg_ptr = ret;
|
|
923
|
+
PasskeyClientFinalization.register(this, this.__wbg_ptr, this);
|
|
924
|
+
return this;
|
|
850
925
|
}
|
|
851
926
|
/**
|
|
852
|
-
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
|
-
* @param
|
|
856
|
-
* @
|
|
857
|
-
* @param {NostrRelayConfig | null} [relay_config]
|
|
927
|
+
* First-time setup. Drives the platform's create-passkey ceremony
|
|
928
|
+
* then derives the wallet seed in the same PRF assertion ceremony
|
|
929
|
+
* where the platform supports it.
|
|
930
|
+
* @param {RegisterRequest} request
|
|
931
|
+
* @returns {Promise<RegisterResponse>}
|
|
858
932
|
*/
|
|
859
|
-
|
|
860
|
-
const ret = wasm.
|
|
861
|
-
|
|
862
|
-
PasskeyFinalization.register(this, this.__wbg_ptr, this);
|
|
863
|
-
return this;
|
|
933
|
+
register(request) {
|
|
934
|
+
const ret = wasm.passkeyclient_register(this.__wbg_ptr, request);
|
|
935
|
+
return ret;
|
|
864
936
|
}
|
|
865
937
|
/**
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
*
|
|
869
|
-
*
|
|
870
|
-
* @param {
|
|
871
|
-
* @returns {Promise<
|
|
938
|
+
* Returning-user sign-in. With `label` set, uses the fast path
|
|
939
|
+
* (one ceremony, no Nostr round-trip). With `label` omitted,
|
|
940
|
+
* derives the default-label wallet and discovers the user's
|
|
941
|
+
* label set in the same ceremony.
|
|
942
|
+
* @param {SignInRequest} request
|
|
943
|
+
* @returns {Promise<SignInResponse>}
|
|
872
944
|
*/
|
|
873
|
-
|
|
874
|
-
const
|
|
875
|
-
const len0 = WASM_VECTOR_LEN;
|
|
876
|
-
const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
|
|
945
|
+
signIn(request) {
|
|
946
|
+
const ret = wasm.passkeyclient_signIn(this.__wbg_ptr, request);
|
|
877
947
|
return ret;
|
|
878
948
|
}
|
|
879
949
|
}
|
|
880
|
-
if (Symbol.dispose)
|
|
950
|
+
if (Symbol.dispose) PasskeyClient.prototype[Symbol.dispose] = PasskeyClient.prototype.free;
|
|
881
951
|
|
|
882
952
|
/**
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
* Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
|
|
886
|
-
* `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
|
|
887
|
-
* Per-tenant scoping is derived from each SDK's seed.
|
|
888
|
-
*
|
|
889
|
-
* The pool's lifecycle is controlled by the integrator: it stays alive as
|
|
890
|
-
* long as any reference is held. `disconnect()` does **not** close the pool.
|
|
953
|
+
* Label sub-object surfaced from `PasskeyClient.labels()`.
|
|
891
954
|
*/
|
|
892
|
-
export class
|
|
955
|
+
export class PasskeyLabels {
|
|
893
956
|
static __wrap(ptr) {
|
|
894
|
-
const obj = Object.create(
|
|
957
|
+
const obj = Object.create(PasskeyLabels.prototype);
|
|
895
958
|
obj.__wbg_ptr = ptr;
|
|
896
|
-
|
|
959
|
+
PasskeyLabelsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
897
960
|
return obj;
|
|
898
961
|
}
|
|
899
962
|
__destroy_into_raw() {
|
|
900
963
|
const ptr = this.__wbg_ptr;
|
|
901
964
|
this.__wbg_ptr = 0;
|
|
902
|
-
|
|
965
|
+
PasskeyLabelsFinalization.unregister(this);
|
|
903
966
|
return ptr;
|
|
904
967
|
}
|
|
905
968
|
free() {
|
|
906
969
|
const ptr = this.__destroy_into_raw();
|
|
907
|
-
wasm.
|
|
970
|
+
wasm.__wbg_passkeylabels_free(ptr, 0);
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* List labels published for this passkey's identity.
|
|
974
|
+
* @returns {Promise<string[]>}
|
|
975
|
+
*/
|
|
976
|
+
list() {
|
|
977
|
+
const ret = wasm.passkeylabels_list(this.__wbg_ptr);
|
|
978
|
+
return ret;
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* Idempotently publish `label` for this passkey's identity.
|
|
982
|
+
* @param {string} label
|
|
983
|
+
* @returns {Promise<void>}
|
|
984
|
+
*/
|
|
985
|
+
store(label) {
|
|
986
|
+
const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
987
|
+
const len0 = WASM_VECTOR_LEN;
|
|
988
|
+
const ret = wasm.passkeylabels_store(this.__wbg_ptr, ptr0, len0);
|
|
989
|
+
return ret;
|
|
908
990
|
}
|
|
909
991
|
}
|
|
910
|
-
if (Symbol.dispose)
|
|
992
|
+
if (Symbol.dispose) PasskeyLabels.prototype[Symbol.dispose] = PasskeyLabels.prototype.free;
|
|
911
993
|
|
|
912
994
|
export class SdkBuilder {
|
|
913
995
|
static __wrap(ptr) {
|
|
@@ -945,11 +1027,21 @@ export class SdkBuilder {
|
|
|
945
1027
|
}
|
|
946
1028
|
/**
|
|
947
1029
|
* @param {Config} config
|
|
948
|
-
* @param {
|
|
1030
|
+
* @param {ExternalBreezSigner} breez_signer
|
|
1031
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1032
|
+
* @returns {SdkBuilder}
|
|
1033
|
+
*/
|
|
1034
|
+
static newWithSigner(config, breez_signer, spark_signer) {
|
|
1035
|
+
const ret = wasm.sdkbuilder_newWithSigner(config, breez_signer, spark_signer);
|
|
1036
|
+
return SdkBuilder.__wrap(ret);
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* @param {number} account_number
|
|
949
1040
|
* @returns {SdkBuilder}
|
|
950
1041
|
*/
|
|
951
|
-
|
|
952
|
-
const
|
|
1042
|
+
withAccountNumber(account_number) {
|
|
1043
|
+
const ptr = this.__destroy_into_raw();
|
|
1044
|
+
const ret = wasm.sdkbuilder_withAccountNumber(ptr, account_number);
|
|
953
1045
|
return SdkBuilder.__wrap(ret);
|
|
954
1046
|
}
|
|
955
1047
|
/**
|
|
@@ -981,15 +1073,6 @@ export class SdkBuilder {
|
|
|
981
1073
|
const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
|
|
982
1074
|
return SdkBuilder.__wrap(ret);
|
|
983
1075
|
}
|
|
984
|
-
/**
|
|
985
|
-
* @param {KeySetConfig} config
|
|
986
|
-
* @returns {SdkBuilder}
|
|
987
|
-
*/
|
|
988
|
-
withKeySet(config) {
|
|
989
|
-
const ptr = this.__destroy_into_raw();
|
|
990
|
-
const ret = wasm.sdkbuilder_withKeySet(ptr, config);
|
|
991
|
-
return SdkBuilder.__wrap(ret);
|
|
992
|
-
}
|
|
993
1076
|
/**
|
|
994
1077
|
* @param {RestClient} lnurl_client
|
|
995
1078
|
* @returns {SdkBuilder}
|
|
@@ -1000,8 +1083,7 @@ export class SdkBuilder {
|
|
|
1000
1083
|
return SdkBuilder.__wrap(ret);
|
|
1001
1084
|
}
|
|
1002
1085
|
/**
|
|
1003
|
-
* **Deprecated.**
|
|
1004
|
-
* `withMysqlConnectionPool(pool)` instead.
|
|
1086
|
+
* **Deprecated.** Use `withStorageBackend(mysqlStorage(config))`.
|
|
1005
1087
|
* @param {MysqlStorageConfig} config
|
|
1006
1088
|
* @returns {SdkBuilder}
|
|
1007
1089
|
*/
|
|
@@ -1013,20 +1095,6 @@ export class SdkBuilder {
|
|
|
1013
1095
|
}
|
|
1014
1096
|
return SdkBuilder.__wrap(ret[0]);
|
|
1015
1097
|
}
|
|
1016
|
-
/**
|
|
1017
|
-
* Sets a shared `MySQL` connection pool as the backend for all stores.
|
|
1018
|
-
*
|
|
1019
|
-
* If the same builder also receives a `WasmSdkContext` carrying a MySQL
|
|
1020
|
-
* pool, `build()` returns an error — pick one source.
|
|
1021
|
-
* @param {MysqlConnectionPool} pool
|
|
1022
|
-
* @returns {SdkBuilder}
|
|
1023
|
-
*/
|
|
1024
|
-
withMysqlConnectionPool(pool) {
|
|
1025
|
-
const ptr = this.__destroy_into_raw();
|
|
1026
|
-
_assertClass(pool, MysqlConnectionPool);
|
|
1027
|
-
const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
|
|
1028
|
-
return SdkBuilder.__wrap(ret);
|
|
1029
|
-
}
|
|
1030
1098
|
/**
|
|
1031
1099
|
* @param {PaymentObserver} payment_observer
|
|
1032
1100
|
* @returns {SdkBuilder}
|
|
@@ -1037,8 +1105,7 @@ export class SdkBuilder {
|
|
|
1037
1105
|
return SdkBuilder.__wrap(ret);
|
|
1038
1106
|
}
|
|
1039
1107
|
/**
|
|
1040
|
-
* **Deprecated.**
|
|
1041
|
-
* `withPostgresConnectionPool(pool)` instead.
|
|
1108
|
+
* **Deprecated.** Use `withStorageBackend(postgresStorage(config))`.
|
|
1042
1109
|
* @param {PostgresStorageConfig} config
|
|
1043
1110
|
* @returns {SdkBuilder}
|
|
1044
1111
|
*/
|
|
@@ -1050,20 +1117,6 @@ export class SdkBuilder {
|
|
|
1050
1117
|
}
|
|
1051
1118
|
return SdkBuilder.__wrap(ret[0]);
|
|
1052
1119
|
}
|
|
1053
|
-
/**
|
|
1054
|
-
* Sets a shared Postgres connection pool as the backend for all stores.
|
|
1055
|
-
*
|
|
1056
|
-
* If the same builder also receives a `WasmSdkContext` carrying a
|
|
1057
|
-
* Postgres pool, `build()` returns an error — pick one source.
|
|
1058
|
-
* @param {PostgresConnectionPool} pool
|
|
1059
|
-
* @returns {SdkBuilder}
|
|
1060
|
-
*/
|
|
1061
|
-
withPostgresConnectionPool(pool) {
|
|
1062
|
-
const ptr = this.__destroy_into_raw();
|
|
1063
|
-
_assertClass(pool, PostgresConnectionPool);
|
|
1064
|
-
const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
|
|
1065
|
-
return SdkBuilder.__wrap(ret);
|
|
1066
|
-
}
|
|
1067
1120
|
/**
|
|
1068
1121
|
* @param {string} url
|
|
1069
1122
|
* @param {ChainApiType} api_type
|
|
@@ -1101,6 +1154,21 @@ export class SdkBuilder {
|
|
|
1101
1154
|
const ret = wasm.sdkbuilder_withStorage(ptr, storage);
|
|
1102
1155
|
return SdkBuilder.__wrap(ret);
|
|
1103
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Sets one of the SDK's built-in storage backends.
|
|
1159
|
+
*
|
|
1160
|
+
* Construct the [`WasmStorageConfig`] via `defaultStorage`,
|
|
1161
|
+
* `postgresStorage` or `mysqlStorage`.
|
|
1162
|
+
* @param {WasmStorageConfig} config
|
|
1163
|
+
* @returns {SdkBuilder}
|
|
1164
|
+
*/
|
|
1165
|
+
withStorageBackend(config) {
|
|
1166
|
+
const ptr = this.__destroy_into_raw();
|
|
1167
|
+
_assertClass(config, WasmStorageConfig);
|
|
1168
|
+
var ptr0 = config.__destroy_into_raw();
|
|
1169
|
+
const ret = wasm.sdkbuilder_withStorageBackend(ptr, ptr0);
|
|
1170
|
+
return SdkBuilder.__wrap(ret);
|
|
1171
|
+
}
|
|
1104
1172
|
}
|
|
1105
1173
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
1106
1174
|
|
|
@@ -1205,6 +1273,32 @@ export class WasmSdkContext {
|
|
|
1205
1273
|
}
|
|
1206
1274
|
if (Symbol.dispose) WasmSdkContext.prototype[Symbol.dispose] = WasmSdkContext.prototype.free;
|
|
1207
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* Selects one of the SDK's built-in storage backends.
|
|
1278
|
+
*
|
|
1279
|
+
* Construct it via `defaultStorage`, `postgresStorage` or `mysqlStorage` and
|
|
1280
|
+
* pass it to `SdkBuilder.withStorageBackend`.
|
|
1281
|
+
*/
|
|
1282
|
+
export class WasmStorageConfig {
|
|
1283
|
+
static __wrap(ptr) {
|
|
1284
|
+
const obj = Object.create(WasmStorageConfig.prototype);
|
|
1285
|
+
obj.__wbg_ptr = ptr;
|
|
1286
|
+
WasmStorageConfigFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1287
|
+
return obj;
|
|
1288
|
+
}
|
|
1289
|
+
__destroy_into_raw() {
|
|
1290
|
+
const ptr = this.__wbg_ptr;
|
|
1291
|
+
this.__wbg_ptr = 0;
|
|
1292
|
+
WasmStorageConfigFinalization.unregister(this);
|
|
1293
|
+
return ptr;
|
|
1294
|
+
}
|
|
1295
|
+
free() {
|
|
1296
|
+
const ptr = this.__destroy_into_raw();
|
|
1297
|
+
wasm.__wbg_wasmstorageconfig_free(ptr, 0);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
if (Symbol.dispose) WasmStorageConfig.prototype[Symbol.dispose] = WasmStorageConfig.prototype.free;
|
|
1301
|
+
|
|
1208
1302
|
/**
|
|
1209
1303
|
* @param {ConnectRequest} request
|
|
1210
1304
|
* @returns {Promise<BreezSdk>}
|
|
@@ -1216,41 +1310,28 @@ export function connect(request) {
|
|
|
1216
1310
|
|
|
1217
1311
|
/**
|
|
1218
1312
|
* @param {Config} config
|
|
1219
|
-
* @param {
|
|
1313
|
+
* @param {ExternalBreezSigner} breez_signer
|
|
1314
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1220
1315
|
* @param {string} storage_dir
|
|
1221
1316
|
* @returns {Promise<BreezSdk>}
|
|
1222
1317
|
*/
|
|
1223
|
-
export function connectWithSigner(config,
|
|
1318
|
+
export function connectWithSigner(config, breez_signer, spark_signer, storage_dir) {
|
|
1224
1319
|
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1225
1320
|
const len0 = WASM_VECTOR_LEN;
|
|
1226
|
-
const ret = wasm.connectWithSigner(config,
|
|
1321
|
+
const ret = wasm.connectWithSigner(config, breez_signer, spark_signer, ptr0, len0);
|
|
1227
1322
|
return ret;
|
|
1228
1323
|
}
|
|
1229
1324
|
|
|
1230
1325
|
/**
|
|
1231
|
-
*
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
1326
|
+
* Builds the Turnkey-backed signers from `config`, then pass
|
|
1327
|
+
* `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
|
|
1328
|
+
* exactly as with any other external signer.
|
|
1329
|
+
* @param {TurnkeyConfig} config
|
|
1330
|
+
* @returns {Promise<ExternalSigners>}
|
|
1234
1331
|
*/
|
|
1235
|
-
export function
|
|
1236
|
-
const ret = wasm.
|
|
1237
|
-
|
|
1238
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1239
|
-
}
|
|
1240
|
-
return MysqlConnectionPool.__wrap(ret[0]);
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
/**
|
|
1244
|
-
* Creates a shareable Postgres connection pool from the given config.
|
|
1245
|
-
* @param {PostgresStorageConfig} config
|
|
1246
|
-
* @returns {PostgresConnectionPool}
|
|
1247
|
-
*/
|
|
1248
|
-
export function createPostgresConnectionPool(config) {
|
|
1249
|
-
const ret = wasm.createPostgresConnectionPool(config);
|
|
1250
|
-
if (ret[2]) {
|
|
1251
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1252
|
-
}
|
|
1253
|
-
return PostgresConnectionPool.__wrap(ret[0]);
|
|
1332
|
+
export function createTurnkeySigner(config) {
|
|
1333
|
+
const ret = wasm.createTurnkeySigner(config);
|
|
1334
|
+
return ret;
|
|
1254
1335
|
}
|
|
1255
1336
|
|
|
1256
1337
|
/**
|
|
@@ -1263,22 +1344,26 @@ export function defaultConfig(network) {
|
|
|
1263
1344
|
}
|
|
1264
1345
|
|
|
1265
1346
|
/**
|
|
1347
|
+
* Creates the default external signers from a mnemonic phrase.
|
|
1348
|
+
*
|
|
1349
|
+
* Key derivation matches the seed-based connect path: an SDK built either
|
|
1350
|
+
* way from the same mnemonic is the same wallet.
|
|
1266
1351
|
* @param {string} mnemonic
|
|
1267
1352
|
* @param {string | null | undefined} passphrase
|
|
1268
1353
|
* @param {Network} network
|
|
1269
|
-
* @param {
|
|
1270
|
-
* @returns {
|
|
1354
|
+
* @param {number | null} [account_number]
|
|
1355
|
+
* @returns {ExternalSigners}
|
|
1271
1356
|
*/
|
|
1272
|
-
export function
|
|
1357
|
+
export function defaultExternalSigners(mnemonic, passphrase, network, account_number) {
|
|
1273
1358
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1274
1359
|
const len0 = WASM_VECTOR_LEN;
|
|
1275
1360
|
var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1276
1361
|
var len1 = WASM_VECTOR_LEN;
|
|
1277
|
-
const ret = wasm.
|
|
1362
|
+
const ret = wasm.defaultExternalSigners(ptr0, len0, ptr1, len1, network, isLikeNone(account_number) ? Number.MAX_SAFE_INTEGER : (account_number) >>> 0);
|
|
1278
1363
|
if (ret[2]) {
|
|
1279
1364
|
throw takeFromExternrefTable0(ret[1]);
|
|
1280
1365
|
}
|
|
1281
|
-
return
|
|
1366
|
+
return ExternalSigners.__wrap(ret[0]);
|
|
1282
1367
|
}
|
|
1283
1368
|
|
|
1284
1369
|
/**
|
|
@@ -1326,9 +1411,19 @@ export function defaultServerConfig(network) {
|
|
|
1326
1411
|
}
|
|
1327
1412
|
|
|
1328
1413
|
/**
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1331
|
-
*
|
|
1414
|
+
* File-based storage rooted at `storageDir` — IndexedDB in the browser,
|
|
1415
|
+
* SQLite under Node.js.
|
|
1416
|
+
* @param {string} storage_dir
|
|
1417
|
+
* @returns {WasmStorageConfig}
|
|
1418
|
+
*/
|
|
1419
|
+
export function defaultStorage(storage_dir) {
|
|
1420
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1421
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1422
|
+
const ret = wasm.defaultStorage(ptr0, len0);
|
|
1423
|
+
return WasmStorageConfig.__wrap(ret);
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1332
1427
|
* @returns {Promise<SparkStatus>}
|
|
1333
1428
|
*/
|
|
1334
1429
|
export function getSparkStatus() {
|
|
@@ -1348,6 +1443,16 @@ export function initLogging(logger, filter) {
|
|
|
1348
1443
|
return ret;
|
|
1349
1444
|
}
|
|
1350
1445
|
|
|
1446
|
+
/**
|
|
1447
|
+
* `MySQL`-backed storage built from `config`.
|
|
1448
|
+
* @param {MysqlStorageConfig} config
|
|
1449
|
+
* @returns {WasmStorageConfig}
|
|
1450
|
+
*/
|
|
1451
|
+
export function mysqlStorage(config) {
|
|
1452
|
+
const ret = wasm.mysqlStorage(config);
|
|
1453
|
+
return WasmStorageConfig.__wrap(ret);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1351
1456
|
/**
|
|
1352
1457
|
* Constructs a shareable REST-based Bitcoin chain service.
|
|
1353
1458
|
*
|
|
@@ -1379,6 +1484,26 @@ export function newSharedSdkContext(config) {
|
|
|
1379
1484
|
return ret;
|
|
1380
1485
|
}
|
|
1381
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
* `PostgreSQL`-backed storage built from `config`.
|
|
1489
|
+
* @param {PostgresStorageConfig} config
|
|
1490
|
+
* @returns {WasmStorageConfig}
|
|
1491
|
+
*/
|
|
1492
|
+
export function postgresStorage(config) {
|
|
1493
|
+
const ret = wasm.postgresStorage(config);
|
|
1494
|
+
return WasmStorageConfig.__wrap(ret);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Runs automatically when the wasm module is instantiated. Installs the
|
|
1499
|
+
* panic hook so Rust panics surface as readable `console.error` output
|
|
1500
|
+
* (with the panic message + `file.rs:line`) instead of a bare
|
|
1501
|
+
* `RuntimeError: unreachable`.
|
|
1502
|
+
*/
|
|
1503
|
+
export function start() {
|
|
1504
|
+
wasm.start();
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1382
1507
|
/**
|
|
1383
1508
|
* Entry point invoked by JavaScript in a worker.
|
|
1384
1509
|
* @param {number} ptr
|
|
@@ -1517,13 +1642,19 @@ export function __wbg_addLeaves_96b8c0f05f6b2a00() { return handleError(function
|
|
|
1517
1642
|
const ret = arg0.addLeaves(arg1);
|
|
1518
1643
|
return ret;
|
|
1519
1644
|
}, arguments); }
|
|
1520
|
-
export function
|
|
1521
|
-
|
|
1645
|
+
export function __wbg_afterSend_465a6d26048f7342() { return handleError(function (arg0, arg1, arg2) {
|
|
1646
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1647
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1648
|
+
const ret = arg0.afterSend(v0);
|
|
1522
1649
|
return ret;
|
|
1523
1650
|
}, arguments); }
|
|
1524
1651
|
export function __wbg_append_8df396311184f750() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1525
1652
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1526
1653
|
}, arguments); }
|
|
1654
|
+
export function __wbg_applyPaymentUpdate_8526d773e5ac8314() { return handleError(function (arg0, arg1) {
|
|
1655
|
+
const ret = arg0.applyPaymentUpdate(arg1);
|
|
1656
|
+
return ret;
|
|
1657
|
+
}, arguments); }
|
|
1527
1658
|
export function __wbg_arrayBuffer_87e3ac06d961f7a0() { return handleError(function (arg0) {
|
|
1528
1659
|
const ret = arg0.arrayBuffer();
|
|
1529
1660
|
return ret;
|
|
@@ -1614,6 +1745,9 @@ export function __wbg_catch_f939343cb181958c(arg0, arg1) {
|
|
|
1614
1745
|
const ret = arg0.catch(arg1);
|
|
1615
1746
|
return ret;
|
|
1616
1747
|
}
|
|
1748
|
+
export function __wbg_clearInterval_d25b0cf526eff7ae(arg0) {
|
|
1749
|
+
globalThis.clearInterval(arg0);
|
|
1750
|
+
}
|
|
1617
1751
|
export function __wbg_clearTimeout_113b1cde814ec762(arg0) {
|
|
1618
1752
|
const ret = clearTimeout(arg0);
|
|
1619
1753
|
return ret;
|
|
@@ -1631,6 +1765,9 @@ export function __wbg_close_931d0c62e2aab92c() { return handleError(function (ar
|
|
|
1631
1765
|
export function __wbg_close_de471367367aa5cb() { return handleError(function (arg0) {
|
|
1632
1766
|
arg0.close();
|
|
1633
1767
|
}, arguments); }
|
|
1768
|
+
export function __wbg_close_f1af935d7d7cec78() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1769
|
+
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
1770
|
+
}, arguments); }
|
|
1634
1771
|
export function __wbg_code_be6f339819ebb2c4(arg0) {
|
|
1635
1772
|
const ret = arg0.code;
|
|
1636
1773
|
return ret;
|
|
@@ -1647,8 +1784,8 @@ export function __wbg_createMysqlPool_8927bff3a28fcef9() { return handleError(fu
|
|
|
1647
1784
|
const ret = createMysqlPool(arg0);
|
|
1648
1785
|
return ret;
|
|
1649
1786
|
}, arguments); }
|
|
1650
|
-
export function
|
|
1651
|
-
const ret =
|
|
1787
|
+
export function __wbg_createMysqlSessionStoreWithPool_52192c9b2932ff7c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1788
|
+
const ret = createMysqlSessionStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1652
1789
|
return ret;
|
|
1653
1790
|
}, arguments); }
|
|
1654
1791
|
export function __wbg_createMysqlStorageWithPool_22d23b0d068eae47() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
@@ -1663,12 +1800,16 @@ export function __wbg_createMysqlTreeStoreWithPool_4c6bcff518c7f9c4() { return h
|
|
|
1663
1800
|
const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0);
|
|
1664
1801
|
return ret;
|
|
1665
1802
|
}, arguments); }
|
|
1803
|
+
export function __wbg_createPasskey_5ceae054474c582a() { return handleError(function (arg0, arg1) {
|
|
1804
|
+
const ret = arg0.createPasskey(arg1);
|
|
1805
|
+
return ret;
|
|
1806
|
+
}, arguments); }
|
|
1666
1807
|
export function __wbg_createPostgresPool_3c396c7ab2f0eab2() { return handleError(function (arg0) {
|
|
1667
1808
|
const ret = createPostgresPool(arg0);
|
|
1668
1809
|
return ret;
|
|
1669
1810
|
}, arguments); }
|
|
1670
|
-
export function
|
|
1671
|
-
const ret =
|
|
1811
|
+
export function __wbg_createPostgresSessionStoreWithPool_dd76c7c3517d7bd0() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1812
|
+
const ret = createPostgresSessionStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1672
1813
|
return ret;
|
|
1673
1814
|
}, arguments); }
|
|
1674
1815
|
export function __wbg_createPostgresStorageWithPool_9408116e32ab58f8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
@@ -1691,6 +1832,20 @@ export function __wbg_data_4a14fad4c5f216c4(arg0) {
|
|
|
1691
1832
|
const ret = arg0.data;
|
|
1692
1833
|
return ret;
|
|
1693
1834
|
}
|
|
1835
|
+
export function __wbg_decryptEcies_ebe426814020926b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1836
|
+
let deferred1_0;
|
|
1837
|
+
let deferred1_1;
|
|
1838
|
+
try {
|
|
1839
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1840
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1841
|
+
deferred1_0 = arg3;
|
|
1842
|
+
deferred1_1 = arg4;
|
|
1843
|
+
const ret = arg0.decryptEcies(v0, getStringFromWasm0(arg3, arg4));
|
|
1844
|
+
return ret;
|
|
1845
|
+
} finally {
|
|
1846
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1847
|
+
}
|
|
1848
|
+
}, arguments); }
|
|
1694
1849
|
export function __wbg_deleteCachedItem_b8fbe3ebea21ed7e() { return handleError(function (arg0, arg1, arg2) {
|
|
1695
1850
|
let deferred0_0;
|
|
1696
1851
|
let deferred0_1;
|
|
@@ -1744,19 +1899,7 @@ export function __wbg_deleteRequest_597243024c6ce08c() { return handleError(func
|
|
|
1744
1899
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1745
1900
|
}
|
|
1746
1901
|
}, arguments); }
|
|
1747
|
-
export function
|
|
1748
|
-
let deferred0_0;
|
|
1749
|
-
let deferred0_1;
|
|
1750
|
-
try {
|
|
1751
|
-
deferred0_0 = arg1;
|
|
1752
|
-
deferred0_1 = arg2;
|
|
1753
|
-
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1754
|
-
return ret;
|
|
1755
|
-
} finally {
|
|
1756
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1757
|
-
}
|
|
1758
|
-
}, arguments); }
|
|
1759
|
-
export function __wbg_derivePublicKey_bab57284cd981e9a() { return handleError(function (arg0, arg1, arg2) {
|
|
1902
|
+
export function __wbg_derivePublicKey_1bc53f60dc792488() { return handleError(function (arg0, arg1, arg2) {
|
|
1760
1903
|
let deferred0_0;
|
|
1761
1904
|
let deferred0_1;
|
|
1762
1905
|
try {
|
|
@@ -1768,25 +1911,15 @@ export function __wbg_derivePublicKey_bab57284cd981e9a() { return handleError(fu
|
|
|
1768
1911
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1769
1912
|
}
|
|
1770
1913
|
}, arguments); }
|
|
1914
|
+
export function __wbg_deriveSeeds_5c331613e2894c56() { return handleError(function (arg0, arg1, arg2) {
|
|
1915
|
+
const ret = arg0.deriveSeeds(arg1, arg2);
|
|
1916
|
+
return ret;
|
|
1917
|
+
}, arguments); }
|
|
1771
1918
|
export function __wbg_done_b1afd6201ac045e0(arg0) {
|
|
1772
1919
|
const ret = arg0.done;
|
|
1773
1920
|
return ret;
|
|
1774
1921
|
}
|
|
1775
|
-
export function
|
|
1776
|
-
let deferred1_0;
|
|
1777
|
-
let deferred1_1;
|
|
1778
|
-
try {
|
|
1779
|
-
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1780
|
-
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1781
|
-
deferred1_0 = arg3;
|
|
1782
|
-
deferred1_1 = arg4;
|
|
1783
|
-
const ret = arg0.eciesDecrypt(v0, getStringFromWasm0(arg3, arg4));
|
|
1784
|
-
return ret;
|
|
1785
|
-
} finally {
|
|
1786
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1787
|
-
}
|
|
1788
|
-
}, arguments); }
|
|
1789
|
-
export function __wbg_eciesEncrypt_95486f45d5d74f6a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1922
|
+
export function __wbg_encryptEcies_6a990da1c19d1f7c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1790
1923
|
let deferred1_0;
|
|
1791
1924
|
let deferred1_1;
|
|
1792
1925
|
try {
|
|
@@ -1794,16 +1927,12 @@ export function __wbg_eciesEncrypt_95486f45d5d74f6a() { return handleError(funct
|
|
|
1794
1927
|
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1795
1928
|
deferred1_0 = arg3;
|
|
1796
1929
|
deferred1_1 = arg4;
|
|
1797
|
-
const ret = arg0.
|
|
1930
|
+
const ret = arg0.encryptEcies(v0, getStringFromWasm0(arg3, arg4));
|
|
1798
1931
|
return ret;
|
|
1799
1932
|
} finally {
|
|
1800
1933
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1801
1934
|
}
|
|
1802
1935
|
}, arguments); }
|
|
1803
|
-
export function __wbg_encryptPrivateKeyForReceiver_a5414ece502e2eec() { return handleError(function (arg0, arg1, arg2) {
|
|
1804
|
-
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1805
|
-
return ret;
|
|
1806
|
-
}, arguments); }
|
|
1807
1936
|
export function __wbg_enqueue_6c7cd543c0f3828e() { return handleError(function (arg0, arg1) {
|
|
1808
1937
|
arg0.enqueue(arg1);
|
|
1809
1938
|
}, arguments); }
|
|
@@ -1814,6 +1943,21 @@ export function __wbg_entries_bb9843ba73dc70d6(arg0) {
|
|
|
1814
1943
|
export function __wbg_error_145dadf4216d70bc(arg0, arg1) {
|
|
1815
1944
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1816
1945
|
}
|
|
1946
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
1947
|
+
let deferred0_0;
|
|
1948
|
+
let deferred0_1;
|
|
1949
|
+
try {
|
|
1950
|
+
deferred0_0 = arg0;
|
|
1951
|
+
deferred0_1 = arg1;
|
|
1952
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1953
|
+
} finally {
|
|
1954
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
export function __wbg_externalsigners_new(arg0) {
|
|
1958
|
+
const ret = ExternalSigners.__wrap(arg0);
|
|
1959
|
+
return ret;
|
|
1960
|
+
}
|
|
1817
1961
|
export function __wbg_fetchFiatCurrencies_8afa0468f01bf013() { return handleError(function (arg0) {
|
|
1818
1962
|
const ret = arg0.fetchFiatCurrencies();
|
|
1819
1963
|
return ret;
|
|
@@ -1862,14 +2006,10 @@ export function __wbg_finalizeReservation_aa324ddf4b195930() { return handleErro
|
|
|
1862
2006
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1863
2007
|
}
|
|
1864
2008
|
}, arguments); }
|
|
1865
|
-
export function
|
|
1866
|
-
const ret =
|
|
1867
|
-
return ret;
|
|
1868
|
-
}, arguments); }
|
|
1869
|
-
export function __wbg_generateRandomSecret_432432761a2594b7() { return handleError(function (arg0) {
|
|
1870
|
-
const ret = arg0.generateRandomSecret();
|
|
2009
|
+
export function __wbg_from_ff141b1e4c69b979(arg0) {
|
|
2010
|
+
const ret = Array.from(arg0);
|
|
1871
2011
|
return ret;
|
|
1872
|
-
}
|
|
2012
|
+
}
|
|
1873
2013
|
export function __wbg_getAddressUtxos_9526b6d8078b867e() { return handleError(function (arg0, arg1, arg2) {
|
|
1874
2014
|
let deferred0_0;
|
|
1875
2015
|
let deferred0_1;
|
|
@@ -1910,6 +2050,27 @@ export function __wbg_getContact_35b5c6f2fa25cf9e() { return handleError(functio
|
|
|
1910
2050
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1911
2051
|
}
|
|
1912
2052
|
}, arguments); }
|
|
2053
|
+
export function __wbg_getCrossChainSwap_e3b8fcf14d3d17ce() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2054
|
+
let deferred0_0;
|
|
2055
|
+
let deferred0_1;
|
|
2056
|
+
let deferred1_0;
|
|
2057
|
+
let deferred1_1;
|
|
2058
|
+
try {
|
|
2059
|
+
deferred0_0 = arg1;
|
|
2060
|
+
deferred0_1 = arg2;
|
|
2061
|
+
deferred1_0 = arg3;
|
|
2062
|
+
deferred1_1 = arg4;
|
|
2063
|
+
const ret = arg0.getCrossChainSwap(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2064
|
+
return ret;
|
|
2065
|
+
} finally {
|
|
2066
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2067
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2068
|
+
}
|
|
2069
|
+
}, arguments); }
|
|
2070
|
+
export function __wbg_getIdentityPublicKey_c6fcd87d66ed6927() { return handleError(function (arg0) {
|
|
2071
|
+
const ret = arg0.getIdentityPublicKey();
|
|
2072
|
+
return ret;
|
|
2073
|
+
}, arguments); }
|
|
1913
2074
|
export function __wbg_getLeaves_5259dc2b9de80ff0() { return handleError(function (arg0) {
|
|
1914
2075
|
const ret = arg0.getLeaves();
|
|
1915
2076
|
return ret;
|
|
@@ -1944,12 +2105,8 @@ export function __wbg_getPaymentsByParentIds_7ab066452766ae6d() { return handleE
|
|
|
1944
2105
|
const ret = arg0.getPaymentsByParentIds(v0);
|
|
1945
2106
|
return ret;
|
|
1946
2107
|
}, arguments); }
|
|
1947
|
-
export function
|
|
1948
|
-
const ret = arg0.
|
|
1949
|
-
return ret;
|
|
1950
|
-
}, arguments); }
|
|
1951
|
-
export function __wbg_getPublicKeyFromSecretSource_cecb0b3d2ce521bd() { return handleError(function (arg0, arg1) {
|
|
1952
|
-
const ret = arg0.getPublicKeyFromSecretSource(arg1);
|
|
2108
|
+
export function __wbg_getPublicKeyForLeaf_9826724c9b0c3963() { return handleError(function (arg0, arg1) {
|
|
2109
|
+
const ret = arg0.getPublicKeyForLeaf(arg1);
|
|
1953
2110
|
return ret;
|
|
1954
2111
|
}, arguments); }
|
|
1955
2112
|
export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
|
|
@@ -1974,7 +2131,7 @@ export function __wbg_getRequest_9153d27d6c51b5c7() { return handleError(functio
|
|
|
1974
2131
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1975
2132
|
}
|
|
1976
2133
|
}, arguments); }
|
|
1977
|
-
export function
|
|
2134
|
+
export function __wbg_getSession_95998cc236a30653() { return handleError(function (arg0, arg1, arg2) {
|
|
1978
2135
|
let deferred0_0;
|
|
1979
2136
|
let deferred0_1;
|
|
1980
2137
|
try {
|
|
@@ -1986,18 +2143,10 @@ export function __wbg_getSession_05b1be4bb146adcf() { return handleError(functio
|
|
|
1986
2143
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1987
2144
|
}
|
|
1988
2145
|
}, arguments); }
|
|
1989
|
-
export function
|
|
1990
|
-
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1991
|
-
return ret;
|
|
1992
|
-
}, arguments); }
|
|
1993
|
-
export function __wbg_getStaticDepositPublicKey_8424ddc7bb238008() { return handleError(function (arg0, arg1) {
|
|
2146
|
+
export function __wbg_getStaticDepositPublicKey_9c7c893612c4c53f() { return handleError(function (arg0, arg1) {
|
|
1994
2147
|
const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
|
|
1995
2148
|
return ret;
|
|
1996
2149
|
}, arguments); }
|
|
1997
|
-
export function __wbg_getStaticDepositSecretSource_86007c41c79d2bea() { return handleError(function (arg0, arg1) {
|
|
1998
|
-
const ret = arg0.getStaticDepositSecretSource(arg1 >>> 0);
|
|
1999
|
-
return ret;
|
|
2000
|
-
}, arguments); }
|
|
2001
2150
|
export function __wbg_getTokenBalances_b788cda26e92f342() { return handleError(function (arg0) {
|
|
2002
2151
|
const ret = arg0.getTokenBalances();
|
|
2003
2152
|
return ret;
|
|
@@ -2030,6 +2179,10 @@ export function __wbg_getTransactionStatus_32c49e1985e35d63() { return handleErr
|
|
|
2030
2179
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2031
2180
|
}
|
|
2032
2181
|
}, arguments); }
|
|
2182
|
+
export function __wbg_get_41476db20fef99a8() { return handleError(function (arg0, arg1) {
|
|
2183
|
+
const ret = Reflect.get(arg0, arg1);
|
|
2184
|
+
return ret;
|
|
2185
|
+
}, arguments); }
|
|
2033
2186
|
export function __wbg_get_652f640b3b0b6e3e(arg0, arg1) {
|
|
2034
2187
|
const ret = arg0[arg1 >>> 0];
|
|
2035
2188
|
return ret;
|
|
@@ -2062,7 +2215,7 @@ export function __wbg_headers_de17f740bce997ae(arg0) {
|
|
|
2062
2215
|
const ret = arg0.headers;
|
|
2063
2216
|
return ret;
|
|
2064
2217
|
}
|
|
2065
|
-
export function
|
|
2218
|
+
export function __wbg_hmacSha256_04164bea6bd3c7d4() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2066
2219
|
let deferred1_0;
|
|
2067
2220
|
let deferred1_1;
|
|
2068
2221
|
try {
|
|
@@ -2076,10 +2229,6 @@ export function __wbg_hmacSha256_44b56787dc85796b() { return handleError(functio
|
|
|
2076
2229
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2077
2230
|
}
|
|
2078
2231
|
}, arguments); }
|
|
2079
|
-
export function __wbg_identityPublicKey_157f9d906d49e5c4() { return handleError(function (arg0) {
|
|
2080
|
-
const ret = arg0.identityPublicKey();
|
|
2081
|
-
return ret;
|
|
2082
|
-
}, arguments); }
|
|
2083
2232
|
export function __wbg_insertContact_cc39397cb8e88ff8() { return handleError(function (arg0, arg1) {
|
|
2084
2233
|
const ret = arg0.insertContact(arg1);
|
|
2085
2234
|
return ret;
|
|
@@ -2096,10 +2245,6 @@ export function __wbg_insertPaymentMetadata_0ce664b21d71c9f8() { return handleEr
|
|
|
2096
2245
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2097
2246
|
}
|
|
2098
2247
|
}, arguments); }
|
|
2099
|
-
export function __wbg_insertPayment_830c37c6efef1f8a() { return handleError(function (arg0, arg1) {
|
|
2100
|
-
const ret = arg0.insertPayment(arg1);
|
|
2101
|
-
return ret;
|
|
2102
|
-
}, arguments); }
|
|
2103
2248
|
export function __wbg_instanceof_ArrayBuffer_eab9f28fbec23477(arg0) {
|
|
2104
2249
|
let result;
|
|
2105
2250
|
try {
|
|
@@ -2184,14 +2329,14 @@ export function __wbg_isArray_c6c6ef8308995bcf(arg0) {
|
|
|
2184
2329
|
const ret = Array.isArray(arg0);
|
|
2185
2330
|
return ret;
|
|
2186
2331
|
}
|
|
2187
|
-
export function __wbg_isPrfAvailable_f77f283e48e966e1() { return handleError(function (arg0) {
|
|
2188
|
-
const ret = arg0.isPrfAvailable();
|
|
2189
|
-
return ret;
|
|
2190
|
-
}, arguments); }
|
|
2191
2332
|
export function __wbg_isSafeInteger_3c56c421a5b4cce4(arg0) {
|
|
2192
2333
|
const ret = Number.isSafeInteger(arg0);
|
|
2193
2334
|
return ret;
|
|
2194
2335
|
}
|
|
2336
|
+
export function __wbg_isSupported_0fab0220495a1089() { return handleError(function (arg0) {
|
|
2337
|
+
const ret = arg0.isSupported();
|
|
2338
|
+
return ret;
|
|
2339
|
+
}, arguments); }
|
|
2195
2340
|
export function __wbg_iterator_9d68985a1d096fc2() {
|
|
2196
2341
|
const ret = Symbol.iterator;
|
|
2197
2342
|
return ret;
|
|
@@ -2204,6 +2349,18 @@ export function __wbg_length_ba3c032602efe310(arg0) {
|
|
|
2204
2349
|
const ret = arg0.length;
|
|
2205
2350
|
return ret;
|
|
2206
2351
|
}
|
|
2352
|
+
export function __wbg_listActiveCrossChainSwaps_7339427675c1ddec() { return handleError(function (arg0, arg1, arg2) {
|
|
2353
|
+
let deferred0_0;
|
|
2354
|
+
let deferred0_1;
|
|
2355
|
+
try {
|
|
2356
|
+
deferred0_0 = arg1;
|
|
2357
|
+
deferred0_1 = arg2;
|
|
2358
|
+
const ret = arg0.listActiveCrossChainSwaps(getStringFromWasm0(arg1, arg2));
|
|
2359
|
+
return ret;
|
|
2360
|
+
} finally {
|
|
2361
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2362
|
+
}
|
|
2363
|
+
}, arguments); }
|
|
2207
2364
|
export function __wbg_listContacts_0afeb7e9554fdb74() { return handleError(function (arg0, arg1) {
|
|
2208
2365
|
const ret = arg0.listContacts(arg1);
|
|
2209
2366
|
return ret;
|
|
@@ -2253,6 +2410,10 @@ export function __wbg_new_18865c63fa645c6f() { return handleError(function () {
|
|
|
2253
2410
|
const ret = new Headers();
|
|
2254
2411
|
return ret;
|
|
2255
2412
|
}, arguments); }
|
|
2413
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
2414
|
+
const ret = new Error();
|
|
2415
|
+
return ret;
|
|
2416
|
+
}
|
|
2256
2417
|
export function __wbg_new_2fad8ca02fd00684() {
|
|
2257
2418
|
const ret = new Object();
|
|
2258
2419
|
return ret;
|
|
@@ -2392,6 +2553,30 @@ export function __wbg_postRequest_b7e02f7ec4d8b99b() { return handleError(functi
|
|
|
2392
2553
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2393
2554
|
}
|
|
2394
2555
|
}, arguments); }
|
|
2556
|
+
export function __wbg_prepareClaim_1286899715876e7d() { return handleError(function (arg0, arg1) {
|
|
2557
|
+
const ret = arg0.prepareClaim(arg1);
|
|
2558
|
+
return ret;
|
|
2559
|
+
}, arguments); }
|
|
2560
|
+
export function __wbg_prepareLightningReceive_fe5b5a46a5d5d976() { return handleError(function (arg0, arg1) {
|
|
2561
|
+
const ret = arg0.prepareLightningReceive(arg1);
|
|
2562
|
+
return ret;
|
|
2563
|
+
}, arguments); }
|
|
2564
|
+
export function __wbg_prepareStaticDepositClaim_2aac4f9634448525() { return handleError(function (arg0, arg1) {
|
|
2565
|
+
const ret = arg0.prepareStaticDepositClaim(arg1);
|
|
2566
|
+
return ret;
|
|
2567
|
+
}, arguments); }
|
|
2568
|
+
export function __wbg_prepareStaticDeposit_66175a4078320749() { return handleError(function (arg0, arg1) {
|
|
2569
|
+
const ret = arg0.prepareStaticDeposit(arg1);
|
|
2570
|
+
return ret;
|
|
2571
|
+
}, arguments); }
|
|
2572
|
+
export function __wbg_prepareTokenTransaction_d2e097f1363077c0() { return handleError(function (arg0, arg1) {
|
|
2573
|
+
const ret = arg0.prepareTokenTransaction(arg1);
|
|
2574
|
+
return ret;
|
|
2575
|
+
}, arguments); }
|
|
2576
|
+
export function __wbg_prepareTransfer_f1fd01fccd18c85b() { return handleError(function (arg0, arg1) {
|
|
2577
|
+
const ret = arg0.prepareTransfer(arg1);
|
|
2578
|
+
return ret;
|
|
2579
|
+
}, arguments); }
|
|
2395
2580
|
export function __wbg_process_44c7a14e11e9f69e(arg0) {
|
|
2396
2581
|
const ret = arg0.process;
|
|
2397
2582
|
return ret;
|
|
@@ -2399,6 +2584,10 @@ export function __wbg_process_44c7a14e11e9f69e(arg0) {
|
|
|
2399
2584
|
export function __wbg_prototypesetcall_fd4050e806e1d519(arg0, arg1, arg2) {
|
|
2400
2585
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2401
2586
|
}
|
|
2587
|
+
export function __wbg_push_60a5366c0bb22a7d(arg0, arg1) {
|
|
2588
|
+
const ret = arg0.push(arg1);
|
|
2589
|
+
return ret;
|
|
2590
|
+
}
|
|
2402
2591
|
export function __wbg_queueMicrotask_40ac6ffc2848ba77(arg0) {
|
|
2403
2592
|
queueMicrotask(arg0);
|
|
2404
2593
|
}
|
|
@@ -2486,6 +2675,14 @@ export function __wbg_setCachedItem_a09dafdd0852fcb6() { return handleError(func
|
|
|
2486
2675
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2487
2676
|
}
|
|
2488
2677
|
}, arguments); }
|
|
2678
|
+
export function __wbg_setCrossChainSwap_9047f4cc41fe2eca() { return handleError(function (arg0, arg1) {
|
|
2679
|
+
const ret = arg0.setCrossChainSwap(arg1);
|
|
2680
|
+
return ret;
|
|
2681
|
+
}, arguments); }
|
|
2682
|
+
export function __wbg_setInterval_2aba203c2a1ea83f(arg0, arg1) {
|
|
2683
|
+
const ret = globalThis.setInterval(arg0, arg1);
|
|
2684
|
+
return ret;
|
|
2685
|
+
}
|
|
2489
2686
|
export function __wbg_setLeaves_3a013e3266762f4b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2490
2687
|
const ret = arg0.setLeaves(arg1, arg2, arg3);
|
|
2491
2688
|
return ret;
|
|
@@ -2496,7 +2693,7 @@ export function __wbg_setLnurlMetadata_084b50d8b878f93f() { return handleError(f
|
|
|
2496
2693
|
const ret = arg0.setLnurlMetadata(v0);
|
|
2497
2694
|
return ret;
|
|
2498
2695
|
}, arguments); }
|
|
2499
|
-
export function
|
|
2696
|
+
export function __wbg_setSession_86d7fef1f452677c() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2500
2697
|
let deferred0_0;
|
|
2501
2698
|
let deferred0_1;
|
|
2502
2699
|
try {
|
|
@@ -2588,7 +2785,13 @@ export function __wbg_set_referrer_policy_5afdd37afd73c769(arg0, arg1) {
|
|
|
2588
2785
|
export function __wbg_set_signal_8c5cf4c3b27bd8a8(arg0, arg1) {
|
|
2589
2786
|
arg0.signal = arg1;
|
|
2590
2787
|
}
|
|
2591
|
-
export function
|
|
2788
|
+
export function __wbg_signAuthenticationChallenge_e2ea9cf87c76a6de() { return handleError(function (arg0, arg1, arg2) {
|
|
2789
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
2790
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
2791
|
+
const ret = arg0.signAuthenticationChallenge(v0);
|
|
2792
|
+
return ret;
|
|
2793
|
+
}, arguments); }
|
|
2794
|
+
export function __wbg_signEcdsaRecoverable_978c5526e66a433b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2592
2795
|
let deferred0_0;
|
|
2593
2796
|
let deferred0_1;
|
|
2594
2797
|
try {
|
|
@@ -2600,7 +2803,7 @@ export function __wbg_signEcdsaRecoverable_e1e9c5e2c8ec869f() { return handleErr
|
|
|
2600
2803
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2601
2804
|
}
|
|
2602
2805
|
}, arguments); }
|
|
2603
|
-
export function
|
|
2806
|
+
export function __wbg_signEcdsa_1947a1a2c8f39a16() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2604
2807
|
let deferred0_0;
|
|
2605
2808
|
let deferred0_1;
|
|
2606
2809
|
try {
|
|
@@ -2612,11 +2815,11 @@ export function __wbg_signEcdsa_99eb88e7d9907236() { return handleError(function
|
|
|
2612
2815
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2613
2816
|
}
|
|
2614
2817
|
}, arguments); }
|
|
2615
|
-
export function
|
|
2818
|
+
export function __wbg_signFrost_08951e01d00d4b1c() { return handleError(function (arg0, arg1) {
|
|
2616
2819
|
const ret = arg0.signFrost(arg1);
|
|
2617
2820
|
return ret;
|
|
2618
2821
|
}, arguments); }
|
|
2619
|
-
export function
|
|
2822
|
+
export function __wbg_signHashSchnorr_fc8afda9a7ee021a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2620
2823
|
let deferred1_0;
|
|
2621
2824
|
let deferred1_1;
|
|
2622
2825
|
try {
|
|
@@ -2630,12 +2833,33 @@ export function __wbg_signHashSchnorr_33c182cb4c2323d5() { return handleError(fu
|
|
|
2630
2833
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2631
2834
|
}
|
|
2632
2835
|
}, arguments); }
|
|
2836
|
+
export function __wbg_signMessage_80ec0b0dfc7f00ee() { return handleError(function (arg0, arg1, arg2) {
|
|
2837
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
2838
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
2839
|
+
const ret = arg0.signMessage(v0);
|
|
2840
|
+
return ret;
|
|
2841
|
+
}, arguments); }
|
|
2842
|
+
export function __wbg_signSparkInvoice_cca6c7f35b5e85d2() { return handleError(function (arg0, arg1) {
|
|
2843
|
+
const ret = arg0.signSparkInvoice(arg1);
|
|
2844
|
+
return ret;
|
|
2845
|
+
}, arguments); }
|
|
2846
|
+
export function __wbg_signStaticDepositRefund_3a6fb4e71a15bebd() { return handleError(function (arg0, arg1) {
|
|
2847
|
+
const ret = arg0.signStaticDepositRefund(arg1);
|
|
2848
|
+
return ret;
|
|
2849
|
+
}, arguments); }
|
|
2633
2850
|
export function __wbg_signal_4643ce883b92b553(arg0) {
|
|
2634
2851
|
const ret = arg0.signal;
|
|
2635
2852
|
return ret;
|
|
2636
2853
|
}
|
|
2637
|
-
export function
|
|
2638
|
-
const ret =
|
|
2854
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
2855
|
+
const ret = arg1.stack;
|
|
2856
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2857
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2858
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2859
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2860
|
+
}
|
|
2861
|
+
export function __wbg_startStaticDepositRefund_5b591bbea22aa0d2() { return handleError(function (arg0, arg1) {
|
|
2862
|
+
const ret = arg0.startStaticDepositRefund(arg1);
|
|
2639
2863
|
return ret;
|
|
2640
2864
|
}, arguments); }
|
|
2641
2865
|
export function __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb() {
|
|
@@ -2666,10 +2890,6 @@ export function __wbg_subarray_fbe3cef290e1fa43(arg0, arg1, arg2) {
|
|
|
2666
2890
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2667
2891
|
return ret;
|
|
2668
2892
|
}
|
|
2669
|
-
export function __wbg_subtractPrivateKeys_c66265ac85e781b7() { return handleError(function (arg0, arg1, arg2) {
|
|
2670
|
-
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2671
|
-
return ret;
|
|
2672
|
-
}, arguments); }
|
|
2673
2893
|
export function __wbg_syncAddOutgoingChange_69db2a1430cbd55a() { return handleError(function (arg0, arg1) {
|
|
2674
2894
|
const ret = arg0.syncAddOutgoingChange(arg1);
|
|
2675
2895
|
return ret;
|
|
@@ -2806,109 +3026,131 @@ export function __wbg_wasmsdkcontext_new(arg0) {
|
|
|
2806
3026
|
return ret;
|
|
2807
3027
|
}
|
|
2808
3028
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2809
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2810
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3029
|
+
// 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`.
|
|
3030
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522);
|
|
2811
3031
|
return ret;
|
|
2812
3032
|
}
|
|
2813
3033
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2814
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2815
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3034
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3035
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
|
|
2816
3036
|
return ret;
|
|
2817
3037
|
}
|
|
2818
3038
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
2819
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2820
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3039
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3040
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
|
|
2821
3041
|
return ret;
|
|
2822
3042
|
}
|
|
2823
3043
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
2824
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2825
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3044
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3045
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
|
|
2826
3046
|
return ret;
|
|
2827
3047
|
}
|
|
2828
3048
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
2829
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2830
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3049
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3050
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
|
|
2831
3051
|
return ret;
|
|
2832
3052
|
}
|
|
2833
3053
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
2834
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2835
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3054
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3055
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
2836
3056
|
return ret;
|
|
2837
3057
|
}
|
|
2838
3058
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
2839
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2840
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3059
|
+
// 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`.
|
|
3060
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6);
|
|
2841
3061
|
return ret;
|
|
2842
3062
|
}
|
|
2843
3063
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
2844
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2845
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3064
|
+
// 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`.
|
|
3065
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7);
|
|
2846
3066
|
return ret;
|
|
2847
3067
|
}
|
|
2848
3068
|
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
2849
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2850
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3069
|
+
// 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`.
|
|
3070
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8);
|
|
3071
|
+
return ret;
|
|
3072
|
+
}
|
|
3073
|
+
export function __wbindgen_cast_000000000000000a(arg0, arg1) {
|
|
3074
|
+
// 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`.
|
|
3075
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9);
|
|
3076
|
+
return ret;
|
|
3077
|
+
}
|
|
3078
|
+
export function __wbindgen_cast_000000000000000b(arg0, arg1) {
|
|
3079
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3080
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
2851
3081
|
return ret;
|
|
2852
3082
|
}
|
|
2853
|
-
export function
|
|
3083
|
+
export function __wbindgen_cast_000000000000000c(arg0, arg1) {
|
|
3084
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 420, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3085
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3086
|
+
return ret;
|
|
3087
|
+
}
|
|
3088
|
+
export function __wbindgen_cast_000000000000000d(arg0) {
|
|
2854
3089
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2855
3090
|
const ret = arg0;
|
|
2856
3091
|
return ret;
|
|
2857
3092
|
}
|
|
2858
|
-
export function
|
|
3093
|
+
export function __wbindgen_cast_000000000000000e(arg0) {
|
|
2859
3094
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2860
3095
|
const ret = arg0;
|
|
2861
3096
|
return ret;
|
|
2862
3097
|
}
|
|
2863
|
-
export function
|
|
3098
|
+
export function __wbindgen_cast_000000000000000f(arg0, arg1) {
|
|
2864
3099
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2865
3100
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2866
3101
|
return ret;
|
|
2867
3102
|
}
|
|
2868
|
-
export function
|
|
3103
|
+
export function __wbindgen_cast_0000000000000010(arg0, arg1) {
|
|
2869
3104
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2870
3105
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2871
3106
|
return ret;
|
|
2872
3107
|
}
|
|
2873
|
-
export function
|
|
3108
|
+
export function __wbindgen_cast_0000000000000011(arg0, arg1) {
|
|
2874
3109
|
// Cast intrinsic for `U128 -> Externref`.
|
|
2875
3110
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
2876
3111
|
return ret;
|
|
2877
3112
|
}
|
|
2878
|
-
export function
|
|
3113
|
+
export function __wbindgen_cast_0000000000000012(arg0) {
|
|
2879
3114
|
// Cast intrinsic for `U64 -> Externref`.
|
|
2880
3115
|
const ret = BigInt.asUintN(64, arg0);
|
|
2881
3116
|
return ret;
|
|
2882
3117
|
}
|
|
2883
|
-
export function
|
|
3118
|
+
export function __wbindgen_cast_0000000000000013(arg0, arg1) {
|
|
2884
3119
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2885
3120
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2886
3121
|
// Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
|
|
2887
3122
|
const ret = v0;
|
|
2888
3123
|
return ret;
|
|
2889
3124
|
}
|
|
2890
|
-
export function
|
|
3125
|
+
export function __wbindgen_cast_0000000000000014(arg0, arg1) {
|
|
3126
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3127
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3128
|
+
// Cast intrinsic for `Vector(NamedExternref("CrossChainRoutePair")) -> Externref`.
|
|
3129
|
+
const ret = v0;
|
|
3130
|
+
return ret;
|
|
3131
|
+
}
|
|
3132
|
+
export function __wbindgen_cast_0000000000000015(arg0, arg1) {
|
|
2891
3133
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2892
3134
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2893
|
-
// Cast intrinsic for `Vector(NamedExternref("
|
|
3135
|
+
// Cast intrinsic for `Vector(NamedExternref("ExternalFrostShareResult")) -> Externref`.
|
|
2894
3136
|
const ret = v0;
|
|
2895
3137
|
return ret;
|
|
2896
3138
|
}
|
|
2897
|
-
export function
|
|
3139
|
+
export function __wbindgen_cast_0000000000000016(arg0, arg1) {
|
|
2898
3140
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2899
3141
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2900
3142
|
// Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
|
|
2901
3143
|
const ret = v0;
|
|
2902
3144
|
return ret;
|
|
2903
3145
|
}
|
|
2904
|
-
export function
|
|
3146
|
+
export function __wbindgen_cast_0000000000000017(arg0, arg1) {
|
|
2905
3147
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2906
3148
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
2907
3149
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
2908
3150
|
const ret = v0;
|
|
2909
3151
|
return ret;
|
|
2910
3152
|
}
|
|
2911
|
-
export function
|
|
3153
|
+
export function __wbindgen_cast_0000000000000018(arg0, arg1) {
|
|
2912
3154
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2913
3155
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2914
3156
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -2924,52 +3166,64 @@ export function __wbindgen_init_externref_table() {
|
|
|
2924
3166
|
table.set(offset + 2, true);
|
|
2925
3167
|
table.set(offset + 3, false);
|
|
2926
3168
|
}
|
|
2927
|
-
function
|
|
2928
|
-
wasm.
|
|
3169
|
+
function wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1) {
|
|
3170
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a(arg0, arg1);
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
function wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1) {
|
|
3174
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e(arg0, arg1);
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2) {
|
|
3178
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2(arg0, arg1, arg2);
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2) {
|
|
3182
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2(arg0, arg1, arg2);
|
|
2929
3183
|
}
|
|
2930
3184
|
|
|
2931
|
-
function
|
|
2932
|
-
wasm.
|
|
3185
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2) {
|
|
3186
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3(arg0, arg1, arg2);
|
|
2933
3187
|
}
|
|
2934
3188
|
|
|
2935
|
-
function
|
|
2936
|
-
wasm.
|
|
3189
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2) {
|
|
3190
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4(arg0, arg1, arg2);
|
|
2937
3191
|
}
|
|
2938
3192
|
|
|
2939
|
-
function
|
|
2940
|
-
wasm.
|
|
3193
|
+
function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2) {
|
|
3194
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
|
|
2941
3195
|
}
|
|
2942
3196
|
|
|
2943
|
-
function
|
|
2944
|
-
const ret = wasm.
|
|
3197
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2) {
|
|
3198
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522(arg0, arg1, arg2);
|
|
2945
3199
|
if (ret[1]) {
|
|
2946
3200
|
throw takeFromExternrefTable0(ret[0]);
|
|
2947
3201
|
}
|
|
2948
3202
|
}
|
|
2949
3203
|
|
|
2950
|
-
function
|
|
2951
|
-
const ret = wasm.
|
|
3204
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2) {
|
|
3205
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_6(arg0, arg1, arg2);
|
|
2952
3206
|
if (ret[1]) {
|
|
2953
3207
|
throw takeFromExternrefTable0(ret[0]);
|
|
2954
3208
|
}
|
|
2955
3209
|
}
|
|
2956
3210
|
|
|
2957
|
-
function
|
|
2958
|
-
const ret = wasm.
|
|
3211
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2) {
|
|
3212
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_7(arg0, arg1, arg2);
|
|
2959
3213
|
if (ret[1]) {
|
|
2960
3214
|
throw takeFromExternrefTable0(ret[0]);
|
|
2961
3215
|
}
|
|
2962
3216
|
}
|
|
2963
3217
|
|
|
2964
|
-
function
|
|
2965
|
-
const ret = wasm.
|
|
3218
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2) {
|
|
3219
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_8(arg0, arg1, arg2);
|
|
2966
3220
|
if (ret[1]) {
|
|
2967
3221
|
throw takeFromExternrefTable0(ret[0]);
|
|
2968
3222
|
}
|
|
2969
3223
|
}
|
|
2970
3224
|
|
|
2971
|
-
function
|
|
2972
|
-
const ret = wasm.
|
|
3225
|
+
function wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2) {
|
|
3226
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h62bc116e0c266522_9(arg0, arg1, arg2);
|
|
2973
3227
|
if (ret[1]) {
|
|
2974
3228
|
throw takeFromExternrefTable0(ret[0]);
|
|
2975
3229
|
}
|
|
@@ -3005,9 +3259,15 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
|
|
|
3005
3259
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3006
3260
|
? { register: () => {}, unregister: () => {} }
|
|
3007
3261
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
3008
|
-
const
|
|
3262
|
+
const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3009
3263
|
? { register: () => {}, unregister: () => {} }
|
|
3010
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
3264
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalbreezsignerhandle_free(ptr, 1));
|
|
3265
|
+
const ExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3266
|
+
? { register: () => {}, unregister: () => {} }
|
|
3267
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalsigners_free(ptr, 1));
|
|
3268
|
+
const ExternalSparkSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3269
|
+
? { register: () => {}, unregister: () => {} }
|
|
3270
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalsparksignerhandle_free(ptr, 1));
|
|
3011
3271
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3012
3272
|
? { register: () => {}, unregister: () => {} }
|
|
3013
3273
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
@@ -3017,15 +3277,12 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
3017
3277
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3018
3278
|
? { register: () => {}, unregister: () => {} }
|
|
3019
3279
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
3020
|
-
const
|
|
3280
|
+
const PasskeyClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3021
3281
|
? { register: () => {}, unregister: () => {} }
|
|
3022
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
3023
|
-
const
|
|
3282
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkeyclient_free(ptr, 1));
|
|
3283
|
+
const PasskeyLabelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3024
3284
|
? { register: () => {}, unregister: () => {} }
|
|
3025
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
3026
|
-
const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3027
|
-
? { register: () => {}, unregister: () => {} }
|
|
3028
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
|
|
3285
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkeylabels_free(ptr, 1));
|
|
3029
3286
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3030
3287
|
? { register: () => {}, unregister: () => {} }
|
|
3031
3288
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
@@ -3035,6 +3292,9 @@ const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3035
3292
|
const WasmSdkContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3036
3293
|
? { register: () => {}, unregister: () => {} }
|
|
3037
3294
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsdkcontext_free(ptr, 1));
|
|
3295
|
+
const WasmStorageConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3296
|
+
? { register: () => {}, unregister: () => {} }
|
|
3297
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstorageconfig_free(ptr, 1));
|
|
3038
3298
|
|
|
3039
3299
|
function addToExternrefTable0(obj) {
|
|
3040
3300
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -3166,6 +3426,31 @@ function isLikeNone(x) {
|
|
|
3166
3426
|
return x === undefined || x === null;
|
|
3167
3427
|
}
|
|
3168
3428
|
|
|
3429
|
+
function makeClosure(arg0, arg1, f) {
|
|
3430
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3431
|
+
const real = (...args) => {
|
|
3432
|
+
|
|
3433
|
+
// First up with a closure we increment the internal reference
|
|
3434
|
+
// count. This ensures that the Rust closure environment won't
|
|
3435
|
+
// be deallocated while we're invoking it.
|
|
3436
|
+
state.cnt++;
|
|
3437
|
+
try {
|
|
3438
|
+
return f(state.a, state.b, ...args);
|
|
3439
|
+
} finally {
|
|
3440
|
+
real._wbg_cb_unref();
|
|
3441
|
+
}
|
|
3442
|
+
};
|
|
3443
|
+
real._wbg_cb_unref = () => {
|
|
3444
|
+
if (--state.cnt === 0) {
|
|
3445
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3446
|
+
state.a = 0;
|
|
3447
|
+
CLOSURE_DTORS.unregister(state);
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3450
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
3451
|
+
return real;
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3169
3454
|
function makeMutClosure(arg0, arg1, f) {
|
|
3170
3455
|
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3171
3456
|
const real = (...args) => {
|
|
@@ -3201,6 +3486,16 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
3201
3486
|
return ptr;
|
|
3202
3487
|
}
|
|
3203
3488
|
|
|
3489
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
3490
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
3491
|
+
for (let i = 0; i < array.length; i++) {
|
|
3492
|
+
const add = addToExternrefTable0(array[i]);
|
|
3493
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
3494
|
+
}
|
|
3495
|
+
WASM_VECTOR_LEN = array.length;
|
|
3496
|
+
return ptr;
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3204
3499
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
3205
3500
|
if (realloc === undefined) {
|
|
3206
3501
|
const buf = cachedTextEncoder.encode(arg);
|