@breeztech/breez-sdk-spark-react-native 0.5.2 → 0.6.1

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.PrepareSendPaymentRequest=exports.PrepareLnurlPayResponse=exports.PrepareLnurlPayRequest=exports.PaymentType=exports.PaymentStatus=exports.PaymentRequestSource=exports.PaymentObserverImpl=exports.PaymentObserverError_Tags=exports.PaymentObserverError=exports.PaymentMethod=exports.PaymentMetadata=exports.PaymentDetails_Tags=exports.PaymentDetails=exports.Payment=exports.OutgoingChange=exports.OnchainConfirmationSpeed=exports.Network=exports.MintIssuerTokenRequest=exports.MessageSuccessActionData=exports.LogEntry=exports.LocalizedName=exports.LocaleOverrides=exports.LnurlWithdrawResponse=exports.LnurlWithdrawRequestDetails=exports.LnurlWithdrawRequest=exports.LnurlWithdrawInfo=exports.LnurlReceiveMetadata=exports.LnurlPayResponse=exports.LnurlPayRequestDetails=exports.LnurlPayRequest=exports.LnurlPayInfo=exports.LnurlAuthRequestDetails=exports.ListUnclaimedDepositsResponse=exports.ListUnclaimedDepositsRequest=exports.ListPaymentsResponse=exports.ListPaymentsRequest=exports.ListFiatRatesResponse=exports.ListFiatCurrenciesResponse=exports.LightningAddressInfo=exports.LightningAddressDetails=exports.KeySetType=exports.InputType_Tags=exports.InputType=exports.IncomingChange=exports.GetTokensMetadataResponse=exports.GetTokensMetadataRequest=exports.GetPaymentResponse=exports.GetPaymentRequest=exports.GetInfoResponse=exports.GetInfoRequest=exports.FreezeIssuerTokenResponse=exports.FreezeIssuerTokenRequest=exports.FiatServiceImpl=exports.FiatCurrency=exports.Fee_Tags=exports.Fee=exports.ExternalInputParser=exports.DepositInfo=exports.DepositClaimError_Tags=exports.DepositClaimError=exports.CurrencyInfo=exports.Credentials=exports.CreateIssuerTokenRequest=exports.ConnectRequest=exports.Config=exports.ClaimHtlcPaymentResponse=exports.ClaimHtlcPaymentRequest=exports.ClaimDepositResponse=exports.ClaimDepositRequest=exports.CheckMessageResponse=exports.CheckMessageRequest=exports.CheckLightningAddressRequest=exports.ChainServiceError_Tags=exports.ChainServiceError=exports.ChainApiType=exports.BurnIssuerTokenRequest=exports.BreezSdk=exports.Bolt12OfferDetails=exports.Bolt12OfferBlindedPath=exports.Bolt12Offer=exports.Bolt12InvoiceRequestDetails=exports.Bolt12InvoiceDetails=exports.Bolt12Invoice=exports.Bolt11RouteHintHop=exports.Bolt11RouteHint=exports.Bolt11InvoiceDetails=exports.Bolt11Invoice=exports.BitcoinNetwork=exports.BitcoinChainServiceImpl=exports.BitcoinAddressDetails=exports.Bip21Extra=exports.Bip21Details=exports.AssetFilter_Tags=exports.AssetFilter=exports.Amount_Tags=exports.Amount=exports.AesSuccessActionDataResult_Tags=exports.AesSuccessActionDataResult=exports.AesSuccessActionDataDecrypted=exports.AesSuccessActionData=void 0;exports.Utxo=exports.UserSettings=exports.UrlSuccessActionData=exports.UpdateUserSettingsRequest=exports.UpdateDepositPayload_Tags=exports.UpdateDepositPayload=exports.UnversionedRecordChange=exports.UnfreezeIssuerTokenResponse=exports.UnfreezeIssuerTokenRequest=exports.TxStatus=exports.TokenMetadata=exports.TokenIssuer=exports.TokenBalance=exports.SyncWalletResponse=exports.SyncWalletRequest=exports.SyncStorageImpl=exports.SyncStorageError_Tags=exports.SyncStorageError=exports.Symbol=exports.SuccessAction_Tags=exports.SuccessActionProcessed_Tags=exports.SuccessActionProcessed=exports.SuccessAction=exports.StorageImpl=exports.StorageError_Tags=exports.StorageError=exports.SparkInvoicePaymentDetails=exports.SparkInvoiceDetails=exports.SparkHtlcStatus=exports.SparkHtlcOptions=exports.SparkHtlcDetails=exports.SparkAddressDetails=exports.SilentPaymentAddressDetails=exports.SignMessageResponse=exports.SignMessageRequest=exports.SetLnurlMetadataItem=exports.ServiceConnectivityError_Tags=exports.ServiceConnectivityError=exports.SendPaymentResponse=exports.SendPaymentRequest=exports.SendPaymentOptions_Tags=exports.SendPaymentOptions=exports.SendPaymentMethod_Tags=exports.SendPaymentMethod=exports.SendOnchainSpeedFeeQuote=exports.SendOnchainFeeQuote=exports.Seed_Tags=exports.Seed=exports.SdkEvent_Tags=exports.SdkEvent=exports.SdkError_Tags=exports.SdkError=exports.SdkBuilder=exports.RestResponse=exports.RestClientImpl=exports.RegisterLightningAddressRequest=exports.RefundDepositResponse=exports.RefundDepositRequest=exports.RecordId=exports.RecordChange=exports.Record=exports.RecommendedFees=exports.ReceivePaymentResponse=exports.ReceivePaymentRequest=exports.ReceivePaymentMethod_Tags=exports.ReceivePaymentMethod=exports.Rate=exports.ProvisionalPaymentDetails_Tags=exports.ProvisionalPaymentDetails=exports.ProvisionalPayment=exports.PrepareSendPaymentResponse=void 0;exports.connect=connect;exports.default=void 0;exports.defaultConfig=defaultConfig;exports.initLogging=initLogging;var _breez_sdk_sparkFfi=_interopRequireDefault(require("./breez_sdk_spark-ffi.js"));var _uniffiBindgenReactNative=require("uniffi-bindgen-react-native");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e};}// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.PrepareLnurlPayRequest=exports.PaymentType=exports.PaymentStatus=exports.PaymentRequestSource=exports.PaymentObserverImpl=exports.PaymentObserverError_Tags=exports.PaymentObserverError=exports.PaymentMethod=exports.PaymentMetadata=exports.PaymentDetails_Tags=exports.PaymentDetails=exports.Payment=exports.OutgoingChange=exports.OnchainConfirmationSpeed=exports.Network=exports.MintIssuerTokenRequest=exports.MessageSuccessActionData=exports.MaxFee_Tags=exports.MaxFee=exports.LogEntry=exports.LocalizedName=exports.LocaleOverrides=exports.LnurlWithdrawResponse=exports.LnurlWithdrawRequestDetails=exports.LnurlWithdrawRequest=exports.LnurlWithdrawInfo=exports.LnurlReceiveMetadata=exports.LnurlPayResponse=exports.LnurlPayRequestDetails=exports.LnurlPayRequest=exports.LnurlPayInfo=exports.LnurlAuthRequestDetails=exports.ListUnclaimedDepositsResponse=exports.ListUnclaimedDepositsRequest=exports.ListPaymentsResponse=exports.ListPaymentsRequest=exports.ListFiatRatesResponse=exports.ListFiatCurrenciesResponse=exports.LightningAddressInfo=exports.LightningAddressDetails=exports.KeySetType=exports.InputType_Tags=exports.InputType=exports.IncomingChange=exports.GetTokensMetadataResponse=exports.GetTokensMetadataRequest=exports.GetPaymentResponse=exports.GetPaymentRequest=exports.GetInfoResponse=exports.GetInfoRequest=exports.FreezeIssuerTokenResponse=exports.FreezeIssuerTokenRequest=exports.FiatServiceImpl=exports.FiatCurrency=exports.Fee_Tags=exports.Fee=exports.ExternalInputParser=exports.DepositInfo=exports.DepositClaimError_Tags=exports.DepositClaimError=exports.CurrencyInfo=exports.Credentials=exports.CreateIssuerTokenRequest=exports.ConnectRequest=exports.Config=exports.ClaimHtlcPaymentResponse=exports.ClaimHtlcPaymentRequest=exports.ClaimDepositResponse=exports.ClaimDepositRequest=exports.CheckMessageResponse=exports.CheckMessageRequest=exports.CheckLightningAddressRequest=exports.ChainServiceError_Tags=exports.ChainServiceError=exports.ChainApiType=exports.BurnIssuerTokenRequest=exports.BreezSdk=exports.Bolt12OfferDetails=exports.Bolt12OfferBlindedPath=exports.Bolt12Offer=exports.Bolt12InvoiceRequestDetails=exports.Bolt12InvoiceDetails=exports.Bolt12Invoice=exports.Bolt11RouteHintHop=exports.Bolt11RouteHint=exports.Bolt11InvoiceDetails=exports.Bolt11Invoice=exports.BitcoinNetwork=exports.BitcoinChainServiceImpl=exports.BitcoinAddressDetails=exports.Bip21Extra=exports.Bip21Details=exports.AssetFilter_Tags=exports.AssetFilter=exports.Amount_Tags=exports.Amount=exports.AesSuccessActionDataResult_Tags=exports.AesSuccessActionDataResult=exports.AesSuccessActionDataDecrypted=exports.AesSuccessActionData=void 0;exports.Utxo=exports.UserSettings=exports.UrlSuccessActionData=exports.UpdateUserSettingsRequest=exports.UpdateDepositPayload_Tags=exports.UpdateDepositPayload=exports.UnversionedRecordChange=exports.UnfreezeIssuerTokenResponse=exports.UnfreezeIssuerTokenRequest=exports.TxStatus=exports.TokenMetadata=exports.TokenIssuer=exports.TokenBalance=exports.SyncWalletResponse=exports.SyncWalletRequest=exports.SyncStorageImpl=exports.SyncStorageError_Tags=exports.SyncStorageError=exports.Symbol=exports.SuccessAction_Tags=exports.SuccessActionProcessed_Tags=exports.SuccessActionProcessed=exports.SuccessAction=exports.StorageImpl=exports.StorageError_Tags=exports.StorageError=exports.SparkInvoicePaymentDetails=exports.SparkInvoiceDetails=exports.SparkHtlcStatus=exports.SparkHtlcOptions=exports.SparkHtlcDetails=exports.SparkAddressDetails=exports.SilentPaymentAddressDetails=exports.SignMessageResponse=exports.SignMessageRequest=exports.SetLnurlMetadataItem=exports.ServiceConnectivityError_Tags=exports.ServiceConnectivityError=exports.SendPaymentResponse=exports.SendPaymentRequest=exports.SendPaymentOptions_Tags=exports.SendPaymentOptions=exports.SendPaymentMethod_Tags=exports.SendPaymentMethod=exports.SendOnchainSpeedFeeQuote=exports.SendOnchainFeeQuote=exports.Seed_Tags=exports.Seed=exports.SdkEvent_Tags=exports.SdkEvent=exports.SdkError_Tags=exports.SdkError=exports.SdkBuilder=exports.RestResponse=exports.RestClientImpl=exports.RegisterLightningAddressRequest=exports.RefundDepositResponse=exports.RefundDepositRequest=exports.RecordId=exports.RecordChange=exports.Record=exports.RecommendedFees=exports.ReceivePaymentResponse=exports.ReceivePaymentRequest=exports.ReceivePaymentMethod_Tags=exports.ReceivePaymentMethod=exports.Rate=exports.ProvisionalPaymentDetails_Tags=exports.ProvisionalPaymentDetails=exports.ProvisionalPayment=exports.PrepareSendPaymentResponse=exports.PrepareSendPaymentRequest=exports.PrepareLnurlPayResponse=void 0;exports.connect=connect;exports.default=void 0;exports.defaultConfig=defaultConfig;exports.initLogging=initLogging;var _breez_sdk_sparkFfi=_interopRequireDefault(require("./breez_sdk_spark-ffi.js"));var _uniffiBindgenReactNative=require("uniffi-bindgen-react-native");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e};}// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
2
  // Trust me, you don't want to mess with it!
3
3
  // Get converters from the other files, if any.
4
4
  const uniffiCaller=new _uniffiBindgenReactNative.UniffiRustCaller();const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
@@ -233,7 +233,7 @@ const FfiConverterTypeLogger=new _uniffiBindgenReactNative.FfiConverterCallback(
233
233
  * in Rust, in the {@link breez_sdk_spark} crate.
234
234
  */new:create,/**
235
235
  * Defaults specified in the {@link breez_sdk_spark} crate.
236
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositRequest=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(value.vout,into);FfiConverterOptionalTypeFee.write(value.maxFee,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vout)+FfiConverterOptionalTypeFee.allocationSize(value.maxFee);}}return new FFIConverter();})();/**
236
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositRequest=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeMaxFee.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(value.vout,into);FfiConverterOptionalTypeMaxFee.write(value.maxFee,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vout)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxFee);}}return new FFIConverter();})();/**
237
237
  * Generated factory for {@link ClaimDepositResponse} record objects.
238
238
  */const ClaimDepositResponse=exports.ClaimDepositResponse=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
239
239
  * Create a frozen instance of {@link ClaimDepositResponse}, with defaults specified
@@ -273,7 +273,7 @@ const FfiConverterTypeLogger=new _uniffiBindgenReactNative.FfiConverterCallback(
273
273
  * in Rust, in the {@link breez_sdk_spark} crate.
274
274
  */new:create,/**
275
275
  * Defaults specified in the {@link breez_sdk_spark} crate.
276
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:_uniffiBindgenReactNative.FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:_uniffiBindgenReactNative.FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:_uniffiBindgenReactNative.FfiConverterBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);_uniffiBindgenReactNative.FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);_uniffiBindgenReactNative.FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);_uniffiBindgenReactNative.FfiConverterBool.write(value.privateEnabledDefault,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+_uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+_uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+_uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.privateEnabledDefault);}}return new FFIConverter();})();/**
276
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:_uniffiBindgenReactNative.FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:_uniffiBindgenReactNative.FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:_uniffiBindgenReactNative.FfiConverterBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);_uniffiBindgenReactNative.FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);_uniffiBindgenReactNative.FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);_uniffiBindgenReactNative.FfiConverterBool.write(value.privateEnabledDefault,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+_uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+_uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+_uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.privateEnabledDefault);}}return new FFIConverter();})();/**
277
277
  * Generated factory for {@link ConnectRequest} record objects.
278
278
  */const ConnectRequest=exports.ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
279
279
  * Create a frozen instance of {@link ConnectRequest}, with defaults specified
@@ -1289,7 +1289,19 @@ let InputType_Tags=exports.InputType_Tags=/*#__PURE__*/function(InputType_Tags){
1289
1289
  * This field is private and should not be used, use `tag` instead.
1290
1290
  */[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkInvoice;constructor(v0){super('InputType','SparkInvoice');this.inner=Object.freeze([v0]);}static new(v0){return new SparkInvoice_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkInvoice;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.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_});})();// FfiConverter for enum InputType
1291
1291
  const FfiConverterTypeInputType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.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));default:throw new _uniffiBindgenReactNative.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;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
1292
- throw new _uniffiBindgenReactNative.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;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let KeySetType=exports.KeySetType=/*#__PURE__*/function(KeySetType){KeySetType[KeySetType["Default"]=0]="Default";KeySetType[KeySetType["Taproot"]=1]="Taproot";KeySetType[KeySetType["NativeSegwit"]=2]="NativeSegwit";KeySetType[KeySetType["WrappedSegwit"]=3]="WrappedSegwit";KeySetType[KeySetType["Legacy"]=4]="Legacy";return KeySetType;}({});const FfiConverterTypeKeySetType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return KeySetType.Default;case 2:return KeySetType.Taproot;case 3:return KeySetType.NativeSegwit;case 4:return KeySetType.WrappedSegwit;case 5:return KeySetType.Legacy;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case KeySetType.Default:return ordinalConverter.write(1,into);case KeySetType.Taproot:return ordinalConverter.write(2,into);case KeySetType.NativeSegwit:return ordinalConverter.write(3,into);case KeySetType.WrappedSegwit:return ordinalConverter.write(4,into);case KeySetType.Legacy:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();let Network=exports.Network=/*#__PURE__*/function(Network){Network[Network["Mainnet"]=0]="Mainnet";Network[Network["Regtest"]=1]="Regtest";return Network;}({});const FfiConverterTypeNetwork=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return Network.Mainnet;case 2:return Network.Regtest;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case Network.Mainnet:return ordinalConverter.write(1,into);case Network.Regtest:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();let OnchainConfirmationSpeed=exports.OnchainConfirmationSpeed=/*#__PURE__*/function(OnchainConfirmationSpeed){OnchainConfirmationSpeed[OnchainConfirmationSpeed["Fast"]=0]="Fast";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Medium"]=1]="Medium";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Slow"]=2]="Slow";return OnchainConfirmationSpeed;}({});const FfiConverterTypeOnchainConfirmationSpeed=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OnchainConfirmationSpeed.Fast;case 2:return OnchainConfirmationSpeed.Medium;case 3:return OnchainConfirmationSpeed.Slow;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OnchainConfirmationSpeed.Fast:return ordinalConverter.write(1,into);case OnchainConfirmationSpeed.Medium:return ordinalConverter.write(2,into);case OnchainConfirmationSpeed.Slow:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: PaymentDetails
1292
+ throw new _uniffiBindgenReactNative.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;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let KeySetType=exports.KeySetType=/*#__PURE__*/function(KeySetType){KeySetType[KeySetType["Default"]=0]="Default";KeySetType[KeySetType["Taproot"]=1]="Taproot";KeySetType[KeySetType["NativeSegwit"]=2]="NativeSegwit";KeySetType[KeySetType["WrappedSegwit"]=3]="WrappedSegwit";KeySetType[KeySetType["Legacy"]=4]="Legacy";return KeySetType;}({});const FfiConverterTypeKeySetType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return KeySetType.Default;case 2:return KeySetType.Taproot;case 3:return KeySetType.NativeSegwit;case 4:return KeySetType.WrappedSegwit;case 5:return KeySetType.Legacy;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case KeySetType.Default:return ordinalConverter.write(1,into);case KeySetType.Taproot:return ordinalConverter.write(2,into);case KeySetType.NativeSegwit:return ordinalConverter.write(3,into);case KeySetType.WrappedSegwit:return ordinalConverter.write(4,into);case KeySetType.Legacy:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: MaxFee
1293
+ let MaxFee_Tags=exports.MaxFee_Tags=/*#__PURE__*/function(MaxFee_Tags){MaxFee_Tags["Fixed"]="Fixed";MaxFee_Tags["Rate"]="Rate";MaxFee_Tags["NetworkRecommended"]="NetworkRecommended";return MaxFee_Tags;}({});const MaxFee=exports.MaxFee=(()=>{class Fixed_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1294
+ * @private
1295
+ * This field is private and should not be used, use `tag` instead.
1296
+ */[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='MaxFee';tag=MaxFee_Tags.Fixed;constructor(inner){super('MaxFee','Fixed');this.inner=Object.freeze(inner);}static new(inner){return new Fixed_(inner);}static instanceOf(obj){return obj.tag===MaxFee_Tags.Fixed;}}class Rate_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1297
+ * @private
1298
+ * This field is private and should not be used, use `tag` instead.
1299
+ */[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='MaxFee';tag=MaxFee_Tags.Rate;constructor(inner){super('MaxFee','Rate');this.inner=Object.freeze(inner);}static new(inner){return new Rate_(inner);}static instanceOf(obj){return obj.tag===MaxFee_Tags.Rate;}}class NetworkRecommended_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1300
+ * @private
1301
+ * This field is private and should not be used, use `tag` instead.
1302
+ */[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='MaxFee';tag=MaxFee_Tags.NetworkRecommended;constructor(inner){super('MaxFee','NetworkRecommended');this.inner=Object.freeze(inner);}static new(inner){return new NetworkRecommended_(inner);}static instanceOf(obj){return obj.tag===MaxFee_Tags.NetworkRecommended;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='MaxFee';}return Object.freeze({instanceOf,Fixed:Fixed_,Rate:Rate_,NetworkRecommended:NetworkRecommended_});})();// FfiConverter for enum MaxFee
1303
+ const FfiConverterTypeMaxFee=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new MaxFee.Fixed({amount:_uniffiBindgenReactNative.FfiConverterUInt64.read(from)});case 2:return new MaxFee.Rate({satPerVbyte:_uniffiBindgenReactNative.FfiConverterUInt64.read(from)});case 3:return new MaxFee.NetworkRecommended({leewaySatPerVbyte:_uniffiBindgenReactNative.FfiConverterUInt64.read(from)});default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case MaxFee_Tags.Fixed:{ordinalConverter.write(1,into);const inner=value.inner;_uniffiBindgenReactNative.FfiConverterUInt64.write(inner.amount,into);return;}case MaxFee_Tags.Rate:{ordinalConverter.write(2,into);const inner=value.inner;_uniffiBindgenReactNative.FfiConverterUInt64.write(inner.satPerVbyte,into);return;}case MaxFee_Tags.NetworkRecommended:{ordinalConverter.write(3,into);const inner=value.inner;_uniffiBindgenReactNative.FfiConverterUInt64.write(inner.leewaySatPerVbyte,into);return;}default:// Throwing from here means that MaxFee_Tags hasn't matched an ordinal.
1304
+ throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case MaxFee_Tags.Fixed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=_uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(inner.amount);return size;}case MaxFee_Tags.Rate:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=_uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(inner.satPerVbyte);return size;}case MaxFee_Tags.NetworkRecommended:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=_uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(inner.leewaySatPerVbyte);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let Network=exports.Network=/*#__PURE__*/function(Network){Network[Network["Mainnet"]=0]="Mainnet";Network[Network["Regtest"]=1]="Regtest";return Network;}({});const FfiConverterTypeNetwork=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return Network.Mainnet;case 2:return Network.Regtest;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case Network.Mainnet:return ordinalConverter.write(1,into);case Network.Regtest:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();let OnchainConfirmationSpeed=exports.OnchainConfirmationSpeed=/*#__PURE__*/function(OnchainConfirmationSpeed){OnchainConfirmationSpeed[OnchainConfirmationSpeed["Fast"]=0]="Fast";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Medium"]=1]="Medium";OnchainConfirmationSpeed[OnchainConfirmationSpeed["Slow"]=2]="Slow";return OnchainConfirmationSpeed;}({});const FfiConverterTypeOnchainConfirmationSpeed=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return OnchainConfirmationSpeed.Fast;case 2:return OnchainConfirmationSpeed.Medium;case 3:return OnchainConfirmationSpeed.Slow;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case OnchainConfirmationSpeed.Fast:return ordinalConverter.write(1,into);case OnchainConfirmationSpeed.Medium:return ordinalConverter.write(2,into);case OnchainConfirmationSpeed.Slow:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: PaymentDetails
1293
1305
  let PaymentDetails_Tags=exports.PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){PaymentDetails_Tags["Spark"]="Spark";PaymentDetails_Tags["Token"]="Token";PaymentDetails_Tags["Lightning"]="Lightning";PaymentDetails_Tags["Withdraw"]="Withdraw";PaymentDetails_Tags["Deposit"]="Deposit";return PaymentDetails_Tags;}({});const PaymentDetails=exports.PaymentDetails=(()=>{class Spark_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1294
1306
  * @private
1295
1307
  * This field is private and should not be used, use `tag` instead.
@@ -1406,7 +1418,7 @@ let SdkError_Tags=exports.SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){Sdk
1406
1418
  */// FfiConverter for enum SdkError
1407
1419
  const FfiConverterTypeSdkError=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 3:return new SdkError.InvalidInput(FfiConverterString.read(from));case 4:return new SdkError.NetworkError(FfiConverterString.read(from));case 5:return new SdkError.StorageError(FfiConverterString.read(from));case 6:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 7:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:_uniffiBindgenReactNative.FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:_uniffiBindgenReactNative.FfiConverterUInt64.read(from)});case 8:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:_uniffiBindgenReactNative.FfiConverterUInt32.read(from)});case 9:return new SdkError.LnurlError(FfiConverterString.read(from));case 10:return new SdkError.Generic(FfiConverterString.read(from));default:throw new _uniffiBindgenReactNative.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.InvalidUuid:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);_uniffiBindgenReactNative.FfiConverterUInt64.write(inner.requiredFeeSats,into);_uniffiBindgenReactNative.FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
1408
1420
  throw new _uniffiBindgenReactNative.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.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner.tx);size+=_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=_uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=_uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner.tx);size+=_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
1409
- let SdkEvent_Tags=exports.SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["DataSynced"]="DataSynced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";return SdkEvent_Tags;}({});/**
1421
+ let SdkEvent_Tags=exports.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";return SdkEvent_Tags;}({});/**
1410
1422
  * Events emitted by the SDK
1411
1423
  */const SdkEvent=exports.SdkEvent=(()=>{/**
1412
1424
  * Emitted when the wallet has been synchronized with the network
@@ -1414,11 +1426,6 @@ let SdkEvent_Tags=exports.SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){Sdk
1414
1426
  * @private
1415
1427
  * This field is private and should not be used, use `tag` instead.
1416
1428
  */[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.Synced;constructor(){super('SdkEvent','Synced');}static new(){return new Synced_();}static instanceOf(obj){return obj.tag===SdkEvent_Tags.Synced;}}/**
1417
- * Emitted when data was pushed and/or pulled to/from real-time sync storage.
1418
- */class DataSynced_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1419
- * @private
1420
- * This field is private and should not be used, use `tag` instead.
1421
- */[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.DataSynced;constructor(inner){super('SdkEvent','DataSynced');this.inner=Object.freeze(inner);}static new(inner){return new DataSynced_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.DataSynced;}}/**
1422
1429
  * Emitted when the SDK was unable to claim deposits
1423
1430
  */class UnclaimedDeposits_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1424
1431
  * @private
@@ -1435,11 +1442,11 @@ let SdkEvent_Tags=exports.SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){Sdk
1435
1442
  */[_uniffiBindgenReactNative.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;}}class PaymentFailed_ extends _uniffiBindgenReactNative.UniffiEnum{/**
1436
1443
  * @private
1437
1444
  * This field is private and should not be used, use `tag` instead.
1438
- */[_uniffiBindgenReactNative.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;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,DataSynced:DataSynced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_});})();/**
1445
+ */[_uniffiBindgenReactNative.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;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_});})();/**
1439
1446
  * Events emitted by the SDK
1440
1447
  */// FfiConverter for enum SdkEvent
1441
- const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.DataSynced({didPullNewRecords:_uniffiBindgenReactNative.FfiConverterBool.read(from)});case 3:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 5:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.DataSynced:{ordinalConverter.write(2,into);const inner=value.inner;_uniffiBindgenReactNative.FfiConverterBool.write(inner.didPullNewRecords,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
1442
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.DataSynced:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=_uniffiBindgenReactNative.FfiConverterBool.allocationSize(inner.didPullNewRecords);return size;}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
1448
+ const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.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)});default:throw new _uniffiBindgenReactNative.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;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
1449
+ throw new _uniffiBindgenReactNative.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;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
1443
1450
  let Seed_Tags=exports.Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
1444
1451
  * Represents the seed for wallet generation, either as a mnemonic phrase with an optional
1445
1452
  * passphrase or as raw entropy bytes.
@@ -2142,7 +2149,8 @@ const FfiConverterOptionalTypeu128=new _uniffiBindgenReactNative.FfiConverterOpt
2142
2149
  const FfiConverterOptionalTypeAmount=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for AssetFilter | undefined
2143
2150
  const FfiConverterOptionalTypeAssetFilter=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for DepositClaimError | undefined
2144
2151
  const FfiConverterOptionalTypeDepositClaimError=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
2145
- const FfiConverterOptionalTypeFee=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for PaymentDetails | undefined
2152
+ const FfiConverterOptionalTypeFee=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for MaxFee | undefined
2153
+ const FfiConverterOptionalTypeMaxFee=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
2146
2154
  const FfiConverterOptionalTypePaymentDetails=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for SendPaymentOptions | undefined
2147
2155
  const FfiConverterOptionalTypeSendPaymentOptions=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SuccessAction | undefined
2148
2156
  const FfiConverterOptionalTypeSuccessAction=new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
@@ -2166,5 +2174,5 @@ const FfiConverterOptionalArrayTypeSparkHtlcStatus=new _uniffiBindgenReactNative
2166
2174
  * It also initializes the machinery to enable Rust to talk back to Javascript.
2167
2175
  */function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
2168
2176
  const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
2169
- const scaffoldingContractVersion=(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==37737){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==16156){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==30686){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set()!==42926){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage()!==20579){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==19728){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata()!==45500){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==60240){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==60586){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==54118){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==39803){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==7460){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change()!==19087){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync()!==20071){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes()!==23473){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision()!==36887){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records()!==41782){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record()!==23002){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records()!==61508){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records()!==53552){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change()!==16326){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming()!==9986){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();uniffiCallbackInterfaceSyncStorage.register();}var _default=exports.default=Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeExternalInputParser,FfiConverterTypeFee,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeStorage,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncStorage,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeu128}});
2177
+ const scaffoldingContractVersion=(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==37737){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==16156){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==30686){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set()!==42926){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage()!==20579){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==19728){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata()!==45500){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==60240){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==60586){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==54118){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==39803){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==7460){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change()!==19087){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync()!==20071){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes()!==23473){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision()!==36887){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records()!==41782){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record()!==23002){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records()!==61508){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records()!==53552){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change()!==16326){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming()!==9986){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();uniffiCallbackInterfaceSyncStorage.register();}var _default=exports.default=Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeExternalInputParser,FfiConverterTypeFee,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeStorage,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncStorage,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeu128}});
2170
2178
  //# sourceMappingURL=breez_sdk_spark.js.map