@breeztech/breez-sdk-spark-react-native 0.6.4-rc3 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cpp/generated/breez_sdk_spark.cpp +153 -0
- package/cpp/generated/breez_sdk_spark.hpp +24 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +85 -12
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +85 -12
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +405 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +405 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +5 -1
- package/plugin/build/withBinaryArtifacts.js +35 -6
- package/scripts/postinstall.sh +38 -0
- package/src/generated/breez_sdk_spark-ffi.ts +14 -0
- package/src/generated/breez_sdk_spark.ts +668 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentObserverImpl=exports.PaymentObserverError_Tags=exports.PaymentObserverError=exports.PaymentMethod=exports.PaymentMetadata=exports.PaymentDetails_Tags=exports.PaymentDetails=exports.Payment=exports.OutgoingChange=exports.OptimizationProgress=exports.OptimizationEvent_Tags=exports.OptimizationEvent=exports.OptimizationConfig=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=exports.PrepareLnurlPayRequest=exports.PaymentType=exports.PaymentStatus=exports.PaymentRequestSource=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
|
|
@@ -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: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();})();/**
|
|
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),optimizationConfig:FfiConverterTypeOptimizationConfig.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);FfiConverterTypeOptimizationConfig.write(value.optimizationConfig,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)+FfiConverterTypeOptimizationConfig.allocationSize(value.optimizationConfig);}}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
|
|
@@ -696,6 +696,26 @@ const FfiConverterTypeLogger=new _uniffiBindgenReactNative.FfiConverterCallback(
|
|
|
696
696
|
*/new:create,/**
|
|
697
697
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
698
698
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeMintIssuerTokenRequest=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{amount:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
|
|
699
|
+
* Generated factory for {@link OptimizationConfig} record objects.
|
|
700
|
+
*/const OptimizationConfig=exports.OptimizationConfig=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
701
|
+
* Create a frozen instance of {@link OptimizationConfig}, with defaults specified
|
|
702
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
703
|
+
*/create,/**
|
|
704
|
+
* Create a frozen instance of {@link OptimizationConfig}, with defaults specified
|
|
705
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
706
|
+
*/new:create,/**
|
|
707
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
708
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOptimizationConfig=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{autoEnabled:_uniffiBindgenReactNative.FfiConverterBool.read(from),multiplicity:_uniffiBindgenReactNative.FfiConverterUInt8.read(from)};}write(value,into){_uniffiBindgenReactNative.FfiConverterBool.write(value.autoEnabled,into);_uniffiBindgenReactNative.FfiConverterUInt8.write(value.multiplicity,into);}allocationSize(value){return _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.autoEnabled)+_uniffiBindgenReactNative.FfiConverterUInt8.allocationSize(value.multiplicity);}}return new FFIConverter();})();/**
|
|
709
|
+
* Generated factory for {@link OptimizationProgress} record objects.
|
|
710
|
+
*/const OptimizationProgress=exports.OptimizationProgress=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
711
|
+
* Create a frozen instance of {@link OptimizationProgress}, with defaults specified
|
|
712
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
713
|
+
*/create,/**
|
|
714
|
+
* Create a frozen instance of {@link OptimizationProgress}, with defaults specified
|
|
715
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
716
|
+
*/new:create,/**
|
|
717
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
718
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOptimizationProgress=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{isRunning:_uniffiBindgenReactNative.FfiConverterBool.read(from),currentRound:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),totalRounds:_uniffiBindgenReactNative.FfiConverterUInt32.read(from)};}write(value,into){_uniffiBindgenReactNative.FfiConverterBool.write(value.isRunning,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(value.currentRound,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(value.totalRounds,into);}allocationSize(value){return _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.isRunning)+_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.currentRound)+_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.totalRounds);}}return new FFIConverter();})();/**
|
|
699
719
|
* Generated factory for {@link OutgoingChange} record objects.
|
|
700
720
|
*/const OutgoingChange=exports.OutgoingChange=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
701
721
|
* Create a frozen instance of {@link OutgoingChange}, with defaults specified
|
|
@@ -1301,7 +1321,40 @@ let MaxFee_Tags=exports.MaxFee_Tags=/*#__PURE__*/function(MaxFee_Tags){MaxFee_Ta
|
|
|
1301
1321
|
* This field is private and should not be used, use `tag` instead.
|
|
1302
1322
|
*/[_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
1323
|
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:
|
|
1324
|
+
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: OptimizationEvent
|
|
1325
|
+
let OptimizationEvent_Tags=exports.OptimizationEvent_Tags=/*#__PURE__*/function(OptimizationEvent_Tags){OptimizationEvent_Tags["Started"]="Started";OptimizationEvent_Tags["RoundCompleted"]="RoundCompleted";OptimizationEvent_Tags["Completed"]="Completed";OptimizationEvent_Tags["Cancelled"]="Cancelled";OptimizationEvent_Tags["Failed"]="Failed";OptimizationEvent_Tags["Skipped"]="Skipped";return OptimizationEvent_Tags;}({});const OptimizationEvent=exports.OptimizationEvent=(()=>{/**
|
|
1326
|
+
* Optimization has started with the given number of rounds.
|
|
1327
|
+
*/class Started_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1328
|
+
* @private
|
|
1329
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1330
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Started;constructor(inner){super('OptimizationEvent','Started');this.inner=Object.freeze(inner);}static new(inner){return new Started_(inner);}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Started;}}/**
|
|
1331
|
+
* A round has completed.
|
|
1332
|
+
*/class RoundCompleted_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1333
|
+
* @private
|
|
1334
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1335
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.RoundCompleted;constructor(inner){super('OptimizationEvent','RoundCompleted');this.inner=Object.freeze(inner);}static new(inner){return new RoundCompleted_(inner);}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.RoundCompleted;}}/**
|
|
1336
|
+
* Optimization completed successfully.
|
|
1337
|
+
*/class Completed_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1338
|
+
* @private
|
|
1339
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1340
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Completed;constructor(){super('OptimizationEvent','Completed');}static new(){return new Completed_();}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Completed;}}/**
|
|
1341
|
+
* Optimization was cancelled.
|
|
1342
|
+
*/class Cancelled_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1343
|
+
* @private
|
|
1344
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1345
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Cancelled;constructor(){super('OptimizationEvent','Cancelled');}static new(){return new Cancelled_();}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Cancelled;}}/**
|
|
1346
|
+
* Optimization failed with an error.
|
|
1347
|
+
*/class Failed_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1348
|
+
* @private
|
|
1349
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1350
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Failed;constructor(inner){super('OptimizationEvent','Failed');this.inner=Object.freeze(inner);}static new(inner){return new Failed_(inner);}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Failed;}}/**
|
|
1351
|
+
* Optimization was skipped because leaves are already optimal.
|
|
1352
|
+
*/class Skipped_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1353
|
+
* @private
|
|
1354
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1355
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Skipped;constructor(){super('OptimizationEvent','Skipped');}static new(){return new Skipped_();}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Skipped;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='OptimizationEvent';}return Object.freeze({instanceOf,Started:Started_,RoundCompleted:RoundCompleted_,Completed:Completed_,Cancelled:Cancelled_,Failed:Failed_,Skipped:Skipped_});})();// FfiConverter for enum OptimizationEvent
|
|
1356
|
+
const FfiConverterTypeOptimizationEvent=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new OptimizationEvent.Started({totalRounds:_uniffiBindgenReactNative.FfiConverterUInt32.read(from)});case 2:return new OptimizationEvent.RoundCompleted({currentRound:_uniffiBindgenReactNative.FfiConverterUInt32.read(from),totalRounds:_uniffiBindgenReactNative.FfiConverterUInt32.read(from)});case 3:return new OptimizationEvent.Completed();case 4:return new OptimizationEvent.Cancelled();case 5:return new OptimizationEvent.Failed({error:FfiConverterString.read(from)});case 6:return new OptimizationEvent.Skipped();default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case OptimizationEvent_Tags.Started:{ordinalConverter.write(1,into);const inner=value.inner;_uniffiBindgenReactNative.FfiConverterUInt32.write(inner.totalRounds,into);return;}case OptimizationEvent_Tags.RoundCompleted:{ordinalConverter.write(2,into);const inner=value.inner;_uniffiBindgenReactNative.FfiConverterUInt32.write(inner.currentRound,into);_uniffiBindgenReactNative.FfiConverterUInt32.write(inner.totalRounds,into);return;}case OptimizationEvent_Tags.Completed:{ordinalConverter.write(3,into);return;}case OptimizationEvent_Tags.Cancelled:{ordinalConverter.write(4,into);return;}case OptimizationEvent_Tags.Failed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.error,into);return;}case OptimizationEvent_Tags.Skipped:{ordinalConverter.write(6,into);return;}default:// Throwing from here means that OptimizationEvent_Tags hasn't matched an ordinal.
|
|
1357
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case OptimizationEvent_Tags.Started:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case OptimizationEvent_Tags.RoundCompleted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(inner.currentRound);size+=_uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case OptimizationEvent_Tags.Completed:{return ordinalConverter.allocationSize(3);}case OptimizationEvent_Tags.Cancelled:{return ordinalConverter.allocationSize(4);}case OptimizationEvent_Tags.Failed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.error);return size;}case OptimizationEvent_Tags.Skipped:{return ordinalConverter.allocationSize(6);}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetails
|
|
1305
1358
|
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{/**
|
|
1306
1359
|
* @private
|
|
1307
1360
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -1372,8 +1425,8 @@ let ReceivePaymentMethod_Tags=exports.ReceivePaymentMethod_Tags=/*#__PURE__*/fun
|
|
|
1372
1425
|
* @private
|
|
1373
1426
|
* This field is private and should not be used, use `tag` instead.
|
|
1374
1427
|
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.Bolt11Invoice;constructor(inner){super('ReceivePaymentMethod','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.Bolt11Invoice;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='ReceivePaymentMethod';}return Object.freeze({instanceOf,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_});})();// FfiConverter for enum ReceivePaymentMethod
|
|
1375
|
-
const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress();case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from)});default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
|
|
1376
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{return ordinalConverter.allocationSize(3);}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
|
|
1428
|
+
const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress();case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from)});default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
|
|
1429
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{return ordinalConverter.allocationSize(3);}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
|
|
1377
1430
|
// Enum: SdkError
|
|
1378
1431
|
let SdkError_Tags=exports.SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["SparkError"]="SparkError";SdkError_Tags["InvalidUuid"]="InvalidUuid";SdkError_Tags["InvalidInput"]="InvalidInput";SdkError_Tags["NetworkError"]="NetworkError";SdkError_Tags["StorageError"]="StorageError";SdkError_Tags["ChainServiceError"]="ChainServiceError";SdkError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";SdkError_Tags["MissingUtxo"]="MissingUtxo";SdkError_Tags["LnurlError"]="LnurlError";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
|
|
1379
1432
|
* Error type for the `BreezSdk`
|
|
@@ -1418,7 +1471,7 @@ let SdkError_Tags=exports.SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){Sdk
|
|
|
1418
1471
|
*/// FfiConverter for enum SdkError
|
|
1419
1472
|
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.
|
|
1420
1473
|
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
|
|
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;}({});/**
|
|
1474
|
+
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";SdkEvent_Tags["Optimization"]="Optimization";return SdkEvent_Tags;}({});/**
|
|
1422
1475
|
* Events emitted by the SDK
|
|
1423
1476
|
*/const SdkEvent=exports.SdkEvent=(()=>{/**
|
|
1424
1477
|
* Emitted when the wallet has been synchronized with the network
|
|
@@ -1442,11 +1495,14 @@ let SdkEvent_Tags=exports.SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){Sdk
|
|
|
1442
1495
|
*/[_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{/**
|
|
1443
1496
|
* @private
|
|
1444
1497
|
* This field is private and should not be used, use `tag` instead.
|
|
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;}}
|
|
1498
|
+
*/[_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;}}class Optimization_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1499
|
+
* @private
|
|
1500
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1501
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.Optimization;constructor(inner){super('SdkEvent','Optimization');this.inner=Object.freeze(inner);}static new(inner){return new Optimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.Optimization;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,Optimization:Optimization_});})();/**
|
|
1446
1502
|
* Events emitted by the SDK
|
|
1447
1503
|
*/// FfiConverter for enum SdkEvent
|
|
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
|
|
1504
|
+
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)});case 7:return new SdkEvent.Optimization({optimizationEvent:FfiConverterTypeOptimizationEvent.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;}case SdkEvent_Tags.Optimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeOptimizationEvent.write(inner.optimizationEvent,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
|
|
1505
|
+
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;}case SdkEvent_Tags.Optimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
|
|
1450
1506
|
let Seed_Tags=exports.Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
|
|
1451
1507
|
* Represents the seed for wallet generation, either as a mnemonic phrase with an optional
|
|
1452
1508
|
* passphrase or as raw entropy bytes.
|
|
@@ -1668,7 +1724,16 @@ constructor(pointer){super();this[_uniffiBindgenReactNative.pointerLiteralSymbol
|
|
|
1668
1724
|
* # Returns
|
|
1669
1725
|
*
|
|
1670
1726
|
* A unique identifier for the listener, which can be used to remove it later
|
|
1671
|
-
*/async addEventListener(listener,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeEventListener.lower(listener));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
1727
|
+
*/async addEventListener(listener,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeEventListener.lower(listener));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1728
|
+
* Cancels the ongoing leaf optimization.
|
|
1729
|
+
*
|
|
1730
|
+
* This method cancels the ongoing optimization and waits for it to fully stop.
|
|
1731
|
+
* The current round will complete before stopping. This method blocks
|
|
1732
|
+
* until the optimization has fully stopped and leaves reserved for optimization
|
|
1733
|
+
* are available again.
|
|
1734
|
+
*
|
|
1735
|
+
* If no optimization is running, this method returns immediately.
|
|
1736
|
+
*/async cancelLeafOptimization(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_cancel_leaf_optimization(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async checkLightningAddressAvailable(req,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckLightningAddressRequest.lower(req));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/_uniffiBindgenReactNative.FfiConverterBool.lift.bind(_uniffiBindgenReactNative.FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1672
1737
|
* Verifies a message signature against the provided public key. The message
|
|
1673
1738
|
* is SHA256 hashed before verification. The signature can be hex encoded
|
|
1674
1739
|
* in either DER or compact format.
|
|
@@ -1683,7 +1748,9 @@ constructor(pointer){super();this[_uniffiBindgenReactNative.pointerLiteralSymbol
|
|
|
1683
1748
|
* Result containing either success or an `SdkError` if the background task couldn't be stopped
|
|
1684
1749
|
*/async disconnect(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1685
1750
|
* Returns the balance of the wallet in satoshis
|
|
1686
|
-
*/async getInfo(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetInfoRequest.lower(request));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetInfoResponse.lift.bind(FfiConverterTypeGetInfoResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
1751
|
+
*/async getInfo(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetInfoRequest.lower(request));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetInfoResponse.lift.bind(FfiConverterTypeGetInfoResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1752
|
+
* Returns the current optimization progress snapshot.
|
|
1753
|
+
*/getLeafOptimizationProgress(){return FfiConverterTypeOptimizationProgress.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_leaf_optimization_progress(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}async getLightningAddress(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeLightningAddressInfo.lift.bind(FfiConverterOptionalTypeLightningAddressInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeGetPaymentRequest.lower(request));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeGetPaymentResponse.lift.bind(FfiConverterTypeGetPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1687
1754
|
* Returns an instance of the [`TokenIssuer`] for managing token issuance.
|
|
1688
1755
|
*/getTokenIssuer(){return FfiConverterTypeTokenIssuer.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
1689
1756
|
* Returns the metadata for the given token identifiers.
|
|
@@ -1759,6 +1826,12 @@ constructor(pointer){super();this[_uniffiBindgenReactNative.pointerLiteralSymbol
|
|
|
1759
1826
|
* hashed before signing. The returned signature will be hex encoded in
|
|
1760
1827
|
* DER format by default, or compact format if specified.
|
|
1761
1828
|
*/async signMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSignMessageRequest.lower(request));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSignMessageResponse.lift.bind(FfiConverterTypeSignMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1829
|
+
* Starts leaf optimization in the background.
|
|
1830
|
+
*
|
|
1831
|
+
* This method spawns the optimization work in a background task and returns
|
|
1832
|
+
* immediately. Progress is reported via events.
|
|
1833
|
+
* If optimization is already running, no new task will be started.
|
|
1834
|
+
*/startLeafOptimization(){uniffiCaller.rustCall(/*caller:*/callStatus=>{(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
|
|
1762
1835
|
* Synchronizes the wallet with the Spark network
|
|
1763
1836
|
*/async syncWallet(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await(0,_uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return(0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSyncWalletRequest.lower(request));},/*pollFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/(0,_breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSyncWalletResponse.lift.bind(FfiConverterTypeSyncWalletResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1764
1837
|
* Updates the user settings for the wallet.
|
|
@@ -2174,5 +2247,5 @@ const FfiConverterOptionalArrayTypeSparkHtlcStatus=new _uniffiBindgenReactNative
|
|
|
2174
2247
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2175
2248
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
2176
2249
|
const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
|
|
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}});
|
|
2250
|
+
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_cancel_leaf_optimization()!==56996){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}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_leaf_optimization_progress()!==38008){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}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_start_leaf_optimization()!==22827){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}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,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,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}});
|
|
2178
2251
|
//# sourceMappingURL=breez_sdk_spark.js.map
|