@breeztech/breez-sdk-spark-react-native 0.24.1 → 0.26.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.
@@ -74,9 +74,9 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
74
74
  *
75
75
  * * `mnemonic` - BIP39 mnemonic phrase (12 or 24 words)
76
76
  * * `passphrase` - Optional passphrase for the mnemonic
77
- * * `network` - Network to use (Mainnet or Regtest)
77
+ * * `network` - Network to use (Mainnet, Signet, or Regtest)
78
78
  * * `account_number` - Account number in the derivation path. Unset uses the
79
- * network default: 0 on Regtest, 1 on all other networks.
79
+ * network default: 0 on Regtest and Signet, 1 on Mainnet.
80
80
  */export function defaultExternalSigners(mnemonic,passphrase,network,accountNumber)/*throws*/{return FfiConverterTypeExternalSigners.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_default_external_signers(FfiConverterString.lower(mnemonic),FfiConverterOptionalString.lower(passphrase),FfiConverterTypeNetwork.lower(network),FfiConverterOptionalUInt32.lower(accountNumber),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
81
81
  * Builds a [`Config`] suitable for multi-tenant server-mode deployments.
82
82
  *
@@ -452,6 +452,32 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
452
452
  */new:create,/**
453
453
  * Defaults specified in the {@link breez_sdk_spark} crate.
454
454
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCheckMessageResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{isValid:FfiConverterBool.read(from)};}write(value,into){FfiConverterBool.write(value.isValid,into);}allocationSize(value){return FfiConverterBool.allocationSize(value.isValid);}}return new FFIConverter();})();/**
455
+ * Request for `check_unilateral_exit`: the exit you kept from a previous
456
+ * `unilateral_exit`, as you last stored it.
457
+ *//**
458
+ * Generated factory for {@link CheckUnilateralExitRequest} record objects.
459
+ */export const CheckUnilateralExitRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
460
+ * Create a frozen instance of {@link CheckUnilateralExitRequest}, with defaults specified
461
+ * in Rust, in the {@link breez_sdk_spark} crate.
462
+ */create,/**
463
+ * Create a frozen instance of {@link CheckUnilateralExitRequest}, with defaults specified
464
+ * in Rust, in the {@link breez_sdk_spark} crate.
465
+ */new:create,/**
466
+ * Defaults specified in the {@link breez_sdk_spark} crate.
467
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCheckUnilateralExitRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{exit:FfiConverterTypeUnilateralExitResponse.read(from)};}write(value,into){FfiConverterTypeUnilateralExitResponse.write(value.exit,into);}allocationSize(value){return FfiConverterTypeUnilateralExitResponse.allocationSize(value.exit);}}return new FFIConverter();})();/**
468
+ * Result of `check_unilateral_exit`: the same exit, read back against the
469
+ * chain.
470
+ *//**
471
+ * Generated factory for {@link CheckUnilateralExitResponse} record objects.
472
+ */export const CheckUnilateralExitResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
473
+ * Create a frozen instance of {@link CheckUnilateralExitResponse}, with defaults specified
474
+ * in Rust, in the {@link breez_sdk_spark} crate.
475
+ */create,/**
476
+ * Create a frozen instance of {@link CheckUnilateralExitResponse}, with defaults specified
477
+ * in Rust, in the {@link breez_sdk_spark} crate.
478
+ */new:create,/**
479
+ * Defaults specified in the {@link breez_sdk_spark} crate.
480
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCheckUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{exit:FfiConverterTypeUnilateralExitResponse.read(from),verdict:FfiConverterTypeUnilateralExitVerdict.read(from)};}write(value,into){FfiConverterTypeUnilateralExitResponse.write(value.exit,into);FfiConverterTypeUnilateralExitVerdict.write(value.verdict,into);}allocationSize(value){return FfiConverterTypeUnilateralExitResponse.allocationSize(value.exit)+FfiConverterTypeUnilateralExitVerdict.allocationSize(value.verdict);}}return new FFIConverter();})();/**
455
481
  * What one way of claiming a deposit costs.
456
482
  *//**
457
483
  * Generated factory for {@link ClaimDepositQuote} record objects.
@@ -483,7 +509,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
483
509
  * in Rust, in the {@link breez_sdk_spark} crate.
484
510
  */new:create,/**
485
511
  * Defaults specified in the {@link breez_sdk_spark} crate.
486
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payment:FfiConverterOptionalTypePayment.read(from)};}write(value,into){FfiConverterOptionalTypePayment.write(value.payment,into);}allocationSize(value){return FfiConverterOptionalTypePayment.allocationSize(value.payment);}}return new FFIConverter();})();/**
512
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{outcome:FfiConverterTypeClaimDepositOutcome.read(from)};}write(value,into){FfiConverterTypeClaimDepositOutcome.write(value.outcome,into);}allocationSize(value){return FfiConverterTypeClaimDepositOutcome.allocationSize(value.outcome);}}return new FFIConverter();})();/**
487
513
  * Generated factory for {@link ClaimHtlcPaymentRequest} record objects.
488
514
  */export const ClaimHtlcPaymentRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
489
515
  * Create a frozen instance of {@link ClaimHtlcPaymentRequest}, with defaults specified
@@ -528,6 +554,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
528
554
  */new:create,/**
529
555
  * Defaults specified in the {@link breez_sdk_spark} crate.
530
556
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),exitChainAutoFetchEnabled:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),leafOptimizationConfig:FfiConverterTypeLeafOptimizationConfig.read(from),tokenOptimizationConfig:FfiConverterTypeTokenOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),sparkConfig:FfiConverterOptionalTypeSparkConfig.read(from),backgroundTasksEnabled:FfiConverterBool.read(from),proxy:FfiConverterOptionalTypeProxyConfig.read(from),crossChainConfig:FfiConverterOptionalTypeCrossChainConfig.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterBool.write(value.exitChainAutoFetchEnabled,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeLeafOptimizationConfig.write(value.leafOptimizationConfig,into);FfiConverterTypeTokenOptimizationConfig.write(value.tokenOptimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterOptionalTypeSparkConfig.write(value.sparkConfig,into);FfiConverterBool.write(value.backgroundTasksEnabled,into);FfiConverterOptionalTypeProxyConfig.write(value.proxy,into);FfiConverterOptionalTypeCrossChainConfig.write(value.crossChainConfig,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterBool.allocationSize(value.exitChainAutoFetchEnabled)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeLeafOptimizationConfig.allocationSize(value.leafOptimizationConfig)+FfiConverterTypeTokenOptimizationConfig.allocationSize(value.tokenOptimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterOptionalTypeSparkConfig.allocationSize(value.sparkConfig)+FfiConverterBool.allocationSize(value.backgroundTasksEnabled)+FfiConverterOptionalTypeProxyConfig.allocationSize(value.proxy)+FfiConverterOptionalTypeCrossChainConfig.allocationSize(value.crossChainConfig);}}return new FFIConverter();})();/**
557
+ * A node of the exit tree that is already on-chain.
558
+ *//**
559
+ * Generated factory for {@link ConfirmedExitNode} record objects.
560
+ */export const ConfirmedExitNode=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
561
+ * Create a frozen instance of {@link ConfirmedExitNode}, with defaults specified
562
+ * in Rust, in the {@link breez_sdk_spark} crate.
563
+ */create,/**
564
+ * Create a frozen instance of {@link ConfirmedExitNode}, with defaults specified
565
+ * in Rust, in the {@link breez_sdk_spark} crate.
566
+ */new:create,/**
567
+ * Defaults specified in the {@link breez_sdk_spark} crate.
568
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfirmedExitNode=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{nodeId:FfiConverterString.read(from),confirmedBy:FfiConverterTypeExitNodeConfirmation.read(from),blockHeight:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterString.write(value.nodeId,into);FfiConverterTypeExitNodeConfirmation.write(value.confirmedBy,into);FfiConverterOptionalUInt32.write(value.blockHeight,into);}allocationSize(value){return FfiConverterString.allocationSize(value.nodeId)+FfiConverterTypeExitNodeConfirmation.allocationSize(value.confirmedBy)+FfiConverterOptionalUInt32.allocationSize(value.blockHeight);}}return new FFIConverter();})();/**
531
569
  * Generated factory for {@link ConnectRequest} record objects.
532
570
  */export const ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
533
571
  * Create a frozen instance of {@link ConnectRequest}, with defaults specified
@@ -734,6 +772,21 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
734
772
  */new:create,/**
735
773
  * Defaults specified in the {@link breez_sdk_spark} crate.
736
774
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCredentials=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),password:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterString.write(value.password,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterString.allocationSize(value.password);}}return new FFIConverter();})();/**
775
+ * A Spark-side asset a route accepts, with the amount bounds that apply to it.
776
+ *
777
+ * Bounds are per asset rather than per route: the same external endpoint can
778
+ * carry a dust floor when moved as sats and none when moved as a token.
779
+ *//**
780
+ * Generated factory for {@link CrossChainAcceptedAsset} record objects.
781
+ */export const CrossChainAcceptedAsset=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
782
+ * Create a frozen instance of {@link CrossChainAcceptedAsset}, with defaults specified
783
+ * in Rust, in the {@link breez_sdk_spark} crate.
784
+ */create,/**
785
+ * Create a frozen instance of {@link CrossChainAcceptedAsset}, with defaults specified
786
+ * in Rust, in the {@link breez_sdk_spark} crate.
787
+ */new:create,/**
788
+ * Defaults specified in the {@link breez_sdk_spark} crate.
789
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainAcceptedAsset=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{asset:FfiConverterTypeSparkAsset.read(from),limits:FfiConverterOptionalTypeCrossChainRouteLimits.read(from)};}write(value,into){FfiConverterTypeSparkAsset.write(value.asset,into);FfiConverterOptionalTypeCrossChainRouteLimits.write(value.limits,into);}allocationSize(value){return FfiConverterTypeSparkAsset.allocationSize(value.asset)+FfiConverterOptionalTypeCrossChainRouteLimits.allocationSize(value.limits);}}return new FFIConverter();})();/**
737
790
  * Generated factory for {@link CrossChainAddressDetails} record objects.
738
791
  */export const CrossChainAddressDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
739
792
  * Create a frozen instance of {@link CrossChainAddressDetails}, with defaults specified
@@ -759,6 +812,43 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
759
812
  */new:create,/**
760
813
  * Defaults specified in the {@link breez_sdk_spark} crate.
761
814
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{defaultSlippageBps:FfiConverterOptionalUInt32.read(from),defaultTargetOverpayBps:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterOptionalUInt32.write(value.defaultSlippageBps,into);FfiConverterOptionalUInt32.write(value.defaultTargetOverpayBps,into);}allocationSize(value){return FfiConverterOptionalUInt32.allocationSize(value.defaultSlippageBps)+FfiConverterOptionalUInt32.allocationSize(value.defaultTargetOverpayBps);}}return new FFIConverter();})();/**
815
+ * Information about the cross-chain receive quote.
816
+ *//**
817
+ * Generated factory for {@link CrossChainReceiveInfo} record objects.
818
+ */export const CrossChainReceiveInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
819
+ * Create a frozen instance of {@link CrossChainReceiveInfo}, with defaults specified
820
+ * in Rust, in the {@link breez_sdk_spark} crate.
821
+ */create,/**
822
+ * Create a frozen instance of {@link CrossChainReceiveInfo}, with defaults specified
823
+ * in Rust, in the {@link breez_sdk_spark} crate.
824
+ */new:create,/**
825
+ * Defaults specified in the {@link breez_sdk_spark} crate.
826
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainReceiveInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{depositAddress:FfiConverterString.read(from),depositAmount:FfiConverterTypeu128.read(from),expectedReceivedAmount:FfiConverterTypeu128.read(from),destinationAsset:FfiConverterString.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),serviceFeeAssetDecimals:FfiConverterOptionalUInt32.read(from),expiresAt:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.depositAddress,into);FfiConverterTypeu128.write(value.depositAmount,into);FfiConverterTypeu128.write(value.expectedReceivedAmount,into);FfiConverterString.write(value.destinationAsset,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterTypeu128.write(value.serviceFeeAmount,into);FfiConverterOptionalString.write(value.serviceFeeAsset,into);FfiConverterOptionalUInt32.write(value.serviceFeeAssetDecimals,into);FfiConverterUInt64.write(value.expiresAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.depositAddress)+FfiConverterTypeu128.allocationSize(value.depositAmount)+FfiConverterTypeu128.allocationSize(value.expectedReceivedAmount)+FfiConverterString.allocationSize(value.destinationAsset)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterTypeu128.allocationSize(value.serviceFeeAmount)+FfiConverterOptionalString.allocationSize(value.serviceFeeAsset)+FfiConverterOptionalUInt32.allocationSize(value.serviceFeeAssetDecimals)+FfiConverterUInt64.allocationSize(value.expiresAt);}}return new FFIConverter();})();/**
827
+ * Amount bounds a provider publishes for moving a route with one Spark-side
828
+ * asset.
829
+ *
830
+ * A route can enforce a tighter bound than it publishes, so an amount inside
831
+ * these can still be rejected when the payment is prepared.
832
+ *
833
+ * The two groups are independent, and either can be absent: a route may
834
+ * publish a base-unit floor (a dust minimum on a sats-funded route), a USD
835
+ * notional band, both, or neither.
836
+ *
837
+ * `min_amount` / `max_amount` bound the asset that is paid in, so which asset
838
+ * they are denominated in follows the direction: the Spark-side asset on a
839
+ * send, the external asset on a receive. The USD band bounds the order's
840
+ * value and reads the same in both directions.
841
+ *//**
842
+ * Generated factory for {@link CrossChainRouteLimits} record objects.
843
+ */export const CrossChainRouteLimits=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
844
+ * Create a frozen instance of {@link CrossChainRouteLimits}, with defaults specified
845
+ * in Rust, in the {@link breez_sdk_spark} crate.
846
+ */create,/**
847
+ * Create a frozen instance of {@link CrossChainRouteLimits}, with defaults specified
848
+ * in Rust, in the {@link breez_sdk_spark} crate.
849
+ */new:create,/**
850
+ * Defaults specified in the {@link breez_sdk_spark} crate.
851
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRouteLimits=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{minAmount:FfiConverterOptionalTypeu128.read(from),maxAmount:FfiConverterOptionalTypeu128.read(from),minUsdCents:FfiConverterOptionalUInt64.read(from),maxUsdCents:FfiConverterOptionalUInt64.read(from)};}write(value,into){FfiConverterOptionalTypeu128.write(value.minAmount,into);FfiConverterOptionalTypeu128.write(value.maxAmount,into);FfiConverterOptionalUInt64.write(value.minUsdCents,into);FfiConverterOptionalUInt64.write(value.maxUsdCents,into);}allocationSize(value){return FfiConverterOptionalTypeu128.allocationSize(value.minAmount)+FfiConverterOptionalTypeu128.allocationSize(value.maxAmount)+FfiConverterOptionalUInt64.allocationSize(value.minUsdCents)+FfiConverterOptionalUInt64.allocationSize(value.maxUsdCents);}}return new FFIConverter();})();/**
762
852
  * A single route available for cross-chain transfers, tagged with the provider
763
853
  * that offers it. Returned by `get_cross_chain_routes()`.
764
854
  *//**
@@ -771,7 +861,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
771
861
  * in Rust, in the {@link breez_sdk_spark} crate.
772
862
  */new:create,/**
773
863
  * Defaults specified in the {@link breez_sdk_spark} crate.
774
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRoutePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeCrossChainProvider.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),contractAddress:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt8.read(from),exactOutEligible:FfiConverterBool.read(from),supportedSources:FfiConverterArrayTypeSourceAsset.read(from),supportedSourceChains:FfiConverterArrayTypeSourceChain.read(from)};}write(value,into){FfiConverterTypeCrossChainProvider.write(value.provider,into);FfiConverterString.write(value.chain,into);FfiConverterOptionalString.write(value.chainId,into);FfiConverterString.write(value.asset,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterUInt8.write(value.decimals,into);FfiConverterBool.write(value.exactOutEligible,into);FfiConverterArrayTypeSourceAsset.write(value.supportedSources,into);FfiConverterArrayTypeSourceChain.write(value.supportedSourceChains,into);}allocationSize(value){return FfiConverterTypeCrossChainProvider.allocationSize(value.provider)+FfiConverterString.allocationSize(value.chain)+FfiConverterOptionalString.allocationSize(value.chainId)+FfiConverterString.allocationSize(value.asset)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterUInt8.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.exactOutEligible)+FfiConverterArrayTypeSourceAsset.allocationSize(value.supportedSources)+FfiConverterArrayTypeSourceChain.allocationSize(value.supportedSourceChains);}}return new FFIConverter();})();/**
864
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRoutePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeCrossChainProvider.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),contractAddress:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt8.read(from),exactOutEligible:FfiConverterBool.read(from),acceptedAssets:FfiConverterArrayTypeCrossChainAcceptedAsset.read(from),deliveryMethods:FfiConverterArrayTypeDeliveryMethod.read(from)};}write(value,into){FfiConverterTypeCrossChainProvider.write(value.provider,into);FfiConverterString.write(value.chain,into);FfiConverterOptionalString.write(value.chainId,into);FfiConverterString.write(value.asset,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterUInt8.write(value.decimals,into);FfiConverterBool.write(value.exactOutEligible,into);FfiConverterArrayTypeCrossChainAcceptedAsset.write(value.acceptedAssets,into);FfiConverterArrayTypeDeliveryMethod.write(value.deliveryMethods,into);}allocationSize(value){return FfiConverterTypeCrossChainProvider.allocationSize(value.provider)+FfiConverterString.allocationSize(value.chain)+FfiConverterOptionalString.allocationSize(value.chainId)+FfiConverterString.allocationSize(value.asset)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterUInt8.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.exactOutEligible)+FfiConverterArrayTypeCrossChainAcceptedAsset.allocationSize(value.acceptedAssets)+FfiConverterArrayTypeDeliveryMethod.allocationSize(value.deliveryMethods);}}return new FFIConverter();})();/**
775
865
  * Details about a supported currency in the fiat rate feed
776
866
  *//**
777
867
  * Generated factory for {@link CurrencyInfo} record objects.
@@ -793,7 +883,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
793
883
  * in Rust, in the {@link breez_sdk_spark} crate.
794
884
  */new:create,/**
795
885
  * Defaults specified in the {@link breez_sdk_spark} crate.
796
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),isMature:FfiConverterBool.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),refundState:FfiConverterOptionalTypeRefundState.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from),instantClaimStatus:FfiConverterOptionalTypeInstantClaimStatus.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterBool.write(value.isMature,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeRefundState.write(value.refundState,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);FfiConverterOptionalTypeInstantClaimStatus.write(value.instantClaimStatus,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterBool.allocationSize(value.isMature)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeRefundState.allocationSize(value.refundState)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError)+FfiConverterOptionalTypeInstantClaimStatus.allocationSize(value.instantClaimStatus);}}return new FFIConverter();})();/**
886
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),isMature:FfiConverterBool.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),refundState:FfiConverterOptionalTypeRefundState.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from),instantClaimStatus:FfiConverterOptionalTypeInstantClaimStatus.read(from),maxClaimFee:FfiConverterOptionalTypeMaxFee.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterBool.write(value.isMature,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeRefundState.write(value.refundState,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);FfiConverterOptionalTypeInstantClaimStatus.write(value.instantClaimStatus,into);FfiConverterOptionalTypeMaxFee.write(value.maxClaimFee,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterBool.allocationSize(value.isMature)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeRefundState.allocationSize(value.refundState)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError)+FfiConverterOptionalTypeInstantClaimStatus.allocationSize(value.instantClaimStatus)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxClaimFee);}}return new FFIConverter();})();/**
797
887
  * Derived seeds plus the credential observed in the same assertion.
798
888
  *//**
799
889
  * Generated factory for {@link DeriveSeedsOutput} record objects.
@@ -832,6 +922,32 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
832
922
  */new:create,/**
833
923
  * Defaults specified in the {@link breez_sdk_spark} crate.
834
924
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeEcdsaSignatureBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
925
+ * What the chain has already done to an exit's leaves, as
926
+ * `prepare_unilateral_exit` found it. Pass it back to `unilateral_exit`, which
927
+ * builds only the steps it does not cover.
928
+ *//**
929
+ * Generated factory for {@link ExitChainState} record objects.
930
+ */export const ExitChainState=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
931
+ * Create a frozen instance of {@link ExitChainState}, with defaults specified
932
+ * in Rust, in the {@link breez_sdk_spark} crate.
933
+ */create,/**
934
+ * Create a frozen instance of {@link ExitChainState}, with defaults specified
935
+ * in Rust, in the {@link breez_sdk_spark} crate.
936
+ */new:create,/**
937
+ * Defaults specified in the {@link breez_sdk_spark} crate.
938
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitChainState=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{confirmedNodes:FfiConverterArrayTypeConfirmedExitNode.read(from),refunds:FfiConverterArrayTypeExitRefund.read(from),stoppedLeafIds:FfiConverterArrayString.read(from),unverifiedNodeIds:FfiConverterArrayString.read(from),unverifiableConfirmedNodeIds:FfiConverterArrayString.read(from)};}write(value,into){FfiConverterArrayTypeConfirmedExitNode.write(value.confirmedNodes,into);FfiConverterArrayTypeExitRefund.write(value.refunds,into);FfiConverterArrayString.write(value.stoppedLeafIds,into);FfiConverterArrayString.write(value.unverifiedNodeIds,into);FfiConverterArrayString.write(value.unverifiableConfirmedNodeIds,into);}allocationSize(value){return FfiConverterArrayTypeConfirmedExitNode.allocationSize(value.confirmedNodes)+FfiConverterArrayTypeExitRefund.allocationSize(value.refunds)+FfiConverterArrayString.allocationSize(value.stoppedLeafIds)+FfiConverterArrayString.allocationSize(value.unverifiedNodeIds)+FfiConverterArrayString.allocationSize(value.unverifiableConfirmedNodeIds);}}return new FFIConverter();})();/**
939
+ * A leaf's refund as the chain shows it.
940
+ *//**
941
+ * Generated factory for {@link ExitRefund} record objects.
942
+ */export const ExitRefund=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
943
+ * Create a frozen instance of {@link ExitRefund}, with defaults specified
944
+ * in Rust, in the {@link breez_sdk_spark} crate.
945
+ */create,/**
946
+ * Create a frozen instance of {@link ExitRefund}, with defaults specified
947
+ * in Rust, in the {@link breez_sdk_spark} crate.
948
+ */new:create,/**
949
+ * Defaults specified in the {@link breez_sdk_spark} crate.
950
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitRefund=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{leafId:FfiConverterString.read(from),state:FfiConverterTypeExitRefundState.read(from)};}write(value,into){FfiConverterString.write(value.leafId,into);FfiConverterTypeExitRefundState.write(value.state,into);}allocationSize(value){return FfiConverterString.allocationSize(value.leafId)+FfiConverterTypeExitRefundState.allocationSize(value.state);}}return new FFIConverter();})();/**
835
951
  * Result of `export_unilateral_exit_state`: a self-contained copy of the
836
952
  * wallet's exit state, ready to be stored outside the wallet.
837
953
  *//**
@@ -941,6 +1057,19 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
941
1057
  */new:create,/**
942
1058
  * Defaults specified in the {@link breez_sdk_spark} crate.
943
1059
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalInputParser=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{providerId:FfiConverterString.read(from),inputRegex:FfiConverterString.read(from),parserUrl:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.providerId,into);FfiConverterString.write(value.inputRegex,into);FfiConverterString.write(value.parserUrl,into);}allocationSize(value){return FfiConverterString.allocationSize(value.providerId)+FfiConverterString.allocationSize(value.inputRegex)+FfiConverterString.allocationSize(value.parserUrl);}}return new FFIConverter();})();/**
1060
+ * FFI-safe representation of `spark_wallet::LeafSigningKey`: the leaf signing
1061
+ * key derived from `derived_from`.
1062
+ *//**
1063
+ * Generated factory for {@link ExternalLeafSigningKey} record objects.
1064
+ */export const ExternalLeafSigningKey=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1065
+ * Create a frozen instance of {@link ExternalLeafSigningKey}, with defaults specified
1066
+ * in Rust, in the {@link breez_sdk_spark} crate.
1067
+ */create,/**
1068
+ * Create a frozen instance of {@link ExternalLeafSigningKey}, with defaults specified
1069
+ * in Rust, in the {@link breez_sdk_spark} crate.
1070
+ */new:create,/**
1071
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1072
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalLeafSigningKey=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{derivedFrom:FfiConverterTypeExternalTreeNodeId.read(from)};}write(value,into){FfiConverterTypeExternalTreeNodeId.write(value.derivedFrom,into);}allocationSize(value){return FfiConverterTypeExternalTreeNodeId.allocationSize(value.derivedFrom);}}return new FFIConverter();})();/**
944
1073
  * FFI-safe representation of `spark_wallet::NewLeafKey`.
945
1074
  *//**
946
1075
  * Generated factory for {@link ExternalNewLeafKey} record objects.
@@ -1206,8 +1335,9 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1206
1335
  */new:create,/**
1207
1336
  * Defaults specified in the {@link breez_sdk_spark} crate.
1208
1337
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalStartedStaticDepositRefund=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{signingPublicKey:FfiConverterArrayBuffer.read(from),nonceCommitment:FfiConverterTypeExternalFrostCommitments.read(from),userSignature:FfiConverterTypeEcdsaSignatureBytes.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.signingPublicKey,into);FfiConverterTypeExternalFrostCommitments.write(value.nonceCommitment,into);FfiConverterTypeEcdsaSignatureBytes.write(value.userSignature,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.signingPublicKey)+FfiConverterTypeExternalFrostCommitments.allocationSize(value.nonceCommitment)+FfiConverterTypeEcdsaSignatureBytes.allocationSize(value.userSignature);}}return new FFIConverter();})();/**
1209
- * FFI-safe representation of `spark_wallet::TransferLeafInput`. Conveys the old
1210
- * leaf id and the new (post-transfer) leaf id; the signer derives keys from them.
1338
+ * FFI-safe representation of `spark_wallet::TransferLeafInput`. Conveys the
1339
+ * leaf id, the key the leaf is held under and the new (post-transfer) leaf id;
1340
+ * the signer derives the keys from them.
1211
1341
  *//**
1212
1342
  * Generated factory for {@link ExternalTransferLeafInput} record objects.
1213
1343
  */export const ExternalTransferLeafInput=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
@@ -1218,7 +1348,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1218
1348
  * in Rust, in the {@link breez_sdk_spark} crate.
1219
1349
  */new:create,/**
1220
1350
  * Defaults specified in the {@link breez_sdk_spark} crate.
1221
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalTransferLeafInput=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{nodeId:FfiConverterTypeExternalTreeNodeId.read(from),newLeafId:FfiConverterTypeExternalTreeNodeId.read(from)};}write(value,into){FfiConverterTypeExternalTreeNodeId.write(value.nodeId,into);FfiConverterTypeExternalTreeNodeId.write(value.newLeafId,into);}allocationSize(value){return FfiConverterTypeExternalTreeNodeId.allocationSize(value.nodeId)+FfiConverterTypeExternalTreeNodeId.allocationSize(value.newLeafId);}}return new FFIConverter();})();/**
1351
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExternalTransferLeafInput=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{nodeId:FfiConverterTypeExternalTreeNodeId.read(from),newLeafId:FfiConverterTypeExternalTreeNodeId.read(from),signingKey:FfiConverterTypeExternalLeafSigningKey.read(from)};}write(value,into){FfiConverterTypeExternalTreeNodeId.write(value.nodeId,into);FfiConverterTypeExternalTreeNodeId.write(value.newLeafId,into);FfiConverterTypeExternalLeafSigningKey.write(value.signingKey,into);}allocationSize(value){return FfiConverterTypeExternalTreeNodeId.allocationSize(value.nodeId)+FfiConverterTypeExternalTreeNodeId.allocationSize(value.newLeafId)+FfiConverterTypeExternalLeafSigningKey.allocationSize(value.signingKey);}}return new FFIConverter();})();/**
1222
1352
  * FFI-safe representation of `spark_wallet::TreeNodeId`
1223
1353
  *//**
1224
1354
  * Generated factory for {@link ExternalTreeNodeId} record objects.
@@ -1975,7 +2105,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1975
2105
  * in Rust, in the {@link breez_sdk_spark} crate.
1976
2106
  */new:create,/**
1977
2107
  * Defaults specified in the {@link breez_sdk_spark} crate.
1978
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePreparePaymentLinkResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{url:FfiConverterString.read(from),amountSats:FfiConverterUInt64.read(from),estimatedOut:FfiConverterTypeu128.read(from),asset:FfiConverterString.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),expiresAt:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.url,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterTypeu128.write(value.estimatedOut,into);FfiConverterString.write(value.asset,into);FfiConverterTypeu128.write(value.serviceFeeAmount,into);FfiConverterOptionalString.write(value.serviceFeeAsset,into);FfiConverterString.write(value.expiresAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.url)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterTypeu128.allocationSize(value.estimatedOut)+FfiConverterString.allocationSize(value.asset)+FfiConverterTypeu128.allocationSize(value.serviceFeeAmount)+FfiConverterOptionalString.allocationSize(value.serviceFeeAsset)+FfiConverterString.allocationSize(value.expiresAt);}}return new FFIConverter();})();/**
2108
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePreparePaymentLinkResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{url:FfiConverterString.read(from),amountSats:FfiConverterUInt64.read(from),estimatedOut:FfiConverterTypeu128.read(from),asset:FfiConverterString.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),serviceFeeAssetDecimals:FfiConverterOptionalUInt32.read(from),expiresAt:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.url,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterTypeu128.write(value.estimatedOut,into);FfiConverterString.write(value.asset,into);FfiConverterTypeu128.write(value.serviceFeeAmount,into);FfiConverterOptionalString.write(value.serviceFeeAsset,into);FfiConverterOptionalUInt32.write(value.serviceFeeAssetDecimals,into);FfiConverterString.write(value.expiresAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.url)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterTypeu128.allocationSize(value.estimatedOut)+FfiConverterString.allocationSize(value.asset)+FfiConverterTypeu128.allocationSize(value.serviceFeeAmount)+FfiConverterOptionalString.allocationSize(value.serviceFeeAsset)+FfiConverterOptionalUInt32.allocationSize(value.serviceFeeAssetDecimals)+FfiConverterString.allocationSize(value.expiresAt);}}return new FFIConverter();})();/**
1979
2109
  * Generated factory for {@link PrepareSendBatchRequest} record objects.
1980
2110
  */export const PrepareSendBatchRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1981
2111
  * Create a frozen instance of {@link PrepareSendBatchRequest}, with defaults specified
@@ -2040,7 +2170,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2040
2170
  * in Rust, in the {@link breez_sdk_spark} crate.
2041
2171
  */new:create,/**
2042
2172
  * Defaults specified in the {@link breez_sdk_spark} crate.
2043
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{leaves:FfiConverterArrayTypeUnilateralExitLeaf.read(from),recoverableValueSat:FfiConverterUInt64.read(from),totalFeeSat:FfiConverterUInt64.read(from),fanoutFeeSat:FfiConverterUInt64.read(from),singleUtxoFundingSat:FfiConverterUInt64.read(from),perBranchFunding:FfiConverterArrayTypePerBranchFunding.read(from),feeRateSatPerVbyte:FfiConverterUInt64.read(from),destination:FfiConverterString.read(from)};}write(value,into){FfiConverterArrayTypeUnilateralExitLeaf.write(value.leaves,into);FfiConverterUInt64.write(value.recoverableValueSat,into);FfiConverterUInt64.write(value.totalFeeSat,into);FfiConverterUInt64.write(value.fanoutFeeSat,into);FfiConverterUInt64.write(value.singleUtxoFundingSat,into);FfiConverterArrayTypePerBranchFunding.write(value.perBranchFunding,into);FfiConverterUInt64.write(value.feeRateSatPerVbyte,into);FfiConverterString.write(value.destination,into);}allocationSize(value){return FfiConverterArrayTypeUnilateralExitLeaf.allocationSize(value.leaves)+FfiConverterUInt64.allocationSize(value.recoverableValueSat)+FfiConverterUInt64.allocationSize(value.totalFeeSat)+FfiConverterUInt64.allocationSize(value.fanoutFeeSat)+FfiConverterUInt64.allocationSize(value.singleUtxoFundingSat)+FfiConverterArrayTypePerBranchFunding.allocationSize(value.perBranchFunding)+FfiConverterUInt64.allocationSize(value.feeRateSatPerVbyte)+FfiConverterString.allocationSize(value.destination);}}return new FFIConverter();})();/**
2173
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{leaves:FfiConverterArrayTypeUnilateralExitLeaf.read(from),recoverableValueSat:FfiConverterUInt64.read(from),totalFeeSat:FfiConverterUInt64.read(from),cpfpFeeSat:FfiConverterUInt64.read(from),fanoutFeeSat:FfiConverterUInt64.read(from),sweepFeeSat:FfiConverterUInt64.read(from),singleUtxoFundingSat:FfiConverterUInt64.read(from),perBranchFunding:FfiConverterArrayTypePerBranchFunding.read(from),feeRateSatPerVbyte:FfiConverterUInt64.read(from),destination:FfiConverterString.read(from),exitChainState:FfiConverterTypeExitChainState.read(from)};}write(value,into){FfiConverterArrayTypeUnilateralExitLeaf.write(value.leaves,into);FfiConverterUInt64.write(value.recoverableValueSat,into);FfiConverterUInt64.write(value.totalFeeSat,into);FfiConverterUInt64.write(value.cpfpFeeSat,into);FfiConverterUInt64.write(value.fanoutFeeSat,into);FfiConverterUInt64.write(value.sweepFeeSat,into);FfiConverterUInt64.write(value.singleUtxoFundingSat,into);FfiConverterArrayTypePerBranchFunding.write(value.perBranchFunding,into);FfiConverterUInt64.write(value.feeRateSatPerVbyte,into);FfiConverterString.write(value.destination,into);FfiConverterTypeExitChainState.write(value.exitChainState,into);}allocationSize(value){return FfiConverterArrayTypeUnilateralExitLeaf.allocationSize(value.leaves)+FfiConverterUInt64.allocationSize(value.recoverableValueSat)+FfiConverterUInt64.allocationSize(value.totalFeeSat)+FfiConverterUInt64.allocationSize(value.cpfpFeeSat)+FfiConverterUInt64.allocationSize(value.fanoutFeeSat)+FfiConverterUInt64.allocationSize(value.sweepFeeSat)+FfiConverterUInt64.allocationSize(value.singleUtxoFundingSat)+FfiConverterArrayTypePerBranchFunding.allocationSize(value.perBranchFunding)+FfiConverterUInt64.allocationSize(value.feeRateSatPerVbyte)+FfiConverterString.allocationSize(value.destination)+FfiConverterTypeExitChainState.allocationSize(value.exitChainState);}}return new FFIConverter();})();/**
2044
2174
  * Generated factory for {@link ProvisionalPayment} record objects.
2045
2175
  */export const ProvisionalPayment=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
2046
2176
  * Create a frozen instance of {@link ProvisionalPayment}, with defaults specified
@@ -2135,7 +2265,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2135
2265
  * in Rust, in the {@link breez_sdk_spark} crate.
2136
2266
  */new:create,/**
2137
2267
  * Defaults specified in the {@link breez_sdk_spark} crate.
2138
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeReceivePaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterString.write(value.paymentRequest,into);FfiConverterTypeu128.write(value.fee,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentRequest)+FfiConverterTypeu128.allocationSize(value.fee);}}return new FFIConverter();})();/**
2268
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeReceivePaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),crossChainInfo:FfiConverterOptionalTypeCrossChainReceiveInfo.read(from)};}write(value,into){FfiConverterString.write(value.paymentRequest,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterOptionalTypeCrossChainReceiveInfo.write(value.crossChainInfo,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentRequest)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeCrossChainReceiveInfo.allocationSize(value.crossChainInfo);}}return new FFIConverter();})();/**
2139
2269
  * Generated factory for {@link RecommendedFees} record objects.
2140
2270
  */export const RecommendedFees=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
2141
2271
  * Create a frozen instance of {@link RecommendedFees}, with defaults specified
@@ -2366,7 +2496,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2366
2496
  * in Rust, in the {@link breez_sdk_spark} crate.
2367
2497
  */new:create,/**
2368
2498
  * Defaults specified in the {@link breez_sdk_spark} crate.
2369
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSendOnchainFeeQuote=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),expiresAt:FfiConverterUInt64.read(from),speedFast:FfiConverterTypeSendOnchainSpeedFeeQuote.read(from),speedMedium:FfiConverterTypeSendOnchainSpeedFeeQuote.read(from),speedSlow:FfiConverterTypeSendOnchainSpeedFeeQuote.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterUInt64.write(value.expiresAt,into);FfiConverterTypeSendOnchainSpeedFeeQuote.write(value.speedFast,into);FfiConverterTypeSendOnchainSpeedFeeQuote.write(value.speedMedium,into);FfiConverterTypeSendOnchainSpeedFeeQuote.write(value.speedSlow,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterUInt64.allocationSize(value.expiresAt)+FfiConverterTypeSendOnchainSpeedFeeQuote.allocationSize(value.speedFast)+FfiConverterTypeSendOnchainSpeedFeeQuote.allocationSize(value.speedMedium)+FfiConverterTypeSendOnchainSpeedFeeQuote.allocationSize(value.speedSlow);}}return new FFIConverter();})();/**
2499
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSendOnchainFeeQuote=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),expiresAt:FfiConverterUInt64.read(from),speedFast:FfiConverterTypeSendOnchainSpeedFeeQuote.read(from),speedMedium:FfiConverterTypeSendOnchainSpeedFeeQuote.read(from),speedSlow:FfiConverterTypeSendOnchainSpeedFeeQuote.read(from),isEstimate:FfiConverterBool.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterUInt64.write(value.expiresAt,into);FfiConverterTypeSendOnchainSpeedFeeQuote.write(value.speedFast,into);FfiConverterTypeSendOnchainSpeedFeeQuote.write(value.speedMedium,into);FfiConverterTypeSendOnchainSpeedFeeQuote.write(value.speedSlow,into);FfiConverterBool.write(value.isEstimate,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterUInt64.allocationSize(value.expiresAt)+FfiConverterTypeSendOnchainSpeedFeeQuote.allocationSize(value.speedFast)+FfiConverterTypeSendOnchainSpeedFeeQuote.allocationSize(value.speedMedium)+FfiConverterTypeSendOnchainSpeedFeeQuote.allocationSize(value.speedSlow)+FfiConverterBool.allocationSize(value.isEstimate);}}return new FFIConverter();})();/**
2370
2500
  * Generated factory for {@link SendOnchainSpeedFeeQuote} record objects.
2371
2501
  */export const SendOnchainSpeedFeeQuote=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
2372
2502
  * Create a frozen instance of {@link SendOnchainSpeedFeeQuote}, with defaults specified
@@ -2614,9 +2744,8 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2614
2744
  * Configuration for automatic conversion of Bitcoin to stable tokens.
2615
2745
  *
2616
2746
  * When configured, the SDK automatically monitors the Bitcoin balance after each
2617
- * wallet sync. When the balance exceeds the configured threshold plus the reserved
2618
- * amount, the SDK automatically converts the excess balance (above the reserve)
2619
- * to the active stable token.
2747
+ * wallet sync. Once the balance reaches the configured threshold, the SDK converts
2748
+ * the whole Bitcoin balance to the active stable token.
2620
2749
  *
2621
2750
  * When the balance is held in a stable token, Bitcoin payments can still be sent.
2622
2751
  * The SDK automatically detects when there's not enough Bitcoin balance to cover a
@@ -2855,7 +2984,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2855
2984
  * in Rust, in the {@link breez_sdk_spark} crate.
2856
2985
  */new:create,/**
2857
2986
  * Defaults specified in the {@link breez_sdk_spark} crate.
2858
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{recoverableValueSat:FfiConverterUInt64.read(from),totalFeeSat:FfiConverterUInt64.read(from),leaves:FfiConverterArrayTypeUnilateralExitLeaf.read(from),transactions:FfiConverterArrayTypeUnilateralExitTransaction.read(from)};}write(value,into){FfiConverterUInt64.write(value.recoverableValueSat,into);FfiConverterUInt64.write(value.totalFeeSat,into);FfiConverterArrayTypeUnilateralExitLeaf.write(value.leaves,into);FfiConverterArrayTypeUnilateralExitTransaction.write(value.transactions,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.recoverableValueSat)+FfiConverterUInt64.allocationSize(value.totalFeeSat)+FfiConverterArrayTypeUnilateralExitLeaf.allocationSize(value.leaves)+FfiConverterArrayTypeUnilateralExitTransaction.allocationSize(value.transactions);}}return new FFIConverter();})();/**
2987
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{recoverableValueSat:FfiConverterUInt64.read(from),totalFeeSat:FfiConverterUInt64.read(from),cpfpFeeSat:FfiConverterUInt64.read(from),fanoutFeeSat:FfiConverterUInt64.read(from),sweepFeeSat:FfiConverterUInt64.read(from),leaves:FfiConverterArrayTypeUnilateralExitLeaf.read(from),transactions:FfiConverterArrayTypeUnilateralExitTransaction.read(from),fundingInputs:FfiConverterArrayTypeCpfpInput.read(from)};}write(value,into){FfiConverterUInt64.write(value.recoverableValueSat,into);FfiConverterUInt64.write(value.totalFeeSat,into);FfiConverterUInt64.write(value.cpfpFeeSat,into);FfiConverterUInt64.write(value.fanoutFeeSat,into);FfiConverterUInt64.write(value.sweepFeeSat,into);FfiConverterArrayTypeUnilateralExitLeaf.write(value.leaves,into);FfiConverterArrayTypeUnilateralExitTransaction.write(value.transactions,into);FfiConverterArrayTypeCpfpInput.write(value.fundingInputs,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.recoverableValueSat)+FfiConverterUInt64.allocationSize(value.totalFeeSat)+FfiConverterUInt64.allocationSize(value.cpfpFeeSat)+FfiConverterUInt64.allocationSize(value.fanoutFeeSat)+FfiConverterUInt64.allocationSize(value.sweepFeeSat)+FfiConverterArrayTypeUnilateralExitLeaf.allocationSize(value.leaves)+FfiConverterArrayTypeUnilateralExitTransaction.allocationSize(value.transactions)+FfiConverterArrayTypeCpfpInput.allocationSize(value.fundingInputs);}}return new FFIConverter();})();/**
2859
2988
  * One transaction in the unilateral exit path, with everything needed to
2860
2989
  * order and broadcast it.
2861
2990
  *//**
@@ -2868,7 +2997,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2868
2997
  * in Rust, in the {@link breez_sdk_spark} crate.
2869
2998
  */new:create,/**
2870
2999
  * Defaults specified in the {@link breez_sdk_spark} crate.
2871
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{kind:FfiConverterTypeUnilateralExitTxKind.read(from),nodeId:FfiConverterOptionalString.read(from),txid:FfiConverterString.read(from),txHex:FfiConverterString.read(from),cpfpTxHex:FfiConverterOptionalString.read(from),csvTimelockBlocks:FfiConverterOptionalUInt32.read(from),dependsOn:FfiConverterArrayString.read(from),status:FfiConverterTypeConfirmationStatus.read(from)};}write(value,into){FfiConverterTypeUnilateralExitTxKind.write(value.kind,into);FfiConverterOptionalString.write(value.nodeId,into);FfiConverterString.write(value.txid,into);FfiConverterString.write(value.txHex,into);FfiConverterOptionalString.write(value.cpfpTxHex,into);FfiConverterOptionalUInt32.write(value.csvTimelockBlocks,into);FfiConverterArrayString.write(value.dependsOn,into);FfiConverterTypeConfirmationStatus.write(value.status,into);}allocationSize(value){return FfiConverterTypeUnilateralExitTxKind.allocationSize(value.kind)+FfiConverterOptionalString.allocationSize(value.nodeId)+FfiConverterString.allocationSize(value.txid)+FfiConverterString.allocationSize(value.txHex)+FfiConverterOptionalString.allocationSize(value.cpfpTxHex)+FfiConverterOptionalUInt32.allocationSize(value.csvTimelockBlocks)+FfiConverterArrayString.allocationSize(value.dependsOn)+FfiConverterTypeConfirmationStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
3000
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{kind:FfiConverterTypeUnilateralExitTxKind.read(from),nodeId:FfiConverterOptionalString.read(from),txid:FfiConverterString.read(from),txHex:FfiConverterString.read(from),cpfpTxHex:FfiConverterOptionalString.read(from),csvTimelockBlocks:FfiConverterOptionalUInt32.read(from),dependsOn:FfiConverterArrayString.read(from),status:FfiConverterTypeExitTransactionStatus.read(from)};}write(value,into){FfiConverterTypeUnilateralExitTxKind.write(value.kind,into);FfiConverterOptionalString.write(value.nodeId,into);FfiConverterString.write(value.txid,into);FfiConverterString.write(value.txHex,into);FfiConverterOptionalString.write(value.cpfpTxHex,into);FfiConverterOptionalUInt32.write(value.csvTimelockBlocks,into);FfiConverterArrayString.write(value.dependsOn,into);FfiConverterTypeExitTransactionStatus.write(value.status,into);}allocationSize(value){return FfiConverterTypeUnilateralExitTxKind.allocationSize(value.kind)+FfiConverterOptionalString.allocationSize(value.nodeId)+FfiConverterString.allocationSize(value.txid)+FfiConverterString.allocationSize(value.txHex)+FfiConverterOptionalString.allocationSize(value.cpfpTxHex)+FfiConverterOptionalUInt32.allocationSize(value.csvTimelockBlocks)+FfiConverterArrayString.allocationSize(value.dependsOn)+FfiConverterTypeExitTransactionStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
2872
3001
  * Request to unregister an existing webhook.
2873
3002
  *//**
2874
3003
  * Generated factory for {@link UnregisterWebhookRequest} record objects.
@@ -2967,6 +3096,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
2967
3096
  */new:create,/**
2968
3097
  * Defaults specified in the {@link breez_sdk_spark} crate.
2969
3098
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWalletSetup=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{wallet:FfiConverterTypeWallet.read(from),credentialId:FfiConverterOptionalArrayBuffer.read(from)};}write(value,into){FfiConverterTypeWallet.write(value.wallet,into);FfiConverterOptionalArrayBuffer.write(value.credentialId,into);}allocationSize(value){return FfiConverterTypeWallet.allocationSize(value.wallet)+FfiConverterOptionalArrayBuffer.allocationSize(value.credentialId);}}return new FFIConverter();})();/**
3099
+ * A static deposit address being watched on-chain for unconfirmed deposits.
3100
+ *//**
3101
+ * Generated factory for {@link WatchedDepositAddress} record objects.
3102
+ */export const WatchedDepositAddress=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
3103
+ * Create a frozen instance of {@link WatchedDepositAddress}, with defaults specified
3104
+ * in Rust, in the {@link breez_sdk_spark} crate.
3105
+ */create,/**
3106
+ * Create a frozen instance of {@link WatchedDepositAddress}, with defaults specified
3107
+ * in Rust, in the {@link breez_sdk_spark} crate.
3108
+ */new:create,/**
3109
+ * Defaults specified in the {@link breez_sdk_spark} crate.
3110
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWatchedDepositAddress=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{address:FfiConverterString.read(from),issuedAt:FfiConverterUInt64.read(from),seen:FfiConverterBool.read(from)};}write(value,into){FfiConverterString.write(value.address,into);FfiConverterUInt64.write(value.issuedAt,into);FfiConverterBool.write(value.seen,into);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterUInt64.allocationSize(value.issuedAt)+FfiConverterBool.allocationSize(value.seen);}}return new FFIConverter();})();/**
2970
3111
  * A registered webhook entry.
2971
3112
  *//**
2972
3113
  * Generated factory for {@link Webhook} record objects.
@@ -3120,27 +3261,89 @@ export let BuyBitcoinRequest_Tags=/*#__PURE__*/function(BuyBitcoinRequest_Tags){
3120
3261
  const FfiConverterTypeBuyBitcoinRequest=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new BuyBitcoinRequest.Moonpay({lockedAmountSat:FfiConverterOptionalUInt64.read(from),redirectUrl:FfiConverterOptionalString.read(from)});case 2:return new BuyBitcoinRequest.CashApp({amountSats:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalUInt64.write(inner.lockedAmountSat,into);FfiConverterOptionalString.write(inner.redirectUrl,into);return;}case BuyBitcoinRequest_Tags.CashApp:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt64.write(inner.amountSats,into);return;}default:// Throwing from here means that BuyBitcoinRequest_Tags hasn't matched an ordinal.
3121
3262
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt64.allocationSize(inner.lockedAmountSat);size+=FfiConverterOptionalString.allocationSize(inner.redirectUrl);return size;}case BuyBitcoinRequest_Tags.CashApp:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.amountSats);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let ChainApiType=/*#__PURE__*/function(ChainApiType){ChainApiType[ChainApiType["Esplora"]=0]="Esplora";ChainApiType[ChainApiType["MempoolSpace"]=1]="MempoolSpace";return ChainApiType;}({});const FfiConverterTypeChainApiType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ChainApiType.Esplora;case 2:return ChainApiType.MempoolSpace;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ChainApiType.Esplora:return ordinalConverter.write(1,into);case ChainApiType.MempoolSpace:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: ChainServiceError
3122
3263
  // Enum: ChainServiceError
3123
- export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){ChainServiceError_Tags["InvalidAddress"]="InvalidAddress";ChainServiceError_Tags["ServiceConnectivity"]="ServiceConnectivity";ChainServiceError_Tags["Generic"]="Generic";return ChainServiceError_Tags;}({});export const ChainServiceError=(()=>{class InvalidAddress_ extends UniffiError{/**
3264
+ export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){ChainServiceError_Tags["InvalidAddress"]="InvalidAddress";ChainServiceError_Tags["ServiceConnectivity"]="ServiceConnectivity";ChainServiceError_Tags["NotFound"]="NotFound";ChainServiceError_Tags["Generic"]="Generic";return ChainServiceError_Tags;}({});export const ChainServiceError=(()=>{class InvalidAddress_ extends UniffiError{/**
3124
3265
  * @private
3125
3266
  * This field is private and should not be used, use `tag` instead.
3126
3267
  */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.InvalidAddress;constructor(v0){super('ChainServiceError','InvalidAddress');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidAddress_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.InvalidAddress;}static hasInner(obj){return InvalidAddress_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class ServiceConnectivity_ extends UniffiError{/**
3127
3268
  * @private
3128
3269
  * This field is private and should not be used, use `tag` instead.
3129
- */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.ServiceConnectivity;constructor(v0){super('ChainServiceError','ServiceConnectivity');this.inner=Object.freeze([v0]);}static new(v0){return new ServiceConnectivity_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.ServiceConnectivity;}static hasInner(obj){return ServiceConnectivity_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
3270
+ */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.ServiceConnectivity;constructor(v0){super('ChainServiceError','ServiceConnectivity');this.inner=Object.freeze([v0]);}static new(v0){return new ServiceConnectivity_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.ServiceConnectivity;}static hasInner(obj){return ServiceConnectivity_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
3271
+ * The backend does not know this transaction or output. Distinct from a
3272
+ * connectivity failure: it is an answer, not the absence of one.
3273
+ */class NotFound_ extends UniffiError{/**
3274
+ * @private
3275
+ * This field is private and should not be used, use `tag` instead.
3276
+ */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.NotFound;constructor(v0){super('ChainServiceError','NotFound');this.inner=Object.freeze([v0]);}static new(v0){return new NotFound_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.NotFound;}static hasInner(obj){return NotFound_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
3277
+ * @private
3278
+ * This field is private and should not be used, use `tag` instead.
3279
+ */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.Generic;constructor(v0){super('ChainServiceError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ChainServiceError';}return Object.freeze({instanceOf,InvalidAddress:InvalidAddress_,ServiceConnectivity:ServiceConnectivity_,NotFound:NotFound_,Generic:Generic_});})();// FfiConverter for enum ChainServiceError
3280
+ const FfiConverterTypeChainServiceError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ChainServiceError.InvalidAddress(FfiConverterString.read(from));case 2:return new ChainServiceError.ServiceConnectivity(FfiConverterString.read(from));case 3:return new ChainServiceError.NotFound(FfiConverterString.read(from));case 4:return new ChainServiceError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.ServiceConnectivity:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.NotFound:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.Generic:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ChainServiceError_Tags hasn't matched an ordinal.
3281
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.NotFound:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ClaimDeferredReason
3282
+ export let ClaimDeferredReason_Tags=/*#__PURE__*/function(ClaimDeferredReason_Tags){ClaimDeferredReason_Tags["MaxFeeExceeded"]="MaxFeeExceeded";ClaimDeferredReason_Tags["NoEarlyClaimAvailable"]="NoEarlyClaimAvailable";ClaimDeferredReason_Tags["ProviderDeclined"]="ProviderDeclined";return ClaimDeferredReason_Tags;}({});/**
3283
+ * Why a claim was deferred rather than made.
3284
+ */export const ClaimDeferredReason=(()=>{/**
3285
+ * Claiming ahead of maturity costs more than the fee ceiling allows. Unlike a
3286
+ * depth that has not arrived, this does not clear on its own: the deposit is
3287
+ * claimed at maturity unless the ceiling is raised.
3288
+ *
3289
+ * `required_fee_sats` is what the early claim would have cost, so a caller can
3290
+ * offer it at that price rather than quoting again.
3291
+ */class MaxFeeExceeded_ extends UniffiEnum{/**
3292
+ * @private
3293
+ * This field is private and should not be used, use `tag` instead.
3294
+ */[uniffiTypeNameSymbol]='ClaimDeferredReason';tag=ClaimDeferredReason_Tags.MaxFeeExceeded;constructor(inner){super('ClaimDeferredReason','MaxFeeExceeded');this.inner=Object.freeze(inner);}static new(inner){return new MaxFeeExceeded_(inner);}static instanceOf(obj){return obj.tag===ClaimDeferredReason_Tags.MaxFeeExceeded;}}/**
3295
+ * The provider offers no early claim at the deposit's current depth, either
3296
+ * because it is too shallow for any plan or because none was offered for it.
3297
+ * Depth is the usual cause, and it resolves itself: the next confirmation may
3298
+ * well bring an early claim within reach.
3299
+ */class NoEarlyClaimAvailable_ extends UniffiEnum{/**
3130
3300
  * @private
3131
3301
  * This field is private and should not be used, use `tag` instead.
3132
- */[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.Generic;constructor(v0){super('ChainServiceError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ChainServiceError';}return Object.freeze({instanceOf,InvalidAddress:InvalidAddress_,ServiceConnectivity:ServiceConnectivity_,Generic:Generic_});})();// FfiConverter for enum ChainServiceError
3133
- const FfiConverterTypeChainServiceError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ChainServiceError.InvalidAddress(FfiConverterString.read(from));case 2:return new ChainServiceError.ServiceConnectivity(FfiConverterString.read(from));case 3:return new ChainServiceError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.ServiceConnectivity:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.Generic:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ChainServiceError_Tags hasn't matched an ordinal.
3134
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
3135
- * Whether a transaction in the exit path is already on-chain.
3136
- */export let ConfirmationStatus=/*#__PURE__*/function(ConfirmationStatus){/**
3137
- * This transaction is confirmed in a block. It needs no action.
3138
- */ConfirmationStatus[ConfirmationStatus["Confirmed"]=0]="Confirmed";/**
3139
- * This transaction is not yet confirmed. Mempool state is not consulted.
3140
- */ConfirmationStatus[ConfirmationStatus["Unconfirmed"]=1]="Unconfirmed";/**
3141
- * The on-chain status could not be determined (the chain service errored).
3142
- * Broadcasting may fail if a conflicting transaction already landed.
3143
- */ConfirmationStatus[ConfirmationStatus["Unverified"]=2]="Unverified";return ConfirmationStatus;}({});const FfiConverterTypeConfirmationStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConfirmationStatus.Confirmed;case 2:return ConfirmationStatus.Unconfirmed;case 3:return ConfirmationStatus.Unverified;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConfirmationStatus.Confirmed:return ordinalConverter.write(1,into);case ConfirmationStatus.Unconfirmed:return ordinalConverter.write(2,into);case ConfirmationStatus.Unverified:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionChain
3302
+ */[uniffiTypeNameSymbol]='ClaimDeferredReason';tag=ClaimDeferredReason_Tags.NoEarlyClaimAvailable;constructor(){super('ClaimDeferredReason','NoEarlyClaimAvailable');}static new(){return new NoEarlyClaimAvailable_();}static instanceOf(obj){return obj.tag===ClaimDeferredReason_Tags.NoEarlyClaimAvailable;}}/**
3303
+ * The provider refused the early claim or could not be reached, so nothing was
3304
+ * submitted. Unlike a depth that has not arrived, waiting for a confirmation
3305
+ * does not address this, and the deposit is claimed at maturity unless a later
3306
+ * call succeeds. `message` is what the provider or the transport reported.
3307
+ */class ProviderDeclined_ extends UniffiEnum{/**
3308
+ * @private
3309
+ * This field is private and should not be used, use `tag` instead.
3310
+ */[uniffiTypeNameSymbol]='ClaimDeferredReason';tag=ClaimDeferredReason_Tags.ProviderDeclined;constructor(inner){super('ClaimDeferredReason','ProviderDeclined');this.inner=Object.freeze(inner);}static new(inner){return new ProviderDeclined_(inner);}static instanceOf(obj){return obj.tag===ClaimDeferredReason_Tags.ProviderDeclined;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ClaimDeferredReason';}return Object.freeze({instanceOf,MaxFeeExceeded:MaxFeeExceeded_,NoEarlyClaimAvailable:NoEarlyClaimAvailable_,ProviderDeclined:ProviderDeclined_});})();/**
3311
+ * Why a claim was deferred rather than made.
3312
+ */// FfiConverter for enum ClaimDeferredReason
3313
+ const FfiConverterTypeClaimDeferredReason=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ClaimDeferredReason.MaxFeeExceeded({requiredFeeSats:FfiConverterUInt64.read(from),maxFeeSats:FfiConverterUInt64.read(from)});case 2:return new ClaimDeferredReason.NoEarlyClaimAvailable();case 3:return new ClaimDeferredReason.ProviderDeclined({message:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ClaimDeferredReason_Tags.MaxFeeExceeded:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.maxFeeSats,into);return;}case ClaimDeferredReason_Tags.NoEarlyClaimAvailable:{ordinalConverter.write(2,into);return;}case ClaimDeferredReason_Tags.ProviderDeclined:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.message,into);return;}default:// Throwing from here means that ClaimDeferredReason_Tags hasn't matched an ordinal.
3314
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ClaimDeferredReason_Tags.MaxFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.maxFeeSats);return size;}case ClaimDeferredReason_Tags.NoEarlyClaimAvailable:{return ordinalConverter.allocationSize(2);}case ClaimDeferredReason_Tags.ProviderDeclined:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.message);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ClaimDepositOutcome
3315
+ export let ClaimDepositOutcome_Tags=/*#__PURE__*/function(ClaimDepositOutcome_Tags){ClaimDepositOutcome_Tags["Settled"]="Settled";ClaimDepositOutcome_Tags["Submitted"]="Submitted";ClaimDepositOutcome_Tags["Deferred"]="Deferred";return ClaimDepositOutcome_Tags;}({});/**
3316
+ * What became of a claim.
3317
+ */export const ClaimDepositOutcome=(()=>{/**
3318
+ * Claimed at maturity and settled, carrying the payment it produced.
3319
+ */class Settled_ extends UniffiEnum{/**
3320
+ * @private
3321
+ * This field is private and should not be used, use `tag` instead.
3322
+ */[uniffiTypeNameSymbol]='ClaimDepositOutcome';tag=ClaimDepositOutcome_Tags.Settled;constructor(inner){super('ClaimDepositOutcome','Settled');this.inner=Object.freeze(inner);}static new(inner){return new Settled_(inner);}static instanceOf(obj){return obj.tag===ClaimDepositOutcome_Tags.Settled;}}/**
3323
+ * Claimed ahead of maturity and submitted. The transfer settles
3324
+ * asynchronously, so no payment is returned yet: watch for it via events or
3325
+ * `list_payments`.
3326
+ */class Submitted_ extends UniffiEnum{/**
3327
+ * @private
3328
+ * This field is private and should not be used, use `tag` instead.
3329
+ */[uniffiTypeNameSymbol]='ClaimDepositOutcome';tag=ClaimDepositOutcome_Tags.Submitted;constructor(){super('ClaimDepositOutcome','Submitted');}static new(){return new Submitted_();}static instanceOf(obj){return obj.tag===ClaimDepositOutcome_Tags.Submitted;}}/**
3330
+ * Nothing was claimed yet, and no further call is needed: any fee ceiling this
3331
+ * one asked for stands on the deposit, and the SDK keeps claiming it on its
3332
+ * own. An early claim is attempted again as the deposit gains confirmations,
3333
+ * so one declined for being too shallow is often claimed early a block or two
3334
+ * later. Failing that, the deposit is claimed at maturity.
3335
+ *
3336
+ * An ordinary outcome rather than a failure. `reason` says which of the two to
3337
+ * expect: a depth that has not arrived yet, or a cost the ceiling will not
3338
+ * cover.
3339
+ */class Deferred_ extends UniffiEnum{/**
3340
+ * @private
3341
+ * This field is private and should not be used, use `tag` instead.
3342
+ */[uniffiTypeNameSymbol]='ClaimDepositOutcome';tag=ClaimDepositOutcome_Tags.Deferred;constructor(inner){super('ClaimDepositOutcome','Deferred');this.inner=Object.freeze(inner);}static new(inner){return new Deferred_(inner);}static instanceOf(obj){return obj.tag===ClaimDepositOutcome_Tags.Deferred;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ClaimDepositOutcome';}return Object.freeze({instanceOf,Settled:Settled_,Submitted:Submitted_,Deferred:Deferred_});})();/**
3343
+ * What became of a claim.
3344
+ */// FfiConverter for enum ClaimDepositOutcome
3345
+ const FfiConverterTypeClaimDepositOutcome=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ClaimDepositOutcome.Settled({payment:FfiConverterTypePayment.read(from)});case 2:return new ClaimDepositOutcome.Submitted();case 3:return new ClaimDepositOutcome.Deferred({reason:FfiConverterTypeClaimDeferredReason.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ClaimDepositOutcome_Tags.Settled:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case ClaimDepositOutcome_Tags.Submitted:{ordinalConverter.write(2,into);return;}case ClaimDepositOutcome_Tags.Deferred:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeClaimDeferredReason.write(inner.reason,into);return;}default:// Throwing from here means that ClaimDepositOutcome_Tags hasn't matched an ordinal.
3346
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ClaimDepositOutcome_Tags.Settled:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case ClaimDepositOutcome_Tags.Submitted:{return ordinalConverter.allocationSize(2);}case ClaimDepositOutcome_Tags.Deferred:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeClaimDeferredReason.allocationSize(inner.reason);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ConversionChain
3144
3347
  export let ConversionChain_Tags=/*#__PURE__*/function(ConversionChain_Tags){ConversionChain_Tags["Spark"]="Spark";ConversionChain_Tags["Lightning"]="Lightning";ConversionChain_Tags["External"]="External";return ConversionChain_Tags;}({});/**
3145
3348
  * The chain or network that a [`ConversionSide`] lives on.
3146
3349
  */export const ConversionChain=(()=>{/**
@@ -3179,8 +3382,9 @@ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){Conver
3179
3382
  *
3180
3383
  * The variant identifies which provider handled the conversion:
3181
3384
  * - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
3182
- * - [`ConversionInfo::Orchestra`] for cross-chain sends via Flashnet
3183
- * Orchestra (Spark → external chain).
3385
+ * - [`ConversionInfo::Orchestra`] for cross-chain transfers via Flashnet
3386
+ * Orchestra, in either direction (Spark → external chain, or external
3387
+ * chain → Spark).
3184
3388
  * - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
3185
3389
  */export const ConversionInfo=(()=>{/**
3186
3390
  * AMM (Flashnet pool-based) conversion — Spark ↔ Spark token swaps.
@@ -3188,7 +3392,13 @@ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){Conver
3188
3392
  * @private
3189
3393
  * This field is private and should not be used, use `tag` instead.
3190
3394
  */[uniffiTypeNameSymbol]='ConversionInfo';tag=ConversionInfo_Tags.Amm;constructor(inner){super('ConversionInfo','Amm');this.inner=Object.freeze(inner);}static new(inner){return new Amm_(inner);}static instanceOf(obj){return obj.tag===ConversionInfo_Tags.Amm;}}/**
3191
- * Orchestra cross-chain conversion via the Flashnet orchestration API.
3395
+ * Orchestra cross-chain conversion via the Flashnet orchestration API,
3396
+ * in either direction.
3397
+ *
3398
+ * `chain`, `asset`, `asset_decimals` and `asset_contract` always describe
3399
+ * the external (non-Spark) side: the destination on a send, the source on
3400
+ * a receive. Amounts follow the direction of the transfer, so read each
3401
+ * amount field's own denomination.
3192
3402
  */class Orchestra_ extends UniffiEnum{/**
3193
3403
  * @private
3194
3404
  * This field is private and should not be used, use `tag` instead.
@@ -3206,12 +3416,13 @@ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){Conver
3206
3416
  *
3207
3417
  * The variant identifies which provider handled the conversion:
3208
3418
  * - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
3209
- * - [`ConversionInfo::Orchestra`] for cross-chain sends via Flashnet
3210
- * Orchestra (Spark → external chain).
3419
+ * - [`ConversionInfo::Orchestra`] for cross-chain transfers via Flashnet
3420
+ * Orchestra, in either direction (Spark → external chain, or external
3421
+ * chain → Spark).
3211
3422
  * - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
3212
3423
  */// FfiConverter for enum ConversionInfo
3213
- const FfiConverterTypeConversionInfo=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionInfo.Amm({poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from),degradation:FfiConverterOptionalTypeSwapDegradation.read(from)});case 2:return new ConversionInfo.Orchestra({orderId:FfiConverterString.read(from),quoteId:FfiConverterString.read(from),readToken:FfiConverterOptionalString.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});case 3:return new ConversionInfo.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),bridgeRef:FfiConverterOptionalString.read(from),maxSlippageBps:FfiConverterUInt32.read(from),quoteDegraded:FfiConverterBool.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionInfo_Tags.Amm:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.poolId,into);FfiConverterString.write(inner.conversionId,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.fee,into);FfiConverterOptionalTypeConversionPurpose.write(inner.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(inner.amountAdjustment,into);FfiConverterOptionalTypeSwapDegradation.write(inner.degradation,into);return;}case ConversionInfo_Tags.Orchestra:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.orderId,into);FfiConverterString.write(inner.quoteId,into);FfiConverterOptionalString.write(inner.readToken,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}case ConversionInfo_Tags.Boltz:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterOptionalString.write(inner.bridgeRef,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);FfiConverterBool.write(inner.quoteDegraded,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}default:// Throwing from here means that ConversionInfo_Tags hasn't matched an ordinal.
3214
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionInfo_Tags.Amm:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.poolId);size+=FfiConverterString.allocationSize(inner.conversionId);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalTypeConversionPurpose.allocationSize(inner.purpose);size+=FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(inner.amountAdjustment);size+=FfiConverterOptionalTypeSwapDegradation.allocationSize(inner.degradation);return size;}case ConversionInfo_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.orderId);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterOptionalString.allocationSize(inner.readToken);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}case ConversionInfo_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterOptionalString.allocationSize(inner.bridgeRef);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterBool.allocationSize(inner.quoteDegraded);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
3424
+ const FfiConverterTypeConversionInfo=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionInfo.Amm({poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from),degradation:FfiConverterOptionalTypeSwapDegradation.read(from)});case 2:return new ConversionInfo.Orchestra({orderId:FfiConverterString.read(from),quoteId:FfiConverterString.read(from),readToken:FfiConverterOptionalString.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),externalTxHash:FfiConverterOptionalString.read(from),status:FfiConverterTypeConversionStatus.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),serviceFeeAssetDecimals:FfiConverterOptionalUInt32.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});case 3:return new ConversionInfo.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),bridgeRef:FfiConverterOptionalString.read(from),maxSlippageBps:FfiConverterUInt32.read(from),quoteDegraded:FfiConverterBool.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),recipientAddress:FfiConverterString.read(from),estimatedOut:FfiConverterTypeu128.read(from),deliveredAmount:FfiConverterOptionalTypeu128.read(from),status:FfiConverterTypeConversionStatus.read(from),assetAmountIn:FfiConverterOptionalTypeu128.read(from),feeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAmount:FfiConverterOptionalTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),assetDecimals:FfiConverterUInt32.read(from),assetContract:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionInfo_Tags.Amm:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.poolId,into);FfiConverterString.write(inner.conversionId,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.fee,into);FfiConverterOptionalTypeConversionPurpose.write(inner.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(inner.amountAdjustment,into);FfiConverterOptionalTypeSwapDegradation.write(inner.degradation,into);return;}case ConversionInfo_Tags.Orchestra:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.orderId,into);FfiConverterString.write(inner.quoteId,into);FfiConverterOptionalString.write(inner.readToken,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterOptionalString.write(inner.externalTxHash,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterOptionalUInt32.write(inner.serviceFeeAssetDecimals,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}case ConversionInfo_Tags.Boltz:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterOptionalString.write(inner.bridgeRef,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);FfiConverterBool.write(inner.quoteDegraded,into);FfiConverterString.write(inner.chain,into);FfiConverterOptionalString.write(inner.chainId,into);FfiConverterString.write(inner.asset,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterOptionalTypeu128.write(inner.deliveredAmount,into);FfiConverterTypeConversionStatus.write(inner.status,into);FfiConverterOptionalTypeu128.write(inner.assetAmountIn,into);FfiConverterOptionalTypeu128.write(inner.feeAmount,into);FfiConverterOptionalTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt32.write(inner.assetDecimals,into);FfiConverterOptionalString.write(inner.assetContract,into);return;}default:// Throwing from here means that ConversionInfo_Tags hasn't matched an ordinal.
3425
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionInfo_Tags.Amm:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.poolId);size+=FfiConverterString.allocationSize(inner.conversionId);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalTypeConversionPurpose.allocationSize(inner.purpose);size+=FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(inner.amountAdjustment);size+=FfiConverterOptionalTypeSwapDegradation.allocationSize(inner.degradation);return size;}case ConversionInfo_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.orderId);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterOptionalString.allocationSize(inner.readToken);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterOptionalString.allocationSize(inner.externalTxHash);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterOptionalUInt32.allocationSize(inner.serviceFeeAssetDecimals);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}case ConversionInfo_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterOptionalString.allocationSize(inner.bridgeRef);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterBool.allocationSize(inner.quoteDegraded);size+=FfiConverterString.allocationSize(inner.chain);size+=FfiConverterOptionalString.allocationSize(inner.chainId);size+=FfiConverterString.allocationSize(inner.asset);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterOptionalTypeu128.allocationSize(inner.deliveredAmount);size+=FfiConverterTypeConversionStatus.allocationSize(inner.status);size+=FfiConverterOptionalTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterOptionalTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterOptionalTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt32.allocationSize(inner.assetDecimals);size+=FfiConverterOptionalString.allocationSize(inner.assetContract);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
3215
3426
  * The provider that performed a conversion.
3216
3427
  */export let ConversionProvider=/*#__PURE__*/function(ConversionProvider){/**
3217
3428
  * AMM (Flashnet pool) conversion between token and BTC on Spark
@@ -3327,13 +3538,25 @@ export let CpfpInput_Tags=/*#__PURE__*/function(CpfpInput_Tags){CpfpInput_Tags["
3327
3538
  */// FfiConverter for enum CpfpInput
3328
3539
  const FfiConverterTypeCpfpInput=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CpfpInput.P2wpkh({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),pubkey:FfiConverterString.read(from)});case 2:return new CpfpInput.P2tr({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),pubkey:FfiConverterString.read(from)});case 3:return new CpfpInput.Custom({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),scriptPubkeyHex:FfiConverterString.read(from),signedInputWeight:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CpfpInput_Tags.P2wpkh:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.value,into);FfiConverterString.write(inner.pubkey,into);return;}case CpfpInput_Tags.P2tr:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.value,into);FfiConverterString.write(inner.pubkey,into);return;}case CpfpInput_Tags.Custom:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.value,into);FfiConverterString.write(inner.scriptPubkeyHex,into);FfiConverterUInt64.write(inner.signedInputWeight,into);return;}default:// Throwing from here means that CpfpInput_Tags hasn't matched an ordinal.
3329
3540
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CpfpInput_Tags.P2wpkh:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.value);size+=FfiConverterString.allocationSize(inner.pubkey);return size;}case CpfpInput_Tags.P2tr:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.value);size+=FfiConverterString.allocationSize(inner.pubkey);return size;}case CpfpInput_Tags.Custom:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.value);size+=FfiConverterString.allocationSize(inner.scriptPubkeyHex);size+=FfiConverterUInt64.allocationSize(inner.signedInputWeight);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let CrossChainAddressFamily=/*#__PURE__*/function(CrossChainAddressFamily){CrossChainAddressFamily[CrossChainAddressFamily["Evm"]=0]="Evm";CrossChainAddressFamily[CrossChainAddressFamily["Solana"]=1]="Solana";CrossChainAddressFamily[CrossChainAddressFamily["Tron"]=2]="Tron";return CrossChainAddressFamily;}({});const FfiConverterTypeCrossChainAddressFamily=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainAddressFamily.Evm;case 2:return CrossChainAddressFamily.Solana;case 3:return CrossChainAddressFamily.Tron;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainAddressFamily.Evm:return ordinalConverter.write(1,into);case CrossChainAddressFamily.Solana:return ordinalConverter.write(2,into);case CrossChainAddressFamily.Tron:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
3330
- * How the caller wants fees handled against the request `amount`.
3331
- *
3332
- * - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
3333
- * wallet pays `amount + source_transfer_fee_sats` in total.
3334
- * - `FeesIncluded`: `amount` is the wallet's total sats budget; the provider
3335
- * leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
3336
- */export let CrossChainFeeMode=/*#__PURE__*/function(CrossChainFeeMode){CrossChainFeeMode[CrossChainFeeMode["FeesExcluded"]=0]="FeesExcluded";CrossChainFeeMode[CrossChainFeeMode["FeesIncluded"]=1]="FeesIncluded";return CrossChainFeeMode;}({});const FfiConverterTypeCrossChainFeeMode=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainFeeMode.FeesExcluded;case 2:return CrossChainFeeMode.FeesIncluded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainFeeMode.FeesExcluded:return ordinalConverter.write(1,into);case CrossChainFeeMode.FeesIncluded:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let CrossChainProvider=/*#__PURE__*/function(CrossChainProvider){CrossChainProvider[CrossChainProvider["Orchestra"]=0]="Orchestra";CrossChainProvider[CrossChainProvider["Boltz"]=1]="Boltz";return CrossChainProvider;}({});const FfiConverterTypeCrossChainProvider=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainProvider.Orchestra;case 2:return CrossChainProvider.Boltz;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainProvider.Orchestra:return ordinalConverter.write(1,into);case CrossChainProvider.Boltz:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: CrossChainProviderContext
3541
+ * Which side of the transfer the request `amount` sizes: what leaves the
3542
+ * payer, or what reaches the receiver.
3543
+ */export let CrossChainFeeMode=/*#__PURE__*/function(CrossChainFeeMode){/**
3544
+ * `amount` sizes the receiving end, and fees are paid on top.
3545
+ *
3546
+ * Sending: `amount` is the provider invoice/deposit target, and the
3547
+ * wallet pays `amount + source_transfer_fee_sats` in total.
3548
+ * Receiving: `amount` is what the wallet ends up with, and the deposit
3549
+ * the sender is asked for is sized above it to cover fees.
3550
+ */CrossChainFeeMode[CrossChainFeeMode["FeesExcluded"]=0]="FeesExcluded";/**
3551
+ * `amount` sizes the paying end, and fees come out of it.
3552
+ *
3553
+ * Sending: `amount` is the wallet's total sats budget, and the provider
3554
+ * leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
3555
+ * Receiving: `amount` is the deposit the sender makes, and the wallet
3556
+ * ends up with that minus fees.
3557
+ */CrossChainFeeMode[CrossChainFeeMode["FeesIncluded"]=1]="FeesIncluded";return CrossChainFeeMode;}({});const FfiConverterTypeCrossChainFeeMode=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainFeeMode.FeesExcluded;case 2:return CrossChainFeeMode.FeesIncluded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainFeeMode.FeesExcluded:return ordinalConverter.write(1,into);case CrossChainFeeMode.FeesIncluded:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let CrossChainProvider=/*#__PURE__*/function(CrossChainProvider){CrossChainProvider[CrossChainProvider["Orchestra"]=0]="Orchestra";/**
3558
+ * Not operational: no routes are currently offered under this provider.
3559
+ */CrossChainProvider[CrossChainProvider["Boltz"]=1]="Boltz";return CrossChainProvider;}({});const FfiConverterTypeCrossChainProvider=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainProvider.Orchestra;case 2:return CrossChainProvider.Boltz;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainProvider.Orchestra:return ordinalConverter.write(1,into);case CrossChainProvider.Boltz:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: CrossChainProviderContext
3337
3560
  export let CrossChainProviderContext_Tags=/*#__PURE__*/function(CrossChainProviderContext_Tags){CrossChainProviderContext_Tags["Orchestra"]="Orchestra";CrossChainProviderContext_Tags["Boltz"]="Boltz";return CrossChainProviderContext_Tags;}({});/**
3338
3561
  * Provider-internal state produced by `prepare` and consumed by `send`.
3339
3562
  * Typed per provider so the send stage can resume without re-quoting and
@@ -3378,7 +3601,15 @@ export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilte
3378
3601
  * `get_cross_chain_routes()` API.
3379
3602
  */// FfiConverter for enum CrossChainRouteFilter
3380
3603
  const FfiConverterTypeCrossChainRouteFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CrossChainRouteFilter.Send({addressDetails:FfiConverterTypeCrossChainAddressDetails.read(from)});case 2:return new CrossChainRouteFilter.Receive({contractAddress:FfiConverterOptionalString.read(from)});case 3:return new CrossChainRouteFilter.PaymentLink({addressDetails:FfiConverterTypeCrossChainAddressDetails.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner.addressDetails,into);return;}case CrossChainRouteFilter_Tags.Receive:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.contractAddress,into);return;}case CrossChainRouteFilter_Tags.PaymentLink:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner.addressDetails,into);return;}default:// Throwing from here means that CrossChainRouteFilter_Tags hasn't matched an ordinal.
3381
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}case CrossChainRouteFilter_Tags.Receive:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.contractAddress);return size;}case CrossChainRouteFilter_Tags.PaymentLink:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: DepositClaimError
3604
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}case CrossChainRouteFilter_Tags.Receive:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.contractAddress);return size;}case CrossChainRouteFilter_Tags.PaymentLink:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
3605
+ * The rail a cross-chain payment is delivered over.
3606
+ */export let DeliveryMethod=/*#__PURE__*/function(DeliveryMethod){/**
3607
+ * Delivered over the Spark network.
3608
+ */DeliveryMethod[DeliveryMethod["Spark"]=0]="Spark";/**
3609
+ * Delivered over Lightning.
3610
+ */DeliveryMethod[DeliveryMethod["Lightning"]=1]="Lightning";/**
3611
+ * Delivered on-chain over Bitcoin.
3612
+ */DeliveryMethod[DeliveryMethod["Bitcoin"]=2]="Bitcoin";return DeliveryMethod;}({});const FfiConverterTypeDeliveryMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return DeliveryMethod.Spark;case 2:return DeliveryMethod.Lightning;case 3:return DeliveryMethod.Bitcoin;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case DeliveryMethod.Spark:return ordinalConverter.write(1,into);case DeliveryMethod.Lightning:return ordinalConverter.write(2,into);case DeliveryMethod.Bitcoin:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: DepositClaimError
3382
3613
  export let DepositClaimError_Tags=/*#__PURE__*/function(DepositClaimError_Tags){DepositClaimError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";DepositClaimError_Tags["MissingUtxo"]="MissingUtxo";DepositClaimError_Tags["Generic"]="Generic";return DepositClaimError_Tags;}({});export const DepositClaimError=(()=>{class MaxDepositClaimFeeExceeded_ extends UniffiEnum{/**
3383
3614
  * @private
3384
3615
  * This field is private and should not be used, use `tag` instead.
@@ -3461,7 +3692,8 @@ export let ExitLeafSelection_Tags=/*#__PURE__*/function(ExitLeafSelection_Tags){
3461
3692
  * @private
3462
3693
  * This field is private and should not be used, use `tag` instead.
3463
3694
  */[uniffiTypeNameSymbol]='ExitLeafSelection';tag=ExitLeafSelection_Tags.Auto;constructor(){super('ExitLeafSelection','Auto');}static new(){return new Auto_();}static instanceOf(obj){return obj.tag===ExitLeafSelection_Tags.Auto;}}/**
3464
- * Exit exactly these leaves, regardless of profitability.
3695
+ * Exit exactly these leaves, regardless of profitability, apart from any
3696
+ * whose exit already finished.
3465
3697
  */class Specific_ extends UniffiEnum{/**
3466
3698
  * @private
3467
3699
  * This field is private and should not be used, use `tag` instead.
@@ -3469,7 +3701,75 @@ export let ExitLeafSelection_Tags=/*#__PURE__*/function(ExitLeafSelection_Tags){
3469
3701
  * Which leaves to exit.
3470
3702
  */// FfiConverter for enum ExitLeafSelection
3471
3703
  const FfiConverterTypeExitLeafSelection=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExitLeafSelection.Auto();case 2:return new ExitLeafSelection.Specific({leafIds:FfiConverterArrayString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExitLeafSelection_Tags.Auto:{ordinalConverter.write(1,into);return;}case ExitLeafSelection_Tags.Specific:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayString.write(inner.leafIds,into);return;}default:// Throwing from here means that ExitLeafSelection_Tags hasn't matched an ordinal.
3472
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitLeafSelection_Tags.Auto:{return ordinalConverter.allocationSize(1);}case ExitLeafSelection_Tags.Specific:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayString.allocationSize(inner.leafIds);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ExternalFrostDerivation
3704
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitLeafSelection_Tags.Auto:{return ordinalConverter.allocationSize(1);}case ExitLeafSelection_Tags.Specific:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayString.allocationSize(inner.leafIds);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
3705
+ * Which of a node's two pre-signed spends took it on-chain.
3706
+ */export let ExitNodeConfirmation=/*#__PURE__*/function(ExitNodeConfirmation){/**
3707
+ * The CPFP transaction, whose fee a child paid.
3708
+ */ExitNodeConfirmation[ExitNodeConfirmation["Cpfp"]=0]="Cpfp";/**
3709
+ * The direct transaction, which pays its own fee. A leaf that went out this
3710
+ * way is refunded by its direct refund transaction.
3711
+ */ExitNodeConfirmation[ExitNodeConfirmation["Direct"]=1]="Direct";return ExitNodeConfirmation;}({});const FfiConverterTypeExitNodeConfirmation=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ExitNodeConfirmation.Cpfp;case 2:return ExitNodeConfirmation.Direct;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ExitNodeConfirmation.Cpfp:return ordinalConverter.write(1,into);case ExitNodeConfirmation.Direct:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ExitRefundState
3712
+ export let ExitRefundState_Tags=/*#__PURE__*/function(ExitRefundState_Tags){ExitRefundState_Tags["OnChain"]="OnChain";ExitRefundState_Tags["Swept"]="Swept";return ExitRefundState_Tags;}({});export const ExitRefundState=(()=>{/**
3713
+ * On-chain with its output still there, which is what the sweep pulls from.
3714
+ * A sweep sitting unconfirmed in the mempool leaves the refund here, so
3715
+ * that sweep is rebuilt rather than dropped.
3716
+ */class OnChain_ extends UniffiEnum{/**
3717
+ * @private
3718
+ * This field is private and should not be used, use `tag` instead.
3719
+ */[uniffiTypeNameSymbol]='ExitRefundState';tag=ExitRefundState_Tags.OnChain;constructor(inner){super('ExitRefundState','OnChain');this.inner=Object.freeze(inner);}static new(inner){return new OnChain_(inner);}static instanceOf(obj){return obj.tag===ExitRefundState_Tags.OnChain;}}/**
3720
+ * Spent by a confirmed transaction: the sweep landed.
3721
+ */class Swept_ extends UniffiEnum{/**
3722
+ * @private
3723
+ * This field is private and should not be used, use `tag` instead.
3724
+ */[uniffiTypeNameSymbol]='ExitRefundState';tag=ExitRefundState_Tags.Swept;constructor(){super('ExitRefundState','Swept');}static new(){return new Swept_();}static instanceOf(obj){return obj.tag===ExitRefundState_Tags.Swept;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ExitRefundState';}return Object.freeze({instanceOf,OnChain:OnChain_,Swept:Swept_});})();// FfiConverter for enum ExitRefundState
3725
+ const FfiConverterTypeExitRefundState=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExitRefundState.OnChain({txHex:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),valueSat:FfiConverterUInt64.read(from),blockHeight:FfiConverterOptionalUInt32.read(from)});case 2:return new ExitRefundState.Swept();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExitRefundState_Tags.OnChain:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.txHex,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.valueSat,into);FfiConverterOptionalUInt32.write(inner.blockHeight,into);return;}case ExitRefundState_Tags.Swept:{ordinalConverter.write(2,into);return;}default:// Throwing from here means that ExitRefundState_Tags hasn't matched an ordinal.
3726
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitRefundState_Tags.OnChain:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.txHex);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.valueSat);size+=FfiConverterOptionalUInt32.allocationSize(inner.blockHeight);return size;}case ExitRefundState_Tags.Swept:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ExitTransactionStatus
3727
+ export let ExitTransactionStatus_Tags=/*#__PURE__*/function(ExitTransactionStatus_Tags){ExitTransactionStatus_Tags["Confirmed"]="Confirmed";ExitTransactionStatus_Tags["Ready"]="Ready";ExitTransactionStatus_Tags["WaitingForDependencies"]="WaitingForDependencies";ExitTransactionStatus_Tags["WaitingForTimelock"]="WaitingForTimelock";ExitTransactionStatus_Tags["Unverified"]="Unverified";return ExitTransactionStatus_Tags;}({});/**
3728
+ * Where a transaction in the exit path stands: on-chain, ready to send, or
3729
+ * waiting for something.
3730
+ */export const ExitTransactionStatus=(()=>{/**
3731
+ * Confirmed in a block, at `block_height` where the chain service reported
3732
+ * one. It needs no action.
3733
+ *
3734
+ * A relative `csv_timelock_blocks` counts from the height of the
3735
+ * transaction it spends, so this is what tells you when a child of this one
3736
+ * can go out, without fetching it again.
3737
+ */class Confirmed_ extends UniffiEnum{/**
3738
+ * @private
3739
+ * This field is private and should not be used, use `tag` instead.
3740
+ */[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.Confirmed;constructor(inner){super('ExitTransactionStatus','Confirmed');this.inner=Object.freeze(inner);}static new(inner){return new Confirmed_(inner);}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.Confirmed;}}/**
3741
+ * Not on-chain, and nothing is holding it back. Broadcast it, with its
3742
+ * `cpfp_tx_hex` where it has one.
3743
+ */class Ready_ extends UniffiEnum{/**
3744
+ * @private
3745
+ * This field is private and should not be used, use `tag` instead.
3746
+ */[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.Ready;constructor(){super('ExitTransactionStatus','Ready');}static new(){return new Ready_();}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.Ready;}}/**
3747
+ * A transaction in `depends_on` has yet to confirm. A relative timelock
3748
+ * only starts counting once it does.
3749
+ */class WaitingForDependencies_ extends UniffiEnum{/**
3750
+ * @private
3751
+ * This field is private and should not be used, use `tag` instead.
3752
+ */[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.WaitingForDependencies;constructor(){super('ExitTransactionStatus','WaitingForDependencies');}static new(){return new WaitingForDependencies_();}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.WaitingForDependencies;}}/**
3753
+ * Every input is confirmed, but a relative timelock has yet to mature.
3754
+ * `spendable_at_height` is the first block that can include this
3755
+ * transaction, and is unset when the height it counts from could not be
3756
+ * read from the chain.
3757
+ */class WaitingForTimelock_ extends UniffiEnum{/**
3758
+ * @private
3759
+ * This field is private and should not be used, use `tag` instead.
3760
+ */[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.WaitingForTimelock;constructor(inner){super('ExitTransactionStatus','WaitingForTimelock');this.inner=Object.freeze(inner);}static new(inner){return new WaitingForTimelock_(inner);}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.WaitingForTimelock;}}/**
3761
+ * The on-chain status could not be determined (the chain service errored),
3762
+ * which also leaves what it is waiting for unknown. Broadcasting may fail
3763
+ * if a conflicting transaction already landed.
3764
+ */class Unverified_ extends UniffiEnum{/**
3765
+ * @private
3766
+ * This field is private and should not be used, use `tag` instead.
3767
+ */[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.Unverified;constructor(){super('ExitTransactionStatus','Unverified');}static new(){return new Unverified_();}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.Unverified;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ExitTransactionStatus';}return Object.freeze({instanceOf,Confirmed:Confirmed_,Ready:Ready_,WaitingForDependencies:WaitingForDependencies_,WaitingForTimelock:WaitingForTimelock_,Unverified:Unverified_});})();/**
3768
+ * Where a transaction in the exit path stands: on-chain, ready to send, or
3769
+ * waiting for something.
3770
+ */// FfiConverter for enum ExitTransactionStatus
3771
+ const FfiConverterTypeExitTransactionStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExitTransactionStatus.Confirmed({blockHeight:FfiConverterOptionalUInt32.read(from)});case 2:return new ExitTransactionStatus.Ready();case 3:return new ExitTransactionStatus.WaitingForDependencies();case 4:return new ExitTransactionStatus.WaitingForTimelock({spendableAtHeight:FfiConverterOptionalUInt32.read(from)});case 5:return new ExitTransactionStatus.Unverified();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExitTransactionStatus_Tags.Confirmed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalUInt32.write(inner.blockHeight,into);return;}case ExitTransactionStatus_Tags.Ready:{ordinalConverter.write(2,into);return;}case ExitTransactionStatus_Tags.WaitingForDependencies:{ordinalConverter.write(3,into);return;}case ExitTransactionStatus_Tags.WaitingForTimelock:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterOptionalUInt32.write(inner.spendableAtHeight,into);return;}case ExitTransactionStatus_Tags.Unverified:{ordinalConverter.write(5,into);return;}default:// Throwing from here means that ExitTransactionStatus_Tags hasn't matched an ordinal.
3772
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitTransactionStatus_Tags.Confirmed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt32.allocationSize(inner.blockHeight);return size;}case ExitTransactionStatus_Tags.Ready:{return ordinalConverter.allocationSize(2);}case ExitTransactionStatus_Tags.WaitingForDependencies:{return ordinalConverter.allocationSize(3);}case ExitTransactionStatus_Tags.WaitingForTimelock:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterOptionalUInt32.allocationSize(inner.spendableAtHeight);return size;}case ExitTransactionStatus_Tags.Unverified:{return ordinalConverter.allocationSize(5);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ExternalFrostDerivation
3473
3773
  export let ExternalFrostDerivation_Tags=/*#__PURE__*/function(ExternalFrostDerivation_Tags){ExternalFrostDerivation_Tags["SigningLeaf"]="SigningLeaf";ExternalFrostDerivation_Tags["StaticDeposit"]="StaticDeposit";ExternalFrostDerivation_Tags["HtlcPreimage"]="HtlcPreimage";ExternalFrostDerivation_Tags["Identity"]="Identity";return ExternalFrostDerivation_Tags;}({});/**
3474
3774
  * FFI-safe representation of `spark_wallet::FrostDerivation`.
3475
3775
  */export const ExternalFrostDerivation=(()=>{/**
@@ -3574,7 +3874,7 @@ export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["
3574
3874
  */[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.CrossChainAddress;constructor(v0){super('InputType','CrossChainAddress');this.inner=Object.freeze([v0]);}static new(v0){return new CrossChainAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InputType';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,Bolt12Invoice:Bolt12Invoice_,Bolt12Offer:Bolt12Offer_,LightningAddress:LightningAddress_,LnurlPay:LnurlPay_,SilentPaymentAddress:SilentPaymentAddress_,LnurlAuth:LnurlAuth_,Url:Url_,Bip21:Bip21_,Bolt12InvoiceRequest:Bolt12InvoiceRequest_,LnurlWithdraw:LnurlWithdraw_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum InputType
3575
3875
  const FfiConverterTypeInputType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InputType.BitcoinAddress(FfiConverterTypeBitcoinAddressDetails.read(from));case 2:return new InputType.Bolt11Invoice(FfiConverterTypeBolt11InvoiceDetails.read(from));case 3:return new InputType.Bolt12Invoice(FfiConverterTypeBolt12InvoiceDetails.read(from));case 4:return new InputType.Bolt12Offer(FfiConverterTypeBolt12OfferDetails.read(from));case 5:return new InputType.LightningAddress(FfiConverterTypeLightningAddressDetails.read(from));case 6:return new InputType.LnurlPay(FfiConverterTypeLnurlPayRequestDetails.read(from));case 7:return new InputType.SilentPaymentAddress(FfiConverterTypeSilentPaymentAddressDetails.read(from));case 8:return new InputType.LnurlAuth(FfiConverterTypeLnurlAuthRequestDetails.read(from));case 9:return new InputType.Url(FfiConverterString.read(from));case 10:return new InputType.Bip21(FfiConverterTypeBip21Details.read(from));case 11:return new InputType.Bolt12InvoiceRequest(FfiConverterTypeBolt12InvoiceRequestDetails.read(from));case 12:return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));case 13:return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));case 14:return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));case 15:return new InputType.CrossChainAddress(FfiConverterTypeCrossChainAddressDetails.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InputType_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner[0],into);return;}case InputType_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Invoice:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Offer:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeBolt12OfferDetails.write(inner[0],into);return;}case InputType_Tags.LightningAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeLightningAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlPay:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypeLnurlPayRequestDetails.write(inner[0],into);return;}case InputType_Tags.SilentPaymentAddress:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeSilentPaymentAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlAuth:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeLnurlAuthRequestDetails.write(inner[0],into);return;}case InputType_Tags.Url:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case InputType_Tags.Bip21:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterTypeBip21Details.write(inner[0],into);return;}case InputType_Tags.Bolt12InvoiceRequest:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceRequestDetails.write(inner[0],into);return;}case InputType_Tags.LnurlWithdraw:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterTypeLnurlWithdrawRequestDetails.write(inner[0],into);return;}case InputType_Tags.SparkAddress:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterTypeSparkAddressDetails.write(inner[0],into);return;}case InputType_Tags.SparkInvoice:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner[0],into);return;}case InputType_Tags.CrossChainAddress:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner[0],into);return;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
3576
3876
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: InstantClaimStatus
3577
- export let InstantClaimStatus_Tags=/*#__PURE__*/function(InstantClaimStatus_Tags){InstantClaimStatus_Tags["Declined"]="Declined";InstantClaimStatus_Tags["Submitted"]="Submitted";return InstantClaimStatus_Tags;}({});/**
3877
+ export let InstantClaimStatus_Tags=/*#__PURE__*/function(InstantClaimStatus_Tags){InstantClaimStatus_Tags["Declined"]="Declined";InstantClaimStatus_Tags["Submitted"]="Submitted";InstantClaimStatus_Tags["Claimed"]="Claimed";return InstantClaimStatus_Tags;}({});/**
3578
3878
  * State of an instant claim attempt on a deposit.
3579
3879
  */export const InstantClaimStatus=(()=>{/**
3580
3880
  * The early claim was declined and the deposit falls through to the claim at
@@ -3585,17 +3885,23 @@ export let InstantClaimStatus_Tags=/*#__PURE__*/function(InstantClaimStatus_Tags
3585
3885
  * @private
3586
3886
  * This field is private and should not be used, use `tag` instead.
3587
3887
  */[uniffiTypeNameSymbol]='InstantClaimStatus';tag=InstantClaimStatus_Tags.Declined;constructor(inner){super('InstantClaimStatus','Declined');this.inner=Object.freeze(inner);}static new(inner){return new Declined_(inner);}static instanceOf(obj){return obj.tag===InstantClaimStatus_Tags.Declined;}}/**
3588
- * An instant claim was submitted and is settling. The deposit must not be
3589
- * re-claimed (instant or normal) until the claim settles and it is reconciled
3590
- * out. Carries the SSP claim id.
3888
+ * An instant claim was submitted and is settling. Carries the SSP claim id.
3591
3889
  */class Submitted_ extends UniffiEnum{/**
3592
3890
  * @private
3593
3891
  * This field is private and should not be used, use `tag` instead.
3594
- */[uniffiTypeNameSymbol]='InstantClaimStatus';tag=InstantClaimStatus_Tags.Submitted;constructor(inner){super('InstantClaimStatus','Submitted');this.inner=Object.freeze(inner);}static new(inner){return new Submitted_(inner);}static instanceOf(obj){return obj.tag===InstantClaimStatus_Tags.Submitted;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InstantClaimStatus';}return Object.freeze({instanceOf,Declined:Declined_,Submitted:Submitted_});})();/**
3892
+ */[uniffiTypeNameSymbol]='InstantClaimStatus';tag=InstantClaimStatus_Tags.Submitted;constructor(inner){super('InstantClaimStatus','Submitted');this.inner=Object.freeze(inner);}static new(inner){return new Submitted_(inner);}static instanceOf(obj){return obj.tag===InstantClaimStatus_Tags.Submitted;}}/**
3893
+ * A claim has taken the deposit: either its credit arrived here, or the
3894
+ * provider reports the deposit as already claimed. It stays listed until
3895
+ * the provider spends the output, so treat it as settled rather than as
3896
+ * awaiting action.
3897
+ */class Claimed_ extends UniffiEnum{/**
3898
+ * @private
3899
+ * This field is private and should not be used, use `tag` instead.
3900
+ */[uniffiTypeNameSymbol]='InstantClaimStatus';tag=InstantClaimStatus_Tags.Claimed;constructor(){super('InstantClaimStatus','Claimed');}static new(){return new Claimed_();}static instanceOf(obj){return obj.tag===InstantClaimStatus_Tags.Claimed;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InstantClaimStatus';}return Object.freeze({instanceOf,Declined:Declined_,Submitted:Submitted_,Claimed:Claimed_});})();/**
3595
3901
  * State of an instant claim attempt on a deposit.
3596
3902
  */// FfiConverter for enum InstantClaimStatus
3597
- const FfiConverterTypeInstantClaimStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InstantClaimStatus.Declined({maxFeeSats:FfiConverterOptionalUInt64.read(from),confirmations:FfiConverterUInt32.read(from)});case 2:return new InstantClaimStatus.Submitted({claimId:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InstantClaimStatus_Tags.Declined:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalUInt64.write(inner.maxFeeSats,into);FfiConverterUInt32.write(inner.confirmations,into);return;}case InstantClaimStatus_Tags.Submitted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.claimId,into);return;}default:// Throwing from here means that InstantClaimStatus_Tags hasn't matched an ordinal.
3598
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InstantClaimStatus_Tags.Declined:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt64.allocationSize(inner.maxFeeSats);size+=FfiConverterUInt32.allocationSize(inner.confirmations);return size;}case InstantClaimStatus_Tags.Submitted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.claimId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
3903
+ const FfiConverterTypeInstantClaimStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InstantClaimStatus.Declined({maxFeeSats:FfiConverterOptionalUInt64.read(from),confirmations:FfiConverterUInt32.read(from)});case 2:return new InstantClaimStatus.Submitted({claimId:FfiConverterString.read(from)});case 3:return new InstantClaimStatus.Claimed();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InstantClaimStatus_Tags.Declined:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalUInt64.write(inner.maxFeeSats,into);FfiConverterUInt32.write(inner.confirmations,into);return;}case InstantClaimStatus_Tags.Submitted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.claimId,into);return;}case InstantClaimStatus_Tags.Claimed:{ordinalConverter.write(3,into);return;}default:// Throwing from here means that InstantClaimStatus_Tags hasn't matched an ordinal.
3904
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InstantClaimStatus_Tags.Declined:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt64.allocationSize(inner.maxFeeSats);size+=FfiConverterUInt32.allocationSize(inner.confirmations);return size;}case InstantClaimStatus_Tags.Submitted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.claimId);return size;}case InstantClaimStatus_Tags.Claimed:{return ordinalConverter.allocationSize(3);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
3599
3905
  export let LnurlCallbackStatus_Tags=/*#__PURE__*/function(LnurlCallbackStatus_Tags){LnurlCallbackStatus_Tags["Ok"]="Ok";LnurlCallbackStatus_Tags["ErrorStatus"]="ErrorStatus";return LnurlCallbackStatus_Tags;}({});/**
3600
3906
  * The response from a LNURL-auth callback, indicating success or failure.
3601
3907
  */export const LnurlCallbackStatus=(()=>{/**
@@ -3624,7 +3930,7 @@ export let MaxFee_Tags=/*#__PURE__*/function(MaxFee_Tags){MaxFee_Tags["Fixed"]="
3624
3930
  * This field is private and should not be used, use `tag` instead.
3625
3931
  */[uniffiTypeNameSymbol]='MaxFee';tag=MaxFee_Tags.NetworkRecommended;constructor(inner){super('MaxFee','NetworkRecommended');this.inner=Object.freeze(inner);}static new(inner){return new NetworkRecommended_(inner);}static instanceOf(obj){return obj.tag===MaxFee_Tags.NetworkRecommended;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='MaxFee';}return Object.freeze({instanceOf,Fixed:Fixed_,Rate:Rate_,NetworkRecommended:NetworkRecommended_});})();// FfiConverter for enum MaxFee
3626
3932
  const FfiConverterTypeMaxFee=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new MaxFee.Fixed({amount:FfiConverterUInt64.read(from)});case 2:return new MaxFee.Rate({satPerVbyte:FfiConverterUInt64.read(from)});case 3:return new MaxFee.NetworkRecommended({leewaySatPerVbyte:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case MaxFee_Tags.Fixed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.amount,into);return;}case MaxFee_Tags.Rate:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt64.write(inner.satPerVbyte,into);return;}case MaxFee_Tags.NetworkRecommended:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterUInt64.write(inner.leewaySatPerVbyte,into);return;}default:// Throwing from here means that MaxFee_Tags hasn't matched an ordinal.
3627
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case MaxFee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amount);return size;}case MaxFee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}case MaxFee_Tags.NetworkRecommended:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt64.allocationSize(inner.leewaySatPerVbyte);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let Network=/*#__PURE__*/function(Network){Network[Network["Mainnet"]=0]="Mainnet";Network[Network["Regtest"]=1]="Regtest";return Network;}({});const FfiConverterTypeNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return Network.Mainnet;case 2:return Network.Regtest;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case Network.Mainnet:return ordinalConverter.write(1,into);case Network.Regtest:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let OnchainConfirmationSpeed=/*#__PURE__*/function(OnchainConfirmationSpeed){OnchainConfirmationSpeed[OnchainConfirmationSpeed["Fast"]=0]="Fast";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Medium"]=1]="Medium";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Slow"]=2]="Slow";return OnchainConfirmationSpeed;}({});const FfiConverterTypeOnchainConfirmationSpeed=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OnchainConfirmationSpeed.Fast;case 2:return OnchainConfirmationSpeed.Medium;case 3:return OnchainConfirmationSpeed.Slow;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OnchainConfirmationSpeed.Fast:return ordinalConverter.write(1,into);case OnchainConfirmationSpeed.Medium:return ordinalConverter.write(2,into);case OnchainConfirmationSpeed.Slow:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
3933
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case MaxFee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amount);return size;}case MaxFee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}case MaxFee_Tags.NetworkRecommended:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt64.allocationSize(inner.leewaySatPerVbyte);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let Network=/*#__PURE__*/function(Network){Network[Network["Mainnet"]=0]="Mainnet";Network[Network["Regtest"]=1]="Regtest";Network[Network["Signet"]=2]="Signet";return Network;}({});const FfiConverterTypeNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return Network.Mainnet;case 2:return Network.Regtest;case 3:return Network.Signet;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case Network.Mainnet:return ordinalConverter.write(1,into);case Network.Regtest:return ordinalConverter.write(2,into);case Network.Signet:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let OnchainConfirmationSpeed=/*#__PURE__*/function(OnchainConfirmationSpeed){OnchainConfirmationSpeed[OnchainConfirmationSpeed["Fast"]=0]="Fast";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Medium"]=1]="Medium";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Slow"]=2]="Slow";return OnchainConfirmationSpeed;}({});const FfiConverterTypeOnchainConfirmationSpeed=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OnchainConfirmationSpeed.Fast;case 2:return OnchainConfirmationSpeed.Medium;case 3:return OnchainConfirmationSpeed.Slow;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OnchainConfirmationSpeed.Fast:return ordinalConverter.write(1,into);case OnchainConfirmationSpeed.Medium:return ordinalConverter.write(2,into);case OnchainConfirmationSpeed.Slow:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
3628
3934
  * Mode of a manually-triggered optimization run.
3629
3935
  */export let OptimizationMode=/*#__PURE__*/function(OptimizationMode){/**
3630
3936
  * Run until no further optimization is productive.
@@ -3976,7 +4282,7 @@ export let PublishSignedTransferPackageResponse_Tags=/*#__PURE__*/function(Publi
3976
4282
  */[uniffiTypeNameSymbol]='PublishSignedTransferPackageResponse';tag=PublishSignedTransferPackageResponse_Tags.PaymentsSent;constructor(inner){super('PublishSignedTransferPackageResponse','PaymentsSent');this.inner=Object.freeze(inner);}static new(inner){return new PaymentsSent_(inner);}static instanceOf(obj){return obj.tag===PublishSignedTransferPackageResponse_Tags.PaymentsSent;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PublishSignedTransferPackageResponse';}return Object.freeze({instanceOf,SwapCompleted:SwapCompleted_,PaymentSent:PaymentSent_,PaymentsSent:PaymentsSent_});})();// FfiConverter for enum PublishSignedTransferPackageResponse
3977
4283
  const FfiConverterTypePublishSignedTransferPackageResponse=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PublishSignedTransferPackageResponse.SwapCompleted();case 2:return new PublishSignedTransferPackageResponse.PaymentSent({payment:FfiConverterTypePayment.read(from)});case 3:return new PublishSignedTransferPackageResponse.PaymentsSent({payments:FfiConverterArrayTypePayment.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PublishSignedTransferPackageResponse_Tags.SwapCompleted:{ordinalConverter.write(1,into);return;}case PublishSignedTransferPackageResponse_Tags.PaymentSent:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case PublishSignedTransferPackageResponse_Tags.PaymentsSent:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypePayment.write(inner.payments,into);return;}default:// Throwing from here means that PublishSignedTransferPackageResponse_Tags hasn't matched an ordinal.
3978
4284
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PublishSignedTransferPackageResponse_Tags.SwapCompleted:{return ordinalConverter.allocationSize(1);}case PublishSignedTransferPackageResponse_Tags.PaymentSent:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case PublishSignedTransferPackageResponse_Tags.PaymentsSent:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypePayment.allocationSize(inner.payments);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ReceivePaymentMethod
3979
- export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_Tags){ReceivePaymentMethod_Tags["SparkAddress"]="SparkAddress";ReceivePaymentMethod_Tags["SparkInvoice"]="SparkInvoice";ReceivePaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";ReceivePaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";return ReceivePaymentMethod_Tags;}({});export const ReceivePaymentMethod=(()=>{class SparkAddress_ extends UniffiEnum{/**
4285
+ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_Tags){ReceivePaymentMethod_Tags["SparkAddress"]="SparkAddress";ReceivePaymentMethod_Tags["SparkInvoice"]="SparkInvoice";ReceivePaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";ReceivePaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";ReceivePaymentMethod_Tags["CrossChain"]="CrossChain";return ReceivePaymentMethod_Tags;}({});export const ReceivePaymentMethod=(()=>{class SparkAddress_ extends UniffiEnum{/**
3980
4286
  * @private
3981
4287
  * This field is private and should not be used, use `tag` instead.
3982
4288
  */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.SparkAddress;constructor(){super('ReceivePaymentMethod','SparkAddress');}static new(){return new SparkAddress_();}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.SparkAddress;}}class SparkInvoice_ extends UniffiEnum{/**
@@ -3988,9 +4294,12 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
3988
4294
  */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.BitcoinAddress;constructor(inner){super('ReceivePaymentMethod','BitcoinAddress');this.inner=Object.freeze(inner);}static new(inner){return new BitcoinAddress_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
3989
4295
  * @private
3990
4296
  * This field is private and should not be used, use `tag` instead.
3991
- */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.Bolt11Invoice;constructor(inner){super('ReceivePaymentMethod','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.Bolt11Invoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ReceivePaymentMethod';}return Object.freeze({instanceOf,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_});})();// FfiConverter for enum ReceivePaymentMethod
3992
- const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress({newAddress:FfiConverterOptionalBool.read(from)});case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from),paymentHash:FfiConverterOptionalString.read(from),receiverIdentityPublicKey:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.newAddress,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);FfiConverterOptionalString.write(inner.paymentHash,into);FfiConverterOptionalString.write(inner.receiverIdentityPublicKey,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
3993
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalBool.allocationSize(inner.newAddress);return size;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);size+=FfiConverterOptionalString.allocationSize(inner.paymentHash);size+=FfiConverterOptionalString.allocationSize(inner.receiverIdentityPublicKey);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: RefundState
4297
+ */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.Bolt11Invoice;constructor(inner){super('ReceivePaymentMethod','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.Bolt11Invoice;}}class CrossChain_ extends UniffiEnum{/**
4298
+ * @private
4299
+ * This field is private and should not be used, use `tag` instead.
4300
+ */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.CrossChain;constructor(inner){super('ReceivePaymentMethod','CrossChain');this.inner=Object.freeze(inner);}static new(inner){return new CrossChain_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.CrossChain;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ReceivePaymentMethod';}return Object.freeze({instanceOf,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,CrossChain:CrossChain_});})();// FfiConverter for enum ReceivePaymentMethod
4301
+ const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress({newAddress:FfiConverterOptionalBool.read(from)});case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from),paymentHash:FfiConverterOptionalString.read(from),receiverIdentityPublicKey:FfiConverterOptionalString.read(from)});case 5:return new ReceivePaymentMethod.CrossChain({route:FfiConverterTypeCrossChainRoutePair.read(from),amount:FfiConverterTypeu128.read(from),destination:FfiConverterOptionalTypeSparkAsset.read(from),feeMode:FfiConverterOptionalTypeCrossChainFeeMode.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),targetOverpayBps:FfiConverterOptionalUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.newAddress,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);FfiConverterOptionalString.write(inner.paymentHash,into);FfiConverterOptionalString.write(inner.receiverIdentityPublicKey,into);return;}case ReceivePaymentMethod_Tags.CrossChain:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterTypeu128.write(inner.amount,into);FfiConverterOptionalTypeSparkAsset.write(inner.destination,into);FfiConverterOptionalTypeCrossChainFeeMode.write(inner.feeMode,into);FfiConverterOptionalUInt32.write(inner.maxSlippageBps,into);FfiConverterOptionalUInt32.write(inner.targetOverpayBps,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
4302
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalBool.allocationSize(inner.newAddress);return size;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);size+=FfiConverterOptionalString.allocationSize(inner.paymentHash);size+=FfiConverterOptionalString.allocationSize(inner.receiverIdentityPublicKey);return size;}case ReceivePaymentMethod_Tags.CrossChain:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalTypeSparkAsset.allocationSize(inner.destination);size+=FfiConverterOptionalTypeCrossChainFeeMode.allocationSize(inner.feeMode);size+=FfiConverterOptionalUInt32.allocationSize(inner.maxSlippageBps);size+=FfiConverterOptionalUInt32.allocationSize(inner.targetOverpayBps);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: RefundState
3994
4303
  export let RefundState_Tags=/*#__PURE__*/function(RefundState_Tags){RefundState_Tags["BroadcastPending"]="BroadcastPending";RefundState_Tags["Broadcast"]="Broadcast";return RefundState_Tags;}({});/**
3995
4304
  * State of the deposit refund broadcast.
3996
4305
  */export const RefundState=(()=>{/**
@@ -4013,7 +4322,7 @@ export let RefundState_Tags=/*#__PURE__*/function(RefundState_Tags){RefundState_
4013
4322
  const FfiConverterTypeRefundState=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new RefundState.BroadcastPending({lastError:FfiConverterOptionalString.read(from)});case 2:return new RefundState.Broadcast();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case RefundState_Tags.BroadcastPending:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalString.write(inner.lastError,into);return;}case RefundState_Tags.Broadcast:{ordinalConverter.write(2,into);return;}default:// Throwing from here means that RefundState_Tags hasn't matched an ordinal.
4014
4323
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case RefundState_Tags.BroadcastPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalString.allocationSize(inner.lastError);return size;}case RefundState_Tags.Broadcast:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
4015
4324
  // Enum: SdkError
4016
- export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["SparkError"]="SparkError";SdkError_Tags["InsufficientFunds"]="InsufficientFunds";SdkError_Tags["InvalidUuid"]="InvalidUuid";SdkError_Tags["InvalidInput"]="InvalidInput";SdkError_Tags["NetworkError"]="NetworkError";SdkError_Tags["StorageError"]="StorageError";SdkError_Tags["ChainServiceError"]="ChainServiceError";SdkError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";SdkError_Tags["MissingUtxo"]="MissingUtxo";SdkError_Tags["DepositClaimInProgress"]="DepositClaimInProgress";SdkError_Tags["RefundReplacementFeeTooLow"]="RefundReplacementFeeTooLow";SdkError_Tags["LnurlError"]="LnurlError";SdkError_Tags["Signer"]="Signer";SdkError_Tags["OptimizationAlreadyRunning"]="OptimizationAlreadyRunning";SdkError_Tags["OptimizationCancelled"]="OptimizationCancelled";SdkError_Tags["InsufficientCpfpFunds"]="InsufficientCpfpFunds";SdkError_Tags["FundingUtxoConflict"]="FundingUtxoConflict";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
4325
+ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["SparkError"]="SparkError";SdkError_Tags["InsufficientFunds"]="InsufficientFunds";SdkError_Tags["InvalidUuid"]="InvalidUuid";SdkError_Tags["InvalidInput"]="InvalidInput";SdkError_Tags["CrossChainAmountOutOfRange"]="CrossChainAmountOutOfRange";SdkError_Tags["CrossChainRouteUnavailable"]="CrossChainRouteUnavailable";SdkError_Tags["NetworkError"]="NetworkError";SdkError_Tags["StorageError"]="StorageError";SdkError_Tags["ChainServiceError"]="ChainServiceError";SdkError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";SdkError_Tags["MissingUtxo"]="MissingUtxo";SdkError_Tags["DepositClaimInProgress"]="DepositClaimInProgress";SdkError_Tags["RefundReplacementFeeTooLow"]="RefundReplacementFeeTooLow";SdkError_Tags["LnurlError"]="LnurlError";SdkError_Tags["Signer"]="Signer";SdkError_Tags["OptimizationAlreadyRunning"]="OptimizationAlreadyRunning";SdkError_Tags["OptimizationCancelled"]="OptimizationCancelled";SdkError_Tags["InsufficientCpfpFunds"]="InsufficientCpfpFunds";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
4017
4326
  * Error type for the `BreezSdk`
4018
4327
  */export const SdkError=(()=>{class SparkError_ extends UniffiError{/**
4019
4328
  * @private
@@ -4030,6 +4339,28 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
4030
4339
  * @private
4031
4340
  * This field is private and should not be used, use `tag` instead.
4032
4341
  */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InvalidInput;constructor(v0){super('SdkError','InvalidInput');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidInput_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.InvalidInput;}static hasInner(obj){return InvalidInput_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
4342
+ * A cross-chain provider rejected the amount as outside what it accepts
4343
+ * for the route.
4344
+ *
4345
+ * The bound fields carry what the route publishes in the direction that
4346
+ * failed, in whichever denominations the provider publishes. A route can
4347
+ * enforce a tighter bound than it publishes, so an amount inside the
4348
+ * published one can still land here.
4349
+ *
4350
+ * The message is the provider's own rejection text with the published
4351
+ * bound appended, so it already names the direction.
4352
+ */class CrossChainAmountOutOfRange_ extends UniffiError{/**
4353
+ * @private
4354
+ * This field is private and should not be used, use `tag` instead.
4355
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.CrossChainAmountOutOfRange;constructor(inner){super('SdkError','CrossChainAmountOutOfRange');this.inner=Object.freeze(inner);}static new(inner){return new CrossChainAmountOutOfRange_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.CrossChainAmountOutOfRange;}static hasInner(obj){return CrossChainAmountOutOfRange_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
4356
+ * A cross-chain provider won't serve the route, for now or at all.
4357
+ *
4358
+ * The message leads with a fixed phrase for each case, for bindings that
4359
+ * only see the text, followed by the provider's own reason.
4360
+ */class CrossChainRouteUnavailable_ extends UniffiError{/**
4361
+ * @private
4362
+ * This field is private and should not be used, use `tag` instead.
4363
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.CrossChainRouteUnavailable;constructor(inner){super('SdkError','CrossChainRouteUnavailable');this.inner=Object.freeze(inner);}static new(inner){return new CrossChainRouteUnavailable_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.CrossChainRouteUnavailable;}static hasInner(obj){return CrossChainRouteUnavailable_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
4033
4364
  * Network error
4034
4365
  */class NetworkError_ extends UniffiError{/**
4035
4366
  * @private
@@ -4082,21 +4413,15 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
4082
4413
  */class InsufficientCpfpFunds_ extends UniffiError{/**
4083
4414
  * @private
4084
4415
  * This field is private and should not be used, use `tag` instead.
4085
- */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InsufficientCpfpFunds;constructor(inner){super('SdkError','InsufficientCpfpFunds');this.inner=Object.freeze(inner);}static new(inner){return new InsufficientCpfpFunds_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.InsufficientCpfpFunds;}static hasInner(obj){return InsufficientCpfpFunds_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
4086
- * A provided funding UTXO was already spent on-chain by a transaction that
4087
- * is not the expected fan-out, so it cannot fund this exit.
4088
- */class FundingUtxoConflict_ extends UniffiError{/**
4089
- * @private
4090
- * This field is private and should not be used, use `tag` instead.
4091
- */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.FundingUtxoConflict;constructor(inner){super('SdkError','FundingUtxoConflict');this.inner=Object.freeze(inner);}static new(inner){return new FundingUtxoConflict_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.FundingUtxoConflict;}static hasInner(obj){return FundingUtxoConflict_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
4416
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InsufficientCpfpFunds;constructor(inner){super('SdkError','InsufficientCpfpFunds');this.inner=Object.freeze(inner);}static new(inner){return new InsufficientCpfpFunds_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.InsufficientCpfpFunds;}static hasInner(obj){return InsufficientCpfpFunds_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
4092
4417
  * @private
4093
4418
  * This field is private and should not be used, use `tag` instead.
4094
- */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Generic;constructor(v0){super('SdkError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkError';}return Object.freeze({instanceOf,SparkError:SparkError_,InsufficientFunds:InsufficientFunds_,InvalidUuid:InvalidUuid_,InvalidInput:InvalidInput_,NetworkError:NetworkError_,StorageError:StorageError_,ChainServiceError:ChainServiceError_,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,DepositClaimInProgress:DepositClaimInProgress_,RefundReplacementFeeTooLow:RefundReplacementFeeTooLow_,LnurlError:LnurlError_,Signer:Signer_,OptimizationAlreadyRunning:OptimizationAlreadyRunning_,OptimizationCancelled:OptimizationCancelled_,InsufficientCpfpFunds:InsufficientCpfpFunds_,FundingUtxoConflict:FundingUtxoConflict_,Generic:Generic_});})();/**
4419
+ */[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Generic;constructor(v0){super('SdkError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkError';}return Object.freeze({instanceOf,SparkError:SparkError_,InsufficientFunds:InsufficientFunds_,InvalidUuid:InvalidUuid_,InvalidInput:InvalidInput_,CrossChainAmountOutOfRange:CrossChainAmountOutOfRange_,CrossChainRouteUnavailable:CrossChainRouteUnavailable_,NetworkError:NetworkError_,StorageError:StorageError_,ChainServiceError:ChainServiceError_,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,DepositClaimInProgress:DepositClaimInProgress_,RefundReplacementFeeTooLow:RefundReplacementFeeTooLow_,LnurlError:LnurlError_,Signer:Signer_,OptimizationAlreadyRunning:OptimizationAlreadyRunning_,OptimizationCancelled:OptimizationCancelled_,InsufficientCpfpFunds:InsufficientCpfpFunds_,Generic:Generic_});})();/**
4095
4420
  * Error type for the `BreezSdk`
4096
4421
  */// FfiConverter for enum SdkError
4097
- const FfiConverterTypeSdkError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InsufficientFunds({tokenIdentifier:FfiConverterOptionalString.read(from)});case 3:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 4:return new SdkError.InvalidInput(FfiConverterString.read(from));case 5:return new SdkError.NetworkError(FfiConverterString.read(from));case 6:return new SdkError.StorageError(FfiConverterString.read(from));case 7:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 8:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 9:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 10:return new SdkError.DepositClaimInProgress({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 11:return new SdkError.RefundReplacementFeeTooLow({pendingFeeSats:FfiConverterUInt64.read(from),requiredFeeSats:FfiConverterUInt64.read(from)});case 12:return new SdkError.LnurlError(FfiConverterString.read(from));case 13:return new SdkError.Signer(FfiConverterString.read(from));case 14:return new SdkError.OptimizationAlreadyRunning();case 15:return new SdkError.OptimizationCancelled();case 16:return new SdkError.InsufficientCpfpFunds({requiredSat:FfiConverterUInt64.read(from)});case 17:return new SdkError.FundingUtxoConflict({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 18:return new SdkError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkError_Tags.SparkError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InsufficientFunds:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SdkError_Tags.InvalidUuid:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.DepositClaimInProgress:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.RefundReplacementFeeTooLow:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterUInt64.write(inner.pendingFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Signer:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.OptimizationAlreadyRunning:{ordinalConverter.write(14,into);return;}case SdkError_Tags.OptimizationCancelled:{ordinalConverter.write(15,into);return;}case SdkError_Tags.InsufficientCpfpFunds:{ordinalConverter.write(16,into);const inner=value.inner;FfiConverterUInt64.write(inner.requiredSat,into);return;}case SdkError_Tags.FundingUtxoConflict:{ordinalConverter.write(17,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(18,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
4098
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkError_Tags.SparkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InsufficientFunds:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SdkError_Tags.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.DepositClaimInProgress:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.RefundReplacementFeeTooLow:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterUInt64.allocationSize(inner.pendingFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Signer:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.OptimizationAlreadyRunning:{return ordinalConverter.allocationSize(14);}case SdkError_Tags.OptimizationCancelled:{return ordinalConverter.allocationSize(15);}case SdkError_Tags.InsufficientCpfpFunds:{const inner=value.inner;let size=ordinalConverter.allocationSize(16);size+=FfiConverterUInt64.allocationSize(inner.requiredSat);return size;}case SdkError_Tags.FundingUtxoConflict:{const inner=value.inner;let size=ordinalConverter.allocationSize(17);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(18);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
4099
- export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["AutoOptimization"]="AutoOptimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";SdkEvent_Tags["NewDeposits"]="NewDeposits";SdkEvent_Tags["UnilateralExitStateChanged"]="UnilateralExitStateChanged";return SdkEvent_Tags;}({});/**
4422
+ const FfiConverterTypeSdkError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InsufficientFunds({tokenIdentifier:FfiConverterOptionalString.read(from)});case 3:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 4:return new SdkError.InvalidInput(FfiConverterString.read(from));case 5:return new SdkError.CrossChainAmountOutOfRange({reason:FfiConverterString.read(from),tooSmall:FfiConverterBool.read(from),boundAmount:FfiConverterOptionalTypeu128.read(from),boundUsdCents:FfiConverterOptionalUInt64.read(from)});case 6:return new SdkError.CrossChainRouteUnavailable({reason:FfiConverterString.read(from),temporary:FfiConverterBool.read(from)});case 7:return new SdkError.NetworkError(FfiConverterString.read(from));case 8:return new SdkError.StorageError(FfiConverterString.read(from));case 9:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 10:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 11:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 12:return new SdkError.DepositClaimInProgress({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 13:return new SdkError.RefundReplacementFeeTooLow({pendingFeeSats:FfiConverterUInt64.read(from),requiredFeeSats:FfiConverterUInt64.read(from)});case 14:return new SdkError.LnurlError(FfiConverterString.read(from));case 15:return new SdkError.Signer(FfiConverterString.read(from));case 16:return new SdkError.OptimizationAlreadyRunning();case 17:return new SdkError.OptimizationCancelled();case 18:return new SdkError.InsufficientCpfpFunds({requiredSat:FfiConverterUInt64.read(from)});case 19:return new SdkError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkError_Tags.SparkError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InsufficientFunds:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SdkError_Tags.InvalidUuid:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.CrossChainAmountOutOfRange:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.reason,into);FfiConverterBool.write(inner.tooSmall,into);FfiConverterOptionalTypeu128.write(inner.boundAmount,into);FfiConverterOptionalUInt64.write(inner.boundUsdCents,into);return;}case SdkError_Tags.CrossChainRouteUnavailable:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner.reason,into);FfiConverterBool.write(inner.temporary,into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.DepositClaimInProgress:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.RefundReplacementFeeTooLow:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterUInt64.write(inner.pendingFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Signer:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.OptimizationAlreadyRunning:{ordinalConverter.write(16,into);return;}case SdkError_Tags.OptimizationCancelled:{ordinalConverter.write(17,into);return;}case SdkError_Tags.InsufficientCpfpFunds:{ordinalConverter.write(18,into);const inner=value.inner;FfiConverterUInt64.write(inner.requiredSat,into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(19,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
4423
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkError_Tags.SparkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InsufficientFunds:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SdkError_Tags.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.CrossChainAmountOutOfRange:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.reason);size+=FfiConverterBool.allocationSize(inner.tooSmall);size+=FfiConverterOptionalTypeu128.allocationSize(inner.boundAmount);size+=FfiConverterOptionalUInt64.allocationSize(inner.boundUsdCents);return size;}case SdkError_Tags.CrossChainRouteUnavailable:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner.reason);size+=FfiConverterBool.allocationSize(inner.temporary);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.DepositClaimInProgress:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.RefundReplacementFeeTooLow:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterUInt64.allocationSize(inner.pendingFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Signer:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.OptimizationAlreadyRunning:{return ordinalConverter.allocationSize(16);}case SdkError_Tags.OptimizationCancelled:{return ordinalConverter.allocationSize(17);}case SdkError_Tags.InsufficientCpfpFunds:{const inner=value.inner;let size=ordinalConverter.allocationSize(18);size+=FfiConverterUInt64.allocationSize(inner.requiredSat);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(19);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
4424
+ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["PaymentMetadataUpdated"]="PaymentMetadataUpdated";SdkEvent_Tags["AutoOptimization"]="AutoOptimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";SdkEvent_Tags["NewDeposits"]="NewDeposits";SdkEvent_Tags["UnilateralExitStateChanged"]="UnilateralExitStateChanged";return SdkEvent_Tags;}({});/**
4100
4425
  * Events emitted by the SDK
4101
4426
  */export const SdkEvent=(()=>{/**
4102
4427
  * Emitted when the wallet has been synchronized with the network
@@ -4133,6 +4458,13 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
4133
4458
  * @private
4134
4459
  * This field is private and should not be used, use `tag` instead.
4135
4460
  */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentFailed;constructor(inner){super('SdkEvent','PaymentFailed');this.inner=Object.freeze(inner);}static new(inner){return new PaymentFailed_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentFailed;}}/**
4461
+ * Emitted when details of an already stored payment changed, such as the
4462
+ * conversion info of a cross-chain receive arriving after the payment
4463
+ * settled. Carries the updated payment.
4464
+ */class PaymentMetadataUpdated_ extends UniffiEnum{/**
4465
+ * @private
4466
+ * This field is private and should not be used, use `tag` instead.
4467
+ */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentMetadataUpdated;constructor(inner){super('SdkEvent','PaymentMetadataUpdated');this.inner=Object.freeze(inner);}static new(inner){return new PaymentMetadataUpdated_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentMetadataUpdated;}}/**
4136
4468
  * Emitted while the background auto-optimizer is running.
4137
4469
  *
4138
4470
  * Only fired from the auto path (enabled via
@@ -4160,11 +4492,11 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
4160
4492
  */class UnilateralExitStateChanged_ extends UniffiEnum{/**
4161
4493
  * @private
4162
4494
  * This field is private and should not be used, use `tag` instead.
4163
- */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.UnilateralExitStateChanged;constructor(){super('SdkEvent','UnilateralExitStateChanged');}static new(){return new UnilateralExitStateChanged_();}static instanceOf(obj){return obj.tag===SdkEvent_Tags.UnilateralExitStateChanged;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,AutoOptimization:AutoOptimization_,LightningAddressChanged:LightningAddressChanged_,NewDeposits:NewDeposits_,UnilateralExitStateChanged:UnilateralExitStateChanged_});})();/**
4495
+ */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.UnilateralExitStateChanged;constructor(){super('SdkEvent','UnilateralExitStateChanged');}static new(){return new UnilateralExitStateChanged_();}static instanceOf(obj){return obj.tag===SdkEvent_Tags.UnilateralExitStateChanged;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,PaymentMetadataUpdated:PaymentMetadataUpdated_,AutoOptimization:AutoOptimization_,LightningAddressChanged:LightningAddressChanged_,NewDeposits:NewDeposits_,UnilateralExitStateChanged:UnilateralExitStateChanged_});})();/**
4164
4496
  * Events emitted by the SDK
4165
4497
  */// FfiConverter for enum SdkEvent
4166
- const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.AutoOptimization({optimizationEvent:FfiConverterTypeAutoOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});case 9:return new SdkEvent.NewDeposits({newDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 10:return new SdkEvent.UnilateralExitStateChanged();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.AutoOptimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeAutoOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}case SdkEvent_Tags.NewDeposits:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.newDeposits,into);return;}case SdkEvent_Tags.UnilateralExitStateChanged:{ordinalConverter.write(10,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
4167
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.AutoOptimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeAutoOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}case SdkEvent_Tags.NewDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.newDeposits);return size;}case SdkEvent_Tags.UnilateralExitStateChanged:{return ordinalConverter.allocationSize(10);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
4498
+ const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.PaymentMetadataUpdated({payment:FfiConverterTypePayment.read(from)});case 8:return new SdkEvent.AutoOptimization({optimizationEvent:FfiConverterTypeAutoOptimizationEvent.read(from)});case 9:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});case 10:return new SdkEvent.NewDeposits({newDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 11:return new SdkEvent.UnilateralExitStateChanged();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentMetadataUpdated:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.AutoOptimization:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeAutoOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}case SdkEvent_Tags.NewDeposits:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.newDeposits,into);return;}case SdkEvent_Tags.UnilateralExitStateChanged:{ordinalConverter.write(11,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
4499
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentMetadataUpdated:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.AutoOptimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeAutoOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}case SdkEvent_Tags.NewDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.newDeposits);return size;}case SdkEvent_Tags.UnilateralExitStateChanged:{return ordinalConverter.allocationSize(11);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
4168
4500
  export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
4169
4501
  * Represents the seed for wallet generation, either as a mnemonic phrase with an optional
4170
4502
  * passphrase or as raw entropy bytes.
@@ -4202,8 +4534,8 @@ export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){
4202
4534
  * @private
4203
4535
  * This field is private and should not be used, use `tag` instead.
4204
4536
  */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.CrossChainAddress;constructor(inner){super('SendPaymentMethod','CrossChainAddress');this.inner=Object.freeze(inner);}static new(inner){return new CrossChainAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentMethod';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum SendPaymentMethod
4205
- const FfiConverterTypeSendPaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentMethod.BitcoinAddress({address:FfiConverterTypeBitcoinAddressDetails.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from)});case 2:return new SendPaymentMethod.Bolt11Invoice({invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),sparkTransferFeeSats:FfiConverterOptionalUInt64.read(from),lightningFeeSats:FfiConverterUInt64.read(from)});case 3:return new SendPaymentMethod.SparkAddress({address:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 4:return new SendPaymentMethod.SparkInvoice({sparkInvoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 5:return new SendPaymentMethod.CrossChainAddress({route:FfiConverterTypeCrossChainRoutePair.read(from),recipientAddress:FfiConverterString.read(from),amountIn:FfiConverterTypeu128.read(from),assetAmountIn:FfiConverterTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),feeAmount:FfiConverterTypeu128.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),sourceTransferFeeSats:FfiConverterUInt64.read(from),feeMode:FfiConverterTypeCrossChainFeeMode.read(from),expiresAt:FfiConverterString.read(from),providerContext:FfiConverterTypeCrossChainProviderContext.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);return;}case SendPaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner.invoiceDetails,into);FfiConverterOptionalUInt64.write(inner.sparkTransferFeeSats,into);FfiConverterUInt64.write(inner.lightningFeeSats,into);return;}case SendPaymentMethod_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.CrossChainAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.amountIn,into);FfiConverterTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterTypeu128.write(inner.feeAmount,into);FfiConverterTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterUInt64.write(inner.sourceTransferFeeSats,into);FfiConverterTypeCrossChainFeeMode.write(inner.feeMode,into);FfiConverterString.write(inner.expiresAt,into);FfiConverterTypeCrossChainProviderContext.write(inner.providerContext,into);return;}default:// Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
4206
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);return size;}case SendPaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalUInt64.allocationSize(inner.sparkTransferFeeSats);size+=FfiConverterUInt64.allocationSize(inner.lightningFeeSats);return size;}case SendPaymentMethod_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.amountIn);size+=FfiConverterTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterUInt64.allocationSize(inner.sourceTransferFeeSats);size+=FfiConverterTypeCrossChainFeeMode.allocationSize(inner.feeMode);size+=FfiConverterString.allocationSize(inner.expiresAt);size+=FfiConverterTypeCrossChainProviderContext.allocationSize(inner.providerContext);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentOptions
4537
+ const FfiConverterTypeSendPaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentMethod.BitcoinAddress({address:FfiConverterTypeBitcoinAddressDetails.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from)});case 2:return new SendPaymentMethod.Bolt11Invoice({invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),sparkTransferFeeSats:FfiConverterOptionalUInt64.read(from),lightningFeeSats:FfiConverterUInt64.read(from)});case 3:return new SendPaymentMethod.SparkAddress({address:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 4:return new SendPaymentMethod.SparkInvoice({sparkInvoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 5:return new SendPaymentMethod.CrossChainAddress({route:FfiConverterTypeCrossChainRoutePair.read(from),recipientAddress:FfiConverterString.read(from),amountIn:FfiConverterTypeu128.read(from),assetAmountIn:FfiConverterTypeu128.read(from),estimatedOut:FfiConverterTypeu128.read(from),feeAmount:FfiConverterTypeu128.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),serviceFeeAssetDecimals:FfiConverterOptionalUInt32.read(from),sourceTransferFeeSats:FfiConverterUInt64.read(from),feeMode:FfiConverterTypeCrossChainFeeMode.read(from),expiresAt:FfiConverterString.read(from),providerContext:FfiConverterTypeCrossChainProviderContext.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);return;}case SendPaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner.invoiceDetails,into);FfiConverterOptionalUInt64.write(inner.sparkTransferFeeSats,into);FfiConverterUInt64.write(inner.lightningFeeSats,into);return;}case SendPaymentMethod_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.CrossChainAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeCrossChainRoutePair.write(inner.route,into);FfiConverterString.write(inner.recipientAddress,into);FfiConverterTypeu128.write(inner.amountIn,into);FfiConverterTypeu128.write(inner.assetAmountIn,into);FfiConverterTypeu128.write(inner.estimatedOut,into);FfiConverterTypeu128.write(inner.feeAmount,into);FfiConverterTypeu128.write(inner.serviceFeeAmount,into);FfiConverterOptionalString.write(inner.serviceFeeAsset,into);FfiConverterOptionalUInt32.write(inner.serviceFeeAssetDecimals,into);FfiConverterUInt64.write(inner.sourceTransferFeeSats,into);FfiConverterTypeCrossChainFeeMode.write(inner.feeMode,into);FfiConverterString.write(inner.expiresAt,into);FfiConverterTypeCrossChainProviderContext.write(inner.providerContext,into);return;}default:// Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
4538
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);return size;}case SendPaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalUInt64.allocationSize(inner.sparkTransferFeeSats);size+=FfiConverterUInt64.allocationSize(inner.lightningFeeSats);return size;}case SendPaymentMethod_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeCrossChainRoutePair.allocationSize(inner.route);size+=FfiConverterString.allocationSize(inner.recipientAddress);size+=FfiConverterTypeu128.allocationSize(inner.amountIn);size+=FfiConverterTypeu128.allocationSize(inner.assetAmountIn);size+=FfiConverterTypeu128.allocationSize(inner.estimatedOut);size+=FfiConverterTypeu128.allocationSize(inner.feeAmount);size+=FfiConverterTypeu128.allocationSize(inner.serviceFeeAmount);size+=FfiConverterOptionalString.allocationSize(inner.serviceFeeAsset);size+=FfiConverterOptionalUInt32.allocationSize(inner.serviceFeeAssetDecimals);size+=FfiConverterUInt64.allocationSize(inner.sourceTransferFeeSats);size+=FfiConverterTypeCrossChainFeeMode.allocationSize(inner.feeMode);size+=FfiConverterString.allocationSize(inner.expiresAt);size+=FfiConverterTypeCrossChainProviderContext.allocationSize(inner.providerContext);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentOptions
4207
4539
  export let SendPaymentOptions_Tags=/*#__PURE__*/function(SendPaymentOptions_Tags){SendPaymentOptions_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentOptions_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentOptions_Tags["SparkAddress"]="SparkAddress";return SendPaymentOptions_Tags;}({});export const SendPaymentOptions=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
4208
4540
  * @private
4209
4541
  * This field is private and should not be used, use `tag` instead.
@@ -4303,33 +4635,24 @@ export let SignerError_Tags=/*#__PURE__*/function(SignerError_Tags){SignerError_
4303
4635
  * Error type for signer operations
4304
4636
  */// FfiConverter for enum SignerError
4305
4637
  const FfiConverterTypeSignerError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SignerError.KeyDerivation(FfiConverterString.read(from));case 2:return new SignerError.Signing(FfiConverterString.read(from));case 3:return new SignerError.Encryption(FfiConverterString.read(from));case 4:return new SignerError.Decryption(FfiConverterString.read(from));case 5:return new SignerError.EncryptionUnavailable(FfiConverterString.read(from));case 6:return new SignerError.Frost(FfiConverterString.read(from));case 7:return new SignerError.InvalidInput(FfiConverterString.read(from));case 8:return new SignerError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SignerError_Tags.KeyDerivation:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Signing:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Encryption:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Decryption:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.EncryptionUnavailable:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Frost:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.InvalidInput:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SignerError_Tags.Generic:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SignerError_Tags hasn't matched an ordinal.
4306
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SignerError_Tags.KeyDerivation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Signing:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Encryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Decryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.EncryptionUnavailable:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Frost:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SourceAsset
4307
- export let SourceAsset_Tags=/*#__PURE__*/function(SourceAsset_Tags){SourceAsset_Tags["Bitcoin"]="Bitcoin";SourceAsset_Tags["Token"]="Token";return SourceAsset_Tags;}({});/**
4308
- * The source asset a cross-chain route accepts as input on the Spark side.
4309
- */export const SourceAsset=(()=>{/**
4638
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SignerError_Tags.KeyDerivation:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Signing:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Encryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Decryption:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.EncryptionUnavailable:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Frost:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SignerError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SparkAsset
4639
+ export let SparkAsset_Tags=/*#__PURE__*/function(SparkAsset_Tags){SparkAsset_Tags["Bitcoin"]="Bitcoin";SparkAsset_Tags["Token"]="Token";return SparkAsset_Tags;}({});/**
4640
+ * The asset a cross-chain route accepts on the Spark side.
4641
+ */export const SparkAsset=(()=>{/**
4310
4642
  * Native BTC (sats).
4311
4643
  */class Bitcoin_ extends UniffiEnum{/**
4312
4644
  * @private
4313
4645
  * This field is private and should not be used, use `tag` instead.
4314
- */[uniffiTypeNameSymbol]='SourceAsset';tag=SourceAsset_Tags.Bitcoin;constructor(){super('SourceAsset','Bitcoin');}static new(){return new Bitcoin_();}static instanceOf(obj){return obj.tag===SourceAsset_Tags.Bitcoin;}}/**
4646
+ */[uniffiTypeNameSymbol]='SparkAsset';tag=SparkAsset_Tags.Bitcoin;constructor(){super('SparkAsset','Bitcoin');}static new(){return new Bitcoin_();}static instanceOf(obj){return obj.tag===SparkAsset_Tags.Bitcoin;}}/**
4315
4647
  * A Spark token, identified by its bech32m `token_identifier` (e.g. `btkn1...`).
4316
4648
  */class Token_ extends UniffiEnum{/**
4317
4649
  * @private
4318
4650
  * This field is private and should not be used, use `tag` instead.
4319
- */[uniffiTypeNameSymbol]='SourceAsset';tag=SourceAsset_Tags.Token;constructor(inner){super('SourceAsset','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===SourceAsset_Tags.Token;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SourceAsset';}return Object.freeze({instanceOf,Bitcoin:Bitcoin_,Token:Token_});})();/**
4320
- * The source asset a cross-chain route accepts as input on the Spark side.
4321
- */// FfiConverter for enum SourceAsset
4322
- const FfiConverterTypeSourceAsset=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SourceAsset.Bitcoin();case 2:return new SourceAsset.Token({tokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SourceAsset_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case SourceAsset_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SourceAsset_Tags hasn't matched an ordinal.
4323
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SourceAsset_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case SourceAsset_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
4324
- * The chain a cross-chain route is funded from, orthogonal to the
4325
- * [`SourceAsset`] that moves.
4326
- */export let SourceChain=/*#__PURE__*/function(SourceChain){/**
4327
- * Paid over Spark, using a Bitcoin or token source asset.
4328
- */SourceChain[SourceChain["Spark"]=0]="Spark";/**
4329
- * Paid over Lightning, using a Bitcoin source asset.
4330
- */SourceChain[SourceChain["Lightning"]=1]="Lightning";/**
4331
- * Paid on-chain to Bitcoin (L1), using a Bitcoin source asset.
4332
- */SourceChain[SourceChain["Bitcoin"]=2]="Bitcoin";return SourceChain;}({});const FfiConverterTypeSourceChain=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return SourceChain.Spark;case 2:return SourceChain.Lightning;case 3:return SourceChain.Bitcoin;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case SourceChain.Spark:return ordinalConverter.write(1,into);case SourceChain.Lightning:return ordinalConverter.write(2,into);case SourceChain.Bitcoin:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
4651
+ */[uniffiTypeNameSymbol]='SparkAsset';tag=SparkAsset_Tags.Token;constructor(inner){super('SparkAsset','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===SparkAsset_Tags.Token;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SparkAsset';}return Object.freeze({instanceOf,Bitcoin:Bitcoin_,Token:Token_});})();/**
4652
+ * The asset a cross-chain route accepts on the Spark side.
4653
+ */// FfiConverter for enum SparkAsset
4654
+ const FfiConverterTypeSparkAsset=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SparkAsset.Bitcoin();case 2:return new SparkAsset.Token({tokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SparkAsset_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case SparkAsset_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SparkAsset_Tags hasn't matched an ordinal.
4655
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SparkAsset_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case SparkAsset_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
4333
4656
  * The HTLC is waiting for the preimage to be shared by the receiver
4334
4657
  */SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
4335
4658
  * The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
@@ -4506,6 +4829,13 @@ export let TransferTarget_Tags=/*#__PURE__*/function(TransferTarget_Tags){Transf
4506
4829
  */[uniffiTypeNameSymbol]='TransferTarget';tag=TransferTarget_Tags.CoopExit;constructor(inner){super('TransferTarget','CoopExit');this.inner=Object.freeze(inner);}static new(inner){return new CoopExit_(inner);}static instanceOf(obj){return obj.tag===TransferTarget_Tags.CoopExit;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='TransferTarget';}return Object.freeze({instanceOf,Spark:Spark_,Lightning:Lightning_,CoopExit:CoopExit_});})();// FfiConverter for enum TransferTarget
4507
4830
  const FfiConverterTypeTransferTarget=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new TransferTarget.Spark({address:FfiConverterString.read(from),sparkInvoice:FfiConverterOptionalString.read(from)});case 2:return new TransferTarget.Lightning({bolt11:FfiConverterString.read(from),lnurlPay:FfiConverterOptionalTypeLnurlPayContext.read(from),feePolicy:FfiConverterTypeFeePolicy.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)});case 3:return new TransferTarget.CoopExit({address:FfiConverterString.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from),confirmationSpeed:FfiConverterTypeOnchainConfirmationSpeed.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case TransferTarget_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterOptionalString.write(inner.sparkInvoice,into);return;}case TransferTarget_Tags.Lightning:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.bolt11,into);FfiConverterOptionalTypeLnurlPayContext.write(inner.lnurlPay,into);FfiConverterTypeFeePolicy.write(inner.feePolicy,into);FfiConverterOptionalUInt32.write(inner.completionTimeoutSecs,into);return;}case TransferTarget_Tags.CoopExit:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);FfiConverterTypeOnchainConfirmationSpeed.write(inner.confirmationSpeed,into);return;}default:// Throwing from here means that TransferTarget_Tags hasn't matched an ordinal.
4508
4831
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case TransferTarget_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterOptionalString.allocationSize(inner.sparkInvoice);return size;}case TransferTarget_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.bolt11);size+=FfiConverterOptionalTypeLnurlPayContext.allocationSize(inner.lnurlPay);size+=FfiConverterTypeFeePolicy.allocationSize(inner.feePolicy);size+=FfiConverterOptionalUInt32.allocationSize(inner.completionTimeoutSecs);return size;}case TransferTarget_Tags.CoopExit:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);size+=FfiConverterTypeOnchainConfirmationSpeed.allocationSize(inner.confirmationSpeed);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
4832
+ * Why an exit has to be built again.
4833
+ */export let UnilateralExitRedoReason=/*#__PURE__*/function(UnilateralExitRedoReason){/**
4834
+ * The chain no longer matches the exit: something that is not one of its
4835
+ * own transactions took an outpoint it still needs. A different refund, a
4836
+ * fee bump from elsewhere, or funding spent on something else all land
4837
+ * here.
4838
+ */UnilateralExitRedoReason[UnilateralExitRedoReason["OnChainStateDiverged"]=0]="OnChainStateDiverged";return UnilateralExitRedoReason;}({});const FfiConverterTypeUnilateralExitRedoReason=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return UnilateralExitRedoReason.OnChainStateDiverged;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case UnilateralExitRedoReason.OnChainStateDiverged:return ordinalConverter.write(1,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
4509
4839
  * The role of a transaction in the exit path.
4510
4840
  */export let UnilateralExitTxKind=/*#__PURE__*/function(UnilateralExitTxKind){/**
4511
4841
  * Splits the caller's funding into one output per branch. Present only
@@ -4516,7 +4846,31 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
4516
4846
  * A leaf's refund transaction.
4517
4847
  */UnilateralExitTxKind[UnilateralExitTxKind["Refund"]=2]="Refund";/**
4518
4848
  * The final transaction sweeping all refund outputs to the destination.
4519
- */UnilateralExitTxKind[UnilateralExitTxKind["Sweep"]=3]="Sweep";return UnilateralExitTxKind;}({});const FfiConverterTypeUnilateralExitTxKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return UnilateralExitTxKind.FanOut;case 2:return UnilateralExitTxKind.Node;case 3:return UnilateralExitTxKind.Refund;case 4:return UnilateralExitTxKind.Sweep;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case UnilateralExitTxKind.FanOut:return ordinalConverter.write(1,into);case UnilateralExitTxKind.Node:return ordinalConverter.write(2,into);case UnilateralExitTxKind.Refund:return ordinalConverter.write(3,into);case UnilateralExitTxKind.Sweep:return ordinalConverter.write(4,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: UnsignedTransferPackage
4849
+ */UnilateralExitTxKind[UnilateralExitTxKind["Sweep"]=3]="Sweep";return UnilateralExitTxKind;}({});const FfiConverterTypeUnilateralExitTxKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return UnilateralExitTxKind.FanOut;case 2:return UnilateralExitTxKind.Node;case 3:return UnilateralExitTxKind.Refund;case 4:return UnilateralExitTxKind.Sweep;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case UnilateralExitTxKind.FanOut:return ordinalConverter.write(1,into);case UnilateralExitTxKind.Node:return ordinalConverter.write(2,into);case UnilateralExitTxKind.Refund:return ordinalConverter.write(3,into);case UnilateralExitTxKind.Sweep:return ordinalConverter.write(4,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: UnilateralExitVerdict
4850
+ export let UnilateralExitVerdict_Tags=/*#__PURE__*/function(UnilateralExitVerdict_Tags){UnilateralExitVerdict_Tags["Valid"]="Valid";UnilateralExitVerdict_Tags["Done"]="Done";UnilateralExitVerdict_Tags["Redo"]="Redo";return UnilateralExitVerdict_Tags;}({});/**
4851
+ * What to do with an exit that has been read back against the chain.
4852
+ */export const UnilateralExitVerdict=(()=>{/**
4853
+ * The exit still holds. Broadcast the transactions whose dependencies are
4854
+ * confirmed and whose timelocks have matured.
4855
+ */class Valid_ extends UniffiEnum{/**
4856
+ * @private
4857
+ * This field is private and should not be used, use `tag` instead.
4858
+ */[uniffiTypeNameSymbol]='UnilateralExitVerdict';tag=UnilateralExitVerdict_Tags.Valid;constructor(){super('UnilateralExitVerdict','Valid');}static new(){return new Valid_();}static instanceOf(obj){return obj.tag===UnilateralExitVerdict_Tags.Valid;}}/**
4859
+ * Every transaction is confirmed, the sweep included. The funds have
4860
+ * arrived and there is nothing left to send.
4861
+ */class Done_ extends UniffiEnum{/**
4862
+ * @private
4863
+ * This field is private and should not be used, use `tag` instead.
4864
+ */[uniffiTypeNameSymbol]='UnilateralExitVerdict';tag=UnilateralExitVerdict_Tags.Done;constructor(){super('UnilateralExitVerdict','Done');}static new(){return new Done_();}static instanceOf(obj){return obj.tag===UnilateralExitVerdict_Tags.Done;}}/**
4865
+ * The exit cannot be finished as it stands. Quote and build it again.
4866
+ */class Redo_ extends UniffiEnum{/**
4867
+ * @private
4868
+ * This field is private and should not be used, use `tag` instead.
4869
+ */[uniffiTypeNameSymbol]='UnilateralExitVerdict';tag=UnilateralExitVerdict_Tags.Redo;constructor(inner){super('UnilateralExitVerdict','Redo');this.inner=Object.freeze(inner);}static new(inner){return new Redo_(inner);}static instanceOf(obj){return obj.tag===UnilateralExitVerdict_Tags.Redo;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UnilateralExitVerdict';}return Object.freeze({instanceOf,Valid:Valid_,Done:Done_,Redo:Redo_});})();/**
4870
+ * What to do with an exit that has been read back against the chain.
4871
+ */// FfiConverter for enum UnilateralExitVerdict
4872
+ const FfiConverterTypeUnilateralExitVerdict=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UnilateralExitVerdict.Valid();case 2:return new UnilateralExitVerdict.Done();case 3:return new UnilateralExitVerdict.Redo({reason:FfiConverterTypeUnilateralExitRedoReason.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UnilateralExitVerdict_Tags.Valid:{ordinalConverter.write(1,into);return;}case UnilateralExitVerdict_Tags.Done:{ordinalConverter.write(2,into);return;}case UnilateralExitVerdict_Tags.Redo:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeUnilateralExitRedoReason.write(inner.reason,into);return;}default:// Throwing from here means that UnilateralExitVerdict_Tags hasn't matched an ordinal.
4873
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UnilateralExitVerdict_Tags.Valid:{return ordinalConverter.allocationSize(1);}case UnilateralExitVerdict_Tags.Done:{return ordinalConverter.allocationSize(2);}case UnilateralExitVerdict_Tags.Redo:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeUnilateralExitRedoReason.allocationSize(inner.reason);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: UnsignedTransferPackage
4520
4874
  export let UnsignedTransferPackage_Tags=/*#__PURE__*/function(UnsignedTransferPackage_Tags){UnsignedTransferPackage_Tags["Swap"]="Swap";UnsignedTransferPackage_Tags["Transfer"]="Transfer";UnsignedTransferPackage_Tags["Token"]="Token";UnsignedTransferPackage_Tags["TokenBatch"]="TokenBatch";return UnsignedTransferPackage_Tags;}({});export const UnsignedTransferPackage=(()=>{class Swap_ extends UniffiEnum{/**
4521
4875
  * @private
4522
4876
  * This field is private and should not be used, use `tag` instead.
@@ -4535,7 +4889,7 @@ export let UnsignedTransferPackage_Tags=/*#__PURE__*/function(UnsignedTransferPa
4535
4889
  */[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.TokenBatch;constructor(inner){super('UnsignedTransferPackage','TokenBatch');this.inner=Object.freeze(inner);}static new(inner){return new TokenBatch_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.TokenBatch;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UnsignedTransferPackage';}return Object.freeze({instanceOf,Swap:Swap_,Transfer:Transfer_,Token:Token_,TokenBatch:TokenBatch_});})();// FfiConverter for enum UnsignedTransferPackage
4536
4890
  const FfiConverterTypeUnsignedTransferPackage=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UnsignedTransferPackage.Swap({prepareTransfer:FfiConverterTypeExternalPrepareTransferRequest.read(from),targetAmounts:FfiConverterArrayUInt64.read(from),amountSat:FfiConverterUInt64.read(from),feeSat:FfiConverterUInt64.read(from)});case 2:return new UnsignedTransferPackage.Transfer({prepareTransfer:FfiConverterTypeExternalPrepareTransferRequest.read(from),amountSat:FfiConverterUInt64.read(from),feeSat:FfiConverterUInt64.read(from),target:FfiConverterTypeTransferTarget.read(from)});case 3:return new UnsignedTransferPackage.Token({prepareTokenTransaction:FfiConverterTypeExternalPrepareTokenTransactionRequest.read(from),tokenContext:FfiConverterArrayBuffer.read(from),tokenIdentifier:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),isSwap:FfiConverterBool.read(from)});case 4:return new UnsignedTransferPackage.TokenBatch({prepareTokenTransaction:FfiConverterTypeExternalPrepareTokenTransactionRequest.read(from),tokenContext:FfiConverterArrayBuffer.read(from),totals:FfiConverterArrayTypeBatchTotal.read(from),isSwap:FfiConverterBool.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UnsignedTransferPackage_Tags.Swap:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeExternalPrepareTransferRequest.write(inner.prepareTransfer,into);FfiConverterArrayUInt64.write(inner.targetAmounts,into);FfiConverterUInt64.write(inner.amountSat,into);FfiConverterUInt64.write(inner.feeSat,into);return;}case UnsignedTransferPackage_Tags.Transfer:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeExternalPrepareTransferRequest.write(inner.prepareTransfer,into);FfiConverterUInt64.write(inner.amountSat,into);FfiConverterUInt64.write(inner.feeSat,into);FfiConverterTypeTransferTarget.write(inner.target,into);return;}case UnsignedTransferPackage_Tags.Token:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeExternalPrepareTokenTransactionRequest.write(inner.prepareTokenTransaction,into);FfiConverterArrayBuffer.write(inner.tokenContext,into);FfiConverterString.write(inner.tokenIdentifier,into);FfiConverterTypeu128.write(inner.amount,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterBool.write(inner.isSwap,into);return;}case UnsignedTransferPackage_Tags.TokenBatch:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeExternalPrepareTokenTransactionRequest.write(inner.prepareTokenTransaction,into);FfiConverterArrayBuffer.write(inner.tokenContext,into);FfiConverterArrayTypeBatchTotal.write(inner.totals,into);FfiConverterBool.write(inner.isSwap,into);return;}default:// Throwing from here means that UnsignedTransferPackage_Tags hasn't matched an ordinal.
4537
4891
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UnsignedTransferPackage_Tags.Swap:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeExternalPrepareTransferRequest.allocationSize(inner.prepareTransfer);size+=FfiConverterArrayUInt64.allocationSize(inner.targetAmounts);size+=FfiConverterUInt64.allocationSize(inner.amountSat);size+=FfiConverterUInt64.allocationSize(inner.feeSat);return size;}case UnsignedTransferPackage_Tags.Transfer:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeExternalPrepareTransferRequest.allocationSize(inner.prepareTransfer);size+=FfiConverterUInt64.allocationSize(inner.amountSat);size+=FfiConverterUInt64.allocationSize(inner.feeSat);size+=FfiConverterTypeTransferTarget.allocationSize(inner.target);return size;}case UnsignedTransferPackage_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeExternalPrepareTokenTransactionRequest.allocationSize(inner.prepareTokenTransaction);size+=FfiConverterArrayBuffer.allocationSize(inner.tokenContext);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);size+=FfiConverterTypeu128.allocationSize(inner.amount);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterBool.allocationSize(inner.isSwap);return size;}case UnsignedTransferPackage_Tags.TokenBatch:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeExternalPrepareTokenTransactionRequest.allocationSize(inner.prepareTokenTransaction);size+=FfiConverterArrayBuffer.allocationSize(inner.tokenContext);size+=FfiConverterArrayTypeBatchTotal.allocationSize(inner.totals);size+=FfiConverterBool.allocationSize(inner.isSwap);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: UpdateDepositPayload
4538
- export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_Tags){UpdateDepositPayload_Tags["ClaimError"]="ClaimError";UpdateDepositPayload_Tags["Refund"]="Refund";UpdateDepositPayload_Tags["InstantClaim"]="InstantClaim";UpdateDepositPayload_Tags["RefundBroadcastState"]="RefundBroadcastState";return UpdateDepositPayload_Tags;}({});export const UpdateDepositPayload=(()=>{class ClaimError_ extends UniffiEnum{/**
4892
+ export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_Tags){UpdateDepositPayload_Tags["ClaimError"]="ClaimError";UpdateDepositPayload_Tags["Refund"]="Refund";UpdateDepositPayload_Tags["InstantClaim"]="InstantClaim";UpdateDepositPayload_Tags["RefundBroadcastState"]="RefundBroadcastState";UpdateDepositPayload_Tags["MaxClaimFee"]="MaxClaimFee";return UpdateDepositPayload_Tags;}({});export const UpdateDepositPayload=(()=>{class ClaimError_ extends UniffiEnum{/**
4539
4893
  * @private
4540
4894
  * This field is private and should not be used, use `tag` instead.
4541
4895
  */[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.ClaimError;constructor(inner){super('UpdateDepositPayload','ClaimError');this.inner=Object.freeze(inner);}static new(inner){return new ClaimError_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.ClaimError;}}class Refund_ extends UniffiEnum{/**
@@ -4552,9 +4906,37 @@ export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_
4552
4906
  */class RefundBroadcastState_ extends UniffiEnum{/**
4553
4907
  * @private
4554
4908
  * This field is private and should not be used, use `tag` instead.
4555
- */[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.RefundBroadcastState;constructor(inner){super('UpdateDepositPayload','RefundBroadcastState');this.inner=Object.freeze(inner);}static new(inner){return new RefundBroadcastState_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.RefundBroadcastState;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UpdateDepositPayload';}return Object.freeze({instanceOf,ClaimError:ClaimError_,Refund:Refund_,InstantClaim:InstantClaim_,RefundBroadcastState:RefundBroadcastState_});})();// FfiConverter for enum UpdateDepositPayload
4556
- const FfiConverterTypeUpdateDepositPayload=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UpdateDepositPayload.ClaimError({error:FfiConverterTypeDepositClaimError.read(from)});case 2:return new UpdateDepositPayload.Refund({refundTxid:FfiConverterString.read(from),refundTx:FfiConverterString.read(from),state:FfiConverterTypeRefundState.read(from)});case 3:return new UpdateDepositPayload.InstantClaim({status:FfiConverterTypeInstantClaimStatus.read(from)});case 4:return new UpdateDepositPayload.RefundBroadcastState({refundTxid:FfiConverterString.read(from),state:FfiConverterTypeRefundState.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeDepositClaimError.write(inner.error,into);return;}case UpdateDepositPayload_Tags.Refund:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.refundTxid,into);FfiConverterString.write(inner.refundTx,into);FfiConverterTypeRefundState.write(inner.state,into);return;}case UpdateDepositPayload_Tags.InstantClaim:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeInstantClaimStatus.write(inner.status,into);return;}case UpdateDepositPayload_Tags.RefundBroadcastState:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.refundTxid,into);FfiConverterTypeRefundState.write(inner.state,into);return;}default:// Throwing from here means that UpdateDepositPayload_Tags hasn't matched an ordinal.
4557
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeDepositClaimError.allocationSize(inner.error);return size;}case UpdateDepositPayload_Tags.Refund:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterString.allocationSize(inner.refundTx);size+=FfiConverterTypeRefundState.allocationSize(inner.state);return size;}case UpdateDepositPayload_Tags.InstantClaim:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeInstantClaimStatus.allocationSize(inner.status);return size;}case UpdateDepositPayload_Tags.RefundBroadcastState:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterTypeRefundState.allocationSize(inner.state);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: WebhookEventType
4909
+ */[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.RefundBroadcastState;constructor(inner){super('UpdateDepositPayload','RefundBroadcastState');this.inner=Object.freeze(inner);}static new(inner){return new RefundBroadcastState_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.RefundBroadcastState;}}/**
4910
+ * Sets the fee ceiling standing for this deposit, which later automatic
4911
+ * claims run under. `None` clears it, returning the deposit to the
4912
+ * configured ceiling.
4913
+ */class MaxClaimFee_ extends UniffiEnum{/**
4914
+ * @private
4915
+ * This field is private and should not be used, use `tag` instead.
4916
+ */[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.MaxClaimFee;constructor(inner){super('UpdateDepositPayload','MaxClaimFee');this.inner=Object.freeze(inner);}static new(inner){return new MaxClaimFee_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.MaxClaimFee;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UpdateDepositPayload';}return Object.freeze({instanceOf,ClaimError:ClaimError_,Refund:Refund_,InstantClaim:InstantClaim_,RefundBroadcastState:RefundBroadcastState_,MaxClaimFee:MaxClaimFee_});})();// FfiConverter for enum UpdateDepositPayload
4917
+ const FfiConverterTypeUpdateDepositPayload=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UpdateDepositPayload.ClaimError({error:FfiConverterTypeDepositClaimError.read(from)});case 2:return new UpdateDepositPayload.Refund({refundTxid:FfiConverterString.read(from),refundTx:FfiConverterString.read(from),state:FfiConverterTypeRefundState.read(from)});case 3:return new UpdateDepositPayload.InstantClaim({status:FfiConverterTypeInstantClaimStatus.read(from)});case 4:return new UpdateDepositPayload.RefundBroadcastState({refundTxid:FfiConverterString.read(from),state:FfiConverterTypeRefundState.read(from)});case 5:return new UpdateDepositPayload.MaxClaimFee({maxFee:FfiConverterOptionalTypeMaxFee.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeDepositClaimError.write(inner.error,into);return;}case UpdateDepositPayload_Tags.Refund:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.refundTxid,into);FfiConverterString.write(inner.refundTx,into);FfiConverterTypeRefundState.write(inner.state,into);return;}case UpdateDepositPayload_Tags.InstantClaim:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeInstantClaimStatus.write(inner.status,into);return;}case UpdateDepositPayload_Tags.RefundBroadcastState:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.refundTxid,into);FfiConverterTypeRefundState.write(inner.state,into);return;}case UpdateDepositPayload_Tags.MaxClaimFee:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterOptionalTypeMaxFee.write(inner.maxFee,into);return;}default:// Throwing from here means that UpdateDepositPayload_Tags hasn't matched an ordinal.
4918
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeDepositClaimError.allocationSize(inner.error);return size;}case UpdateDepositPayload_Tags.Refund:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterString.allocationSize(inner.refundTx);size+=FfiConverterTypeRefundState.allocationSize(inner.state);return size;}case UpdateDepositPayload_Tags.InstantClaim:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeInstantClaimStatus.allocationSize(inner.status);return size;}case UpdateDepositPayload_Tags.RefundBroadcastState:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterTypeRefundState.allocationSize(inner.state);return size;}case UpdateDepositPayload_Tags.MaxClaimFee:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterOptionalTypeMaxFee.allocationSize(inner.maxFee);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: UpdateWatchedAddressPayload
4919
+ export let UpdateWatchedAddressPayload_Tags=/*#__PURE__*/function(UpdateWatchedAddressPayload_Tags){UpdateWatchedAddressPayload_Tags["Watch"]="Watch";UpdateWatchedAddressPayload_Tags["Seen"]="Seen";UpdateWatchedAddressPayload_Tags["Unwatch"]="Unwatch";return UpdateWatchedAddressPayload_Tags;}({});export const UpdateWatchedAddressPayload=(()=>{/**
4920
+ * Starts watching the address, or restarts the window on one already
4921
+ * watched, clearing `seen`.
4922
+ */class Watch_ extends UniffiEnum{/**
4923
+ * @private
4924
+ * This field is private and should not be used, use `tag` instead.
4925
+ */[uniffiTypeNameSymbol]='UpdateWatchedAddressPayload';tag=UpdateWatchedAddressPayload_Tags.Watch;constructor(inner){super('UpdateWatchedAddressPayload','Watch');this.inner=Object.freeze(inner);}static new(inner){return new Watch_(inner);}static instanceOf(obj){return obj.tag===UpdateWatchedAddressPayload_Tags.Watch;}}/**
4926
+ * Records that a deposit to it has been seen unconfirmed.
4927
+ */class Seen_ extends UniffiEnum{/**
4928
+ * @private
4929
+ * This field is private and should not be used, use `tag` instead.
4930
+ */[uniffiTypeNameSymbol]='UpdateWatchedAddressPayload';tag=UpdateWatchedAddressPayload_Tags.Seen;constructor(){super('UpdateWatchedAddressPayload','Seen');}static new(){return new Seen_();}static instanceOf(obj){return obj.tag===UpdateWatchedAddressPayload_Tags.Seen;}}/**
4931
+ * Stops watching it, removing the row. Applies only while `issued_at` is
4932
+ * still the stored value, so an address handed out again since it was read
4933
+ * is not retired by a decision taken before that.
4934
+ */class Unwatch_ extends UniffiEnum{/**
4935
+ * @private
4936
+ * This field is private and should not be used, use `tag` instead.
4937
+ */[uniffiTypeNameSymbol]='UpdateWatchedAddressPayload';tag=UpdateWatchedAddressPayload_Tags.Unwatch;constructor(inner){super('UpdateWatchedAddressPayload','Unwatch');this.inner=Object.freeze(inner);}static new(inner){return new Unwatch_(inner);}static instanceOf(obj){return obj.tag===UpdateWatchedAddressPayload_Tags.Unwatch;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UpdateWatchedAddressPayload';}return Object.freeze({instanceOf,Watch:Watch_,Seen:Seen_,Unwatch:Unwatch_});})();// FfiConverter for enum UpdateWatchedAddressPayload
4938
+ const FfiConverterTypeUpdateWatchedAddressPayload=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UpdateWatchedAddressPayload.Watch({issuedAt:FfiConverterUInt64.read(from)});case 2:return new UpdateWatchedAddressPayload.Seen();case 3:return new UpdateWatchedAddressPayload.Unwatch({issuedAt:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UpdateWatchedAddressPayload_Tags.Watch:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.issuedAt,into);return;}case UpdateWatchedAddressPayload_Tags.Seen:{ordinalConverter.write(2,into);return;}case UpdateWatchedAddressPayload_Tags.Unwatch:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterUInt64.write(inner.issuedAt,into);return;}default:// Throwing from here means that UpdateWatchedAddressPayload_Tags hasn't matched an ordinal.
4939
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UpdateWatchedAddressPayload_Tags.Watch:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.issuedAt);return size;}case UpdateWatchedAddressPayload_Tags.Seen:{return ordinalConverter.allocationSize(2);}case UpdateWatchedAddressPayload_Tags.Unwatch:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt64.allocationSize(inner.issuedAt);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: WebhookEventType
4558
4940
  export let WebhookEventType_Tags=/*#__PURE__*/function(WebhookEventType_Tags){WebhookEventType_Tags["LightningReceiveFinished"]="LightningReceiveFinished";WebhookEventType_Tags["LightningSendFinished"]="LightningSendFinished";WebhookEventType_Tags["CoopExitFinished"]="CoopExitFinished";WebhookEventType_Tags["StaticDepositFinished"]="StaticDepositFinished";WebhookEventType_Tags["Unknown"]="Unknown";return WebhookEventType_Tags;}({});/**
4559
4941
  * The type of event that triggers a webhook notification.
4560
4942
  */export const WebhookEventType=(()=>{/**
@@ -4676,7 +5058,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
4676
5058
  * Verifies a message signature against the provided public key. The message
4677
5059
  * is SHA256 hashed before verification. The signature can be hex encoded
4678
5060
  * in either DER or compact format.
4679
- */async checkMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimHtlcPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_htlc_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimHtlcPaymentRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimHtlcPaymentResponse.lift.bind(FfiConverterTypeClaimHtlcPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5061
+ */async checkMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5062
+ * Reads an exit you kept back against the chain: which of its transactions
5063
+ * are now in a block, and whether it can still be finished as it stands.
5064
+ *
5065
+ * Needs neither the wallet's leaves nor a signer, so an exit can be followed
5066
+ * from the response alone. Store the response in place of the one you passed
5067
+ * in, and broadcast what its statuses leave to send.
5068
+ */async checkUnilateralExit(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_exit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckUnilateralExitRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeCheckUnilateralExitResponse.lift.bind(FfiConverterTypeCheckUnilateralExitResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimHtlcPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_htlc_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimHtlcPaymentRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimHtlcPaymentResponse.lift.bind(FfiConverterTypeClaimHtlcPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4680
5069
  * Claim a lightning address username handed over by its current owner,
4681
5070
  * using the [`TransferAuthorization`] from
4682
5071
  * [`BreezSdk::authorize_lightning_address_transfer`]. Completes the
@@ -4927,18 +5316,23 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
4927
5316
  * Messages in the `breez-lnurl:` namespace are refused: it is reserved for
4928
5317
  * the SDK's own requests to the Lightning address server.
4929
5318
  */async signMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSignMessageRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSignMessageResponse.lift.bind(FfiConverterTypeSignMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4930
- * Synchronizes the wallet with the Spark network
5319
+ * Synchronizes the wallet with the Spark network.
5320
+ *
5321
+ * Also collects the data a unilateral exit needs for any leaf still missing
5322
+ * it, and waits for that before returning. This happens regardless of
5323
+ * [`exit_chain_auto_fetch_enabled`](crate::Config::exit_chain_auto_fetch_enabled),
5324
+ * which governs only the automatic collection: syncing is how to run one at
5325
+ * a moment of your choosing with that turned off.
4931
5326
  */async syncWallet(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSyncWalletRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSyncWalletResponse.lift.bind(FfiConverterTypeSyncWalletResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4932
5327
  * Builds and signs a complete unilateral exit from a `prepare_unilateral_exit`
4933
5328
  * quote and the actual funding UTXOs, returning the full transaction set in
4934
5329
  * topological broadcast order without broadcasting. Broadcast it over time,
4935
5330
  * respecting each transaction's `depends_on` and `csv_timelock_blocks`.
4936
5331
  *
4937
- * It resolves on-chain state first (see [`resolve_exit_observations`]): an
4938
- * already-confirmed fan-out or CPFP node is not rebuilt, and a leaf refund
4939
- * already on-chain (recognized by the leaf's refund address, so any refund
4940
- * variant counts) is swept directly. Re-running after partial progress
4941
- * therefore resumes rather than restarts.
5332
+ * It reads on-chain state first: an already-confirmed fan-out or CPFP node
5333
+ * is not rebuilt, and a leaf refund already on-chain (recognized by the
5334
+ * leaf's refund address, so any refund variant counts) is swept directly.
5335
+ * Re-running after partial progress therefore resumes rather than restarts.
4942
5336
  */async unilateralExit(request,signer,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unilateral_exit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeUnilateralExitRequest.lower(request),FfiConverterTypeCpfpSigner.lower(signer));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeUnilateralExitResponse.lift.bind(FfiConverterTypeUnilateralExitResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
4943
5337
  * Unregisters a previously registered webhook.
4944
5338
  *
@@ -5175,7 +5569,7 @@ FfiConverterTypeExternalSigningSigner.drop(uniffiHandle);}},register:()=>{native
5175
5569
  constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeExternalSparkSignerImplObjectFactory.bless(pointer);}/**
5176
5570
  * The wallet identity public key (33 bytes compressed).
5177
5571
  */async getIdentityPublicKey(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_identity_public_key(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5178
- * The signing public key for a tree leaf.
5572
+ * The public key of the leaf signing key derived from `leaf_id`.
5179
5573
  */async getPublicKeyForLeaf(leafId,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_public_key_for_leaf(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalTreeNodeId.lower(leafId));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5180
5574
  * Whether this signer is backed by a remote service, so its operations are
5181
5575
  * network round-trips rather than local computation. Local signers return
@@ -5189,7 +5583,8 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
5189
5583
  * ECDSA-sign an arbitrary user message with the identity key.
5190
5584
  */async signMessage(message,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_message(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeEcdsaSignatureBytes.lift.bind(FfiConverterTypeEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5191
5585
  * Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
5192
- * BIP341 key-path spend (empty script tree).
5586
+ * BIP341 key-path spend (empty script tree), with the leaf signing key
5587
+ * derived from `leaf_id`.
5193
5588
  */async signLeafRefundSpend(leafId,sighash,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_leaf_refund_spend(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalTreeNodeId.lower(leafId),FfiConverterArrayBuffer.lower(sighash));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSchnorrSignatureBytes.lift.bind(FfiConverterTypeSchnorrSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5194
5589
  * Produce FROST shares for a batch of jobs.
5195
5590
  */async signFrost(jobs,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_frost(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayTypeExternalFrostJob.lower(jobs));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeExternalFrostShareResult.lift.bind(FfiConverterArrayTypeExternalFrostShareResult),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
@@ -5547,7 +5942,7 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
5547
5942
  * Sets the account number for key derivation. All wallet keys derive from
5548
5943
  * the seed at `m/8797555'/<account number>'`, so each account number
5549
5944
  * yields an independent wallet from the same seed. Defaults to 0 on
5550
- * Regtest and 1 on all other networks when unset.
5945
+ * Regtest and Signet, and 1 on Mainnet when unset.
5551
5946
  * Arguments:
5552
5947
  * - `account_number`: The account number in the derivation path.
5553
5948
  */async withAccountNumber(accountNumber,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_account_number(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterUInt32.lower(accountNumber));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
@@ -5768,7 +6163,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
5768
6163
  * # Returns
5769
6164
  *
5770
6165
  * Success or a `StorageError`
5771
- */async updateDeposit(txid,vout,payload,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_update_deposit(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout),FfiConverterTypeUpdateDepositPayload.lower(payload));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async setLnurlMetadata(metadata,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterArrayTypeSetLnurlMetadataItem.lower(metadata));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
6166
+ */async updateDeposit(txid,vout,payload,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_update_deposit(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout),FfiConverterTypeUpdateDepositPayload.lower(payload));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
6167
+ * Lists the deposit addresses currently being watched for unconfirmed
6168
+ * deposits, most recently issued first.
6169
+ */async listWatchedDepositAddresses(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_watched_deposit_addresses(uniffiTypeStorageImplObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeWatchedDepositAddress.lift.bind(FfiConverterArrayTypeWatchedDepositAddress),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
6170
+ * Applies one change to a watched deposit address. `Watch` inserts or
6171
+ * restarts it, `Seen` marks it, and `Unwatch` removes it.
6172
+ */async updateWatchedDepositAddress(address,payload,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_update_watched_deposit_address(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(address),FfiConverterTypeUpdateWatchedAddressPayload.lower(payload));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async setLnurlMetadata(metadata,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterArrayTypeSetLnurlMetadataItem.lower(metadata));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5772
6173
  * Lists contacts from storage with optional pagination
5773
6174
  */async listContacts(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_contacts(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeListContactsRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeContact.lift.bind(FfiConverterArrayTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
5774
6175
  * Gets a single contact by its ID
@@ -5821,6 +6222,8 @@ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeign
5821
6222
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteDeposit:(uniffiHandle,txid,vout,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
5822
6223
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listDeposits:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listDeposits({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeDepositInfo.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
5823
6224
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},updateDeposit:(uniffiHandle,txid,vout,payload,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),FfiConverterTypeUpdateDepositPayload.lift(payload),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
6225
+ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listWatchedDepositAddresses:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listWatchedDepositAddresses({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeWatchedDepositAddress.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
6226
+ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},updateWatchedDepositAddress:(uniffiHandle,address,payload,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateWatchedDepositAddress(FfiConverterString.lift(address),FfiConverterTypeUpdateWatchedAddressPayload.lift(payload),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
5824
6227
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setLnurlMetadata:(uniffiHandle,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setLnurlMetadata(FfiConverterArrayTypeSetLnurlMetadataItem.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
5825
6228
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listContacts:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listContacts(FfiConverterTypeListContactsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
5826
6229
  callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
@@ -5946,7 +6349,9 @@ const FfiConverterOptionalTypeConversionDetails=new FfiConverterOptional(FfiConv
5946
6349
  const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionOptions | undefined
5947
6350
  const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for Credentials | undefined
5948
6351
  const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for CrossChainConfig | undefined
5949
- const FfiConverterOptionalTypeCrossChainConfig=new FfiConverterOptional(FfiConverterTypeCrossChainConfig);// FfiConverter for LightningAddressInfo | undefined
6352
+ const FfiConverterOptionalTypeCrossChainConfig=new FfiConverterOptional(FfiConverterTypeCrossChainConfig);// FfiConverter for CrossChainReceiveInfo | undefined
6353
+ const FfiConverterOptionalTypeCrossChainReceiveInfo=new FfiConverterOptional(FfiConverterTypeCrossChainReceiveInfo);// FfiConverter for CrossChainRouteLimits | undefined
6354
+ const FfiConverterOptionalTypeCrossChainRouteLimits=new FfiConverterOptional(FfiConverterTypeCrossChainRouteLimits);// FfiConverter for LightningAddressInfo | undefined
5950
6355
  const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayContext | undefined
5951
6356
  const FfiConverterOptionalTypeLnurlPayContext=new FfiConverterOptional(FfiConverterTypeLnurlPayContext);// FfiConverter for LnurlPayInfo | undefined
5952
6357
  const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);// FfiConverter for LnurlReceiveMetadata | undefined
@@ -5976,11 +6381,14 @@ const FfiConverterArrayTypeBatchTotal=new FfiConverterArray(FfiConverterTypeBatc
5976
6381
  const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip21Extra);// FfiConverter for Array<Bolt11RouteHint>
5977
6382
  const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
5978
6383
  const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
5979
- const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<Contact>
6384
+ const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<ConfirmedExitNode>
6385
+ const FfiConverterArrayTypeConfirmedExitNode=new FfiConverterArray(FfiConverterTypeConfirmedExitNode);// FfiConverter for Array<Contact>
5980
6386
  const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<Conversion>
5981
- const FfiConverterArrayTypeConversion=new FfiConverterArray(FfiConverterTypeConversion);// FfiConverter for Array<CrossChainRoutePair>
6387
+ const FfiConverterArrayTypeConversion=new FfiConverterArray(FfiConverterTypeConversion);// FfiConverter for Array<CrossChainAcceptedAsset>
6388
+ const FfiConverterArrayTypeCrossChainAcceptedAsset=new FfiConverterArray(FfiConverterTypeCrossChainAcceptedAsset);// FfiConverter for Array<CrossChainRoutePair>
5982
6389
  const FfiConverterArrayTypeCrossChainRoutePair=new FfiConverterArray(FfiConverterTypeCrossChainRoutePair);// FfiConverter for Array<DepositInfo>
5983
- const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExternalClaimLeafInput>
6390
+ const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExitRefund>
6391
+ const FfiConverterArrayTypeExitRefund=new FfiConverterArray(FfiConverterTypeExitRefund);// FfiConverter for Array<ExternalClaimLeafInput>
5984
6392
  const FfiConverterArrayTypeExternalClaimLeafInput=new FfiConverterArray(FfiConverterTypeExternalClaimLeafInput);// FfiConverter for Array<ExternalFrostJob>
5985
6393
  const FfiConverterArrayTypeExternalFrostJob=new FfiConverterArray(FfiConverterTypeExternalFrostJob);// FfiConverter for Array<ExternalFrostShareResult>
5986
6394
  const FfiConverterArrayTypeExternalFrostShareResult=new FfiConverterArray(FfiConverterTypeExternalFrostShareResult);// FfiConverter for Array<ExternalInputParser>
@@ -6011,7 +6419,8 @@ const FfiConverterArrayTypeStoredCrossChainSwap=new FfiConverterArray(FfiConvert
6011
6419
  const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<UnilateralExitLeaf>
6012
6420
  const FfiConverterArrayTypeUnilateralExitLeaf=new FfiConverterArray(FfiConverterTypeUnilateralExitLeaf);// FfiConverter for Array<UnilateralExitTransaction>
6013
6421
  const FfiConverterArrayTypeUnilateralExitTransaction=new FfiConverterArray(FfiConverterTypeUnilateralExitTransaction);// FfiConverter for Array<Utxo>
6014
- const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<Webhook>
6422
+ const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<WatchedDepositAddress>
6423
+ const FfiConverterArrayTypeWatchedDepositAddress=new FfiConverterArray(FfiConverterTypeWatchedDepositAddress);// FfiConverter for Array<Webhook>
6015
6424
  const FfiConverterArrayTypeWebhook=new FfiConverterArray(FfiConverterTypeWebhook);// FfiConverter for Array<string>
6016
6425
  const FfiConverterArrayString=new FfiConverterArray(FfiConverterString);// FfiConverter for Array</*u64*/bigint>
6017
6426
  const FfiConverterArrayUInt64=new FfiConverterArray(FfiConverterUInt64);// FfiConverter for Map<string, Array<Payment>>
@@ -6024,7 +6433,8 @@ const FfiConverterOptionalTypeBuildTransferPackageOptions=new FfiConverterOption
6024
6433
  const FfiConverterOptionalTypeConversionFilter=new FfiConverterOptional(FfiConverterTypeConversionFilter);// FfiConverter for ConversionInfo | undefined
6025
6434
  const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionPurpose | undefined
6026
6435
  const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for ConversionStatus | undefined
6027
- const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for DepositClaimError | undefined
6436
+ const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for CrossChainFeeMode | undefined
6437
+ const FfiConverterOptionalTypeCrossChainFeeMode=new FfiConverterOptional(FfiConverterTypeCrossChainFeeMode);// FfiConverter for DepositClaimError | undefined
6028
6438
  const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
6029
6439
  const FfiConverterOptionalTypeFee=new FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for FeePolicy | undefined
6030
6440
  const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for InstantClaimStatus | undefined
@@ -6032,7 +6442,8 @@ const FfiConverterOptionalTypeInstantClaimStatus=new FfiConverterOptional(FfiCon
6032
6442
  const FfiConverterOptionalTypeMaxFee=new FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
6033
6443
  const FfiConverterOptionalTypePaymentDetails=new FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for RefundState | undefined
6034
6444
  const FfiConverterOptionalTypeRefundState=new FfiConverterOptional(FfiConverterTypeRefundState);// FfiConverter for SendPaymentOptions | undefined
6035
- const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SparkMasterIdentityPublicKey | undefined
6445
+ const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SparkAsset | undefined
6446
+ const FfiConverterOptionalTypeSparkAsset=new FfiConverterOptional(FfiConverterTypeSparkAsset);// FfiConverter for SparkMasterIdentityPublicKey | undefined
6036
6447
  const FfiConverterOptionalTypeSparkMasterIdentityPublicKey=new FfiConverterOptional(FfiConverterTypeSparkMasterIdentityPublicKey);// FfiConverter for StableBalanceActiveLabel | undefined
6037
6448
  const FfiConverterOptionalTypeStableBalanceActiveLabel=new FfiConverterOptional(FfiConverterTypeStableBalanceActiveLabel);// FfiConverter for SuccessAction | undefined
6038
6449
  const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
@@ -6043,13 +6454,12 @@ const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterM
6043
6454
  const FfiConverterOptionalTypeStorageBackend=new FfiConverterOptional(FfiConverterTypeStorageBackend);// FfiConverter for Array<ArrayBuffer> | undefined
6044
6455
  const FfiConverterOptionalArrayArrayBuffer=new FfiConverterOptional(FfiConverterArrayArrayBuffer);// FfiConverter for Array<ExternalInputParser> | undefined
6045
6456
  const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<CpfpInput>
6046
- const FfiConverterArrayTypeCpfpInput=new FfiConverterArray(FfiConverterTypeCpfpInput);// FfiConverter for Array<InputType>
6457
+ const FfiConverterArrayTypeCpfpInput=new FfiConverterArray(FfiConverterTypeCpfpInput);// FfiConverter for Array<DeliveryMethod>
6458
+ const FfiConverterArrayTypeDeliveryMethod=new FfiConverterArray(FfiConverterTypeDeliveryMethod);// FfiConverter for Array<InputType>
6047
6459
  const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentDetailsFilter>
6048
6460
  const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
6049
6461
  const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
6050
- const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SourceAsset>
6051
- const FfiConverterArrayTypeSourceAsset=new FfiConverterArray(FfiConverterTypeSourceAsset);// FfiConverter for Array<SourceChain>
6052
- const FfiConverterArrayTypeSourceChain=new FfiConverterArray(FfiConverterTypeSourceChain);// FfiConverter for Array<SparkHtlcStatus>
6462
+ const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkHtlcStatus>
6053
6463
  const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
6054
6464
  const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
6055
6465
  const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
@@ -6068,5 +6478,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
6068
6478
  * It also initializes the machinery to enable Rust to talk back to Javascript.
6069
6479
  */function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
6070
6480
  const bindingsContractVersion=29;// Get the scaffolding contract version by calling the into the dylib
6071
- const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer()!==17952){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==50635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer()!==37791){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers()!==58595){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==40188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_session_store()!==24904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==51200){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service()!==53269){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer()!==28762){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos()!==10702){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==53546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height()!==5182){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==35307){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend()!==49726){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==54160){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==31747){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package()!==52999){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package()!==23822){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package()!==60228){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==3632){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==55630){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==20026){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_export_unilateral_exit_state()!==63178){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_export_unilateral_exit_state');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote()!==30349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes()!==50302){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_import_unilateral_exit_state()!==62008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_import_unilateral_exit_state');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_payment_link()!==15201){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_payment_link');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch()!==59347){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit()!==36492){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package()!==48698){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package()!==59188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions()!==11342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch()!==34563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==47976){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit()!==23033){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt()!==20736){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key()!==28092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa()!==13755){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable()!==34935){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr()!==21395){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==39015){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote()!==63049){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==54380){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==53611){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==1815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend()!==62629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==58732){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==29829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==17684){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==25306){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==3348){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==22709){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==52719){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==39737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==12801){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==53174){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==32814){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==27748){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==61235){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number()!==6550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store()!==32818){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap()!==31116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap()!==20172){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps()!==23493){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==44890){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==8492){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==54668){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==17237){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==35265){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==32789){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==18699){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==59591){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==30443){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new()!==2983){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer()!==27342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceCpfpSigner.register();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSigningSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBatchDestination,FfiConverterTypeBatchRecipient,FfiConverterTypeBatchTotal,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBuildTransferPackageOptions,FfiConverterTypeBuildUnsignedBatchPackageRequest,FfiConverterTypeBuildUnsignedLnurlPayPackageRequest,FfiConverterTypeBuildUnsignedTransferPackageRequest,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositQuote,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConfirmationStatus,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConnectWithSigningOnlySignerRequest,FfiConverterTypeContact,FfiConverterTypeConversion,FfiConverterTypeConversionAsset,FfiConverterTypeConversionChain,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionFilter,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionProvider,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionSide,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCpfpFundingKind,FfiConverterTypeCpfpInput,FfiConverterTypeCpfpSigner,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCreatePasskeyOutput,FfiConverterTypeCredentials,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainRouteFilter,FfiConverterTypeCrossChainRoutePair,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExitLeafSelection,FfiConverterTypeExportUnilateralExitStateResponse,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSigningSigner,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchClaimDepositQuoteRequest,FfiConverterTypeFetchClaimDepositQuoteResponse,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetSparkStatusRequest,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeImportUnilateralExitStateRequest,FfiConverterTypeImportUnilateralExitStateResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeInstantClaimStatus,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayContext,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeNewRestChainServiceRequest,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypeOutspend,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePerBranchFunding,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePreparePaymentLinkRequest,FfiConverterTypePreparePaymentLinkResponse,FfiConverterTypePrepareSendBatchRequest,FfiConverterTypePrepareSendBatchResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrepareUnilateralExitRequest,FfiConverterTypePrepareUnilateralExitResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeProxyConfig,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypePublishSignedLnurlPayPackageRequest,FfiConverterTypePublishSignedLnurlPayResponse,FfiConverterTypePublishSignedTransferPackageRequest,FfiConverterTypePublishSignedTransferPackageResponse,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRefundPendingConversionsResponse,FfiConverterTypeRefundState,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedBatchRecipient,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendBatchRequest,FfiConverterTypeSendBatchResponse,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignedTransferPackage,FfiConverterTypeSignerError,FfiConverterTypeSigningOnlyExternalSigners,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSourceAsset,FfiConverterTypeSourceChain,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkMasterIdentityPublicKey,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeStoredCrossChainSwap,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSwapDegradation,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTransferSignature,FfiConverterTypeTransferTarget,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnilateralExitLeaf,FfiConverterTypeUnilateralExitRequest,FfiConverterTypeUnilateralExitResponse,FfiConverterTypeUnilateralExitTransaction,FfiConverterTypeUnilateralExitTxKind,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnsignedTransferPackage,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
6481
+ const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer()!==17952){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==50635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer()!==37791){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers()!==7133){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==40188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_session_store()!==24904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==51200){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service()!==53269){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer()!==28762){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos()!==10702){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==53546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height()!==5182){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==35307){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend()!==49726){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==54160){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==31747){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package()!==52999){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package()!==23822){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package()!==60228){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==3632){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit()!==27303){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==55630){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==20026){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_export_unilateral_exit_state()!==63178){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_export_unilateral_exit_state');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote()!==30349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes()!==50302){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_import_unilateral_exit_state()!==62008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_import_unilateral_exit_state');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_payment_link()!==15201){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_payment_link');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch()!==59347){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit()!==36492){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package()!==48698){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package()!==59188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions()!==11342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch()!==34563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==47976){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==62870){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit()!==58676){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt()!==20736){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key()!==28092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa()!==13755){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable()!==34935){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr()!==21395){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==59013){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote()!==63049){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==54380){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==53611){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==1815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend()!==61127){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==58732){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==29829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==17684){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==25306){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==3348){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==22709){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==52719){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==39737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==12801){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==53174){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==32814){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==27748){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==61235){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number()!==18776){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store()!==32818){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_watched_deposit_addresses()!==43297){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_watched_deposit_addresses');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_watched_deposit_address()!==23278){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_watched_deposit_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==3637){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==40145){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==51536){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==48412){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==4102){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap()!==17340){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap()!==39794){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps()!==3449){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==59529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==21965){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==21366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==43970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==59416){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==12675){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==20470){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==25691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==61274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new()!==2983){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer()!==27342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceCpfpSigner.register();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSigningSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBatchDestination,FfiConverterTypeBatchRecipient,FfiConverterTypeBatchTotal,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBuildTransferPackageOptions,FfiConverterTypeBuildUnsignedBatchPackageRequest,FfiConverterTypeBuildUnsignedLnurlPayPackageRequest,FfiConverterTypeBuildUnsignedTransferPackageRequest,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeCheckUnilateralExitRequest,FfiConverterTypeCheckUnilateralExitResponse,FfiConverterTypeClaimDeferredReason,FfiConverterTypeClaimDepositOutcome,FfiConverterTypeClaimDepositQuote,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConfirmedExitNode,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConnectWithSigningOnlySignerRequest,FfiConverterTypeContact,FfiConverterTypeConversion,FfiConverterTypeConversionAsset,FfiConverterTypeConversionChain,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionFilter,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionProvider,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionSide,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCpfpFundingKind,FfiConverterTypeCpfpInput,FfiConverterTypeCpfpSigner,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCreatePasskeyOutput,FfiConverterTypeCredentials,FfiConverterTypeCrossChainAcceptedAsset,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainReceiveInfo,FfiConverterTypeCrossChainRouteFilter,FfiConverterTypeCrossChainRouteLimits,FfiConverterTypeCrossChainRoutePair,FfiConverterTypeCurrencyInfo,FfiConverterTypeDeliveryMethod,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExitChainState,FfiConverterTypeExitLeafSelection,FfiConverterTypeExitNodeConfirmation,FfiConverterTypeExitRefund,FfiConverterTypeExitRefundState,FfiConverterTypeExitTransactionStatus,FfiConverterTypeExportUnilateralExitStateResponse,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalLeafSigningKey,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSigningSigner,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchClaimDepositQuoteRequest,FfiConverterTypeFetchClaimDepositQuoteResponse,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetSparkStatusRequest,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeImportUnilateralExitStateRequest,FfiConverterTypeImportUnilateralExitStateResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeInstantClaimStatus,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayContext,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeNewRestChainServiceRequest,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypeOutspend,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePerBranchFunding,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePreparePaymentLinkRequest,FfiConverterTypePreparePaymentLinkResponse,FfiConverterTypePrepareSendBatchRequest,FfiConverterTypePrepareSendBatchResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrepareUnilateralExitRequest,FfiConverterTypePrepareUnilateralExitResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeProxyConfig,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypePublishSignedLnurlPayPackageRequest,FfiConverterTypePublishSignedLnurlPayResponse,FfiConverterTypePublishSignedTransferPackageRequest,FfiConverterTypePublishSignedTransferPackageResponse,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRefundPendingConversionsResponse,FfiConverterTypeRefundState,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedBatchRecipient,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendBatchRequest,FfiConverterTypeSendBatchResponse,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignedTransferPackage,FfiConverterTypeSignerError,FfiConverterTypeSigningOnlyExternalSigners,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkAsset,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkMasterIdentityPublicKey,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeStoredCrossChainSwap,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSwapDegradation,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTransferSignature,FfiConverterTypeTransferTarget,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnilateralExitLeaf,FfiConverterTypeUnilateralExitRedoReason,FfiConverterTypeUnilateralExitRequest,FfiConverterTypeUnilateralExitResponse,FfiConverterTypeUnilateralExitTransaction,FfiConverterTypeUnilateralExitTxKind,FfiConverterTypeUnilateralExitVerdict,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnsignedTransferPackage,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUpdateWatchedAddressPayload,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWatchedDepositAddress,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
6072
6482
  //# sourceMappingURL=breez_sdk_spark.js.map