@breeztech/breez-sdk-spark-react-native 0.12.1 → 0.12.2-dev2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{breeztech-breez-sdk-spark-react-native.podspec → BreezSdkSparkReactNative.podspec} +2 -2
- package/README.md +6 -6
- package/android/CMakeLists.txt +3 -4
- package/cpp/generated/breez_sdk_spark.cpp +661 -452
- package/cpp/generated/breez_sdk_spark.hpp +49 -29
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +366 -155
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark_bindings.js +4 -2
- package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
- package/lib/commonjs/index.js +11 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +365 -154
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark_bindings.js +4 -2
- package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +77 -71
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1037 -116
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +77 -71
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1037 -116
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/breez_sdk_spark-ffi.ts +106 -91
- package/src/generated/breez_sdk_spark.ts +2796 -1030
- package/src/generated/breez_sdk_spark_bindings.ts +2 -2
- package/src/index.tsx +7 -0
|
@@ -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();const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
|
|
4
|
+
const uniffiCaller=new UniffiRustCaller(()=>({code:0}));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(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
57
|
-
callStatus:
|
|
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.
|
|
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,18 +240,6 @@ 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();})();/**
|
|
255
243
|
* Response containing a URL to complete the Bitcoin purchase
|
|
256
244
|
*//**
|
|
257
245
|
* Generated factory for {@link BuyBitcoinResponse} record objects.
|
|
@@ -343,7 +331,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
343
331
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
344
332
|
*/new:create,/**
|
|
345
333
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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),
|
|
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();})();/**
|
|
347
335
|
* Generated factory for {@link ConnectRequest} record objects.
|
|
348
336
|
*/export const ConnectRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
349
337
|
* Create a frozen instance of {@link ConnectRequest}, with defaults specified
|
|
@@ -380,7 +368,10 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
380
368
|
*/new:create,/**
|
|
381
369
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
382
370
|
*/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();})();/**
|
|
383
|
-
* Outlines the steps involved in a conversion
|
|
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.
|
|
384
375
|
*//**
|
|
385
376
|
* Generated factory for {@link ConversionDetails} record objects.
|
|
386
377
|
*/export const ConversionDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
@@ -391,7 +382,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
391
382
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
392
383
|
*/new:create,/**
|
|
393
384
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
394
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConversionDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{from:
|
|
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();})();/**
|
|
395
386
|
* Response from estimating a conversion, used when preparing a payment that requires conversion
|
|
396
387
|
*//**
|
|
397
388
|
* Generated factory for {@link ConversionEstimate} record objects.
|
|
@@ -403,7 +394,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
403
394
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
404
395
|
*/new:create,/**
|
|
405
396
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
407
398
|
* Generated factory for {@link ConversionInfo} record objects.
|
|
408
399
|
*/export const ConversionInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
409
400
|
* Create a frozen instance of {@link ConversionInfo}, with defaults specified
|
|
@@ -413,7 +404,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
413
404
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
414
405
|
*/new:create,/**
|
|
415
406
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
417
408
|
* Options for conversion when fulfilling a payment. When set, the SDK will
|
|
418
409
|
* perform a conversion before fulfilling the payment. If not set, the payment
|
|
419
410
|
* will only be fulfilled if the wallet has sufficient balance of the required asset.
|
|
@@ -439,7 +430,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
439
430
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
440
431
|
*/new:create,/**
|
|
441
432
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
443
434
|
* Generated factory for {@link CreateIssuerTokenRequest} record objects.
|
|
444
435
|
*/export const CreateIssuerTokenRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
445
436
|
* Create a frozen instance of {@link CreateIssuerTokenRequest}, with defaults specified
|
|
@@ -481,7 +472,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
481
472
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
482
473
|
*/new:create,/**
|
|
483
474
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
485
476
|
* FFI-safe representation of an ECDSA signature (64 bytes)
|
|
486
477
|
*//**
|
|
487
478
|
* Generated factory for {@link EcdsaSignatureBytes} record objects.
|
|
@@ -1203,7 +1194,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1203
1194
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1204
1195
|
*/new:create,/**
|
|
1205
1196
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
1207
1198
|
* Generated factory for {@link PaymentRequestSource} record objects.
|
|
1208
1199
|
*/export const PaymentRequestSource=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1209
1200
|
* Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
|
|
@@ -1390,6 +1381,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1390
1381
|
*/new:create,/**
|
|
1391
1382
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1392
1383
|
*/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();})();/**
|
|
1393
1408
|
* Generated factory for {@link RestResponse} record objects.
|
|
1394
1409
|
*/export const RestResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1395
1410
|
* Create a frozen instance of {@link RestResponse}, with defaults specified
|
|
@@ -1473,7 +1488,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1473
1488
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1474
1489
|
*/new:create,/**
|
|
1475
1490
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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)
|
|
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();})();/**
|
|
1477
1492
|
* Generated factory for {@link SignMessageRequest} record objects.
|
|
1478
1493
|
*/export const SignMessageRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1479
1494
|
* Create a frozen instance of {@link SignMessageRequest}, with defaults specified
|
|
@@ -1514,6 +1529,22 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1514
1529
|
*/new:create,/**
|
|
1515
1530
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1516
1531
|
*/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();})();/**
|
|
1517
1548
|
* Generated factory for {@link SparkHtlcDetails} record objects.
|
|
1518
1549
|
*/export const SparkHtlcDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1519
1550
|
* Create a frozen instance of {@link SparkHtlcDetails}, with defaults specified
|
|
@@ -1554,6 +1585,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1554
1585
|
*/new:create,/**
|
|
1555
1586
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1556
1587
|
*/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();})();/**
|
|
1557
1612
|
* The status of the Spark network services relevant to the SDK.
|
|
1558
1613
|
*//**
|
|
1559
1614
|
* Generated factory for {@link SparkStatus} record objects.
|
|
@@ -1571,15 +1626,17 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1571
1626
|
* When configured, the SDK automatically monitors the Bitcoin balance after each
|
|
1572
1627
|
* wallet sync. When the balance exceeds the configured threshold plus the reserved
|
|
1573
1628
|
* amount, the SDK automatically converts the excess balance (above the reserve)
|
|
1574
|
-
* to the
|
|
1629
|
+
* to the active stable token.
|
|
1575
1630
|
*
|
|
1576
1631
|
* When the balance is held in a stable token, Bitcoin payments can still be sent.
|
|
1577
1632
|
* The SDK automatically detects when there's not enough Bitcoin balance to cover a
|
|
1578
1633
|
* payment and auto-populates the token-to-Bitcoin conversion options to facilitate
|
|
1579
1634
|
* the payment.
|
|
1635
|
+
*
|
|
1636
|
+
* The active token can be changed at runtime via [`UpdateUserSettingsRequest`].
|
|
1580
1637
|
*//**
|
|
1581
1638
|
* Generated factory for {@link StableBalanceConfig} record objects.
|
|
1582
|
-
*/export const StableBalanceConfig=(()=>{const defaults=()=>({
|
|
1639
|
+
*/export const StableBalanceConfig=(()=>{const defaults=()=>({defaultActiveLabel:undefined,thresholdSats:undefined,maxSlippageBps:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1583
1640
|
* Create a frozen instance of {@link StableBalanceConfig}, with defaults specified
|
|
1584
1641
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1585
1642
|
*/create,/**
|
|
@@ -1587,7 +1644,19 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1587
1644
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1588
1645
|
*/new:create,/**
|
|
1589
1646
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1590
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeStableBalanceConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{
|
|
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();})();/**
|
|
1591
1660
|
* Storage-internal variant of [`ListPaymentsRequest`] that uses
|
|
1592
1661
|
* [`StoragePaymentDetailsFilter`] instead of the public [`PaymentDetailsFilter`].
|
|
1593
1662
|
*//**
|
|
@@ -1687,6 +1756,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1687
1756
|
*/new:create,/**
|
|
1688
1757
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1689
1758
|
*/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();})();/**
|
|
1690
1771
|
* Generated factory for {@link UnversionedRecordChange} record objects.
|
|
1691
1772
|
*/export const UnversionedRecordChange=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1692
1773
|
* Create a frozen instance of {@link UnversionedRecordChange}, with defaults specified
|
|
@@ -1710,7 +1791,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1710
1791
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1711
1792
|
*/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();})();/**
|
|
1712
1793
|
* Generated factory for {@link UpdateUserSettingsRequest} record objects.
|
|
1713
|
-
*/export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1794
|
+
*/export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({stableBalanceActiveLabel:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1714
1795
|
* Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
|
|
1715
1796
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1716
1797
|
*/create,/**
|
|
@@ -1718,7 +1799,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1718
1799
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1719
1800
|
*/new:create,/**
|
|
1720
1801
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
1722
1803
|
* Generated factory for {@link UrlSuccessActionData} record objects.
|
|
1723
1804
|
*/export const UrlSuccessActionData=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1724
1805
|
* Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
|
|
@@ -1738,7 +1819,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1738
1819
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1739
1820
|
*/new:create,/**
|
|
1740
1821
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})();/**
|
|
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();})();/**
|
|
1742
1823
|
* Generated factory for {@link Utxo} record objects.
|
|
1743
1824
|
*/export const Utxo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1744
1825
|
* Create a frozen instance of {@link Utxo}, with defaults specified
|
|
@@ -1762,7 +1843,19 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1762
1843
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1763
1844
|
*/new:create,/**
|
|
1764
1845
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
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();})()
|
|
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);/**
|
|
1766
1859
|
* Typealias from the type name used in the UDL file to the custom type. This
|
|
1767
1860
|
* is needed because the UDL type name is used in function/method signatures.
|
|
1768
1861
|
*/// FfiConverter for U128
|
|
@@ -1790,7 +1883,14 @@ export let Amount_Tags=/*#__PURE__*/function(Amount_Tags){Amount_Tags["Bitcoin"]
|
|
|
1790
1883
|
* This field is private and should not be used, use `tag` instead.
|
|
1791
1884
|
*/[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
|
|
1792
1885
|
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.
|
|
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();})()
|
|
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
|
|
1794
1894
|
export let AssetFilter_Tags=/*#__PURE__*/function(AssetFilter_Tags){AssetFilter_Tags["Bitcoin"]="Bitcoin";AssetFilter_Tags["Token"]="Token";return AssetFilter_Tags;}({});/**
|
|
1795
1895
|
* A field of [`ListPaymentsRequest`] when listing payments filtered by asset
|
|
1796
1896
|
*/export const AssetFilter=(()=>{class Bitcoin_ extends UniffiEnum{/**
|
|
@@ -1805,7 +1905,33 @@ export let AssetFilter_Tags=/*#__PURE__*/function(AssetFilter_Tags){AssetFilter_
|
|
|
1805
1905
|
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.
|
|
1806
1906
|
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){/**
|
|
1807
1907
|
* Mainnet
|
|
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();})()
|
|
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
|
|
1809
1935
|
// Enum: ChainServiceError
|
|
1810
1936
|
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{/**
|
|
1811
1937
|
* @private
|
|
@@ -1845,13 +1971,17 @@ const FfiConverterTypeConversionPurpose=(()=>{const ordinalConverter=FfiConverte
|
|
|
1845
1971
|
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();})();/**
|
|
1846
1972
|
* The status of the conversion
|
|
1847
1973
|
*/export let ConversionStatus=/*#__PURE__*/function(ConversionStatus){/**
|
|
1974
|
+
* Conversion is in-flight (queued or started, not yet completed)
|
|
1975
|
+
*/ConversionStatus[ConversionStatus["Pending"]=0]="Pending";/**
|
|
1848
1976
|
* The conversion was successful
|
|
1849
|
-
*/ConversionStatus[ConversionStatus["Completed"]=
|
|
1977
|
+
*/ConversionStatus[ConversionStatus["Completed"]=1]="Completed";/**
|
|
1978
|
+
* The conversion failed (e.g., the initial send payment failed)
|
|
1979
|
+
*/ConversionStatus[ConversionStatus["Failed"]=2]="Failed";/**
|
|
1850
1980
|
* The conversion failed and no refund was made yet, which requires action by the SDK to
|
|
1851
1981
|
* perform the refund. This can happen if there was a failure during the conversion process.
|
|
1852
|
-
*/ConversionStatus[ConversionStatus["RefundNeeded"]=
|
|
1982
|
+
*/ConversionStatus[ConversionStatus["RefundNeeded"]=3]="RefundNeeded";/**
|
|
1853
1983
|
* The conversion failed and a refund was made
|
|
1854
|
-
*/ConversionStatus[ConversionStatus["Refunded"]=
|
|
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
|
|
1855
1985
|
export let ConversionType_Tags=/*#__PURE__*/function(ConversionType_Tags){ConversionType_Tags["FromBitcoin"]="FromBitcoin";ConversionType_Tags["ToBitcoin"]="ToBitcoin";return ConversionType_Tags;}({});export const ConversionType=(()=>{/**
|
|
1856
1986
|
* Converting from Bitcoin to a token
|
|
1857
1987
|
*/class FromBitcoin_ extends UniffiEnum{/**
|
|
@@ -2206,12 +2336,12 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
|
|
|
2206
2336
|
*/[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{/**
|
|
2207
2337
|
* @private
|
|
2208
2338
|
* This field is private and should not be used, use `tag` instead.
|
|
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{/**
|
|
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{/**
|
|
2210
2340
|
* @private
|
|
2211
2341
|
* This field is private and should not be used, use `tag` instead.
|
|
2212
2342
|
*/[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
|
|
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:{
|
|
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
|
|
2215
2345
|
// Enum: SdkError
|
|
2216
2346
|
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;}({});/**
|
|
2217
2347
|
* Error type for the `BreezSdk`
|
|
@@ -2262,7 +2392,7 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
2262
2392
|
*/// FfiConverter for enum SdkError
|
|
2263
2393
|
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.
|
|
2264
2394
|
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
|
|
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;}({});/**
|
|
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;}({});/**
|
|
2266
2396
|
* Events emitted by the SDK
|
|
2267
2397
|
*/export const SdkEvent=(()=>{/**
|
|
2268
2398
|
* Emitted when the wallet has been synchronized with the network
|
|
@@ -2292,11 +2422,14 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
|
|
|
2292
2422
|
*/[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{/**
|
|
2293
2423
|
* @private
|
|
2294
2424
|
* This field is private and should not be used, use `tag` instead.
|
|
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;}}
|
|
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_});})();/**
|
|
2296
2429
|
* Events emitted by the SDK
|
|
2297
2430
|
*/// FfiConverter for enum SdkEvent
|
|
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
|
|
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
|
|
2300
2433
|
export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
|
|
2301
2434
|
* Represents the seed for wallet generation, either as a mnemonic phrase with an optional
|
|
2302
2435
|
* passphrase or as raw entropy bytes.
|
|
@@ -2423,7 +2556,24 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
2423
2556
|
* The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
|
|
2424
2557
|
*/SparkHtlcStatus[SparkHtlcStatus["PreimageShared"]=1]="PreimageShared";/**
|
|
2425
2558
|
* The HTLC has been returned to the sender due to expiry
|
|
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();})();//
|
|
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
|
|
2427
2577
|
// Enum: StorageError
|
|
2428
2578
|
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;}({});/**
|
|
2429
2579
|
* Errors that can occur during storage operations
|
|
@@ -2453,9 +2603,7 @@ export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageErr
|
|
|
2453
2603
|
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.
|
|
2454
2604
|
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
|
|
2455
2605
|
export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePaymentDetailsFilter_Tags){StoragePaymentDetailsFilter_Tags["Spark"]="Spark";StoragePaymentDetailsFilter_Tags["Token"]="Token";StoragePaymentDetailsFilter_Tags["Lightning"]="Lightning";return StoragePaymentDetailsFilter_Tags;}({});/**
|
|
2456
|
-
* Storage-internal variant of [`PaymentDetailsFilter`]
|
|
2457
|
-
* `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
|
|
2458
|
-
* in the public API.
|
|
2606
|
+
* Storage-internal variant of [`PaymentDetailsFilter`].
|
|
2459
2607
|
*/export const StoragePaymentDetailsFilter=(()=>{class Spark_ extends UniffiEnum{/**
|
|
2460
2608
|
* @private
|
|
2461
2609
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2466,12 +2614,10 @@ export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePayment
|
|
|
2466
2614
|
* @private
|
|
2467
2615
|
* This field is private and should not be used, use `tag` instead.
|
|
2468
2616
|
*/[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_});})();/**
|
|
2469
|
-
* Storage-internal variant of [`PaymentDetailsFilter`]
|
|
2470
|
-
* `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
|
|
2471
|
-
* in the public API.
|
|
2617
|
+
* Storage-internal variant of [`PaymentDetailsFilter`].
|
|
2472
2618
|
*/// FfiConverter for enum StoragePaymentDetailsFilter
|
|
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)
|
|
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);
|
|
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
|
|
2475
2621
|
export let SuccessAction_Tags=/*#__PURE__*/function(SuccessAction_Tags){SuccessAction_Tags["Aes"]="Aes";SuccessAction_Tags["Message"]="Message";SuccessAction_Tags["Url"]="Url";return SuccessAction_Tags;}({});/**
|
|
2476
2622
|
* Supported success action types
|
|
2477
2623
|
*
|
|
@@ -2536,22 +2682,54 @@ export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_
|
|
|
2536
2682
|
* This field is private and should not be used, use `tag` instead.
|
|
2537
2683
|
*/[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
|
|
2538
2684
|
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.
|
|
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();})();//
|
|
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>
|
|
2540
2718
|
const FfiConverterMapStringTypeTokenBalance=new FfiConverterMap(FfiConverterString,FfiConverterTypeTokenBalance);// FfiConverter for Map<string, string>
|
|
2541
2719
|
const FfiConverterMapStringString=new FfiConverterMap(FfiConverterString,FfiConverterString);export class BitcoinChainServiceImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='BitcoinChainServiceImpl';// No primary constructor declared for this class.
|
|
2542
2720
|
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;}}/**
|
|
2543
2721
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
2545
2723
|
const FfiConverterTypeBitcoinChainService=new FfiConverterObjectWithCallbacks(uniffiTypeBitcoinChainServiceImplObjectFactory);// Add a vtavble for the callbacks that go in BitcoinChainService.
|
|
2546
2724
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
2547
2725
|
const uniffiCallbackInterfaceBitcoinChainService={// Create the VTable using a series of closures.
|
|
2548
2726
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
2551
|
-
callStatus:
|
|
2552
|
-
callStatus:
|
|
2553
|
-
callStatus:
|
|
2554
|
-
callStatus:
|
|
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.
|
|
2555
2733
|
FfiConverterTypeBitcoinChainService.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(uniffiCallbackInterfaceBitcoinChainService.vtable);}};/**
|
|
2556
2734
|
* `BreezSDK` is a wrapper around `SparkSDK` that provides a more structured API
|
|
2557
2735
|
* with request/response objects and comprehensive error handling.
|
|
@@ -2580,19 +2758,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2580
2758
|
*
|
|
2581
2759
|
* A unique identifier for the listener, which can be used to remove it later
|
|
2582
2760
|
*/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;}}/**
|
|
2583
|
-
* Initiates a Bitcoin purchase flow via an external provider
|
|
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.
|
|
2761
|
+
* Initiates a Bitcoin purchase flow via an external provider.
|
|
2588
2762
|
*
|
|
2589
|
-
*
|
|
2590
|
-
*
|
|
2591
|
-
* * `request` - The purchase request containing optional amount and redirect URL
|
|
2592
|
-
*
|
|
2593
|
-
* # Returns
|
|
2763
|
+
* Returns a URL the user should open to complete the purchase.
|
|
2764
|
+
* The request variant determines the provider and its parameters:
|
|
2594
2765
|
*
|
|
2595
|
-
*
|
|
2766
|
+
* - [`BuyBitcoinRequest::Moonpay`]: Fiat-to-Bitcoin via on-chain deposit.
|
|
2767
|
+
* - [`BuyBitcoinRequest::CashApp`]: Lightning invoice + `cash.app` deep link (mainnet only).
|
|
2596
2768
|
*/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;}}/**
|
|
2597
2769
|
* Cancels the ongoing leaf optimization.
|
|
2598
2770
|
*
|
|
@@ -2672,6 +2844,12 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2672
2844
|
* * `Ok(ListPaymentsResponse)` - Contains the list of payments if successful
|
|
2673
2845
|
* * `Err(SdkError)` - If there was an error accessing the storage
|
|
2674
2846
|
*/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;}}/**
|
|
2675
2853
|
* Performs LNURL-auth with the service.
|
|
2676
2854
|
*
|
|
2677
2855
|
* This method implements the LNURL-auth protocol as specified in LUD-04 and LUD-05.
|
|
@@ -2706,6 +2884,20 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2706
2884
|
*/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;}}/**
|
|
2707
2885
|
* Get the recommended BTC fees based on the configured chain service.
|
|
2708
2886
|
*/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;}}/**
|
|
2709
2901
|
* Removes a previously registered event listener
|
|
2710
2902
|
*
|
|
2711
2903
|
* # Arguments
|
|
@@ -2725,9 +2917,18 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2725
2917
|
* This method spawns the optimization work in a background task and returns
|
|
2726
2918
|
* immediately. Progress is reported via events.
|
|
2727
2919
|
* If optimization is already running, no new task will be started.
|
|
2728
|
-
*/startLeafOptimization(){
|
|
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;}}/**
|
|
2729
2921
|
* Synchronizes the wallet with the Spark network
|
|
2730
2922
|
*/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;}}/**
|
|
2731
2932
|
* Updates an existing contact.
|
|
2732
2933
|
*
|
|
2733
2934
|
* # Arguments
|
|
@@ -2743,7 +2944,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2743
2944
|
* Some settings are updated on the Spark network so network requests may be performed.
|
|
2744
2945
|
*/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;}}/**
|
|
2745
2946
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
2747
2948
|
const FfiConverterTypeBreezSdk=new FfiConverterObject(uniffiTypeBreezSdkObjectFactory);/**
|
|
2748
2949
|
* External signer trait that can be implemented by users and passed to the SDK.
|
|
2749
2950
|
*
|
|
@@ -2975,31 +3176,31 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2975
3176
|
* See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
|
|
2976
3177
|
*/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;}}/**
|
|
2977
3178
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
2979
3180
|
const FfiConverterTypeExternalSigner=new FfiConverterObjectWithCallbacks(uniffiTypeExternalSignerImplObjectFactory);// Add a vtavble for the callbacks that go in ExternalSigner.
|
|
2980
3181
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
2981
3182
|
const uniffiCallbackInterfaceExternalSigner={// Create the VTable using a series of closures.
|
|
2982
3183
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
2985
|
-
callStatus:
|
|
2986
|
-
callStatus:
|
|
2987
|
-
callStatus:
|
|
2988
|
-
callStatus:
|
|
2989
|
-
callStatus:
|
|
2990
|
-
callStatus:
|
|
2991
|
-
callStatus:
|
|
2992
|
-
callStatus:
|
|
2993
|
-
callStatus:
|
|
2994
|
-
callStatus:
|
|
2995
|
-
callStatus:
|
|
2996
|
-
callStatus:
|
|
2997
|
-
callStatus:
|
|
2998
|
-
callStatus:
|
|
2999
|
-
callStatus:
|
|
3000
|
-
callStatus:
|
|
3001
|
-
callStatus:
|
|
3002
|
-
callStatus:
|
|
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.
|
|
3003
3204
|
FfiConverterTypeExternalSigner.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(uniffiCallbackInterfaceExternalSigner.vtable);}};/**
|
|
3004
3205
|
* Trait covering fiat-related functionality
|
|
3005
3206
|
*//**
|
|
@@ -3011,14 +3212,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3011
3212
|
* Get the live rates from the server.
|
|
3012
3213
|
*/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;}}/**
|
|
3013
3214
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3015
3216
|
const FfiConverterTypeFiatService=new FfiConverterObjectWithCallbacks(uniffiTypeFiatServiceImplObjectFactory);// Add a vtavble for the callbacks that go in FiatService.
|
|
3016
3217
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3017
3218
|
const uniffiCallbackInterfaceFiatService={// Create the VTable using a series of closures.
|
|
3018
3219
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
3021
|
-
callStatus:
|
|
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.
|
|
3022
3223
|
FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(uniffiCallbackInterfaceFiatService.vtable);}};/**
|
|
3023
3224
|
* Orchestrates passkey-based wallet creation and restore operations.
|
|
3024
3225
|
*
|
|
@@ -3072,7 +3273,7 @@ FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().u
|
|
|
3072
3273
|
* * `label` - A user-chosen label (e.g., "personal", "business")
|
|
3073
3274
|
*/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;}}/**
|
|
3074
3275
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3076
3277
|
const FfiConverterTypePasskey=new FfiConverterObject(uniffiTypePasskeyObjectFactory);/**
|
|
3077
3278
|
* Trait for passkey PRF (Pseudo-Random Function) operations.
|
|
3078
3279
|
*
|
|
@@ -3113,14 +3314,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3113
3314
|
* * `Err(PasskeyPrfError)` - If the check fails
|
|
3114
3315
|
*/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;}}/**
|
|
3115
3316
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3117
3318
|
const FfiConverterTypePasskeyPrfProvider=new FfiConverterObjectWithCallbacks(uniffiTypePasskeyPrfProviderImplObjectFactory);// Add a vtavble for the callbacks that go in PasskeyPrfProvider.
|
|
3118
3319
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3119
3320
|
const uniffiCallbackInterfacePasskeyPrfProvider={// Create the VTable using a series of closures.
|
|
3120
3321
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
3123
|
-
callStatus:
|
|
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.
|
|
3124
3325
|
FfiConverterTypePasskeyPrfProvider.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(uniffiCallbackInterfacePasskeyPrfProvider.vtable);}};/**
|
|
3125
3326
|
* This interface is used to observe outgoing payments before Lightning, Spark and onchain Bitcoin payments.
|
|
3126
3327
|
* If the implementation returns an error, the payment is cancelled.
|
|
@@ -3132,13 +3333,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3132
3333
|
* Called before Lightning, Spark or onchain Bitcoin payments are made
|
|
3133
3334
|
*/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;}}/**
|
|
3134
3335
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3136
3337
|
const FfiConverterTypePaymentObserver=new FfiConverterObjectWithCallbacks(uniffiTypePaymentObserverImplObjectFactory);// Add a vtavble for the callbacks that go in PaymentObserver.
|
|
3137
3338
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3138
3339
|
const uniffiCallbackInterfacePaymentObserver={// Create the VTable using a series of closures.
|
|
3139
3340
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
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.
|
|
3142
3343
|
FfiConverterTypePaymentObserver.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(uniffiCallbackInterfacePaymentObserver.vtable);}};/**
|
|
3143
3344
|
* REST client trait for making HTTP requests.
|
|
3144
3345
|
*
|
|
@@ -3171,15 +3372,15 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3171
3372
|
* - `body`: the optional DELETE body
|
|
3172
3373
|
*/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;}}/**
|
|
3173
3374
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3175
3376
|
const FfiConverterTypeRestClient=new FfiConverterObjectWithCallbacks(uniffiTypeRestClientImplObjectFactory);// Add a vtavble for the callbacks that go in RestClient.
|
|
3176
3377
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3177
3378
|
const uniffiCallbackInterfaceRestClient={// Create the VTable using a series of closures.
|
|
3178
3379
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
3181
|
-
callStatus:
|
|
3182
|
-
callStatus:
|
|
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.
|
|
3183
3384
|
FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(uniffiCallbackInterfaceRestClient.vtable);}};/**
|
|
3184
3385
|
* Builder for creating `BreezSdk` instances with customizable components.
|
|
3185
3386
|
*//**
|
|
@@ -3225,7 +3426,7 @@ FfiConverterTypeRestClient.drop(uniffiHandle);}},register:()=>{nativeModule().ub
|
|
|
3225
3426
|
* - `storage`: The storage implementation to be used.
|
|
3226
3427
|
*/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;}}/**
|
|
3227
3428
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3229
3430
|
const FfiConverterTypeSdkBuilder=new FfiConverterObject(uniffiTypeSdkBuilderObjectFactory);/**
|
|
3230
3431
|
* Trait for persistent storage
|
|
3231
3432
|
*//**
|
|
@@ -3291,17 +3492,18 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3291
3492
|
*
|
|
3292
3493
|
* A map of `parent_payment_id` -> Vec<Payment> or a `StorageError`
|
|
3293
3494
|
*/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;}}/**
|
|
3294
|
-
* Add a deposit to storage
|
|
3495
|
+
* Add a deposit to storage (upsert: updates `is_mature` and `amount_sats` on conflict)
|
|
3295
3496
|
* # Arguments
|
|
3296
3497
|
*
|
|
3297
3498
|
* * `txid` - The transaction ID of the deposit
|
|
3298
3499
|
* * `vout` - The output index of the deposit
|
|
3299
3500
|
* * `amount_sats` - The amount of the deposit in sats
|
|
3501
|
+
* * `is_mature` - Whether the deposit UTXO has enough confirmations to be claimable
|
|
3300
3502
|
*
|
|
3301
3503
|
* # Returns
|
|
3302
3504
|
*
|
|
3303
3505
|
* Success or a `StorageError`
|
|
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;}}/**
|
|
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;}}/**
|
|
3305
3507
|
* Removes an unclaimed deposit from storage
|
|
3306
3508
|
* # Arguments
|
|
3307
3509
|
*
|
|
@@ -3355,39 +3557,39 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3355
3557
|
* Update the sync state record from an incoming record
|
|
3356
3558
|
*/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;}}/**
|
|
3357
3559
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3359
3561
|
const FfiConverterTypeStorage=new FfiConverterObjectWithCallbacks(uniffiTypeStorageImplObjectFactory);// Add a vtavble for the callbacks that go in Storage.
|
|
3360
3562
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3361
3563
|
const uniffiCallbackInterfaceStorage={// Create the VTable using a series of closures.
|
|
3362
3564
|
// ts automatically converts these into C callback functions.
|
|
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:
|
|
3365
|
-
callStatus:
|
|
3366
|
-
callStatus:
|
|
3367
|
-
callStatus:
|
|
3368
|
-
callStatus:
|
|
3369
|
-
callStatus:
|
|
3370
|
-
callStatus:
|
|
3371
|
-
callStatus:
|
|
3372
|
-
callStatus:
|
|
3373
|
-
callStatus:
|
|
3374
|
-
callStatus:
|
|
3375
|
-
callStatus:
|
|
3376
|
-
callStatus:
|
|
3377
|
-
callStatus:
|
|
3378
|
-
callStatus:
|
|
3379
|
-
callStatus:
|
|
3380
|
-
callStatus:
|
|
3381
|
-
callStatus:
|
|
3382
|
-
callStatus:
|
|
3383
|
-
callStatus:
|
|
3384
|
-
callStatus:
|
|
3385
|
-
callStatus:
|
|
3386
|
-
callStatus:
|
|
3387
|
-
callStatus:
|
|
3388
|
-
callStatus:
|
|
3389
|
-
callStatus:
|
|
3390
|
-
callStatus:
|
|
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.
|
|
3391
3593
|
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.
|
|
3392
3594
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeTokenIssuerObjectFactory.bless(pointer);}/**
|
|
3393
3595
|
* Burns supply of the issuer token
|
|
@@ -3467,7 +3669,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3467
3669
|
* * `SdkError` - If there was an error during the unfreeze process
|
|
3468
3670
|
*/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;}}/**
|
|
3469
3671
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
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
|
|
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
|
|
3471
3673
|
const FfiConverterTypeTokenIssuer=new FfiConverterObject(uniffiTypeTokenIssuerObjectFactory);// FfiConverter for boolean | undefined
|
|
3472
3674
|
const FfiConverterOptionalBool=new FfiConverterOptional(FfiConverterBool);// FfiConverter for ArrayBuffer | undefined
|
|
3473
3675
|
const FfiConverterOptionalArrayBuffer=new FfiConverterOptional(FfiConverterArrayBuffer);// FfiConverter for Logger | undefined
|
|
@@ -3475,7 +3677,8 @@ const FfiConverterOptionalTypeLogger=new FfiConverterOptional(FfiConverterTypeLo
|
|
|
3475
3677
|
const FfiConverterOptionalTypeConversionDetails=new FfiConverterOptional(FfiConverterTypeConversionDetails);// FfiConverter for ConversionEstimate | undefined
|
|
3476
3678
|
const FfiConverterOptionalTypeConversionEstimate=new FfiConverterOptional(FfiConverterTypeConversionEstimate);// FfiConverter for ConversionInfo | undefined
|
|
3477
3679
|
const FfiConverterOptionalTypeConversionInfo=new FfiConverterOptional(FfiConverterTypeConversionInfo);// FfiConverter for ConversionOptions | undefined
|
|
3478
|
-
const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for
|
|
3680
|
+
const FfiConverterOptionalTypeConversionOptions=new FfiConverterOptional(FfiConverterTypeConversionOptions);// FfiConverter for ConversionStep | undefined
|
|
3681
|
+
const FfiConverterOptionalTypeConversionStep=new FfiConverterOptional(FfiConverterTypeConversionStep);// FfiConverter for Credentials | undefined
|
|
3479
3682
|
const FfiConverterOptionalTypeCredentials=new FfiConverterOptional(FfiConverterTypeCredentials);// FfiConverter for KeySetConfig | undefined
|
|
3480
3683
|
const FfiConverterOptionalTypeKeySetConfig=new FfiConverterOptional(FfiConverterTypeKeySetConfig);// FfiConverter for LightningAddressInfo | undefined
|
|
3481
3684
|
const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayInfo | undefined
|
|
@@ -3485,7 +3688,8 @@ const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConv
|
|
|
3485
3688
|
const FfiConverterOptionalTypeNostrRelayConfig=new FfiConverterOptional(FfiConverterTypeNostrRelayConfig);// FfiConverter for OutgoingChange | undefined
|
|
3486
3689
|
const FfiConverterOptionalTypeOutgoingChange=new FfiConverterOptional(FfiConverterTypeOutgoingChange);// FfiConverter for Payment | undefined
|
|
3487
3690
|
const FfiConverterOptionalTypePayment=new FfiConverterOptional(FfiConverterTypePayment);// FfiConverter for Record | undefined
|
|
3488
|
-
const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for
|
|
3691
|
+
const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkConfig | undefined
|
|
3692
|
+
const FfiConverterOptionalTypeSparkConfig=new FfiConverterOptional(FfiConverterTypeSparkConfig);// FfiConverter for SparkHtlcDetails | undefined
|
|
3489
3693
|
const FfiConverterOptionalTypeSparkHtlcDetails=new FfiConverterOptional(FfiConverterTypeSparkHtlcDetails);// FfiConverter for SparkHtlcOptions | undefined
|
|
3490
3694
|
const FfiConverterOptionalTypeSparkHtlcOptions=new FfiConverterOptional(FfiConverterTypeSparkHtlcOptions);// FfiConverter for SparkInvoicePaymentDetails | undefined
|
|
3491
3695
|
const FfiConverterOptionalTypeSparkInvoicePaymentDetails=new FfiConverterOptional(FfiConverterTypeSparkInvoicePaymentDetails);// FfiConverter for StableBalanceConfig | undefined
|
|
@@ -3516,21 +3720,27 @@ const FfiConverterArrayTypePayment=new FfiConverterArray(FfiConverterTypePayment
|
|
|
3516
3720
|
const FfiConverterArrayTypeProvisionalPayment=new FfiConverterArray(FfiConverterTypeProvisionalPayment);// FfiConverter for Array<Rate>
|
|
3517
3721
|
const FfiConverterArrayTypeRate=new FfiConverterArray(FfiConverterTypeRate);// FfiConverter for Array<Record>
|
|
3518
3722
|
const FfiConverterArrayTypeRecord=new FfiConverterArray(FfiConverterTypeRecord);// FfiConverter for Array<SetLnurlMetadataItem>
|
|
3519
|
-
const FfiConverterArrayTypeSetLnurlMetadataItem=new FfiConverterArray(FfiConverterTypeSetLnurlMetadataItem);// FfiConverter for Array<
|
|
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>
|
|
3520
3726
|
const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<Utxo>
|
|
3521
|
-
const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<
|
|
3727
|
+
const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<Webhook>
|
|
3728
|
+
const FfiConverterArrayTypeWebhook=new FfiConverterArray(FfiConverterTypeWebhook);// FfiConverter for Array<string>
|
|
3522
3729
|
const FfiConverterArrayString=new FfiConverterArray(FfiConverterString);// FfiConverter for Map<string, Array<Payment>>
|
|
3523
3730
|
const FfiConverterMapStringArrayTypePayment=new FfiConverterMap(FfiConverterString,FfiConverterArrayTypePayment);// FfiConverter for U128 | undefined
|
|
3524
3731
|
const FfiConverterOptionalTypeu128=new FfiConverterOptional(FfiConverterTypeu128);// FfiConverter for Amount | undefined
|
|
3525
|
-
const FfiConverterOptionalTypeAmount=new FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for
|
|
3732
|
+
const FfiConverterOptionalTypeAmount=new FfiConverterOptional(FfiConverterTypeAmount);// FfiConverter for AmountAdjustmentReason | undefined
|
|
3733
|
+
const FfiConverterOptionalTypeAmountAdjustmentReason=new FfiConverterOptional(FfiConverterTypeAmountAdjustmentReason);// FfiConverter for AssetFilter | undefined
|
|
3526
3734
|
const FfiConverterOptionalTypeAssetFilter=new FfiConverterOptional(FfiConverterTypeAssetFilter);// FfiConverter for ConversionPurpose | undefined
|
|
3527
|
-
const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for
|
|
3735
|
+
const FfiConverterOptionalTypeConversionPurpose=new FfiConverterOptional(FfiConverterTypeConversionPurpose);// FfiConverter for ConversionStatus | undefined
|
|
3736
|
+
const FfiConverterOptionalTypeConversionStatus=new FfiConverterOptional(FfiConverterTypeConversionStatus);// FfiConverter for DepositClaimError | undefined
|
|
3528
3737
|
const FfiConverterOptionalTypeDepositClaimError=new FfiConverterOptional(FfiConverterTypeDepositClaimError);// FfiConverter for Fee | undefined
|
|
3529
3738
|
const FfiConverterOptionalTypeFee=new FfiConverterOptional(FfiConverterTypeFee);// FfiConverter for FeePolicy | undefined
|
|
3530
3739
|
const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for MaxFee | undefined
|
|
3531
3740
|
const FfiConverterOptionalTypeMaxFee=new FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
|
|
3532
3741
|
const FfiConverterOptionalTypePaymentDetails=new FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for SendPaymentOptions | undefined
|
|
3533
|
-
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for
|
|
3742
|
+
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for StableBalanceActiveLabel | undefined
|
|
3743
|
+
const FfiConverterOptionalTypeStableBalanceActiveLabel=new FfiConverterOptional(FfiConverterTypeStableBalanceActiveLabel);// FfiConverter for SuccessAction | undefined
|
|
3534
3744
|
const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
|
|
3535
3745
|
const FfiConverterOptionalTypeSuccessActionProcessed=new FfiConverterOptional(FfiConverterTypeSuccessActionProcessed);// FfiConverter for TokenTransactionType | undefined
|
|
3536
3746
|
const FfiConverterOptionalTypeTokenTransactionType=new FfiConverterOptional(FfiConverterTypeTokenTransactionType);// FfiConverter for Map<string, string> | undefined
|
|
@@ -3541,7 +3751,8 @@ const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConvert
|
|
|
3541
3751
|
const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
|
|
3542
3752
|
const FfiConverterArrayTypePaymentType=new FfiConverterArray(FfiConverterTypePaymentType);// FfiConverter for Array<SparkHtlcStatus>
|
|
3543
3753
|
const FfiConverterArrayTypeSparkHtlcStatus=new FfiConverterArray(FfiConverterTypeSparkHtlcStatus);// FfiConverter for Array<StoragePaymentDetailsFilter>
|
|
3544
|
-
const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<
|
|
3754
|
+
const FfiConverterArrayTypeStoragePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypeStoragePaymentDetailsFilter);// FfiConverter for Array<WebhookEventType>
|
|
3755
|
+
const FfiConverterArrayTypeWebhookEventType=new FfiConverterArray(FfiConverterTypeWebhookEventType);// FfiConverter for Array<PaymentDetailsFilter> | undefined
|
|
3545
3756
|
const FfiConverterOptionalArrayTypePaymentDetailsFilter=new FfiConverterOptional(FfiConverterArrayTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus> | undefined
|
|
3546
3757
|
const FfiConverterOptionalArrayTypePaymentStatus=new FfiConverterOptional(FfiConverterArrayTypePaymentStatus);// FfiConverter for Array<PaymentType> | undefined
|
|
3547
3758
|
const FfiConverterOptionalArrayTypePaymentType=new FfiConverterOptional(FfiConverterArrayTypePaymentType);// FfiConverter for Array<SparkHtlcStatus> | undefined
|
|
@@ -3556,6 +3767,6 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
|
|
|
3556
3767
|
*
|
|
3557
3768
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
3558
3769
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
3559
|
-
const bindingsContractVersion=
|
|
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}});
|
|
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}});
|
|
3561
3772
|
//# sourceMappingURL=breez_sdk_spark.js.map
|