@breeztech/breez-sdk-spark-react-native 0.2.4 → 0.2.5-dev1

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.
@@ -298,7 +298,8 @@ uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_chain_service(
298
298
  uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_fiat_service(
299
299
  void *ptr, void *fiat_service);
300
300
  /*handle*/ uint64_t uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set(
301
- void *ptr, RustBuffer key_set_type, int8_t use_address_index);
301
+ void *ptr, RustBuffer key_set_type, int8_t use_address_index,
302
+ RustBuffer account_number);
302
303
  /*handle*/ uint64_t
303
304
  uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_lnurl_client(
304
305
  void *ptr, void *lnurl_client);
@@ -5493,7 +5494,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
5493
5494
  jsi::PropNameID::forAscii(
5494
5495
  rt,
5495
5496
  "ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set"),
5496
- 3,
5497
+ 4,
5497
5498
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
5498
5499
  const jsi::Value *args, size_t count) -> jsi::Value {
5499
5500
  return this
@@ -7731,7 +7732,9 @@ jsi::Value NativeBreezSdkSpark::
7731
7732
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
7732
7733
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
7733
7734
  args[1]),
7734
- uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]));
7735
+ uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
7736
+ uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
7737
+ args[3]));
7735
7738
 
7736
7739
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
7737
7740
  value);
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AA4eA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC3BL,MAAM,EAErB;AAyPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AA6eA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC3BL,MAAM,EAErB;AAyPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -5225,11 +5225,11 @@ class SdkBuilder extends _uniffiBindgenReactNative.UniffiAbstractObject {
5225
5225
  * - `key_set_type`: The key set type which determines the derivation path.
5226
5226
  * - `use_address_index`: Controls the structure of the BIP derivation path.
5227
5227
  */
5228
- async withKeySet(keySetType, useAddressIndex, asyncOpts_) {
5228
+ async withKeySet(keySetType, useAddressIndex, accountNumber, asyncOpts_) {
5229
5229
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
5230
5230
  try {
5231
5231
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
5232
- return (0, _breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set(uniffiTypeSdkBuilderObjectFactory.clonePointer(this), FfiConverterTypeKeySetType.lower(keySetType), _uniffiBindgenReactNative.FfiConverterBool.lower(useAddressIndex));
5232
+ return (0, _breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set(uniffiTypeSdkBuilderObjectFactory.clonePointer(this), FfiConverterTypeKeySetType.lower(keySetType), _uniffiBindgenReactNative.FfiConverterBool.lower(useAddressIndex), FfiConverterOptionalUInt32.lower(accountNumber));
5233
5233
  }, /*pollFunc:*/(0, _breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_poll_void, /*cancelFunc:*/(0, _breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void, /*completeFunc:*/(0, _breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_complete_void, /*freeFunc:*/(0, _breez_sdk_sparkFfi.default)().ubrn_ffi_breez_sdk_spark_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_);
5234
5234
  } catch (__error) {
5235
5235
  if (uniffiIsDebug && __error instanceof Error) {
@@ -6099,7 +6099,7 @@ function uniffiEnsureInitialized() {
6099
6099
  if ((0, _breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service() !== 41113) {
6100
6100
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');
6101
6101
  }
6102
- if ((0, _breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set() !== 55523) {
6102
+ if ((0, _breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set() !== 42926) {
6103
6103
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');
6104
6104
  }
6105
6105
  if ((0, _breez_sdk_sparkFfi.default)().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client() !== 61720) {