@breeztech/breez-sdk-spark-react-native 0.7.3 → 0.7.4
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 +371 -114
- package/cpp/generated/breez_sdk_spark.hpp +13 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +123 -10
- 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 +122 -9
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +27 -21
- 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 +325 -8
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +27 -21
- 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 +325 -8
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +38 -19
- package/src/generated/breez_sdk_spark.ts +614 -26
|
@@ -127,6 +127,9 @@ protected:
|
|
|
127
127
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(
|
|
128
128
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
129
129
|
size_t count);
|
|
130
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
|
|
131
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
132
|
+
size_t count);
|
|
130
133
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
|
|
131
134
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
132
135
|
size_t count);
|
|
@@ -206,6 +209,9 @@ protected:
|
|
|
206
209
|
cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_sign_hash_schnorr(
|
|
207
210
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
208
211
|
size_t count);
|
|
212
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256(
|
|
213
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
214
|
+
size_t count);
|
|
209
215
|
jsi::Value
|
|
210
216
|
cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_signing_commitments(
|
|
211
217
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -735,6 +741,9 @@ protected:
|
|
|
735
741
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits(
|
|
736
742
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
737
743
|
size_t count);
|
|
744
|
+
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth(
|
|
745
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
746
|
+
size_t count);
|
|
738
747
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay(
|
|
739
748
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
740
749
|
size_t count);
|
|
@@ -817,6 +826,10 @@ protected:
|
|
|
817
826
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
818
827
|
size_t count);
|
|
819
828
|
jsi::Value
|
|
829
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256(
|
|
830
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
831
|
+
size_t count);
|
|
832
|
+
jsi::Value
|
|
820
833
|
cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments(
|
|
821
834
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
822
835
|
size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAy3BA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC3BL,MAAM,EAErB;AA+hBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.ListPaymentsResponse=exports.ListPaymentsRequest=exports.ListFiatRatesResponse=exports.ListFiatCurrenciesResponse=exports.LightningAddressInfo=exports.LightningAddressDetails=exports.KeySetType=exports.KeySetConfig=exports.InputType_Tags=exports.InputType=exports.IncomingChange=exports.IdentifierSignaturePair=exports.IdentifierPublicKeyPair=exports.IdentifierCommitmentPair=exports.HashedMessageBytes=exports.GetTokensMetadataResponse=exports.GetTokensMetadataRequest=exports.GetPaymentResponse=exports.GetPaymentRequest=exports.GetInfoResponse=exports.GetInfoRequest=exports.FreezeIssuerTokenResponse=exports.FreezeIssuerTokenRequest=exports.FiatServiceImpl=exports.FiatCurrency=exports.FetchConversionLimitsResponse=exports.FetchConversionLimitsRequest=exports.Fee_Tags=exports.Fee=exports.ExternalVerifiableSecretShare=exports.ExternalTreeNodeId=exports.ExternalSigningCommitments=exports.ExternalSignerImpl=exports.ExternalSignFrostRequest=exports.ExternalSecretToSplit_Tags=exports.ExternalSecretToSplit=exports.ExternalSecretShare=exports.ExternalScalar=exports.ExternalPrivateKeySource_Tags=exports.ExternalPrivateKeySource=exports.ExternalInputParser=exports.ExternalIdentifier=exports.ExternalFrostSignatureShare=exports.ExternalFrostSignature=exports.ExternalFrostCommitments=exports.ExternalEncryptedPrivateKey=exports.ExternalAggregateFrostRequest=exports.EcdsaSignatureBytes=exports.DepositInfo=exports.DepositClaimError_Tags=exports.DepositClaimError=exports.CurrencyInfo=exports.Credentials=exports.CreateIssuerTokenRequest=exports.ConversionType_Tags=exports.ConversionType=exports.ConversionStatus=exports.ConversionPurpose_Tags=exports.ConversionPurpose=exports.ConversionOptions=exports.ConversionInfo=exports.ConversionEstimate=exports.ConnectWithSignerRequest=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.StorageImpl=exports.StorageError_Tags=exports.StorageError=exports.SparkInvoicePaymentDetails=exports.SparkInvoiceDetails=exports.SparkHtlcStatus=exports.SparkHtlcOptions=exports.SparkHtlcDetails=exports.SparkAddressDetails=exports.SilentPaymentAddressDetails=exports.SignerError_Tags=exports.SignerError=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.SchnorrSignatureBytes=exports.RestResponse=exports.RestClientImpl=exports.RegisterLightningAddressRequest=exports.RefundDepositResponse=exports.RefundDepositRequest=exports.RecoverableEcdsaSignatureBytes=exports.RecordId=exports.RecordChange=exports.Record=exports.RecommendedFees=exports.ReceivePaymentResponse=exports.ReceivePaymentRequest=exports.ReceivePaymentMethod_Tags=exports.ReceivePaymentMethod=exports.Rate=exports.PublicKeyBytes=exports.ProvisionalPaymentDetails_Tags=exports.ProvisionalPaymentDetails=exports.ProvisionalPayment=exports.PrivateKeyBytes=exports.PrepareSendPaymentResponse=exports.PrepareSendPaymentRequest=exports.PrepareLnurlPayResponse=exports.PrepareLnurlPayRequest=exports.PaymentType=exports.PaymentStatus=exports.PaymentRequestSource=exports.PaymentObserverImpl=exports.PaymentObserverError_Tags=exports.PaymentObserverError=exports.PaymentMethod=exports.PaymentMetadata=exports.PaymentDetails_Tags=exports.PaymentDetailsFilter_Tags=exports.PaymentDetailsFilter=exports.PaymentDetails=exports.Payment=exports.OutgoingChange=exports.OptimizationProgress=exports.OptimizationEvent_Tags=exports.OptimizationEvent=exports.OptimizationConfig=exports.OnchainConfirmationSpeed=exports.Network=exports.MintIssuerTokenRequest=exports.MessageSuccessActionData=exports.MessageBytes=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.LnurlErrorDetails=exports.LnurlCallbackStatus_Tags=exports.LnurlCallbackStatus=exports.LnurlAuthRequestDetails=exports.ListUnclaimedDepositsResponse=exports.ListUnclaimedDepositsRequest=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=void 0;exports.connect=connect;exports.connectWithSigner=connectWithSigner;exports.default=void 0;exports.defaultConfig=defaultConfig;exports.defaultExternalSigner=defaultExternalSigner;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
|
|
@@ -689,6 +689,16 @@ const FfiConverterTypeLogger=new _uniffiBindgenReactNative.FfiConverterCallback(
|
|
|
689
689
|
*/new:create,/**
|
|
690
690
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
691
691
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeGetTokensMetadataResponse=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{tokensMetadata:FfiConverterArrayTypeTokenMetadata.read(from)};}write(value,into){FfiConverterArrayTypeTokenMetadata.write(value.tokensMetadata,into);}allocationSize(value){return FfiConverterArrayTypeTokenMetadata.allocationSize(value.tokensMetadata);}}return new FFIConverter();})();/**
|
|
692
|
+
* Generated factory for {@link HashedMessageBytes} record objects.
|
|
693
|
+
*/const HashedMessageBytes=exports.HashedMessageBytes=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
694
|
+
* Create a frozen instance of {@link HashedMessageBytes}, with defaults specified
|
|
695
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
696
|
+
*/create,/**
|
|
697
|
+
* Create a frozen instance of {@link HashedMessageBytes}, with defaults specified
|
|
698
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
699
|
+
*/new:create,/**
|
|
700
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
701
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeHashedMessageBytes=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{bytes:_uniffiBindgenReactNative.FfiConverterArrayBuffer.read(from)};}write(value,into){_uniffiBindgenReactNative.FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return _uniffiBindgenReactNative.FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
|
|
692
702
|
* FFI-safe wrapper for (Identifier, `SigningCommitments`) pair
|
|
693
703
|
*//**
|
|
694
704
|
* Generated factory for {@link IdentifierCommitmentPair} record objects.
|
|
@@ -853,6 +863,18 @@ const FfiConverterTypeLogger=new _uniffiBindgenReactNative.FfiConverterCallback(
|
|
|
853
863
|
*/new:create,/**
|
|
854
864
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
855
865
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLnurlAuthRequestDetails=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{k1:FfiConverterString.read(from),action:FfiConverterOptionalString.read(from),domain:FfiConverterString.read(from),url:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.k1,into);FfiConverterOptionalString.write(value.action,into);FfiConverterString.write(value.domain,into);FfiConverterString.write(value.url,into);}allocationSize(value){return FfiConverterString.allocationSize(value.k1)+FfiConverterOptionalString.allocationSize(value.action)+FfiConverterString.allocationSize(value.domain)+FfiConverterString.allocationSize(value.url);}}return new FFIConverter();})();/**
|
|
866
|
+
* LNURL error details
|
|
867
|
+
*//**
|
|
868
|
+
* Generated factory for {@link LnurlErrorDetails} record objects.
|
|
869
|
+
*/const LnurlErrorDetails=exports.LnurlErrorDetails=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
870
|
+
* Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
|
|
871
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
872
|
+
*/create,/**
|
|
873
|
+
* Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
|
|
874
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
875
|
+
*/new:create,/**
|
|
876
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
877
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLnurlErrorDetails=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{reason:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.reason,into);}allocationSize(value){return FfiConverterString.allocationSize(value.reason);}}return new FFIConverter();})();/**
|
|
856
878
|
* Represents the payment LNURL info
|
|
857
879
|
*//**
|
|
858
880
|
* Generated factory for {@link LnurlPayInfo} record objects.
|
|
@@ -981,6 +1003,18 @@ const FfiConverterTypeLogger=new _uniffiBindgenReactNative.FfiConverterCallback(
|
|
|
981
1003
|
*/new:create,/**
|
|
982
1004
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
983
1005
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLogEntry=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{line:FfiConverterString.read(from),level:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.line,into);FfiConverterString.write(value.level,into);}allocationSize(value){return FfiConverterString.allocationSize(value.line)+FfiConverterString.allocationSize(value.level);}}return new FFIConverter();})();/**
|
|
1006
|
+
* FFI-safe representation of a 32-byte message digest for ECDSA signing
|
|
1007
|
+
*//**
|
|
1008
|
+
* Generated factory for {@link MessageBytes} record objects.
|
|
1009
|
+
*/const MessageBytes=exports.MessageBytes=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
1010
|
+
* Create a frozen instance of {@link MessageBytes}, with defaults specified
|
|
1011
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1012
|
+
*/create,/**
|
|
1013
|
+
* Create a frozen instance of {@link MessageBytes}, with defaults specified
|
|
1014
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1015
|
+
*/new:create,/**
|
|
1016
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1017
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeMessageBytes=(()=>{class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){return{bytes:_uniffiBindgenReactNative.FfiConverterArrayBuffer.read(from)};}write(value,into){_uniffiBindgenReactNative.FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return _uniffiBindgenReactNative.FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
|
|
984
1018
|
* Generated factory for {@link MessageSuccessActionData} record objects.
|
|
985
1019
|
*/const MessageSuccessActionData=exports.MessageSuccessActionData=(()=>{const defaults=()=>({});const create=(()=>{return(0,_uniffiBindgenReactNative.uniffiCreateRecord)(defaults);})();return Object.freeze({/**
|
|
986
1020
|
* Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
|
|
@@ -1737,7 +1771,24 @@ let InputType_Tags=exports.InputType_Tags=/*#__PURE__*/function(InputType_Tags){
|
|
|
1737
1771
|
* This field is private and should not be used, use `tag` instead.
|
|
1738
1772
|
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='InputType';tag=InputType_Tags.SparkInvoice;constructor(v0){super('InputType','SparkInvoice');this.inner=Object.freeze([v0]);}static new(v0){return new SparkInvoice_(v0);}static instanceOf(obj){return obj.tag===InputType_Tags.SparkInvoice;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='InputType';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,Bolt12Invoice:Bolt12Invoice_,Bolt12Offer:Bolt12Offer_,LightningAddress:LightningAddress_,LnurlPay:LnurlPay_,SilentPaymentAddress:SilentPaymentAddress_,LnurlAuth:LnurlAuth_,Url:Url_,Bip21:Bip21_,Bolt12InvoiceRequest:Bolt12InvoiceRequest_,LnurlWithdraw:LnurlWithdraw_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_});})();// FfiConverter for enum InputType
|
|
1739
1773
|
const FfiConverterTypeInputType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new InputType.BitcoinAddress(FfiConverterTypeBitcoinAddressDetails.read(from));case 2:return new InputType.Bolt11Invoice(FfiConverterTypeBolt11InvoiceDetails.read(from));case 3:return new InputType.Bolt12Invoice(FfiConverterTypeBolt12InvoiceDetails.read(from));case 4:return new InputType.Bolt12Offer(FfiConverterTypeBolt12OfferDetails.read(from));case 5:return new InputType.LightningAddress(FfiConverterTypeLightningAddressDetails.read(from));case 6:return new InputType.LnurlPay(FfiConverterTypeLnurlPayRequestDetails.read(from));case 7:return new InputType.SilentPaymentAddress(FfiConverterTypeSilentPaymentAddressDetails.read(from));case 8:return new InputType.LnurlAuth(FfiConverterTypeLnurlAuthRequestDetails.read(from));case 9:return new InputType.Url(FfiConverterString.read(from));case 10:return new InputType.Bip21(FfiConverterTypeBip21Details.read(from));case 11:return new InputType.Bolt12InvoiceRequest(FfiConverterTypeBolt12InvoiceRequestDetails.read(from));case 12:return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));case 13:return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));case 14:return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case InputType_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner[0],into);return;}case InputType_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Invoice:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceDetails.write(inner[0],into);return;}case InputType_Tags.Bolt12Offer:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeBolt12OfferDetails.write(inner[0],into);return;}case InputType_Tags.LightningAddress:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypeLightningAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlPay:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypeLnurlPayRequestDetails.write(inner[0],into);return;}case InputType_Tags.SilentPaymentAddress:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeSilentPaymentAddressDetails.write(inner[0],into);return;}case InputType_Tags.LnurlAuth:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterTypeLnurlAuthRequestDetails.write(inner[0],into);return;}case InputType_Tags.Url:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case InputType_Tags.Bip21:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterTypeBip21Details.write(inner[0],into);return;}case InputType_Tags.Bolt12InvoiceRequest:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterTypeBolt12InvoiceRequestDetails.write(inner[0],into);return;}case InputType_Tags.LnurlWithdraw:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterTypeLnurlWithdrawRequestDetails.write(inner[0],into);return;}case InputType_Tags.SparkAddress:{ordinalConverter.write(13,into);const inner=value.inner;FfiConverterTypeSparkAddressDetails.write(inner[0],into);return;}case InputType_Tags.SparkInvoice:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner[0],into);return;}default:// Throwing from here means that InputType_Tags hasn't matched an ordinal.
|
|
1740
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let KeySetType=exports.KeySetType=/*#__PURE__*/function(KeySetType){KeySetType[KeySetType["Default"]=0]="Default";KeySetType[KeySetType["Taproot"]=1]="Taproot";KeySetType[KeySetType["NativeSegwit"]=2]="NativeSegwit";KeySetType[KeySetType["WrappedSegwit"]=3]="WrappedSegwit";KeySetType[KeySetType["Legacy"]=4]="Legacy";return KeySetType;}({});const FfiConverterTypeKeySetType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return KeySetType.Default;case 2:return KeySetType.Taproot;case 3:return KeySetType.NativeSegwit;case 4:return KeySetType.WrappedSegwit;case 5:return KeySetType.Legacy;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case KeySetType.Default:return ordinalConverter.write(1,into);case KeySetType.Taproot:return ordinalConverter.write(2,into);case KeySetType.NativeSegwit:return ordinalConverter.write(3,into);case KeySetType.WrappedSegwit:return ordinalConverter.write(4,into);case KeySetType.Legacy:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum:
|
|
1774
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case InputType_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeBolt12InvoiceDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12Offer:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeBolt12OfferDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LightningAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypeLightningAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlPay:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypeLnurlPayRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SilentPaymentAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeSilentPaymentAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlAuth:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterTypeLnurlAuthRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.Url:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case InputType_Tags.Bip21:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterTypeBip21Details.allocationSize(inner[0]);return size;}case InputType_Tags.Bolt12InvoiceRequest:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterTypeBolt12InvoiceRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.LnurlWithdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterTypeLnurlWithdrawRequestDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(13);size+=FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);return size;}case InputType_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let KeySetType=exports.KeySetType=/*#__PURE__*/function(KeySetType){KeySetType[KeySetType["Default"]=0]="Default";KeySetType[KeySetType["Taproot"]=1]="Taproot";KeySetType[KeySetType["NativeSegwit"]=2]="NativeSegwit";KeySetType[KeySetType["WrappedSegwit"]=3]="WrappedSegwit";KeySetType[KeySetType["Legacy"]=4]="Legacy";return KeySetType;}({});const FfiConverterTypeKeySetType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return KeySetType.Default;case 2:return KeySetType.Taproot;case 3:return KeySetType.NativeSegwit;case 4:return KeySetType.WrappedSegwit;case 5:return KeySetType.Legacy;default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case KeySetType.Default:return ordinalConverter.write(1,into);case KeySetType.Taproot:return ordinalConverter.write(2,into);case KeySetType.NativeSegwit:return ordinalConverter.write(3,into);case KeySetType.WrappedSegwit:return ordinalConverter.write(4,into);case KeySetType.Legacy:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: LnurlCallbackStatus
|
|
1775
|
+
let LnurlCallbackStatus_Tags=exports.LnurlCallbackStatus_Tags=/*#__PURE__*/function(LnurlCallbackStatus_Tags){LnurlCallbackStatus_Tags["Ok"]="Ok";LnurlCallbackStatus_Tags["ErrorStatus"]="ErrorStatus";return LnurlCallbackStatus_Tags;}({});/**
|
|
1776
|
+
* The response from a LNURL-auth callback, indicating success or failure.
|
|
1777
|
+
*/const LnurlCallbackStatus=exports.LnurlCallbackStatus=(()=>{/**
|
|
1778
|
+
* On-wire format is: `{"status": "OK"}`
|
|
1779
|
+
*/class Ok_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1780
|
+
* @private
|
|
1781
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1782
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='LnurlCallbackStatus';tag=LnurlCallbackStatus_Tags.Ok;constructor(){super('LnurlCallbackStatus','Ok');}static new(){return new Ok_();}static instanceOf(obj){return obj.tag===LnurlCallbackStatus_Tags.Ok;}}/**
|
|
1783
|
+
* On-wire format is: `{"status": "ERROR", "reason": "error details..."}`
|
|
1784
|
+
*/class ErrorStatus_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1785
|
+
* @private
|
|
1786
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1787
|
+
*/[_uniffiBindgenReactNative.uniffiTypeNameSymbol]='LnurlCallbackStatus';tag=LnurlCallbackStatus_Tags.ErrorStatus;constructor(inner){super('LnurlCallbackStatus','ErrorStatus');this.inner=Object.freeze(inner);}static new(inner){return new ErrorStatus_(inner);}static instanceOf(obj){return obj.tag===LnurlCallbackStatus_Tags.ErrorStatus;}}function instanceOf(obj){return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol]==='LnurlCallbackStatus';}return Object.freeze({instanceOf,Ok:Ok_,ErrorStatus:ErrorStatus_});})();/**
|
|
1788
|
+
* The response from a LNURL-auth callback, indicating success or failure.
|
|
1789
|
+
*/// FfiConverter for enum LnurlCallbackStatus
|
|
1790
|
+
const FfiConverterTypeLnurlCallbackStatus=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new LnurlCallbackStatus.Ok();case 2:return new LnurlCallbackStatus.ErrorStatus({errorDetails:FfiConverterTypeLnurlErrorDetails.read(from)});default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case LnurlCallbackStatus_Tags.Ok:{ordinalConverter.write(1,into);return;}case LnurlCallbackStatus_Tags.ErrorStatus:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeLnurlErrorDetails.write(inner.errorDetails,into);return;}default:// Throwing from here means that LnurlCallbackStatus_Tags hasn't matched an ordinal.
|
|
1791
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case LnurlCallbackStatus_Tags.Ok:{return ordinalConverter.allocationSize(1);}case LnurlCallbackStatus_Tags.ErrorStatus:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeLnurlErrorDetails.allocationSize(inner.errorDetails);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: MaxFee
|
|
1741
1792
|
let MaxFee_Tags=exports.MaxFee_Tags=/*#__PURE__*/function(MaxFee_Tags){MaxFee_Tags["Fixed"]="Fixed";MaxFee_Tags["Rate"]="Rate";MaxFee_Tags["NetworkRecommended"]="NetworkRecommended";return MaxFee_Tags;}({});const MaxFee=exports.MaxFee=(()=>{class Fixed_ extends _uniffiBindgenReactNative.UniffiEnum{/**
|
|
1742
1793
|
* @private
|
|
1743
1794
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2255,7 +2306,55 @@ constructor(pointer){super();this[_uniffiBindgenReactNative.pointerLiteralSymbol
|
|
|
2255
2306
|
* * `Ok(ListPaymentsResponse)` - Contains the list of payments if successful
|
|
2256
2307
|
* * `Err(SdkError)` - If there was an error accessing the storage
|
|
2257
2308
|
|
|
2258
|
-
*/async listPayments(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_list_payments(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListPaymentsRequest.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:*/FfiConverterTypeListPaymentsResponse.lift.bind(FfiConverterTypeListPaymentsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async listUnclaimedDeposits(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_list_unclaimed_deposits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListUnclaimedDepositsRequest.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:*/FfiConverterTypeListUnclaimedDepositsResponse.lift.bind(FfiConverterTypeListUnclaimedDepositsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
2309
|
+
*/async listPayments(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_list_payments(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListPaymentsRequest.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:*/FfiConverterTypeListPaymentsResponse.lift.bind(FfiConverterTypeListPaymentsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async listUnclaimedDeposits(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_list_unclaimed_deposits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListUnclaimedDepositsRequest.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:*/FfiConverterTypeListUnclaimedDepositsResponse.lift.bind(FfiConverterTypeListUnclaimedDepositsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2310
|
+
* Performs LNURL-auth with the service.
|
|
2311
|
+
*
|
|
2312
|
+
* This method implements the LNURL-auth protocol as specified in LUD-04 and LUD-05.
|
|
2313
|
+
* It derives a domain-specific linking key, signs the challenge, and sends the
|
|
2314
|
+
* authentication request to the service.
|
|
2315
|
+
*
|
|
2316
|
+
* # Arguments
|
|
2317
|
+
*
|
|
2318
|
+
* * `request_data` - The parsed LNURL-auth request details obtained from [`parse`]
|
|
2319
|
+
*
|
|
2320
|
+
* # Returns
|
|
2321
|
+
*
|
|
2322
|
+
* * `Ok(LnurlCallbackStatus::Ok)` - Authentication was successful
|
|
2323
|
+
* * `Ok(LnurlCallbackStatus::ErrorStatus{reason})` - Service returned an error
|
|
2324
|
+
* * `Err(SdkError)` - An error occurred during the authentication process
|
|
2325
|
+
*
|
|
2326
|
+
* # Example
|
|
2327
|
+
*
|
|
2328
|
+
* ```rust,no_run
|
|
2329
|
+
* # use breez_sdk_spark::{BreezSdk, InputType};
|
|
2330
|
+
* # async fn example(sdk: BreezSdk) -> Result<(), Box<dyn std::error::Error>> {
|
|
2331
|
+
* // 1. Parse the LNURL-auth string
|
|
2332
|
+
* let input = sdk.parse("lnurl1...").await?;
|
|
2333
|
+
* let auth_request = match input {
|
|
2334
|
+
* InputType::LnurlAuth(data) => data,
|
|
2335
|
+
* _ => return Err("Not an auth request".into()),
|
|
2336
|
+
* };
|
|
2337
|
+
*
|
|
2338
|
+
* // 2. Show user the domain and get confirmation
|
|
2339
|
+
* println!("Authenticate with {}?", auth_request.domain);
|
|
2340
|
+
*
|
|
2341
|
+
* // 3. Perform authentication
|
|
2342
|
+
* let status = sdk.lnurl_auth(auth_request).await?;
|
|
2343
|
+
* match status {
|
|
2344
|
+
* breez_sdk_spark::LnurlCallbackStatus::Ok => println!("Success!"),
|
|
2345
|
+
* breez_sdk_spark::LnurlCallbackStatus::ErrorStatus { error_details } => {
|
|
2346
|
+
* println!("Error: {}", error_details.reason)
|
|
2347
|
+
* }
|
|
2348
|
+
* }
|
|
2349
|
+
* # Ok(())
|
|
2350
|
+
* # }
|
|
2351
|
+
* ```
|
|
2352
|
+
*
|
|
2353
|
+
* # See Also
|
|
2354
|
+
*
|
|
2355
|
+
* * LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
|
|
2356
|
+
* * LUD-05: <https://github.com/lnurl/luds/blob/luds/05.md>
|
|
2357
|
+
*/async lnurlAuth(requestData,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_lnurl_auth(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeLnurlAuthRequestDetails.lower(requestData));},/*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:*/FfiConverterTypeLnurlCallbackStatus.lift.bind(FfiConverterTypeLnurlCallbackStatus),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async lnurlPay(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_lnurl_pay(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeLnurlPayRequest.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:*/FfiConverterTypeLnurlPayResponse.lift.bind(FfiConverterTypeLnurlPayResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2259
2358
|
* Performs an LNURL withdraw operation for the amount of satoshis to
|
|
2260
2359
|
* withdraw and the LNURL withdraw request details. The LNURL withdraw request
|
|
2261
2360
|
* details can be obtained from calling [`BreezSdk::parse`].
|
|
@@ -2350,22 +2449,26 @@ constructor(pointer){super();this[_uniffiBindgenReactNative.pointerLiteralSymbol
|
|
|
2350
2449
|
*/async derivePublicKey(path,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_externalsigner_derive_public_key(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterString.lower(path));},/*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:*/FfiConverterTypePublicKeyBytes.lift.bind(FfiConverterTypePublicKeyBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2351
2450
|
* Signs a message using ECDSA at the given derivation path.
|
|
2352
2451
|
*
|
|
2452
|
+
* The message should be a 32-byte digest (typically a hash of the original data).
|
|
2453
|
+
*
|
|
2353
2454
|
* # Arguments
|
|
2354
|
-
* * `message` - The message to sign
|
|
2455
|
+
* * `message` - The 32-byte message digest to sign
|
|
2355
2456
|
* * `path` - BIP32 derivation path as a string
|
|
2356
2457
|
*
|
|
2357
2458
|
* # Returns
|
|
2358
2459
|
* 64-byte compact ECDSA signature, or a `SignerError`
|
|
2359
|
-
*/async signEcdsa(message,path,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_externalsigner_sign_ecdsa(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
2460
|
+
*/async signEcdsa(message,path,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_externalsigner_sign_ecdsa(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeMessageBytes.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeEcdsaSignatureBytes.lift.bind(FfiConverterTypeEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2360
2461
|
* Signs a message using recoverable ECDSA at the given derivation path.
|
|
2361
2462
|
*
|
|
2463
|
+
* The message should be a 32-byte digest (typically a hash of the original data).
|
|
2464
|
+
*
|
|
2362
2465
|
* # Arguments
|
|
2363
|
-
* * `message` - The message to sign
|
|
2466
|
+
* * `message` - The 32-byte message digest to sign
|
|
2364
2467
|
* * `path` - BIP32 derivation path as a string
|
|
2365
2468
|
*
|
|
2366
2469
|
* # Returns
|
|
2367
2470
|
* 65 bytes: recovery ID (31 + `recovery_id`) + 64-byte signature, or a `SignerError`
|
|
2368
|
-
*/async signEcdsaRecoverable(message,path,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_externalsigner_sign_ecdsa_recoverable(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
2471
|
+
*/async signEcdsaRecoverable(message,path,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_externalsigner_sign_ecdsa_recoverable(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeMessageBytes.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeRecoverableEcdsaSignatureBytes.lift.bind(FfiConverterTypeRecoverableEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2369
2472
|
* Encrypts a message using ECIES at the given derivation path.
|
|
2370
2473
|
*
|
|
2371
2474
|
* # Arguments
|
|
@@ -2393,6 +2496,15 @@ constructor(pointer){super();this[_uniffiBindgenReactNative.pointerLiteralSymbol
|
|
|
2393
2496
|
* # Returns
|
|
2394
2497
|
* 64-byte Schnorr signature, or a `SignerError`
|
|
2395
2498
|
*/async signHashSchnorr(hash,path,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_externalsigner_sign_hash_schnorr(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),_uniffiBindgenReactNative.FfiConverterArrayBuffer.lower(hash),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeSchnorrSignatureBytes.lift.bind(FfiConverterTypeSchnorrSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2499
|
+
* HMAC-SHA256 of a message at the given derivation path.
|
|
2500
|
+
*
|
|
2501
|
+
* # Arguments
|
|
2502
|
+
* * `message` - The message to hash
|
|
2503
|
+
* * `path` - BIP32 derivation path as a string
|
|
2504
|
+
*
|
|
2505
|
+
* # Returns
|
|
2506
|
+
* 32-byte HMAC-SHA256, or a `SignerError`
|
|
2507
|
+
*/async hmacSha256(message,path,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_externalsigner_hmac_sha256(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),_uniffiBindgenReactNative.FfiConverterArrayBuffer.lower(message),FfiConverterString.lower(path));},/*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:*/FfiConverterTypeHashedMessageBytes.lift.bind(FfiConverterTypeHashedMessageBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2396
2508
|
* Generates Frost signing commitments for multi-party signing.
|
|
2397
2509
|
*
|
|
2398
2510
|
* # Returns
|
|
@@ -2494,11 +2606,12 @@ const FfiConverterTypeExternalSigner=new _uniffiBindgenReactNative.FfiConverterO
|
|
|
2494
2606
|
const uniffiCallbackInterfaceExternalSigner={// Create the VTable using a series of closures.
|
|
2495
2607
|
// ts automatically converts these into C callback functions.
|
|
2496
2608
|
vtable:{identityPublicKey:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return jsCallback.identityPublicKey();};const uniffiResult=_uniffiBindgenReactNative.UniffiResult.ready();const uniffiHandleSuccess=obj=>{_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult,FfiConverterTypePublicKeyBytes.lower(obj));};const uniffiHandleError=(code,errBuf)=>{_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult,code,errBuf);};(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiResult;},derivePublicKey:(uniffiHandle,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.derivePublicKey(FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2497
|
-
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsa(
|
|
2498
|
-
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsaRecoverable(
|
|
2609
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsa(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2610
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsaRecoverable(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecoverableEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2499
2611
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},eciesEncrypt:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.eciesEncrypt(_uniffiBindgenReactNative.FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:_uniffiBindgenReactNative.FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2500
2612
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},eciesDecrypt:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.eciesDecrypt(_uniffiBindgenReactNative.FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:_uniffiBindgenReactNative.FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2501
2613
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},signHashSchnorr:(uniffiHandle,hash,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signHashSchnorr(_uniffiBindgenReactNative.FfiConverterArrayBuffer.lift(hash),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSchnorrSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2614
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},hmacSha256:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.hmacSha256(_uniffiBindgenReactNative.FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeHashedMessageBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2502
2615
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},generateFrostSigningCommitments:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateFrostSigningCommitments({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostCommitments.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2503
2616
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},getPublicKeyForNode:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getPublicKeyForNode(FfiConverterTypeExternalTreeNodeId.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2504
2617
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=(0,_uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);},generateRandomKey:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateRandomKey({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPrivateKeySource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
@@ -2931,5 +3044,5 @@ const FfiConverterOptionalArrayTypeSparkHtlcStatus=new _uniffiBindgenReactNative
|
|
|
2931
3044
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2932
3045
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
2933
3046
|
const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
|
|
2934
|
-
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_connect_with_signer()!==1399){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}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_default_external_signer()!==40694){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}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_fetch_conversion_limits()!==50958){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}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_externalsigner_identity_public_key()!==44711){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==63908){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==52291){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==8564){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt()!==19449){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt()!==46414){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments()!==24826){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==32818){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key()!==22789){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source()!==37751){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key()!==55375){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key()!==49264){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys()!==46671){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret()!==840){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver()!==42476){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source()!==38684){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==1497){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures()!==26523){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures');}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()!==50052){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();uniffiCallbackInterfaceExternalSigner.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,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedPrivateKey,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalPrivateKeySource,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,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,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrivateKeyBytes,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,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}});
|
|
3047
|
+
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_connect_with_signer()!==1399){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}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_default_external_signer()!==40694){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}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_fetch_conversion_limits()!==50958){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}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_auth()!==37942){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}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_externalsigner_identity_public_key()!==44711){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==63908){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==37648){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==3107){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt()!==19449){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt()!==46414){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256()!==19799){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments()!==24833){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==62425){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key()!==21363){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source()!==61352){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key()!==57038){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key()!==47081){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys()!==63060){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret()!==22937){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver()!==52786){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source()!==58178){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==44847){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if((0,_breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures()!==61746){throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures');}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()!==50052){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();uniffiCallbackInterfaceExternalSigner.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,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedPrivateKey,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalPrivateKeySource,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrivateKeyBytes,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,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}});
|
|
2935
3048
|
//# sourceMappingURL=breez_sdk_spark.js.map
|