@breeztech/breez-sdk-spark-react-native 0.12.2-dev3 → 0.12.2

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 (36) hide show
  1. package/README.md +6 -6
  2. package/android/CMakeLists.txt +4 -3
  3. package/{BreezSdkSparkReactNative.podspec → breeztech-breez-sdk-spark-react-native.podspec} +2 -2
  4. package/cpp/generated/breez_sdk_spark.cpp +448 -657
  5. package/cpp/generated/breez_sdk_spark.hpp +29 -49
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +155 -366
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +2 -4
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +1 -11
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +154 -365
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +2 -4
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +0 -7
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +71 -77
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +116 -1037
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +0 -1
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +71 -77
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +116 -1037
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +0 -1
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/breez_sdk_spark-ffi.ts +91 -106
  34. package/src/generated/breez_sdk_spark.ts +1030 -2796
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +0 -7
@@ -1,7 +1,7 @@
1
1
  "use strict";// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
2
  // Trust me, you don't want to mess with it!
3
3
  import nativeModule from"./breez_sdk_spark-ffi.js";import{AbstractFfiConverterByteArray,FfiConverterArray,FfiConverterArrayBuffer,FfiConverterBool,FfiConverterCallback,FfiConverterFloat64,FfiConverterInt32,FfiConverterMap,FfiConverterObject,FfiConverterObjectWithCallbacks,FfiConverterOptional,FfiConverterUInt16,FfiConverterUInt32,FfiConverterUInt64,FfiConverterUInt8,UniffiAbstractObject,UniffiEnum,UniffiError,UniffiInternalError,UniffiResult,UniffiRustCaller,destructorGuardSymbol,pointerLiteralSymbol,uniffiCreateFfiConverterString,uniffiCreateRecord,uniffiRustCallAsync,uniffiTraitInterfaceCall,uniffiTraitInterfaceCallAsync,uniffiTraitInterfaceCallAsyncWithError,uniffiTraitInterfaceCallWithError,uniffiTypeNameSymbol}from'uniffi-bindgen-react-native';// Get converters from the other files, if any.
4
- const uniffiCaller=new UniffiRustCaller(()=>({code:0}));const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
4
+ const uniffiCaller=new UniffiRustCaller();const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
5
5
  typeof process!=='object'||// @ts-ignore -- The process global might not be defined
6
6
  process?.env?.NODE_ENV!=='production'||false;// Public interface members begin here.
7
7
  /**
@@ -53,8 +53,8 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
53
53
  */// Put the implementation in a struct so we don't pollute the top-level namespace
54
54
  const uniffiCallbackInterfaceEventListener={// Create the VTable using a series of closures.
55
55
  // ts automatically converts these into C callback functions.
56
- vtable:{onEvent:(uniffiHandle,event,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeEventListener.lift(uniffiHandle);return await jsCallback.onEvent(FfiConverterTypeSdkEvent.lift(event),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
57
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsync(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// EventListener: this will throw a stale handle error if the handle isn't found.
56
+ vtable:{onEvent:(uniffiHandle,event,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeEventListener.lift(uniffiHandle);return await jsCallback.onEvent(FfiConverterTypeSdkEvent.lift(event),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
57
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsync(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// EventListener: this will throw a stale handle error if the handle isn't found.
58
58
  FfiConverterTypeEventListener.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(uniffiCallbackInterfaceEventListener.vtable);}};// FfiConverter protocol for callback interfaces
59
59
  const FfiConverterTypeEventListener=new FfiConverterCallback();// Put the implementation in a struct so we don't pollute the top-level namespace
60
60
  const uniffiCallbackInterfaceLogger={// Create the VTable using a series of closures.
@@ -240,6 +240,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
240
240
  */new:create,/**
241
241
  * Defaults specified in the {@link breez_sdk_spark} crate.
242
242
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBurnIssuerTokenRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{amount:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
243
+ * Request to buy Bitcoin using an external provider (`MoonPay`)
244
+ *//**
245
+ * Generated factory for {@link BuyBitcoinRequest} record objects.
246
+ */export const BuyBitcoinRequest=(()=>{const defaults=()=>({lockedAmountSat:undefined,redirectUrl:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
247
+ * Create a frozen instance of {@link BuyBitcoinRequest}, with defaults specified
248
+ * in Rust, in the {@link breez_sdk_spark} crate.
249
+ */create,/**
250
+ * Create a frozen instance of {@link BuyBitcoinRequest}, with defaults specified
251
+ * in Rust, in the {@link breez_sdk_spark} crate.
252
+ */new:create,/**
253
+ * Defaults specified in the {@link breez_sdk_spark} crate.
254
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBuyBitcoinRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{lockedAmountSat:FfiConverterOptionalUInt64.read(from),redirectUrl:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterOptionalUInt64.write(value.lockedAmountSat,into);FfiConverterOptionalString.write(value.redirectUrl,into);}allocationSize(value){return FfiConverterOptionalUInt64.allocationSize(value.lockedAmountSat)+FfiConverterOptionalString.allocationSize(value.redirectUrl);}}return new FFIConverter();})();/**
243
255
  * Response containing a URL to complete the Bitcoin purchase
244
256
  *//**
245
257
  * Generated factory for {@link BuyBitcoinResponse} record objects.
@@ -331,7 +343,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
331
343
  * in Rust, in the {@link breez_sdk_spark} crate.
332
344
  */new:create,/**
333
345
  * Defaults specified in the {@link breez_sdk_spark} crate.
334
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),optimizationConfig:FfiConverterTypeOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),sparkConfig:FfiConverterOptionalTypeSparkConfig.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeOptimizationConfig.write(value.optimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterOptionalTypeSparkConfig.write(value.sparkConfig,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeOptimizationConfig.allocationSize(value.optimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterOptionalTypeSparkConfig.allocationSize(value.sparkConfig);}}return new FFIConverter();})();/**
346
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{apiKey:FfiConverterOptionalString.read(from),network:FfiConverterTypeNetwork.read(from),syncIntervalSecs:FfiConverterUInt32.read(from),maxDepositClaimFee:FfiConverterOptionalTypeMaxFee.read(from),lnurlDomain:FfiConverterOptionalString.read(from),preferSparkOverLightning:FfiConverterBool.read(from),externalInputParsers:FfiConverterOptionalArrayTypeExternalInputParser.read(from),useDefaultExternalInputParsers:FfiConverterBool.read(from),realTimeSyncServerUrl:FfiConverterOptionalString.read(from),privateEnabledDefault:FfiConverterBool.read(from),optimizationConfig:FfiConverterTypeOptimizationConfig.read(from),stableBalanceConfig:FfiConverterOptionalTypeStableBalanceConfig.read(from),maxConcurrentClaims:FfiConverterUInt32.read(from),supportLnurlVerify:FfiConverterBool.read(from)};}write(value,into){FfiConverterOptionalString.write(value.apiKey,into);FfiConverterTypeNetwork.write(value.network,into);FfiConverterUInt32.write(value.syncIntervalSecs,into);FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee,into);FfiConverterOptionalString.write(value.lnurlDomain,into);FfiConverterBool.write(value.preferSparkOverLightning,into);FfiConverterOptionalArrayTypeExternalInputParser.write(value.externalInputParsers,into);FfiConverterBool.write(value.useDefaultExternalInputParsers,into);FfiConverterOptionalString.write(value.realTimeSyncServerUrl,into);FfiConverterBool.write(value.privateEnabledDefault,into);FfiConverterTypeOptimizationConfig.write(value.optimizationConfig,into);FfiConverterOptionalTypeStableBalanceConfig.write(value.stableBalanceConfig,into);FfiConverterUInt32.write(value.maxConcurrentClaims,into);FfiConverterBool.write(value.supportLnurlVerify,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.apiKey)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterUInt32.allocationSize(value.syncIntervalSecs)+FfiConverterOptionalTypeMaxFee.allocationSize(value.maxDepositClaimFee)+FfiConverterOptionalString.allocationSize(value.lnurlDomain)+FfiConverterBool.allocationSize(value.preferSparkOverLightning)+FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(value.externalInputParsers)+FfiConverterBool.allocationSize(value.useDefaultExternalInputParsers)+FfiConverterOptionalString.allocationSize(value.realTimeSyncServerUrl)+FfiConverterBool.allocationSize(value.privateEnabledDefault)+FfiConverterTypeOptimizationConfig.allocationSize(value.optimizationConfig)+FfiConverterOptionalTypeStableBalanceConfig.allocationSize(value.stableBalanceConfig)+FfiConverterUInt32.allocationSize(value.maxConcurrentClaims)+FfiConverterBool.allocationSize(value.supportLnurlVerify);}}return new FFIConverter();})();/**
335
347
  * Generated factory for {@link ConnectRequest} record objects.
336
348
  */export const ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
337
349
  * Create a frozen instance of {@link ConnectRequest}, with defaults specified
@@ -368,10 +380,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
368
380
  */new:create,/**
369
381
  * Defaults specified in the {@link breez_sdk_spark} crate.
370
382
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeContact=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from),createdAt:FfiConverterUInt64.read(from),updatedAt:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);FfiConverterUInt64.write(value.createdAt,into);FfiConverterUInt64.write(value.updatedAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier)+FfiConverterUInt64.allocationSize(value.createdAt)+FfiConverterUInt64.allocationSize(value.updatedAt);}}return new FFIConverter();})();/**
371
- * Outlines the steps involved in a conversion.
372
- *
373
- * Built progressively: `status` is available immediately from payment metadata,
374
- * while `from`/`to` steps are enriched later from child payments.
383
+ * Outlines the steps involved in a conversion
375
384
  *//**
376
385
  * Generated factory for {@link ConversionDetails} record objects.
377
386
  */export const ConversionDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
@@ -382,7 +391,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
382
391
  * in Rust, in the {@link breez_sdk_spark} crate.
383
392
  */new:create,/**
384
393
  * Defaults specified in the {@link breez_sdk_spark} crate.
385
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{status:FfiConverterTypeConversionStatus.read(from),from:FfiConverterOptionalTypeConversionStep.read(from),to:FfiConverterOptionalTypeConversionStep.read(from)};}write(value,into){FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterOptionalTypeConversionStep.write(value.from,into);FfiConverterOptionalTypeConversionStep.write(value.to,into);}allocationSize(value){return FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterOptionalTypeConversionStep.allocationSize(value.from)+FfiConverterOptionalTypeConversionStep.allocationSize(value.to);}}return new FFIConverter();})();/**
394
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{from:FfiConverterTypeConversionStep.read(from),to:FfiConverterTypeConversionStep.read(from)};}write(value,into){FfiConverterTypeConversionStep.write(value.from,into);FfiConverterTypeConversionStep.write(value.to,into);}allocationSize(value){return FfiConverterTypeConversionStep.allocationSize(value.from)+FfiConverterTypeConversionStep.allocationSize(value.to);}}return new FFIConverter();})();/**
386
395
  * Response from estimating a conversion, used when preparing a payment that requires conversion
387
396
  *//**
388
397
  * Generated factory for {@link ConversionEstimate} record objects.
@@ -394,7 +403,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
394
403
  * in Rust, in the {@link breez_sdk_spark} crate.
395
404
  */new:create,/**
396
405
  * Defaults specified in the {@link breez_sdk_spark} crate.
397
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionEstimate=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{options:FfiConverterTypeConversionOptions.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterTypeConversionOptions.write(value.options,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterTypeConversionOptions.allocationSize(value.options)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
406
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionEstimate=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{options:FfiConverterTypeConversionOptions.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeConversionOptions.write(value.options,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);}allocationSize(value){return FfiConverterTypeConversionOptions.allocationSize(value.options)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee);}}return new FFIConverter();})();/**
398
407
  * Generated factory for {@link ConversionInfo} record objects.
399
408
  */export const ConversionInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
400
409
  * Create a frozen instance of {@link ConversionInfo}, with defaults specified
@@ -404,7 +413,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
404
413
  * in Rust, in the {@link breez_sdk_spark} crate.
405
414
  */new:create,/**
406
415
  * Defaults specified in the {@link breez_sdk_spark} crate.
407
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterString.write(value.poolId,into);FfiConverterString.write(value.conversionId,into);FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterOptionalTypeu128.write(value.fee,into);FfiConverterOptionalTypeConversionPurpose.write(value.purpose,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterString.allocationSize(value.poolId)+FfiConverterString.allocationSize(value.conversionId)+FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterOptionalTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeConversionPurpose.allocationSize(value.purpose)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
416
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{poolId:FfiConverterString.read(from),conversionId:FfiConverterString.read(from),status:FfiConverterTypeConversionStatus.read(from),fee:FfiConverterOptionalTypeu128.read(from),purpose:FfiConverterOptionalTypeConversionPurpose.read(from)};}write(value,into){FfiConverterString.write(value.poolId,into);FfiConverterString.write(value.conversionId,into);FfiConverterTypeConversionStatus.write(value.status,into);FfiConverterOptionalTypeu128.write(value.fee,into);FfiConverterOptionalTypeConversionPurpose.write(value.purpose,into);}allocationSize(value){return FfiConverterString.allocationSize(value.poolId)+FfiConverterString.allocationSize(value.conversionId)+FfiConverterTypeConversionStatus.allocationSize(value.status)+FfiConverterOptionalTypeu128.allocationSize(value.fee)+FfiConverterOptionalTypeConversionPurpose.allocationSize(value.purpose);}}return new FFIConverter();})();/**
408
417
  * Options for conversion when fulfilling a payment. When set, the SDK will
409
418
  * perform a conversion before fulfilling the payment. If not set, the payment
410
419
  * will only be fulfilled if the wallet has sufficient balance of the required asset.
@@ -430,7 +439,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
430
439
  * in Rust, in the {@link breez_sdk_spark} crate.
431
440
  */new:create,/**
432
441
  * Defaults specified in the {@link breez_sdk_spark} crate.
433
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionStep=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentId:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),method:FfiConverterTypePaymentMethod.read(from),tokenMetadata:FfiConverterOptionalTypeTokenMetadata.read(from),amountAdjustment:FfiConverterOptionalTypeAmountAdjustmentReason.read(from)};}write(value,into){FfiConverterString.write(value.paymentId,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterTypePaymentMethod.write(value.method,into);FfiConverterOptionalTypeTokenMetadata.write(value.tokenMetadata,into);FfiConverterOptionalTypeAmountAdjustmentReason.write(value.amountAdjustment,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentId)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterTypePaymentMethod.allocationSize(value.method)+FfiConverterOptionalTypeTokenMetadata.allocationSize(value.tokenMetadata)+FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(value.amountAdjustment);}}return new FFIConverter();})();/**
442
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionStep=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentId:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),method:FfiConverterTypePaymentMethod.read(from),tokenMetadata:FfiConverterOptionalTypeTokenMetadata.read(from)};}write(value,into){FfiConverterString.write(value.paymentId,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterTypeu128.write(value.fee,into);FfiConverterTypePaymentMethod.write(value.method,into);FfiConverterOptionalTypeTokenMetadata.write(value.tokenMetadata,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentId)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterTypeu128.allocationSize(value.fee)+FfiConverterTypePaymentMethod.allocationSize(value.method)+FfiConverterOptionalTypeTokenMetadata.allocationSize(value.tokenMetadata);}}return new FFIConverter();})();/**
434
443
  * Generated factory for {@link CreateIssuerTokenRequest} record objects.
435
444
  */export const CreateIssuerTokenRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
436
445
  * Create a frozen instance of {@link CreateIssuerTokenRequest}, with defaults specified
@@ -472,7 +481,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
472
481
  * in Rust, in the {@link breez_sdk_spark} crate.
473
482
  */new:create,/**
474
483
  * Defaults specified in the {@link breez_sdk_spark} crate.
475
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),isMature:FfiConverterBool.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterBool.write(value.isMature,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterBool.allocationSize(value.isMature)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError);}}return new FFIConverter();})();/**
484
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDepositInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),amountSats:FfiConverterUInt64.read(from),refundTx:FfiConverterOptionalString.read(from),refundTxId:FfiConverterOptionalString.read(from),claimError:FfiConverterOptionalTypeDepositClaimError.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.amountSats,into);FfiConverterOptionalString.write(value.refundTx,into);FfiConverterOptionalString.write(value.refundTxId,into);FfiConverterOptionalTypeDepositClaimError.write(value.claimError,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.refundTx)+FfiConverterOptionalString.allocationSize(value.refundTxId)+FfiConverterOptionalTypeDepositClaimError.allocationSize(value.claimError);}}return new FFIConverter();})();/**
476
485
  * FFI-safe representation of an ECDSA signature (64 bytes)
477
486
  *//**
478
487
  * Generated factory for {@link EcdsaSignatureBytes} record objects.
@@ -1194,7 +1203,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1194
1203
  * in Rust, in the {@link breez_sdk_spark} crate.
1195
1204
  */new:create,/**
1196
1205
  * Defaults specified in the {@link breez_sdk_spark} crate.
1197
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentMetadata=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{parentPaymentId:FfiConverterOptionalString.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlDescription:FfiConverterOptionalString.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from),conversionStatus:FfiConverterOptionalTypeConversionStatus.read(from)};}write(value,into){FfiConverterOptionalString.write(value.parentPaymentId,into);FfiConverterOptionalTypeLnurlPayInfo.write(value.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(value.lnurlWithdrawInfo,into);FfiConverterOptionalString.write(value.lnurlDescription,into);FfiConverterOptionalTypeConversionInfo.write(value.conversionInfo,into);FfiConverterOptionalTypeConversionStatus.write(value.conversionStatus,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.parentPaymentId)+FfiConverterOptionalTypeLnurlPayInfo.allocationSize(value.lnurlPayInfo)+FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(value.lnurlWithdrawInfo)+FfiConverterOptionalString.allocationSize(value.lnurlDescription)+FfiConverterOptionalTypeConversionInfo.allocationSize(value.conversionInfo)+FfiConverterOptionalTypeConversionStatus.allocationSize(value.conversionStatus);}}return new FFIConverter();})();/**
1206
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentMetadata=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{parentPaymentId:FfiConverterOptionalString.read(from),lnurlPayInfo:FfiConverterOptionalTypeLnurlPayInfo.read(from),lnurlWithdrawInfo:FfiConverterOptionalTypeLnurlWithdrawInfo.read(from),lnurlDescription:FfiConverterOptionalString.read(from),conversionInfo:FfiConverterOptionalTypeConversionInfo.read(from)};}write(value,into){FfiConverterOptionalString.write(value.parentPaymentId,into);FfiConverterOptionalTypeLnurlPayInfo.write(value.lnurlPayInfo,into);FfiConverterOptionalTypeLnurlWithdrawInfo.write(value.lnurlWithdrawInfo,into);FfiConverterOptionalString.write(value.lnurlDescription,into);FfiConverterOptionalTypeConversionInfo.write(value.conversionInfo,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.parentPaymentId)+FfiConverterOptionalTypeLnurlPayInfo.allocationSize(value.lnurlPayInfo)+FfiConverterOptionalTypeLnurlWithdrawInfo.allocationSize(value.lnurlWithdrawInfo)+FfiConverterOptionalString.allocationSize(value.lnurlDescription)+FfiConverterOptionalTypeConversionInfo.allocationSize(value.conversionInfo);}}return new FFIConverter();})();/**
1198
1207
  * Generated factory for {@link PaymentRequestSource} record objects.
1199
1208
  */export const PaymentRequestSource=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1200
1209
  * Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
@@ -1381,30 +1390,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1381
1390
  */new:create,/**
1382
1391
  * Defaults specified in the {@link breez_sdk_spark} crate.
1383
1392
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRegisterLightningAddressRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{username:FfiConverterString.read(from),description:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.username,into);FfiConverterOptionalString.write(value.description,into);}allocationSize(value){return FfiConverterString.allocationSize(value.username)+FfiConverterOptionalString.allocationSize(value.description);}}return new FFIConverter();})();/**
1384
- * Request to register a new webhook.
1385
- *//**
1386
- * Generated factory for {@link RegisterWebhookRequest} record objects.
1387
- */export const RegisterWebhookRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1388
- * Create a frozen instance of {@link RegisterWebhookRequest}, with defaults specified
1389
- * in Rust, in the {@link breez_sdk_spark} crate.
1390
- */create,/**
1391
- * Create a frozen instance of {@link RegisterWebhookRequest}, with defaults specified
1392
- * in Rust, in the {@link breez_sdk_spark} crate.
1393
- */new:create,/**
1394
- * Defaults specified in the {@link breez_sdk_spark} crate.
1395
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRegisterWebhookRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{url:FfiConverterString.read(from),secret:FfiConverterString.read(from),eventTypes:FfiConverterArrayTypeWebhookEventType.read(from)};}write(value,into){FfiConverterString.write(value.url,into);FfiConverterString.write(value.secret,into);FfiConverterArrayTypeWebhookEventType.write(value.eventTypes,into);}allocationSize(value){return FfiConverterString.allocationSize(value.url)+FfiConverterString.allocationSize(value.secret)+FfiConverterArrayTypeWebhookEventType.allocationSize(value.eventTypes);}}return new FFIConverter();})();/**
1396
- * Response from registering a webhook.
1397
- *//**
1398
- * Generated factory for {@link RegisterWebhookResponse} record objects.
1399
- */export const RegisterWebhookResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1400
- * Create a frozen instance of {@link RegisterWebhookResponse}, with defaults specified
1401
- * in Rust, in the {@link breez_sdk_spark} crate.
1402
- */create,/**
1403
- * Create a frozen instance of {@link RegisterWebhookResponse}, with defaults specified
1404
- * in Rust, in the {@link breez_sdk_spark} crate.
1405
- */new:create,/**
1406
- * Defaults specified in the {@link breez_sdk_spark} crate.
1407
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRegisterWebhookResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{webhookId:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.webhookId,into);}allocationSize(value){return FfiConverterString.allocationSize(value.webhookId);}}return new FFIConverter();})();/**
1408
1393
  * Generated factory for {@link RestResponse} record objects.
1409
1394
  */export const RestResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1410
1395
  * Create a frozen instance of {@link RestResponse}, with defaults specified
@@ -1488,7 +1473,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1488
1473
  * in Rust, in the {@link breez_sdk_spark} crate.
1489
1474
  */new:create,/**
1490
1475
  * Defaults specified in the {@link breez_sdk_spark} crate.
1491
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSetLnurlMetadataItem=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentHash:FfiConverterString.read(from),senderComment:FfiConverterOptionalString.read(from),nostrZapRequest:FfiConverterOptionalString.read(from),nostrZapReceipt:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.paymentHash,into);FfiConverterOptionalString.write(value.senderComment,into);FfiConverterOptionalString.write(value.nostrZapRequest,into);FfiConverterOptionalString.write(value.nostrZapReceipt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterOptionalString.allocationSize(value.senderComment)+FfiConverterOptionalString.allocationSize(value.nostrZapRequest)+FfiConverterOptionalString.allocationSize(value.nostrZapReceipt);}}return new FFIConverter();})();/**
1476
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSetLnurlMetadataItem=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentHash:FfiConverterString.read(from),senderComment:FfiConverterOptionalString.read(from),nostrZapRequest:FfiConverterOptionalString.read(from),nostrZapReceipt:FfiConverterOptionalString.read(from),preimage:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.paymentHash,into);FfiConverterOptionalString.write(value.senderComment,into);FfiConverterOptionalString.write(value.nostrZapRequest,into);FfiConverterOptionalString.write(value.nostrZapReceipt,into);FfiConverterOptionalString.write(value.preimage,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterOptionalString.allocationSize(value.senderComment)+FfiConverterOptionalString.allocationSize(value.nostrZapRequest)+FfiConverterOptionalString.allocationSize(value.nostrZapReceipt)+FfiConverterOptionalString.allocationSize(value.preimage);}}return new FFIConverter();})();/**
1492
1477
  * Generated factory for {@link SignMessageRequest} record objects.
1493
1478
  */export const SignMessageRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1494
1479
  * Create a frozen instance of {@link SignMessageRequest}, with defaults specified
@@ -1529,22 +1514,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1529
1514
  */new:create,/**
1530
1515
  * Defaults specified in the {@link breez_sdk_spark} crate.
1531
1516
  */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();})();/**
1532
- * Configuration for a custom Spark environment.
1533
- *
1534
- * When set on [`Config`], overrides the default Spark operator pool,
1535
- * service provider, threshold, and token settings. This allows connecting
1536
- * to alternative Spark deployments (e.g. dev/staging environments).
1537
- *//**
1538
- * Generated factory for {@link SparkConfig} record objects.
1539
- */export const SparkConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1540
- * Create a frozen instance of {@link SparkConfig}, with defaults specified
1541
- * in Rust, in the {@link breez_sdk_spark} crate.
1542
- */create,/**
1543
- * Create a frozen instance of {@link SparkConfig}, with defaults specified
1544
- * in Rust, in the {@link breez_sdk_spark} crate.
1545
- */new:create,/**
1546
- * Defaults specified in the {@link breez_sdk_spark} crate.
1547
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{coordinatorIdentifier:FfiConverterString.read(from),threshold:FfiConverterUInt32.read(from),signingOperators:FfiConverterArrayTypeSparkSigningOperator.read(from),sspConfig:FfiConverterTypeSparkSspConfig.read(from),expectedWithdrawBondSats:FfiConverterUInt64.read(from),expectedWithdrawRelativeBlockLocktime:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.coordinatorIdentifier,into);FfiConverterUInt32.write(value.threshold,into);FfiConverterArrayTypeSparkSigningOperator.write(value.signingOperators,into);FfiConverterTypeSparkSspConfig.write(value.sspConfig,into);FfiConverterUInt64.write(value.expectedWithdrawBondSats,into);FfiConverterUInt64.write(value.expectedWithdrawRelativeBlockLocktime,into);}allocationSize(value){return FfiConverterString.allocationSize(value.coordinatorIdentifier)+FfiConverterUInt32.allocationSize(value.threshold)+FfiConverterArrayTypeSparkSigningOperator.allocationSize(value.signingOperators)+FfiConverterTypeSparkSspConfig.allocationSize(value.sspConfig)+FfiConverterUInt64.allocationSize(value.expectedWithdrawBondSats)+FfiConverterUInt64.allocationSize(value.expectedWithdrawRelativeBlockLocktime);}}return new FFIConverter();})();/**
1548
1517
  * Generated factory for {@link SparkHtlcDetails} record objects.
1549
1518
  */export const SparkHtlcDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1550
1519
  * Create a frozen instance of {@link SparkHtlcDetails}, with defaults specified
@@ -1585,30 +1554,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1585
1554
  */new:create,/**
1586
1555
  * Defaults specified in the {@link breez_sdk_spark} crate.
1587
1556
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkInvoicePaymentDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{description:FfiConverterOptionalString.read(from),invoice:FfiConverterString.read(from)};}write(value,into){FfiConverterOptionalString.write(value.description,into);FfiConverterString.write(value.invoice,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.description)+FfiConverterString.allocationSize(value.invoice);}}return new FFIConverter();})();/**
1588
- * A Spark signing operator.
1589
- *//**
1590
- * Generated factory for {@link SparkSigningOperator} record objects.
1591
- */export const SparkSigningOperator=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1592
- * Create a frozen instance of {@link SparkSigningOperator}, with defaults specified
1593
- * in Rust, in the {@link breez_sdk_spark} crate.
1594
- */create,/**
1595
- * Create a frozen instance of {@link SparkSigningOperator}, with defaults specified
1596
- * in Rust, in the {@link breez_sdk_spark} crate.
1597
- */new:create,/**
1598
- * Defaults specified in the {@link breez_sdk_spark} crate.
1599
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkSigningOperator=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterUInt32.read(from),identifier:FfiConverterString.read(from),address:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from)};}write(value,into){FfiConverterUInt32.write(value.id,into);FfiConverterString.write(value.identifier,into);FfiConverterString.write(value.address,into);FfiConverterString.write(value.identityPublicKey,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.id)+FfiConverterString.allocationSize(value.identifier)+FfiConverterString.allocationSize(value.address)+FfiConverterString.allocationSize(value.identityPublicKey);}}return new FFIConverter();})();/**
1600
- * Configuration for the Spark Service Provider (SSP).
1601
- *//**
1602
- * Generated factory for {@link SparkSspConfig} record objects.
1603
- */export const SparkSspConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1604
- * Create a frozen instance of {@link SparkSspConfig}, with defaults specified
1605
- * in Rust, in the {@link breez_sdk_spark} crate.
1606
- */create,/**
1607
- * Create a frozen instance of {@link SparkSspConfig}, with defaults specified
1608
- * in Rust, in the {@link breez_sdk_spark} crate.
1609
- */new:create,/**
1610
- * Defaults specified in the {@link breez_sdk_spark} crate.
1611
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSparkSspConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{baseUrl:FfiConverterString.read(from),identityPublicKey:FfiConverterString.read(from),schemaEndpoint:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.baseUrl,into);FfiConverterString.write(value.identityPublicKey,into);FfiConverterOptionalString.write(value.schemaEndpoint,into);}allocationSize(value){return FfiConverterString.allocationSize(value.baseUrl)+FfiConverterString.allocationSize(value.identityPublicKey)+FfiConverterOptionalString.allocationSize(value.schemaEndpoint);}}return new FFIConverter();})();/**
1612
1557
  * The status of the Spark network services relevant to the SDK.
1613
1558
  *//**
1614
1559
  * Generated factory for {@link SparkStatus} record objects.
@@ -1626,17 +1571,15 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1626
1571
  * When configured, the SDK automatically monitors the Bitcoin balance after each
1627
1572
  * wallet sync. When the balance exceeds the configured threshold plus the reserved
1628
1573
  * amount, the SDK automatically converts the excess balance (above the reserve)
1629
- * to the active stable token.
1574
+ * to the specified stable token.
1630
1575
  *
1631
1576
  * When the balance is held in a stable token, Bitcoin payments can still be sent.
1632
1577
  * The SDK automatically detects when there's not enough Bitcoin balance to cover a
1633
1578
  * payment and auto-populates the token-to-Bitcoin conversion options to facilitate
1634
1579
  * the payment.
1635
- *
1636
- * The active token can be changed at runtime via [`UpdateUserSettingsRequest`].
1637
1580
  *//**
1638
1581
  * Generated factory for {@link StableBalanceConfig} record objects.
1639
- */export const StableBalanceConfig=(()=>{const defaults=()=>({defaultActiveLabel:undefined,thresholdSats:undefined,maxSlippageBps:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1582
+ */export const StableBalanceConfig=(()=>{const defaults=()=>({thresholdSats:undefined,maxSlippageBps:undefined,reservedSats:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1640
1583
  * Create a frozen instance of {@link StableBalanceConfig}, with defaults specified
1641
1584
  * in Rust, in the {@link breez_sdk_spark} crate.
1642
1585
  */create,/**
@@ -1644,19 +1587,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1644
1587
  * in Rust, in the {@link breez_sdk_spark} crate.
1645
1588
  */new:create,/**
1646
1589
  * Defaults specified in the {@link breez_sdk_spark} crate.
1647
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStableBalanceConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{tokens:FfiConverterArrayTypeStableBalanceToken.read(from),defaultActiveLabel:FfiConverterOptionalString.read(from),thresholdSats:FfiConverterOptionalUInt64.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterArrayTypeStableBalanceToken.write(value.tokens,into);FfiConverterOptionalString.write(value.defaultActiveLabel,into);FfiConverterOptionalUInt64.write(value.thresholdSats,into);FfiConverterOptionalUInt32.write(value.maxSlippageBps,into);}allocationSize(value){return FfiConverterArrayTypeStableBalanceToken.allocationSize(value.tokens)+FfiConverterOptionalString.allocationSize(value.defaultActiveLabel)+FfiConverterOptionalUInt64.allocationSize(value.thresholdSats)+FfiConverterOptionalUInt32.allocationSize(value.maxSlippageBps);}}return new FFIConverter();})();/**
1648
- * A stable token that can be used for automatic balance conversion.
1649
- *//**
1650
- * Generated factory for {@link StableBalanceToken} record objects.
1651
- */export const StableBalanceToken=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1652
- * Create a frozen instance of {@link StableBalanceToken}, with defaults specified
1653
- * in Rust, in the {@link breez_sdk_spark} crate.
1654
- */create,/**
1655
- * Create a frozen instance of {@link StableBalanceToken}, with defaults specified
1656
- * in Rust, in the {@link breez_sdk_spark} crate.
1657
- */new:create,/**
1658
- * Defaults specified in the {@link breez_sdk_spark} crate.
1659
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStableBalanceToken=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{label:FfiConverterString.read(from),tokenIdentifier:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.label,into);FfiConverterString.write(value.tokenIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.label)+FfiConverterString.allocationSize(value.tokenIdentifier);}}return new FFIConverter();})();/**
1590
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStableBalanceConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{tokenIdentifier:FfiConverterString.read(from),thresholdSats:FfiConverterOptionalUInt64.read(from),maxSlippageBps:FfiConverterOptionalUInt32.read(from),reservedSats:FfiConverterOptionalUInt64.read(from)};}write(value,into){FfiConverterString.write(value.tokenIdentifier,into);FfiConverterOptionalUInt64.write(value.thresholdSats,into);FfiConverterOptionalUInt32.write(value.maxSlippageBps,into);FfiConverterOptionalUInt64.write(value.reservedSats,into);}allocationSize(value){return FfiConverterString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalUInt64.allocationSize(value.thresholdSats)+FfiConverterOptionalUInt32.allocationSize(value.maxSlippageBps)+FfiConverterOptionalUInt64.allocationSize(value.reservedSats);}}return new FFIConverter();})();/**
1660
1591
  * Storage-internal variant of [`ListPaymentsRequest`] that uses
1661
1592
  * [`StoragePaymentDetailsFilter`] instead of the public [`PaymentDetailsFilter`].
1662
1593
  *//**
@@ -1756,18 +1687,6 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1756
1687
  */new:create,/**
1757
1688
  * Defaults specified in the {@link breez_sdk_spark} crate.
1758
1689
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnfreezeIssuerTokenResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{impactedOutputIds:FfiConverterArrayString.read(from),impactedTokenAmount:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterArrayString.write(value.impactedOutputIds,into);FfiConverterTypeu128.write(value.impactedTokenAmount,into);}allocationSize(value){return FfiConverterArrayString.allocationSize(value.impactedOutputIds)+FfiConverterTypeu128.allocationSize(value.impactedTokenAmount);}}return new FFIConverter();})();/**
1759
- * Request to unregister an existing webhook.
1760
- *//**
1761
- * Generated factory for {@link UnregisterWebhookRequest} record objects.
1762
- */export const UnregisterWebhookRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1763
- * Create a frozen instance of {@link UnregisterWebhookRequest}, with defaults specified
1764
- * in Rust, in the {@link breez_sdk_spark} crate.
1765
- */create,/**
1766
- * Create a frozen instance of {@link UnregisterWebhookRequest}, with defaults specified
1767
- * in Rust, in the {@link breez_sdk_spark} crate.
1768
- */new:create,/**
1769
- * Defaults specified in the {@link breez_sdk_spark} crate.
1770
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnregisterWebhookRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{webhookId:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.webhookId,into);}allocationSize(value){return FfiConverterString.allocationSize(value.webhookId);}}return new FFIConverter();})();/**
1771
1690
  * Generated factory for {@link UnversionedRecordChange} record objects.
1772
1691
  */export const UnversionedRecordChange=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1773
1692
  * Create a frozen instance of {@link UnversionedRecordChange}, with defaults specified
@@ -1791,7 +1710,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1791
1710
  * Defaults specified in the {@link breez_sdk_spark} crate.
1792
1711
  */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUpdateContactRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier);}}return new FFIConverter();})();/**
1793
1712
  * Generated factory for {@link UpdateUserSettingsRequest} record objects.
1794
- */export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({stableBalanceActiveLabel:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1713
+ */export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1795
1714
  * Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
1796
1715
  * in Rust, in the {@link breez_sdk_spark} crate.
1797
1716
  */create,/**
@@ -1799,7 +1718,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1799
1718
  * in Rust, in the {@link breez_sdk_spark} crate.
1800
1719
  */new:create,/**
1801
1720
  * Defaults specified in the {@link breez_sdk_spark} crate.
1802
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUpdateUserSettingsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{sparkPrivateModeEnabled:FfiConverterOptionalBool.read(from),stableBalanceActiveLabel:FfiConverterOptionalTypeStableBalanceActiveLabel.read(from)};}write(value,into){FfiConverterOptionalBool.write(value.sparkPrivateModeEnabled,into);FfiConverterOptionalTypeStableBalanceActiveLabel.write(value.stableBalanceActiveLabel,into);}allocationSize(value){return FfiConverterOptionalBool.allocationSize(value.sparkPrivateModeEnabled)+FfiConverterOptionalTypeStableBalanceActiveLabel.allocationSize(value.stableBalanceActiveLabel);}}return new FFIConverter();})();/**
1721
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUpdateUserSettingsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{sparkPrivateModeEnabled:FfiConverterOptionalBool.read(from)};}write(value,into){FfiConverterOptionalBool.write(value.sparkPrivateModeEnabled,into);}allocationSize(value){return FfiConverterOptionalBool.allocationSize(value.sparkPrivateModeEnabled);}}return new FFIConverter();})();/**
1803
1722
  * Generated factory for {@link UrlSuccessActionData} record objects.
1804
1723
  */export const UrlSuccessActionData=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1805
1724
  * Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
@@ -1819,7 +1738,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1819
1738
  * in Rust, in the {@link breez_sdk_spark} crate.
1820
1739
  */new:create,/**
1821
1740
  * Defaults specified in the {@link breez_sdk_spark} crate.
1822
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUserSettings=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{sparkPrivateModeEnabled:FfiConverterBool.read(from),stableBalanceActiveLabel:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterBool.write(value.sparkPrivateModeEnabled,into);FfiConverterOptionalString.write(value.stableBalanceActiveLabel,into);}allocationSize(value){return FfiConverterBool.allocationSize(value.sparkPrivateModeEnabled)+FfiConverterOptionalString.allocationSize(value.stableBalanceActiveLabel);}}return new FFIConverter();})();/**
1741
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUserSettings=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{sparkPrivateModeEnabled:FfiConverterBool.read(from)};}write(value,into){FfiConverterBool.write(value.sparkPrivateModeEnabled,into);}allocationSize(value){return FfiConverterBool.allocationSize(value.sparkPrivateModeEnabled);}}return new FFIConverter();})();/**
1823
1742
  * Generated factory for {@link Utxo} record objects.
1824
1743
  */export const Utxo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1825
1744
  * Create a frozen instance of {@link Utxo}, with defaults specified
@@ -1843,19 +1762,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
1843
1762
  * in Rust, in the {@link breez_sdk_spark} crate.
1844
1763
  */new:create,/**
1845
1764
  * Defaults specified in the {@link breez_sdk_spark} crate.
1846
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWallet=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{seed:FfiConverterTypeSeed.read(from),label:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeSeed.write(value.seed,into);FfiConverterString.write(value.label,into);}allocationSize(value){return FfiConverterTypeSeed.allocationSize(value.seed)+FfiConverterString.allocationSize(value.label);}}return new FFIConverter();})();/**
1847
- * A registered webhook entry.
1848
- *//**
1849
- * Generated factory for {@link Webhook} record objects.
1850
- */export const Webhook=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
1851
- * Create a frozen instance of {@link Webhook}, with defaults specified
1852
- * in Rust, in the {@link breez_sdk_spark} crate.
1853
- */create,/**
1854
- * Create a frozen instance of {@link Webhook}, with defaults specified
1855
- * in Rust, in the {@link breez_sdk_spark} crate.
1856
- */new:create,/**
1857
- * Defaults specified in the {@link breez_sdk_spark} crate.
1858
- */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWebhook=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),url:FfiConverterString.read(from),eventTypes:FfiConverterArrayTypeWebhookEventType.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.url,into);FfiConverterArrayTypeWebhookEventType.write(value.eventTypes,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.url)+FfiConverterArrayTypeWebhookEventType.allocationSize(value.eventTypes);}}return new FFIConverter();})();const stringConverter={stringToBytes:s=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(s,status)),bytesToString:ab=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(ab,status)),stringByteLength:s=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(s,status))};const FfiConverterString=uniffiCreateFfiConverterString(stringConverter);/**
1765
+ */defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWallet=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{seed:FfiConverterTypeSeed.read(from),label:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeSeed.write(value.seed,into);FfiConverterString.write(value.label,into);}allocationSize(value){return FfiConverterTypeSeed.allocationSize(value.seed)+FfiConverterString.allocationSize(value.label);}}return new FFIConverter();})();const stringConverter={stringToBytes:s=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(s,status)),bytesToString:ab=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(ab,status)),stringByteLength:s=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(s,status))};const FfiConverterString=uniffiCreateFfiConverterString(stringConverter);/**
1859
1766
  * Typealias from the type name used in the UDL file to the custom type. This
1860
1767
  * is needed because the UDL type name is used in function/method signatures.
1861
1768
  */// FfiConverter for U128
@@ -1883,14 +1790,7 @@ export let Amount_Tags=/*#__PURE__*/function(Amount_Tags){Amount_Tags["Bitcoin"]
1883
1790
  * This field is private and should not be used, use `tag` instead.
1884
1791
  */[uniffiTypeNameSymbol]='Amount';tag=Amount_Tags.Currency;constructor(inner){super('Amount','Currency');this.inner=Object.freeze(inner);}static new(inner){return new Currency_(inner);}static instanceOf(obj){return obj.tag===Amount_Tags.Currency;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='Amount';}return Object.freeze({instanceOf,Bitcoin:Bitcoin_,Currency:Currency_});})();// FfiConverter for enum Amount
1885
1792
  const FfiConverterTypeAmount=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new Amount.Bitcoin({amountMsat:FfiConverterUInt64.read(from)});case 2:return new Amount.Currency({iso4217Code:FfiConverterString.read(from),fractionalAmount:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case Amount_Tags.Bitcoin:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt64.write(inner.amountMsat,into);return;}case Amount_Tags.Currency:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.iso4217Code,into);FfiConverterUInt64.write(inner.fractionalAmount,into);return;}default:// Throwing from here means that Amount_Tags hasn't matched an ordinal.
1886
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Amount_Tags.Bitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amountMsat);return size;}case Amount_Tags.Currency:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.iso4217Code);size+=FfiConverterUInt64.allocationSize(inner.fractionalAmount);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
1887
- * The reason why a conversion amount was adjusted from the originally requested value.
1888
- */export let AmountAdjustmentReason=/*#__PURE__*/function(AmountAdjustmentReason){/**
1889
- * The amount was increased to meet the minimum conversion limit.
1890
- */AmountAdjustmentReason[AmountAdjustmentReason["FlooredToMinLimit"]=0]="FlooredToMinLimit";/**
1891
- * The amount was increased to convert the full token balance,
1892
- * avoiding a remaining balance below the minimum conversion limit (token dust).
1893
- */AmountAdjustmentReason[AmountAdjustmentReason["IncreasedToAvoidDust"]=1]="IncreasedToAvoidDust";return AmountAdjustmentReason;}({});const FfiConverterTypeAmountAdjustmentReason=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return AmountAdjustmentReason.FlooredToMinLimit;case 2:return AmountAdjustmentReason.IncreasedToAvoidDust;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case AmountAdjustmentReason.FlooredToMinLimit:return ordinalConverter.write(1,into);case AmountAdjustmentReason.IncreasedToAvoidDust:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: AssetFilter
1793
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Amount_Tags.Bitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt64.allocationSize(inner.amountMsat);return size;}case Amount_Tags.Currency:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.iso4217Code);size+=FfiConverterUInt64.allocationSize(inner.fractionalAmount);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: AssetFilter
1894
1794
  export let AssetFilter_Tags=/*#__PURE__*/function(AssetFilter_Tags){AssetFilter_Tags["Bitcoin"]="Bitcoin";AssetFilter_Tags["Token"]="Token";return AssetFilter_Tags;}({});/**
1895
1795
  * A field of [`ListPaymentsRequest`] when listing payments filtered by asset
1896
1796
  */export const AssetFilter=(()=>{class Bitcoin_ extends UniffiEnum{/**
@@ -1905,33 +1805,7 @@ export let AssetFilter_Tags=/*#__PURE__*/function(AssetFilter_Tags){AssetFilter_
1905
1805
  const FfiConverterTypeAssetFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new AssetFilter.Bitcoin();case 2:return new AssetFilter.Token({tokenIdentifier:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case AssetFilter_Tags.Bitcoin:{ordinalConverter.write(1,into);return;}case AssetFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalString.write(inner.tokenIdentifier,into);return;}default:// Throwing from here means that AssetFilter_Tags hasn't matched an ordinal.
1906
1806
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case AssetFilter_Tags.Bitcoin:{return ordinalConverter.allocationSize(1);}case AssetFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let BitcoinNetwork=/*#__PURE__*/function(BitcoinNetwork){/**
1907
1807
  * Mainnet
1908
- */BitcoinNetwork[BitcoinNetwork["Bitcoin"]=0]="Bitcoin";BitcoinNetwork[BitcoinNetwork["Testnet3"]=1]="Testnet3";BitcoinNetwork[BitcoinNetwork["Testnet4"]=2]="Testnet4";BitcoinNetwork[BitcoinNetwork["Signet"]=3]="Signet";BitcoinNetwork[BitcoinNetwork["Regtest"]=4]="Regtest";return BitcoinNetwork;}({});const FfiConverterTypeBitcoinNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return BitcoinNetwork.Bitcoin;case 2:return BitcoinNetwork.Testnet3;case 3:return BitcoinNetwork.Testnet4;case 4:return BitcoinNetwork.Signet;case 5:return BitcoinNetwork.Regtest;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case BitcoinNetwork.Bitcoin:return ordinalConverter.write(1,into);case BitcoinNetwork.Testnet3:return ordinalConverter.write(2,into);case BitcoinNetwork.Testnet4:return ordinalConverter.write(3,into);case BitcoinNetwork.Signet:return ordinalConverter.write(4,into);case BitcoinNetwork.Regtest:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: BuyBitcoinRequest
1909
- export let BuyBitcoinRequest_Tags=/*#__PURE__*/function(BuyBitcoinRequest_Tags){BuyBitcoinRequest_Tags["Moonpay"]="Moonpay";BuyBitcoinRequest_Tags["CashApp"]="CashApp";return BuyBitcoinRequest_Tags;}({});/**
1910
- * The available providers for buying Bitcoin
1911
- * Request to buy Bitcoin using an external provider.
1912
- *
1913
- * Each variant carries only the parameters relevant to that provider.
1914
- */export const BuyBitcoinRequest=(()=>{/**
1915
- * `MoonPay`: Fiat-to-Bitcoin via credit card, Apple Pay, etc.
1916
- * Uses an on-chain deposit address.
1917
- */class Moonpay_ extends UniffiEnum{/**
1918
- * @private
1919
- * This field is private and should not be used, use `tag` instead.
1920
- */[uniffiTypeNameSymbol]='BuyBitcoinRequest';tag=BuyBitcoinRequest_Tags.Moonpay;constructor(inner){super('BuyBitcoinRequest','Moonpay');this.inner=Object.freeze(inner);}static new(inner){return new Moonpay_(inner);}static instanceOf(obj){return obj.tag===BuyBitcoinRequest_Tags.Moonpay;}}/**
1921
- * `CashApp`: Pay via the Lightning Network.
1922
- * Generates a bolt11 invoice and returns a `cash.app` deep link.
1923
- * Only available on mainnet.
1924
- */class CashApp_ extends UniffiEnum{/**
1925
- * @private
1926
- * This field is private and should not be used, use `tag` instead.
1927
- */[uniffiTypeNameSymbol]='BuyBitcoinRequest';tag=BuyBitcoinRequest_Tags.CashApp;constructor(inner){super('BuyBitcoinRequest','CashApp');this.inner=Object.freeze(inner);}static new(inner){return new CashApp_(inner);}static instanceOf(obj){return obj.tag===BuyBitcoinRequest_Tags.CashApp;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='BuyBitcoinRequest';}return Object.freeze({instanceOf,Moonpay:Moonpay_,CashApp:CashApp_});})();/**
1928
- * The available providers for buying Bitcoin
1929
- * Request to buy Bitcoin using an external provider.
1930
- *
1931
- * Each variant carries only the parameters relevant to that provider.
1932
- */// FfiConverter for enum BuyBitcoinRequest
1933
- const FfiConverterTypeBuyBitcoinRequest=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new BuyBitcoinRequest.Moonpay({lockedAmountSat:FfiConverterOptionalUInt64.read(from),redirectUrl:FfiConverterOptionalString.read(from)});case 2:return new BuyBitcoinRequest.CashApp({amountSats:FfiConverterOptionalUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalUInt64.write(inner.lockedAmountSat,into);FfiConverterOptionalString.write(inner.redirectUrl,into);return;}case BuyBitcoinRequest_Tags.CashApp:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalUInt64.write(inner.amountSats,into);return;}default:// Throwing from here means that BuyBitcoinRequest_Tags hasn't matched an ordinal.
1934
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt64.allocationSize(inner.lockedAmountSat);size+=FfiConverterOptionalString.allocationSize(inner.redirectUrl);return size;}case BuyBitcoinRequest_Tags.CashApp:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let ChainApiType=/*#__PURE__*/function(ChainApiType){ChainApiType[ChainApiType["Esplora"]=0]="Esplora";ChainApiType[ChainApiType["MempoolSpace"]=1]="MempoolSpace";return ChainApiType;}({});const FfiConverterTypeChainApiType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ChainApiType.Esplora;case 2:return ChainApiType.MempoolSpace;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ChainApiType.Esplora:return ordinalConverter.write(1,into);case ChainApiType.MempoolSpace:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: ChainServiceError
1808
+ */BitcoinNetwork[BitcoinNetwork["Bitcoin"]=0]="Bitcoin";BitcoinNetwork[BitcoinNetwork["Testnet3"]=1]="Testnet3";BitcoinNetwork[BitcoinNetwork["Testnet4"]=2]="Testnet4";BitcoinNetwork[BitcoinNetwork["Signet"]=3]="Signet";BitcoinNetwork[BitcoinNetwork["Regtest"]=4]="Regtest";return BitcoinNetwork;}({});const FfiConverterTypeBitcoinNetwork=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return BitcoinNetwork.Bitcoin;case 2:return BitcoinNetwork.Testnet3;case 3:return BitcoinNetwork.Testnet4;case 4:return BitcoinNetwork.Signet;case 5:return BitcoinNetwork.Regtest;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case BitcoinNetwork.Bitcoin:return ordinalConverter.write(1,into);case BitcoinNetwork.Testnet3:return ordinalConverter.write(2,into);case BitcoinNetwork.Testnet4:return ordinalConverter.write(3,into);case BitcoinNetwork.Signet:return ordinalConverter.write(4,into);case BitcoinNetwork.Regtest:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();export let ChainApiType=/*#__PURE__*/function(ChainApiType){ChainApiType[ChainApiType["Esplora"]=0]="Esplora";ChainApiType[ChainApiType["MempoolSpace"]=1]="MempoolSpace";return ChainApiType;}({});const FfiConverterTypeChainApiType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ChainApiType.Esplora;case 2:return ChainApiType.MempoolSpace;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ChainApiType.Esplora:return ordinalConverter.write(1,into);case ChainApiType.MempoolSpace:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: ChainServiceError
1935
1809
  // Enum: ChainServiceError
1936
1810
  export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){ChainServiceError_Tags["InvalidAddress"]="InvalidAddress";ChainServiceError_Tags["ServiceConnectivity"]="ServiceConnectivity";ChainServiceError_Tags["Generic"]="Generic";return ChainServiceError_Tags;}({});export const ChainServiceError=(()=>{class InvalidAddress_ extends UniffiError{/**
1937
1811
  * @private
@@ -1971,17 +1845,13 @@ const FfiConverterTypeConversionPurpose=(()=>{const ordinalConverter=FfiConverte
1971
1845
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionPurpose_Tags.OngoingPayment:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.paymentRequest);return size;}case ConversionPurpose_Tags.SelfTransfer:{return ordinalConverter.allocationSize(2);}case ConversionPurpose_Tags.AutoConversion:{return ordinalConverter.allocationSize(3);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
1972
1846
  * The status of the conversion
1973
1847
  */export let ConversionStatus=/*#__PURE__*/function(ConversionStatus){/**
1974
- * Conversion is in-flight (queued or started, not yet completed)
1975
- */ConversionStatus[ConversionStatus["Pending"]=0]="Pending";/**
1976
1848
  * The conversion was successful
1977
- */ConversionStatus[ConversionStatus["Completed"]=1]="Completed";/**
1978
- * The conversion failed (e.g., the initial send payment failed)
1979
- */ConversionStatus[ConversionStatus["Failed"]=2]="Failed";/**
1849
+ */ConversionStatus[ConversionStatus["Completed"]=0]="Completed";/**
1980
1850
  * The conversion failed and no refund was made yet, which requires action by the SDK to
1981
1851
  * perform the refund. This can happen if there was a failure during the conversion process.
1982
- */ConversionStatus[ConversionStatus["RefundNeeded"]=3]="RefundNeeded";/**
1852
+ */ConversionStatus[ConversionStatus["RefundNeeded"]=1]="RefundNeeded";/**
1983
1853
  * The conversion failed and a refund was made
1984
- */ConversionStatus[ConversionStatus["Refunded"]=4]="Refunded";return ConversionStatus;}({});const FfiConverterTypeConversionStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConversionStatus.Pending;case 2:return ConversionStatus.Completed;case 3:return ConversionStatus.Failed;case 4:return ConversionStatus.RefundNeeded;case 5:return ConversionStatus.Refunded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConversionStatus.Pending:return ordinalConverter.write(1,into);case ConversionStatus.Completed:return ordinalConverter.write(2,into);case ConversionStatus.Failed:return ordinalConverter.write(3,into);case ConversionStatus.RefundNeeded:return ordinalConverter.write(4,into);case ConversionStatus.Refunded:return ordinalConverter.write(5,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionType
1854
+ */ConversionStatus[ConversionStatus["Refunded"]=2]="Refunded";return ConversionStatus;}({});const FfiConverterTypeConversionStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConversionStatus.Completed;case 2:return ConversionStatus.RefundNeeded;case 3:return ConversionStatus.Refunded;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConversionStatus.Completed:return ordinalConverter.write(1,into);case ConversionStatus.RefundNeeded:return ordinalConverter.write(2,into);case ConversionStatus.Refunded:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionType
1985
1855
  export let ConversionType_Tags=/*#__PURE__*/function(ConversionType_Tags){ConversionType_Tags["FromBitcoin"]="FromBitcoin";ConversionType_Tags["ToBitcoin"]="ToBitcoin";return ConversionType_Tags;}({});export const ConversionType=(()=>{/**
1986
1856
  * Converting from Bitcoin to a token
1987
1857
  */class FromBitcoin_ extends UniffiEnum{/**
@@ -2336,12 +2206,12 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
2336
2206
  */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.SparkInvoice;constructor(inner){super('ReceivePaymentMethod','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.SparkInvoice;}}class BitcoinAddress_ extends UniffiEnum{/**
2337
2207
  * @private
2338
2208
  * This field is private and should not be used, use `tag` instead.
2339
- */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.BitcoinAddress;constructor(inner){super('ReceivePaymentMethod','BitcoinAddress');this.inner=Object.freeze(inner);}static new(inner){return new BitcoinAddress_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
2209
+ */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.BitcoinAddress;constructor(){super('ReceivePaymentMethod','BitcoinAddress');}static new(){return new BitcoinAddress_();}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.BitcoinAddress;}}class Bolt11Invoice_ extends UniffiEnum{/**
2340
2210
  * @private
2341
2211
  * This field is private and should not be used, use `tag` instead.
2342
2212
  */[uniffiTypeNameSymbol]='ReceivePaymentMethod';tag=ReceivePaymentMethod_Tags.Bolt11Invoice;constructor(inner){super('ReceivePaymentMethod','Bolt11Invoice');this.inner=Object.freeze(inner);}static new(inner){return new Bolt11Invoice_(inner);}static instanceOf(obj){return obj.tag===ReceivePaymentMethod_Tags.Bolt11Invoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ReceivePaymentMethod';}return Object.freeze({instanceOf,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_,BitcoinAddress:BitcoinAddress_,Bolt11Invoice:Bolt11Invoice_});})();// FfiConverter for enum ReceivePaymentMethod
2343
- const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress({newAddress:FfiConverterOptionalBool.read(from)});case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from),paymentHash:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.newAddress,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);FfiConverterOptionalString.write(inner.paymentHash,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
2344
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalBool.allocationSize(inner.newAddress);return size;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);size+=FfiConverterOptionalString.allocationSize(inner.paymentHash);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
2213
+ const FfiConverterTypeReceivePaymentMethod=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ReceivePaymentMethod.SparkAddress();case 2:return new ReceivePaymentMethod.SparkInvoice({amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),expiryTime:FfiConverterOptionalUInt64.read(from),description:FfiConverterOptionalString.read(from),senderPublicKey:FfiConverterOptionalString.read(from)});case 3:return new ReceivePaymentMethod.BitcoinAddress();case 4:return new ReceivePaymentMethod.Bolt11Invoice({description:FfiConverterString.read(from),amountSats:FfiConverterOptionalUInt64.read(from),expirySecs:FfiConverterOptionalUInt32.read(from),paymentHash:FfiConverterOptionalString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{ordinalConverter.write(1,into);return;}case ReceivePaymentMethod_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalTypeu128.write(inner.amount,into);FfiConverterOptionalString.write(inner.tokenIdentifier,into);FfiConverterOptionalUInt64.write(inner.expiryTime,into);FfiConverterOptionalString.write(inner.description,into);FfiConverterOptionalString.write(inner.senderPublicKey,into);return;}case ReceivePaymentMethod_Tags.BitcoinAddress:{ordinalConverter.write(3,into);return;}case ReceivePaymentMethod_Tags.Bolt11Invoice:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.description,into);FfiConverterOptionalUInt64.write(inner.amountSats,into);FfiConverterOptionalUInt32.write(inner.expirySecs,into);FfiConverterOptionalString.write(inner.paymentHash,into);return;}default:// Throwing from here means that ReceivePaymentMethod_Tags hasn't matched an ordinal.
2214
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ReceivePaymentMethod_Tags.SparkAddress:{return ordinalConverter.allocationSize(1);}case ReceivePaymentMethod_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalTypeu128.allocationSize(inner.amount);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);size+=FfiConverterOptionalUInt64.allocationSize(inner.expiryTime);size+=FfiConverterOptionalString.allocationSize(inner.description);size+=FfiConverterOptionalString.allocationSize(inner.senderPublicKey);return size;}case ReceivePaymentMethod_Tags.BitcoinAddress:{return ordinalConverter.allocationSize(3);}case ReceivePaymentMethod_Tags.Bolt11Invoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.description);size+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);size+=FfiConverterOptionalUInt32.allocationSize(inner.expirySecs);size+=FfiConverterOptionalString.allocationSize(inner.paymentHash);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: SdkError
2345
2215
  // Enum: SdkError
2346
2216
  export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["SparkError"]="SparkError";SdkError_Tags["InsufficientFunds"]="InsufficientFunds";SdkError_Tags["InvalidUuid"]="InvalidUuid";SdkError_Tags["InvalidInput"]="InvalidInput";SdkError_Tags["NetworkError"]="NetworkError";SdkError_Tags["StorageError"]="StorageError";SdkError_Tags["ChainServiceError"]="ChainServiceError";SdkError_Tags["MaxDepositClaimFeeExceeded"]="MaxDepositClaimFeeExceeded";SdkError_Tags["MissingUtxo"]="MissingUtxo";SdkError_Tags["LnurlError"]="LnurlError";SdkError_Tags["Signer"]="Signer";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
2347
2217
  * Error type for the `BreezSdk`
@@ -2392,7 +2262,7 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
2392
2262
  */// FfiConverter for enum SdkError
2393
2263
  const FfiConverterTypeSdkError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InsufficientFunds();case 3:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 4:return new SdkError.InvalidInput(FfiConverterString.read(from));case 5:return new SdkError.NetworkError(FfiConverterString.read(from));case 6:return new SdkError.StorageError(FfiConverterString.read(from));case 7:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 8:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 9:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 10:return new SdkError.LnurlError(FfiConverterString.read(from));case 11:return new SdkError.Signer(FfiConverterString.read(from));case 12:return new SdkError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkError_Tags.SparkError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InsufficientFunds:{ordinalConverter.write(2,into);return;}case SdkError_Tags.InvalidUuid:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Signer:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
2394
2264
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkError_Tags.SparkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InsufficientFunds:{return ordinalConverter.allocationSize(2);}case SdkError_Tags.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Signer:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
2395
- export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["Optimization"]="Optimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";SdkEvent_Tags["NewDeposits"]="NewDeposits";return SdkEvent_Tags;}({});/**
2265
+ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["Optimization"]="Optimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";return SdkEvent_Tags;}({});/**
2396
2266
  * Events emitted by the SDK
2397
2267
  */export const SdkEvent=(()=>{/**
2398
2268
  * Emitted when the wallet has been synchronized with the network
@@ -2422,14 +2292,11 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
2422
2292
  */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.Optimization;constructor(inner){super('SdkEvent','Optimization');this.inner=Object.freeze(inner);}static new(inner){return new Optimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.Optimization;}}class LightningAddressChanged_ extends UniffiEnum{/**
2423
2293
  * @private
2424
2294
  * This field is private and should not be used, use `tag` instead.
2425
- */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.LightningAddressChanged;constructor(inner){super('SdkEvent','LightningAddressChanged');this.inner=Object.freeze(inner);}static new(inner){return new LightningAddressChanged_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.LightningAddressChanged;}}class NewDeposits_ extends UniffiEnum{/**
2426
- * @private
2427
- * This field is private and should not be used, use `tag` instead.
2428
- */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.NewDeposits;constructor(inner){super('SdkEvent','NewDeposits');this.inner=Object.freeze(inner);}static new(inner){return new NewDeposits_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.NewDeposits;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,Optimization:Optimization_,LightningAddressChanged:LightningAddressChanged_,NewDeposits:NewDeposits_});})();/**
2295
+ */[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.LightningAddressChanged;constructor(inner){super('SdkEvent','LightningAddressChanged');this.inner=Object.freeze(inner);}static new(inner){return new LightningAddressChanged_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.LightningAddressChanged;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,Optimization:Optimization_,LightningAddressChanged:LightningAddressChanged_});})();/**
2429
2296
  * Events emitted by the SDK
2430
2297
  */// FfiConverter for enum SdkEvent
2431
- const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.Optimization({optimizationEvent:FfiConverterTypeOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});case 9:return new SdkEvent.NewDeposits({newDeposits:FfiConverterArrayTypeDepositInfo.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.Optimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}case SdkEvent_Tags.NewDeposits:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.newDeposits,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
2432
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.Optimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}case SdkEvent_Tags.NewDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.newDeposits);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
2298
+ const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.Optimization({optimizationEvent:FfiConverterTypeOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.Optimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
2299
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.Optimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
2433
2300
  export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
2434
2301
  * Represents the seed for wallet generation, either as a mnemonic phrase with an optional
2435
2302
  * passphrase or as raw entropy bytes.
@@ -2556,24 +2423,7 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
2556
2423
  * The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
2557
2424
  */SparkHtlcStatus[SparkHtlcStatus["PreimageShared"]=1]="PreimageShared";/**
2558
2425
  * The HTLC has been returned to the sender due to expiry
2559
- */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();})();// Enum: StableBalanceActiveLabel
2560
- export let StableBalanceActiveLabel_Tags=/*#__PURE__*/function(StableBalanceActiveLabel_Tags){StableBalanceActiveLabel_Tags["Set"]="Set";StableBalanceActiveLabel_Tags["Unset"]="Unset";return StableBalanceActiveLabel_Tags;}({});/**
2561
- * Specifies how to update the active stable balance token.
2562
- */export const StableBalanceActiveLabel=(()=>{/**
2563
- * Activate stable balance with the given label.
2564
- */class Set_ extends UniffiEnum{/**
2565
- * @private
2566
- * This field is private and should not be used, use `tag` instead.
2567
- */[uniffiTypeNameSymbol]='StableBalanceActiveLabel';tag=StableBalanceActiveLabel_Tags.Set;constructor(inner){super('StableBalanceActiveLabel','Set');this.inner=Object.freeze(inner);}static new(inner){return new Set_(inner);}static instanceOf(obj){return obj.tag===StableBalanceActiveLabel_Tags.Set;}}/**
2568
- * Deactivate stable balance.
2569
- */class Unset_ extends UniffiEnum{/**
2570
- * @private
2571
- * This field is private and should not be used, use `tag` instead.
2572
- */[uniffiTypeNameSymbol]='StableBalanceActiveLabel';tag=StableBalanceActiveLabel_Tags.Unset;constructor(){super('StableBalanceActiveLabel','Unset');}static new(){return new Unset_();}static instanceOf(obj){return obj.tag===StableBalanceActiveLabel_Tags.Unset;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='StableBalanceActiveLabel';}return Object.freeze({instanceOf,Set:Set_,Unset:Unset_});})();/**
2573
- * Specifies how to update the active stable balance token.
2574
- */// FfiConverter for enum StableBalanceActiveLabel
2575
- const FfiConverterTypeStableBalanceActiveLabel=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StableBalanceActiveLabel.Set({label:FfiConverterString.read(from)});case 2:return new StableBalanceActiveLabel.Unset();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StableBalanceActiveLabel_Tags.Set:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.label,into);return;}case StableBalanceActiveLabel_Tags.Unset:{ordinalConverter.write(2,into);return;}default:// Throwing from here means that StableBalanceActiveLabel_Tags hasn't matched an ordinal.
2576
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StableBalanceActiveLabel_Tags.Set:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.label);return size;}case StableBalanceActiveLabel_Tags.Unset:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: StorageError
2426
+ */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
2577
2427
  // Enum: StorageError
2578
2428
  export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageError_Tags["Connection"]="Connection";StorageError_Tags["Implementation"]="Implementation";StorageError_Tags["InitializationError"]="InitializationError";StorageError_Tags["Serialization"]="Serialization";StorageError_Tags["NotFound"]="NotFound";return StorageError_Tags;}({});/**
2579
2429
  * Errors that can occur during storage operations
@@ -2603,7 +2453,9 @@ export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageErr
2603
2453
  const FfiConverterTypeStorageError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StorageError.Connection(FfiConverterString.read(from));case 2:return new StorageError.Implementation(FfiConverterString.read(from));case 3:return new StorageError.InitializationError(FfiConverterString.read(from));case 4:return new StorageError.Serialization(FfiConverterString.read(from));case 5:return new StorageError.NotFound();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StorageError_Tags.Connection:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.Implementation:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.InitializationError:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.Serialization:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.NotFound:{ordinalConverter.write(5,into);return;}default:// Throwing from here means that StorageError_Tags hasn't matched an ordinal.
2604
2454
  throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StorageError_Tags.Connection:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.Implementation:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.InitializationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.Serialization:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.NotFound:{return ordinalConverter.allocationSize(5);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: StoragePaymentDetailsFilter
2605
2455
  export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePaymentDetailsFilter_Tags){StoragePaymentDetailsFilter_Tags["Spark"]="Spark";StoragePaymentDetailsFilter_Tags["Token"]="Token";StoragePaymentDetailsFilter_Tags["Lightning"]="Lightning";return StoragePaymentDetailsFilter_Tags;}({});/**
2606
- * Storage-internal variant of [`PaymentDetailsFilter`].
2456
+ * Storage-internal variant of [`PaymentDetailsFilter`] that includes the
2457
+ * `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
2458
+ * in the public API.
2607
2459
  */export const StoragePaymentDetailsFilter=(()=>{class Spark_ extends UniffiEnum{/**
2608
2460
  * @private
2609
2461
  * This field is private and should not be used, use `tag` instead.
@@ -2614,10 +2466,12 @@ export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePayment
2614
2466
  * @private
2615
2467
  * This field is private and should not be used, use `tag` instead.
2616
2468
  */[uniffiTypeNameSymbol]='StoragePaymentDetailsFilter';tag=StoragePaymentDetailsFilter_Tags.Lightning;constructor(inner){super('StoragePaymentDetailsFilter','Lightning');this.inner=Object.freeze(inner);}static new(inner){return new Lightning_(inner);}static instanceOf(obj){return obj.tag===StoragePaymentDetailsFilter_Tags.Lightning;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='StoragePaymentDetailsFilter';}return Object.freeze({instanceOf,Spark:Spark_,Token:Token_,Lightning:Lightning_});})();/**
2617
- * Storage-internal variant of [`PaymentDetailsFilter`].
2469
+ * Storage-internal variant of [`PaymentDetailsFilter`] that includes the
2470
+ * `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
2471
+ * in the public API.
2618
2472
  */// FfiConverter for enum StoragePaymentDetailsFilter
2619
- const FfiConverterTypeStoragePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StoragePaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionRefundNeeded:FfiConverterOptionalBool.read(from)});case 2:return new StoragePaymentDetailsFilter.Token({conversionRefundNeeded:FfiConverterOptionalBool.read(from),txHash:FfiConverterOptionalString.read(from),txType:FfiConverterOptionalTypeTokenTransactionType.read(from)});case 3:return new StoragePaymentDetailsFilter.Lightning({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);return;}case StoragePaymentDetailsFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);FfiConverterOptionalString.write(inner.txHash,into);FfiConverterOptionalTypeTokenTransactionType.write(inner.txType,into);return;}case StoragePaymentDetailsFilter_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);return;}default:// Throwing from here means that StoragePaymentDetailsFilter_Tags hasn't matched an ordinal.
2620
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);return size;}case StoragePaymentDetailsFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);size+=FfiConverterOptionalString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeTokenTransactionType.allocationSize(inner.txType);return size;}case StoragePaymentDetailsFilter_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SuccessAction
2473
+ const FfiConverterTypeStoragePaymentDetailsFilter=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StoragePaymentDetailsFilter.Spark({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),conversionRefundNeeded:FfiConverterOptionalBool.read(from)});case 2:return new StoragePaymentDetailsFilter.Token({conversionRefundNeeded:FfiConverterOptionalBool.read(from),txHash:FfiConverterOptionalString.read(from),txType:FfiConverterOptionalTypeTokenTransactionType.read(from)});case 3:return new StoragePaymentDetailsFilter.Lightning({htlcStatus:FfiConverterOptionalArrayTypeSparkHtlcStatus.read(from),hasLnurlPreimage:FfiConverterOptionalBool.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);return;}case StoragePaymentDetailsFilter_Tags.Token:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterOptionalBool.write(inner.conversionRefundNeeded,into);FfiConverterOptionalString.write(inner.txHash,into);FfiConverterOptionalTypeTokenTransactionType.write(inner.txType,into);return;}case StoragePaymentDetailsFilter_Tags.Lightning:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterOptionalArrayTypeSparkHtlcStatus.write(inner.htlcStatus,into);FfiConverterOptionalBool.write(inner.hasLnurlPreimage,into);return;}default:// Throwing from here means that StoragePaymentDetailsFilter_Tags hasn't matched an ordinal.
2474
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StoragePaymentDetailsFilter_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);return size;}case StoragePaymentDetailsFilter_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalBool.allocationSize(inner.conversionRefundNeeded);size+=FfiConverterOptionalString.allocationSize(inner.txHash);size+=FfiConverterOptionalTypeTokenTransactionType.allocationSize(inner.txType);return size;}case StoragePaymentDetailsFilter_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterOptionalArrayTypeSparkHtlcStatus.allocationSize(inner.htlcStatus);size+=FfiConverterOptionalBool.allocationSize(inner.hasLnurlPreimage);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SuccessAction
2621
2475
  export let SuccessAction_Tags=/*#__PURE__*/function(SuccessAction_Tags){SuccessAction_Tags["Aes"]="Aes";SuccessAction_Tags["Message"]="Message";SuccessAction_Tags["Url"]="Url";return SuccessAction_Tags;}({});/**
2622
2476
  * Supported success action types
2623
2477
  *
@@ -2682,54 +2536,22 @@ export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_
2682
2536
  * This field is private and should not be used, use `tag` instead.
2683
2537
  */[uniffiTypeNameSymbol]='UpdateDepositPayload';tag=UpdateDepositPayload_Tags.Refund;constructor(inner){super('UpdateDepositPayload','Refund');this.inner=Object.freeze(inner);}static new(inner){return new Refund_(inner);}static instanceOf(obj){return obj.tag===UpdateDepositPayload_Tags.Refund;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UpdateDepositPayload';}return Object.freeze({instanceOf,ClaimError:ClaimError_,Refund:Refund_});})();// FfiConverter for enum UpdateDepositPayload
2684
2538
  const FfiConverterTypeUpdateDepositPayload=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UpdateDepositPayload.ClaimError({error:FfiConverterTypeDepositClaimError.read(from)});case 2:return new UpdateDepositPayload.Refund({refundTxid:FfiConverterString.read(from),refundTx:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeDepositClaimError.write(inner.error,into);return;}case UpdateDepositPayload_Tags.Refund:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.refundTxid,into);FfiConverterString.write(inner.refundTx,into);return;}default:// Throwing from here means that UpdateDepositPayload_Tags hasn't matched an ordinal.
2685
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeDepositClaimError.allocationSize(inner.error);return size;}case UpdateDepositPayload_Tags.Refund:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterString.allocationSize(inner.refundTx);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: WebhookEventType
2686
- export let WebhookEventType_Tags=/*#__PURE__*/function(WebhookEventType_Tags){WebhookEventType_Tags["LightningReceiveFinished"]="LightningReceiveFinished";WebhookEventType_Tags["LightningSendFinished"]="LightningSendFinished";WebhookEventType_Tags["CoopExitFinished"]="CoopExitFinished";WebhookEventType_Tags["StaticDepositFinished"]="StaticDepositFinished";WebhookEventType_Tags["Unknown"]="Unknown";return WebhookEventType_Tags;}({});/**
2687
- * The type of event that triggers a webhook notification.
2688
- */export const WebhookEventType=(()=>{/**
2689
- * Triggered when a Lightning receive operation completes.
2690
- */class LightningReceiveFinished_ extends UniffiEnum{/**
2691
- * @private
2692
- * This field is private and should not be used, use `tag` instead.
2693
- */[uniffiTypeNameSymbol]='WebhookEventType';tag=WebhookEventType_Tags.LightningReceiveFinished;constructor(){super('WebhookEventType','LightningReceiveFinished');}static new(){return new LightningReceiveFinished_();}static instanceOf(obj){return obj.tag===WebhookEventType_Tags.LightningReceiveFinished;}}/**
2694
- * Triggered when a Lightning send operation completes.
2695
- */class LightningSendFinished_ extends UniffiEnum{/**
2696
- * @private
2697
- * This field is private and should not be used, use `tag` instead.
2698
- */[uniffiTypeNameSymbol]='WebhookEventType';tag=WebhookEventType_Tags.LightningSendFinished;constructor(){super('WebhookEventType','LightningSendFinished');}static new(){return new LightningSendFinished_();}static instanceOf(obj){return obj.tag===WebhookEventType_Tags.LightningSendFinished;}}/**
2699
- * Triggered when a cooperative exit completes.
2700
- */class CoopExitFinished_ extends UniffiEnum{/**
2701
- * @private
2702
- * This field is private and should not be used, use `tag` instead.
2703
- */[uniffiTypeNameSymbol]='WebhookEventType';tag=WebhookEventType_Tags.CoopExitFinished;constructor(){super('WebhookEventType','CoopExitFinished');}static new(){return new CoopExitFinished_();}static instanceOf(obj){return obj.tag===WebhookEventType_Tags.CoopExitFinished;}}/**
2704
- * Triggered when a static deposit completes.
2705
- */class StaticDepositFinished_ extends UniffiEnum{/**
2706
- * @private
2707
- * This field is private and should not be used, use `tag` instead.
2708
- */[uniffiTypeNameSymbol]='WebhookEventType';tag=WebhookEventType_Tags.StaticDepositFinished;constructor(){super('WebhookEventType','StaticDepositFinished');}static new(){return new StaticDepositFinished_();}static instanceOf(obj){return obj.tag===WebhookEventType_Tags.StaticDepositFinished;}}/**
2709
- * An event type not yet recognized by this version of the SDK.
2710
- */class Unknown_ extends UniffiEnum{/**
2711
- * @private
2712
- * This field is private and should not be used, use `tag` instead.
2713
- */[uniffiTypeNameSymbol]='WebhookEventType';tag=WebhookEventType_Tags.Unknown;constructor(v0){super('WebhookEventType','Unknown');this.inner=Object.freeze([v0]);}static new(v0){return new Unknown_(v0);}static instanceOf(obj){return obj.tag===WebhookEventType_Tags.Unknown;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='WebhookEventType';}return Object.freeze({instanceOf,LightningReceiveFinished:LightningReceiveFinished_,LightningSendFinished:LightningSendFinished_,CoopExitFinished:CoopExitFinished_,StaticDepositFinished:StaticDepositFinished_,Unknown:Unknown_});})();/**
2714
- * The type of event that triggers a webhook notification.
2715
- */// FfiConverter for enum WebhookEventType
2716
- const FfiConverterTypeWebhookEventType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new WebhookEventType.LightningReceiveFinished();case 2:return new WebhookEventType.LightningSendFinished();case 3:return new WebhookEventType.CoopExitFinished();case 4:return new WebhookEventType.StaticDepositFinished();case 5:return new WebhookEventType.Unknown(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case WebhookEventType_Tags.LightningReceiveFinished:{ordinalConverter.write(1,into);return;}case WebhookEventType_Tags.LightningSendFinished:{ordinalConverter.write(2,into);return;}case WebhookEventType_Tags.CoopExitFinished:{ordinalConverter.write(3,into);return;}case WebhookEventType_Tags.StaticDepositFinished:{ordinalConverter.write(4,into);return;}case WebhookEventType_Tags.Unknown:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that WebhookEventType_Tags hasn't matched an ordinal.
2717
- throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case WebhookEventType_Tags.LightningReceiveFinished:{return ordinalConverter.allocationSize(1);}case WebhookEventType_Tags.LightningSendFinished:{return ordinalConverter.allocationSize(2);}case WebhookEventType_Tags.CoopExitFinished:{return ordinalConverter.allocationSize(3);}case WebhookEventType_Tags.StaticDepositFinished:{return ordinalConverter.allocationSize(4);}case WebhookEventType_Tags.Unknown:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// FfiConverter for Map<string, TokenBalance>
2539
+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UpdateDepositPayload_Tags.ClaimError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeDepositClaimError.allocationSize(inner.error);return size;}case UpdateDepositPayload_Tags.Refund:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.refundTxid);size+=FfiConverterString.allocationSize(inner.refundTx);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// FfiConverter for Map<string, TokenBalance>
2718
2540
  const FfiConverterMapStringTypeTokenBalance=new FfiConverterMap(FfiConverterString,FfiConverterTypeTokenBalance);// FfiConverter for Map<string, string>
2719
2541
  const FfiConverterMapStringString=new FfiConverterMap(FfiConverterString,FfiConverterString);export class BitcoinChainServiceImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='BitcoinChainServiceImpl';// No primary constructor declared for this class.
2720
2542
  constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeBitcoinChainServiceImplObjectFactory.bless(pointer);}async getAddressUtxos(address,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_bitcoinchainservice_get_address_utxos(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this),FfiConverterString.lower(address));},/*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:*/FfiConverterArrayTypeUtxo.lift.bind(FfiConverterArrayTypeUtxo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeChainServiceError.lift.bind(FfiConverterTypeChainServiceError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getTransactionStatus(txid,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_bitcoinchainservice_get_transaction_status(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid));},/*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:*/FfiConverterTypeTxStatus.lift.bind(FfiConverterTypeTxStatus),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeChainServiceError.lift.bind(FfiConverterTypeChainServiceError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getTransactionHex(txid,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_bitcoinchainservice_get_transaction_hex(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid));},/*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:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeChainServiceError.lift.bind(FfiConverterTypeChainServiceError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async broadcastTransaction(tx,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_bitcoinchainservice_broadcast_transaction(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this),FfiConverterString.lower(tx));},/*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:*/FfiConverterTypeChainServiceError.lift.bind(FfiConverterTypeChainServiceError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async recommendedFees(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_bitcoinchainservice_recommended_fees(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this));},/*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:*/FfiConverterTypeRecommendedFees.lift.bind(FfiConverterTypeRecommendedFees),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeChainServiceError.lift.bind(FfiConverterTypeChainServiceError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2721
2543
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2722
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeBitcoinChainServiceImplObjectFactory.pointer(this);uniffiTypeBitcoinChainServiceImplObjectFactory.freePointer(pointer);uniffiTypeBitcoinChainServiceImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeBitcoinChainServiceImplObjectFactory.isConcreteType(obj);}}const uniffiTypeBitcoinChainServiceImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(BitcoinChainServiceImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='BitcoinChainServiceImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_bitcoinchainservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_bitcoinchainservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='BitcoinChainServiceImpl';}};})();// FfiConverter for BitcoinChainService
2544
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeBitcoinChainServiceImplObjectFactory.pointer(this);uniffiTypeBitcoinChainServiceImplObjectFactory.freePointer(pointer);uniffiTypeBitcoinChainServiceImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeBitcoinChainServiceImplObjectFactory.isConcreteType(obj);}}const uniffiTypeBitcoinChainServiceImplObjectFactory={create(pointer){const instance=Object.create(BitcoinChainServiceImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='BitcoinChainServiceImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_bitcoinchainservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_bitcoinchainservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='BitcoinChainServiceImpl';}};// FfiConverter for BitcoinChainService
2723
2545
  const FfiConverterTypeBitcoinChainService=new FfiConverterObjectWithCallbacks(uniffiTypeBitcoinChainServiceImplObjectFactory);// Add a vtavble for the callbacks that go in BitcoinChainService.
2724
2546
  // Put the implementation in a struct so we don't pollute the top-level namespace
2725
2547
  const uniffiCallbackInterfaceBitcoinChainService={// Create the VTable using a series of closures.
2726
2548
  // ts automatically converts these into C callback functions.
2727
- vtable:{getAddressUtxos:(uniffiHandle,address,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getAddressUtxos(FfiConverterString.lift(address),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeUtxo.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2728
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getTransactionStatus:(uniffiHandle,txid,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getTransactionStatus(FfiConverterString.lift(txid),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeTxStatus.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2729
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getTransactionHex:(uniffiHandle,txid,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getTransactionHex(FfiConverterString.lift(txid),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterString.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2730
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},broadcastTransaction:(uniffiHandle,tx,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.broadcastTransaction(FfiConverterString.lift(tx),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
2731
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},recommendedFees:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.recommendedFees({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecommendedFees.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2732
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// BitcoinChainService: this will throw a stale handle error if the handle isn't found.
2549
+ vtable:{getAddressUtxos:(uniffiHandle,address,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getAddressUtxos(FfiConverterString.lift(address),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeUtxo.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2550
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getTransactionStatus:(uniffiHandle,txid,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getTransactionStatus(FfiConverterString.lift(txid),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeTxStatus.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2551
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getTransactionHex:(uniffiHandle,txid,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getTransactionHex(FfiConverterString.lift(txid),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterString.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2552
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},broadcastTransaction:(uniffiHandle,tx,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.broadcastTransaction(FfiConverterString.lift(tx),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
2553
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},recommendedFees:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.recommendedFees({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecommendedFees.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2554
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ChainServiceError.instanceOf,/*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// BitcoinChainService: this will throw a stale handle error if the handle isn't found.
2733
2555
  FfiConverterTypeBitcoinChainService.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(uniffiCallbackInterfaceBitcoinChainService.vtable);}};/**
2734
2556
  * `BreezSDK` is a wrapper around `SparkSDK` that provides a more structured API
2735
2557
  * with request/response objects and comprehensive error handling.
@@ -2758,13 +2580,19 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
2758
2580
  *
2759
2581
  * A unique identifier for the listener, which can be used to remove it later
2760
2582
  */async addEventListener(listener,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeEventListener.lower(listener));},/*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:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2761
- * Initiates a Bitcoin purchase flow via an external provider.
2583
+ * Initiates a Bitcoin purchase flow via an external provider (`MoonPay`).
2584
+ *
2585
+ * This method generates a URL that the user can open in a browser to complete
2586
+ * the Bitcoin purchase. The purchased Bitcoin will be sent to an automatically
2587
+ * generated deposit address.
2762
2588
  *
2763
- * Returns a URL the user should open to complete the purchase.
2764
- * The request variant determines the provider and its parameters:
2589
+ * # Arguments
2590
+ *
2591
+ * * `request` - The purchase request containing optional amount and redirect URL
2592
+ *
2593
+ * # Returns
2765
2594
  *
2766
- * - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
2767
- * - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
2595
+ * A response containing the URL to open in a browser to complete the purchase
2768
2596
  */async buyBitcoin(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_buy_bitcoin(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuyBitcoinRequest.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:*/FfiConverterTypeBuyBitcoinResponse.lift.bind(FfiConverterTypeBuyBitcoinResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2769
2597
  * Cancels the ongoing leaf optimization.
2770
2598
  *
@@ -2844,12 +2672,6 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
2844
2672
  * * `Ok(ListPaymentsResponse)` - Contains the list of payments if successful
2845
2673
  * * `Err(SdkError)` - If there was an error accessing the storage
2846
2674
  */async listPayments(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_list_payments(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListPaymentsRequest.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:*/FfiConverterTypeListPaymentsResponse.lift.bind(FfiConverterTypeListPaymentsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async listUnclaimedDeposits(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListUnclaimedDepositsRequest.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:*/FfiConverterTypeListUnclaimedDepositsResponse.lift.bind(FfiConverterTypeListUnclaimedDepositsResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2847
- * Lists all webhooks currently registered for this wallet.
2848
- *
2849
- * # Returns
2850
- *
2851
- * A list of registered webhooks with their IDs, URLs, and subscribed event types
2852
- */async listWebhooks(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_list_webhooks(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*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:*/FfiConverterArrayTypeWebhook.lift.bind(FfiConverterArrayTypeWebhook),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2853
2675
  * Performs LNURL-auth with the service.
2854
2676
  *
2855
2677
  * This method implements the LNURL-auth protocol as specified in LUD-04 and LUD-05.
@@ -2884,20 +2706,6 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
2884
2706
  */async lnurlWithdraw(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_lnurl_withdraw(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeLnurlWithdrawRequest.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:*/FfiConverterTypeLnurlWithdrawResponse.lift.bind(FfiConverterTypeLnurlWithdrawResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async parse(input,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_parse(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(input));},/*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:*/FfiConverterTypeInputType.lift.bind(FfiConverterTypeInputType),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async prepareLnurlPay(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_prepare_lnurl_pay(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareLnurlPayRequest.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:*/FfiConverterTypePrepareLnurlPayResponse.lift.bind(FfiConverterTypePrepareLnurlPayResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async prepareSendPayment(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_prepare_send_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareSendPaymentRequest.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:*/FfiConverterTypePrepareSendPaymentResponse.lift.bind(FfiConverterTypePrepareSendPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async receivePayment(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_receive_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeReceivePaymentRequest.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:*/FfiConverterTypeReceivePaymentResponse.lift.bind(FfiConverterTypeReceivePaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2885
2707
  * Get the recommended BTC fees based on the configured chain service.
2886
2708
  */async recommendedFees(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_recommended_fees(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*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:*/FfiConverterTypeRecommendedFees.lift.bind(FfiConverterTypeRecommendedFees),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async refundDeposit(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_refund_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeRefundDepositRequest.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:*/FfiConverterTypeRefundDepositResponse.lift.bind(FfiConverterTypeRefundDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async registerLightningAddress(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_register_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeRegisterLightningAddressRequest.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:*/FfiConverterTypeLightningAddressInfo.lift.bind(FfiConverterTypeLightningAddressInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2887
- * Registers a webhook to receive notifications for wallet events.
2888
- *
2889
- * When registered events occur (e.g., a Lightning payment is received),
2890
- * the Spark service provider will send an HTTP POST to the specified URL
2891
- * with a payload signed using HMAC-SHA256 with the provided secret.
2892
- *
2893
- * # Arguments
2894
- *
2895
- * * `request` - The webhook registration details including URL, secret, and event types
2896
- *
2897
- * # Returns
2898
- *
2899
- * A response containing the unique identifier of the registered webhook
2900
- */async registerWebhook(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_register_webhook(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeRegisterWebhookRequest.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:*/FfiConverterTypeRegisterWebhookResponse.lift.bind(FfiConverterTypeRegisterWebhookResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2901
2709
  * Removes a previously registered event listener
2902
2710
  *
2903
2711
  * # Arguments
@@ -2917,18 +2725,9 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
2917
2725
  * This method spawns the optimization work in a background task and returns
2918
2726
  * immediately. Progress is reported via events.
2919
2727
  * If optimization is already running, no new task will be started.
2920
- */async startLeafOptimization(asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2728
+ */startLeafOptimization(){uniffiCaller.rustCall(/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
2921
2729
  * Synchronizes the wallet with the Spark network
2922
2730
  */async syncWallet(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_sync_wallet(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSyncWalletRequest.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:*/FfiConverterTypeSyncWalletResponse.lift.bind(FfiConverterTypeSyncWalletResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
2923
- * Unregisters a previously registered webhook.
2924
- *
2925
- * After unregistering, the Spark service provider will no longer send
2926
- * notifications to the webhook URL.
2927
- *
2928
- * # Arguments
2929
- *
2930
- * * `request` - The unregister request containing the webhook ID
2931
- */async unregisterWebhook(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_unregister_webhook(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeUnregisterWebhookRequest.lower(request));},/*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;}}/**
2932
2731
  * Updates an existing contact.
2933
2732
  *
2934
2733
  * # Arguments
@@ -2944,7 +2743,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
2944
2743
  * Some settings are updated on the Spark network so network requests may be performed.
2945
2744
  */async updateUserSettings(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_update_user_settings(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeUpdateUserSettingsRequest.lower(request));},/*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;}}/**
2946
2745
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2947
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeBreezSdkObjectFactory.pointer(this);uniffiTypeBreezSdkObjectFactory.freePointer(pointer);uniffiTypeBreezSdkObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeBreezSdkObjectFactory.isConcreteType(obj);}}const uniffiTypeBreezSdkObjectFactory=(()=>{return{create(pointer){const instance=Object.create(BreezSdk.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='BreezSdk';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_breezsdk_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_breezsdk(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_breezsdk(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='BreezSdk';}};})();// FfiConverter for BreezSdkInterface
2746
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeBreezSdkObjectFactory.pointer(this);uniffiTypeBreezSdkObjectFactory.freePointer(pointer);uniffiTypeBreezSdkObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeBreezSdkObjectFactory.isConcreteType(obj);}}const uniffiTypeBreezSdkObjectFactory={create(pointer){const instance=Object.create(BreezSdk.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='BreezSdk';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_breezsdk_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_breezsdk(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_breezsdk(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='BreezSdk';}};// FfiConverter for BreezSdkInterface
2948
2747
  const FfiConverterTypeBreezSdk=new FfiConverterObject(uniffiTypeBreezSdkObjectFactory);/**
2949
2748
  * External signer trait that can be implemented by users and passed to the SDK.
2950
2749
  *
@@ -3176,31 +2975,31 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3176
2975
  * See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
3177
2976
  */async aggregateFrost(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_externalsigner_aggregate_frost(uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalAggregateFrostRequest.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:*/FfiConverterTypeExternalFrostSignature.lift.bind(FfiConverterTypeExternalFrostSignature),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3178
2977
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3179
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeExternalSignerImplObjectFactory.pointer(this);uniffiTypeExternalSignerImplObjectFactory.freePointer(pointer);uniffiTypeExternalSignerImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeExternalSignerImplObjectFactory.isConcreteType(obj);}}const uniffiTypeExternalSignerImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(ExternalSignerImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='ExternalSignerImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_externalsigner_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_externalsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_externalsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='ExternalSignerImpl';}};})();// FfiConverter for ExternalSigner
2978
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeExternalSignerImplObjectFactory.pointer(this);uniffiTypeExternalSignerImplObjectFactory.freePointer(pointer);uniffiTypeExternalSignerImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeExternalSignerImplObjectFactory.isConcreteType(obj);}}const uniffiTypeExternalSignerImplObjectFactory={create(pointer){const instance=Object.create(ExternalSignerImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='ExternalSignerImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_externalsigner_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_externalsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_externalsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='ExternalSignerImpl';}};// FfiConverter for ExternalSigner
3180
2979
  const FfiConverterTypeExternalSigner=new FfiConverterObjectWithCallbacks(uniffiTypeExternalSignerImplObjectFactory);// Add a vtavble for the callbacks that go in ExternalSigner.
3181
2980
  // Put the implementation in a struct so we don't pollute the top-level namespace
3182
2981
  const uniffiCallbackInterfaceExternalSigner={// Create the VTable using a series of closures.
3183
2982
  // ts automatically converts these into C callback functions.
3184
- vtable:{identityPublicKey:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return jsCallback.identityPublicKey();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterTypePublicKeyBytes.lower(obj));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiResult;},derivePublicKey:(uniffiHandle,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.derivePublicKey(FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3185
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsa(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3186
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsaRecoverable(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecoverableEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3187
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},encryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.encryptEcies(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3188
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},decryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.decryptEcies(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3189
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signHashSchnorr:(uniffiHandle,hash,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signHashSchnorr(FfiConverterArrayBuffer.lift(hash),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSchnorrSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3190
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},hmacSha256:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.hmacSha256(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeHashedMessageBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3191
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},generateRandomSigningCommitment:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateRandomSigningCommitment({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostCommitments.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3192
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPublicKeyForNode:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getPublicKeyForNode(FfiConverterTypeExternalTreeNodeId.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3193
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},generateRandomSecret:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateRandomSecret({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalEncryptedSecret.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3194
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},staticDepositSecretEncrypted:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.staticDepositSecretEncrypted(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalSecretSource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3195
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},staticDepositSecret:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.staticDepositSecret(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSecretBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3196
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},staticDepositSigningKey:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.staticDepositSigningKey(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3197
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},subtractSecrets:(uniffiHandle,signingKey,newSigningKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.subtractSecrets(FfiConverterTypeExternalSecretSource.lift(signingKey),FfiConverterTypeExternalSecretSource.lift(newSigningKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalSecretSource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3198
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},splitSecretWithProofs:(uniffiHandle,secret,threshold,numShares,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.splitSecretWithProofs(FfiConverterTypeExternalSecretToSplit.lift(secret),FfiConverterUInt32.lift(threshold),FfiConverterUInt32.lift(numShares),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeExternalVerifiableSecretShare.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3199
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},encryptSecretForReceiver:(uniffiHandle,encryptedSecret,receiverPublicKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.encryptSecretForReceiver(FfiConverterTypeExternalEncryptedSecret.lift(encryptedSecret),FfiConverterTypePublicKeyBytes.lift(receiverPublicKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3200
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},publicKeyFromSecret:(uniffiHandle,secret,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.publicKeyFromSecret(FfiConverterTypeExternalSecretSource.lift(secret),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3201
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},signFrost:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signFrost(FfiConverterTypeExternalSignFrostRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignatureShare.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3202
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},aggregateFrost:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.aggregateFrost(FfiConverterTypeExternalAggregateFrostRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignature.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3203
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// ExternalSigner: this will throw a stale handle error if the handle isn't found.
2983
+ vtable:{identityPublicKey:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return jsCallback.identityPublicKey();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterTypePublicKeyBytes.lower(obj));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return uniffiResult;},derivePublicKey:(uniffiHandle,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.derivePublicKey(FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2984
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signEcdsa:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsa(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2985
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signEcdsaRecoverable:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signEcdsaRecoverable(FfiConverterTypeMessageBytes.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRecoverableEcdsaSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2986
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},encryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.encryptEcies(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2987
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},decryptEcies:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.decryptEcies(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2988
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signHashSchnorr:(uniffiHandle,hash,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signHashSchnorr(FfiConverterArrayBuffer.lift(hash),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSchnorrSignatureBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2989
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},hmacSha256:(uniffiHandle,message,path,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.hmacSha256(FfiConverterArrayBuffer.lift(message),FfiConverterString.lift(path),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeHashedMessageBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2990
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},generateRandomSigningCommitment:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateRandomSigningCommitment({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostCommitments.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2991
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPublicKeyForNode:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.getPublicKeyForNode(FfiConverterTypeExternalTreeNodeId.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2992
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},generateRandomSecret:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.generateRandomSecret({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalEncryptedSecret.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2993
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},staticDepositSecretEncrypted:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.staticDepositSecretEncrypted(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalSecretSource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2994
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},staticDepositSecret:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.staticDepositSecret(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeSecretBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2995
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},staticDepositSigningKey:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.staticDepositSigningKey(FfiConverterUInt32.lift(index),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2996
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},subtractSecrets:(uniffiHandle,signingKey,newSigningKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.subtractSecrets(FfiConverterTypeExternalSecretSource.lift(signingKey),FfiConverterTypeExternalSecretSource.lift(newSigningKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalSecretSource.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2997
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},splitSecretWithProofs:(uniffiHandle,secret,threshold,numShares,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.splitSecretWithProofs(FfiConverterTypeExternalSecretToSplit.lift(secret),FfiConverterUInt32.lift(threshold),FfiConverterUInt32.lift(numShares),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeExternalVerifiableSecretShare.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2998
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},encryptSecretForReceiver:(uniffiHandle,encryptedSecret,receiverPublicKey,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.encryptSecretForReceiver(FfiConverterTypeExternalEncryptedSecret.lift(encryptedSecret),FfiConverterTypePublicKeyBytes.lift(receiverPublicKey),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
2999
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},publicKeyFromSecret:(uniffiHandle,secret,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.publicKeyFromSecret(FfiConverterTypeExternalSecretSource.lift(secret),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePublicKeyBytes.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3000
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},signFrost:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.signFrost(FfiConverterTypeExternalSignFrostRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignatureShare.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3001
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},aggregateFrost:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSigner.lift(uniffiHandle);return await jsCallback.aggregateFrost(FfiConverterTypeExternalAggregateFrostRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalFrostSignature.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3002
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/SignerError.instanceOf,/*lowerError:*/FfiConverterTypeSignerError.lower.bind(FfiConverterTypeSignerError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// ExternalSigner: this will throw a stale handle error if the handle isn't found.
3204
3003
  FfiConverterTypeExternalSigner.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(uniffiCallbackInterfaceExternalSigner.vtable);}};/**
3205
3004
  * Trait covering fiat-related functionality
3206
3005
  *//**
@@ -3212,14 +3011,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3212
3011
  * Get the live rates from the server.
3213
3012
  */async fetchFiatRates(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_fiatservice_fetch_fiat_rates(uniffiTypeFiatServiceImplObjectFactory.clonePointer(this));},/*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:*/FfiConverterArrayTypeRate.lift.bind(FfiConverterArrayTypeRate),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeServiceConnectivityError.lift.bind(FfiConverterTypeServiceConnectivityError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3214
3013
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3215
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeFiatServiceImplObjectFactory.pointer(this);uniffiTypeFiatServiceImplObjectFactory.freePointer(pointer);uniffiTypeFiatServiceImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeFiatServiceImplObjectFactory.isConcreteType(obj);}}const uniffiTypeFiatServiceImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(FiatServiceImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='FiatServiceImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_fiatservice_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_fiatservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_fiatservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='FiatServiceImpl';}};})();// FfiConverter for FiatService
3014
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeFiatServiceImplObjectFactory.pointer(this);uniffiTypeFiatServiceImplObjectFactory.freePointer(pointer);uniffiTypeFiatServiceImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeFiatServiceImplObjectFactory.isConcreteType(obj);}}const uniffiTypeFiatServiceImplObjectFactory={create(pointer){const instance=Object.create(FiatServiceImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='FiatServiceImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_fiatservice_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_fiatservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_fiatservice(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='FiatServiceImpl';}};// FfiConverter for FiatService
3216
3015
  const FfiConverterTypeFiatService=new FfiConverterObjectWithCallbacks(uniffiTypeFiatServiceImplObjectFactory);// Add a vtavble for the callbacks that go in FiatService.
3217
3016
  // Put the implementation in a struct so we don't pollute the top-level namespace
3218
3017
  const uniffiCallbackInterfaceFiatService={// Create the VTable using a series of closures.
3219
3018
  // ts automatically converts these into C callback functions.
3220
- vtable:{fetchFiatCurrencies:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeFiatService.lift(uniffiHandle);return await jsCallback.fetchFiatCurrencies({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeFiatCurrency.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3221
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},fetchFiatRates:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeFiatService.lift(uniffiHandle);return await jsCallback.fetchFiatRates({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeRate.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3222
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// FiatService: this will throw a stale handle error if the handle isn't found.
3019
+ vtable:{fetchFiatCurrencies:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeFiatService.lift(uniffiHandle);return await jsCallback.fetchFiatCurrencies({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeFiatCurrency.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3020
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},fetchFiatRates:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeFiatService.lift(uniffiHandle);return await jsCallback.fetchFiatRates({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeRate.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3021
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// FiatService: this will throw a stale handle error if the handle isn't found.
3223
3022
  FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(uniffiCallbackInterfaceFiatService.vtable);}};/**
3224
3023
  * Orchestrates passkey-based wallet creation and restore operations.
3225
3024
  *
@@ -3273,7 +3072,7 @@ FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().u
3273
3072
  * * `label` - A user-chosen label (e.g., "personal", "business")
3274
3073
  */async storeLabel(label,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_passkey_store_label(uniffiTypePasskeyObjectFactory.clonePointer(this),FfiConverterString.lower(label));},/*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:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3275
3074
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3276
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyObjectFactory.pointer(this);uniffiTypePasskeyObjectFactory.freePointer(pointer);uniffiTypePasskeyObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyObjectFactory=(()=>{return{create(pointer){const instance=Object.create(Passkey.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='Passkey';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkey_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_passkey(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkey(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='Passkey';}};})();// FfiConverter for PasskeyInterface
3075
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyObjectFactory.pointer(this);uniffiTypePasskeyObjectFactory.freePointer(pointer);uniffiTypePasskeyObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyObjectFactory={create(pointer){const instance=Object.create(Passkey.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='Passkey';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkey_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_passkey(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkey(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='Passkey';}};// FfiConverter for PasskeyInterface
3277
3076
  const FfiConverterTypePasskey=new FfiConverterObject(uniffiTypePasskeyObjectFactory);/**
3278
3077
  * Trait for passkey PRF (Pseudo-Random Function) operations.
3279
3078
  *
@@ -3314,14 +3113,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3314
3113
  * * `Err(PasskeyPrfError)` - If the check fails
3315
3114
  */async isPrfAvailable(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_passkeyprfprovider_is_prf_available(uniffiTypePasskeyPrfProviderImplObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyPrfError.lift.bind(FfiConverterTypePasskeyPrfError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3316
3115
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3317
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyPrfProviderImplObjectFactory.pointer(this);uniffiTypePasskeyPrfProviderImplObjectFactory.freePointer(pointer);uniffiTypePasskeyPrfProviderImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyPrfProviderImplObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyPrfProviderImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(PasskeyPrfProviderImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PasskeyPrfProviderImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkeyprfprovider_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_passkeyprfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PasskeyPrfProviderImpl';}};})();// FfiConverter for PasskeyPrfProvider
3116
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyPrfProviderImplObjectFactory.pointer(this);uniffiTypePasskeyPrfProviderImplObjectFactory.freePointer(pointer);uniffiTypePasskeyPrfProviderImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyPrfProviderImplObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyPrfProviderImplObjectFactory={create(pointer){const instance=Object.create(PasskeyPrfProviderImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PasskeyPrfProviderImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkeyprfprovider_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_passkeyprfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PasskeyPrfProviderImpl';}};// FfiConverter for PasskeyPrfProvider
3318
3117
  const FfiConverterTypePasskeyPrfProvider=new FfiConverterObjectWithCallbacks(uniffiTypePasskeyPrfProviderImplObjectFactory);// Add a vtavble for the callbacks that go in PasskeyPrfProvider.
3319
3118
  // Put the implementation in a struct so we don't pollute the top-level namespace
3320
3119
  const uniffiCallbackInterfacePasskeyPrfProvider={// Create the VTable using a series of closures.
3321
3120
  // ts automatically converts these into C callback functions.
3322
- vtable:{derivePrfSeed:(uniffiHandle,salt,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePasskeyPrfProvider.lift(uniffiHandle);return await jsCallback.derivePrfSeed(FfiConverterString.lift(salt),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3323
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PasskeyPrfError.instanceOf,/*lowerError:*/FfiConverterTypePasskeyPrfError.lower.bind(FfiConverterTypePasskeyPrfError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},isPrfAvailable:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePasskeyPrfProvider.lift(uniffiHandle);return await jsCallback.isPrfAvailable({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:FfiConverterBool.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:0,// TODO create callstatus with error.
3324
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PasskeyPrfError.instanceOf,/*lowerError:*/FfiConverterTypePasskeyPrfError.lower.bind(FfiConverterTypePasskeyPrfError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// PasskeyPrfProvider: this will throw a stale handle error if the handle isn't found.
3121
+ vtable:{derivePrfSeed:(uniffiHandle,salt,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePasskeyPrfProvider.lift(uniffiHandle);return await jsCallback.derivePrfSeed(FfiConverterString.lift(salt),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3122
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PasskeyPrfError.instanceOf,/*lowerError:*/FfiConverterTypePasskeyPrfError.lower.bind(FfiConverterTypePasskeyPrfError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},isPrfAvailable:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePasskeyPrfProvider.lift(uniffiHandle);return await jsCallback.isPrfAvailable({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:FfiConverterBool.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:0,// TODO create callstatus with error.
3123
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PasskeyPrfError.instanceOf,/*lowerError:*/FfiConverterTypePasskeyPrfError.lower.bind(FfiConverterTypePasskeyPrfError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// PasskeyPrfProvider: this will throw a stale handle error if the handle isn't found.
3325
3124
  FfiConverterTypePasskeyPrfProvider.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(uniffiCallbackInterfacePasskeyPrfProvider.vtable);}};/**
3326
3125
  * This interface is used to observe outgoing payments before Lightning, Spark and onchain Bitcoin payments.
3327
3126
  * If the implementation returns an error, the payment is cancelled.
@@ -3333,13 +3132,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3333
3132
  * Called before Lightning, Spark or onchain Bitcoin payments are made
3334
3133
  */async beforeSend(payments,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_paymentobserver_before_send(uniffiTypePaymentObserverImplObjectFactory.clonePointer(this),FfiConverterArrayTypeProvisionalPayment.lower(payments));},/*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:*/FfiConverterTypePaymentObserverError.lift.bind(FfiConverterTypePaymentObserverError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3335
3134
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3336
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePaymentObserverImplObjectFactory.pointer(this);uniffiTypePaymentObserverImplObjectFactory.freePointer(pointer);uniffiTypePaymentObserverImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePaymentObserverImplObjectFactory.isConcreteType(obj);}}const uniffiTypePaymentObserverImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(PaymentObserverImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PaymentObserverImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_paymentobserver_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_paymentobserver(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_paymentobserver(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PaymentObserverImpl';}};})();// FfiConverter for PaymentObserver
3135
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePaymentObserverImplObjectFactory.pointer(this);uniffiTypePaymentObserverImplObjectFactory.freePointer(pointer);uniffiTypePaymentObserverImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePaymentObserverImplObjectFactory.isConcreteType(obj);}}const uniffiTypePaymentObserverImplObjectFactory={create(pointer){const instance=Object.create(PaymentObserverImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PaymentObserverImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_paymentobserver_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_paymentobserver(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_paymentobserver(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PaymentObserverImpl';}};// FfiConverter for PaymentObserver
3337
3136
  const FfiConverterTypePaymentObserver=new FfiConverterObjectWithCallbacks(uniffiTypePaymentObserverImplObjectFactory);// Add a vtavble for the callbacks that go in PaymentObserver.
3338
3137
  // Put the implementation in a struct so we don't pollute the top-level namespace
3339
3138
  const uniffiCallbackInterfacePaymentObserver={// Create the VTable using a series of closures.
3340
3139
  // ts automatically converts these into C callback functions.
3341
- vtable:{beforeSend:(uniffiHandle,payments,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePaymentObserver.lift(uniffiHandle);return await jsCallback.beforeSend(FfiConverterArrayTypeProvisionalPayment.lift(payments),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3342
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PaymentObserverError.instanceOf,/*lowerError:*/FfiConverterTypePaymentObserverError.lower.bind(FfiConverterTypePaymentObserverError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// PaymentObserver: this will throw a stale handle error if the handle isn't found.
3140
+ vtable:{beforeSend:(uniffiHandle,payments,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePaymentObserver.lift(uniffiHandle);return await jsCallback.beforeSend(FfiConverterArrayTypeProvisionalPayment.lift(payments),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3141
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PaymentObserverError.instanceOf,/*lowerError:*/FfiConverterTypePaymentObserverError.lower.bind(FfiConverterTypePaymentObserverError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// PaymentObserver: this will throw a stale handle error if the handle isn't found.
3343
3142
  FfiConverterTypePaymentObserver.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(uniffiCallbackInterfacePaymentObserver.vtable);}};/**
3344
3143
  * REST client trait for making HTTP requests.
3345
3144
  *
@@ -3372,15 +3171,15 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3372
3171
  * - `body`: the optional DELETE body
3373
3172
  */async deleteRequest(url,headers,body,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_restclient_delete_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this),FfiConverterString.lower(url),FfiConverterOptionalMapStringString.lower(headers),FfiConverterOptionalString.lower(body));},/*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:*/FfiConverterTypeRestResponse.lift.bind(FfiConverterTypeRestResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeServiceConnectivityError.lift.bind(FfiConverterTypeServiceConnectivityError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3374
3173
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3375
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeRestClientImplObjectFactory.pointer(this);uniffiTypeRestClientImplObjectFactory.freePointer(pointer);uniffiTypeRestClientImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeRestClientImplObjectFactory.isConcreteType(obj);}}const uniffiTypeRestClientImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(RestClientImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='RestClientImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_restclient_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_restclient(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_restclient(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='RestClientImpl';}};})();// FfiConverter for RestClient
3174
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeRestClientImplObjectFactory.pointer(this);uniffiTypeRestClientImplObjectFactory.freePointer(pointer);uniffiTypeRestClientImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeRestClientImplObjectFactory.isConcreteType(obj);}}const uniffiTypeRestClientImplObjectFactory={create(pointer){const instance=Object.create(RestClientImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='RestClientImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_restclient_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_restclient(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_restclient(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='RestClientImpl';}};// FfiConverter for RestClient
3376
3175
  const FfiConverterTypeRestClient=new FfiConverterObjectWithCallbacks(uniffiTypeRestClientImplObjectFactory);// Add a vtavble for the callbacks that go in RestClient.
3377
3176
  // Put the implementation in a struct so we don't pollute the top-level namespace
3378
3177
  const uniffiCallbackInterfaceRestClient={// Create the VTable using a series of closures.
3379
3178
  // ts automatically converts these into C callback functions.
3380
- vtable:{getRequest:(uniffiHandle,url,headers,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeRestClient.lift(uniffiHandle);return await jsCallback.getRequest(FfiConverterString.lift(url),FfiConverterOptionalMapStringString.lift(headers),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRestResponse.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3381
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},postRequest:(uniffiHandle,url,headers,body,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeRestClient.lift(uniffiHandle);return await jsCallback.postRequest(FfiConverterString.lift(url),FfiConverterOptionalMapStringString.lift(headers),FfiConverterOptionalString.lift(body),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRestResponse.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3382
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteRequest:(uniffiHandle,url,headers,body,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeRestClient.lift(uniffiHandle);return await jsCallback.deleteRequest(FfiConverterString.lift(url),FfiConverterOptionalMapStringString.lift(headers),FfiConverterOptionalString.lift(body),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRestResponse.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3383
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// RestClient: this will throw a stale handle error if the handle isn't found.
3179
+ vtable:{getRequest:(uniffiHandle,url,headers,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeRestClient.lift(uniffiHandle);return await jsCallback.getRequest(FfiConverterString.lift(url),FfiConverterOptionalMapStringString.lift(headers),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRestResponse.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3180
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},postRequest:(uniffiHandle,url,headers,body,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeRestClient.lift(uniffiHandle);return await jsCallback.postRequest(FfiConverterString.lift(url),FfiConverterOptionalMapStringString.lift(headers),FfiConverterOptionalString.lift(body),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRestResponse.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3181
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},deleteRequest:(uniffiHandle,url,headers,body,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeRestClient.lift(uniffiHandle);return await jsCallback.deleteRequest(FfiConverterString.lift(url),FfiConverterOptionalMapStringString.lift(headers),FfiConverterOptionalString.lift(body),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeRestResponse.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3182
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// RestClient: this will throw a stale handle error if the handle isn't found.
3384
3183
  FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(uniffiCallbackInterfaceRestClient.vtable);}};/**
3385
3184
  * Builder for creating `BreezSdk` instances with customizable components.
3386
3185
  *//**
@@ -3426,7 +3225,7 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
3426
3225
  * - `storage`: The storage implementation to be used.
3427
3226
  */async withStorage(storage,asyncOpts_){const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_storage(uniffiTypeSdkBuilderObjectFactory.clonePointer(this),FfiConverterTypeStorage.lower(storage));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3428
3227
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3429
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeSdkBuilderObjectFactory.pointer(this);uniffiTypeSdkBuilderObjectFactory.freePointer(pointer);uniffiTypeSdkBuilderObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeSdkBuilderObjectFactory.isConcreteType(obj);}}const uniffiTypeSdkBuilderObjectFactory=(()=>{return{create(pointer){const instance=Object.create(SdkBuilder.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='SdkBuilder';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_sdkbuilder_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_sdkbuilder(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='SdkBuilder';}};})();// FfiConverter for SdkBuilderInterface
3228
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeSdkBuilderObjectFactory.pointer(this);uniffiTypeSdkBuilderObjectFactory.freePointer(pointer);uniffiTypeSdkBuilderObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeSdkBuilderObjectFactory.isConcreteType(obj);}}const uniffiTypeSdkBuilderObjectFactory={create(pointer){const instance=Object.create(SdkBuilder.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='SdkBuilder';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_sdkbuilder_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_sdkbuilder(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='SdkBuilder';}};// FfiConverter for SdkBuilderInterface
3430
3229
  const FfiConverterTypeSdkBuilder=new FfiConverterObject(uniffiTypeSdkBuilderObjectFactory);/**
3431
3230
  * Trait for persistent storage
3432
3231
  *//**
@@ -3492,18 +3291,17 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3492
3291
  *
3493
3292
  * A map of `parent_payment_id` -> Vec<Payment> or a `StorageError`
3494
3293
  */async getPaymentsByParentIds(parentPaymentIds,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_storage_get_payments_by_parent_ids(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterArrayString.lower(parentPaymentIds));},/*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:*/FfiConverterMapStringArrayTypePayment.lift.bind(FfiConverterMapStringArrayTypePayment),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3495
- * Add a deposit to storage (upsert: updates `is_mature` and `amount_sats` on conflict)
3294
+ * Add a deposit to storage
3496
3295
  * # Arguments
3497
3296
  *
3498
3297
  * * `txid` - The transaction ID of the deposit
3499
3298
  * * `vout` - The output index of the deposit
3500
3299
  * * `amount_sats` - The amount of the deposit in sats
3501
- * * `is_mature` - Whether the deposit UTXO has enough confirmations to be claimable
3502
3300
  *
3503
3301
  * # Returns
3504
3302
  *
3505
3303
  * Success or a `StorageError`
3506
- */async addDeposit(txid,vout,amountSats,isMature,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_storage_add_deposit(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout),FfiConverterUInt64.lower(amountSats),FfiConverterBool.lower(isMature));},/*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:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3304
+ */async addDeposit(txid,vout,amountSats,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_storage_add_deposit(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout),FfiConverterUInt64.lower(amountSats));},/*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:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3507
3305
  * Removes an unclaimed deposit from storage
3508
3306
  * # Arguments
3509
3307
  *
@@ -3557,39 +3355,39 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3557
3355
  * Update the sync state record from an incoming record
3558
3356
  */async updateRecordFromIncoming(record,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_storage_update_record_from_incoming(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeRecord.lower(record));},/*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:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3559
3357
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3560
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeStorageImplObjectFactory.pointer(this);uniffiTypeStorageImplObjectFactory.freePointer(pointer);uniffiTypeStorageImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeStorageImplObjectFactory.isConcreteType(obj);}}const uniffiTypeStorageImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(StorageImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='StorageImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_storage_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_storage(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_storage(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='StorageImpl';}};})();// FfiConverter for Storage
3358
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeStorageImplObjectFactory.pointer(this);uniffiTypeStorageImplObjectFactory.freePointer(pointer);uniffiTypeStorageImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeStorageImplObjectFactory.isConcreteType(obj);}}const uniffiTypeStorageImplObjectFactory={create(pointer){const instance=Object.create(StorageImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='StorageImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_storage_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_storage(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_storage(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='StorageImpl';}};// FfiConverter for Storage
3561
3359
  const FfiConverterTypeStorage=new FfiConverterObjectWithCallbacks(uniffiTypeStorageImplObjectFactory);// Add a vtavble for the callbacks that go in Storage.
3562
3360
  // Put the implementation in a struct so we don't pollute the top-level namespace
3563
3361
  const uniffiCallbackInterfaceStorage={// Create the VTable using a series of closures.
3564
3362
  // ts automatically converts these into C callback functions.
3565
- vtable:{deleteCachedItem:(uniffiHandle,key,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteCachedItem(FfiConverterString.lift(key),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3566
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getCachedItem:(uniffiHandle,key,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getCachedItem(FfiConverterString.lift(key),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalString.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3567
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setCachedItem:(uniffiHandle,key,value,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setCachedItem(FfiConverterString.lift(key),FfiConverterString.lift(value),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3568
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listPayments:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listPayments(FfiConverterTypeStorageListPaymentsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3569
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertPayment:(uniffiHandle,payment,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertPayment(FfiConverterTypePayment.lift(payment),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3570
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertPaymentMetadata:(uniffiHandle,paymentId,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertPaymentMetadata(FfiConverterString.lift(paymentId),FfiConverterTypePaymentMetadata.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3571
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPaymentById:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentById(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3572
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPaymentByInvoice:(uniffiHandle,invoice,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentByInvoice(FfiConverterString.lift(invoice),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3573
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPaymentsByParentIds:(uniffiHandle,parentPaymentIds,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentsByParentIds(FfiConverterArrayString.lift(parentPaymentIds),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterMapStringArrayTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3574
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},addDeposit:(uniffiHandle,txid,vout,amountSats,isMature,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),FfiConverterUInt64.lift(amountSats),FfiConverterBool.lift(isMature),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3575
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteDeposit:(uniffiHandle,txid,vout,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3576
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listDeposits:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listDeposits({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeDepositInfo.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3577
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},updateDeposit:(uniffiHandle,txid,vout,payload,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),FfiConverterTypeUpdateDepositPayload.lift(payload),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3578
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},setLnurlMetadata:(uniffiHandle,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setLnurlMetadata(FfiConverterArrayTypeSetLnurlMetadataItem.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3579
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},listContacts:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listContacts(FfiConverterTypeListContactsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3580
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3581
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertContact:(uniffiHandle,contact,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertContact(FfiConverterTypeContact.lift(contact),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3582
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3583
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},addOutgoingChange:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addOutgoingChange(FfiConverterTypeUnversionedRecordChange.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
3584
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},completeOutgoingSync:(uniffiHandle,record,localRevision,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.completeOutgoingSync(FfiConverterTypeRecord.lift(record),FfiConverterUInt64.lift(localRevision),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3585
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getPendingOutgoingChanges:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPendingOutgoingChanges(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3586
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getLastRevision:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getLastRevision({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
3587
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},insertIncomingRecords:(uniffiHandle,records,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertIncomingRecords(FfiConverterArrayTypeRecord.lift(records),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3588
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},deleteIncomingRecord:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteIncomingRecord(FfiConverterTypeRecord.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3589
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getIncomingRecords:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getIncomingRecords(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeIncomingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3590
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},getLatestOutgoingChange:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getLatestOutgoingChange({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3591
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},updateRecordFromIncoming:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateRecordFromIncoming(FfiConverterTypeRecord.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3592
- callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// Storage: this will throw a stale handle error if the handle isn't found.
3363
+ vtable:{deleteCachedItem:(uniffiHandle,key,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteCachedItem(FfiConverterString.lift(key),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3364
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getCachedItem:(uniffiHandle,key,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getCachedItem(FfiConverterString.lift(key),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalString.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3365
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},setCachedItem:(uniffiHandle,key,value,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setCachedItem(FfiConverterString.lift(key),FfiConverterString.lift(value),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3366
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},listPayments:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listPayments(FfiConverterTypeStorageListPaymentsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3367
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},insertPayment:(uniffiHandle,payment,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertPayment(FfiConverterTypePayment.lift(payment),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3368
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},insertPaymentMetadata:(uniffiHandle,paymentId,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertPaymentMetadata(FfiConverterString.lift(paymentId),FfiConverterTypePaymentMetadata.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3369
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPaymentById:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentById(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3370
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPaymentByInvoice:(uniffiHandle,invoice,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentByInvoice(FfiConverterString.lift(invoice),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3371
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPaymentsByParentIds:(uniffiHandle,parentPaymentIds,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPaymentsByParentIds(FfiConverterArrayString.lift(parentPaymentIds),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterMapStringArrayTypePayment.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3372
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},addDeposit:(uniffiHandle,txid,vout,amountSats,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),FfiConverterUInt64.lift(amountSats),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3373
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},deleteDeposit:(uniffiHandle,txid,vout,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3374
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},listDeposits:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listDeposits({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeDepositInfo.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3375
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},updateDeposit:(uniffiHandle,txid,vout,payload,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),FfiConverterTypeUpdateDepositPayload.lift(payload),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3376
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},setLnurlMetadata:(uniffiHandle,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setLnurlMetadata(FfiConverterArrayTypeSetLnurlMetadataItem.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3377
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},listContacts:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listContacts(FfiConverterTypeListContactsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3378
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3379
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},insertContact:(uniffiHandle,contact,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertContact(FfiConverterTypeContact.lift(contact),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3380
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},deleteContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3381
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},addOutgoingChange:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addOutgoingChange(FfiConverterTypeUnversionedRecordChange.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
3382
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},completeOutgoingSync:(uniffiHandle,record,localRevision,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.completeOutgoingSync(FfiConverterTypeRecord.lift(record),FfiConverterUInt64.lift(localRevision),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3383
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPendingOutgoingChanges:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPendingOutgoingChanges(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3384
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getLastRevision:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getLastRevision({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
3385
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},insertIncomingRecords:(uniffiHandle,records,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertIncomingRecords(FfiConverterArrayTypeRecord.lift(records),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3386
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},deleteIncomingRecord:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteIncomingRecord(FfiConverterTypeRecord.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3387
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getIncomingRecords:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getIncomingRecords(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeIncomingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3388
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getLatestOutgoingChange:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getLatestOutgoingChange({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterOptionalTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
3389
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},updateRecordFromIncoming:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateRecordFromIncoming(FfiConverterTypeRecord.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
3390
+ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// Storage: this will throw a stale handle error if the handle isn't found.
3593
3391
  FfiConverterTypeStorage.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(uniffiCallbackInterfaceStorage.vtable);}};export class TokenIssuer extends UniffiAbstractObject{[uniffiTypeNameSymbol]='TokenIssuer';// No primary constructor declared for this class.
3594
3392
  constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeTokenIssuerObjectFactory.bless(pointer);}/**
3595
3393
  * Burns supply of the issuer token
@@ -3669,7 +3467,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
3669
3467
  * * `SdkError` - If there was an error during the unfreeze process
3670
3468
  */async unfreezeIssuerToken(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_tokenissuer_unfreeze_issuer_token(uniffiTypeTokenIssuerObjectFactory.clonePointer(this),FfiConverterTypeUnfreezeIssuerTokenRequest.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:*/FfiConverterTypeUnfreezeIssuerTokenResponse.lift.bind(FfiConverterTypeUnfreezeIssuerTokenResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
3671
3469
  * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3672
- */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeTokenIssuerObjectFactory.pointer(this);uniffiTypeTokenIssuerObjectFactory.freePointer(pointer);uniffiTypeTokenIssuerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeTokenIssuerObjectFactory.isConcreteType(obj);}}const uniffiTypeTokenIssuerObjectFactory=(()=>{return{create(pointer){const instance=Object.create(TokenIssuer.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='TokenIssuer';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_tokenissuer(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_tokenissuer(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='TokenIssuer';}};})();// FfiConverter for TokenIssuerInterface
3470
+ */uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeTokenIssuerObjectFactory.pointer(this);uniffiTypeTokenIssuerObjectFactory.freePointer(pointer);uniffiTypeTokenIssuerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeTokenIssuerObjectFactory.isConcreteType(obj);}}const uniffiTypeTokenIssuerObjectFactory={create(pointer){const instance=Object.create(TokenIssuer.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='TokenIssuer';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_tokenissuer(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_tokenissuer(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='TokenIssuer';}};// FfiConverter for TokenIssuerInterface
3673
3471
  const FfiConverterTypeTokenIssuer=new FfiConverterObject(uniffiTypeTokenIssuerObjectFactory);// FfiConverter for boolean | undefined
3674
3472
  const FfiConverterOptionalBool=new FfiConverterOptional(FfiConverterBool);// FfiConverter for ArrayBuffer | undefined
3675
3473
  const FfiConverterOptionalArrayBuffer=new FfiConverterOptional(FfiConverterArrayBuffer);// FfiConverter for Logger | undefined
@@ -3677,8 +3475,7 @@ const FfiConverterOptionalTypeLogger=new FfiConverterOptional(FfiConverterTypeLo
3677
3475
  const FfiConverterOptionalTypeConversionDetails=new FfiConverterOptional(FfiConverterTypeConversionDetails);// FfiConverter for ConversionEstimate | undefined
3678
3476
  const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionInfo | undefined
3679
3477
  const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionOptions | undefined
3680
- const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for ConversionStep | undefined
3681
- const FfiConverterOptionalTypeConversionStep=new FfiConverterOptional(FfiConverterTypeConversionStep);// FfiConverter for Credentials | undefined
3478
+ const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for Credentials | undefined
3682
3479
  const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for KeySetConfig | undefined
3683
3480
  const FfiConverterOptionalTypeKeySetConfig=new FfiConverterOptional(FfiConverterTypeKeySetConfig);// FfiConverter for LightningAddressInfo | undefined
3684
3481
  const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayInfo | undefined
@@ -3688,8 +3485,7 @@ const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConv
3688
3485
  const FfiConverterOptionalTypeNostrRelayConfig=new FfiConverterOptional(FfiConverterTypeNostrRelayConfig);// FfiConverter for OutgoingChange | undefined
3689
3486
  const FfiConverterOptionalTypeOutgoingChange=new FfiConverterOptional(FfiConverterTypeOutgoingChange);// FfiConverter for Payment | undefined
3690
3487
  const FfiConverterOptionalTypePayment=new FfiConverterOptional(FfiConverterTypePayment);// FfiConverter for Record | undefined
3691
- const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkConfig | undefined
3692
- const FfiConverterOptionalTypeSparkConfig=new FfiConverterOptional(FfiConverterTypeSparkConfig);// FfiConverter for SparkHtlcDetails | undefined
3488
+ const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkHtlcDetails | undefined
3693
3489
  const FfiConverterOptionalTypeSparkHtlcDetails=new FfiConverterOptional(FfiConverterTypeSparkHtlcDetails);// FfiConverter for SparkHtlcOptions | undefined
3694
3490
  const FfiConverterOptionalTypeSparkHtlcOptions=new FfiConverterOptional(FfiConverterTypeSparkHtlcOptions);// FfiConverter for SparkInvoicePaymentDetails | undefined
3695
3491
  const FfiConverterOptionalTypeSparkInvoicePaymentDetails=new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);// FfiConverter for StableBalanceConfig | undefined
@@ -3720,27 +3516,21 @@ const FfiConverterArrayTypePayment=new FfiConverterArray(FfiConverterTypePayment
3720
3516
  const FfiConverterArrayTypeProvisionalPayment=new FfiConverterArray(FfiConverterTypeProvisionalPayment);// FfiConverter for Array<Rate>
3721
3517
  const FfiConverterArrayTypeRate=new FfiConverterArray(FfiConverterTypeRate);// FfiConverter for Array<Record>
3722
3518
  const FfiConverterArrayTypeRecord=new FfiConverterArray(FfiConverterTypeRecord);// FfiConverter for Array<SetLnurlMetadataItem>
3723
- const FfiConverterArrayTypeSetLnurlMetadataItem=new FfiConverterArray(FfiConverterTypeSetLnurlMetadataItem);// FfiConverter for Array<SparkSigningOperator>
3724
- const FfiConverterArrayTypeSparkSigningOperator=new FfiConverterArray(FfiConverterTypeSparkSigningOperator);// FfiConverter for Array<StableBalanceToken>
3725
- const FfiConverterArrayTypeStableBalanceToken=new FfiConverterArray(FfiConverterTypeStableBalanceToken);// FfiConverter for Array<TokenMetadata>
3519
+ const FfiConverterArrayTypeSetLnurlMetadataItem=new FfiConverterArray(FfiConverterTypeSetLnurlMetadataItem);// FfiConverter for Array<TokenMetadata>
3726
3520
  const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<Utxo>
3727
- const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<Webhook>
3728
- const FfiConverterArrayTypeWebhook=new FfiConverterArray(FfiConverterTypeWebhook);// FfiConverter for Array<string>
3521
+ const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<string>
3729
3522
  const FfiConverterArrayString=new FfiConverterArray(FfiConverterString);// FfiConverter for Map<string, Array<Payment>>
3730
3523
  const FfiConverterMapStringArrayTypePayment=new FfiConverterMap(FfiConverterString,FfiConverterArrayTypePayment);// FfiConverter for U128 | undefined
3731
3524
  const FfiConverterOptionalTypeu128=new FfiConverterOptional(FfiConverterTypeu128);// FfiConverter for Amount | undefined
3732
- const FfiConverterOptionalTypeAmount=new FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for AmountAdjustmentReason | undefined
3733
- const FfiConverterOptionalTypeAmountAdjustmentReason=new FfiConverterOptional(FfiConverterTypeAmountAdjustmentReason);// FfiConverter for AssetFilter | undefined
3525
+ const FfiConverterOptionalTypeAmount=new FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for AssetFilter | undefined
3734
3526
  const FfiConverterOptionalTypeAssetFilter=new FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for ConversionPurpose | undefined
3735
- const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for ConversionStatus | undefined
3736
- const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for DepositClaimError | undefined
3527
+ const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for DepositClaimError | undefined
3737
3528
  const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
3738
3529
  const FfiConverterOptionalTypeFee=new FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for FeePolicy | undefined
3739
3530
  const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for MaxFee | undefined
3740
3531
  const FfiConverterOptionalTypeMaxFee=new FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
3741
3532
  const FfiConverterOptionalTypePaymentDetails=new FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for SendPaymentOptions | undefined
3742
- const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for StableBalanceActiveLabel | undefined
3743
- const FfiConverterOptionalTypeStableBalanceActiveLabel=new FfiConverterOptional(FfiConverterTypeStableBalanceActiveLabel);// FfiConverter for SuccessAction | undefined
3533
+ const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SuccessAction | undefined
3744
3534
  const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
3745
3535
  const FfiConverterOptionalTypeSuccessActionProcessed=new FfiConverterOptional(FfiConverterTypeSuccessActionProcessed);// FfiConverter for TokenTransactionType | undefined
3746
3536
  const FfiConverterOptionalTypeTokenTransactionType=new FfiConverterOptional(FfiConverterTypeTokenTransactionType);// FfiConverter for Map<string, string> | undefined
@@ -3751,8 +3541,7 @@ const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConvert
3751
3541
  const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
3752
3542
  const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkHtlcStatus>
3753
3543
  const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
3754
- const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
3755
- const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
3544
+ const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<PaymentDetailsFilter> | undefined
3756
3545
  const FfiConverterOptionalArrayTypePaymentDetailsFilter=new FfiConverterOptional(FfiConverterArrayTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus> | undefined
3757
3546
  const FfiConverterOptionalArrayTypePaymentStatus=new FfiConverterOptional(FfiConverterArrayTypePaymentStatus);// FfiConverter for Array<PaymentType> | undefined
3758
3547
  const FfiConverterOptionalArrayTypePaymentType=new FfiConverterOptional(FfiConverterArrayTypePaymentType);// FfiConverter for Array<SparkHtlcStatus> | undefined
@@ -3767,6 +3556,6 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
3767
3556
  *
3768
3557
  * It also initializes the machinery to enable Rust to talk back to Javascript.
3769
3558
  */function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
3770
- const bindingsContractVersion=29;// Get the scaffolding contract version by calling the into the dylib
3771
- 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_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}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_default_external_signer()!==40694){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}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_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}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_buy_bitcoin()!==34179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization()!==56996){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}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_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}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_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}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_leaf_optimization_progress()!==38008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}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_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}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()!==39170){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_list_webhooks()!==28432){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_webhooks');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}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_register_webhook()!==13529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook');}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_start_leaf_optimization()!==44923){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}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_unregister_webhook()!==34100){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}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_externalsigner_identity_public_key()!==62941){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==23137){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==37648){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==3107){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies()!==60224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies()!==59601){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256()!==57517){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment()!==31862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==37434){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret()!==26114){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted()!==38925){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret()!==45280){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key()!==62519){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets()!==45969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs()!==19489){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver()!==51627){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret()!==53055){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==20635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost()!==53544){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost');}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_passkey_get_wallet()!==28830){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_get_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_is_available()!==31283){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_is_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_list_labels()!==5351){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_list_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_store_label()!==42949){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_store_label');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed()!==44905){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available()!==33931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available');}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()!==50052){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_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()!==51078){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_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_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_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==35363){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()!==28477){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()!==62636){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()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==1304){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==7860){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==30862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==6931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==59522){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==19643){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==28540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==41369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==18793){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_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_passkey_new()!==25404){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkey_new');}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();uniffiCallbackInterfaceExternalSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePasskeyPrfProvider.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionStep,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedSecret,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretSource,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeNostrRelayConfig,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePasskey,FfiConverterTypePasskeyError,FfiConverterTypePasskeyPrfError,FfiConverterTypePasskeyPrfProvider,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignerError,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenTransactionType,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
3559
+ const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
3560
+ 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_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}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_default_external_signer()!==40694){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}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_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}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_buy_bitcoin()!==32150){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization()!==56996){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}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_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}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_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}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_leaf_optimization_progress()!==38008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}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_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}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()!==39170){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_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}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_start_leaf_optimization()!==22827){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}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_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}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_externalsigner_identity_public_key()!==62941){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==23137){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==37648){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==3107){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies()!==60224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies()!==59601){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256()!==57517){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment()!==31862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==37434){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret()!==26114){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted()!==38925){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret()!==45280){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key()!==62519){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets()!==45969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs()!==19489){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver()!==51627){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret()!==53055){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==20635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost()!==53544){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost');}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_passkey_get_wallet()!==28830){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_get_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_is_available()!==31283){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_is_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_list_labels()!==5351){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_list_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_store_label()!==42949){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_store_label');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed()!==44905){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available()!==33931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available');}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()!==50052){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_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()!==51078){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_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_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_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==13181){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()!==28477){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()!==62636){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()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==1304){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==7860){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==30862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==6931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==59522){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==19643){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==28540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==41369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==18793){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_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_passkey_new()!==25404){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkey_new');}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();uniffiCallbackInterfaceExternalSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePasskeyPrfProvider.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionStep,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedSecret,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretSource,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeNostrRelayConfig,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePasskey,FfiConverterTypePasskeyPrfProvider,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceStatus,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStorage,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenTransactionType,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeu128}});
3772
3561
  //# sourceMappingURL=breez_sdk_spark.js.map