@breeztech/breez-sdk-spark-react-native 0.22.3 → 0.23.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/src/main/kotlin/com/breeztech/breezsdkspark/BreezSdkSparkPasskeyModule.kt +6 -6
- package/cpp/generated/breez_sdk_spark.cpp +151 -0
- package/cpp/generated/breez_sdk_spark.hpp +23 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +246 -40
- 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 +245 -39
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +6 -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 +830 -8
- 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 +6 -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 +830 -8
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +14 -0
- package/src/generated/breez_sdk_spark.ts +1433 -17
|
@@ -452,7 +452,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
452
452
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
453
453
|
*/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();})();/**
|
|
454
454
|
* Generated factory for {@link ClaimDepositRequest} record objects.
|
|
455
|
-
*/export const ClaimDepositRequest=(()=>{const defaults=()=>({maxFee:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
455
|
+
*/export const ClaimDepositRequest=(()=>{const defaults=()=>({maxFee:undefined,maxInstantFeeBps:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
456
456
|
* Create a frozen instance of {@link ClaimDepositRequest}, with defaults specified
|
|
457
457
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
458
458
|
*/create,/**
|
|
@@ -460,7 +460,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
460
460
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
461
461
|
*/new:create,/**
|
|
462
462
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
463
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeMaxFee.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterOptionalTypeMaxFee.write(value.maxFee,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxFee);}}return new FFIConverter();})();/**
|
|
463
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeMaxFee.read(from),maxInstantFeeBps:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterOptionalTypeMaxFee.write(value.maxFee,into);FfiConverterOptionalUInt32.write(value.maxInstantFeeBps,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxFee)+FfiConverterOptionalUInt32.allocationSize(value.maxInstantFeeBps);}}return new FFIConverter();})();/**
|
|
464
464
|
* Generated factory for {@link ClaimDepositResponse} record objects.
|
|
465
465
|
*/export const ClaimDepositResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
466
466
|
* Create a frozen instance of {@link ClaimDepositResponse}, with defaults specified
|
|
@@ -470,7 +470,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
470
470
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
471
471
|
*/new:create,/**
|
|
472
472
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
473
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payment:
|
|
473
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payment:FfiConverterOptionalTypePayment.read(from)};}write(value,into){FfiConverterOptionalTypePayment.write(value.payment,into);}allocationSize(value){return FfiConverterOptionalTypePayment.allocationSize(value.payment);}}return new FFIConverter();})();/**
|
|
474
474
|
* Generated factory for {@link ClaimHtlcPaymentRequest} record objects.
|
|
475
475
|
*/export const ClaimHtlcPaymentRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
476
476
|
* Create a frozen instance of {@link ClaimHtlcPaymentRequest}, with defaults specified
|
|
@@ -514,7 +514,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
514
514
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
515
515
|
*/new:create,/**
|
|
516
516
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
517
|
-
*/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),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),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);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);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)+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)+FfiConverterOptionalTypeCrossChainConfig.allocationSize(value.crossChainConfig);}}return new FFIConverter();})();/**
|
|
517
|
+
*/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),maxInstantDepositClaimFeeBps:FfiConverterOptionalUInt32.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),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);FfiConverterOptionalUInt32.write(value.maxInstantDepositClaimFeeBps,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);FfiConverterOptionalTypeCrossChainConfig.write(value.crossChainConfig,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalUInt32.allocationSize(value.maxInstantDepositClaimFeeBps)+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)+FfiConverterOptionalTypeCrossChainConfig.allocationSize(value.crossChainConfig);}}return new FFIConverter();})();/**
|
|
518
518
|
* Generated factory for {@link ConnectRequest} record objects.
|
|
519
519
|
*/export const ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
520
520
|
* Create a frozen instance of {@link ConnectRequest}, with defaults specified
|
|
@@ -758,7 +758,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
758
758
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
759
759
|
*/new:create,/**
|
|
760
760
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
761
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRoutePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeCrossChainProvider.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),contractAddress:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt8.read(from),exactOutEligible:FfiConverterBool.read(from),supportedSources:FfiConverterArrayTypeSourceAsset.read(from)};}write(value,into){FfiConverterTypeCrossChainProvider.write(value.provider,into);FfiConverterString.write(value.chain,into);FfiConverterOptionalString.write(value.chainId,into);FfiConverterString.write(value.asset,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterUInt8.write(value.decimals,into);FfiConverterBool.write(value.exactOutEligible,into);FfiConverterArrayTypeSourceAsset.write(value.supportedSources,into);}allocationSize(value){return FfiConverterTypeCrossChainProvider.allocationSize(value.provider)+FfiConverterString.allocationSize(value.chain)+FfiConverterOptionalString.allocationSize(value.chainId)+FfiConverterString.allocationSize(value.asset)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterUInt8.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.exactOutEligible)+FfiConverterArrayTypeSourceAsset.allocationSize(value.supportedSources);}}return new FFIConverter();})();/**
|
|
761
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCrossChainRoutePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{provider:FfiConverterTypeCrossChainProvider.read(from),chain:FfiConverterString.read(from),chainId:FfiConverterOptionalString.read(from),asset:FfiConverterString.read(from),contractAddress:FfiConverterOptionalString.read(from),decimals:FfiConverterUInt8.read(from),exactOutEligible:FfiConverterBool.read(from),supportedSources:FfiConverterArrayTypeSourceAsset.read(from),supportedSourceChains:FfiConverterArrayTypeSourceChain.read(from)};}write(value,into){FfiConverterTypeCrossChainProvider.write(value.provider,into);FfiConverterString.write(value.chain,into);FfiConverterOptionalString.write(value.chainId,into);FfiConverterString.write(value.asset,into);FfiConverterOptionalString.write(value.contractAddress,into);FfiConverterUInt8.write(value.decimals,into);FfiConverterBool.write(value.exactOutEligible,into);FfiConverterArrayTypeSourceAsset.write(value.supportedSources,into);FfiConverterArrayTypeSourceChain.write(value.supportedSourceChains,into);}allocationSize(value){return FfiConverterTypeCrossChainProvider.allocationSize(value.provider)+FfiConverterString.allocationSize(value.chain)+FfiConverterOptionalString.allocationSize(value.chainId)+FfiConverterString.allocationSize(value.asset)+FfiConverterOptionalString.allocationSize(value.contractAddress)+FfiConverterUInt8.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.exactOutEligible)+FfiConverterArrayTypeSourceAsset.allocationSize(value.supportedSources)+FfiConverterArrayTypeSourceChain.allocationSize(value.supportedSourceChains);}}return new FFIConverter();})();/**
|
|
762
762
|
* Details about a supported currency in the fiat rate feed
|
|
763
763
|
*//**
|
|
764
764
|
* Generated factory for {@link CurrencyInfo} record objects.
|
|
@@ -780,7 +780,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
780
780
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
781
781
|
*/new:create,/**
|
|
782
782
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
783
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),isMature:FfiConverterBool.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterBool.write(value.isMature,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterBool.allocationSize(value.isMature)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError);}}return new FFIConverter();})();/**
|
|
783
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),isMature:FfiConverterBool.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from),instantClaimStatus:FfiConverterOptionalTypeInstantClaimStatus.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterBool.write(value.isMature,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);FfiConverterOptionalTypeInstantClaimStatus.write(value.instantClaimStatus,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterBool.allocationSize(value.isMature)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError)+FfiConverterOptionalTypeInstantClaimStatus.allocationSize(value.instantClaimStatus);}}return new FFIConverter();})();/**
|
|
784
784
|
* Derived seeds plus the credential observed in the same assertion.
|
|
785
785
|
*//**
|
|
786
786
|
* Generated factory for {@link DeriveSeedsOutput} record objects.
|
|
@@ -819,6 +819,19 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
819
819
|
*/new:create,/**
|
|
820
820
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
821
821
|
*/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();})();/**
|
|
822
|
+
* Result of `export_unilateral_exit_state`: a self-contained copy of the
|
|
823
|
+
* wallet's exit state, ready to be stored outside the wallet.
|
|
824
|
+
*//**
|
|
825
|
+
* Generated factory for {@link ExportUnilateralExitStateResponse} record objects.
|
|
826
|
+
*/export const ExportUnilateralExitStateResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
827
|
+
* Create a frozen instance of {@link ExportUnilateralExitStateResponse}, with defaults specified
|
|
828
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
829
|
+
*/create,/**
|
|
830
|
+
* Create a frozen instance of {@link ExportUnilateralExitStateResponse}, with defaults specified
|
|
831
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
832
|
+
*/new:create,/**
|
|
833
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
834
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExportUnilateralExitStateResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{exitState:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.exitState,into);}allocationSize(value){return FfiConverterString.allocationSize(value.exitState);}}return new FFIConverter();})();/**
|
|
822
835
|
* FFI-safe representation of `spark_wallet::ClaimLeafInput`.
|
|
823
836
|
*//**
|
|
824
837
|
* Generated factory for {@link ExternalClaimLeafInput} record objects.
|
|
@@ -1367,6 +1380,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1367
1380
|
*/new:create,/**
|
|
1368
1381
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1369
1382
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeIdentifierSignaturePair=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{identifier:FfiConverterTypeExternalIdentifier.read(from),signature:FfiConverterTypeExternalFrostSignatureShare.read(from)};}write(value,into){FfiConverterTypeExternalIdentifier.write(value.identifier,into);FfiConverterTypeExternalFrostSignatureShare.write(value.signature,into);}allocationSize(value){return FfiConverterTypeExternalIdentifier.allocationSize(value.identifier)+FfiConverterTypeExternalFrostSignatureShare.allocationSize(value.signature);}}return new FFIConverter();})();/**
|
|
1383
|
+
* Request for `import_unilateral_exit_state`.
|
|
1384
|
+
*//**
|
|
1385
|
+
* Generated factory for {@link ImportUnilateralExitStateRequest} record objects.
|
|
1386
|
+
*/export const ImportUnilateralExitStateRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1387
|
+
* Create a frozen instance of {@link ImportUnilateralExitStateRequest}, with defaults specified
|
|
1388
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1389
|
+
*/create,/**
|
|
1390
|
+
* Create a frozen instance of {@link ImportUnilateralExitStateRequest}, with defaults specified
|
|
1391
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1392
|
+
*/new:create,/**
|
|
1393
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1394
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeImportUnilateralExitStateRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{exitState:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.exitState,into);}allocationSize(value){return FfiConverterString.allocationSize(value.exitState);}}return new FFIConverter();})();/**
|
|
1395
|
+
* Result of `import_unilateral_exit_state`.
|
|
1396
|
+
*//**
|
|
1397
|
+
* Generated factory for {@link ImportUnilateralExitStateResponse} record objects.
|
|
1398
|
+
*/export const ImportUnilateralExitStateResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1399
|
+
* Create a frozen instance of {@link ImportUnilateralExitStateResponse}, with defaults specified
|
|
1400
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1401
|
+
*/create,/**
|
|
1402
|
+
* Create a frozen instance of {@link ImportUnilateralExitStateResponse}, with defaults specified
|
|
1403
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1404
|
+
*/new:create,/**
|
|
1405
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1406
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeImportUnilateralExitStateResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{importedLeaves:FfiConverterUInt32.read(from),skippedForeignLeaves:FfiConverterUInt32.read(from),skippedConflictingLeaves:FfiConverterUInt32.read(from),skippedChains:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterUInt32.write(value.importedLeaves,into);FfiConverterUInt32.write(value.skippedForeignLeaves,into);FfiConverterUInt32.write(value.skippedConflictingLeaves,into);FfiConverterUInt32.write(value.skippedChains,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.importedLeaves)+FfiConverterUInt32.allocationSize(value.skippedForeignLeaves)+FfiConverterUInt32.allocationSize(value.skippedConflictingLeaves)+FfiConverterUInt32.allocationSize(value.skippedChains);}}return new FFIConverter();})();/**
|
|
1370
1407
|
* Generated factory for {@link IncomingChange} record objects.
|
|
1371
1408
|
*/export const IncomingChange=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1372
1409
|
* Create a frozen instance of {@link IncomingChange}, with defaults specified
|
|
@@ -1851,6 +1888,37 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1851
1888
|
*/new:create,/**
|
|
1852
1889
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1853
1890
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareLnurlPayResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{amountSats:FfiConverterUInt64.read(from),comment:FfiConverterOptionalString.read(from),payRequest:FfiConverterTypeLnurlPayRequestDetails.read(from),feeSats:FfiConverterUInt64.read(from),invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),successAction:FfiConverterOptionalTypeSuccessAction.read(from),conversionEstimate:FfiConverterOptionalTypeConversionEstimate.read(from),feePolicy:FfiConverterTypeFeePolicy.read(from)};}write(value,into){FfiConverterUInt64.write(value.amountSats,into);FfiConverterOptionalString.write(value.comment,into);FfiConverterTypeLnurlPayRequestDetails.write(value.payRequest,into);FfiConverterUInt64.write(value.feeSats,into);FfiConverterTypeBolt11InvoiceDetails.write(value.invoiceDetails,into);FfiConverterOptionalTypeSuccessAction.write(value.successAction,into);FfiConverterOptionalTypeConversionEstimate.write(value.conversionEstimate,into);FfiConverterTypeFeePolicy.write(value.feePolicy,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.comment)+FfiConverterTypeLnurlPayRequestDetails.allocationSize(value.payRequest)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterTypeBolt11InvoiceDetails.allocationSize(value.invoiceDetails)+FfiConverterOptionalTypeSuccessAction.allocationSize(value.successAction)+FfiConverterOptionalTypeConversionEstimate.allocationSize(value.conversionEstimate)+FfiConverterTypeFeePolicy.allocationSize(value.feePolicy);}}return new FFIConverter();})();/**
|
|
1891
|
+
* Request for a payment link that sends USDC/USDT to an external-chain
|
|
1892
|
+
* recipient, funded by Cash App over Lightning.
|
|
1893
|
+
*
|
|
1894
|
+
* The user pays the returned URL, and the cross-chain provider delivers the
|
|
1895
|
+
* stablecoin to `address`. No funds move through the Spark wallet. Only
|
|
1896
|
+
* available on mainnet.
|
|
1897
|
+
*//**
|
|
1898
|
+
* Generated factory for {@link PreparePaymentLinkRequest} record objects.
|
|
1899
|
+
*/export const PreparePaymentLinkRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1900
|
+
* Create a frozen instance of {@link PreparePaymentLinkRequest}, with defaults specified
|
|
1901
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1902
|
+
*/create,/**
|
|
1903
|
+
* Create a frozen instance of {@link PreparePaymentLinkRequest}, with defaults specified
|
|
1904
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1905
|
+
*/new:create,/**
|
|
1906
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1907
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePreparePaymentLinkRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{address:FfiConverterString.read(from),route:FfiConverterTypeCrossChainRoutePair.read(from),amount:FfiConverterTypeu128.read(from),feePolicy:FfiConverterOptionalTypeFeePolicy.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterString.write(value.address,into);FfiConverterTypeCrossChainRoutePair.write(value.route,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterOptionalTypeFeePolicy.write(value.feePolicy,into);FfiConverterOptionalUInt32.write(value.maxSlippageBps,into);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterTypeCrossChainRoutePair.allocationSize(value.route)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterOptionalTypeFeePolicy.allocationSize(value.feePolicy)+FfiConverterOptionalUInt32.allocationSize(value.maxSlippageBps);}}return new FFIConverter();})();/**
|
|
1908
|
+
* Response to a [`PreparePaymentLinkRequest`]. Mirrors `BuyBitcoinResponse`
|
|
1909
|
+
* (a payable `url`) plus the quote so the caller can display the expected
|
|
1910
|
+
* delivery and fees.
|
|
1911
|
+
*//**
|
|
1912
|
+
* Generated factory for {@link PreparePaymentLinkResponse} record objects.
|
|
1913
|
+
*/export const PreparePaymentLinkResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1914
|
+
* Create a frozen instance of {@link PreparePaymentLinkResponse}, with defaults specified
|
|
1915
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1916
|
+
*/create,/**
|
|
1917
|
+
* Create a frozen instance of {@link PreparePaymentLinkResponse}, with defaults specified
|
|
1918
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1919
|
+
*/new:create,/**
|
|
1920
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1921
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePreparePaymentLinkResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{url:FfiConverterString.read(from),amountSats:FfiConverterUInt64.read(from),estimatedOut:FfiConverterTypeu128.read(from),asset:FfiConverterString.read(from),serviceFeeAmount:FfiConverterTypeu128.read(from),serviceFeeAsset:FfiConverterOptionalString.read(from),expiresAt:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.url,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterTypeu128.write(value.estimatedOut,into);FfiConverterString.write(value.asset,into);FfiConverterTypeu128.write(value.serviceFeeAmount,into);FfiConverterOptionalString.write(value.serviceFeeAsset,into);FfiConverterString.write(value.expiresAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.url)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterTypeu128.allocationSize(value.estimatedOut)+FfiConverterString.allocationSize(value.asset)+FfiConverterTypeu128.allocationSize(value.serviceFeeAmount)+FfiConverterOptionalString.allocationSize(value.serviceFeeAsset)+FfiConverterString.allocationSize(value.expiresAt);}}return new FFIConverter();})();/**
|
|
1854
1922
|
* Generated factory for {@link PrepareSendBatchRequest} record objects.
|
|
1855
1923
|
*/export const PrepareSendBatchRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1856
1924
|
* Create a frozen instance of {@link PrepareSendBatchRequest}, with defaults specified
|
|
@@ -2616,7 +2684,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2616
2684
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2617
2685
|
*/new:create,/**
|
|
2618
2686
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2619
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTransferAuthorization=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),pubkey:FfiConverterString.read(from),signature:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterString.write(value.pubkey,into);FfiConverterString.write(value.signature,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterString.allocationSize(value.pubkey)+FfiConverterString.allocationSize(value.signature);}}return new FFIConverter();})();/**
|
|
2687
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeTransferAuthorization=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),pubkey:FfiConverterString.read(from),signature:FfiConverterString.read(from),domain:FfiConverterString.read(from),timestamp:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterString.write(value.pubkey,into);FfiConverterString.write(value.signature,into);FfiConverterString.write(value.domain,into);FfiConverterUInt64.write(value.timestamp,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterString.allocationSize(value.pubkey)+FfiConverterString.allocationSize(value.signature)+FfiConverterString.allocationSize(value.domain)+FfiConverterUInt64.allocationSize(value.timestamp);}}return new FFIConverter();})();/**
|
|
2620
2688
|
* Generated factory for {@link TurnkeyConfig} record objects.
|
|
2621
2689
|
*/export const TurnkeyConfig=(()=>{const defaults=()=>({maxRps:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2622
2690
|
* Create a frozen instance of {@link TurnkeyConfig}, with defaults specified
|
|
@@ -3205,11 +3273,11 @@ export let CrossChainProviderContext_Tags=/*#__PURE__*/function(CrossChainProvid
|
|
|
3205
3273
|
*/// FfiConverter for enum CrossChainProviderContext
|
|
3206
3274
|
const FfiConverterTypeCrossChainProviderContext=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CrossChainProviderContext.Orchestra({quoteId:FfiConverterString.read(from),depositAddress:FfiConverterString.read(from),depositAmount:FfiConverterTypeu128.read(from)});case 2:return new CrossChainProviderContext.Boltz({swapId:FfiConverterString.read(from),invoice:FfiConverterString.read(from),invoiceAmountSats:FfiConverterUInt64.read(from),maxSlippageBps:FfiConverterUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CrossChainProviderContext_Tags.Orchestra:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.quoteId,into);FfiConverterString.write(inner.depositAddress,into);FfiConverterTypeu128.write(inner.depositAmount,into);return;}case CrossChainProviderContext_Tags.Boltz:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.swapId,into);FfiConverterString.write(inner.invoice,into);FfiConverterUInt64.write(inner.invoiceAmountSats,into);FfiConverterUInt32.write(inner.maxSlippageBps,into);return;}default:// Throwing from here means that CrossChainProviderContext_Tags hasn't matched an ordinal.
|
|
3207
3275
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainProviderContext_Tags.Orchestra:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.quoteId);size+=FfiConverterString.allocationSize(inner.depositAddress);size+=FfiConverterTypeu128.allocationSize(inner.depositAmount);return size;}case CrossChainProviderContext_Tags.Boltz:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.swapId);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterUInt64.allocationSize(inner.invoiceAmountSats);size+=FfiConverterUInt32.allocationSize(inner.maxSlippageBps);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: CrossChainRouteFilter
|
|
3208
|
-
export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilter_Tags){CrossChainRouteFilter_Tags["Send"]="Send";CrossChainRouteFilter_Tags["Receive"]="Receive";return CrossChainRouteFilter_Tags;}({});/**
|
|
3276
|
+
export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilter_Tags){CrossChainRouteFilter_Tags["Send"]="Send";CrossChainRouteFilter_Tags["Receive"]="Receive";CrossChainRouteFilter_Tags["PaymentLink"]="PaymentLink";return CrossChainRouteFilter_Tags;}({});/**
|
|
3209
3277
|
* Filter for [`CrossChainService::get_routes`] and the public
|
|
3210
3278
|
* `get_cross_chain_routes()` API.
|
|
3211
3279
|
*/export const CrossChainRouteFilter=(()=>{/**
|
|
3212
|
-
* Routes for sending from Spark to another chain.
|
|
3280
|
+
* Routes for sending from the Spark wallet to another chain.
|
|
3213
3281
|
* Filtered by the parsed recipient address details.
|
|
3214
3282
|
*/class Send_ extends UniffiEnum{/**
|
|
3215
3283
|
* @private
|
|
@@ -3220,12 +3288,19 @@ export let CrossChainRouteFilter_Tags=/*#__PURE__*/function(CrossChainRouteFilte
|
|
|
3220
3288
|
*/class Receive_ extends UniffiEnum{/**
|
|
3221
3289
|
* @private
|
|
3222
3290
|
* This field is private and should not be used, use `tag` instead.
|
|
3223
|
-
*/[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.Receive;constructor(inner){super('CrossChainRouteFilter','Receive');this.inner=Object.freeze(inner);}static new(inner){return new Receive_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.Receive;}}
|
|
3291
|
+
*/[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.Receive;constructor(inner){super('CrossChainRouteFilter','Receive');this.inner=Object.freeze(inner);}static new(inner){return new Receive_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.Receive;}}/**
|
|
3292
|
+
* Routes for a payment link that sends a stablecoin funded by an external
|
|
3293
|
+
* rail (Cash App over Lightning) rather than the Spark wallet.
|
|
3294
|
+
* Filtered by the parsed recipient address details.
|
|
3295
|
+
*/class PaymentLink_ extends UniffiEnum{/**
|
|
3296
|
+
* @private
|
|
3297
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3298
|
+
*/[uniffiTypeNameSymbol]='CrossChainRouteFilter';tag=CrossChainRouteFilter_Tags.PaymentLink;constructor(inner){super('CrossChainRouteFilter','PaymentLink');this.inner=Object.freeze(inner);}static new(inner){return new PaymentLink_(inner);}static instanceOf(obj){return obj.tag===CrossChainRouteFilter_Tags.PaymentLink;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CrossChainRouteFilter';}return Object.freeze({instanceOf,Send:Send_,Receive:Receive_,PaymentLink:PaymentLink_});})();/**
|
|
3224
3299
|
* Filter for [`CrossChainService::get_routes`] and the public
|
|
3225
3300
|
* `get_cross_chain_routes()` API.
|
|
3226
3301
|
*/// FfiConverter for enum CrossChainRouteFilter
|
|
3227
|
-
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)});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;}default:// Throwing from here means that CrossChainRouteFilter_Tags hasn't matched an ordinal.
|
|
3228
|
-
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;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: DepositClaimError
|
|
3302
|
+
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.
|
|
3303
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CrossChainRouteFilter_Tags.Send:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}case CrossChainRouteFilter_Tags.Receive:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.contractAddress);return size;}case CrossChainRouteFilter_Tags.PaymentLink:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner.addressDetails);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: DepositClaimError
|
|
3229
3304
|
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{/**
|
|
3230
3305
|
* @private
|
|
3231
3306
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -3420,7 +3495,52 @@ export let InputType_Tags=/*#__PURE__*/function(InputType_Tags){InputType_Tags["
|
|
|
3420
3495
|
* This field is private and should not be used, use `tag` instead.
|
|
3421
3496
|
*/[uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.CrossChainAddress;constructor(v0){super('InputType','CrossChainAddress');this.inner=Object.freeze([v0]);}static new(v0){return new CrossChainAddress_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.CrossChainAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InputType';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,Bolt12Invoice:Bolt12Invoice_,Bolt12Offer:Bolt12Offer_,LightningAddress:LightningAddress_,LnurlPay:LnurlPay_,SilentPaymentAddress:SilentPaymentAddress_,LnurlAuth:LnurlAuth_,Url:Url_,Bip21:Bip21_,Bolt12InvoiceRequest:Bolt12InvoiceRequest_,LnurlWithdraw:LnurlWithdraw_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,CrossChainAddress:CrossChainAddress_});})();// FfiConverter for enum InputType
|
|
3422
3497
|
const FfiConverterTypeInputType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InputType.BitcoinAddress(FfiConverterTypeBitcoinAddressDetails.read(from));case 2:return new InputType.Bolt11Invoice(FfiConverterTypeBolt11InvoiceDetails.read(from));case 3:return new InputType.Bolt12Invoice(FfiConverterTypeBolt12InvoiceDetails.read(from));case 4:return new InputType.Bolt12Offer(FfiConverterTypeBolt12OfferDetails.read(from));case 5:return new InputType.LightningAddress(FfiConverterTypeLightningAddressDetails.read(from));case 6:return new InputType.LnurlPay(FfiConverterTypeLnurlPayRequestDetails.read(from));case 7:return new InputType.SilentPaymentAddress(FfiConverterTypeSilentPaymentAddressDetails.read(from));case 8:return new InputType.LnurlAuth(FfiConverterTypeLnurlAuthRequestDetails.read(from));case 9:return new InputType.Url(FfiConverterString.read(from));case 10:return new InputType.Bip21(FfiConverterTypeBip21Details.read(from));case 11:return new InputType.Bolt12InvoiceRequest(FfiConverterTypeBolt12InvoiceRequestDetails.read(from));case 12:return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));case 13:return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));case 14:return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));case 15:return new InputType.CrossChainAddress(FfiConverterTypeCrossChainAddressDetails.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InputType_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner[0],into);return;}case InputType_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Invoice:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Offer:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeBolt12OfferDetails.write(inner[0],into);return;}case InputType_Tags.LightningAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeLightningAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlPay:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypeLnurlPayRequestDetails.write(inner[0],into);return;}case InputType_Tags.SilentPaymentAddress:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeSilentPaymentAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlAuth:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeLnurlAuthRequestDetails.write(inner[0],into);return;}case InputType_Tags.Url:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case InputType_Tags.Bip21:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterTypeBip21Details.write(inner[0],into);return;}case InputType_Tags.Bolt12InvoiceRequest:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceRequestDetails.write(inner[0],into);return;}case InputType_Tags.LnurlWithdraw:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterTypeLnurlWithdrawRequestDetails.write(inner[0],into);return;}case InputType_Tags.SparkAddress:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterTypeSparkAddressDetails.write(inner[0],into);return;}case InputType_Tags.SparkInvoice:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner[0],into);return;}case InputType_Tags.CrossChainAddress:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterTypeCrossChainAddressDetails.write(inner[0],into);return;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
|
|
3423
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum:
|
|
3498
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.CrossChainAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterTypeCrossChainAddressDetails.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: InstantClaimDeclineReason
|
|
3499
|
+
export let InstantClaimDeclineReason_Tags=/*#__PURE__*/function(InstantClaimDeclineReason_Tags){InstantClaimDeclineReason_Tags["NoPlan"]="NoPlan";InstantClaimDeclineReason_Tags["FeeExceeded"]="FeeExceeded";InstantClaimDeclineReason_Tags["SubmissionFailed"]="SubmissionFailed";return InstantClaimDeclineReason_Tags;}({});/**
|
|
3500
|
+
* Why an instant (0-conf) claim was declined.
|
|
3501
|
+
*/export const InstantClaimDeclineReason=(()=>{/**
|
|
3502
|
+
* The SSP offered no 0-conf fulfillment plan for the deposit.
|
|
3503
|
+
*/class NoPlan_ extends UniffiEnum{/**
|
|
3504
|
+
* @private
|
|
3505
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3506
|
+
*/[uniffiTypeNameSymbol]='InstantClaimDeclineReason';tag=InstantClaimDeclineReason_Tags.NoPlan;constructor(){super('InstantClaimDeclineReason','NoPlan');}static new(){return new NoPlan_();}static instanceOf(obj){return obj.tag===InstantClaimDeclineReason_Tags.NoPlan;}}/**
|
|
3507
|
+
* The SSP spread exceeded the ceiling (`max_bps`). The instant claim can be
|
|
3508
|
+
* retried with a higher ceiling. `quoted_bps` / `quoted_sats` are the spread
|
|
3509
|
+
* the SSP quoted at the time.
|
|
3510
|
+
*/class FeeExceeded_ extends UniffiEnum{/**
|
|
3511
|
+
* @private
|
|
3512
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3513
|
+
*/[uniffiTypeNameSymbol]='InstantClaimDeclineReason';tag=InstantClaimDeclineReason_Tags.FeeExceeded;constructor(inner){super('InstantClaimDeclineReason','FeeExceeded');this.inner=Object.freeze(inner);}static new(inner){return new FeeExceeded_(inner);}static instanceOf(obj){return obj.tag===InstantClaimDeclineReason_Tags.FeeExceeded;}}/**
|
|
3514
|
+
* The claim submission failed with an unknown outcome.
|
|
3515
|
+
*/class SubmissionFailed_ extends UniffiEnum{/**
|
|
3516
|
+
* @private
|
|
3517
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3518
|
+
*/[uniffiTypeNameSymbol]='InstantClaimDeclineReason';tag=InstantClaimDeclineReason_Tags.SubmissionFailed;constructor(){super('InstantClaimDeclineReason','SubmissionFailed');}static new(){return new SubmissionFailed_();}static instanceOf(obj){return obj.tag===InstantClaimDeclineReason_Tags.SubmissionFailed;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InstantClaimDeclineReason';}return Object.freeze({instanceOf,NoPlan:NoPlan_,FeeExceeded:FeeExceeded_,SubmissionFailed:SubmissionFailed_});})();/**
|
|
3519
|
+
* Why an instant (0-conf) claim was declined.
|
|
3520
|
+
*/// FfiConverter for enum InstantClaimDeclineReason
|
|
3521
|
+
const FfiConverterTypeInstantClaimDeclineReason=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InstantClaimDeclineReason.NoPlan();case 2:return new InstantClaimDeclineReason.FeeExceeded({maxBps:FfiConverterUInt32.read(from),quotedBps:FfiConverterUInt32.read(from),quotedSats:FfiConverterUInt64.read(from)});case 3:return new InstantClaimDeclineReason.SubmissionFailed();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InstantClaimDeclineReason_Tags.NoPlan:{ordinalConverter.write(1,into);return;}case InstantClaimDeclineReason_Tags.FeeExceeded:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt32.write(inner.maxBps,into);FfiConverterUInt32.write(inner.quotedBps,into);FfiConverterUInt64.write(inner.quotedSats,into);return;}case InstantClaimDeclineReason_Tags.SubmissionFailed:{ordinalConverter.write(3,into);return;}default:// Throwing from here means that InstantClaimDeclineReason_Tags hasn't matched an ordinal.
|
|
3522
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InstantClaimDeclineReason_Tags.NoPlan:{return ordinalConverter.allocationSize(1);}case InstantClaimDeclineReason_Tags.FeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.maxBps);size+=FfiConverterUInt32.allocationSize(inner.quotedBps);size+=FfiConverterUInt64.allocationSize(inner.quotedSats);return size;}case InstantClaimDeclineReason_Tags.SubmissionFailed:{return ordinalConverter.allocationSize(3);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: InstantClaimStatus
|
|
3523
|
+
export let InstantClaimStatus_Tags=/*#__PURE__*/function(InstantClaimStatus_Tags){InstantClaimStatus_Tags["Declined"]="Declined";InstantClaimStatus_Tags["Submitted"]="Submitted";return InstantClaimStatus_Tags;}({});/**
|
|
3524
|
+
* State of an instant (0-conf) claim attempt on a deposit.
|
|
3525
|
+
*/export const InstantClaimStatus=(()=>{/**
|
|
3526
|
+
* The instant claim was declined. The deposit falls through to the normal
|
|
3527
|
+
* claim once it matures; the background sync may re-attempt an instant claim
|
|
3528
|
+
* only when the reason permits (see [`InstantClaimDeclineReason`]).
|
|
3529
|
+
*/class Declined_ extends UniffiEnum{/**
|
|
3530
|
+
* @private
|
|
3531
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3532
|
+
*/[uniffiTypeNameSymbol]='InstantClaimStatus';tag=InstantClaimStatus_Tags.Declined;constructor(inner){super('InstantClaimStatus','Declined');this.inner=Object.freeze(inner);}static new(inner){return new Declined_(inner);}static instanceOf(obj){return obj.tag===InstantClaimStatus_Tags.Declined;}}/**
|
|
3533
|
+
* An instant claim was submitted and is settling. The deposit must not be
|
|
3534
|
+
* re-claimed (instant or normal) until the claim settles and it is reconciled
|
|
3535
|
+
* out. Carries the SSP claim id.
|
|
3536
|
+
*/class Submitted_ extends UniffiEnum{/**
|
|
3537
|
+
* @private
|
|
3538
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3539
|
+
*/[uniffiTypeNameSymbol]='InstantClaimStatus';tag=InstantClaimStatus_Tags.Submitted;constructor(inner){super('InstantClaimStatus','Submitted');this.inner=Object.freeze(inner);}static new(inner){return new Submitted_(inner);}static instanceOf(obj){return obj.tag===InstantClaimStatus_Tags.Submitted;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='InstantClaimStatus';}return Object.freeze({instanceOf,Declined:Declined_,Submitted:Submitted_});})();/**
|
|
3540
|
+
* State of an instant (0-conf) claim attempt on a deposit.
|
|
3541
|
+
*/// FfiConverter for enum InstantClaimStatus
|
|
3542
|
+
const FfiConverterTypeInstantClaimStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InstantClaimStatus.Declined({reason:FfiConverterTypeInstantClaimDeclineReason.read(from)});case 2:return new InstantClaimStatus.Submitted({claimId:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InstantClaimStatus_Tags.Declined:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeInstantClaimDeclineReason.write(inner.reason,into);return;}case InstantClaimStatus_Tags.Submitted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.claimId,into);return;}default:// Throwing from here means that InstantClaimStatus_Tags hasn't matched an ordinal.
|
|
3543
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InstantClaimStatus_Tags.Declined:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeInstantClaimDeclineReason.allocationSize(inner.reason);return size;}case InstantClaimStatus_Tags.Submitted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.claimId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
|
|
3424
3544
|
export let LnurlCallbackStatus_Tags=/*#__PURE__*/function(LnurlCallbackStatus_Tags){LnurlCallbackStatus_Tags["Ok"]="Ok";LnurlCallbackStatus_Tags["ErrorStatus"]="ErrorStatus";return LnurlCallbackStatus_Tags;}({});/**
|
|
3425
3545
|
* The response from a LNURL-auth callback, indicating success or failure.
|
|
3426
3546
|
*/export const LnurlCallbackStatus=(()=>{/**
|
|
@@ -3807,8 +3927,8 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
|
|
|
3807
3927
|
* @private
|
|
3808
3928
|
* This field is private and should not be used, use `tag` instead.
|
|
3809
3929
|
*/[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.Bolt11Invoice;constructor(inner){super('ReceivePaymentMethod','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.Bolt11Invoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ReceivePaymentMethod';}return Object.freeze({instanceOf,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_});})();// FfiConverter for enum ReceivePaymentMethod
|
|
3810
|
-
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)});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);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
|
|
3811
|
-
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);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
|
|
3930
|
+
const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress({newAddress:FfiConverterOptionalBool.read(from)});case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from),paymentHash:FfiConverterOptionalString.read(from),receiverIdentityPublicKey:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.newAddress,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);FfiConverterOptionalString.write(inner.paymentHash,into);FfiConverterOptionalString.write(inner.receiverIdentityPublicKey,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
|
|
3931
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalBool.allocationSize(inner.newAddress);return size;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);size+=FfiConverterOptionalString.allocationSize(inner.paymentHash);size+=FfiConverterOptionalString.allocationSize(inner.receiverIdentityPublicKey);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
|
|
3812
3932
|
// Enum: SdkError
|
|
3813
3933
|
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["LnurlError"]="LnurlError";SdkError_Tags["Signer"]="Signer";SdkError_Tags["OptimizationAlreadyRunning"]="OptimizationAlreadyRunning";SdkError_Tags["OptimizationCancelled"]="OptimizationCancelled";SdkError_Tags["InsufficientCpfpFunds"]="InsufficientCpfpFunds";SdkError_Tags["FundingUtxoConflict"]="FundingUtxoConflict";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
|
|
3814
3934
|
* Error type for the `BreezSdk`
|
|
@@ -3882,7 +4002,7 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
3882
4002
|
*/// FfiConverter for enum SdkError
|
|
3883
4003
|
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.LnurlError(FfiConverterString.read(from));case 11:return new SdkError.Signer(FfiConverterString.read(from));case 12:return new SdkError.OptimizationAlreadyRunning();case 13:return new SdkError.OptimizationCancelled();case 14:return new SdkError.InsufficientCpfpFunds({requiredSat:FfiConverterUInt64.read(from)});case 15:return new SdkError.FundingUtxoConflict({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 16: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.LnurlError:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Signer:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.OptimizationAlreadyRunning:{ordinalConverter.write(12,into);return;}case SdkError_Tags.OptimizationCancelled:{ordinalConverter.write(13,into);return;}case SdkError_Tags.InsufficientCpfpFunds:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterUInt64.write(inner.requiredSat,into);return;}case SdkError_Tags.FundingUtxoConflict:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(16,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
|
|
3884
4004
|
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.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Signer:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.OptimizationAlreadyRunning:{return ordinalConverter.allocationSize(12);}case SdkError_Tags.OptimizationCancelled:{return ordinalConverter.allocationSize(13);}case SdkError_Tags.InsufficientCpfpFunds:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterUInt64.allocationSize(inner.requiredSat);return size;}case SdkError_Tags.FundingUtxoConflict:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(16);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
|
|
3885
|
-
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";return SdkEvent_Tags;}({});/**
|
|
4005
|
+
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;}({});/**
|
|
3886
4006
|
* Events emitted by the SDK
|
|
3887
4007
|
*/export const SdkEvent=(()=>{/**
|
|
3888
4008
|
* Emitted when the wallet has been synchronized with the network
|
|
@@ -3890,20 +4010,32 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
|
|
|
3890
4010
|
* @private
|
|
3891
4011
|
* This field is private and should not be used, use `tag` instead.
|
|
3892
4012
|
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.Synced;constructor(){super('SdkEvent','Synced');}static new(){return new Synced_();}static instanceOf(obj){return obj.tag===SdkEvent_Tags.Synced;}}/**
|
|
3893
|
-
* Emitted when the SDK was unable to claim deposits
|
|
4013
|
+
* Emitted when the SDK was unable to claim deposits. Each deposit carries a
|
|
4014
|
+
* `claim_error` with the reason.
|
|
3894
4015
|
*/class UnclaimedDeposits_ extends UniffiEnum{/**
|
|
3895
4016
|
* @private
|
|
3896
4017
|
* This field is private and should not be used, use `tag` instead.
|
|
3897
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.UnclaimedDeposits;constructor(inner){super('SdkEvent','UnclaimedDeposits');this.inner=Object.freeze(inner);}static new(inner){return new UnclaimedDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.UnclaimedDeposits;}}
|
|
4018
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.UnclaimedDeposits;constructor(inner){super('SdkEvent','UnclaimedDeposits');this.inner=Object.freeze(inner);}static new(inner){return new UnclaimedDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.UnclaimedDeposits;}}/**
|
|
4019
|
+
* Emitted when deposits were claimed into the wallet. The resulting payment
|
|
4020
|
+
* is emitted separately as `PaymentSucceeded`.
|
|
4021
|
+
*/class ClaimedDeposits_ extends UniffiEnum{/**
|
|
3898
4022
|
* @private
|
|
3899
4023
|
* This field is private and should not be used, use `tag` instead.
|
|
3900
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.ClaimedDeposits;constructor(inner){super('SdkEvent','ClaimedDeposits');this.inner=Object.freeze(inner);}static new(inner){return new ClaimedDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.ClaimedDeposits;}}
|
|
4024
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.ClaimedDeposits;constructor(inner){super('SdkEvent','ClaimedDeposits');this.inner=Object.freeze(inner);}static new(inner){return new ClaimedDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.ClaimedDeposits;}}/**
|
|
4025
|
+
* Emitted when a payment completed. The cached balance is refreshed before
|
|
4026
|
+
* this event, so `get_info` returns the new value.
|
|
4027
|
+
*/class PaymentSucceeded_ extends UniffiEnum{/**
|
|
3901
4028
|
* @private
|
|
3902
4029
|
* This field is private and should not be used, use `tag` instead.
|
|
3903
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentSucceeded;constructor(inner){super('SdkEvent','PaymentSucceeded');this.inner=Object.freeze(inner);}static new(inner){return new PaymentSucceeded_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentSucceeded;}}
|
|
4030
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentSucceeded;constructor(inner){super('SdkEvent','PaymentSucceeded');this.inner=Object.freeze(inner);}static new(inner){return new PaymentSucceeded_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentSucceeded;}}/**
|
|
4031
|
+
* Emitted when a payment is in flight. The same payment is emitted again as
|
|
4032
|
+
* succeeded or failed once it settles.
|
|
4033
|
+
*/class PaymentPending_ extends UniffiEnum{/**
|
|
3904
4034
|
* @private
|
|
3905
4035
|
* This field is private and should not be used, use `tag` instead.
|
|
3906
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentPending;constructor(inner){super('SdkEvent','PaymentPending');this.inner=Object.freeze(inner);}static new(inner){return new PaymentPending_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentPending;}}
|
|
4036
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentPending;constructor(inner){super('SdkEvent','PaymentPending');this.inner=Object.freeze(inner);}static new(inner){return new PaymentPending_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentPending;}}/**
|
|
4037
|
+
* Emitted when a payment failed.
|
|
4038
|
+
*/class PaymentFailed_ extends UniffiEnum{/**
|
|
3907
4039
|
* @private
|
|
3908
4040
|
* This field is private and should not be used, use `tag` instead.
|
|
3909
4041
|
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentFailed;constructor(inner){super('SdkEvent','PaymentFailed');this.inner=Object.freeze(inner);}static new(inner){return new PaymentFailed_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentFailed;}}/**
|
|
@@ -3911,22 +4043,34 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
|
|
|
3911
4043
|
*
|
|
3912
4044
|
* Only fired from the auto path (enabled via
|
|
3913
4045
|
* `LeafOptimizationConfig::auto_enabled`). Manually-triggered runs
|
|
3914
|
-
* via `BreezSdk::optimize_leaves` do not emit events
|
|
4046
|
+
* via `BreezSdk::optimize_leaves` do not emit events: they return an
|
|
3915
4047
|
* `OptimizationOutcome` instead.
|
|
3916
4048
|
*/class AutoOptimization_ extends UniffiEnum{/**
|
|
3917
4049
|
* @private
|
|
3918
4050
|
* This field is private and should not be used, use `tag` instead.
|
|
3919
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.AutoOptimization;constructor(inner){super('SdkEvent','AutoOptimization');this.inner=Object.freeze(inner);}static new(inner){return new AutoOptimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.AutoOptimization;}}
|
|
4051
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.AutoOptimization;constructor(inner){super('SdkEvent','AutoOptimization');this.inner=Object.freeze(inner);}static new(inner){return new AutoOptimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.AutoOptimization;}}/**
|
|
4052
|
+
* Emitted when the Lightning address changed on another device. The address
|
|
4053
|
+
* is unset when it was deleted.
|
|
4054
|
+
*/class LightningAddressChanged_ extends UniffiEnum{/**
|
|
4055
|
+
* @private
|
|
4056
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4057
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.LightningAddressChanged;constructor(inner){super('SdkEvent','LightningAddressChanged');this.inner=Object.freeze(inner);}static new(inner){return new LightningAddressChanged_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.LightningAddressChanged;}}/**
|
|
4058
|
+
* Emitted when on-chain deposits are detected. Only deposits whose
|
|
4059
|
+
* `is_mature` is set have enough confirmations to be claimed.
|
|
4060
|
+
*/class NewDeposits_ extends UniffiEnum{/**
|
|
3920
4061
|
* @private
|
|
3921
4062
|
* This field is private and should not be used, use `tag` instead.
|
|
3922
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.
|
|
4063
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.NewDeposits;constructor(inner){super('SdkEvent','NewDeposits');this.inner=Object.freeze(inner);}static new(inner){return new NewDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.NewDeposits;}}/**
|
|
4064
|
+
* Emitted when the data a unilateral exit is built from has changed, so an
|
|
4065
|
+
* exit state exported earlier is out of date and should be exported again.
|
|
4066
|
+
*/class UnilateralExitStateChanged_ extends UniffiEnum{/**
|
|
3923
4067
|
* @private
|
|
3924
4068
|
* This field is private and should not be used, use `tag` instead.
|
|
3925
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.
|
|
4069
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.UnilateralExitStateChanged;constructor(){super('SdkEvent','UnilateralExitStateChanged');}static new(){return new UnilateralExitStateChanged_();}static instanceOf(obj){return obj.tag===SdkEvent_Tags.UnilateralExitStateChanged;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,AutoOptimization:AutoOptimization_,LightningAddressChanged:LightningAddressChanged_,NewDeposits:NewDeposits_,UnilateralExitStateChanged:UnilateralExitStateChanged_});})();/**
|
|
3926
4070
|
* Events emitted by the SDK
|
|
3927
4071
|
*/// FfiConverter for enum SdkEvent
|
|
3928
|
-
const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.AutoOptimization({optimizationEvent:FfiConverterTypeAutoOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});case 9:return new SdkEvent.NewDeposits({newDeposits:FfiConverterArrayTypeDepositInfo.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.AutoOptimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeAutoOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}case SdkEvent_Tags.NewDeposits:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.newDeposits,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
|
|
3929
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.AutoOptimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeAutoOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}case SdkEvent_Tags.NewDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.newDeposits);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
|
|
4072
|
+
const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.AutoOptimization({optimizationEvent:FfiConverterTypeAutoOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});case 9:return new SdkEvent.NewDeposits({newDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 10:return new SdkEvent.UnilateralExitStateChanged();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.AutoOptimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeAutoOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}case SdkEvent_Tags.NewDeposits:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.newDeposits,into);return;}case SdkEvent_Tags.UnilateralExitStateChanged:{ordinalConverter.write(10,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
|
|
4073
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.AutoOptimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeAutoOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}case SdkEvent_Tags.NewDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.newDeposits);return size;}case SdkEvent_Tags.UnilateralExitStateChanged:{return ordinalConverter.allocationSize(10);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
|
|
3930
4074
|
export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
|
|
3931
4075
|
* Represents the seed for wallet generation, either as a mnemonic phrase with an optional
|
|
3932
4076
|
* passphrase or as raw entropy bytes.
|
|
@@ -4082,7 +4226,16 @@ export let SourceAsset_Tags=/*#__PURE__*/function(SourceAsset_Tags){SourceAsset_
|
|
|
4082
4226
|
* The source asset a cross-chain route accepts as input on the Spark side.
|
|
4083
4227
|
*/// FfiConverter for enum SourceAsset
|
|
4084
4228
|
const FfiConverterTypeSourceAsset=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SourceAsset.Bitcoin();case 2:return new SourceAsset.Token({tokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SourceAsset_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case SourceAsset_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SourceAsset_Tags hasn't matched an ordinal.
|
|
4085
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SourceAsset_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case SourceAsset_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
4229
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SourceAsset_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case SourceAsset_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
4230
|
+
* The chain a cross-chain route is funded from, orthogonal to the
|
|
4231
|
+
* [`SourceAsset`] that moves.
|
|
4232
|
+
*/export let SourceChain=/*#__PURE__*/function(SourceChain){/**
|
|
4233
|
+
* Paid over Spark, using a Bitcoin or token source asset.
|
|
4234
|
+
*/SourceChain[SourceChain["Spark"]=0]="Spark";/**
|
|
4235
|
+
* Paid over Lightning, using a Bitcoin source asset.
|
|
4236
|
+
*/SourceChain[SourceChain["Lightning"]=1]="Lightning";/**
|
|
4237
|
+
* Paid on-chain to Bitcoin (L1), using a Bitcoin source asset.
|
|
4238
|
+
*/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){/**
|
|
4086
4239
|
* The HTLC is waiting for the preimage to be shared by the receiver
|
|
4087
4240
|
*/SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
|
|
4088
4241
|
* The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
|
|
@@ -4288,15 +4441,18 @@ export let UnsignedTransferPackage_Tags=/*#__PURE__*/function(UnsignedTransferPa
|
|
|
4288
4441
|
*/[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.TokenBatch;constructor(inner){super('UnsignedTransferPackage','TokenBatch');this.inner=Object.freeze(inner);}static new(inner){return new TokenBatch_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.TokenBatch;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UnsignedTransferPackage';}return Object.freeze({instanceOf,Swap:Swap_,Transfer:Transfer_,Token:Token_,TokenBatch:TokenBatch_});})();// FfiConverter for enum UnsignedTransferPackage
|
|
4289
4442
|
const FfiConverterTypeUnsignedTransferPackage=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UnsignedTransferPackage.Swap({prepareTransfer:FfiConverterTypeExternalPrepareTransferRequest.read(from),targetAmounts:FfiConverterArrayUInt64.read(from),amountSat:FfiConverterUInt64.read(from),feeSat:FfiConverterUInt64.read(from)});case 2:return new UnsignedTransferPackage.Transfer({prepareTransfer:FfiConverterTypeExternalPrepareTransferRequest.read(from),amountSat:FfiConverterUInt64.read(from),feeSat:FfiConverterUInt64.read(from),target:FfiConverterTypeTransferTarget.read(from)});case 3:return new UnsignedTransferPackage.Token({prepareTokenTransaction:FfiConverterTypeExternalPrepareTokenTransactionRequest.read(from),tokenContext:FfiConverterArrayBuffer.read(from),tokenIdentifier:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),isSwap:FfiConverterBool.read(from)});case 4:return new UnsignedTransferPackage.TokenBatch({prepareTokenTransaction:FfiConverterTypeExternalPrepareTokenTransactionRequest.read(from),tokenContext:FfiConverterArrayBuffer.read(from),totals:FfiConverterArrayTypeBatchTotal.read(from),isSwap:FfiConverterBool.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UnsignedTransferPackage_Tags.Swap:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeExternalPrepareTransferRequest.write(inner.prepareTransfer,into);FfiConverterArrayUInt64.write(inner.targetAmounts,into);FfiConverterUInt64.write(inner.amountSat,into);FfiConverterUInt64.write(inner.feeSat,into);return;}case UnsignedTransferPackage_Tags.Transfer:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeExternalPrepareTransferRequest.write(inner.prepareTransfer,into);FfiConverterUInt64.write(inner.amountSat,into);FfiConverterUInt64.write(inner.feeSat,into);FfiConverterTypeTransferTarget.write(inner.target,into);return;}case UnsignedTransferPackage_Tags.Token:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeExternalPrepareTokenTransactionRequest.write(inner.prepareTokenTransaction,into);FfiConverterArrayBuffer.write(inner.tokenContext,into);FfiConverterString.write(inner.tokenIdentifier,into);FfiConverterTypeu128.write(inner.amount,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterBool.write(inner.isSwap,into);return;}case UnsignedTransferPackage_Tags.TokenBatch:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeExternalPrepareTokenTransactionRequest.write(inner.prepareTokenTransaction,into);FfiConverterArrayBuffer.write(inner.tokenContext,into);FfiConverterArrayTypeBatchTotal.write(inner.totals,into);FfiConverterBool.write(inner.isSwap,into);return;}default:// Throwing from here means that UnsignedTransferPackage_Tags hasn't matched an ordinal.
|
|
4290
4443
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UnsignedTransferPackage_Tags.Swap:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeExternalPrepareTransferRequest.allocationSize(inner.prepareTransfer);size+=FfiConverterArrayUInt64.allocationSize(inner.targetAmounts);size+=FfiConverterUInt64.allocationSize(inner.amountSat);size+=FfiConverterUInt64.allocationSize(inner.feeSat);return size;}case UnsignedTransferPackage_Tags.Transfer:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeExternalPrepareTransferRequest.allocationSize(inner.prepareTransfer);size+=FfiConverterUInt64.allocationSize(inner.amountSat);size+=FfiConverterUInt64.allocationSize(inner.feeSat);size+=FfiConverterTypeTransferTarget.allocationSize(inner.target);return size;}case UnsignedTransferPackage_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeExternalPrepareTokenTransactionRequest.allocationSize(inner.prepareTokenTransaction);size+=FfiConverterArrayBuffer.allocationSize(inner.tokenContext);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);size+=FfiConverterTypeu128.allocationSize(inner.amount);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterBool.allocationSize(inner.isSwap);return size;}case UnsignedTransferPackage_Tags.TokenBatch:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeExternalPrepareTokenTransactionRequest.allocationSize(inner.prepareTokenTransaction);size+=FfiConverterArrayBuffer.allocationSize(inner.tokenContext);size+=FfiConverterArrayTypeBatchTotal.allocationSize(inner.totals);size+=FfiConverterBool.allocationSize(inner.isSwap);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: UpdateDepositPayload
|
|
4291
|
-
export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_Tags){UpdateDepositPayload_Tags["ClaimError"]="ClaimError";UpdateDepositPayload_Tags["Refund"]="Refund";return UpdateDepositPayload_Tags;}({});export const UpdateDepositPayload=(()=>{class ClaimError_ extends UniffiEnum{/**
|
|
4444
|
+
export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_Tags){UpdateDepositPayload_Tags["ClaimError"]="ClaimError";UpdateDepositPayload_Tags["Refund"]="Refund";UpdateDepositPayload_Tags["InstantClaim"]="InstantClaim";return UpdateDepositPayload_Tags;}({});export const UpdateDepositPayload=(()=>{class ClaimError_ extends UniffiEnum{/**
|
|
4292
4445
|
* @private
|
|
4293
4446
|
* This field is private and should not be used, use `tag` instead.
|
|
4294
4447
|
*/[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.ClaimError;constructor(inner){super('UpdateDepositPayload','ClaimError');this.inner=Object.freeze(inner);}static new(inner){return new ClaimError_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.ClaimError;}}class Refund_ extends UniffiEnum{/**
|
|
4295
4448
|
* @private
|
|
4296
4449
|
* This field is private and should not be used, use `tag` instead.
|
|
4297
|
-
*/[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.Refund;constructor(inner){super('UpdateDepositPayload','Refund');this.inner=Object.freeze(inner);}static new(inner){return new Refund_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.Refund;}}
|
|
4298
|
-
|
|
4299
|
-
|
|
4450
|
+
*/[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.Refund;constructor(inner){super('UpdateDepositPayload','Refund');this.inner=Object.freeze(inner);}static new(inner){return new Refund_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.Refund;}}class InstantClaim_ extends UniffiEnum{/**
|
|
4451
|
+
* @private
|
|
4452
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4453
|
+
*/[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.InstantClaim;constructor(inner){super('UpdateDepositPayload','InstantClaim');this.inner=Object.freeze(inner);}static new(inner){return new InstantClaim_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.InstantClaim;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UpdateDepositPayload';}return Object.freeze({instanceOf,ClaimError:ClaimError_,Refund:Refund_,InstantClaim:InstantClaim_});})();// FfiConverter for enum UpdateDepositPayload
|
|
4454
|
+
const FfiConverterTypeUpdateDepositPayload=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UpdateDepositPayload.ClaimError({error:FfiConverterTypeDepositClaimError.read(from)});case 2:return new UpdateDepositPayload.Refund({refundTxid:FfiConverterString.read(from),refundTx:FfiConverterString.read(from)});case 3:return new UpdateDepositPayload.InstantClaim({status:FfiConverterTypeInstantClaimStatus.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeDepositClaimError.write(inner.error,into);return;}case UpdateDepositPayload_Tags.Refund:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.refundTxid,into);FfiConverterString.write(inner.refundTx,into);return;}case UpdateDepositPayload_Tags.InstantClaim:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeInstantClaimStatus.write(inner.status,into);return;}default:// Throwing from here means that UpdateDepositPayload_Tags hasn't matched an ordinal.
|
|
4455
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeDepositClaimError.allocationSize(inner.error);return size;}case UpdateDepositPayload_Tags.Refund:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterString.allocationSize(inner.refundTx);return size;}case UpdateDepositPayload_Tags.InstantClaim:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeInstantClaimStatus.allocationSize(inner.status);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: WebhookEventType
|
|
4300
4456
|
export let WebhookEventType_Tags=/*#__PURE__*/function(WebhookEventType_Tags){WebhookEventType_Tags["LightningReceiveFinished"]="LightningReceiveFinished";WebhookEventType_Tags["LightningSendFinished"]="LightningSendFinished";WebhookEventType_Tags["CoopExitFinished"]="CoopExitFinished";WebhookEventType_Tags["StaticDepositFinished"]="StaticDepositFinished";WebhookEventType_Tags["Unknown"]="Unknown";return WebhookEventType_Tags;}({});/**
|
|
4301
4457
|
* The type of event that triggers a webhook notification.
|
|
4302
4458
|
*/export const WebhookEventType=(()=>{/**
|
|
@@ -4403,7 +4559,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4403
4559
|
*
|
|
4404
4560
|
* - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
|
|
4405
4561
|
* - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
|
|
4406
|
-
*/async buyBitcoin(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_buy_bitcoin(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuyBitcoinRequest.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:*/FfiConverterTypeBuyBitcoinResponse.lift.bind(FfiConverterTypeBuyBitcoinResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
4562
|
+
*/async buyBitcoin(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_buy_bitcoin(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuyBitcoinRequest.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:*/FfiConverterTypeBuyBitcoinResponse.lift.bind(FfiConverterTypeBuyBitcoinResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4563
|
+
* Check whether a username is free for this wallet to register.
|
|
4564
|
+
*
|
|
4565
|
+
* The check is signed with the wallet's identity key, so every call costs
|
|
4566
|
+
* a signing operation and a server round trip: run it when the user
|
|
4567
|
+
* finishes typing, not on every keystroke.
|
|
4568
|
+
*/async checkLightningAddressAvailable(req,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_lightning_address_available(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckLightningAddressRequest.lower(req));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4407
4569
|
* Verifies a message signature against the provided public key. The message
|
|
4408
4570
|
* is SHA256 hashed before verification. The signature can be hex encoded
|
|
4409
4571
|
* in either DER or compact format.
|
|
@@ -4422,7 +4584,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4422
4584
|
* # Returns
|
|
4423
4585
|
*
|
|
4424
4586
|
* Success or an error
|
|
4425
|
-
*/async deleteContact(id,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_delete_contact(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
4587
|
+
*/async deleteContact(id,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_delete_contact(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4588
|
+
* Give up this wallet's lightning address.
|
|
4589
|
+
*
|
|
4590
|
+
* The server holds the address for this wallet afterwards: while the hold
|
|
4591
|
+
* stands only this wallet can register it, so payers who kept the old
|
|
4592
|
+
* address are not redirected to someone else. How long a hold stands is
|
|
4593
|
+
* the server's policy.
|
|
4594
|
+
*/async deleteLightningAddress(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_delete_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4426
4595
|
* Stops the SDK's background tasks
|
|
4427
4596
|
*
|
|
4428
4597
|
* This method stops the background tasks started by the `start()` method.
|
|
@@ -4434,11 +4603,20 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4434
4603
|
* # Returns
|
|
4435
4604
|
*
|
|
4436
4605
|
* Result containing either success or an `SdkError` if the background task couldn't be stopped
|
|
4437
|
-
*/async disconnect(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_disconnect(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
4606
|
+
*/async disconnect(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_disconnect(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4607
|
+
* Serializes everything needed to unilaterally exit this wallet's funds
|
|
4608
|
+
* while the Spark operators are unreachable, so it can be kept somewhere
|
|
4609
|
+
* the wallet's own storage cannot take with it.
|
|
4610
|
+
*
|
|
4611
|
+
* The state goes stale as the wallet is used: export again whenever a
|
|
4612
|
+
* `UnilateralExitStateChanged` event arrives.
|
|
4613
|
+
*/async exportUnilateralExitState(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_export_unilateral_exit_state(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeExportUnilateralExitStateResponse.lift.bind(FfiConverterTypeExportUnilateralExitStateResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async fetchConversionLimits(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_fetch_conversion_limits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeFetchConversionLimitsRequest.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:*/FfiConverterTypeFetchConversionLimitsResponse.lift.bind(FfiConverterTypeFetchConversionLimitsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4438
4614
|
* Returns the available cross-chain routes.
|
|
4439
4615
|
*
|
|
4440
4616
|
* Use [`CrossChainRouteFilter::Send`] to get routes for sending from Spark
|
|
4441
|
-
* (filtered by the parsed recipient address),
|
|
4617
|
+
* (filtered by the parsed recipient address),
|
|
4618
|
+
* [`CrossChainRouteFilter::PaymentLink`] for routes fundable by an external
|
|
4619
|
+
* fiat rail (`prepare_payment_link`), or
|
|
4442
4620
|
* [`CrossChainRouteFilter::Receive`] to get routes for receiving into Spark
|
|
4443
4621
|
* (optionally filtered by a source contract address).
|
|
4444
4622
|
*/async getCrossChainRoutes(filter,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_get_cross_chain_routes(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCrossChainRouteFilter.lower(filter));},/*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:*/FfiConverterArrayTypeCrossChainRoutePair.lift.bind(FfiConverterArrayTypeCrossChainRoutePair),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
@@ -4457,6 +4635,22 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4457
4635
|
*
|
|
4458
4636
|
* Some settings are fetched from the Spark network so network requests are performed.
|
|
4459
4637
|
*/async getUserSettings(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_get_user_settings(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeUserSettings.lift.bind(FfiConverterTypeUserSettings),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4638
|
+
* Merges a previously exported exit state back into the wallet, without
|
|
4639
|
+
* contacting the Spark operators. A leaf the exit state does not record
|
|
4640
|
+
* this wallet as the owner of is skipped.
|
|
4641
|
+
*
|
|
4642
|
+
* A leaf the wallet can already exit keeps the data it has: an exit state
|
|
4643
|
+
* carries no mark of when it was taken, so the imported copy is used only
|
|
4644
|
+
* where the wallet has nothing that works. Importing an out of date state
|
|
4645
|
+
* therefore never costs the wallet the ability to exit a leaf.
|
|
4646
|
+
*
|
|
4647
|
+
* The exit state must come from the same network the SDK is configured
|
|
4648
|
+
* for.
|
|
4649
|
+
*
|
|
4650
|
+
* An out of date exit state can restore funds that have since been spent,
|
|
4651
|
+
* so the balance may read high until the next sync reconciles it with the
|
|
4652
|
+
* Spark operators.
|
|
4653
|
+
*/async importUnilateralExitState(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_import_unilateral_exit_state(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeImportUnilateralExitStateRequest.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:*/FfiConverterTypeImportUnilateralExitStateResponse.lift.bind(FfiConverterTypeImportUnilateralExitStateResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4460
4654
|
* Lists contacts with optional pagination.
|
|
4461
4655
|
*
|
|
4462
4656
|
* # Arguments
|
|
@@ -4542,6 +4736,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4542
4736
|
* Manual runs do not emit events; events ([`SdkEvent::AutoOptimization`])
|
|
4543
4737
|
* are reserved for the background auto-optimizer.
|
|
4544
4738
|
*/async optimizeLeaves(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_optimize_leaves(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeOptimizeLeavesRequest.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:*/FfiConverterTypeOptimizeLeavesResponse.lift.bind(FfiConverterTypeOptimizeLeavesResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async parse(input,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_parse(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(input));},/*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:*/FfiConverterTypeInputType.lift.bind(FfiConverterTypeInputType),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async prepareLnurlPay(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_prepare_lnurl_pay(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareLnurlPayRequest.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:*/FfiConverterTypePrepareLnurlPayResponse.lift.bind(FfiConverterTypePrepareLnurlPayResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4739
|
+
* Prepare a payment link that sends USDC/USDT to an external-chain
|
|
4740
|
+
* recipient, funded by Cash App over Lightning.
|
|
4741
|
+
*
|
|
4742
|
+
* Creates a cross-chain order and returns a `cash.app` deep link the payer
|
|
4743
|
+
* opens. Once paid, the provider delivers the stablecoin to `address`. No
|
|
4744
|
+
* funds move through the Spark wallet. Only available on mainnet.
|
|
4745
|
+
*/async preparePaymentLink(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_prepare_payment_link(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePreparePaymentLinkRequest.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:*/FfiConverterTypePreparePaymentLinkResponse.lift.bind(FfiConverterTypePreparePaymentLinkResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4545
4746
|
* Prepares a send to several payees, all paid by one transaction.
|
|
4546
4747
|
*
|
|
4547
4748
|
* Each recipient is a Spark address or a Spark invoice, and one batch may
|
|
@@ -4608,6 +4809,9 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4608
4809
|
* Signs a message with the wallet's identity key. The message is SHA256
|
|
4609
4810
|
* hashed before signing. The returned signature will be hex encoded in
|
|
4610
4811
|
* DER format by default, or compact format if specified.
|
|
4812
|
+
*
|
|
4813
|
+
* Messages in the `breez-lnurl:` namespace are refused: it is reserved for
|
|
4814
|
+
* the SDK's own requests to the Lightning address server.
|
|
4611
4815
|
*/async signMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSignMessageRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSignMessageResponse.lift.bind(FfiConverterTypeSignMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4612
4816
|
* Synchronizes the wallet with the Spark network
|
|
4613
4817
|
*/async syncWallet(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSyncWalletRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSyncWalletResponse.lift.bind(FfiConverterTypeSyncWalletResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
@@ -5703,7 +5907,8 @@ const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConv
|
|
|
5703
5907
|
const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for DepositClaimError | undefined
|
|
5704
5908
|
const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
|
|
5705
5909
|
const FfiConverterOptionalTypeFee=new FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for FeePolicy | undefined
|
|
5706
|
-
const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for
|
|
5910
|
+
const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for InstantClaimStatus | undefined
|
|
5911
|
+
const FfiConverterOptionalTypeInstantClaimStatus=new FfiConverterOptional(FfiConverterTypeInstantClaimStatus);// FfiConverter for MaxFee | undefined
|
|
5707
5912
|
const FfiConverterOptionalTypeMaxFee=new FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
|
|
5708
5913
|
const FfiConverterOptionalTypePaymentDetails=new FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for SendPaymentOptions | undefined
|
|
5709
5914
|
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SparkMasterIdentityPublicKey | undefined
|
|
@@ -5722,7 +5927,8 @@ const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInput
|
|
|
5722
5927
|
const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
|
|
5723
5928
|
const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
|
|
5724
5929
|
const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SourceAsset>
|
|
5725
|
-
const FfiConverterArrayTypeSourceAsset=new FfiConverterArray(FfiConverterTypeSourceAsset);// FfiConverter for Array<
|
|
5930
|
+
const FfiConverterArrayTypeSourceAsset=new FfiConverterArray(FfiConverterTypeSourceAsset);// FfiConverter for Array<SourceChain>
|
|
5931
|
+
const FfiConverterArrayTypeSourceChain=new FfiConverterArray(FfiConverterTypeSourceChain);// FfiConverter for Array<SparkHtlcStatus>
|
|
5726
5932
|
const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
|
|
5727
5933
|
const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
|
|
5728
5934
|
const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
|
|
@@ -5741,5 +5947,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
|
|
|
5741
5947
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
5742
5948
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
5743
5949
|
const bindingsContractVersion=29;// Get the scaffolding contract version by calling the into the dylib
|
|
5744
|
-
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()!==62888){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()!==23177){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_get_transaction_hex()!==16866){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()!==42521){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()!==13500){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()!==50885){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()!==31624){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()!==44132){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_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()!==25164){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_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_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()!==57563){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()!==51278){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,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,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,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,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,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,FfiConverterTypePrepareSendBatchRequest,FfiConverterTypePrepareSendBatchResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrepareUnilateralExitRequest,FfiConverterTypePrepareUnilateralExitResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypePublishSignedLnurlPayPackageRequest,FfiConverterTypePublishSignedLnurlPayResponse,FfiConverterTypePublishSignedTransferPackageRequest,FfiConverterTypePublishSignedTransferPackageResponse,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRefundPendingConversionsResponse,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,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}});
|
|
5950
|
+
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()!==62888){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()!==23177){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_get_transaction_hex()!==16866){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()!==42521){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()!==13500){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()!==50885){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_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()!==51278){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,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,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeImportUnilateralExitStateRequest,FfiConverterTypeImportUnilateralExitStateResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeInstantClaimDeclineReason,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,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,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypePublishSignedLnurlPayPackageRequest,FfiConverterTypePublishSignedLnurlPayResponse,FfiConverterTypePublishSignedTransferPackageRequest,FfiConverterTypePublishSignedTransferPackageResponse,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRefundPendingConversionsResponse,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}});
|
|
5745
5951
|
//# sourceMappingURL=breez_sdk_spark.js.map
|