@breeztech/breez-sdk-spark-react-native 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +7 -1
- package/cpp/generated/breez_sdk_spark.cpp +50 -0
- package/cpp/generated/breez_sdk_spark.hpp +8 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +279 -87
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +278 -86
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +2 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1089 -246
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +2 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1089 -246
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +4 -4
- package/scripts/post-ubrn.js +29 -0
- package/src/generated/breez_sdk_spark-ffi.ts +5 -0
- package/src/generated/breez_sdk_spark.ts +1793 -305
|
@@ -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.
|
|
@@ -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
|
|
@@ -759,6 +797,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
759
797
|
*/new:create,/**
|
|
760
798
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
761
799
|
*/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();})();/**
|
|
800
|
+
* Information about the cross-chain receive quote.
|
|
801
|
+
*//**
|
|
802
|
+
* Generated factory for {@link CrossChainReceiveInfo} record objects.
|
|
803
|
+
*/export const CrossChainReceiveInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
804
|
+
* Create a frozen instance of {@link CrossChainReceiveInfo}, with defaults specified
|
|
805
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
806
|
+
*/create,/**
|
|
807
|
+
* Create a frozen instance of {@link CrossChainReceiveInfo}, with defaults specified
|
|
808
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
809
|
+
*/new:create,/**
|
|
810
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
811
|
+
*/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),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);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)+FfiConverterUInt64.allocationSize(value.expiresAt);}}return new FFIConverter();})();/**
|
|
762
812
|
* A single route available for cross-chain transfers, tagged with the provider
|
|
763
813
|
* that offers it. Returned by `get_cross_chain_routes()`.
|
|
764
814
|
*//**
|
|
@@ -771,7 +821,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
771
821
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
772
822
|
*/new:create,/**
|
|
773
823
|
* 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),
|
|
824
|
+
*/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:FfiConverterArrayTypeSparkAsset.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);FfiConverterArrayTypeSparkAsset.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)+FfiConverterArrayTypeSparkAsset.allocationSize(value.acceptedAssets)+FfiConverterArrayTypeDeliveryMethod.allocationSize(value.deliveryMethods);}}return new FFIConverter();})();/**
|
|
775
825
|
* Details about a supported currency in the fiat rate feed
|
|
776
826
|
*//**
|
|
777
827
|
* Generated factory for {@link CurrencyInfo} record objects.
|
|
@@ -832,6 +882,32 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
832
882
|
*/new:create,/**
|
|
833
883
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
834
884
|
*/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();})();/**
|
|
885
|
+
* What the chain has already done to an exit's leaves, as
|
|
886
|
+
* `prepare_unilateral_exit` found it. Pass it back to `unilateral_exit`, which
|
|
887
|
+
* builds only the steps it does not cover.
|
|
888
|
+
*//**
|
|
889
|
+
* Generated factory for {@link ExitChainState} record objects.
|
|
890
|
+
*/export const ExitChainState=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
891
|
+
* Create a frozen instance of {@link ExitChainState}, with defaults specified
|
|
892
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
893
|
+
*/create,/**
|
|
894
|
+
* Create a frozen instance of {@link ExitChainState}, with defaults specified
|
|
895
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
896
|
+
*/new:create,/**
|
|
897
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
898
|
+
*/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();})();/**
|
|
899
|
+
* A leaf's refund as the chain shows it.
|
|
900
|
+
*//**
|
|
901
|
+
* Generated factory for {@link ExitRefund} record objects.
|
|
902
|
+
*/export const ExitRefund=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
903
|
+
* Create a frozen instance of {@link ExitRefund}, with defaults specified
|
|
904
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
905
|
+
*/create,/**
|
|
906
|
+
* Create a frozen instance of {@link ExitRefund}, with defaults specified
|
|
907
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
908
|
+
*/new:create,/**
|
|
909
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
910
|
+
*/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
911
|
* Result of `export_unilateral_exit_state`: a self-contained copy of the
|
|
836
912
|
* wallet's exit state, ready to be stored outside the wallet.
|
|
837
913
|
*//**
|
|
@@ -2040,7 +2116,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2040
2116
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2041
2117
|
*/new:create,/**
|
|
2042
2118
|
* 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();})();/**
|
|
2119
|
+
*/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
2120
|
* Generated factory for {@link ProvisionalPayment} record objects.
|
|
2045
2121
|
*/export const ProvisionalPayment=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2046
2122
|
* Create a frozen instance of {@link ProvisionalPayment}, with defaults specified
|
|
@@ -2135,7 +2211,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2135
2211
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2136
2212
|
*/new:create,/**
|
|
2137
2213
|
* 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();})();/**
|
|
2214
|
+
*/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
2215
|
* Generated factory for {@link RecommendedFees} record objects.
|
|
2140
2216
|
*/export const RecommendedFees=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2141
2217
|
* Create a frozen instance of {@link RecommendedFees}, with defaults specified
|
|
@@ -2366,7 +2442,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2366
2442
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2367
2443
|
*/new:create,/**
|
|
2368
2444
|
* 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();})();/**
|
|
2445
|
+
*/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
2446
|
* Generated factory for {@link SendOnchainSpeedFeeQuote} record objects.
|
|
2371
2447
|
*/export const SendOnchainSpeedFeeQuote=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2372
2448
|
* Create a frozen instance of {@link SendOnchainSpeedFeeQuote}, with defaults specified
|
|
@@ -2614,9 +2690,8 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2614
2690
|
* Configuration for automatic conversion of Bitcoin to stable tokens.
|
|
2615
2691
|
*
|
|
2616
2692
|
* When configured, the SDK automatically monitors the Bitcoin balance after each
|
|
2617
|
-
* wallet sync.
|
|
2618
|
-
*
|
|
2619
|
-
* to the active stable token.
|
|
2693
|
+
* wallet sync. Once the balance reaches the configured threshold, the SDK converts
|
|
2694
|
+
* the whole Bitcoin balance to the active stable token.
|
|
2620
2695
|
*
|
|
2621
2696
|
* When the balance is held in a stable token, Bitcoin payments can still be sent.
|
|
2622
2697
|
* The SDK automatically detects when there's not enough Bitcoin balance to cover a
|
|
@@ -2855,7 +2930,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2855
2930
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2856
2931
|
*/new:create,/**
|
|
2857
2932
|
* 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();})();/**
|
|
2933
|
+
*/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
2934
|
* One transaction in the unilateral exit path, with everything needed to
|
|
2860
2935
|
* order and broadcast it.
|
|
2861
2936
|
*//**
|
|
@@ -2868,7 +2943,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2868
2943
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2869
2944
|
*/new:create,/**
|
|
2870
2945
|
* 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:
|
|
2946
|
+
*/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
2947
|
* Request to unregister an existing webhook.
|
|
2873
2948
|
*//**
|
|
2874
2949
|
* Generated factory for {@link UnregisterWebhookRequest} record objects.
|
|
@@ -3131,16 +3206,7 @@ export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){
|
|
|
3131
3206
|
* This field is private and should not be used, use `tag` instead.
|
|
3132
3207
|
*/[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
3208
|
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
|
|
3209
|
+
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();})();// Enum: ConversionChain
|
|
3144
3210
|
export let ConversionChain_Tags=/*#__PURE__*/function(ConversionChain_Tags){ConversionChain_Tags["Spark"]="Spark";ConversionChain_Tags["Lightning"]="Lightning";ConversionChain_Tags["External"]="External";return ConversionChain_Tags;}({});/**
|
|
3145
3211
|
* The chain or network that a [`ConversionSide`] lives on.
|
|
3146
3212
|
*/export const ConversionChain=(()=>{/**
|
|
@@ -3179,8 +3245,9 @@ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){Conver
|
|
|
3179
3245
|
*
|
|
3180
3246
|
* The variant identifies which provider handled the conversion:
|
|
3181
3247
|
* - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
|
|
3182
|
-
* - [`ConversionInfo::Orchestra`] for cross-chain
|
|
3183
|
-
* Orchestra (Spark → external chain
|
|
3248
|
+
* - [`ConversionInfo::Orchestra`] for cross-chain transfers via Flashnet
|
|
3249
|
+
* Orchestra, in either direction (Spark → external chain, or external
|
|
3250
|
+
* chain → Spark).
|
|
3184
3251
|
* - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
|
|
3185
3252
|
*/export const ConversionInfo=(()=>{/**
|
|
3186
3253
|
* AMM (Flashnet pool-based) conversion — Spark ↔ Spark token swaps.
|
|
@@ -3188,7 +3255,13 @@ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){Conver
|
|
|
3188
3255
|
* @private
|
|
3189
3256
|
* This field is private and should not be used, use `tag` instead.
|
|
3190
3257
|
*/[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
|
|
3258
|
+
* Orchestra cross-chain conversion via the Flashnet orchestration API,
|
|
3259
|
+
* in either direction.
|
|
3260
|
+
*
|
|
3261
|
+
* `chain`, `asset`, `asset_decimals` and `asset_contract` always describe
|
|
3262
|
+
* the external (non-Spark) side: the destination on a send, the source on
|
|
3263
|
+
* a receive. Amounts follow the direction of the transfer, so read each
|
|
3264
|
+
* amount field's own denomination.
|
|
3192
3265
|
*/class Orchestra_ extends UniffiEnum{/**
|
|
3193
3266
|
* @private
|
|
3194
3267
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -3206,12 +3279,13 @@ export let ConversionInfo_Tags=/*#__PURE__*/function(ConversionInfo_Tags){Conver
|
|
|
3206
3279
|
*
|
|
3207
3280
|
* The variant identifies which provider handled the conversion:
|
|
3208
3281
|
* - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
|
|
3209
|
-
* - [`ConversionInfo::Orchestra`] for cross-chain
|
|
3210
|
-
* Orchestra (Spark → external chain
|
|
3282
|
+
* - [`ConversionInfo::Orchestra`] for cross-chain transfers via Flashnet
|
|
3283
|
+
* Orchestra, in either direction (Spark → external chain, or external
|
|
3284
|
+
* chain → Spark).
|
|
3211
3285
|
* - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
|
|
3212
3286
|
*/// 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();})();/**
|
|
3287
|
+
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),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);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.
|
|
3288
|
+
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+=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
3289
|
* The provider that performed a conversion.
|
|
3216
3290
|
*/export let ConversionProvider=/*#__PURE__*/function(ConversionProvider){/**
|
|
3217
3291
|
* AMM (Flashnet pool) conversion between token and BTC on Spark
|
|
@@ -3327,13 +3401,25 @@ export let CpfpInput_Tags=/*#__PURE__*/function(CpfpInput_Tags){CpfpInput_Tags["
|
|
|
3327
3401
|
*/// FfiConverter for enum CpfpInput
|
|
3328
3402
|
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
3403
|
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
|
-
*
|
|
3331
|
-
*
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3404
|
+
* Which side of the transfer the request `amount` sizes: what leaves the
|
|
3405
|
+
* payer, or what reaches the receiver.
|
|
3406
|
+
*/export let CrossChainFeeMode=/*#__PURE__*/function(CrossChainFeeMode){/**
|
|
3407
|
+
* `amount` sizes the receiving end, and fees are paid on top.
|
|
3408
|
+
*
|
|
3409
|
+
* Sending: `amount` is the provider invoice/deposit target, and the
|
|
3410
|
+
* wallet pays `amount + source_transfer_fee_sats` in total.
|
|
3411
|
+
* Receiving: `amount` is what the wallet ends up with, and the deposit
|
|
3412
|
+
* the sender is asked for is sized above it to cover fees.
|
|
3413
|
+
*/CrossChainFeeMode[CrossChainFeeMode["FeesExcluded"]=0]="FeesExcluded";/**
|
|
3414
|
+
* `amount` sizes the paying end, and fees come out of it.
|
|
3415
|
+
*
|
|
3416
|
+
* Sending: `amount` is the wallet's total sats budget, and the provider
|
|
3417
|
+
* leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
|
|
3418
|
+
* Receiving: `amount` is the deposit the sender makes, and the wallet
|
|
3419
|
+
* ends up with that minus fees.
|
|
3420
|
+
*/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";/**
|
|
3421
|
+
* Not operational: no routes are currently offered under this provider.
|
|
3422
|
+
*/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
3423
|
export let CrossChainProviderContext_Tags=/*#__PURE__*/function(CrossChainProviderContext_Tags){CrossChainProviderContext_Tags["Orchestra"]="Orchestra";CrossChainProviderContext_Tags["Boltz"]="Boltz";return CrossChainProviderContext_Tags;}({});/**
|
|
3338
3424
|
* Provider-internal state produced by `prepare` and consumed by `send`.
|
|
3339
3425
|
* Typed per provider so the send stage can resume without re-quoting and
|
|
@@ -3378,7 +3464,15 @@ export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilte
|
|
|
3378
3464
|
* `get_cross_chain_routes()` API.
|
|
3379
3465
|
*/// FfiConverter for enum CrossChainRouteFilter
|
|
3380
3466
|
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();})()
|
|
3467
|
+
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();})();/**
|
|
3468
|
+
* The rail a cross-chain payment is delivered over.
|
|
3469
|
+
*/export let DeliveryMethod=/*#__PURE__*/function(DeliveryMethod){/**
|
|
3470
|
+
* Delivered over the Spark network.
|
|
3471
|
+
*/DeliveryMethod[DeliveryMethod["Spark"]=0]="Spark";/**
|
|
3472
|
+
* Delivered over Lightning.
|
|
3473
|
+
*/DeliveryMethod[DeliveryMethod["Lightning"]=1]="Lightning";/**
|
|
3474
|
+
* Delivered on-chain over Bitcoin.
|
|
3475
|
+
*/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
3476
|
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
3477
|
* @private
|
|
3384
3478
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -3469,7 +3563,75 @@ export let ExitLeafSelection_Tags=/*#__PURE__*/function(ExitLeafSelection_Tags){
|
|
|
3469
3563
|
* Which leaves to exit.
|
|
3470
3564
|
*/// FfiConverter for enum ExitLeafSelection
|
|
3471
3565
|
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();})()
|
|
3566
|
+
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();})();/**
|
|
3567
|
+
* Which of a node's two pre-signed spends took it on-chain.
|
|
3568
|
+
*/export let ExitNodeConfirmation=/*#__PURE__*/function(ExitNodeConfirmation){/**
|
|
3569
|
+
* The CPFP transaction, whose fee a child paid.
|
|
3570
|
+
*/ExitNodeConfirmation[ExitNodeConfirmation["Cpfp"]=0]="Cpfp";/**
|
|
3571
|
+
* The direct transaction, which pays its own fee. A leaf that went out this
|
|
3572
|
+
* way is refunded by its direct refund transaction.
|
|
3573
|
+
*/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
|
|
3574
|
+
export let ExitRefundState_Tags=/*#__PURE__*/function(ExitRefundState_Tags){ExitRefundState_Tags["OnChain"]="OnChain";ExitRefundState_Tags["Swept"]="Swept";return ExitRefundState_Tags;}({});export const ExitRefundState=(()=>{/**
|
|
3575
|
+
* On-chain with its output still there, which is what the sweep pulls from.
|
|
3576
|
+
* A sweep sitting unconfirmed in the mempool leaves the refund here, so
|
|
3577
|
+
* that sweep is rebuilt rather than dropped.
|
|
3578
|
+
*/class OnChain_ extends UniffiEnum{/**
|
|
3579
|
+
* @private
|
|
3580
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3581
|
+
*/[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;}}/**
|
|
3582
|
+
* Spent by a confirmed transaction: the sweep landed.
|
|
3583
|
+
*/class Swept_ extends UniffiEnum{/**
|
|
3584
|
+
* @private
|
|
3585
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3586
|
+
*/[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
|
|
3587
|
+
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.
|
|
3588
|
+
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
|
|
3589
|
+
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;}({});/**
|
|
3590
|
+
* Where a transaction in the exit path stands: on-chain, ready to send, or
|
|
3591
|
+
* waiting for something.
|
|
3592
|
+
*/export const ExitTransactionStatus=(()=>{/**
|
|
3593
|
+
* Confirmed in a block, at `block_height` where the chain service reported
|
|
3594
|
+
* one. It needs no action.
|
|
3595
|
+
*
|
|
3596
|
+
* A relative `csv_timelock_blocks` counts from the height of the
|
|
3597
|
+
* transaction it spends, so this is what tells you when a child of this one
|
|
3598
|
+
* can go out, without fetching it again.
|
|
3599
|
+
*/class Confirmed_ extends UniffiEnum{/**
|
|
3600
|
+
* @private
|
|
3601
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3602
|
+
*/[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;}}/**
|
|
3603
|
+
* Not on-chain, and nothing is holding it back. Broadcast it, with its
|
|
3604
|
+
* `cpfp_tx_hex` where it has one.
|
|
3605
|
+
*/class Ready_ extends UniffiEnum{/**
|
|
3606
|
+
* @private
|
|
3607
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3608
|
+
*/[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.Ready;constructor(){super('ExitTransactionStatus','Ready');}static new(){return new Ready_();}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.Ready;}}/**
|
|
3609
|
+
* A transaction in `depends_on` has yet to confirm. A relative timelock
|
|
3610
|
+
* only starts counting once it does.
|
|
3611
|
+
*/class WaitingForDependencies_ extends UniffiEnum{/**
|
|
3612
|
+
* @private
|
|
3613
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3614
|
+
*/[uniffiTypeNameSymbol]='ExitTransactionStatus';tag=ExitTransactionStatus_Tags.WaitingForDependencies;constructor(){super('ExitTransactionStatus','WaitingForDependencies');}static new(){return new WaitingForDependencies_();}static instanceOf(obj){return obj.tag===ExitTransactionStatus_Tags.WaitingForDependencies;}}/**
|
|
3615
|
+
* Every input is confirmed, but a relative timelock has yet to mature.
|
|
3616
|
+
* `spendable_at_height` is the first block that can include this
|
|
3617
|
+
* transaction, and is unset when the height it counts from could not be
|
|
3618
|
+
* read from the chain.
|
|
3619
|
+
*/class WaitingForTimelock_ extends UniffiEnum{/**
|
|
3620
|
+
* @private
|
|
3621
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3622
|
+
*/[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;}}/**
|
|
3623
|
+
* The on-chain status could not be determined (the chain service errored),
|
|
3624
|
+
* which also leaves what it is waiting for unknown. Broadcasting may fail
|
|
3625
|
+
* if a conflicting transaction already landed.
|
|
3626
|
+
*/class Unverified_ extends UniffiEnum{/**
|
|
3627
|
+
* @private
|
|
3628
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3629
|
+
*/[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_});})();/**
|
|
3630
|
+
* Where a transaction in the exit path stands: on-chain, ready to send, or
|
|
3631
|
+
* waiting for something.
|
|
3632
|
+
*/// FfiConverter for enum ExitTransactionStatus
|
|
3633
|
+
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.
|
|
3634
|
+
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
3635
|
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
3636
|
* FFI-safe representation of `spark_wallet::FrostDerivation`.
|
|
3475
3637
|
*/export const ExternalFrostDerivation=(()=>{/**
|
|
@@ -3976,7 +4138,7 @@ export let PublishSignedTransferPackageResponse_Tags=/*#__PURE__*/function(Publi
|
|
|
3976
4138
|
*/[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
4139
|
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
4140
|
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{/**
|
|
4141
|
+
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
4142
|
* @private
|
|
3981
4143
|
* This field is private and should not be used, use `tag` instead.
|
|
3982
4144
|
*/[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 +4150,12 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
|
|
|
3988
4150
|
*/[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
4151
|
* @private
|
|
3990
4152
|
* 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;}}
|
|
3992
|
-
|
|
3993
|
-
|
|
4153
|
+
*/[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{/**
|
|
4154
|
+
* @private
|
|
4155
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4156
|
+
*/[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
|
|
4157
|
+
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.
|
|
4158
|
+
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
4159
|
export let RefundState_Tags=/*#__PURE__*/function(RefundState_Tags){RefundState_Tags["BroadcastPending"]="BroadcastPending";RefundState_Tags["Broadcast"]="Broadcast";return RefundState_Tags;}({});/**
|
|
3995
4160
|
* State of the deposit refund broadcast.
|
|
3996
4161
|
*/export const RefundState=(()=>{/**
|
|
@@ -4013,7 +4178,7 @@ export let RefundState_Tags=/*#__PURE__*/function(RefundState_Tags){RefundState_
|
|
|
4013
4178
|
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
4179
|
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
4180
|
// 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["
|
|
4181
|
+
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["Generic"]="Generic";return SdkError_Tags;}({});/**
|
|
4017
4182
|
* Error type for the `BreezSdk`
|
|
4018
4183
|
*/export const SdkError=(()=>{class SparkError_ extends UniffiError{/**
|
|
4019
4184
|
* @private
|
|
@@ -4082,20 +4247,14 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
4082
4247
|
*/class InsufficientCpfpFunds_ extends UniffiError{/**
|
|
4083
4248
|
* @private
|
|
4084
4249
|
* 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{/**
|
|
4250
|
+
*/[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
4251
|
* @private
|
|
4093
4252
|
* 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_,
|
|
4253
|
+
*/[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_,Generic:Generic_});})();/**
|
|
4095
4254
|
* Error type for the `BreezSdk`
|
|
4096
4255
|
*/// 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.
|
|
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.
|
|
4256
|
+
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.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.Generic:{ordinalConverter.write(17,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
|
|
4257
|
+
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.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(17);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
|
|
4099
4258
|
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;}({});/**
|
|
4100
4259
|
* Events emitted by the SDK
|
|
4101
4260
|
*/export const SdkEvent=(()=>{/**
|
|
@@ -4303,33 +4462,24 @@ export let SignerError_Tags=/*#__PURE__*/function(SignerError_Tags){SignerError_
|
|
|
4303
4462
|
* Error type for signer operations
|
|
4304
4463
|
*/// FfiConverter for enum SignerError
|
|
4305
4464
|
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:
|
|
4307
|
-
export let
|
|
4308
|
-
* The
|
|
4309
|
-
*/export const
|
|
4465
|
+
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
|
|
4466
|
+
export let SparkAsset_Tags=/*#__PURE__*/function(SparkAsset_Tags){SparkAsset_Tags["Bitcoin"]="Bitcoin";SparkAsset_Tags["Token"]="Token";return SparkAsset_Tags;}({});/**
|
|
4467
|
+
* The asset a cross-chain route accepts on the Spark side.
|
|
4468
|
+
*/export const SparkAsset=(()=>{/**
|
|
4310
4469
|
* Native BTC (sats).
|
|
4311
4470
|
*/class Bitcoin_ extends UniffiEnum{/**
|
|
4312
4471
|
* @private
|
|
4313
4472
|
* This field is private and should not be used, use `tag` instead.
|
|
4314
|
-
*/[uniffiTypeNameSymbol]='
|
|
4473
|
+
*/[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
4474
|
* A Spark token, identified by its bech32m `token_identifier` (e.g. `btkn1...`).
|
|
4316
4475
|
*/class Token_ extends UniffiEnum{/**
|
|
4317
4476
|
* @private
|
|
4318
4477
|
* This field is private and should not be used, use `tag` instead.
|
|
4319
|
-
*/[uniffiTypeNameSymbol]='
|
|
4320
|
-
* The
|
|
4321
|
-
*/// FfiConverter for enum
|
|
4322
|
-
const
|
|
4323
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case
|
|
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){/**
|
|
4478
|
+
*/[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_});})();/**
|
|
4479
|
+
* The asset a cross-chain route accepts on the Spark side.
|
|
4480
|
+
*/// FfiConverter for enum SparkAsset
|
|
4481
|
+
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.
|
|
4482
|
+
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
4483
|
* The HTLC is waiting for the preimage to be shared by the receiver
|
|
4334
4484
|
*/SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
|
|
4335
4485
|
* The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
|
|
@@ -4506,6 +4656,13 @@ export let TransferTarget_Tags=/*#__PURE__*/function(TransferTarget_Tags){Transf
|
|
|
4506
4656
|
*/[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
4657
|
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
4658
|
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();})();/**
|
|
4659
|
+
* Why an exit has to be built again.
|
|
4660
|
+
*/export let UnilateralExitRedoReason=/*#__PURE__*/function(UnilateralExitRedoReason){/**
|
|
4661
|
+
* The chain no longer matches the exit: something that is not one of its
|
|
4662
|
+
* own transactions took an outpoint it still needs. A different refund, a
|
|
4663
|
+
* fee bump from elsewhere, or funding spent on something else all land
|
|
4664
|
+
* here.
|
|
4665
|
+
*/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
4666
|
* The role of a transaction in the exit path.
|
|
4510
4667
|
*/export let UnilateralExitTxKind=/*#__PURE__*/function(UnilateralExitTxKind){/**
|
|
4511
4668
|
* Splits the caller's funding into one output per branch. Present only
|
|
@@ -4516,7 +4673,31 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
4516
4673
|
* A leaf's refund transaction.
|
|
4517
4674
|
*/UnilateralExitTxKind[UnilateralExitTxKind["Refund"]=2]="Refund";/**
|
|
4518
4675
|
* 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:
|
|
4676
|
+
*/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
|
|
4677
|
+
export let UnilateralExitVerdict_Tags=/*#__PURE__*/function(UnilateralExitVerdict_Tags){UnilateralExitVerdict_Tags["Valid"]="Valid";UnilateralExitVerdict_Tags["Done"]="Done";UnilateralExitVerdict_Tags["Redo"]="Redo";return UnilateralExitVerdict_Tags;}({});/**
|
|
4678
|
+
* What to do with an exit that has been read back against the chain.
|
|
4679
|
+
*/export const UnilateralExitVerdict=(()=>{/**
|
|
4680
|
+
* The exit still holds. Broadcast the transactions whose dependencies are
|
|
4681
|
+
* confirmed and whose timelocks have matured.
|
|
4682
|
+
*/class Valid_ extends UniffiEnum{/**
|
|
4683
|
+
* @private
|
|
4684
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4685
|
+
*/[uniffiTypeNameSymbol]='UnilateralExitVerdict';tag=UnilateralExitVerdict_Tags.Valid;constructor(){super('UnilateralExitVerdict','Valid');}static new(){return new Valid_();}static instanceOf(obj){return obj.tag===UnilateralExitVerdict_Tags.Valid;}}/**
|
|
4686
|
+
* Every transaction is confirmed, the sweep included. The funds have
|
|
4687
|
+
* arrived and there is nothing left to send.
|
|
4688
|
+
*/class Done_ extends UniffiEnum{/**
|
|
4689
|
+
* @private
|
|
4690
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4691
|
+
*/[uniffiTypeNameSymbol]='UnilateralExitVerdict';tag=UnilateralExitVerdict_Tags.Done;constructor(){super('UnilateralExitVerdict','Done');}static new(){return new Done_();}static instanceOf(obj){return obj.tag===UnilateralExitVerdict_Tags.Done;}}/**
|
|
4692
|
+
* The exit cannot be finished as it stands. Quote and build it again.
|
|
4693
|
+
*/class Redo_ extends UniffiEnum{/**
|
|
4694
|
+
* @private
|
|
4695
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4696
|
+
*/[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_});})();/**
|
|
4697
|
+
* What to do with an exit that has been read back against the chain.
|
|
4698
|
+
*/// FfiConverter for enum UnilateralExitVerdict
|
|
4699
|
+
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.
|
|
4700
|
+
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
4701
|
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
4702
|
* @private
|
|
4522
4703
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -4676,7 +4857,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4676
4857
|
* Verifies a message signature against the provided public key. The message
|
|
4677
4858
|
* is SHA256 hashed before verification. The signature can be hex encoded
|
|
4678
4859
|
* 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;}}
|
|
4860
|
+
*/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;}}/**
|
|
4861
|
+
* Reads an exit you kept back against the chain: which of its transactions
|
|
4862
|
+
* are now in a block, and whether it can still be finished as it stands.
|
|
4863
|
+
*
|
|
4864
|
+
* Needs neither the wallet's leaves nor a signer, so an exit can be followed
|
|
4865
|
+
* from the response alone. Store the response in place of the one you passed
|
|
4866
|
+
* in, and broadcast what its statuses leave to send.
|
|
4867
|
+
*/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
4868
|
* Claim a lightning address username handed over by its current owner,
|
|
4681
4869
|
* using the [`TransferAuthorization`] from
|
|
4682
4870
|
* [`BreezSdk::authorize_lightning_address_transfer`]. Completes the
|
|
@@ -4934,11 +5122,10 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4934
5122
|
* topological broadcast order without broadcasting. Broadcast it over time,
|
|
4935
5123
|
* respecting each transaction's `depends_on` and `csv_timelock_blocks`.
|
|
4936
5124
|
*
|
|
4937
|
-
* It
|
|
4938
|
-
*
|
|
4939
|
-
*
|
|
4940
|
-
*
|
|
4941
|
-
* therefore resumes rather than restarts.
|
|
5125
|
+
* It reads on-chain state first: an already-confirmed fan-out or CPFP node
|
|
5126
|
+
* is not rebuilt, and a leaf refund already on-chain (recognized by the
|
|
5127
|
+
* leaf's refund address, so any refund variant counts) is swept directly.
|
|
5128
|
+
* Re-running after partial progress therefore resumes rather than restarts.
|
|
4942
5129
|
*/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
5130
|
* Unregisters a previously registered webhook.
|
|
4944
5131
|
*
|
|
@@ -5946,7 +6133,8 @@ const FfiConverterOptionalTypeConversionDetails=new FfiConverterOptional(FfiConv
|
|
|
5946
6133
|
const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionOptions | undefined
|
|
5947
6134
|
const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for Credentials | undefined
|
|
5948
6135
|
const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for CrossChainConfig | undefined
|
|
5949
|
-
const FfiConverterOptionalTypeCrossChainConfig=new FfiConverterOptional(FfiConverterTypeCrossChainConfig);// FfiConverter for
|
|
6136
|
+
const FfiConverterOptionalTypeCrossChainConfig=new FfiConverterOptional(FfiConverterTypeCrossChainConfig);// FfiConverter for CrossChainReceiveInfo | undefined
|
|
6137
|
+
const FfiConverterOptionalTypeCrossChainReceiveInfo=new FfiConverterOptional(FfiConverterTypeCrossChainReceiveInfo);// FfiConverter for LightningAddressInfo | undefined
|
|
5950
6138
|
const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayContext | undefined
|
|
5951
6139
|
const FfiConverterOptionalTypeLnurlPayContext=new FfiConverterOptional(FfiConverterTypeLnurlPayContext);// FfiConverter for LnurlPayInfo | undefined
|
|
5952
6140
|
const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);// FfiConverter for LnurlReceiveMetadata | undefined
|
|
@@ -5976,11 +6164,13 @@ const FfiConverterArrayTypeBatchTotal=new FfiConverterArray(FfiConverterTypeBatc
|
|
|
5976
6164
|
const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip21Extra);// FfiConverter for Array<Bolt11RouteHint>
|
|
5977
6165
|
const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
|
|
5978
6166
|
const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
|
|
5979
|
-
const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<
|
|
6167
|
+
const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<ConfirmedExitNode>
|
|
6168
|
+
const FfiConverterArrayTypeConfirmedExitNode=new FfiConverterArray(FfiConverterTypeConfirmedExitNode);// FfiConverter for Array<Contact>
|
|
5980
6169
|
const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<Conversion>
|
|
5981
6170
|
const FfiConverterArrayTypeConversion=new FfiConverterArray(FfiConverterTypeConversion);// FfiConverter for Array<CrossChainRoutePair>
|
|
5982
6171
|
const FfiConverterArrayTypeCrossChainRoutePair=new FfiConverterArray(FfiConverterTypeCrossChainRoutePair);// FfiConverter for Array<DepositInfo>
|
|
5983
|
-
const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<
|
|
6172
|
+
const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExitRefund>
|
|
6173
|
+
const FfiConverterArrayTypeExitRefund=new FfiConverterArray(FfiConverterTypeExitRefund);// FfiConverter for Array<ExternalClaimLeafInput>
|
|
5984
6174
|
const FfiConverterArrayTypeExternalClaimLeafInput=new FfiConverterArray(FfiConverterTypeExternalClaimLeafInput);// FfiConverter for Array<ExternalFrostJob>
|
|
5985
6175
|
const FfiConverterArrayTypeExternalFrostJob=new FfiConverterArray(FfiConverterTypeExternalFrostJob);// FfiConverter for Array<ExternalFrostShareResult>
|
|
5986
6176
|
const FfiConverterArrayTypeExternalFrostShareResult=new FfiConverterArray(FfiConverterTypeExternalFrostShareResult);// FfiConverter for Array<ExternalInputParser>
|
|
@@ -6024,7 +6214,8 @@ const FfiConverterOptionalTypeBuildTransferPackageOptions=new FfiConverterOption
|
|
|
6024
6214
|
const FfiConverterOptionalTypeConversionFilter=new FfiConverterOptional(FfiConverterTypeConversionFilter);// FfiConverter for ConversionInfo | undefined
|
|
6025
6215
|
const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionPurpose | undefined
|
|
6026
6216
|
const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for ConversionStatus | undefined
|
|
6027
|
-
const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for
|
|
6217
|
+
const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for CrossChainFeeMode | undefined
|
|
6218
|
+
const FfiConverterOptionalTypeCrossChainFeeMode=new FfiConverterOptional(FfiConverterTypeCrossChainFeeMode);// FfiConverter for DepositClaimError | undefined
|
|
6028
6219
|
const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
|
|
6029
6220
|
const FfiConverterOptionalTypeFee=new FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for FeePolicy | undefined
|
|
6030
6221
|
const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for InstantClaimStatus | undefined
|
|
@@ -6032,7 +6223,8 @@ const FfiConverterOptionalTypeInstantClaimStatus=new FfiConverterOptional(FfiCon
|
|
|
6032
6223
|
const FfiConverterOptionalTypeMaxFee=new FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
|
|
6033
6224
|
const FfiConverterOptionalTypePaymentDetails=new FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for RefundState | undefined
|
|
6034
6225
|
const FfiConverterOptionalTypeRefundState=new FfiConverterOptional(FfiConverterTypeRefundState);// FfiConverter for SendPaymentOptions | undefined
|
|
6035
|
-
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for
|
|
6226
|
+
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SparkAsset | undefined
|
|
6227
|
+
const FfiConverterOptionalTypeSparkAsset=new FfiConverterOptional(FfiConverterTypeSparkAsset);// FfiConverter for SparkMasterIdentityPublicKey | undefined
|
|
6036
6228
|
const FfiConverterOptionalTypeSparkMasterIdentityPublicKey=new FfiConverterOptional(FfiConverterTypeSparkMasterIdentityPublicKey);// FfiConverter for StableBalanceActiveLabel | undefined
|
|
6037
6229
|
const FfiConverterOptionalTypeStableBalanceActiveLabel=new FfiConverterOptional(FfiConverterTypeStableBalanceActiveLabel);// FfiConverter for SuccessAction | undefined
|
|
6038
6230
|
const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
|
|
@@ -6043,13 +6235,13 @@ const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterM
|
|
|
6043
6235
|
const FfiConverterOptionalTypeStorageBackend=new FfiConverterOptional(FfiConverterTypeStorageBackend);// FfiConverter for Array<ArrayBuffer> | undefined
|
|
6044
6236
|
const FfiConverterOptionalArrayArrayBuffer=new FfiConverterOptional(FfiConverterArrayArrayBuffer);// FfiConverter for Array<ExternalInputParser> | undefined
|
|
6045
6237
|
const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<CpfpInput>
|
|
6046
|
-
const FfiConverterArrayTypeCpfpInput=new FfiConverterArray(FfiConverterTypeCpfpInput);// FfiConverter for Array<
|
|
6238
|
+
const FfiConverterArrayTypeCpfpInput=new FfiConverterArray(FfiConverterTypeCpfpInput);// FfiConverter for Array<DeliveryMethod>
|
|
6239
|
+
const FfiConverterArrayTypeDeliveryMethod=new FfiConverterArray(FfiConverterTypeDeliveryMethod);// FfiConverter for Array<InputType>
|
|
6047
6240
|
const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentDetailsFilter>
|
|
6048
6241
|
const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
|
|
6049
6242
|
const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
|
|
6050
|
-
const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<
|
|
6051
|
-
const
|
|
6052
|
-
const FfiConverterArrayTypeSourceChain=new FfiConverterArray(FfiConverterTypeSourceChain);// FfiConverter for Array<SparkHtlcStatus>
|
|
6243
|
+
const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkAsset>
|
|
6244
|
+
const FfiConverterArrayTypeSparkAsset=new FfiConverterArray(FfiConverterTypeSparkAsset);// FfiConverter for Array<SparkHtlcStatus>
|
|
6053
6245
|
const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
|
|
6054
6246
|
const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
|
|
6055
6247
|
const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
|
|
@@ -6068,5 +6260,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
|
|
|
6068
6260
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
6069
6261
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
6070
6262
|
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}});
|
|
6263
|
+
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_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()!==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()!==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()!==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,FfiConverterTypeCheckUnilateralExitRequest,FfiConverterTypeCheckUnilateralExitResponse,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,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainReceiveInfo,FfiConverterTypeCrossChainRouteFilter,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,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,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
|
|
6072
6264
|
//# sourceMappingURL=breez_sdk_spark.js.map
|