@breeztech/breez-sdk-spark-react-native 0.4.3-dev1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;AAAA;AACA;;AAktBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AACzC,eAAeF,MAAM;;AAErB;;AAoYA;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,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;AAAA;AACA;;AAutBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AACzC,eAAeF,MAAM;;AAErB;;AAoYA;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,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -244,6 +244,26 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
244
244
  */new:create,/**
245
245
  * Defaults specified in the {@link breez_sdk_spark} crate.
246
246
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimDepositResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payment:FfiConverterTypePayment.read(from)};}write(value,into){FfiConverterTypePayment.write(value.payment,into);}allocationSize(value){return FfiConverterTypePayment.allocationSize(value.payment);}}return new FFIConverter();})();/**
247
+ * Generated factory for {@link ClaimHtlcPaymentRequest} record objects.
248
+ */export const ClaimHtlcPaymentRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
249
+ * Create a frozen instance of {@link ClaimHtlcPaymentRequest}, with defaults specified
250
+ * in Rust, in the {@link breez_sdk_spark} crate.
251
+ */create,/**
252
+ * Create a frozen instance of {@link ClaimHtlcPaymentRequest}, with defaults specified
253
+ * in Rust, in the {@link breez_sdk_spark} crate.
254
+ */new:create,/**
255
+ * Defaults specified in the {@link breez_sdk_spark} crate.
256
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimHtlcPaymentRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{preimage:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.preimage,into);}allocationSize(value){return FfiConverterString.allocationSize(value.preimage);}}return new FFIConverter();})();/**
257
+ * Generated factory for {@link ClaimHtlcPaymentResponse} record objects.
258
+ */export const ClaimHtlcPaymentResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
259
+ * Create a frozen instance of {@link ClaimHtlcPaymentResponse}, with defaults specified
260
+ * in Rust, in the {@link breez_sdk_spark} crate.
261
+ */create,/**
262
+ * Create a frozen instance of {@link ClaimHtlcPaymentResponse}, with defaults specified
263
+ * in Rust, in the {@link breez_sdk_spark} crate.
264
+ */new:create,/**
265
+ * Defaults specified in the {@link breez_sdk_spark} crate.
266
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeClaimHtlcPaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payment:FfiConverterTypePayment.read(from)};}write(value,into){FfiConverterTypePayment.write(value.payment,into);}allocationSize(value){return FfiConverterTypePayment.allocationSize(value.payment);}}return new FFIConverter();})();/**
247
267
  * Generated factory for {@link Config} record objects.
248
268
  */export const Config=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
249
269
  * Create a frozen instance of {@link Config}, with defaults specified
@@ -471,7 +491,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
471
491
  * Request to list payments with optional filters and pagination
472
492
  *//**
473
493
  * Generated factory for {@link ListPaymentsRequest} record objects.
474
- */export const ListPaymentsRequest=(()=>{const defaults=()=>({typeFilter:undefined,statusFilter:undefined,assetFilter:undefined,fromTimestamp:undefined,toTimestamp:undefined,offset:undefined,limit:undefined,sortAscending:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
494
+ */export const ListPaymentsRequest=(()=>{const defaults=()=>({typeFilter:undefined,statusFilter:undefined,assetFilter:undefined,sparkHtlcStatusFilter:undefined,fromTimestamp:undefined,toTimestamp:undefined,offset:undefined,limit:undefined,sortAscending:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
475
495
  * Create a frozen instance of {@link ListPaymentsRequest}, with defaults specified
476
496
  * in Rust, in the {@link breez_sdk_spark} crate.
477
497
  */create,/**
@@ -479,7 +499,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
479
499
  * in Rust, in the {@link breez_sdk_spark} crate.
480
500
  */new:create,/**
481
501
  * Defaults specified in the {@link breez_sdk_spark} crate.
482
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeListPaymentsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{typeFilter:FfiConverterOptionalArrayTypePaymentType.read(from),statusFilter:FfiConverterOptionalArrayTypePaymentStatus.read(from),assetFilter:FfiConverterOptionalTypeAssetFilter.read(from),fromTimestamp:FfiConverterOptionalUInt64.read(from),toTimestamp:FfiConverterOptionalUInt64.read(from),offset:FfiConverterOptionalUInt32.read(from),limit:FfiConverterOptionalUInt32.read(from),sortAscending:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalArrayTypePaymentType.write(value.typeFilter,into);FfiConverterOptionalArrayTypePaymentStatus.write(value.statusFilter,into);FfiConverterOptionalTypeAssetFilter.write(value.assetFilter,into);FfiConverterOptionalUInt64.write(value.fromTimestamp,into);FfiConverterOptionalUInt64.write(value.toTimestamp,into);FfiConverterOptionalUInt32.write(value.offset,into);FfiConverterOptionalUInt32.write(value.limit,into);FfiConverterOptionalBool.write(value.sortAscending,into);}allocationSize(value){return FfiConverterOptionalArrayTypePaymentType.allocationSize(value.typeFilter)+FfiConverterOptionalArrayTypePaymentStatus.allocationSize(value.statusFilter)+FfiConverterOptionalTypeAssetFilter.allocationSize(value.assetFilter)+FfiConverterOptionalUInt64.allocationSize(value.fromTimestamp)+FfiConverterOptionalUInt64.allocationSize(value.toTimestamp)+FfiConverterOptionalUInt32.allocationSize(value.offset)+FfiConverterOptionalUInt32.allocationSize(value.limit)+FfiConverterOptionalBool.allocationSize(value.sortAscending);}}return new FFIConverter();})();/**
502
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeListPaymentsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{typeFilter:FfiConverterOptionalArrayTypePaymentType.read(from),statusFilter:FfiConverterOptionalArrayTypePaymentStatus.read(from),assetFilter:FfiConverterOptionalTypeAssetFilter.read(from),sparkHtlcStatusFilter:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),fromTimestamp:FfiConverterOptionalUInt64.read(from),toTimestamp:FfiConverterOptionalUInt64.read(from),offset:FfiConverterOptionalUInt32.read(from),limit:FfiConverterOptionalUInt32.read(from),sortAscending:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalArrayTypePaymentType.write(value.typeFilter,into);FfiConverterOptionalArrayTypePaymentStatus.write(value.statusFilter,into);FfiConverterOptionalTypeAssetFilter.write(value.assetFilter,into);FfiConverterOptionalArrayTypeSparkHtlcStatus.write(value.sparkHtlcStatusFilter,into);FfiConverterOptionalUInt64.write(value.fromTimestamp,into);FfiConverterOptionalUInt64.write(value.toTimestamp,into);FfiConverterOptionalUInt32.write(value.offset,into);FfiConverterOptionalUInt32.write(value.limit,into);FfiConverterOptionalBool.write(value.sortAscending,into);}allocationSize(value){return FfiConverterOptionalArrayTypePaymentType.allocationSize(value.typeFilter)+FfiConverterOptionalArrayTypePaymentStatus.allocationSize(value.statusFilter)+FfiConverterOptionalTypeAssetFilter.allocationSize(value.assetFilter)+FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(value.sparkHtlcStatusFilter)+FfiConverterOptionalUInt64.allocationSize(value.fromTimestamp)+FfiConverterOptionalUInt64.allocationSize(value.toTimestamp)+FfiConverterOptionalUInt32.allocationSize(value.offset)+FfiConverterOptionalUInt32.allocationSize(value.limit)+FfiConverterOptionalBool.allocationSize(value.sortAscending);}}return new FFIConverter();})();/**
483
503
  * Response from listing payments
484
504
  *//**
485
505
  * Generated factory for {@link ListPaymentsResponse} record objects.
@@ -512,7 +532,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
512
532
  */new:create,/**
513
533
  * Defaults specified in the {@link breez_sdk_spark} crate.
514
534
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeListUnclaimedDepositsResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{deposits:FfiConverterArrayTypeDepositInfo.read(from)};}write(value,into){FfiConverterArrayTypeDepositInfo.write(value.deposits,into);}allocationSize(value){return FfiConverterArrayTypeDepositInfo.allocationSize(value.deposits);}}return new FFIConverter();})();/**
515
- * Wrapped in a [`LnurlAuth`], this is the result of [`parse`] when given a LNURL-auth endpoint.
535
+ * Wrapped in a [`InputType::LnurlAuth`], this is the result of [`parse`](breez_sdk_common::input::parse) when given a LNURL-auth endpoint.
516
536
  *
517
537
  * It represents the endpoint's parameters for the LNURL workflow.
518
538
  *
@@ -952,6 +972,26 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
952
972
  */new:create,/**
953
973
  * Defaults specified in the {@link breez_sdk_spark} crate.
954
974
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkAddressDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{address:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from),network:FfiConverterTypeBitcoinNetwork.read(from),source:FfiConverterTypePaymentRequestSource.read(from)};}write(value,into){FfiConverterString.write(value.address,into);FfiConverterString.write(value.identityPublicKey,into);FfiConverterTypeBitcoinNetwork.write(value.network,into);FfiConverterTypePaymentRequestSource.write(value.source,into);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterString.allocationSize(value.identityPublicKey)+FfiConverterTypeBitcoinNetwork.allocationSize(value.network)+FfiConverterTypePaymentRequestSource.allocationSize(value.source);}}return new FFIConverter();})();/**
975
+ * Generated factory for {@link SparkHtlcDetails} record objects.
976
+ */export const SparkHtlcDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
977
+ * Create a frozen instance of {@link SparkHtlcDetails}, with defaults specified
978
+ * in Rust, in the {@link breez_sdk_spark} crate.
979
+ */create,/**
980
+ * Create a frozen instance of {@link SparkHtlcDetails}, with defaults specified
981
+ * in Rust, in the {@link breez_sdk_spark} crate.
982
+ */new:create,/**
983
+ * Defaults specified in the {@link breez_sdk_spark} crate.
984
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkHtlcDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentHash:FfiConverterString.read(from),preimage:FfiConverterOptionalString.read(from),expiryTime:FfiConverterUInt64.read(from),status:FfiConverterTypeSparkHtlcStatus.read(from)};}write(value,into){FfiConverterString.write(value.paymentHash,into);FfiConverterOptionalString.write(value.preimage,into);FfiConverterUInt64.write(value.expiryTime,into);FfiConverterTypeSparkHtlcStatus.write(value.status,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterOptionalString.allocationSize(value.preimage)+FfiConverterUInt64.allocationSize(value.expiryTime)+FfiConverterTypeSparkHtlcStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
985
+ * Generated factory for {@link SparkHtlcOptions} record objects.
986
+ */export const SparkHtlcOptions=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
987
+ * Create a frozen instance of {@link SparkHtlcOptions}, with defaults specified
988
+ * in Rust, in the {@link breez_sdk_spark} crate.
989
+ */create,/**
990
+ * Create a frozen instance of {@link SparkHtlcOptions}, with defaults specified
991
+ * in Rust, in the {@link breez_sdk_spark} crate.
992
+ */new:create,/**
993
+ * Defaults specified in the {@link breez_sdk_spark} crate.
994
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkHtlcOptions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentHash:FfiConverterString.read(from),expiryDurationSecs:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.paymentHash,into);FfiConverterUInt64.write(value.expiryDurationSecs,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterUInt64.allocationSize(value.expiryDurationSecs);}}return new FFIConverter();})();/**
955
995
  * Generated factory for {@link SparkInvoiceDetails} record objects.
956
996
  */export const SparkInvoiceDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
957
997
  * Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
@@ -1246,8 +1286,8 @@ export let PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){Paymen
1246
1286
  * @private
1247
1287
  * This field is private and should not be used, use `tag` instead.
1248
1288
  */[uniffiTypeNameSymbol]='PaymentDetails';tag=PaymentDetails_Tags.Deposit;constructor(inner){super('PaymentDetails','Deposit');this.inner=Object.freeze(inner);}static new(inner){return new Deposit_(inner);}static instanceOf(obj){return obj.tag===PaymentDetails_Tags.Deposit;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PaymentDetails';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_,Lightning:Lightning_,Withdraw:Withdraw_,Deposit:Deposit_});})();// FfiConverter for enum PaymentDetails
1249
- const FfiConverterTypePaymentDetails=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetails.Spark({invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),preimage:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),paymentHash:FfiConverterString.read(from),destinationPubkey:FfiConverterString.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from)});case 4:return new PaymentDetails.Withdraw({txId:FfiConverterString.read(from)});case 5:return new PaymentDetails.Deposit({txId:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetails_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.preimage,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.paymentHash,into);FfiConverterString.write(inner.destinationPubkey,into);FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo,into);return;}case PaymentDetails_Tags.Withdraw:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}case PaymentDetails_Tags.Deposit:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
1250
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetails_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);return size;}case PaymentDetails_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);size+=FfiConverterString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.preimage);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.paymentHash);size+=FfiConverterString.allocationSize(inner.destinationPubkey);size+=FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);size+=FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);return size;}case PaymentDetails_Tags.Withdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.txId);return size;}case PaymentDetails_Tags.Deposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.txId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let PaymentMethod=/*#__PURE__*/function(PaymentMethod){PaymentMethod[PaymentMethod["Lightning"]=0]="Lightning";PaymentMethod[PaymentMethod["Spark"]=1]="Spark";PaymentMethod[PaymentMethod["Token"]=2]="Token";PaymentMethod[PaymentMethod["Deposit"]=3]="Deposit";PaymentMethod[PaymentMethod["Withdraw"]=4]="Withdraw";PaymentMethod[PaymentMethod["Unknown"]=5]="Unknown";return PaymentMethod;}({});const FfiConverterTypePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return PaymentMethod.Lightning;case 2:return PaymentMethod.Spark;case 3:return PaymentMethod.Token;case 4:return PaymentMethod.Deposit;case 5:return PaymentMethod.Withdraw;case 6:return PaymentMethod.Unknown;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case PaymentMethod.Lightning:return ordinalConverter.write(1,into);case PaymentMethod.Spark:return ordinalConverter.write(2,into);case PaymentMethod.Token:return ordinalConverter.write(3,into);case PaymentMethod.Deposit:return ordinalConverter.write(4,into);case PaymentMethod.Withdraw:return ordinalConverter.write(5,into);case PaymentMethod.Unknown:return ordinalConverter.write(6,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: PaymentObserverError
1289
+ const FfiConverterTypePaymentDetails=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PaymentDetails.Spark({invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from),htlcDetails:FfiConverterOptionalTypeSparkHtlcDetails.read(from)});case 2:return new PaymentDetails.Token({metadata:FfiConverterTypeTokenMetadata.read(from),txHash:FfiConverterString.read(from),invoiceDetails:FfiConverterOptionalTypeSparkInvoicePaymentDetails.read(from)});case 3:return new PaymentDetails.Lightning({description:FfiConverterOptionalString.read(from),preimage:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from),paymentHash:FfiConverterString.read(from),destinationPubkey:FfiConverterString.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from)});case 4:return new PaymentDetails.Withdraw({txId:FfiConverterString.read(from)});case 5:return new PaymentDetails.Deposit({txId:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PaymentDetails_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);FfiConverterOptionalTypeSparkHtlcDetails.write(inner.htlcDetails,into);return;}case PaymentDetails_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeTokenMetadata.write(inner.metadata,into);FfiConverterString.write(inner.txHash,into);FfiConverterOptionalTypeSparkInvoicePaymentDetails.write(inner.invoiceDetails,into);return;}case PaymentDetails_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.preimage,into);FfiConverterString.write(inner.invoice,into);FfiConverterString.write(inner.paymentHash,into);FfiConverterString.write(inner.destinationPubkey,into);FfiConverterOptionalTypeLnurlPayInfo.write(inner.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(inner.lnurlWithdrawInfo,into);return;}case PaymentDetails_Tags.Withdraw:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}case PaymentDetails_Tags.Deposit:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.txId,into);return;}default:// Throwing from here means that PaymentDetails_Tags hasn't matched an ordinal.
1290
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentDetails_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalTypeSparkHtlcDetails.allocationSize(inner.htlcDetails);return size;}case PaymentDetails_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeTokenMetadata.allocationSize(inner.metadata);size+=FfiConverterString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeSparkInvoicePaymentDetails.allocationSize(inner.invoiceDetails);return size;}case PaymentDetails_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.preimage);size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.paymentHash);size+=FfiConverterString.allocationSize(inner.destinationPubkey);size+=FfiConverterOptionalTypeLnurlPayInfo.allocationSize(inner.lnurlPayInfo);size+=FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(inner.lnurlWithdrawInfo);return size;}case PaymentDetails_Tags.Withdraw:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.txId);return size;}case PaymentDetails_Tags.Deposit:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.txId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let PaymentMethod=/*#__PURE__*/function(PaymentMethod){PaymentMethod[PaymentMethod["Lightning"]=0]="Lightning";PaymentMethod[PaymentMethod["Spark"]=1]="Spark";PaymentMethod[PaymentMethod["Token"]=2]="Token";PaymentMethod[PaymentMethod["Deposit"]=3]="Deposit";PaymentMethod[PaymentMethod["Withdraw"]=4]="Withdraw";PaymentMethod[PaymentMethod["Unknown"]=5]="Unknown";return PaymentMethod;}({});const FfiConverterTypePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return PaymentMethod.Lightning;case 2:return PaymentMethod.Spark;case 3:return PaymentMethod.Token;case 4:return PaymentMethod.Deposit;case 5:return PaymentMethod.Withdraw;case 6:return PaymentMethod.Unknown;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case PaymentMethod.Lightning:return ordinalConverter.write(1,into);case PaymentMethod.Spark:return ordinalConverter.write(2,into);case PaymentMethod.Token:return ordinalConverter.write(3,into);case PaymentMethod.Deposit:return ordinalConverter.write(4,into);case PaymentMethod.Withdraw:return ordinalConverter.write(5,into);case PaymentMethod.Unknown:return ordinalConverter.write(6,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: PaymentObserverError
1251
1291
  // Enum: PaymentObserverError
1252
1292
  export let PaymentObserverError_Tags=/*#__PURE__*/function(PaymentObserverError_Tags){PaymentObserverError_Tags["ServiceConnectivity"]="ServiceConnectivity";PaymentObserverError_Tags["Generic"]="Generic";return PaymentObserverError_Tags;}({});export const PaymentObserverError=(()=>{class ServiceConnectivity_ extends UniffiError{/**
1253
1293
  * @private
@@ -1414,15 +1454,18 @@ export let SendPaymentMethod_Tags=/*#__PURE__*/function(SendPaymentMethod_Tags){
1414
1454
  */[uniffiTypeNameSymbol]='SendPaymentMethod';tag=SendPaymentMethod_Tags.SparkInvoice;constructor(inner){super('SendPaymentMethod','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentMethod_Tags.SparkInvoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentMethod';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_});})();// FfiConverter for enum SendPaymentMethod
1415
1455
  const FfiConverterTypeSendPaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentMethod.BitcoinAddress({address:FfiConverterTypeBitcoinAddressDetails.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from)});case 2:return new SendPaymentMethod.Bolt11Invoice({invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),sparkTransferFeeSats:FfiConverterOptionalUInt64.read(from),lightningFeeSats:FfiConverterUInt64.read(from)});case 3:return new SendPaymentMethod.SparkAddress({address:FfiConverterString.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});case 4:return new SendPaymentMethod.SparkInvoice({sparkInvoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from),fee:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeBitcoinAddressDetails.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);return;}case SendPaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeBolt11InvoiceDetails.write(inner.invoiceDetails,into);FfiConverterOptionalUInt64.write(inner.sparkTransferFeeSats,into);FfiConverterUInt64.write(inner.lightningFeeSats,into);return;}case SendPaymentMethod_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}case SendPaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.sparkInvoiceDetails,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that SendPaymentMethod_Tags hasn't matched an ordinal.
1416
1456
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeBitcoinAddressDetails.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);return size;}case SendPaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeBolt11InvoiceDetails.allocationSize(inner.invoiceDetails);size+=FfiConverterOptionalUInt64.allocationSize(inner.sparkTransferFeeSats);size+=FfiConverterUInt64.allocationSize(inner.lightningFeeSats);return size;}case SendPaymentMethod_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}case SendPaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.sparkInvoiceDetails);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SendPaymentOptions
1417
- export let SendPaymentOptions_Tags=/*#__PURE__*/function(SendPaymentOptions_Tags){SendPaymentOptions_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentOptions_Tags["Bolt11Invoice"]="Bolt11Invoice";return SendPaymentOptions_Tags;}({});export const SendPaymentOptions=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
1457
+ export let SendPaymentOptions_Tags=/*#__PURE__*/function(SendPaymentOptions_Tags){SendPaymentOptions_Tags["BitcoinAddress"]="BitcoinAddress";SendPaymentOptions_Tags["Bolt11Invoice"]="Bolt11Invoice";SendPaymentOptions_Tags["SparkAddress"]="SparkAddress";return SendPaymentOptions_Tags;}({});export const SendPaymentOptions=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
1418
1458
  * @private
1419
1459
  * This field is private and should not be used, use `tag` instead.
1420
1460
  */[uniffiTypeNameSymbol]='SendPaymentOptions';tag=SendPaymentOptions_Tags.BitcoinAddress;constructor(inner){super('SendPaymentOptions','BitcoinAddress');this.inner=Object.freeze(inner);}static new(inner){return new BitcoinAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentOptions_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
1421
1461
  * @private
1422
1462
  * This field is private and should not be used, use `tag` instead.
1423
- */[uniffiTypeNameSymbol]='SendPaymentOptions';tag=SendPaymentOptions_Tags.Bolt11Invoice;constructor(inner){super('SendPaymentOptions','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentOptions_Tags.Bolt11Invoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentOptions';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_});})();// FfiConverter for enum SendPaymentOptions
1424
- const FfiConverterTypeSendPaymentOptions=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentOptions.BitcoinAddress({confirmationSpeed:FfiConverterTypeOnchainConfirmationSpeed.read(from)});case 2:return new SendPaymentOptions.Bolt11Invoice({preferSpark:FfiConverterBool.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentOptions_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeOnchainConfirmationSpeed.write(inner.confirmationSpeed,into);return;}case SendPaymentOptions_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterBool.write(inner.preferSpark,into);FfiConverterOptionalUInt32.write(inner.completionTimeoutSecs,into);return;}default:// Throwing from here means that SendPaymentOptions_Tags hasn't matched an ordinal.
1425
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentOptions_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeOnchainConfirmationSpeed.allocationSize(inner.confirmationSpeed);return size;}case SendPaymentOptions_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterBool.allocationSize(inner.preferSpark);size+=FfiConverterOptionalUInt32.allocationSize(inner.completionTimeoutSecs);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: ServiceConnectivityError
1463
+ */[uniffiTypeNameSymbol]='SendPaymentOptions';tag=SendPaymentOptions_Tags.Bolt11Invoice;constructor(inner){super('SendPaymentOptions','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===SendPaymentOptions_Tags.Bolt11Invoice;}}class SparkAddress_ extends UniffiEnum{/**
1464
+ * @private
1465
+ * This field is private and should not be used, use `tag` instead.
1466
+ */[uniffiTypeNameSymbol]='SendPaymentOptions';tag=SendPaymentOptions_Tags.SparkAddress;constructor(inner){super('SendPaymentOptions','SparkAddress');this.inner=Object.freeze(inner);}static new(inner){return new SparkAddress_(inner);}static instanceOf(obj){return obj.tag===SendPaymentOptions_Tags.SparkAddress;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SendPaymentOptions';}return Object.freeze({instanceOf,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_,SparkAddress:SparkAddress_});})();// FfiConverter for enum SendPaymentOptions
1467
+ const FfiConverterTypeSendPaymentOptions=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SendPaymentOptions.BitcoinAddress({confirmationSpeed:FfiConverterTypeOnchainConfirmationSpeed.read(from)});case 2:return new SendPaymentOptions.Bolt11Invoice({preferSpark:FfiConverterBool.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)});case 3:return new SendPaymentOptions.SparkAddress({htlcOptions:FfiConverterOptionalTypeSparkHtlcOptions.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SendPaymentOptions_Tags.BitcoinAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeOnchainConfirmationSpeed.write(inner.confirmationSpeed,into);return;}case SendPaymentOptions_Tags.Bolt11Invoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterBool.write(inner.preferSpark,into);FfiConverterOptionalUInt32.write(inner.completionTimeoutSecs,into);return;}case SendPaymentOptions_Tags.SparkAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalTypeSparkHtlcOptions.write(inner.htlcOptions,into);return;}default:// Throwing from here means that SendPaymentOptions_Tags hasn't matched an ordinal.
1468
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SendPaymentOptions_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeOnchainConfirmationSpeed.allocationSize(inner.confirmationSpeed);return size;}case SendPaymentOptions_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterBool.allocationSize(inner.preferSpark);size+=FfiConverterOptionalUInt32.allocationSize(inner.completionTimeoutSecs);return size;}case SendPaymentOptions_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalTypeSparkHtlcOptions.allocationSize(inner.htlcOptions);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: ServiceConnectivityError
1426
1469
  // Enum: ServiceConnectivityError
1427
1470
  export let ServiceConnectivityError_Tags=/*#__PURE__*/function(ServiceConnectivityError_Tags){ServiceConnectivityError_Tags["Builder"]="Builder";ServiceConnectivityError_Tags["Redirect"]="Redirect";ServiceConnectivityError_Tags["Status"]="Status";ServiceConnectivityError_Tags["Timeout"]="Timeout";ServiceConnectivityError_Tags["Request"]="Request";ServiceConnectivityError_Tags["Connect"]="Connect";ServiceConnectivityError_Tags["Body"]="Body";ServiceConnectivityError_Tags["Decode"]="Decode";ServiceConnectivityError_Tags["Json"]="Json";ServiceConnectivityError_Tags["Other"]="Other";return ServiceConnectivityError_Tags;}({});export const ServiceConnectivityError=(()=>{class Builder_ extends UniffiError{/**
1428
1471
  * @private
@@ -1456,7 +1499,13 @@ export let ServiceConnectivityError_Tags=/*#__PURE__*/function(ServiceConnectivi
1456
1499
  * This field is private and should not be used, use `tag` instead.
1457
1500
  */[uniffiTypeNameSymbol]='ServiceConnectivityError';tag=ServiceConnectivityError_Tags.Other;constructor(v0){super('ServiceConnectivityError','Other');this.inner=Object.freeze([v0]);}static new(v0){return new Other_(v0);}static instanceOf(obj){return obj.tag===ServiceConnectivityError_Tags.Other;}static hasInner(obj){return Other_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ServiceConnectivityError';}return Object.freeze({instanceOf,Builder:Builder_,Redirect:Redirect_,Status:Status_,Timeout:Timeout_,Request:Request_,Connect:Connect_,Body:Body_,Decode:Decode_,Json:Json_,Other:Other_});})();// FfiConverter for enum ServiceConnectivityError
1458
1501
  const FfiConverterTypeServiceConnectivityError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ServiceConnectivityError.Builder(FfiConverterString.read(from));case 2:return new ServiceConnectivityError.Redirect(FfiConverterString.read(from));case 3:return new ServiceConnectivityError.Status({status:FfiConverterUInt16.read(from),body:FfiConverterString.read(from)});case 4:return new ServiceConnectivityError.Timeout(FfiConverterString.read(from));case 5:return new ServiceConnectivityError.Request(FfiConverterString.read(from));case 6:return new ServiceConnectivityError.Connect(FfiConverterString.read(from));case 7:return new ServiceConnectivityError.Body(FfiConverterString.read(from));case 8:return new ServiceConnectivityError.Decode(FfiConverterString.read(from));case 9:return new ServiceConnectivityError.Json(FfiConverterString.read(from));case 10:return new ServiceConnectivityError.Other(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ServiceConnectivityError_Tags.Builder:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Redirect:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Status:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterUInt16.write(inner.status,into);FfiConverterString.write(inner.body,into);return;}case ServiceConnectivityError_Tags.Timeout:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Request:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Connect:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Body:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Decode:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Json:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ServiceConnectivityError_Tags.Other:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ServiceConnectivityError_Tags hasn't matched an ordinal.
1459
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ServiceConnectivityError_Tags.Builder:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Redirect:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Status:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt16.allocationSize(inner.status);size+=FfiConverterString.allocationSize(inner.body);return size;}case ServiceConnectivityError_Tags.Timeout:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Request:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Connect:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Body:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Decode:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Json:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Other:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: StorageError
1502
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ServiceConnectivityError_Tags.Builder:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Redirect:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Status:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterUInt16.allocationSize(inner.status);size+=FfiConverterString.allocationSize(inner.body);return size;}case ServiceConnectivityError_Tags.Timeout:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Request:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Connect:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Body:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Decode:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Json:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ServiceConnectivityError_Tags.Other:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let SparkHtlcStatus=/*#__PURE__*/function(SparkHtlcStatus){/**
1503
+ * The HTLC is waiting for the preimage to be shared by the receiver
1504
+ */SparkHtlcStatus[SparkHtlcStatus["WaitingForPreimage"]=0]="WaitingForPreimage";/**
1505
+ * The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
1506
+ */SparkHtlcStatus[SparkHtlcStatus["PreimageShared"]=1]="PreimageShared";/**
1507
+ * The HTLC has been returned to the sender due to expiry
1508
+ */SparkHtlcStatus[SparkHtlcStatus["Returned"]=2]="Returned";return SparkHtlcStatus;}({});const FfiConverterTypeSparkHtlcStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return SparkHtlcStatus.WaitingForPreimage;case 2:return SparkHtlcStatus.PreimageShared;case 3:return SparkHtlcStatus.Returned;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case SparkHtlcStatus.WaitingForPreimage:return ordinalConverter.write(1,into);case SparkHtlcStatus.PreimageShared:return ordinalConverter.write(2,into);case SparkHtlcStatus.Returned:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: StorageError
1460
1509
  // Enum: StorageError
1461
1510
  export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageError_Tags["Implementation"]="Implementation";StorageError_Tags["InitializationError"]="InitializationError";StorageError_Tags["Serialization"]="Serialization";return StorageError_Tags;}({});/**
1462
1511
  * Errors that can occur during storage operations
@@ -1596,7 +1645,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
1596
1645
  * Verifies a message signature against the provided public key. The message
1597
1646
  * is SHA256 hashed before verification. The signature can be hex encoded
1598
1647
  * in either DER or compact format.
1599
- */async checkMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async deleteLightningAddress(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
1648
+ */async checkMessage(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimHtlcPayment(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_htlc_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimHtlcPaymentRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeClaimHtlcPaymentResponse.lift.bind(FfiConverterTypeClaimHtlcPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async deleteLightningAddress(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
1600
1649
  * Stops the SDK's background tasks
1601
1650
  *
1602
1651
  * This method stops the background tasks started by the `start()` method.
@@ -2040,7 +2089,9 @@ const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverter
2040
2089
  const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConverterTypeLnurlWithdrawInfo);// FfiConverter for OutgoingChange | undefined
2041
2090
  const FfiConverterOptionalTypeOutgoingChange=new FfiConverterOptional(FfiConverterTypeOutgoingChange);// FfiConverter for Payment | undefined
2042
2091
  const FfiConverterOptionalTypePayment=new FfiConverterOptional(FfiConverterTypePayment);// FfiConverter for Record | undefined
2043
- const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkInvoicePaymentDetails | undefined
2092
+ const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkHtlcDetails | undefined
2093
+ const FfiConverterOptionalTypeSparkHtlcDetails=new FfiConverterOptional(FfiConverterTypeSparkHtlcDetails);// FfiConverter for SparkHtlcOptions | undefined
2094
+ const FfiConverterOptionalTypeSparkHtlcOptions=new FfiConverterOptional(FfiConverterTypeSparkHtlcOptions);// FfiConverter for SparkInvoicePaymentDetails | undefined
2044
2095
  const FfiConverterOptionalTypeSparkInvoicePaymentDetails=new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);// FfiConverter for Symbol | undefined
2045
2096
  const FfiConverterOptionalTypeSymbol=new FfiConverterOptional(FfiConverterTypeSymbol);// FfiConverter for string | undefined
2046
2097
  const FfiConverterOptionalString=new FfiConverterOptional(FfiConverterString);// FfiConverter for /*u32*/number | undefined
@@ -2077,9 +2128,11 @@ const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterM
2077
2128
  const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<InputType>
2078
2129
  const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentStatus>
2079
2130
  const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
2080
- const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<PaymentStatus> | undefined
2131
+ const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkHtlcStatus>
2132
+ const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<PaymentStatus> | undefined
2081
2133
  const FfiConverterOptionalArrayTypePaymentStatus=new FfiConverterOptional(FfiConverterArrayTypePaymentStatus);// FfiConverter for Array<PaymentType> | undefined
2082
- const FfiConverterOptionalArrayTypePaymentType=new FfiConverterOptional(FfiConverterArrayTypePaymentType);/**
2134
+ const FfiConverterOptionalArrayTypePaymentType=new FfiConverterOptional(FfiConverterArrayTypePaymentType);// FfiConverter for Array<SparkHtlcStatus> | undefined
2135
+ const FfiConverterOptionalArrayTypeSparkHtlcStatus=new FfiConverterOptional(FfiConverterArrayTypeSparkHtlcStatus);/**
2083
2136
  * This should be called before anything else.
2084
2137
  *
2085
2138
  * It is likely that this is being done for you by the library's `index.ts`.
@@ -2090,5 +2143,5 @@ const FfiConverterOptionalArrayTypePaymentType=new FfiConverterOptional(FfiConve
2090
2143
  * It also initializes the machinery to enable Rust to talk back to Javascript.
2091
2144
  */function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
2092
2145
  const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
2093
- const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==37737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==16156){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==30686){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set()!==42926){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage()!==20579){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==19728){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata()!==45500){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==60240){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==60586){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==54118){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==39803){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change()!==19087){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync()!==20071){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes()!==23473){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision()!==36887){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records()!==41782){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record()!==23002){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records()!==61508){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records()!==53552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change()!==16326){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming()!==9986){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();uniffiCallbackInterfaceSyncStorage.register();}export 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,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeExternalInputParser,FfiConverterTypeFee,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeStorage,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncStorage,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeu128}});
2146
+ const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==37737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==16156){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==30686){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set()!==42926){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage()!==20579){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==19728){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata()!==45500){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==60240){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==60586){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==54118){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==39803){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change()!==19087){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync()!==20071){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes()!==23473){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision()!==36887){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records()!==41782){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record()!==23002){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records()!==61508){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records()!==53552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change()!==16326){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming()!==9986){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();uniffiCallbackInterfaceSyncStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeExternalInputParser,FfiConverterTypeFee,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,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}});
2094
2147
  //# sourceMappingURL=breez_sdk_spark.js.map