@breeztech/breez-sdk-spark-react-native 0.1.9-dev2 → 0.2.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.
Files changed (37) hide show
  1. package/cpp/generated/breez_sdk_common.cpp +675 -25
  2. package/cpp/generated/breez_sdk_common.hpp +27 -0
  3. package/cpp/generated/breez_sdk_spark.cpp +142 -1
  4. package/cpp/generated/breez_sdk_spark.hpp +21 -0
  5. package/lib/commonjs/generated/breez_sdk_common-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_common.js +185 -1
  7. package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
  8. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark.js +310 -11
  10. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_common-ffi.js.map +1 -1
  12. package/lib/module/generated/breez_sdk_common.js +183 -0
  13. package/lib/module/generated/breez_sdk_common.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  15. package/lib/module/generated/breez_sdk_spark.js +310 -11
  16. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +15 -0
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +44 -0
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +7 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +225 -9
  24. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  25. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +15 -0
  26. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +1 -1
  27. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +44 -0
  28. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
  29. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +7 -1
  30. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  31. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +225 -9
  32. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/src/generated/breez_sdk_common-ffi.ts +38 -0
  35. package/src/generated/breez_sdk_common.ts +334 -0
  36. package/src/generated/breez_sdk_spark-ffi.ts +14 -1
  37. package/src/generated/breez_sdk_spark.ts +486 -15
@@ -3,15 +3,18 @@
3
3
  // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
4
4
  // Trust me, you don't want to mess with it!
5
5
  import nativeModule from "./breez_sdk_spark-ffi.js";
6
- import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterCallback, FfiConverterInt32, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallAsyncWithError, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
6
+ import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterArrayBuffer, FfiConverterBool, FfiConverterCallback, FfiConverterInt32, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTraitInterfaceCallAsyncWithError, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
7
7
 
8
8
  // Get converters from the other files, if any.
9
9
  import uniffiBreezSdkCommonModule from "./breez_sdk_common.js";
10
10
  const {
11
11
  FfiConverterTypeBitcoinAddressDetails,
12
12
  FfiConverterTypeBolt11InvoiceDetails,
13
+ FfiConverterTypeFiatCurrency,
14
+ FfiConverterTypeFiatService,
13
15
  FfiConverterTypeInputType,
14
16
  FfiConverterTypeLnurlPayRequestDetails,
17
+ FfiConverterTypeRate,
15
18
  FfiConverterTypeRestClient,
16
19
  FfiConverterTypeSuccessAction,
17
20
  FfiConverterTypeSuccessActionProcessed
@@ -351,17 +354,17 @@ const FfiConverterTypeConnectRequest = (() => {
351
354
  read(from) {
352
355
  return {
353
356
  config: FfiConverterTypeConfig.read(from),
354
- mnemonic: FfiConverterString.read(from),
357
+ seed: FfiConverterTypeSeed.read(from),
355
358
  storageDir: FfiConverterString.read(from)
356
359
  };
357
360
  }
358
361
  write(value, into) {
359
362
  FfiConverterTypeConfig.write(value.config, into);
360
- FfiConverterString.write(value.mnemonic, into);
363
+ FfiConverterTypeSeed.write(value.seed, into);
361
364
  FfiConverterString.write(value.storageDir, into);
362
365
  }
363
366
  allocationSize(value) {
364
- return FfiConverterTypeConfig.allocationSize(value.config) + FfiConverterString.allocationSize(value.mnemonic) + FfiConverterString.allocationSize(value.storageDir);
367
+ return FfiConverterTypeConfig.allocationSize(value.config) + FfiConverterTypeSeed.allocationSize(value.seed) + FfiConverterString.allocationSize(value.storageDir);
365
368
  }
366
369
  }
367
370
  return new FFIConverter();
@@ -678,6 +681,98 @@ const FfiConverterTypeLightningAddressInfo = (() => {
678
681
  return new FFIConverter();
679
682
  })();
680
683
 
684
+ /**
685
+ * Response from listing fiat currencies
686
+ */
687
+
688
+ /**
689
+ * Generated factory for {@link ListFiatCurrenciesResponse} record objects.
690
+ */
691
+ export const ListFiatCurrenciesResponse = (() => {
692
+ const defaults = () => ({});
693
+ const create = (() => {
694
+ return uniffiCreateRecord(defaults);
695
+ })();
696
+ return Object.freeze({
697
+ /**
698
+ * Create a frozen instance of {@link ListFiatCurrenciesResponse}, with defaults specified
699
+ * in Rust, in the {@link breez_sdk_spark} crate.
700
+ */
701
+ create,
702
+ /**
703
+ * Create a frozen instance of {@link ListFiatCurrenciesResponse}, with defaults specified
704
+ * in Rust, in the {@link breez_sdk_spark} crate.
705
+ */
706
+ new: create,
707
+ /**
708
+ * Defaults specified in the {@link breez_sdk_spark} crate.
709
+ */
710
+ defaults: () => Object.freeze(defaults())
711
+ });
712
+ })();
713
+ const FfiConverterTypeListFiatCurrenciesResponse = (() => {
714
+ class FFIConverter extends AbstractFfiConverterByteArray {
715
+ read(from) {
716
+ return {
717
+ currencies: FfiConverterArrayTypeFiatCurrency.read(from)
718
+ };
719
+ }
720
+ write(value, into) {
721
+ FfiConverterArrayTypeFiatCurrency.write(value.currencies, into);
722
+ }
723
+ allocationSize(value) {
724
+ return FfiConverterArrayTypeFiatCurrency.allocationSize(value.currencies);
725
+ }
726
+ }
727
+ return new FFIConverter();
728
+ })();
729
+
730
+ /**
731
+ * Response from listing fiat rates
732
+ */
733
+
734
+ /**
735
+ * Generated factory for {@link ListFiatRatesResponse} record objects.
736
+ */
737
+ export const ListFiatRatesResponse = (() => {
738
+ const defaults = () => ({});
739
+ const create = (() => {
740
+ return uniffiCreateRecord(defaults);
741
+ })();
742
+ return Object.freeze({
743
+ /**
744
+ * Create a frozen instance of {@link ListFiatRatesResponse}, with defaults specified
745
+ * in Rust, in the {@link breez_sdk_spark} crate.
746
+ */
747
+ create,
748
+ /**
749
+ * Create a frozen instance of {@link ListFiatRatesResponse}, with defaults specified
750
+ * in Rust, in the {@link breez_sdk_spark} crate.
751
+ */
752
+ new: create,
753
+ /**
754
+ * Defaults specified in the {@link breez_sdk_spark} crate.
755
+ */
756
+ defaults: () => Object.freeze(defaults())
757
+ });
758
+ })();
759
+ const FfiConverterTypeListFiatRatesResponse = (() => {
760
+ class FFIConverter extends AbstractFfiConverterByteArray {
761
+ read(from) {
762
+ return {
763
+ rates: FfiConverterArrayTypeRate.read(from)
764
+ };
765
+ }
766
+ write(value, into) {
767
+ FfiConverterArrayTypeRate.write(value.rates, into);
768
+ }
769
+ allocationSize(value) {
770
+ return FfiConverterArrayTypeRate.allocationSize(value.rates);
771
+ }
772
+ }
773
+ return new FFIConverter();
774
+ })();
775
+
681
776
  /**
682
777
  * Request to list payments with pagination
683
778
  */
@@ -3677,6 +3772,138 @@ const FfiConverterTypeSdkEvent = (() => {
3677
3772
  return new FFIConverter();
3678
3773
  })();
3679
3774
 
3775
+ // Enum: Seed
3776
+ export let Seed_Tags = /*#__PURE__*/function (Seed_Tags) {
3777
+ Seed_Tags["Mnemonic"] = "Mnemonic";
3778
+ Seed_Tags["Entropy"] = "Entropy";
3779
+ return Seed_Tags;
3780
+ }({});
3781
+ /**
3782
+ * Represents the seed for wallet generation, either as a mnemonic phrase with an optional
3783
+ * passphrase or as raw entropy bytes.
3784
+ */
3785
+ export const Seed = (() => {
3786
+ /**
3787
+ * A BIP-39 mnemonic phrase with an optional passphrase.
3788
+ */
3789
+ class Mnemonic_ extends UniffiEnum {
3790
+ /**
3791
+ * @private
3792
+ * This field is private and should not be used, use `tag` instead.
3793
+ */
3794
+ [uniffiTypeNameSymbol] = 'Seed';
3795
+ tag = Seed_Tags.Mnemonic;
3796
+ constructor(inner) {
3797
+ super('Seed', 'Mnemonic');
3798
+ this.inner = Object.freeze(inner);
3799
+ }
3800
+ static new(inner) {
3801
+ return new Mnemonic_(inner);
3802
+ }
3803
+ static instanceOf(obj) {
3804
+ return obj.tag === Seed_Tags.Mnemonic;
3805
+ }
3806
+ }
3807
+ /**
3808
+ * Raw entropy bytes.
3809
+ */
3810
+ class Entropy_ extends UniffiEnum {
3811
+ /**
3812
+ * @private
3813
+ * This field is private and should not be used, use `tag` instead.
3814
+ */
3815
+ [uniffiTypeNameSymbol] = 'Seed';
3816
+ tag = Seed_Tags.Entropy;
3817
+ constructor(v0) {
3818
+ super('Seed', 'Entropy');
3819
+ this.inner = Object.freeze([v0]);
3820
+ }
3821
+ static new(v0) {
3822
+ return new Entropy_(v0);
3823
+ }
3824
+ static instanceOf(obj) {
3825
+ return obj.tag === Seed_Tags.Entropy;
3826
+ }
3827
+ }
3828
+ function instanceOf(obj) {
3829
+ return obj[uniffiTypeNameSymbol] === 'Seed';
3830
+ }
3831
+ return Object.freeze({
3832
+ instanceOf,
3833
+ Mnemonic: Mnemonic_,
3834
+ Entropy: Entropy_
3835
+ });
3836
+ })();
3837
+
3838
+ /**
3839
+ * Represents the seed for wallet generation, either as a mnemonic phrase with an optional
3840
+ * passphrase or as raw entropy bytes.
3841
+ */
3842
+
3843
+ // FfiConverter for enum Seed
3844
+ const FfiConverterTypeSeed = (() => {
3845
+ const ordinalConverter = FfiConverterInt32;
3846
+ class FFIConverter extends AbstractFfiConverterByteArray {
3847
+ read(from) {
3848
+ switch (ordinalConverter.read(from)) {
3849
+ case 1:
3850
+ return new Seed.Mnemonic({
3851
+ mnemonic: FfiConverterString.read(from),
3852
+ passphrase: FfiConverterOptionalString.read(from)
3853
+ });
3854
+ case 2:
3855
+ return new Seed.Entropy(FfiConverterArrayBuffer.read(from));
3856
+ default:
3857
+ throw new UniffiInternalError.UnexpectedEnumCase();
3858
+ }
3859
+ }
3860
+ write(value, into) {
3861
+ switch (value.tag) {
3862
+ case Seed_Tags.Mnemonic:
3863
+ {
3864
+ ordinalConverter.write(1, into);
3865
+ const inner = value.inner;
3866
+ FfiConverterString.write(inner.mnemonic, into);
3867
+ FfiConverterOptionalString.write(inner.passphrase, into);
3868
+ return;
3869
+ }
3870
+ case Seed_Tags.Entropy:
3871
+ {
3872
+ ordinalConverter.write(2, into);
3873
+ const inner = value.inner;
3874
+ FfiConverterArrayBuffer.write(inner[0], into);
3875
+ return;
3876
+ }
3877
+ default:
3878
+ // Throwing from here means that Seed_Tags hasn't matched an ordinal.
3879
+ throw new UniffiInternalError.UnexpectedEnumCase();
3880
+ }
3881
+ }
3882
+ allocationSize(value) {
3883
+ switch (value.tag) {
3884
+ case Seed_Tags.Mnemonic:
3885
+ {
3886
+ const inner = value.inner;
3887
+ let size = ordinalConverter.allocationSize(1);
3888
+ size += FfiConverterString.allocationSize(inner.mnemonic);
3889
+ size += FfiConverterOptionalString.allocationSize(inner.passphrase);
3890
+ return size;
3891
+ }
3892
+ case Seed_Tags.Entropy:
3893
+ {
3894
+ const inner = value.inner;
3895
+ let size = ordinalConverter.allocationSize(2);
3896
+ size += FfiConverterArrayBuffer.allocationSize(inner[0]);
3897
+ return size;
3898
+ }
3899
+ default:
3900
+ throw new UniffiInternalError.UnexpectedEnumCase();
3901
+ }
3902
+ }
3903
+ }
3904
+ return new FFIConverter();
3905
+ })();
3906
+
3680
3907
  // Enum: SendPaymentMethod
3681
3908
  export let SendPaymentMethod_Tags = /*#__PURE__*/function (SendPaymentMethod_Tags) {
3682
3909
  SendPaymentMethod_Tags["BitcoinAddress"] = "BitcoinAddress";
@@ -3906,7 +4133,7 @@ const FfiConverterTypeSendPaymentOptions = (() => {
3906
4133
  });
3907
4134
  case 2:
3908
4135
  return new SendPaymentOptions.Bolt11Invoice({
3909
- useSpark: FfiConverterBool.read(from)
4136
+ preferSpark: FfiConverterBool.read(from)
3910
4137
  });
3911
4138
  default:
3912
4139
  throw new UniffiInternalError.UnexpectedEnumCase();
@@ -3925,7 +4152,7 @@ const FfiConverterTypeSendPaymentOptions = (() => {
3925
4152
  {
3926
4153
  ordinalConverter.write(2, into);
3927
4154
  const inner = value.inner;
3928
- FfiConverterBool.write(inner.useSpark, into);
4155
+ FfiConverterBool.write(inner.preferSpark, into);
3929
4156
  return;
3930
4157
  }
3931
4158
  default:
@@ -3946,7 +4173,7 @@ const FfiConverterTypeSendPaymentOptions = (() => {
3946
4173
  {
3947
4174
  const inner = value.inner;
3948
4175
  let size = ordinalConverter.allocationSize(2);
3949
- size += FfiConverterBool.allocationSize(inner.useSpark);
4176
+ size += FfiConverterBool.allocationSize(inner.preferSpark);
3950
4177
  return size;
3951
4178
  }
3952
4179
  default:
@@ -4576,6 +4803,41 @@ export class BreezSdk extends UniffiAbstractObject {
4576
4803
  }
4577
4804
  }
4578
4805
 
4806
+ /**
4807
+ * List fiat currencies for which there is a known exchange rate,
4808
+ * sorted by the canonical name of the currency.
4809
+ */
4810
+ async listFiatCurrencies(asyncOpts_) /*throws*/{
4811
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4812
+ try {
4813
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4814
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(uniffiTypeBreezSdkObjectFactory.clonePointer(this));
4815
+ }, /*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:*/FfiConverterTypeListFiatCurrenciesResponse.lift.bind(FfiConverterTypeListFiatCurrenciesResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));
4816
+ } catch (__error) {
4817
+ if (uniffiIsDebug && __error instanceof Error) {
4818
+ __error.stack = __stack;
4819
+ }
4820
+ throw __error;
4821
+ }
4822
+ }
4823
+
4824
+ /**
4825
+ * List the latest rates of fiat currencies, sorted by name.
4826
+ */
4827
+ async listFiatRates(asyncOpts_) /*throws*/{
4828
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4829
+ try {
4830
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4831
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_rates(uniffiTypeBreezSdkObjectFactory.clonePointer(this));
4832
+ }, /*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:*/FfiConverterTypeListFiatRatesResponse.lift.bind(FfiConverterTypeListFiatRatesResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));
4833
+ } catch (__error) {
4834
+ if (uniffiIsDebug && __error instanceof Error) {
4835
+ __error.stack = __stack;
4836
+ }
4837
+ throw __error;
4838
+ }
4839
+ }
4840
+
4579
4841
  /**
4580
4842
  * Lists payments from the storage with pagination
4581
4843
  *
@@ -4833,13 +5095,13 @@ export class SdkBuilder extends UniffiAbstractObject {
4833
5095
  * Creates a new `SdkBuilder` with the provided configuration.
4834
5096
  * Arguments:
4835
5097
  * - `config`: The configuration to be used.
4836
- * - `mnemonic`: The mnemonic phrase for the wallet.
5098
+ * - `seed`: The seed for wallet generation.
4837
5099
  * - `storage`: The storage backend to be used.
4838
5100
  */
4839
- constructor(config, mnemonic, storage) {
5101
+ constructor(config, seed, storage) {
4840
5102
  super();
4841
5103
  const pointer = uniffiCaller.rustCall(/*caller:*/callStatus => {
4842
- return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_constructor_sdkbuilder_new(FfiConverterTypeConfig.lower(config), FfiConverterString.lower(mnemonic), FfiConverterTypeStorage.lower(storage), callStatus);
5104
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_constructor_sdkbuilder_new(FfiConverterTypeConfig.lower(config), FfiConverterTypeSeed.lower(seed), FfiConverterTypeStorage.lower(storage), callStatus);
4843
5105
  }, /*liftString:*/FfiConverterString.lift);
4844
5106
  this[pointerLiteralSymbol] = pointer;
4845
5107
  this[destructorGuardSymbol] = uniffiTypeSdkBuilderObjectFactory.bless(pointer);
@@ -4881,6 +5143,25 @@ export class SdkBuilder extends UniffiAbstractObject {
4881
5143
  }
4882
5144
  }
4883
5145
 
5146
+ /**
5147
+ * Sets the fiat service to be used by the SDK.
5148
+ * Arguments:
5149
+ * - `fiat_service`: The fiat service to be used.
5150
+ */
5151
+ async withFiatService(fiatService, asyncOpts_) {
5152
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
5153
+ try {
5154
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
5155
+ return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_fiat_service(uniffiTypeSdkBuilderObjectFactory.clonePointer(this), FfiConverterTypeFiatService.lower(fiatService));
5156
+ }, /*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_);
5157
+ } catch (__error) {
5158
+ if (uniffiIsDebug && __error instanceof Error) {
5159
+ __error.stack = __stack;
5160
+ }
5161
+ throw __error;
5162
+ }
5163
+ }
5164
+
4884
5165
  /**
4885
5166
  * Sets the key set type to be used by the SDK.
4886
5167
  * Arguments:
@@ -5606,6 +5887,12 @@ const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
5606
5887
  // FfiConverter for /*u64*/bigint | undefined
5607
5888
  const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
5608
5889
 
5890
+ // FfiConverter for Array<FiatCurrency>
5891
+ const FfiConverterArrayTypeFiatCurrency = new FfiConverterArray(FfiConverterTypeFiatCurrency);
5892
+
5893
+ // FfiConverter for Array<Rate>
5894
+ const FfiConverterArrayTypeRate = new FfiConverterArray(FfiConverterTypeRate);
5895
+
5609
5896
  // FfiConverter for Array<DepositInfo>
5610
5897
  const FfiConverterArrayTypeDepositInfo = new FfiConverterArray(FfiConverterTypeDepositInfo);
5611
5898
 
@@ -5693,6 +5980,12 @@ function uniffiEnsureInitialized() {
5693
5980
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment() !== 11540) {
5694
5981
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');
5695
5982
  }
5983
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies() !== 63366) {
5984
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');
5985
+ }
5986
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates() !== 5904) {
5987
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');
5988
+ }
5696
5989
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments() !== 16156) {
5697
5990
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');
5698
5991
  }
@@ -5741,6 +6034,9 @@ function uniffiEnsureInitialized() {
5741
6034
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service() !== 2848) {
5742
6035
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');
5743
6036
  }
6037
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service() !== 41113) {
6038
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');
6039
+ }
5744
6040
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set() !== 55523) {
5745
6041
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');
5746
6042
  }
@@ -5783,7 +6079,7 @@ function uniffiEnsureInitialized() {
5783
6079
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit() !== 48478) {
5784
6080
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');
5785
6081
  }
5786
- if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new() !== 52744) {
6082
+ if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new() !== 53882) {
5787
6083
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');
5788
6084
  }
5789
6085
  if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event() !== 10824) {
@@ -5817,6 +6113,8 @@ export default Object.freeze({
5817
6113
  FfiConverterTypeGetPaymentResponse,
5818
6114
  FfiConverterTypeKeySetType,
5819
6115
  FfiConverterTypeLightningAddressInfo,
6116
+ FfiConverterTypeListFiatCurrenciesResponse,
6117
+ FfiConverterTypeListFiatRatesResponse,
5820
6118
  FfiConverterTypeListPaymentsRequest,
5821
6119
  FfiConverterTypeListPaymentsResponse,
5822
6120
  FfiConverterTypeListUnclaimedDepositsRequest,
@@ -5845,6 +6143,7 @@ export default Object.freeze({
5845
6143
  FfiConverterTypeRegisterLightningAddressRequest,
5846
6144
  FfiConverterTypeSdkBuilder,
5847
6145
  FfiConverterTypeSdkEvent,
6146
+ FfiConverterTypeSeed,
5848
6147
  FfiConverterTypeSendOnchainFeeQuote,
5849
6148
  FfiConverterTypeSendOnchainSpeedFeeQuote,
5850
6149
  FfiConverterTypeSendPaymentMethod,