@breeztech/breez-sdk-spark-react-native 0.19.2 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BreezSdkSparkReactNative.podspec +6 -0
- package/cpp/generated/breez_sdk_spark.cpp +1527 -125
- package/cpp/generated/breez_sdk_spark.hpp +84 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +554 -62
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/passkey-prf-provider.js +31 -11
- package/lib/commonjs/passkey-prf-provider.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +553 -61
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/passkey-prf-provider.js +31 -11
- package/lib/module/passkey-prf-provider.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +56 -21
- 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 +2251 -144
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts +24 -6
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +56 -21
- 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 +2251 -144
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/passkey-prf-provider.d.ts +24 -6
- package/lib/typescript/module/src/passkey-prf-provider.d.ts.map +1 -1
- package/package.json +4 -4
- package/plugin/build/index.d.ts +1 -1
- package/plugin/build/index.js +3 -1
- package/plugin/build/withAndroid.d.ts +1 -1
- package/plugin/build/withAndroid.js +1 -1
- package/plugin/build/withBinaryArtifacts.d.ts +1 -1
- package/plugin/build/withBinaryArtifacts.js +1 -1
- package/plugin/build/withIOS.d.ts +1 -1
- package/plugin/build/withIOS.js +1 -1
- package/scripts/post-ubrn.js +42 -0
- package/src/generated/breez_sdk_spark-ffi.ts +122 -19
- package/src/generated/breez_sdk_spark.ts +3999 -77
- package/src/passkey-prf-provider.ts +41 -12
|
@@ -147,6 +147,9 @@ process?.env?.NODE_ENV!=='production'||false;// Public interface members begin h
|
|
|
147
147
|
* The returned `Arc` is cheap to clone and can back many SDK instances,
|
|
148
148
|
* sharing their HTTP client and operator gRPC channels.
|
|
149
149
|
*/export async function newSharedSdkContext(config,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_new_shared_sdk_context(FfiConverterTypeSdkContextConfig.lower(config));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_pointer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_pointer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_pointer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_pointer,/*liftFunc:*/FfiConverterTypeSdkContext.lift.bind(FfiConverterTypeSdkContext),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
150
|
+
* A CPFP signer backed by a single private key. Signs P2WPKH and P2TR key-path
|
|
151
|
+
* inputs only; taproot script-path spends are not supported.
|
|
152
|
+
*/export function singleKeyCpfpSigner(secretKeyBytes)/*throws*/{return FfiConverterTypeCpfpSigner.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_func_single_key_cpfp_signer(FfiConverterArrayBuffer.lower(secretKeyBytes),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
150
153
|
* Trait for event listeners
|
|
151
154
|
*/// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
152
155
|
const uniffiCallbackInterfaceEventListener={// Create the VTable using a series of closures.
|
|
@@ -212,6 +215,30 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
212
215
|
*/new:create,/**
|
|
213
216
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
214
217
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeAuthorizeTransferRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{transfereePubkey:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.transfereePubkey,into);}allocationSize(value){return FfiConverterString.allocationSize(value.transfereePubkey);}}return new FFIConverter();})();/**
|
|
218
|
+
* A single payee in a batch send.
|
|
219
|
+
*//**
|
|
220
|
+
* Generated factory for {@link BatchRecipient} record objects.
|
|
221
|
+
*/export const BatchRecipient=(()=>{const defaults=()=>({amount:undefined,tokenIdentifier:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
222
|
+
* Create a frozen instance of {@link BatchRecipient}, with defaults specified
|
|
223
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
224
|
+
*/create,/**
|
|
225
|
+
* Create a frozen instance of {@link BatchRecipient}, with defaults specified
|
|
226
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
227
|
+
*/new:create,/**
|
|
228
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
229
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBatchRecipient=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentRequest:FfiConverterString.read(from),amount:FfiConverterOptionalTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterString.write(value.paymentRequest,into);FfiConverterOptionalTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentRequest)+FfiConverterOptionalTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier);}}return new FFIConverter();})();/**
|
|
230
|
+
* What a batch debits for one asset.
|
|
231
|
+
*//**
|
|
232
|
+
* Generated factory for {@link BatchTotal} record objects.
|
|
233
|
+
*/export const BatchTotal=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
234
|
+
* Create a frozen instance of {@link BatchTotal}, with defaults specified
|
|
235
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
236
|
+
*/create,/**
|
|
237
|
+
* Create a frozen instance of {@link BatchTotal}, with defaults specified
|
|
238
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
239
|
+
*/new:create,/**
|
|
240
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
241
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBatchTotal=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{tokenIdentifier:FfiConverterOptionalString.read(from),amount:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
|
|
215
242
|
* Generated factory for {@link Bip21Details} record objects.
|
|
216
243
|
*/export const Bip21Details=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
217
244
|
* Create a frozen instance of {@link Bip21Details}, with defaults specified
|
|
@@ -342,6 +369,16 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
342
369
|
*/new:create,/**
|
|
343
370
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
344
371
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBolt12OfferDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{absoluteExpiry:FfiConverterOptionalUInt64.read(from),chains:FfiConverterArrayString.read(from),description:FfiConverterOptionalString.read(from),issuer:FfiConverterOptionalString.read(from),minAmount:FfiConverterOptionalTypeAmount.read(from),offer:FfiConverterTypeBolt12Offer.read(from),paths:FfiConverterArrayTypeBolt12OfferBlindedPath.read(from),signingPubkey:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterOptionalUInt64.write(value.absoluteExpiry,into);FfiConverterArrayString.write(value.chains,into);FfiConverterOptionalString.write(value.description,into);FfiConverterOptionalString.write(value.issuer,into);FfiConverterOptionalTypeAmount.write(value.minAmount,into);FfiConverterTypeBolt12Offer.write(value.offer,into);FfiConverterArrayTypeBolt12OfferBlindedPath.write(value.paths,into);FfiConverterOptionalString.write(value.signingPubkey,into);}allocationSize(value){return FfiConverterOptionalUInt64.allocationSize(value.absoluteExpiry)+FfiConverterArrayString.allocationSize(value.chains)+FfiConverterOptionalString.allocationSize(value.description)+FfiConverterOptionalString.allocationSize(value.issuer)+FfiConverterOptionalTypeAmount.allocationSize(value.minAmount)+FfiConverterTypeBolt12Offer.allocationSize(value.offer)+FfiConverterArrayTypeBolt12OfferBlindedPath.allocationSize(value.paths)+FfiConverterOptionalString.allocationSize(value.signingPubkey);}}return new FFIConverter();})();/**
|
|
372
|
+
* Generated factory for {@link BuildUnsignedBatchPackageRequest} record objects.
|
|
373
|
+
*/export const BuildUnsignedBatchPackageRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
374
|
+
* Create a frozen instance of {@link BuildUnsignedBatchPackageRequest}, with defaults specified
|
|
375
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
376
|
+
*/create,/**
|
|
377
|
+
* Create a frozen instance of {@link BuildUnsignedBatchPackageRequest}, with defaults specified
|
|
378
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
379
|
+
*/new:create,/**
|
|
380
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
381
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBuildUnsignedBatchPackageRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{prepareResponse:FfiConverterTypePrepareSendBatchResponse.read(from)};}write(value,into){FfiConverterTypePrepareSendBatchResponse.write(value.prepareResponse,into);}allocationSize(value){return FfiConverterTypePrepareSendBatchResponse.allocationSize(value.prepareResponse);}}return new FFIConverter();})();/**
|
|
345
382
|
* Generated factory for {@link BuildUnsignedLnurlPayPackageRequest} record objects.
|
|
346
383
|
*/export const BuildUnsignedLnurlPayPackageRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
347
384
|
* Create a frozen instance of {@link BuildUnsignedLnurlPayPackageRequest}, with defaults specified
|
|
@@ -655,6 +692,25 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
655
692
|
*/new:create,/**
|
|
656
693
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
657
694
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCreateIssuerTokenRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{name:FfiConverterString.read(from),ticker:FfiConverterString.read(from),decimals:FfiConverterUInt32.read(from),isFreezable:FfiConverterBool.read(from),maxSupply:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterString.write(value.name,into);FfiConverterString.write(value.ticker,into);FfiConverterUInt32.write(value.decimals,into);FfiConverterBool.write(value.isFreezable,into);FfiConverterTypeu128.write(value.maxSupply,into);}allocationSize(value){return FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.ticker)+FfiConverterUInt32.allocationSize(value.decimals)+FfiConverterBool.allocationSize(value.isFreezable)+FfiConverterTypeu128.allocationSize(value.maxSupply);}}return new FFIConverter();})();/**
|
|
695
|
+
* A newly created credential, plus the PRF outputs when the platform
|
|
696
|
+
* evaluated them during the create ceremony itself.
|
|
697
|
+
*
|
|
698
|
+
* `seeds` present means no assertion is needed: the caller skips the
|
|
699
|
+
* second ceremony, and with it the window in which a credential exists
|
|
700
|
+
* but is not yet resolvable. Absent means the platform returned no PRF
|
|
701
|
+
* results at create (or dropped one of a pair), so the caller derives
|
|
702
|
+
* through [`super::PrfProvider::derive_seeds`] as before.
|
|
703
|
+
*//**
|
|
704
|
+
* Generated factory for {@link CreatePasskeyOutput} record objects.
|
|
705
|
+
*/export const CreatePasskeyOutput=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
706
|
+
* Create a frozen instance of {@link CreatePasskeyOutput}, with defaults specified
|
|
707
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
708
|
+
*/create,/**
|
|
709
|
+
* Create a frozen instance of {@link CreatePasskeyOutput}, with defaults specified
|
|
710
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
711
|
+
*/new:create,/**
|
|
712
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
713
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCreatePasskeyOutput=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{credential:FfiConverterTypePasskeyCredential.read(from),seeds:FfiConverterOptionalArrayArrayBuffer.read(from)};}write(value,into){FfiConverterTypePasskeyCredential.write(value.credential,into);FfiConverterOptionalArrayArrayBuffer.write(value.seeds,into);}allocationSize(value){return FfiConverterTypePasskeyCredential.allocationSize(value.credential)+FfiConverterOptionalArrayArrayBuffer.allocationSize(value.seeds);}}return new FFIConverter();})();/**
|
|
658
714
|
* Generated factory for {@link Credentials} record objects.
|
|
659
715
|
*/export const Credentials=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
660
716
|
* Create a frozen instance of {@link Credentials}, with defaults specified
|
|
@@ -1763,6 +1819,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1763
1819
|
*/new:create,/**
|
|
1764
1820
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1765
1821
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentRequestSource=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bip21Uri:FfiConverterOptionalString.read(from),bip353Address:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterOptionalString.write(value.bip21Uri,into);FfiConverterOptionalString.write(value.bip353Address,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.bip21Uri)+FfiConverterOptionalString.allocationSize(value.bip353Address);}}return new FFIConverter();})();/**
|
|
1822
|
+
* How much to fund one branch of the exit to avoid a fan-out.
|
|
1823
|
+
*//**
|
|
1824
|
+
* Generated factory for {@link PerBranchFunding} record objects.
|
|
1825
|
+
*/export const PerBranchFunding=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1826
|
+
* Create a frozen instance of {@link PerBranchFunding}, with defaults specified
|
|
1827
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1828
|
+
*/create,/**
|
|
1829
|
+
* Create a frozen instance of {@link PerBranchFunding}, with defaults specified
|
|
1830
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1831
|
+
*/new:create,/**
|
|
1832
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1833
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePerBranchFunding=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{leafId:FfiConverterString.read(from),fundingSat:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.leafId,into);FfiConverterUInt64.write(value.fundingSat,into);}allocationSize(value){return FfiConverterString.allocationSize(value.leafId)+FfiConverterUInt64.allocationSize(value.fundingSat);}}return new FFIConverter();})();/**
|
|
1766
1834
|
* Generated factory for {@link PrepareLnurlPayRequest} record objects.
|
|
1767
1835
|
*/export const PrepareLnurlPayRequest=(()=>{const defaults=()=>({comment:undefined,validateSuccessActionUrl:undefined,tokenIdentifier:undefined,conversionOptions:undefined,feePolicy:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1768
1836
|
* Create a frozen instance of {@link PrepareLnurlPayRequest}, with defaults specified
|
|
@@ -1783,6 +1851,26 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1783
1851
|
*/new:create,/**
|
|
1784
1852
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1785
1853
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareLnurlPayResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{amountSats:FfiConverterUInt64.read(from),comment:FfiConverterOptionalString.read(from),payRequest:FfiConverterTypeLnurlPayRequestDetails.read(from),feeSats:FfiConverterUInt64.read(from),invoiceDetails:FfiConverterTypeBolt11InvoiceDetails.read(from),successAction:FfiConverterOptionalTypeSuccessAction.read(from),conversionEstimate:FfiConverterOptionalTypeConversionEstimate.read(from),feePolicy:FfiConverterTypeFeePolicy.read(from)};}write(value,into){FfiConverterUInt64.write(value.amountSats,into);FfiConverterOptionalString.write(value.comment,into);FfiConverterTypeLnurlPayRequestDetails.write(value.payRequest,into);FfiConverterUInt64.write(value.feeSats,into);FfiConverterTypeBolt11InvoiceDetails.write(value.invoiceDetails,into);FfiConverterOptionalTypeSuccessAction.write(value.successAction,into);FfiConverterOptionalTypeConversionEstimate.write(value.conversionEstimate,into);FfiConverterTypeFeePolicy.write(value.feePolicy,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.comment)+FfiConverterTypeLnurlPayRequestDetails.allocationSize(value.payRequest)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterTypeBolt11InvoiceDetails.allocationSize(value.invoiceDetails)+FfiConverterOptionalTypeSuccessAction.allocationSize(value.successAction)+FfiConverterOptionalTypeConversionEstimate.allocationSize(value.conversionEstimate)+FfiConverterTypeFeePolicy.allocationSize(value.feePolicy);}}return new FFIConverter();})();/**
|
|
1854
|
+
* Generated factory for {@link PrepareSendBatchRequest} record objects.
|
|
1855
|
+
*/export const PrepareSendBatchRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1856
|
+
* Create a frozen instance of {@link PrepareSendBatchRequest}, with defaults specified
|
|
1857
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1858
|
+
*/create,/**
|
|
1859
|
+
* Create a frozen instance of {@link PrepareSendBatchRequest}, with defaults specified
|
|
1860
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1861
|
+
*/new:create,/**
|
|
1862
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1863
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendBatchRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{recipients:FfiConverterArrayTypeBatchRecipient.read(from)};}write(value,into){FfiConverterArrayTypeBatchRecipient.write(value.recipients,into);}allocationSize(value){return FfiConverterArrayTypeBatchRecipient.allocationSize(value.recipients);}}return new FFIConverter();})();/**
|
|
1864
|
+
* Generated factory for {@link PrepareSendBatchResponse} record objects.
|
|
1865
|
+
*/export const PrepareSendBatchResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1866
|
+
* Create a frozen instance of {@link PrepareSendBatchResponse}, with defaults specified
|
|
1867
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1868
|
+
*/create,/**
|
|
1869
|
+
* Create a frozen instance of {@link PrepareSendBatchResponse}, with defaults specified
|
|
1870
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1871
|
+
*/new:create,/**
|
|
1872
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1873
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendBatchResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{recipients:FfiConverterArrayTypeResolvedBatchRecipient.read(from),totals:FfiConverterArrayTypeBatchTotal.read(from)};}write(value,into){FfiConverterArrayTypeResolvedBatchRecipient.write(value.recipients,into);FfiConverterArrayTypeBatchTotal.write(value.totals,into);}allocationSize(value){return FfiConverterArrayTypeResolvedBatchRecipient.allocationSize(value.recipients)+FfiConverterArrayTypeBatchTotal.allocationSize(value.totals);}}return new FFIConverter();})();/**
|
|
1786
1874
|
* Generated factory for {@link PrepareSendPaymentRequest} record objects.
|
|
1787
1875
|
*/export const PrepareSendPaymentRequest=(()=>{const defaults=()=>({amount:undefined,tokenIdentifier:undefined,conversionOptions:undefined,feePolicy:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1788
1876
|
* Create a frozen instance of {@link PrepareSendPaymentRequest}, with defaults specified
|
|
@@ -1803,6 +1891,31 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1803
1891
|
*/new:create,/**
|
|
1804
1892
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1805
1893
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareSendPaymentResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{paymentMethod:FfiConverterTypeSendPaymentMethod.read(from),amount:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from),conversionEstimate:FfiConverterOptionalTypeConversionEstimate.read(from),feePolicy:FfiConverterTypeFeePolicy.read(from)};}write(value,into){FfiConverterTypeSendPaymentMethod.write(value.paymentMethod,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);FfiConverterOptionalTypeConversionEstimate.write(value.conversionEstimate,into);FfiConverterTypeFeePolicy.write(value.feePolicy,into);}allocationSize(value){return FfiConverterTypeSendPaymentMethod.allocationSize(value.paymentMethod)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier)+FfiConverterOptionalTypeConversionEstimate.allocationSize(value.conversionEstimate)+FfiConverterTypeFeePolicy.allocationSize(value.feePolicy);}}return new FFIConverter();})();/**
|
|
1894
|
+
* Request for `prepare_unilateral_exit`, the exit quote.
|
|
1895
|
+
*//**
|
|
1896
|
+
* Generated factory for {@link PrepareUnilateralExitRequest} record objects.
|
|
1897
|
+
*/export const PrepareUnilateralExitRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1898
|
+
* Create a frozen instance of {@link PrepareUnilateralExitRequest}, with defaults specified
|
|
1899
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1900
|
+
*/create,/**
|
|
1901
|
+
* Create a frozen instance of {@link PrepareUnilateralExitRequest}, with defaults specified
|
|
1902
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1903
|
+
*/new:create,/**
|
|
1904
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1905
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareUnilateralExitRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{feeRateSatPerVbyte:FfiConverterUInt64.read(from),fundingKind:FfiConverterTypeCpfpFundingKind.read(from),destination:FfiConverterString.read(from),selection:FfiConverterTypeExitLeafSelection.read(from)};}write(value,into){FfiConverterUInt64.write(value.feeRateSatPerVbyte,into);FfiConverterTypeCpfpFundingKind.write(value.fundingKind,into);FfiConverterString.write(value.destination,into);FfiConverterTypeExitLeafSelection.write(value.selection,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.feeRateSatPerVbyte)+FfiConverterTypeCpfpFundingKind.allocationSize(value.fundingKind)+FfiConverterString.allocationSize(value.destination)+FfiConverterTypeExitLeafSelection.allocationSize(value.selection);}}return new FFIConverter();})();/**
|
|
1906
|
+
* Response from `prepare_unilateral_exit`: which leaves would exit, the exact
|
|
1907
|
+
* fee at the requested rate, and how much to fund.
|
|
1908
|
+
*//**
|
|
1909
|
+
* Generated factory for {@link PrepareUnilateralExitResponse} record objects.
|
|
1910
|
+
*/export const PrepareUnilateralExitResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1911
|
+
* Create a frozen instance of {@link PrepareUnilateralExitResponse}, with defaults specified
|
|
1912
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1913
|
+
*/create,/**
|
|
1914
|
+
* Create a frozen instance of {@link PrepareUnilateralExitResponse}, with defaults specified
|
|
1915
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1916
|
+
*/new:create,/**
|
|
1917
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1918
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePrepareUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{leaves:FfiConverterArrayTypeUnilateralExitLeaf.read(from),recoverableValueSat:FfiConverterUInt64.read(from),totalFeeSat:FfiConverterUInt64.read(from),fanoutFeeSat:FfiConverterUInt64.read(from),singleUtxoFundingSat:FfiConverterUInt64.read(from),perBranchFunding:FfiConverterArrayTypePerBranchFunding.read(from),feeRateSatPerVbyte:FfiConverterUInt64.read(from),destination:FfiConverterString.read(from)};}write(value,into){FfiConverterArrayTypeUnilateralExitLeaf.write(value.leaves,into);FfiConverterUInt64.write(value.recoverableValueSat,into);FfiConverterUInt64.write(value.totalFeeSat,into);FfiConverterUInt64.write(value.fanoutFeeSat,into);FfiConverterUInt64.write(value.singleUtxoFundingSat,into);FfiConverterArrayTypePerBranchFunding.write(value.perBranchFunding,into);FfiConverterUInt64.write(value.feeRateSatPerVbyte,into);FfiConverterString.write(value.destination,into);}allocationSize(value){return FfiConverterArrayTypeUnilateralExitLeaf.allocationSize(value.leaves)+FfiConverterUInt64.allocationSize(value.recoverableValueSat)+FfiConverterUInt64.allocationSize(value.totalFeeSat)+FfiConverterUInt64.allocationSize(value.fanoutFeeSat)+FfiConverterUInt64.allocationSize(value.singleUtxoFundingSat)+FfiConverterArrayTypePerBranchFunding.allocationSize(value.perBranchFunding)+FfiConverterUInt64.allocationSize(value.feeRateSatPerVbyte)+FfiConverterString.allocationSize(value.destination);}}return new FFIConverter();})();/**
|
|
1806
1919
|
* Generated factory for {@link ProvisionalPayment} record objects.
|
|
1807
1920
|
*/export const ProvisionalPayment=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1808
1921
|
* Create a frozen instance of {@link ProvisionalPayment}, with defaults specified
|
|
@@ -1949,6 +2062,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1949
2062
|
*/new:create,/**
|
|
1950
2063
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1951
2064
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRefundDepositResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txId:FfiConverterString.read(from),txHex:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.txId,into);FfiConverterString.write(value.txHex,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txId)+FfiConverterString.allocationSize(value.txHex);}}return new FFIConverter();})();/**
|
|
2065
|
+
* Response from refunding pending conversions.
|
|
2066
|
+
*//**
|
|
2067
|
+
* Generated factory for {@link RefundPendingConversionsResponse} record objects.
|
|
2068
|
+
*/export const RefundPendingConversionsResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2069
|
+
* Create a frozen instance of {@link RefundPendingConversionsResponse}, with defaults specified
|
|
2070
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2071
|
+
*/create,/**
|
|
2072
|
+
* Create a frozen instance of {@link RefundPendingConversionsResponse}, with defaults specified
|
|
2073
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2074
|
+
*/new:create,/**
|
|
2075
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2076
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRefundPendingConversionsResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{refunded:FfiConverterUInt32.read(from),skipped:FfiConverterUInt32.read(from),failed:FfiConverterUInt32.read(from)};}write(value,into){FfiConverterUInt32.write(value.refunded,into);FfiConverterUInt32.write(value.skipped,into);FfiConverterUInt32.write(value.failed,into);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.refunded)+FfiConverterUInt32.allocationSize(value.skipped)+FfiConverterUInt32.allocationSize(value.failed);}}return new FFIConverter();})();/**
|
|
1952
2077
|
* Generated factory for {@link RegisterLightningAddressRequest} record objects.
|
|
1953
2078
|
*/export const RegisterLightningAddressRequest=(()=>{const defaults=()=>({description:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1954
2079
|
* Create a frozen instance of {@link RegisterLightningAddressRequest}, with defaults specified
|
|
@@ -2007,6 +2132,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2007
2132
|
*/new:create,/**
|
|
2008
2133
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2009
2134
|
*/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();})();/**
|
|
2135
|
+
* A recipient after prepare has resolved the asset and amount it is owed.
|
|
2136
|
+
*//**
|
|
2137
|
+
* Generated factory for {@link ResolvedBatchRecipient} record objects.
|
|
2138
|
+
*/export const ResolvedBatchRecipient=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2139
|
+
* Create a frozen instance of {@link ResolvedBatchRecipient}, with defaults specified
|
|
2140
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2141
|
+
*/create,/**
|
|
2142
|
+
* Create a frozen instance of {@link ResolvedBatchRecipient}, with defaults specified
|
|
2143
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2144
|
+
*/new:create,/**
|
|
2145
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2146
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeResolvedBatchRecipient=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{destination:FfiConverterTypeBatchDestination.read(from),amount:FfiConverterTypeu128.read(from),tokenIdentifier:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterTypeBatchDestination.write(value.destination,into);FfiConverterTypeu128.write(value.amount,into);FfiConverterOptionalString.write(value.tokenIdentifier,into);}allocationSize(value){return FfiConverterTypeBatchDestination.allocationSize(value.destination)+FfiConverterTypeu128.allocationSize(value.amount)+FfiConverterOptionalString.allocationSize(value.tokenIdentifier);}}return new FFIConverter();})();/**
|
|
2010
2147
|
* Generated factory for {@link RestResponse} record objects.
|
|
2011
2148
|
*/export const RestResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2012
2149
|
* Create a frozen instance of {@link RestResponse}, with defaults specified
|
|
@@ -2054,6 +2191,26 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2054
2191
|
*/new:create,/**
|
|
2055
2192
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2056
2193
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSecretBytes=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{bytes:FfiConverterArrayBuffer.read(from)};}write(value,into){FfiConverterArrayBuffer.write(value.bytes,into);}allocationSize(value){return FfiConverterArrayBuffer.allocationSize(value.bytes);}}return new FFIConverter();})();/**
|
|
2194
|
+
* Generated factory for {@link SendBatchRequest} record objects.
|
|
2195
|
+
*/export const SendBatchRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2196
|
+
* Create a frozen instance of {@link SendBatchRequest}, with defaults specified
|
|
2197
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2198
|
+
*/create,/**
|
|
2199
|
+
* Create a frozen instance of {@link SendBatchRequest}, with defaults specified
|
|
2200
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2201
|
+
*/new:create,/**
|
|
2202
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2203
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSendBatchRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{prepareResponse:FfiConverterTypePrepareSendBatchResponse.read(from)};}write(value,into){FfiConverterTypePrepareSendBatchResponse.write(value.prepareResponse,into);}allocationSize(value){return FfiConverterTypePrepareSendBatchResponse.allocationSize(value.prepareResponse);}}return new FFIConverter();})();/**
|
|
2204
|
+
* Generated factory for {@link SendBatchResponse} record objects.
|
|
2205
|
+
*/export const SendBatchResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2206
|
+
* Create a frozen instance of {@link SendBatchResponse}, with defaults specified
|
|
2207
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2208
|
+
*/create,/**
|
|
2209
|
+
* Create a frozen instance of {@link SendBatchResponse}, with defaults specified
|
|
2210
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2211
|
+
*/new:create,/**
|
|
2212
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2213
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeSendBatchResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{payments:FfiConverterArrayTypePayment.read(from)};}write(value,into){FfiConverterArrayTypePayment.write(value.payments,into);}allocationSize(value){return FfiConverterArrayTypePayment.allocationSize(value.payments);}}return new FFIConverter();})();/**
|
|
2057
2214
|
* Generated factory for {@link SendOnchainFeeQuote} record objects.
|
|
2058
2215
|
*/export const SendOnchainFeeQuote=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2059
2216
|
* Create a frozen instance of {@link SendOnchainFeeQuote}, with defaults specified
|
|
@@ -2514,6 +2671,58 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2514
2671
|
*/new:create,/**
|
|
2515
2672
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2516
2673
|
*/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();})();/**
|
|
2674
|
+
* A leaf selected for exit, with its value.
|
|
2675
|
+
*//**
|
|
2676
|
+
* Generated factory for {@link UnilateralExitLeaf} record objects.
|
|
2677
|
+
*/export const UnilateralExitLeaf=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2678
|
+
* Create a frozen instance of {@link UnilateralExitLeaf}, with defaults specified
|
|
2679
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2680
|
+
*/create,/**
|
|
2681
|
+
* Create a frozen instance of {@link UnilateralExitLeaf}, with defaults specified
|
|
2682
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2683
|
+
*/new:create,/**
|
|
2684
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2685
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitLeaf=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{leafId:FfiConverterString.read(from),value:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.leafId,into);FfiConverterUInt64.write(value.value,into);}allocationSize(value){return FfiConverterString.allocationSize(value.leafId)+FfiConverterUInt64.allocationSize(value.value);}}return new FFIConverter();})();/**
|
|
2686
|
+
* Request for `unilateral_exit`: a `prepare_unilateral_exit` quote plus the
|
|
2687
|
+
* funding UTXOs that pay its fees. The signer is passed separately (it is not a
|
|
2688
|
+
* plain data value).
|
|
2689
|
+
*//**
|
|
2690
|
+
* Generated factory for {@link UnilateralExitRequest} record objects.
|
|
2691
|
+
*/export const UnilateralExitRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2692
|
+
* Create a frozen instance of {@link UnilateralExitRequest}, with defaults specified
|
|
2693
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2694
|
+
*/create,/**
|
|
2695
|
+
* Create a frozen instance of {@link UnilateralExitRequest}, with defaults specified
|
|
2696
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2697
|
+
*/new:create,/**
|
|
2698
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2699
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{prepared:FfiConverterTypePrepareUnilateralExitResponse.read(from),fundingInputs:FfiConverterArrayTypeCpfpInput.read(from)};}write(value,into){FfiConverterTypePrepareUnilateralExitResponse.write(value.prepared,into);FfiConverterArrayTypeCpfpInput.write(value.fundingInputs,into);}allocationSize(value){return FfiConverterTypePrepareUnilateralExitResponse.allocationSize(value.prepared)+FfiConverterArrayTypeCpfpInput.allocationSize(value.fundingInputs);}}return new FFIConverter();})();/**
|
|
2700
|
+
* Result of `unilateral_exit`: a cost summary plus the complete, signed exit
|
|
2701
|
+
* path.
|
|
2702
|
+
*//**
|
|
2703
|
+
* Generated factory for {@link UnilateralExitResponse} record objects.
|
|
2704
|
+
*/export const UnilateralExitResponse=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2705
|
+
* Create a frozen instance of {@link UnilateralExitResponse}, with defaults specified
|
|
2706
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2707
|
+
*/create,/**
|
|
2708
|
+
* Create a frozen instance of {@link UnilateralExitResponse}, with defaults specified
|
|
2709
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2710
|
+
*/new:create,/**
|
|
2711
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2712
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitResponse=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{recoverableValueSat:FfiConverterUInt64.read(from),totalFeeSat:FfiConverterUInt64.read(from),leaves:FfiConverterArrayTypeUnilateralExitLeaf.read(from),transactions:FfiConverterArrayTypeUnilateralExitTransaction.read(from)};}write(value,into){FfiConverterUInt64.write(value.recoverableValueSat,into);FfiConverterUInt64.write(value.totalFeeSat,into);FfiConverterArrayTypeUnilateralExitLeaf.write(value.leaves,into);FfiConverterArrayTypeUnilateralExitTransaction.write(value.transactions,into);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.recoverableValueSat)+FfiConverterUInt64.allocationSize(value.totalFeeSat)+FfiConverterArrayTypeUnilateralExitLeaf.allocationSize(value.leaves)+FfiConverterArrayTypeUnilateralExitTransaction.allocationSize(value.transactions);}}return new FFIConverter();})();/**
|
|
2713
|
+
* One transaction in the unilateral exit path, with everything needed to
|
|
2714
|
+
* order and broadcast it.
|
|
2715
|
+
*//**
|
|
2716
|
+
* Generated factory for {@link UnilateralExitTransaction} record objects.
|
|
2717
|
+
*/export const UnilateralExitTransaction=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2718
|
+
* Create a frozen instance of {@link UnilateralExitTransaction}, with defaults specified
|
|
2719
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2720
|
+
*/create,/**
|
|
2721
|
+
* Create a frozen instance of {@link UnilateralExitTransaction}, with defaults specified
|
|
2722
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2723
|
+
*/new:create,/**
|
|
2724
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2725
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnilateralExitTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{kind:FfiConverterTypeUnilateralExitTxKind.read(from),nodeId:FfiConverterOptionalString.read(from),txid:FfiConverterString.read(from),txHex:FfiConverterString.read(from),cpfpTxHex:FfiConverterOptionalString.read(from),csvTimelockBlocks:FfiConverterOptionalUInt32.read(from),dependsOn:FfiConverterArrayString.read(from),status:FfiConverterTypeConfirmationStatus.read(from)};}write(value,into){FfiConverterTypeUnilateralExitTxKind.write(value.kind,into);FfiConverterOptionalString.write(value.nodeId,into);FfiConverterString.write(value.txid,into);FfiConverterString.write(value.txHex,into);FfiConverterOptionalString.write(value.cpfpTxHex,into);FfiConverterOptionalUInt32.write(value.csvTimelockBlocks,into);FfiConverterArrayString.write(value.dependsOn,into);FfiConverterTypeConfirmationStatus.write(value.status,into);}allocationSize(value){return FfiConverterTypeUnilateralExitTxKind.allocationSize(value.kind)+FfiConverterOptionalString.allocationSize(value.nodeId)+FfiConverterString.allocationSize(value.txid)+FfiConverterString.allocationSize(value.txHex)+FfiConverterOptionalString.allocationSize(value.cpfpTxHex)+FfiConverterOptionalUInt32.allocationSize(value.csvTimelockBlocks)+FfiConverterArrayString.allocationSize(value.dependsOn)+FfiConverterTypeConfirmationStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
|
|
2517
2726
|
* Request to unregister an existing webhook.
|
|
2518
2727
|
*//**
|
|
2519
2728
|
* Generated factory for {@link UnregisterWebhookRequest} record objects.
|
|
@@ -2549,7 +2758,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2549
2758
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2550
2759
|
*/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();})();/**
|
|
2551
2760
|
* Generated factory for {@link UpdateUserSettingsRequest} record objects.
|
|
2552
|
-
*/export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({stableBalanceActiveLabel:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2761
|
+
*/export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({stableBalanceActiveLabel:undefined,sparkMasterIdentityPublicKey:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2553
2762
|
* Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
|
|
2554
2763
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2555
2764
|
*/create,/**
|
|
@@ -2557,7 +2766,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2557
2766
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2558
2767
|
*/new:create,/**
|
|
2559
2768
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2560
|
-
*/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();})();/**
|
|
2769
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUpdateUserSettingsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{sparkPrivateModeEnabled:FfiConverterOptionalBool.read(from),stableBalanceActiveLabel:FfiConverterOptionalTypeStableBalanceActiveLabel.read(from),sparkMasterIdentityPublicKey:FfiConverterOptionalTypeSparkMasterIdentityPublicKey.read(from)};}write(value,into){FfiConverterOptionalBool.write(value.sparkPrivateModeEnabled,into);FfiConverterOptionalTypeStableBalanceActiveLabel.write(value.stableBalanceActiveLabel,into);FfiConverterOptionalTypeSparkMasterIdentityPublicKey.write(value.sparkMasterIdentityPublicKey,into);}allocationSize(value){return FfiConverterOptionalBool.allocationSize(value.sparkPrivateModeEnabled)+FfiConverterOptionalTypeStableBalanceActiveLabel.allocationSize(value.stableBalanceActiveLabel)+FfiConverterOptionalTypeSparkMasterIdentityPublicKey.allocationSize(value.sparkMasterIdentityPublicKey);}}return new FFIConverter();})();/**
|
|
2561
2770
|
* Generated factory for {@link UrlSuccessActionData} record objects.
|
|
2562
2771
|
*/export const UrlSuccessActionData=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2563
2772
|
* Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
|
|
@@ -2577,7 +2786,7 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
2577
2786
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2578
2787
|
*/new:create,/**
|
|
2579
2788
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2580
|
-
*/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();})();/**
|
|
2789
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUserSettings=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{sparkPrivateModeEnabled:FfiConverterBool.read(from),stableBalanceActiveLabel:FfiConverterOptionalString.read(from),sparkMasterIdentityPublicKey:FfiConverterOptionalString.read(from)};}write(value,into){FfiConverterBool.write(value.sparkPrivateModeEnabled,into);FfiConverterOptionalString.write(value.stableBalanceActiveLabel,into);FfiConverterOptionalString.write(value.sparkMasterIdentityPublicKey,into);}allocationSize(value){return FfiConverterBool.allocationSize(value.sparkPrivateModeEnabled)+FfiConverterOptionalString.allocationSize(value.stableBalanceActiveLabel)+FfiConverterOptionalString.allocationSize(value.sparkMasterIdentityPublicKey);}}return new FFIConverter();})();/**
|
|
2581
2790
|
* Generated factory for {@link Utxo} record objects.
|
|
2582
2791
|
*/export const Utxo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
2583
2792
|
* Create a frozen instance of {@link Utxo}, with defaults specified
|
|
@@ -2708,7 +2917,20 @@ export let AutoOptimizationEvent_Tags=/*#__PURE__*/function(AutoOptimizationEven
|
|
|
2708
2917
|
* This field is private and should not be used, use `tag` instead.
|
|
2709
2918
|
*/[uniffiTypeNameSymbol]='AutoOptimizationEvent';tag=AutoOptimizationEvent_Tags.Skipped;constructor(){super('AutoOptimizationEvent','Skipped');}static new(){return new Skipped_();}static instanceOf(obj){return obj.tag===AutoOptimizationEvent_Tags.Skipped;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='AutoOptimizationEvent';}return Object.freeze({instanceOf,Started:Started_,RoundCompleted:RoundCompleted_,Completed:Completed_,Cancelled:Cancelled_,Failed:Failed_,Skipped:Skipped_});})();// FfiConverter for enum AutoOptimizationEvent
|
|
2710
2919
|
const FfiConverterTypeAutoOptimizationEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new AutoOptimizationEvent.Started({totalRounds:FfiConverterUInt32.read(from)});case 2:return new AutoOptimizationEvent.RoundCompleted({currentRound:FfiConverterUInt32.read(from),totalRounds:FfiConverterUInt32.read(from)});case 3:return new AutoOptimizationEvent.Completed();case 4:return new AutoOptimizationEvent.Cancelled();case 5:return new AutoOptimizationEvent.Failed({error:FfiConverterString.read(from)});case 6:return new AutoOptimizationEvent.Skipped();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case AutoOptimizationEvent_Tags.Started:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt32.write(inner.totalRounds,into);return;}case AutoOptimizationEvent_Tags.RoundCompleted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt32.write(inner.currentRound,into);FfiConverterUInt32.write(inner.totalRounds,into);return;}case AutoOptimizationEvent_Tags.Completed:{ordinalConverter.write(3,into);return;}case AutoOptimizationEvent_Tags.Cancelled:{ordinalConverter.write(4,into);return;}case AutoOptimizationEvent_Tags.Failed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.error,into);return;}case AutoOptimizationEvent_Tags.Skipped:{ordinalConverter.write(6,into);return;}default:// Throwing from here means that AutoOptimizationEvent_Tags hasn't matched an ordinal.
|
|
2711
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case AutoOptimizationEvent_Tags.Started:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case AutoOptimizationEvent_Tags.RoundCompleted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.currentRound);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case AutoOptimizationEvent_Tags.Completed:{return ordinalConverter.allocationSize(3);}case AutoOptimizationEvent_Tags.Cancelled:{return ordinalConverter.allocationSize(4);}case AutoOptimizationEvent_Tags.Failed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.error);return size;}case AutoOptimizationEvent_Tags.Skipped:{return ordinalConverter.allocationSize(6);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
2920
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case AutoOptimizationEvent_Tags.Started:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case AutoOptimizationEvent_Tags.RoundCompleted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.currentRound);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case AutoOptimizationEvent_Tags.Completed:{return ordinalConverter.allocationSize(3);}case AutoOptimizationEvent_Tags.Cancelled:{return ordinalConverter.allocationSize(4);}case AutoOptimizationEvent_Tags.Failed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.error);return size;}case AutoOptimizationEvent_Tags.Skipped:{return ordinalConverter.allocationSize(6);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: BatchDestination
|
|
2921
|
+
export let BatchDestination_Tags=/*#__PURE__*/function(BatchDestination_Tags){BatchDestination_Tags["SparkAddress"]="SparkAddress";BatchDestination_Tags["SparkInvoice"]="SparkInvoice";return BatchDestination_Tags;}({});/**
|
|
2922
|
+
* Where a batch recipient is paid, once prepare has decoded its payment request.
|
|
2923
|
+
*/export const BatchDestination=(()=>{class SparkAddress_ extends UniffiEnum{/**
|
|
2924
|
+
* @private
|
|
2925
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2926
|
+
*/[uniffiTypeNameSymbol]='BatchDestination';tag=BatchDestination_Tags.SparkAddress;constructor(inner){super('BatchDestination','SparkAddress');this.inner=Object.freeze(inner);}static new(inner){return new SparkAddress_(inner);}static instanceOf(obj){return obj.tag===BatchDestination_Tags.SparkAddress;}}class SparkInvoice_ extends UniffiEnum{/**
|
|
2927
|
+
* @private
|
|
2928
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2929
|
+
*/[uniffiTypeNameSymbol]='BatchDestination';tag=BatchDestination_Tags.SparkInvoice;constructor(inner){super('BatchDestination','SparkInvoice');this.inner=Object.freeze(inner);}static new(inner){return new SparkInvoice_(inner);}static instanceOf(obj){return obj.tag===BatchDestination_Tags.SparkInvoice;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='BatchDestination';}return Object.freeze({instanceOf,SparkAddress:SparkAddress_,SparkInvoice:SparkInvoice_});})();/**
|
|
2930
|
+
* Where a batch recipient is paid, once prepare has decoded its payment request.
|
|
2931
|
+
*/// FfiConverter for enum BatchDestination
|
|
2932
|
+
const FfiConverterTypeBatchDestination=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new BatchDestination.SparkAddress({address:FfiConverterString.read(from)});case 2:return new BatchDestination.SparkInvoice({invoiceDetails:FfiConverterTypeSparkInvoiceDetails.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case BatchDestination_Tags.SparkAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.address,into);return;}case BatchDestination_Tags.SparkInvoice:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeSparkInvoiceDetails.write(inner.invoiceDetails,into);return;}default:// Throwing from here means that BatchDestination_Tags hasn't matched an ordinal.
|
|
2933
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case BatchDestination_Tags.SparkAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.address);return size;}case BatchDestination_Tags.SparkInvoice:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeSparkInvoiceDetails.allocationSize(inner.invoiceDetails);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let BitcoinNetwork=/*#__PURE__*/function(BitcoinNetwork){/**
|
|
2712
2934
|
* Mainnet
|
|
2713
2935
|
*/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: BuildTransferPackageOptions
|
|
2714
2936
|
export let BuildTransferPackageOptions_Tags=/*#__PURE__*/function(BuildTransferPackageOptions_Tags){BuildTransferPackageOptions_Tags["BitcoinAddress"]="BitcoinAddress";BuildTransferPackageOptions_Tags["Bolt11Invoice"]="Bolt11Invoice";return BuildTransferPackageOptions_Tags;}({});export const BuildTransferPackageOptions=(()=>{class BitcoinAddress_ extends UniffiEnum{/**
|
|
@@ -2763,7 +2985,16 @@ export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){
|
|
|
2763
2985
|
* This field is private and should not be used, use `tag` instead.
|
|
2764
2986
|
*/[uniffiTypeNameSymbol]='ChainServiceError';tag=ChainServiceError_Tags.Generic;constructor(v0){super('ChainServiceError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===ChainServiceError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ChainServiceError';}return Object.freeze({instanceOf,InvalidAddress:InvalidAddress_,ServiceConnectivity:ServiceConnectivity_,Generic:Generic_});})();// FfiConverter for enum ChainServiceError
|
|
2765
2987
|
const FfiConverterTypeChainServiceError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ChainServiceError.InvalidAddress(FfiConverterString.read(from));case 2:return new ChainServiceError.ServiceConnectivity(FfiConverterString.read(from));case 3:return new ChainServiceError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.ServiceConnectivity:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case ChainServiceError_Tags.Generic:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that ChainServiceError_Tags hasn't matched an ordinal.
|
|
2766
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
2988
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ChainServiceError_Tags.InvalidAddress:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.ServiceConnectivity:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case ChainServiceError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
2989
|
+
* Whether a transaction in the exit path is already on-chain.
|
|
2990
|
+
*/export let ConfirmationStatus=/*#__PURE__*/function(ConfirmationStatus){/**
|
|
2991
|
+
* This transaction is confirmed in a block. It needs no action.
|
|
2992
|
+
*/ConfirmationStatus[ConfirmationStatus["Confirmed"]=0]="Confirmed";/**
|
|
2993
|
+
* This transaction is not yet confirmed. Mempool state is not consulted.
|
|
2994
|
+
*/ConfirmationStatus[ConfirmationStatus["Unconfirmed"]=1]="Unconfirmed";/**
|
|
2995
|
+
* The on-chain status could not be determined (the chain service errored).
|
|
2996
|
+
* Broadcasting may fail if a conflicting transaction already landed.
|
|
2997
|
+
*/ConfirmationStatus[ConfirmationStatus["Unverified"]=2]="Unverified";return ConfirmationStatus;}({});const FfiConverterTypeConfirmationStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ConfirmationStatus.Confirmed;case 2:return ConfirmationStatus.Unconfirmed;case 3:return ConfirmationStatus.Unverified;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ConfirmationStatus.Confirmed:return ordinalConverter.write(1,into);case ConfirmationStatus.Unconfirmed:return ordinalConverter.write(2,into);case ConfirmationStatus.Unverified:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ConversionChain
|
|
2767
2998
|
export let ConversionChain_Tags=/*#__PURE__*/function(ConversionChain_Tags){ConversionChain_Tags["Spark"]="Spark";ConversionChain_Tags["Lightning"]="Lightning";ConversionChain_Tags["External"]="External";return ConversionChain_Tags;}({});/**
|
|
2768
2999
|
* The chain or network that a [`ConversionSide`] lives on.
|
|
2769
3000
|
*/export const ConversionChain=(()=>{/**
|
|
@@ -2892,7 +3123,64 @@ export let ConversionType_Tags=/*#__PURE__*/function(ConversionType_Tags){Conver
|
|
|
2892
3123
|
* This field is private and should not be used, use `tag` instead.
|
|
2893
3124
|
*/[uniffiTypeNameSymbol]='ConversionType';tag=ConversionType_Tags.ToBitcoin;constructor(inner){super('ConversionType','ToBitcoin');this.inner=Object.freeze(inner);}static new(inner){return new ToBitcoin_(inner);}static instanceOf(obj){return obj.tag===ConversionType_Tags.ToBitcoin;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ConversionType';}return Object.freeze({instanceOf,FromBitcoin:FromBitcoin_,ToBitcoin:ToBitcoin_});})();// FfiConverter for enum ConversionType
|
|
2894
3125
|
const FfiConverterTypeConversionType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ConversionType.FromBitcoin();case 2:return new ConversionType.ToBitcoin({fromTokenIdentifier:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ConversionType_Tags.FromBitcoin:{ordinalConverter.write(1,into);return;}case ConversionType_Tags.ToBitcoin:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.fromTokenIdentifier,into);return;}default:// Throwing from here means that ConversionType_Tags hasn't matched an ordinal.
|
|
2895
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case ConversionType_Tags.ToBitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.fromTokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
3126
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ConversionType_Tags.FromBitcoin:{return ordinalConverter.allocationSize(1);}case ConversionType_Tags.ToBitcoin:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.fromTokenIdentifier);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: CpfpFundingKind
|
|
3127
|
+
export let CpfpFundingKind_Tags=/*#__PURE__*/function(CpfpFundingKind_Tags){CpfpFundingKind_Tags["P2wpkh"]="P2wpkh";CpfpFundingKind_Tags["P2tr"]="P2tr";CpfpFundingKind_Tags["Custom"]="Custom";return CpfpFundingKind_Tags;}({});/**
|
|
3128
|
+
* The kind of UTXO that will fund an exit's fees.
|
|
3129
|
+
*/export const CpfpFundingKind=(()=>{/**
|
|
3130
|
+
* Fees paid from P2WPKH (native segwit v0) UTXOs.
|
|
3131
|
+
*/class P2wpkh_ extends UniffiEnum{/**
|
|
3132
|
+
* @private
|
|
3133
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3134
|
+
*/[uniffiTypeNameSymbol]='CpfpFundingKind';tag=CpfpFundingKind_Tags.P2wpkh;constructor(){super('CpfpFundingKind','P2wpkh');}static new(){return new P2wpkh_();}static instanceOf(obj){return obj.tag===CpfpFundingKind_Tags.P2wpkh;}}/**
|
|
3135
|
+
* Fees paid from P2TR (taproot, key-path) UTXOs.
|
|
3136
|
+
*/class P2tr_ extends UniffiEnum{/**
|
|
3137
|
+
* @private
|
|
3138
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3139
|
+
*/[uniffiTypeNameSymbol]='CpfpFundingKind';tag=CpfpFundingKind_Tags.P2tr;constructor(){super('CpfpFundingKind','P2tr');}static new(){return new P2tr_();}static instanceOf(obj){return obj.tag===CpfpFundingKind_Tags.P2tr;}}/**
|
|
3140
|
+
* Fees paid from a custom witness-program script (legacy scripts are
|
|
3141
|
+
* rejected). `script_pubkey_hex` (the funding scriptPubKey) sizes the
|
|
3142
|
+
* fan-out output and dust; `signed_input_weight` (weight units) is an upper
|
|
3143
|
+
* bound on the input's signed weight, so the quote stays exact or slightly
|
|
3144
|
+
* conservative.
|
|
3145
|
+
*/class Custom_ extends UniffiEnum{/**
|
|
3146
|
+
* @private
|
|
3147
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3148
|
+
*/[uniffiTypeNameSymbol]='CpfpFundingKind';tag=CpfpFundingKind_Tags.Custom;constructor(inner){super('CpfpFundingKind','Custom');this.inner=Object.freeze(inner);}static new(inner){return new Custom_(inner);}static instanceOf(obj){return obj.tag===CpfpFundingKind_Tags.Custom;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CpfpFundingKind';}return Object.freeze({instanceOf,P2wpkh:P2wpkh_,P2tr:P2tr_,Custom:Custom_});})();/**
|
|
3149
|
+
* The kind of UTXO that will fund an exit's fees.
|
|
3150
|
+
*/// FfiConverter for enum CpfpFundingKind
|
|
3151
|
+
const FfiConverterTypeCpfpFundingKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CpfpFundingKind.P2wpkh();case 2:return new CpfpFundingKind.P2tr();case 3:return new CpfpFundingKind.Custom({scriptPubkeyHex:FfiConverterString.read(from),signedInputWeight:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CpfpFundingKind_Tags.P2wpkh:{ordinalConverter.write(1,into);return;}case CpfpFundingKind_Tags.P2tr:{ordinalConverter.write(2,into);return;}case CpfpFundingKind_Tags.Custom:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.scriptPubkeyHex,into);FfiConverterUInt64.write(inner.signedInputWeight,into);return;}default:// Throwing from here means that CpfpFundingKind_Tags hasn't matched an ordinal.
|
|
3152
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CpfpFundingKind_Tags.P2wpkh:{return ordinalConverter.allocationSize(1);}case CpfpFundingKind_Tags.P2tr:{return ordinalConverter.allocationSize(2);}case CpfpFundingKind_Tags.Custom:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.scriptPubkeyHex);size+=FfiConverterUInt64.allocationSize(inner.signedInputWeight);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: CpfpInput
|
|
3153
|
+
export let CpfpInput_Tags=/*#__PURE__*/function(CpfpInput_Tags){CpfpInput_Tags["P2wpkh"]="P2wpkh";CpfpInput_Tags["P2tr"]="P2tr";CpfpInput_Tags["Custom"]="Custom";return CpfpInput_Tags;}({});/**
|
|
3154
|
+
* A funding UTXO that pays the on-chain fees of a unilateral exit.
|
|
3155
|
+
*/export const CpfpInput=(()=>{/**
|
|
3156
|
+
* A P2WPKH (native segwit v0) UTXO controlled by `pubkey` (33-byte
|
|
3157
|
+
* compressed, hex).
|
|
3158
|
+
*/class P2wpkh_ extends UniffiEnum{/**
|
|
3159
|
+
* @private
|
|
3160
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3161
|
+
*/[uniffiTypeNameSymbol]='CpfpInput';tag=CpfpInput_Tags.P2wpkh;constructor(inner){super('CpfpInput','P2wpkh');this.inner=Object.freeze(inner);}static new(inner){return new P2wpkh_(inner);}static instanceOf(obj){return obj.tag===CpfpInput_Tags.P2wpkh;}}/**
|
|
3162
|
+
* A P2TR (taproot, key-path) UTXO. `pubkey` (x-only or compressed, hex) is
|
|
3163
|
+
* the **internal** (untweaked, BIP86 key-path) public key whose secret signs
|
|
3164
|
+
* the input, not the tweaked on-chain output key. The SDK applies the BIP86
|
|
3165
|
+
* taproot tweak itself to derive the funding scriptPubKey, so passing the
|
|
3166
|
+
* already-tweaked output key here produces a scriptPubKey that does not match
|
|
3167
|
+
* the UTXO and the built transaction is rejected at broadcast.
|
|
3168
|
+
*/class P2tr_ extends UniffiEnum{/**
|
|
3169
|
+
* @private
|
|
3170
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3171
|
+
*/[uniffiTypeNameSymbol]='CpfpInput';tag=CpfpInput_Tags.P2tr;constructor(inner){super('CpfpInput','P2tr');this.inner=Object.freeze(inner);}static new(inner){return new P2tr_(inner);}static instanceOf(obj){return obj.tag===CpfpInput_Tags.P2tr;}}/**
|
|
3172
|
+
* Any witness-program script, signed via a custom `CpfpSigner`. Legacy
|
|
3173
|
+
* (non-SegWit) scripts are rejected. `signed_input_weight` (weight units)
|
|
3174
|
+
* is an upper bound on the input's signed weight, so the fee stays exact,
|
|
3175
|
+
* or slightly conservative if the real signature is shorter.
|
|
3176
|
+
*/class Custom_ extends UniffiEnum{/**
|
|
3177
|
+
* @private
|
|
3178
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3179
|
+
*/[uniffiTypeNameSymbol]='CpfpInput';tag=CpfpInput_Tags.Custom;constructor(inner){super('CpfpInput','Custom');this.inner=Object.freeze(inner);}static new(inner){return new Custom_(inner);}static instanceOf(obj){return obj.tag===CpfpInput_Tags.Custom;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='CpfpInput';}return Object.freeze({instanceOf,P2wpkh:P2wpkh_,P2tr:P2tr_,Custom:Custom_});})();/**
|
|
3180
|
+
* A funding UTXO that pays the on-chain fees of a unilateral exit.
|
|
3181
|
+
*/// FfiConverter for enum CpfpInput
|
|
3182
|
+
const FfiConverterTypeCpfpInput=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new CpfpInput.P2wpkh({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),pubkey:FfiConverterString.read(from)});case 2:return new CpfpInput.P2tr({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),pubkey:FfiConverterString.read(from)});case 3:return new CpfpInput.Custom({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),scriptPubkeyHex:FfiConverterString.read(from),signedInputWeight:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case CpfpInput_Tags.P2wpkh:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.value,into);FfiConverterString.write(inner.pubkey,into);return;}case CpfpInput_Tags.P2tr:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.value,into);FfiConverterString.write(inner.pubkey,into);return;}case CpfpInput_Tags.Custom:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterUInt64.write(inner.value,into);FfiConverterString.write(inner.scriptPubkeyHex,into);FfiConverterUInt64.write(inner.signedInputWeight,into);return;}default:// Throwing from here means that CpfpInput_Tags hasn't matched an ordinal.
|
|
3183
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case CpfpInput_Tags.P2wpkh:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.value);size+=FfiConverterString.allocationSize(inner.pubkey);return size;}case CpfpInput_Tags.P2tr:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.value);size+=FfiConverterString.allocationSize(inner.pubkey);return size;}case CpfpInput_Tags.Custom:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterUInt64.allocationSize(inner.value);size+=FfiConverterString.allocationSize(inner.scriptPubkeyHex);size+=FfiConverterUInt64.allocationSize(inner.signedInputWeight);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let CrossChainAddressFamily=/*#__PURE__*/function(CrossChainAddressFamily){CrossChainAddressFamily[CrossChainAddressFamily["Evm"]=0]="Evm";CrossChainAddressFamily[CrossChainAddressFamily["Solana"]=1]="Solana";CrossChainAddressFamily[CrossChainAddressFamily["Tron"]=2]="Tron";return CrossChainAddressFamily;}({});const FfiConverterTypeCrossChainAddressFamily=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return CrossChainAddressFamily.Evm;case 2:return CrossChainAddressFamily.Solana;case 3:return CrossChainAddressFamily.Tron;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case CrossChainAddressFamily.Evm:return ordinalConverter.write(1,into);case CrossChainAddressFamily.Solana:return ordinalConverter.write(2,into);case CrossChainAddressFamily.Tron:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();/**
|
|
2896
3184
|
* How the caller wants fees handled against the request `amount`.
|
|
2897
3185
|
*
|
|
2898
3186
|
* - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
|
|
@@ -3006,7 +3294,29 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
3006
3294
|
* if it persists, the credential or RP setup may be at fault.
|
|
3007
3295
|
*/ErrorKind[ErrorKind["AuthFailure"]=7]="AuthFailure";/**
|
|
3008
3296
|
* Failure the caller can't act on. Show a generic "try again".
|
|
3009
|
-
*/ErrorKind[ErrorKind["Internal"]=8]="Internal";return ErrorKind;}({});const FfiConverterTypeErrorKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ErrorKind.Cancel;case 2:return ErrorKind.NoCredential;case 3:return ErrorKind.PrfUnsupported;case 4:return ErrorKind.PrfFailed;case 5:return ErrorKind.Configuration;case 6:return ErrorKind.AlreadyExists;case 7:return ErrorKind.Timeout;case 8:return ErrorKind.AuthFailure;case 9:return ErrorKind.Internal;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ErrorKind.Cancel:return ordinalConverter.write(1,into);case ErrorKind.NoCredential:return ordinalConverter.write(2,into);case ErrorKind.PrfUnsupported:return ordinalConverter.write(3,into);case ErrorKind.PrfFailed:return ordinalConverter.write(4,into);case ErrorKind.Configuration:return ordinalConverter.write(5,into);case ErrorKind.AlreadyExists:return ordinalConverter.write(6,into);case ErrorKind.Timeout:return ordinalConverter.write(7,into);case ErrorKind.AuthFailure:return ordinalConverter.write(8,into);case ErrorKind.Internal:return ordinalConverter.write(9,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum:
|
|
3297
|
+
*/ErrorKind[ErrorKind["Internal"]=8]="Internal";return ErrorKind;}({});const FfiConverterTypeErrorKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ErrorKind.Cancel;case 2:return ErrorKind.NoCredential;case 3:return ErrorKind.PrfUnsupported;case 4:return ErrorKind.PrfFailed;case 5:return ErrorKind.Configuration;case 6:return ErrorKind.AlreadyExists;case 7:return ErrorKind.Timeout;case 8:return ErrorKind.AuthFailure;case 9:return ErrorKind.Internal;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ErrorKind.Cancel:return ordinalConverter.write(1,into);case ErrorKind.NoCredential:return ordinalConverter.write(2,into);case ErrorKind.PrfUnsupported:return ordinalConverter.write(3,into);case ErrorKind.PrfFailed:return ordinalConverter.write(4,into);case ErrorKind.Configuration:return ordinalConverter.write(5,into);case ErrorKind.AlreadyExists:return ordinalConverter.write(6,into);case ErrorKind.Timeout:return ordinalConverter.write(7,into);case ErrorKind.AuthFailure:return ordinalConverter.write(8,into);case ErrorKind.Internal:return ordinalConverter.write(9,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: ExitLeafSelection
|
|
3298
|
+
export let ExitLeafSelection_Tags=/*#__PURE__*/function(ExitLeafSelection_Tags){ExitLeafSelection_Tags["Auto"]="Auto";ExitLeafSelection_Tags["Specific"]="Specific";return ExitLeafSelection_Tags;}({});/**
|
|
3299
|
+
* Which leaves to exit.
|
|
3300
|
+
*/export const ExitLeafSelection=(()=>{/**
|
|
3301
|
+
* Exit every leaf whose value exceeds its own marginal exit cost (its tree
|
|
3302
|
+
* and refund CPFP fees plus its sweep input). This per-leaf test does not
|
|
3303
|
+
* include the shared fan-out fee, so funding many leaves from a single UTXO
|
|
3304
|
+
* adds `fanout_fee_sat` on top: compare `recoverable_value_sat` with
|
|
3305
|
+
* `total_fee_sat`, or fund one UTXO per branch to avoid the fan-out. Leaves
|
|
3306
|
+
* that fail the per-leaf test are skipped.
|
|
3307
|
+
*/class Auto_ extends UniffiEnum{/**
|
|
3308
|
+
* @private
|
|
3309
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3310
|
+
*/[uniffiTypeNameSymbol]='ExitLeafSelection';tag=ExitLeafSelection_Tags.Auto;constructor(){super('ExitLeafSelection','Auto');}static new(){return new Auto_();}static instanceOf(obj){return obj.tag===ExitLeafSelection_Tags.Auto;}}/**
|
|
3311
|
+
* Exit exactly these leaves, regardless of profitability.
|
|
3312
|
+
*/class Specific_ extends UniffiEnum{/**
|
|
3313
|
+
* @private
|
|
3314
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3315
|
+
*/[uniffiTypeNameSymbol]='ExitLeafSelection';tag=ExitLeafSelection_Tags.Specific;constructor(inner){super('ExitLeafSelection','Specific');this.inner=Object.freeze(inner);}static new(inner){return new Specific_(inner);}static instanceOf(obj){return obj.tag===ExitLeafSelection_Tags.Specific;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='ExitLeafSelection';}return Object.freeze({instanceOf,Auto:Auto_,Specific:Specific_});})();/**
|
|
3316
|
+
* Which leaves to exit.
|
|
3317
|
+
*/// FfiConverter for enum ExitLeafSelection
|
|
3318
|
+
const FfiConverterTypeExitLeafSelection=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new ExitLeafSelection.Auto();case 2:return new ExitLeafSelection.Specific({leafIds:FfiConverterArrayString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case ExitLeafSelection_Tags.Auto:{ordinalConverter.write(1,into);return;}case ExitLeafSelection_Tags.Specific:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayString.write(inner.leafIds,into);return;}default:// Throwing from here means that ExitLeafSelection_Tags hasn't matched an ordinal.
|
|
3319
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitLeafSelection_Tags.Auto:{return ordinalConverter.allocationSize(1);}case ExitLeafSelection_Tags.Specific:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayString.allocationSize(inner.leafIds);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ExternalFrostDerivation
|
|
3010
3320
|
export let ExternalFrostDerivation_Tags=/*#__PURE__*/function(ExternalFrostDerivation_Tags){ExternalFrostDerivation_Tags["SigningLeaf"]="SigningLeaf";ExternalFrostDerivation_Tags["StaticDeposit"]="StaticDeposit";ExternalFrostDerivation_Tags["HtlcPreimage"]="HtlcPreimage";ExternalFrostDerivation_Tags["Identity"]="Identity";return ExternalFrostDerivation_Tags;}({});/**
|
|
3011
3321
|
* FFI-safe representation of `spark_wallet::FrostDerivation`.
|
|
3012
3322
|
*/export const ExternalFrostDerivation=(()=>{/**
|
|
@@ -3213,7 +3523,23 @@ export let OptimizationOutcome_Tags=/*#__PURE__*/function(OptimizationOutcome_Ta
|
|
|
3213
3523
|
* ```
|
|
3214
3524
|
*/// FfiConverter for enum OptimizationOutcome
|
|
3215
3525
|
const FfiConverterTypeOptimizationOutcome=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new OptimizationOutcome.Completed({roundsExecuted:FfiConverterUInt32.read(from)});case 2:return new OptimizationOutcome.InProgress();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case OptimizationOutcome_Tags.Completed:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt32.write(inner.roundsExecuted,into);return;}case OptimizationOutcome_Tags.InProgress:{ordinalConverter.write(2,into);return;}default:// Throwing from here means that OptimizationOutcome_Tags hasn't matched an ordinal.
|
|
3216
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case OptimizationOutcome_Tags.Completed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.roundsExecuted);return size;}case OptimizationOutcome_Tags.InProgress:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum:
|
|
3526
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case OptimizationOutcome_Tags.Completed:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.roundsExecuted);return size;}case OptimizationOutcome_Tags.InProgress:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Outspend
|
|
3527
|
+
export let Outspend_Tags=/*#__PURE__*/function(Outspend_Tags){Outspend_Tags["Unspent"]="Unspent";Outspend_Tags["Spent"]="Spent";return Outspend_Tags;}({});/**
|
|
3528
|
+
* The spend status of a transaction output.
|
|
3529
|
+
*/export const Outspend=(()=>{class Unspent_ extends UniffiEnum{/**
|
|
3530
|
+
* @private
|
|
3531
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3532
|
+
*/[uniffiTypeNameSymbol]='Outspend';tag=Outspend_Tags.Unspent;constructor(){super('Outspend','Unspent');}static new(){return new Unspent_();}static instanceOf(obj){return obj.tag===Outspend_Tags.Unspent;}}/**
|
|
3533
|
+
* The output is spent by input `vin` of transaction `txid`; `status` is
|
|
3534
|
+
* that spending transaction's confirmation status.
|
|
3535
|
+
*/class Spent_ extends UniffiEnum{/**
|
|
3536
|
+
* @private
|
|
3537
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3538
|
+
*/[uniffiTypeNameSymbol]='Outspend';tag=Outspend_Tags.Spent;constructor(inner){super('Outspend','Spent');this.inner=Object.freeze(inner);}static new(inner){return new Spent_(inner);}static instanceOf(obj){return obj.tag===Outspend_Tags.Spent;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='Outspend';}return Object.freeze({instanceOf,Unspent:Unspent_,Spent:Spent_});})();/**
|
|
3539
|
+
* The spend status of a transaction output.
|
|
3540
|
+
*/// FfiConverter for enum Outspend
|
|
3541
|
+
const FfiConverterTypeOutspend=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new Outspend.Unspent();case 2:return new Outspend.Spent({txid:FfiConverterString.read(from),vin:FfiConverterUInt32.read(from),status:FfiConverterTypeTxStatus.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case Outspend_Tags.Unspent:{ordinalConverter.write(1,into);return;}case Outspend_Tags.Spent:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vin,into);FfiConverterTypeTxStatus.write(inner.status,into);return;}default:// Throwing from here means that Outspend_Tags hasn't matched an ordinal.
|
|
3542
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case Outspend_Tags.Unspent:{return ordinalConverter.allocationSize(1);}case Outspend_Tags.Spent:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vin);size+=FfiConverterTypeTxStatus.allocationSize(inner.status);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PasskeyAvailability
|
|
3217
3543
|
export let PasskeyAvailability_Tags=/*#__PURE__*/function(PasskeyAvailability_Tags){PasskeyAvailability_Tags["Available"]="Available";PasskeyAvailability_Tags["PrfUnsupported"]="PrfUnsupported";PasskeyAvailability_Tags["NotAssociated"]="NotAssociated";PasskeyAvailability_Tags["Skipped"]="Skipped";return PasskeyAvailability_Tags;}({});/**
|
|
3218
3544
|
* Single-value result of [`PasskeyClient::check_availability`].
|
|
3219
3545
|
* Collapses [`PrfProvider::is_supported`] +
|
|
@@ -3255,7 +3581,7 @@ export let PasskeyAvailability_Tags=/*#__PURE__*/function(PasskeyAvailability_Ta
|
|
|
3255
3581
|
const FfiConverterTypePasskeyAvailability=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyAvailability.Available();case 2:return new PasskeyAvailability.PrfUnsupported();case 3:return new PasskeyAvailability.NotAssociated({source:FfiConverterString.read(from),reason:FfiConverterString.read(from)});case 4:return new PasskeyAvailability.Skipped({reason:FfiConverterString.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyAvailability_Tags.Available:{ordinalConverter.write(1,into);return;}case PasskeyAvailability_Tags.PrfUnsupported:{ordinalConverter.write(2,into);return;}case PasskeyAvailability_Tags.NotAssociated:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.source,into);FfiConverterString.write(inner.reason,into);return;}case PasskeyAvailability_Tags.Skipped:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner.reason,into);return;}default:// Throwing from here means that PasskeyAvailability_Tags hasn't matched an ordinal.
|
|
3256
3582
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyAvailability_Tags.Available:{return ordinalConverter.allocationSize(1);}case PasskeyAvailability_Tags.PrfUnsupported:{return ordinalConverter.allocationSize(2);}case PasskeyAvailability_Tags.NotAssociated:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.source);size+=FfiConverterString.allocationSize(inner.reason);return size;}case PasskeyAvailability_Tags.Skipped:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner.reason);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: PasskeyError
|
|
3257
3583
|
// Enum: PasskeyError
|
|
3258
|
-
export let PasskeyError_Tags=/*#__PURE__*/function(PasskeyError_Tags){PasskeyError_Tags["Prf"]="Prf";PasskeyError_Tags["RelayConnectionFailed"]="RelayConnectionFailed";PasskeyError_Tags["NostrWriteFailed"]="NostrWriteFailed";PasskeyError_Tags["NostrReadFailed"]="NostrReadFailed";PasskeyError_Tags["KeyDerivationError"]="KeyDerivationError";PasskeyError_Tags["InvalidPrfOutput"]="InvalidPrfOutput";PasskeyError_Tags["MnemonicError"]="MnemonicError";PasskeyError_Tags["InvalidSalt"]="InvalidSalt";PasskeyError_Tags["Generic"]="Generic";return PasskeyError_Tags;}({});/**
|
|
3584
|
+
export let PasskeyError_Tags=/*#__PURE__*/function(PasskeyError_Tags){PasskeyError_Tags["Prf"]="Prf";PasskeyError_Tags["RelayConnectionFailed"]="RelayConnectionFailed";PasskeyError_Tags["NostrWriteFailed"]="NostrWriteFailed";PasskeyError_Tags["NostrReadFailed"]="NostrReadFailed";PasskeyError_Tags["KeyDerivationError"]="KeyDerivationError";PasskeyError_Tags["InvalidPrfOutput"]="InvalidPrfOutput";PasskeyError_Tags["MnemonicError"]="MnemonicError";PasskeyError_Tags["InvalidSalt"]="InvalidSalt";PasskeyError_Tags["CreatedButNotDerived"]="CreatedButNotDerived";PasskeyError_Tags["Generic"]="Generic";return PasskeyError_Tags;}({});/**
|
|
3259
3585
|
* Error type for passkey operations.
|
|
3260
3586
|
*/export const PasskeyError=(()=>{/**
|
|
3261
3587
|
* Raised by the underlying [`crate::passkey::PrfProvider`].
|
|
@@ -3285,14 +3611,27 @@ export let PasskeyError_Tags=/*#__PURE__*/function(PasskeyError_Tags){PasskeyErr
|
|
|
3285
3611
|
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.MnemonicError;constructor(v0){super('PasskeyError','MnemonicError');this.inner=Object.freeze([v0]);}static new(v0){return new MnemonicError_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.MnemonicError;}static hasInner(obj){return MnemonicError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InvalidSalt_ extends UniffiError{/**
|
|
3286
3612
|
* @private
|
|
3287
3613
|
* This field is private and should not be used, use `tag` instead.
|
|
3288
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidSalt;constructor(v0){super('PasskeyError','InvalidSalt');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidSalt_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidSalt;}static hasInner(obj){return InvalidSalt_.instanceOf(obj);}static getInner(obj){return obj.inner;}}
|
|
3614
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidSalt;constructor(v0){super('PasskeyError','InvalidSalt');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidSalt_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidSalt;}static hasInner(obj){return InvalidSalt_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
3615
|
+
* Registration created the credential, then the derive that
|
|
3616
|
+
* followed it failed. The passkey exists on the device: recover by
|
|
3617
|
+
* signing in pinned to `credential_id`. Registering again would
|
|
3618
|
+
* leave this one behind, owning a wallet nothing points to.
|
|
3619
|
+
*
|
|
3620
|
+
* Only wraps a [`PrfProviderError`], so hosts unwrap once and keep
|
|
3621
|
+
* the arms they already have. Failures that are not the
|
|
3622
|
+
* authenticator's (mnemonic, key derivation, invalid PRF output)
|
|
3623
|
+
* propagate as their own variant, unwrapped.
|
|
3624
|
+
*/class CreatedButNotDerived_ extends UniffiError{/**
|
|
3625
|
+
* @private
|
|
3626
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3627
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.CreatedButNotDerived;constructor(inner){super('PasskeyError','CreatedButNotDerived');this.inner=Object.freeze(inner);}static new(inner){return new CreatedButNotDerived_(inner);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.CreatedButNotDerived;}static hasInner(obj){return CreatedButNotDerived_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
|
|
3289
3628
|
* @private
|
|
3290
3629
|
* This field is private and should not be used, use `tag` instead.
|
|
3291
|
-
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.Generic;constructor(v0){super('PasskeyError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyError';}return Object.freeze({instanceOf,Prf:Prf_,RelayConnectionFailed:RelayConnectionFailed_,NostrWriteFailed:NostrWriteFailed_,NostrReadFailed:NostrReadFailed_,KeyDerivationError:KeyDerivationError_,InvalidPrfOutput:InvalidPrfOutput_,MnemonicError:MnemonicError_,InvalidSalt:InvalidSalt_,Generic:Generic_});})();/**
|
|
3630
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.Generic;constructor(v0){super('PasskeyError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyError';}return Object.freeze({instanceOf,Prf:Prf_,RelayConnectionFailed:RelayConnectionFailed_,NostrWriteFailed:NostrWriteFailed_,NostrReadFailed:NostrReadFailed_,KeyDerivationError:KeyDerivationError_,InvalidPrfOutput:InvalidPrfOutput_,MnemonicError:MnemonicError_,InvalidSalt:InvalidSalt_,CreatedButNotDerived:CreatedButNotDerived_,Generic:Generic_});})();/**
|
|
3292
3631
|
* Error type for passkey operations.
|
|
3293
3632
|
*/// FfiConverter for enum PasskeyError
|
|
3294
|
-
const FfiConverterTypePasskeyError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyError.Prf(FfiConverterTypePrfProviderError.read(from));case 2:return new PasskeyError.RelayConnectionFailed(FfiConverterString.read(from));case 3:return new PasskeyError.NostrWriteFailed(FfiConverterString.read(from));case 4:return new PasskeyError.NostrReadFailed(FfiConverterString.read(from));case 5:return new PasskeyError.KeyDerivationError(FfiConverterString.read(from));case 6:return new PasskeyError.InvalidPrfOutput(FfiConverterString.read(from));case 7:return new PasskeyError.MnemonicError(FfiConverterString.read(from));case 8:return new PasskeyError.InvalidSalt(FfiConverterString.read(from));case 9:return new PasskeyError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyError_Tags.Prf:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypePrfProviderError.write(inner[0],into);return;}case PasskeyError_Tags.RelayConnectionFailed:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.NostrWriteFailed:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.NostrReadFailed:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.KeyDerivationError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.InvalidPrfOutput:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.MnemonicError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.InvalidSalt:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.
|
|
3295
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyError_Tags.Prf:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypePrfProviderError.allocationSize(inner[0]);return size;}case PasskeyError_Tags.RelayConnectionFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.NostrWriteFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.NostrReadFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.KeyDerivationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.InvalidPrfOutput:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.MnemonicError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.InvalidSalt:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.
|
|
3633
|
+
const FfiConverterTypePasskeyError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyError.Prf(FfiConverterTypePrfProviderError.read(from));case 2:return new PasskeyError.RelayConnectionFailed(FfiConverterString.read(from));case 3:return new PasskeyError.NostrWriteFailed(FfiConverterString.read(from));case 4:return new PasskeyError.NostrReadFailed(FfiConverterString.read(from));case 5:return new PasskeyError.KeyDerivationError(FfiConverterString.read(from));case 6:return new PasskeyError.InvalidPrfOutput(FfiConverterString.read(from));case 7:return new PasskeyError.MnemonicError(FfiConverterString.read(from));case 8:return new PasskeyError.InvalidSalt(FfiConverterString.read(from));case 9:return new PasskeyError.CreatedButNotDerived({credentialId:FfiConverterArrayBuffer.read(from),source:FfiConverterTypePrfProviderError.read(from)});case 10:return new PasskeyError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyError_Tags.Prf:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypePrfProviderError.write(inner[0],into);return;}case PasskeyError_Tags.RelayConnectionFailed:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.NostrWriteFailed:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.NostrReadFailed:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.KeyDerivationError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.InvalidPrfOutput:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.MnemonicError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.InvalidSalt:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyError_Tags.CreatedButNotDerived:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterArrayBuffer.write(inner.credentialId,into);FfiConverterTypePrfProviderError.write(inner.source,into);return;}case PasskeyError_Tags.Generic:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PasskeyError_Tags hasn't matched an ordinal.
|
|
3634
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyError_Tags.Prf:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypePrfProviderError.allocationSize(inner[0]);return size;}case PasskeyError_Tags.RelayConnectionFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.NostrWriteFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.NostrReadFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.KeyDerivationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.InvalidPrfOutput:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.MnemonicError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.InvalidSalt:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyError_Tags.CreatedButNotDerived:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterArrayBuffer.allocationSize(inner.credentialId);size+=FfiConverterTypePrfProviderError.allocationSize(inner.source);return size;}case PasskeyError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetails
|
|
3296
3635
|
export let PaymentDetails_Tags=/*#__PURE__*/function(PaymentDetails_Tags){PaymentDetails_Tags["Spark"]="Spark";PaymentDetails_Tags["Token"]="Token";PaymentDetails_Tags["Lightning"]="Lightning";PaymentDetails_Tags["Withdraw"]="Withdraw";PaymentDetails_Tags["Deposit"]="Deposit";return PaymentDetails_Tags;}({});export const PaymentDetails=(()=>{class Spark_ extends UniffiEnum{/**
|
|
3297
3636
|
* @private
|
|
3298
3637
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -3440,15 +3779,21 @@ export let PublishSignedLnurlPayResponse_Tags=/*#__PURE__*/function(PublishSigne
|
|
|
3440
3779
|
*/[uniffiTypeNameSymbol]='PublishSignedLnurlPayResponse';tag=PublishSignedLnurlPayResponse_Tags.PaymentSent;constructor(inner){super('PublishSignedLnurlPayResponse','PaymentSent');this.inner=Object.freeze(inner);}static new(inner){return new PaymentSent_(inner);}static instanceOf(obj){return obj.tag===PublishSignedLnurlPayResponse_Tags.PaymentSent;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PublishSignedLnurlPayResponse';}return Object.freeze({instanceOf,SwapCompleted:SwapCompleted_,PaymentSent:PaymentSent_});})();// FfiConverter for enum PublishSignedLnurlPayResponse
|
|
3441
3780
|
const FfiConverterTypePublishSignedLnurlPayResponse=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PublishSignedLnurlPayResponse.SwapCompleted();case 2:return new PublishSignedLnurlPayResponse.PaymentSent({response:FfiConverterTypeLnurlPayResponse.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PublishSignedLnurlPayResponse_Tags.SwapCompleted:{ordinalConverter.write(1,into);return;}case PublishSignedLnurlPayResponse_Tags.PaymentSent:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeLnurlPayResponse.write(inner.response,into);return;}default:// Throwing from here means that PublishSignedLnurlPayResponse_Tags hasn't matched an ordinal.
|
|
3442
3781
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PublishSignedLnurlPayResponse_Tags.SwapCompleted:{return ordinalConverter.allocationSize(1);}case PublishSignedLnurlPayResponse_Tags.PaymentSent:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeLnurlPayResponse.allocationSize(inner.response);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PublishSignedTransferPackageResponse
|
|
3443
|
-
export let PublishSignedTransferPackageResponse_Tags=/*#__PURE__*/function(PublishSignedTransferPackageResponse_Tags){PublishSignedTransferPackageResponse_Tags["SwapCompleted"]="SwapCompleted";PublishSignedTransferPackageResponse_Tags["PaymentSent"]="PaymentSent";return PublishSignedTransferPackageResponse_Tags;}({});export const PublishSignedTransferPackageResponse=(()=>{class SwapCompleted_ extends UniffiEnum{/**
|
|
3782
|
+
export let PublishSignedTransferPackageResponse_Tags=/*#__PURE__*/function(PublishSignedTransferPackageResponse_Tags){PublishSignedTransferPackageResponse_Tags["SwapCompleted"]="SwapCompleted";PublishSignedTransferPackageResponse_Tags["PaymentSent"]="PaymentSent";PublishSignedTransferPackageResponse_Tags["PaymentsSent"]="PaymentsSent";return PublishSignedTransferPackageResponse_Tags;}({});export const PublishSignedTransferPackageResponse=(()=>{class SwapCompleted_ extends UniffiEnum{/**
|
|
3444
3783
|
* @private
|
|
3445
3784
|
* This field is private and should not be used, use `tag` instead.
|
|
3446
3785
|
*/[uniffiTypeNameSymbol]='PublishSignedTransferPackageResponse';tag=PublishSignedTransferPackageResponse_Tags.SwapCompleted;constructor(){super('PublishSignedTransferPackageResponse','SwapCompleted');}static new(){return new SwapCompleted_();}static instanceOf(obj){return obj.tag===PublishSignedTransferPackageResponse_Tags.SwapCompleted;}}class PaymentSent_ extends UniffiEnum{/**
|
|
3447
3786
|
* @private
|
|
3448
3787
|
* This field is private and should not be used, use `tag` instead.
|
|
3449
|
-
*/[uniffiTypeNameSymbol]='PublishSignedTransferPackageResponse';tag=PublishSignedTransferPackageResponse_Tags.PaymentSent;constructor(inner){super('PublishSignedTransferPackageResponse','PaymentSent');this.inner=Object.freeze(inner);}static new(inner){return new PaymentSent_(inner);}static instanceOf(obj){return obj.tag===PublishSignedTransferPackageResponse_Tags.PaymentSent;}}
|
|
3450
|
-
|
|
3451
|
-
|
|
3788
|
+
*/[uniffiTypeNameSymbol]='PublishSignedTransferPackageResponse';tag=PublishSignedTransferPackageResponse_Tags.PaymentSent;constructor(inner){super('PublishSignedTransferPackageResponse','PaymentSent');this.inner=Object.freeze(inner);}static new(inner){return new PaymentSent_(inner);}static instanceOf(obj){return obj.tag===PublishSignedTransferPackageResponse_Tags.PaymentSent;}}/**
|
|
3789
|
+
* Returned for a batch package: one payment per recipient, in recipient
|
|
3790
|
+
* order.
|
|
3791
|
+
*/class PaymentsSent_ extends UniffiEnum{/**
|
|
3792
|
+
* @private
|
|
3793
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3794
|
+
*/[uniffiTypeNameSymbol]='PublishSignedTransferPackageResponse';tag=PublishSignedTransferPackageResponse_Tags.PaymentsSent;constructor(inner){super('PublishSignedTransferPackageResponse','PaymentsSent');this.inner=Object.freeze(inner);}static new(inner){return new PaymentsSent_(inner);}static instanceOf(obj){return obj.tag===PublishSignedTransferPackageResponse_Tags.PaymentsSent;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PublishSignedTransferPackageResponse';}return Object.freeze({instanceOf,SwapCompleted:SwapCompleted_,PaymentSent:PaymentSent_,PaymentsSent:PaymentsSent_});})();// FfiConverter for enum PublishSignedTransferPackageResponse
|
|
3795
|
+
const FfiConverterTypePublishSignedTransferPackageResponse=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PublishSignedTransferPackageResponse.SwapCompleted();case 2:return new PublishSignedTransferPackageResponse.PaymentSent({payment:FfiConverterTypePayment.read(from)});case 3:return new PublishSignedTransferPackageResponse.PaymentsSent({payments:FfiConverterArrayTypePayment.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PublishSignedTransferPackageResponse_Tags.SwapCompleted:{ordinalConverter.write(1,into);return;}case PublishSignedTransferPackageResponse_Tags.PaymentSent:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case PublishSignedTransferPackageResponse_Tags.PaymentsSent:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypePayment.write(inner.payments,into);return;}default:// Throwing from here means that PublishSignedTransferPackageResponse_Tags hasn't matched an ordinal.
|
|
3796
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PublishSignedTransferPackageResponse_Tags.SwapCompleted:{return ordinalConverter.allocationSize(1);}case PublishSignedTransferPackageResponse_Tags.PaymentSent:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case PublishSignedTransferPackageResponse_Tags.PaymentsSent:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypePayment.allocationSize(inner.payments);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: ReceivePaymentMethod
|
|
3452
3797
|
export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_Tags){ReceivePaymentMethod_Tags["SparkAddress"]="SparkAddress";ReceivePaymentMethod_Tags["SparkInvoice"]="SparkInvoice";ReceivePaymentMethod_Tags["BitcoinAddress"]="BitcoinAddress";ReceivePaymentMethod_Tags["Bolt11Invoice"]="Bolt11Invoice";return ReceivePaymentMethod_Tags;}({});export const ReceivePaymentMethod=(()=>{class SparkAddress_ extends UniffiEnum{/**
|
|
3453
3798
|
* @private
|
|
3454
3799
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -3465,7 +3810,7 @@ export let ReceivePaymentMethod_Tags=/*#__PURE__*/function(ReceivePaymentMethod_
|
|
|
3465
3810
|
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.
|
|
3466
3811
|
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
|
|
3467
3812
|
// Enum: SdkError
|
|
3468
|
-
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["OptimizationAlreadyRunning"]="OptimizationAlreadyRunning";SdkError_Tags["OptimizationCancelled"]="OptimizationCancelled";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
|
|
3813
|
+
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["OptimizationAlreadyRunning"]="OptimizationAlreadyRunning";SdkError_Tags["OptimizationCancelled"]="OptimizationCancelled";SdkError_Tags["InsufficientCpfpFunds"]="InsufficientCpfpFunds";SdkError_Tags["FundingUtxoConflict"]="FundingUtxoConflict";SdkError_Tags["Generic"]="Generic";return SdkError_Tags;}({});/**
|
|
3469
3814
|
* Error type for the `BreezSdk`
|
|
3470
3815
|
*/export const SdkError=(()=>{class SparkError_ extends UniffiError{/**
|
|
3471
3816
|
* @private
|
|
@@ -3473,7 +3818,7 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
3473
3818
|
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.SparkError;constructor(v0){super('SdkError','SparkError');this.inner=Object.freeze([v0]);}static new(v0){return new SparkError_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.SparkError;}static hasInner(obj){return SparkError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InsufficientFunds_ extends UniffiError{/**
|
|
3474
3819
|
* @private
|
|
3475
3820
|
* This field is private and should not be used, use `tag` instead.
|
|
3476
|
-
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InsufficientFunds;constructor(){super('SdkError','InsufficientFunds');}static new(){return new InsufficientFunds_();}static instanceOf(obj){return obj.tag===SdkError_Tags.InsufficientFunds;}static hasInner(obj){return
|
|
3821
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InsufficientFunds;constructor(inner){super('SdkError','InsufficientFunds');this.inner=Object.freeze(inner);}static new(inner){return new InsufficientFunds_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.InsufficientFunds;}static hasInner(obj){return InsufficientFunds_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class InvalidUuid_ extends UniffiError{/**
|
|
3477
3822
|
* @private
|
|
3478
3823
|
* This field is private and should not be used, use `tag` instead.
|
|
3479
3824
|
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InvalidUuid;constructor(v0){super('SdkError','InvalidUuid');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidUuid_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.InvalidUuid;}static hasInner(obj){return InvalidUuid_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
@@ -3518,14 +3863,25 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
3518
3863
|
*/class OptimizationCancelled_ extends UniffiError{/**
|
|
3519
3864
|
* @private
|
|
3520
3865
|
* This field is private and should not be used, use `tag` instead.
|
|
3521
|
-
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.OptimizationCancelled;constructor(){super('SdkError','OptimizationCancelled');}static new(){return new OptimizationCancelled_();}static instanceOf(obj){return obj.tag===SdkError_Tags.OptimizationCancelled;}static hasInner(obj){return false;}}
|
|
3866
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.OptimizationCancelled;constructor(){super('SdkError','OptimizationCancelled');}static new(){return new OptimizationCancelled_();}static instanceOf(obj){return obj.tag===SdkError_Tags.OptimizationCancelled;}static hasInner(obj){return false;}}/**
|
|
3867
|
+
* The provided CPFP funding is too low to cover the exit's on-chain fees.
|
|
3868
|
+
*/class InsufficientCpfpFunds_ extends UniffiError{/**
|
|
3869
|
+
* @private
|
|
3870
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3871
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.InsufficientCpfpFunds;constructor(inner){super('SdkError','InsufficientCpfpFunds');this.inner=Object.freeze(inner);}static new(inner){return new InsufficientCpfpFunds_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.InsufficientCpfpFunds;}static hasInner(obj){return InsufficientCpfpFunds_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
3872
|
+
* A provided funding UTXO was already spent on-chain by a transaction that
|
|
3873
|
+
* is not the expected fan-out, so it cannot fund this exit.
|
|
3874
|
+
*/class FundingUtxoConflict_ extends UniffiError{/**
|
|
3875
|
+
* @private
|
|
3876
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3877
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.FundingUtxoConflict;constructor(inner){super('SdkError','FundingUtxoConflict');this.inner=Object.freeze(inner);}static new(inner){return new FundingUtxoConflict_(inner);}static instanceOf(obj){return obj.tag===SdkError_Tags.FundingUtxoConflict;}static hasInner(obj){return FundingUtxoConflict_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Generic_ extends UniffiError{/**
|
|
3522
3878
|
* @private
|
|
3523
3879
|
* This field is private and should not be used, use `tag` instead.
|
|
3524
|
-
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Generic;constructor(v0){super('SdkError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkError';}return Object.freeze({instanceOf,SparkError:SparkError_,InsufficientFunds:InsufficientFunds_,InvalidUuid:InvalidUuid_,InvalidInput:InvalidInput_,NetworkError:NetworkError_,StorageError:StorageError_,ChainServiceError:ChainServiceError_,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,LnurlError:LnurlError_,Signer:Signer_,OptimizationAlreadyRunning:OptimizationAlreadyRunning_,OptimizationCancelled:OptimizationCancelled_,Generic:Generic_});})();/**
|
|
3880
|
+
*/[uniffiTypeNameSymbol]='SdkError';tag=SdkError_Tags.Generic;constructor(v0){super('SdkError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===SdkError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkError';}return Object.freeze({instanceOf,SparkError:SparkError_,InsufficientFunds:InsufficientFunds_,InvalidUuid:InvalidUuid_,InvalidInput:InvalidInput_,NetworkError:NetworkError_,StorageError:StorageError_,ChainServiceError:ChainServiceError_,MaxDepositClaimFeeExceeded:MaxDepositClaimFeeExceeded_,MissingUtxo:MissingUtxo_,LnurlError:LnurlError_,Signer:Signer_,OptimizationAlreadyRunning:OptimizationAlreadyRunning_,OptimizationCancelled:OptimizationCancelled_,InsufficientCpfpFunds:InsufficientCpfpFunds_,FundingUtxoConflict:FundingUtxoConflict_,Generic:Generic_});})();/**
|
|
3525
3881
|
* Error type for the `BreezSdk`
|
|
3526
3882
|
*/// FfiConverter for enum SdkError
|
|
3527
|
-
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.OptimizationAlreadyRunning();case 13:return new SdkError.OptimizationCancelled();case 14: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.OptimizationAlreadyRunning:{ordinalConverter.write(12,into);return;}case SdkError_Tags.OptimizationCancelled:{ordinalConverter.write(13,into);return;}case SdkError_Tags.
|
|
3528
|
-
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:{
|
|
3883
|
+
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({tokenIdentifier:FfiConverterOptionalString.read(from)});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.OptimizationAlreadyRunning();case 13:return new SdkError.OptimizationCancelled();case 14:return new SdkError.InsufficientCpfpFunds({requiredSat:FfiConverterUInt64.read(from)});case 15:return new SdkError.FundingUtxoConflict({txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 16: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);const inner=value.inner;FfiConverterOptionalString.write(inner.tokenIdentifier,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.OptimizationAlreadyRunning:{ordinalConverter.write(12,into);return;}case SdkError_Tags.OptimizationCancelled:{ordinalConverter.write(13,into);return;}case SdkError_Tags.InsufficientCpfpFunds:{ordinalConverter.write(14,into);const inner=value.inner;FfiConverterUInt64.write(inner.requiredSat,into);return;}case SdkError_Tags.FundingUtxoConflict:{ordinalConverter.write(15,into);const inner=value.inner;FfiConverterString.write(inner.txid,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(16,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
|
|
3884
|
+
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:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterOptionalString.allocationSize(inner.tokenIdentifier);return size;}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.OptimizationAlreadyRunning:{return ordinalConverter.allocationSize(12);}case SdkError_Tags.OptimizationCancelled:{return ordinalConverter.allocationSize(13);}case SdkError_Tags.InsufficientCpfpFunds:{const inner=value.inner;let size=ordinalConverter.allocationSize(14);size+=FfiConverterUInt64.allocationSize(inner.requiredSat);return size;}case SdkError_Tags.FundingUtxoConflict:{const inner=value.inner;let size=ordinalConverter.allocationSize(15);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(16);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
|
|
3529
3885
|
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["AutoOptimization"]="AutoOptimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";SdkEvent_Tags["NewDeposits"]="NewDeposits";return SdkEvent_Tags;}({});/**
|
|
3530
3886
|
* Events emitted by the SDK
|
|
3531
3887
|
*/export const SdkEvent=(()=>{/**
|
|
@@ -3732,7 +4088,27 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
3732
4088
|
* The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
|
|
3733
4089
|
*/SparkHtlcStatus[SparkHtlcStatus["PreimageShared"]=1]="PreimageShared";/**
|
|
3734
4090
|
* The HTLC has been returned to the sender due to expiry
|
|
3735
|
-
*/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:
|
|
4091
|
+
*/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: SparkMasterIdentityPublicKey
|
|
4092
|
+
export let SparkMasterIdentityPublicKey_Tags=/*#__PURE__*/function(SparkMasterIdentityPublicKey_Tags){SparkMasterIdentityPublicKey_Tags["Set"]="Set";SparkMasterIdentityPublicKey_Tags["Unset"]="Unset";return SparkMasterIdentityPublicKey_Tags;}({});/**
|
|
4093
|
+
* Specifies how to update the wallet's Spark master identity public key.
|
|
4094
|
+
*/export const SparkMasterIdentityPublicKey=(()=>{/**
|
|
4095
|
+
* Designate the holder of this public key as the wallet's master
|
|
4096
|
+
* identity, replacing any previously designated key. Must be hex encoded
|
|
4097
|
+
* in the 33-byte compressed form.
|
|
4098
|
+
*/class Set_ extends UniffiEnum{/**
|
|
4099
|
+
* @private
|
|
4100
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4101
|
+
*/[uniffiTypeNameSymbol]='SparkMasterIdentityPublicKey';tag=SparkMasterIdentityPublicKey_Tags.Set;constructor(inner){super('SparkMasterIdentityPublicKey','Set');this.inner=Object.freeze(inner);}static new(inner){return new Set_(inner);}static instanceOf(obj){return obj.tag===SparkMasterIdentityPublicKey_Tags.Set;}}/**
|
|
4102
|
+
* Remove the designated master identity, leaving the owner as the only
|
|
4103
|
+
* party able to read the wallet under private mode.
|
|
4104
|
+
*/class Unset_ extends UniffiEnum{/**
|
|
4105
|
+
* @private
|
|
4106
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4107
|
+
*/[uniffiTypeNameSymbol]='SparkMasterIdentityPublicKey';tag=SparkMasterIdentityPublicKey_Tags.Unset;constructor(){super('SparkMasterIdentityPublicKey','Unset');}static new(){return new Unset_();}static instanceOf(obj){return obj.tag===SparkMasterIdentityPublicKey_Tags.Unset;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SparkMasterIdentityPublicKey';}return Object.freeze({instanceOf,Set:Set_,Unset:Unset_});})();/**
|
|
4108
|
+
* Specifies how to update the wallet's Spark master identity public key.
|
|
4109
|
+
*/// FfiConverter for enum SparkMasterIdentityPublicKey
|
|
4110
|
+
const FfiConverterTypeSparkMasterIdentityPublicKey=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SparkMasterIdentityPublicKey.Set({publicKey:FfiConverterString.read(from)});case 2:return new SparkMasterIdentityPublicKey.Unset();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SparkMasterIdentityPublicKey_Tags.Set:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.publicKey,into);return;}case SparkMasterIdentityPublicKey_Tags.Unset:{ordinalConverter.write(2,into);return;}default:// Throwing from here means that SparkMasterIdentityPublicKey_Tags hasn't matched an ordinal.
|
|
4111
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SparkMasterIdentityPublicKey_Tags.Set:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.publicKey);return size;}case SparkMasterIdentityPublicKey_Tags.Unset:{return ordinalConverter.allocationSize(2);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: StableBalanceActiveLabel
|
|
3736
4112
|
export let StableBalanceActiveLabel_Tags=/*#__PURE__*/function(StableBalanceActiveLabel_Tags){StableBalanceActiveLabel_Tags["Set"]="Set";StableBalanceActiveLabel_Tags["Unset"]="Unset";return StableBalanceActiveLabel_Tags;}({});/**
|
|
3737
4113
|
* Specifies how to update the active stable balance token.
|
|
3738
4114
|
*/export const StableBalanceActiveLabel=(()=>{/**
|
|
@@ -3870,8 +4246,19 @@ export let TransferTarget_Tags=/*#__PURE__*/function(TransferTarget_Tags){Transf
|
|
|
3870
4246
|
* This field is private and should not be used, use `tag` instead.
|
|
3871
4247
|
*/[uniffiTypeNameSymbol]='TransferTarget';tag=TransferTarget_Tags.CoopExit;constructor(inner){super('TransferTarget','CoopExit');this.inner=Object.freeze(inner);}static new(inner){return new CoopExit_(inner);}static instanceOf(obj){return obj.tag===TransferTarget_Tags.CoopExit;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='TransferTarget';}return Object.freeze({instanceOf,Spark:Spark_,Lightning:Lightning_,CoopExit:CoopExit_});})();// FfiConverter for enum TransferTarget
|
|
3872
4248
|
const FfiConverterTypeTransferTarget=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new TransferTarget.Spark({address:FfiConverterString.read(from),sparkInvoice:FfiConverterOptionalString.read(from)});case 2:return new TransferTarget.Lightning({bolt11:FfiConverterString.read(from),lnurlPay:FfiConverterOptionalTypeLnurlPayContext.read(from),feePolicy:FfiConverterTypeFeePolicy.read(from),completionTimeoutSecs:FfiConverterOptionalUInt32.read(from)});case 3:return new TransferTarget.CoopExit({address:FfiConverterString.read(from),feeQuote:FfiConverterTypeSendOnchainFeeQuote.read(from),confirmationSpeed:FfiConverterTypeOnchainConfirmationSpeed.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case TransferTarget_Tags.Spark:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterOptionalString.write(inner.sparkInvoice,into);return;}case TransferTarget_Tags.Lightning:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner.bolt11,into);FfiConverterOptionalTypeLnurlPayContext.write(inner.lnurlPay,into);FfiConverterTypeFeePolicy.write(inner.feePolicy,into);FfiConverterOptionalUInt32.write(inner.completionTimeoutSecs,into);return;}case TransferTarget_Tags.CoopExit:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner.address,into);FfiConverterTypeSendOnchainFeeQuote.write(inner.feeQuote,into);FfiConverterTypeOnchainConfirmationSpeed.write(inner.confirmationSpeed,into);return;}default:// Throwing from here means that TransferTarget_Tags hasn't matched an ordinal.
|
|
3873
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case TransferTarget_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterOptionalString.allocationSize(inner.sparkInvoice);return size;}case TransferTarget_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.bolt11);size+=FfiConverterOptionalTypeLnurlPayContext.allocationSize(inner.lnurlPay);size+=FfiConverterTypeFeePolicy.allocationSize(inner.feePolicy);size+=FfiConverterOptionalUInt32.allocationSize(inner.completionTimeoutSecs);return size;}case TransferTarget_Tags.CoopExit:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);size+=FfiConverterTypeOnchainConfirmationSpeed.allocationSize(inner.confirmationSpeed);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
3874
|
-
|
|
4249
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case TransferTarget_Tags.Spark:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterOptionalString.allocationSize(inner.sparkInvoice);return size;}case TransferTarget_Tags.Lightning:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner.bolt11);size+=FfiConverterOptionalTypeLnurlPayContext.allocationSize(inner.lnurlPay);size+=FfiConverterTypeFeePolicy.allocationSize(inner.feePolicy);size+=FfiConverterOptionalUInt32.allocationSize(inner.completionTimeoutSecs);return size;}case TransferTarget_Tags.CoopExit:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner.address);size+=FfiConverterTypeSendOnchainFeeQuote.allocationSize(inner.feeQuote);size+=FfiConverterTypeOnchainConfirmationSpeed.allocationSize(inner.confirmationSpeed);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
4250
|
+
* The role of a transaction in the exit path.
|
|
4251
|
+
*/export let UnilateralExitTxKind=/*#__PURE__*/function(UnilateralExitTxKind){/**
|
|
4252
|
+
* Splits the caller's funding into one output per branch. Present only
|
|
4253
|
+
* when the funding couldn't be matched one-to-one to branches.
|
|
4254
|
+
*/UnilateralExitTxKind[UnilateralExitTxKind["FanOut"]=0]="FanOut";/**
|
|
4255
|
+
* A tree node transaction (root, intermediate, or leaf node).
|
|
4256
|
+
*/UnilateralExitTxKind[UnilateralExitTxKind["Node"]=1]="Node";/**
|
|
4257
|
+
* A leaf's refund transaction.
|
|
4258
|
+
*/UnilateralExitTxKind[UnilateralExitTxKind["Refund"]=2]="Refund";/**
|
|
4259
|
+
* The final transaction sweeping all refund outputs to the destination.
|
|
4260
|
+
*/UnilateralExitTxKind[UnilateralExitTxKind["Sweep"]=3]="Sweep";return UnilateralExitTxKind;}({});const FfiConverterTypeUnilateralExitTxKind=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return UnilateralExitTxKind.FanOut;case 2:return UnilateralExitTxKind.Node;case 3:return UnilateralExitTxKind.Refund;case 4:return UnilateralExitTxKind.Sweep;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case UnilateralExitTxKind.FanOut:return ordinalConverter.write(1,into);case UnilateralExitTxKind.Node:return ordinalConverter.write(2,into);case UnilateralExitTxKind.Refund:return ordinalConverter.write(3,into);case UnilateralExitTxKind.Sweep:return ordinalConverter.write(4,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Enum: UnsignedTransferPackage
|
|
4261
|
+
export let UnsignedTransferPackage_Tags=/*#__PURE__*/function(UnsignedTransferPackage_Tags){UnsignedTransferPackage_Tags["Swap"]="Swap";UnsignedTransferPackage_Tags["Transfer"]="Transfer";UnsignedTransferPackage_Tags["Token"]="Token";UnsignedTransferPackage_Tags["TokenBatch"]="TokenBatch";return UnsignedTransferPackage_Tags;}({});export const UnsignedTransferPackage=(()=>{class Swap_ extends UniffiEnum{/**
|
|
3875
4262
|
* @private
|
|
3876
4263
|
* This field is private and should not be used, use `tag` instead.
|
|
3877
4264
|
*/[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.Swap;constructor(inner){super('UnsignedTransferPackage','Swap');this.inner=Object.freeze(inner);}static new(inner){return new Swap_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.Swap;}}class Transfer_ extends UniffiEnum{/**
|
|
@@ -3880,9 +4267,15 @@ export let UnsignedTransferPackage_Tags=/*#__PURE__*/function(UnsignedTransferPa
|
|
|
3880
4267
|
*/[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.Transfer;constructor(inner){super('UnsignedTransferPackage','Transfer');this.inner=Object.freeze(inner);}static new(inner){return new Transfer_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.Transfer;}}class Token_ extends UniffiEnum{/**
|
|
3881
4268
|
* @private
|
|
3882
4269
|
* This field is private and should not be used, use `tag` instead.
|
|
3883
|
-
*/[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.Token;constructor(inner){super('UnsignedTransferPackage','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.Token;}}
|
|
3884
|
-
|
|
3885
|
-
|
|
4270
|
+
*/[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.Token;constructor(inner){super('UnsignedTransferPackage','Token');this.inner=Object.freeze(inner);}static new(inner){return new Token_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.Token;}}/**
|
|
4271
|
+
* One token transaction paying several recipients. Publishing it returns
|
|
4272
|
+
* `PaymentsSent` with one payment per recipient.
|
|
4273
|
+
*/class TokenBatch_ extends UniffiEnum{/**
|
|
4274
|
+
* @private
|
|
4275
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4276
|
+
*/[uniffiTypeNameSymbol]='UnsignedTransferPackage';tag=UnsignedTransferPackage_Tags.TokenBatch;constructor(inner){super('UnsignedTransferPackage','TokenBatch');this.inner=Object.freeze(inner);}static new(inner){return new TokenBatch_(inner);}static instanceOf(obj){return obj.tag===UnsignedTransferPackage_Tags.TokenBatch;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='UnsignedTransferPackage';}return Object.freeze({instanceOf,Swap:Swap_,Transfer:Transfer_,Token:Token_,TokenBatch:TokenBatch_});})();// FfiConverter for enum UnsignedTransferPackage
|
|
4277
|
+
const FfiConverterTypeUnsignedTransferPackage=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new UnsignedTransferPackage.Swap({prepareTransfer:FfiConverterTypeExternalPrepareTransferRequest.read(from),targetAmounts:FfiConverterArrayUInt64.read(from),amountSat:FfiConverterUInt64.read(from),feeSat:FfiConverterUInt64.read(from)});case 2:return new UnsignedTransferPackage.Transfer({prepareTransfer:FfiConverterTypeExternalPrepareTransferRequest.read(from),amountSat:FfiConverterUInt64.read(from),feeSat:FfiConverterUInt64.read(from),target:FfiConverterTypeTransferTarget.read(from)});case 3:return new UnsignedTransferPackage.Token({prepareTokenTransaction:FfiConverterTypeExternalPrepareTokenTransactionRequest.read(from),tokenContext:FfiConverterArrayBuffer.read(from),tokenIdentifier:FfiConverterString.read(from),amount:FfiConverterTypeu128.read(from),fee:FfiConverterTypeu128.read(from),isSwap:FfiConverterBool.read(from)});case 4:return new UnsignedTransferPackage.TokenBatch({prepareTokenTransaction:FfiConverterTypeExternalPrepareTokenTransactionRequest.read(from),tokenContext:FfiConverterArrayBuffer.read(from),totals:FfiConverterArrayTypeBatchTotal.read(from),isSwap:FfiConverterBool.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case UnsignedTransferPackage_Tags.Swap:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypeExternalPrepareTransferRequest.write(inner.prepareTransfer,into);FfiConverterArrayUInt64.write(inner.targetAmounts,into);FfiConverterUInt64.write(inner.amountSat,into);FfiConverterUInt64.write(inner.feeSat,into);return;}case UnsignedTransferPackage_Tags.Transfer:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterTypeExternalPrepareTransferRequest.write(inner.prepareTransfer,into);FfiConverterUInt64.write(inner.amountSat,into);FfiConverterUInt64.write(inner.feeSat,into);FfiConverterTypeTransferTarget.write(inner.target,into);return;}case UnsignedTransferPackage_Tags.Token:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterTypeExternalPrepareTokenTransactionRequest.write(inner.prepareTokenTransaction,into);FfiConverterArrayBuffer.write(inner.tokenContext,into);FfiConverterString.write(inner.tokenIdentifier,into);FfiConverterTypeu128.write(inner.amount,into);FfiConverterTypeu128.write(inner.fee,into);FfiConverterBool.write(inner.isSwap,into);return;}case UnsignedTransferPackage_Tags.TokenBatch:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypeExternalPrepareTokenTransactionRequest.write(inner.prepareTokenTransaction,into);FfiConverterArrayBuffer.write(inner.tokenContext,into);FfiConverterArrayTypeBatchTotal.write(inner.totals,into);FfiConverterBool.write(inner.isSwap,into);return;}default:// Throwing from here means that UnsignedTransferPackage_Tags hasn't matched an ordinal.
|
|
4278
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case UnsignedTransferPackage_Tags.Swap:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypeExternalPrepareTransferRequest.allocationSize(inner.prepareTransfer);size+=FfiConverterArrayUInt64.allocationSize(inner.targetAmounts);size+=FfiConverterUInt64.allocationSize(inner.amountSat);size+=FfiConverterUInt64.allocationSize(inner.feeSat);return size;}case UnsignedTransferPackage_Tags.Transfer:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterTypeExternalPrepareTransferRequest.allocationSize(inner.prepareTransfer);size+=FfiConverterUInt64.allocationSize(inner.amountSat);size+=FfiConverterUInt64.allocationSize(inner.feeSat);size+=FfiConverterTypeTransferTarget.allocationSize(inner.target);return size;}case UnsignedTransferPackage_Tags.Token:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterTypeExternalPrepareTokenTransactionRequest.allocationSize(inner.prepareTokenTransaction);size+=FfiConverterArrayBuffer.allocationSize(inner.tokenContext);size+=FfiConverterString.allocationSize(inner.tokenIdentifier);size+=FfiConverterTypeu128.allocationSize(inner.amount);size+=FfiConverterTypeu128.allocationSize(inner.fee);size+=FfiConverterBool.allocationSize(inner.isSwap);return size;}case UnsignedTransferPackage_Tags.TokenBatch:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypeExternalPrepareTokenTransactionRequest.allocationSize(inner.prepareTokenTransaction);size+=FfiConverterArrayBuffer.allocationSize(inner.tokenContext);size+=FfiConverterArrayTypeBatchTotal.allocationSize(inner.totals);size+=FfiConverterBool.allocationSize(inner.isSwap);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: UpdateDepositPayload
|
|
3886
4279
|
export let UpdateDepositPayload_Tags=/*#__PURE__*/function(UpdateDepositPayload_Tags){UpdateDepositPayload_Tags["ClaimError"]="ClaimError";UpdateDepositPayload_Tags["Refund"]="Refund";return UpdateDepositPayload_Tags;}({});export const UpdateDepositPayload=(()=>{class ClaimError_ extends UniffiEnum{/**
|
|
3887
4280
|
* @private
|
|
3888
4281
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -3926,7 +4319,12 @@ const FfiConverterTypeWebhookEventType=(()=>{const ordinalConverter=FfiConverter
|
|
|
3926
4319
|
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>
|
|
3927
4320
|
const FfiConverterMapStringTypeTokenBalance=new FfiConverterMap(FfiConverterString,FfiConverterTypeTokenBalance);// FfiConverter for Map<string, string>
|
|
3928
4321
|
const FfiConverterMapStringString=new FfiConverterMap(FfiConverterString,FfiConverterString);export class BitcoinChainServiceImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='BitcoinChainServiceImpl';// No primary constructor declared for this class.
|
|
3929
|
-
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;}}
|
|
4322
|
+
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;}}/**
|
|
4323
|
+
* Every output ever paid to `address`, spent or not, unlike
|
|
4324
|
+
* [`get_address_utxos`](Self::get_address_utxos) which omits spent ones.
|
|
4325
|
+
* Recovers an output's outpoint and value after it has been spent, so a
|
|
4326
|
+
* swept refund can still be distinguished from one never broadcast.
|
|
4327
|
+
*/async getAddressTxos(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_txos(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 getOutspend(txid,vout,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_outspend(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout));},/*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:*/FfiConverterTypeOutspend.lift.bind(FfiConverterTypeOutspend),/*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;}}/**
|
|
3930
4328
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3931
4329
|
*/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
|
|
3932
4330
|
const FfiConverterTypeBitcoinChainService=new FfiConverterObjectWithCallbacks(uniffiTypeBitcoinChainServiceImplObjectFactory);// Add a vtavble for the callbacks that go in BitcoinChainService.
|
|
@@ -3934,8 +4332,10 @@ const FfiConverterTypeBitcoinChainService=new FfiConverterObjectWithCallbacks(un
|
|
|
3934
4332
|
const uniffiCallbackInterfaceBitcoinChainService={// Create the VTable using a series of closures.
|
|
3935
4333
|
// ts automatically converts these into C callback functions.
|
|
3936
4334
|
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.
|
|
4335
|
+
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;},getAddressTxos:(uniffiHandle,address,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getAddressTxos(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.
|
|
3937
4336
|
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.
|
|
3938
4337
|
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.
|
|
4338
|
+
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;},getOutspend:(uniffiHandle,txid,vout,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeBitcoinChainService.lift(uniffiHandle);return await jsCallback.getOutspend(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeOutspend.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3939
4339
|
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.
|
|
3940
4340
|
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.
|
|
3941
4341
|
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.
|
|
@@ -3977,7 +4377,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3977
4377
|
* [`TransferAuthorization`] to hand to the new owner, who
|
|
3978
4378
|
* claims it via [`BreezSdk::claim_lightning_address_transfer`].
|
|
3979
4379
|
* Errors if the current owner has no lightning address registered.
|
|
3980
|
-
*/async authorizeLightningAddressTransfer(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_authorize_lightning_address_transfer(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeAuthorizeTransferRequest.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:*/FfiConverterTypeTransferAuthorization.lift.bind(FfiConverterTypeTransferAuthorization),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
4380
|
+
*/async authorizeLightningAddressTransfer(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_authorize_lightning_address_transfer(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeAuthorizeTransferRequest.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:*/FfiConverterTypeTransferAuthorization.lift.bind(FfiConverterTypeTransferAuthorization),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4381
|
+
* Builds the unsigned package for the batch prepared by
|
|
4382
|
+
* [`BreezSdk::prepare_send_batch`], for signing outside the SDK.
|
|
4383
|
+
*
|
|
4384
|
+
* Publish the signed package with
|
|
4385
|
+
* [`BreezSdk::publish_signed_transfer_package`], which returns every payment.
|
|
4386
|
+
*/async buildUnsignedBatchPackage(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_build_unsigned_batch_package(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuildUnsignedBatchPackageRequest.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:*/FfiConverterTypeUnsignedTransferPackage.lift.bind(FfiConverterTypeUnsignedTransferPackage),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async buildUnsignedLnurlPayPackage(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_build_unsigned_lnurl_pay_package(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuildUnsignedLnurlPayPackageRequest.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:*/FfiConverterTypeUnsignedTransferPackage.lift.bind(FfiConverterTypeUnsignedTransferPackage),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async buildUnsignedTransferPackage(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_build_unsigned_transfer_package(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeBuildUnsignedTransferPackageRequest.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:*/FfiConverterTypeUnsignedTransferPackage.lift.bind(FfiConverterTypeUnsignedTransferPackage),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3981
4387
|
* Initiates a Bitcoin purchase flow via an external provider.
|
|
3982
4388
|
*
|
|
3983
4389
|
* Returns a URL the user should open to complete the purchase.
|
|
@@ -4123,19 +4529,37 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4123
4529
|
*
|
|
4124
4530
|
* Manual runs do not emit events; events ([`SdkEvent::AutoOptimization`])
|
|
4125
4531
|
* are reserved for the background auto-optimizer.
|
|
4126
|
-
*/async optimizeLeaves(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_optimize_leaves(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeOptimizeLeavesRequest.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:*/FfiConverterTypeOptimizeLeavesResponse.lift.bind(FfiConverterTypeOptimizeLeavesResponse),/*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;}}
|
|
4532
|
+
*/async optimizeLeaves(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_optimize_leaves(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeOptimizeLeavesRequest.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:*/FfiConverterTypeOptimizeLeavesResponse.lift.bind(FfiConverterTypeOptimizeLeavesResponse),/*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;}}/**
|
|
4533
|
+
* Prepares a send to several payees, all paid by one transaction.
|
|
4534
|
+
*
|
|
4535
|
+
* Each recipient is a Spark address or a Spark invoice, and one batch may
|
|
4536
|
+
* span several tokens. The response resolves every invoice into the asset
|
|
4537
|
+
* and amount it requests, and reports what the batch debits per asset.
|
|
4538
|
+
*
|
|
4539
|
+
* A batch pays tokens: sending sats to several payees at once is not
|
|
4540
|
+
* supported yet, so a recipient that resolves to sats is rejected.
|
|
4541
|
+
*
|
|
4542
|
+
* A batch that pays a Spark invoice is limited to a single token: the
|
|
4543
|
+
* operators reject a transaction that carries an invoice and pays more
|
|
4544
|
+
* than one. Send those as one batch per token.
|
|
4545
|
+
*/async prepareSendBatch(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_batch(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareSendBatchRequest.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:*/FfiConverterTypePrepareSendBatchResponse.lift.bind(FfiConverterTypePrepareSendBatchResponse),/*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;}}/**
|
|
4546
|
+
* Quotes a unilateral exit without any funding UTXOs: selects which leaves
|
|
4547
|
+
* would exit, computes the exact fee for the given funding kind, and reports
|
|
4548
|
+
* how much to fund.
|
|
4549
|
+
*/async prepareUnilateralExit(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_unilateral_exit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePrepareUnilateralExitRequest.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:*/FfiConverterTypePrepareUnilateralExitResponse.lift.bind(FfiConverterTypePrepareUnilateralExitResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async publishSignedLnurlPayPackage(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_publish_signed_lnurl_pay_package(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePublishSignedLnurlPayPackageRequest.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:*/FfiConverterTypePublishSignedLnurlPayResponse.lift.bind(FfiConverterTypePublishSignedLnurlPayResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async publishSignedTransferPackage(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_publish_signed_transfer_package(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypePublishSignedTransferPackageRequest.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:*/FfiConverterTypePublishSignedTransferPackageResponse.lift.bind(FfiConverterTypePublishSignedTransferPackageResponse),/*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;}}/**
|
|
4127
4550
|
* Get the recommended BTC fees based on the configured chain service.
|
|
4128
4551
|
*/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;}}/**
|
|
4129
|
-
* Runs one pass of the pending-conversion refunder
|
|
4130
|
-
*
|
|
4131
|
-
*
|
|
4132
|
-
*
|
|
4133
|
-
*
|
|
4134
|
-
*
|
|
4135
|
-
*
|
|
4136
|
-
*
|
|
4137
|
-
*
|
|
4138
|
-
|
|
4552
|
+
* Runs one full pass of the pending-conversion refunder and returns how
|
|
4553
|
+
* many conversions were refunded, skipped (held back by a safety window),
|
|
4554
|
+
* or failed.
|
|
4555
|
+
*
|
|
4556
|
+
* The pass has two parts: refunding locally-marked failed conversions, and
|
|
4557
|
+
* reconciling against Flashnet's clawback-eligible listing to catch
|
|
4558
|
+
* conversions with no local marker (e.g. a storage write that never
|
|
4559
|
+
* landed). The SDK's periodic background schedule runs only the local
|
|
4560
|
+
* part; the reconcile runs at SDK init and on each call to this method, so
|
|
4561
|
+
* this is the explicit entry point for driving a full pass on demand.
|
|
4562
|
+
*/async refundPendingConversions(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_pending_conversions(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:*/FfiConverterTypeRefundPendingConversionsResponse.lift.bind(FfiConverterTypeRefundPendingConversionsResponse),/*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;}}/**
|
|
4139
4563
|
* Registers a webhook to receive notifications for wallet events.
|
|
4140
4564
|
*
|
|
4141
4565
|
* When registered events occur (e.g., a Lightning payment is received),
|
|
@@ -4159,13 +4583,33 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4159
4583
|
* # Returns
|
|
4160
4584
|
*
|
|
4161
4585
|
* `true` if the listener was found and removed, `false` otherwise
|
|
4162
|
-
*/async removeEventListener(id,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_remove_event_listener(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
4586
|
+
*/async removeEventListener(id,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_remove_event_listener(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*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_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4587
|
+
* Sends the batch prepared by [`BreezSdk::prepare_send_batch`], returning
|
|
4588
|
+
* one payment per recipient in recipient order.
|
|
4589
|
+
*
|
|
4590
|
+
* Retrying after a failure that leaves the outcome unknown may pay twice:
|
|
4591
|
+
* a token transfer has no idempotency key, since the operator can only be
|
|
4592
|
+
* asked about a transaction by a hash that is computed while broadcasting.
|
|
4593
|
+
* Look for the batch with a `Token` payment details filter on the
|
|
4594
|
+
* transaction hash before sending it again.
|
|
4595
|
+
*/async sendBatch(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_send_batch(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSendBatchRequest.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:*/FfiConverterTypeSendBatchResponse.lift.bind(FfiConverterTypeSendBatchResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async sendPayment(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_send_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSendPaymentRequest.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:*/FfiConverterTypeSendPaymentResponse.lift.bind(FfiConverterTypeSendPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4163
4596
|
* Signs a message with the wallet's identity key. The message is SHA256
|
|
4164
4597
|
* hashed before signing. The returned signature will be hex encoded in
|
|
4165
4598
|
* DER format by default, or compact format if specified.
|
|
4166
4599
|
*/async signMessage(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_sign_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSignMessageRequest.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:*/FfiConverterTypeSignMessageResponse.lift.bind(FfiConverterTypeSignMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4167
4600
|
* Synchronizes the wallet with the Spark network
|
|
4168
4601
|
*/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;}}/**
|
|
4602
|
+
* Builds and signs a complete unilateral exit from a `prepare_unilateral_exit`
|
|
4603
|
+
* quote and the actual funding UTXOs, returning the full transaction set in
|
|
4604
|
+
* topological broadcast order without broadcasting. Broadcast it over time,
|
|
4605
|
+
* respecting each transaction's `depends_on` and `csv_timelock_blocks`.
|
|
4606
|
+
*
|
|
4607
|
+
* It resolves on-chain state first (see [`resolve_exit_observations`]): an
|
|
4608
|
+
* already-confirmed fan-out or CPFP node is not rebuilt, and a leaf refund
|
|
4609
|
+
* already on-chain (recognized by the leaf's refund address, so any refund
|
|
4610
|
+
* variant counts) is swept directly. Re-running after partial progress
|
|
4611
|
+
* therefore resumes rather than restarts.
|
|
4612
|
+
*/async unilateralExit(request,signer,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_unilateral_exit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeUnilateralExitRequest.lower(request),FfiConverterTypeCpfpSigner.lower(signer));},/*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:*/FfiConverterTypeUnilateralExitResponse.lift.bind(FfiConverterTypeUnilateralExitResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4169
4613
|
* Unregisters a previously registered webhook.
|
|
4170
4614
|
*
|
|
4171
4615
|
* After unregistering, the Spark service provider will no longer send
|
|
@@ -4192,6 +4636,26 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4192
4636
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4193
4637
|
*/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
|
|
4194
4638
|
const FfiConverterTypeBreezSdk=new FfiConverterObject(uniffiTypeBreezSdkObjectFactory);/**
|
|
4639
|
+
* Signer for external UTXO inputs in CPFP fee-bumping transactions.
|
|
4640
|
+
*
|
|
4641
|
+
* Signs the non-finalized inputs of a PSBT (serialized as bytes) and returns the
|
|
4642
|
+
* signed PSBT (also serialized as bytes).
|
|
4643
|
+
*//**
|
|
4644
|
+
* Signer for external UTXO inputs in CPFP fee-bumping transactions.
|
|
4645
|
+
*
|
|
4646
|
+
* Signs the non-finalized inputs of a PSBT (serialized as bytes) and returns the
|
|
4647
|
+
* signed PSBT (also serialized as bytes).
|
|
4648
|
+
*/export class CpfpSignerImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='CpfpSignerImpl';// No primary constructor declared for this class.
|
|
4649
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeCpfpSignerImplObjectFactory.bless(pointer);}async signPsbt(psbtBytes,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_cpfpsigner_sign_psbt(uniffiTypeCpfpSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(psbtBytes));},/*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:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4650
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4651
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeCpfpSignerImplObjectFactory.pointer(this);uniffiTypeCpfpSignerImplObjectFactory.freePointer(pointer);uniffiTypeCpfpSignerImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypeCpfpSignerImplObjectFactory.isConcreteType(obj);}}const uniffiTypeCpfpSignerImplObjectFactory=(()=>{return{create(pointer){const instance=Object.create(CpfpSignerImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='CpfpSignerImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_cpfpsigner_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_cpfpsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_cpfpsigner(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='CpfpSignerImpl';}};})();// FfiConverter for CpfpSigner
|
|
4652
|
+
const FfiConverterTypeCpfpSigner=new FfiConverterObjectWithCallbacks(uniffiTypeCpfpSignerImplObjectFactory);// Add a vtavble for the callbacks that go in CpfpSigner.
|
|
4653
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
4654
|
+
const uniffiCallbackInterfaceCpfpSigner={// Create the VTable using a series of closures.
|
|
4655
|
+
// ts automatically converts these into C callback functions.
|
|
4656
|
+
vtable:{signPsbt:(uniffiHandle,psbtBytes,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeCpfpSigner.lift(uniffiHandle);return await jsCallback.signPsbt(FfiConverterArrayBuffer.lift(psbtBytes),{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.
|
|
4657
|
+
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=>{// CpfpSigner: this will throw a stale handle error if the handle isn't found.
|
|
4658
|
+
FfiConverterTypeCpfpSigner.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_cpfpsigner(uniffiCallbackInterfaceCpfpSigner.vtable);}};/**
|
|
4195
4659
|
* External signer trait that can be implemented by users and passed to the SDK.
|
|
4196
4660
|
*
|
|
4197
4661
|
* This trait mirrors the `BreezSigner` trait but uses FFI-compatible types (bytes, strings)
|
|
@@ -4394,6 +4858,9 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4394
4858
|
*/async signAuthenticationChallenge(challenge,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_externalsparksigner_sign_authentication_challenge(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(challenge));},/*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:*/FfiConverterTypeEcdsaSignatureBytes.lift.bind(FfiConverterTypeEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4395
4859
|
* ECDSA-sign an arbitrary user message with the identity key.
|
|
4396
4860
|
*/async signMessage(message,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_externalsparksigner_sign_message(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayBuffer.lower(message));},/*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:*/FfiConverterTypeEcdsaSignatureBytes.lift.bind(FfiConverterTypeEcdsaSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4861
|
+
* Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
|
|
4862
|
+
* BIP341 key-path spend (empty script tree).
|
|
4863
|
+
*/async signLeafRefundSpend(leafId,sighash,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_externalsparksigner_sign_leaf_refund_spend(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterTypeExternalTreeNodeId.lower(leafId),FfiConverterArrayBuffer.lower(sighash));},/*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:*/FfiConverterTypeSchnorrSignatureBytes.lift.bind(FfiConverterTypeSchnorrSignatureBytes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4397
4864
|
* Produce FROST shares for a batch of jobs.
|
|
4398
4865
|
*/async signFrost(jobs,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_externalsparksigner_sign_frost(uniffiTypeExternalSparkSignerImplObjectFactory.clonePointer(this),FfiConverterArrayTypeExternalFrostJob.lower(jobs));},/*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:*/FfiConverterArrayTypeExternalFrostShareResult.lift.bind(FfiConverterArrayTypeExternalFrostShareResult),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSignerError.lift.bind(FfiConverterTypeSignerError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4399
4866
|
* Prepare an outbound transfer (key-tweak + packages + payload signature).
|
|
@@ -4425,6 +4892,7 @@ callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeign
|
|
|
4425
4892
|
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;},isRemote:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return jsCallback.isRemote();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterBool.lower(obj));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCall(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*lowerString:*/FfiConverterString.lower);return uniffiResult;},getStaticDepositPublicKey:(uniffiHandle,index,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.getStaticDepositPublicKey(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.
|
|
4426
4893
|
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;},signAuthenticationChallenge:(uniffiHandle,challenge,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signAuthenticationChallenge(FfiConverterArrayBuffer.lift(challenge),{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.
|
|
4427
4894
|
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;},signMessage:(uniffiHandle,message,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signMessage(FfiConverterArrayBuffer.lift(message),{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.
|
|
4895
|
+
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;},signLeafRefundSpend:(uniffiHandle,leafId,sighash,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signLeafRefundSpend(FfiConverterTypeExternalTreeNodeId.lift(leafId),FfiConverterArrayBuffer.lift(sighash),{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.
|
|
4428
4896
|
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,jobs,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.signFrost(FfiConverterArrayTypeExternalFrostJob.lift(jobs),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeExternalFrostShareResult.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4429
4897
|
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;},prepareTransfer:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareTransfer(FfiConverterTypeExternalPrepareTransferRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedTransfer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4430
4898
|
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;},prepareClaim:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeExternalSparkSigner.lift(uniffiHandle);return await jsCallback.prepareClaim(FfiConverterTypeExternalPrepareClaimRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeExternalPreparedClaim.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
@@ -4515,10 +4983,12 @@ FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().u
|
|
|
4515
4983
|
* Label sub-object. List or publish labels for this passkey's
|
|
4516
4984
|
* identity.
|
|
4517
4985
|
*/labels(){return FfiConverterTypePasskeyLabels.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkeyclient_labels(uniffiTypePasskeyClientObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4518
|
-
* First-time setup. Drives [`PrfProvider::create_passkey`]
|
|
4519
|
-
*
|
|
4520
|
-
*
|
|
4521
|
-
*
|
|
4986
|
+
* First-time setup. Drives [`PrfProvider::create_passkey`], which
|
|
4987
|
+
* returns the seeds inline where the platform evaluates PRF during
|
|
4988
|
+
* the create ceremony; otherwise the wallet-derivation flow behind
|
|
4989
|
+
* [`Passkey::setup_wallet`] runs as a second ceremony. The label is
|
|
4990
|
+
* validated before anything is created, and published in the
|
|
4991
|
+
* background: it may still be in flight when this returns `Ok`.
|
|
4522
4992
|
*/async register(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_passkeyclient_register(uniffiTypePasskeyClientObjectFactory.clonePointer(this),FfiConverterTypeRegisterRequest.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:*/FfiConverterTypeRegisterResponse.lift.bind(FfiConverterTypeRegisterResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4523
4993
|
* Returning-user sign-in. Fast path (`label` set) skips the
|
|
4524
4994
|
* label-store query; discovery path (`label = None`) derives
|
|
@@ -4604,16 +5074,30 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
4604
5074
|
* Whether this provider can produce PRF outputs on the current
|
|
4605
5075
|
* device. Hosts gate UX on the result.
|
|
4606
5076
|
*/async isSupported(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_prfprovider_is_supported(uniffiTypePrfProviderImplObjectFactory.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:*/FfiConverterTypePrfProviderError.lift.bind(FfiConverterTypePrfProviderError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4607
|
-
* Explicit registration
|
|
4608
|
-
*
|
|
4609
|
-
*
|
|
4610
|
-
*
|
|
4611
|
-
*
|
|
5077
|
+
* Explicit registration: drive the OS create ceremony, and where the
|
|
5078
|
+
* platform supports it, evaluate PRF for `salts` in the same
|
|
5079
|
+
* ceremony. Platform passkey providers override this to surface the
|
|
5080
|
+
* credential metadata hosts need for `exclude_credentials`
|
|
5081
|
+
* bookkeeping. CLI / hardware providers register lazily in
|
|
5082
|
+
* [`Self::derive_seeds`] and inherit the default `PrfNotSupported`.
|
|
4612
5083
|
*
|
|
4613
5084
|
* `exclude_credentials` lists already-registered IDs and surfaces
|
|
4614
5085
|
* duplicates as `CredentialAlreadyExists`. The `user.id` is always
|
|
4615
5086
|
* provider-minted and returned on `PasskeyCredential.user_id`.
|
|
4616
|
-
|
|
5087
|
+
*
|
|
5088
|
+
* Returning seeds removes the assertion that would otherwise follow
|
|
5089
|
+
* a create, and with it the window where the new credential exists
|
|
5090
|
+
* but the platform cannot yet resolve it. Return `seeds: None` for
|
|
5091
|
+
* anything short of one output per salt (some authenticators drop
|
|
5092
|
+
* `prf.eval.second`): a partial result is not usable, and the caller
|
|
5093
|
+
* falls back to [`Self::derive_seeds`]. Empty `salts` means the
|
|
5094
|
+
* caller wants the credential only.
|
|
5095
|
+
*
|
|
5096
|
+
* Seeds returned here must equal what [`Self::derive_seeds`] would
|
|
5097
|
+
* return for the same salts. The wallet is derived from them either
|
|
5098
|
+
* way, so a mismatch means register and sign-in land on different
|
|
5099
|
+
* wallets, and the one register created is unreachable.
|
|
5100
|
+
*/async createPasskey(excludeCredentials,salts,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_prfprovider_create_passkey(uniffiTypePrfProviderImplObjectFactory.clonePointer(this),FfiConverterArrayArrayBuffer.lower(excludeCredentials),FfiConverterArrayString.lower(salts));},/*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:*/FfiConverterTypeCreatePasskeyOutput.lift.bind(FfiConverterTypeCreatePasskeyOutput),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePrfProviderError.lift.bind(FfiConverterTypePrfProviderError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4617
5101
|
* Advisory check against the platform's out-of-band verification
|
|
4618
5102
|
* source (iOS AASA / Android assetlinks / browser rpId scope).
|
|
4619
5103
|
* The SDK never gates internally; hosts pick their own policy.
|
|
@@ -4635,7 +5119,7 @@ const uniffiCallbackInterfacePrfProvider={// Create the VTable using a series of
|
|
|
4635
5119
|
// ts automatically converts these into C callback functions.
|
|
4636
5120
|
vtable:{deriveSeeds:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.deriveSeeds(FfiConverterTypeDeriveSeedsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeDeriveSeedsOutput.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4637
5121
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},isSupported:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.isSupported({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.
|
|
4638
|
-
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},createPasskey:(uniffiHandle,excludeCredentials,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.createPasskey(FfiConverterArrayArrayBuffer.lift(excludeCredentials),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:
|
|
5122
|
+
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},createPasskey:(uniffiHandle,excludeCredentials,salts,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.createPasskey(FfiConverterArrayArrayBuffer.lift(excludeCredentials),FfiConverterArrayString.lift(salts),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeCreatePasskeyOutput.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4639
5123
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},checkDomainAssociation:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePrfProvider.lift(uniffiHandle);return await jsCallback.checkDomainAssociation({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeDomainAssociation.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback.call(uniffiFutureCallback,uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
4640
5124
|
callStatus:uniffiCaller.createErrorStatus(code,errorBuf)});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PrfProviderError.instanceOf,/*lowerError:*/FfiConverterTypePrfProviderError.lower.bind(FfiConverterTypePrfProviderError),/*lowerString:*/FfiConverterString.lower);return uniffiForeignFuture;},uniffiFree:uniffiHandle=>{// PrfProvider: this will throw a stale handle error if the handle isn't found.
|
|
4641
5125
|
FfiConverterTypePrfProvider.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_prfprovider(uniffiCallbackInterfacePrfProvider.vtable);}};/**
|
|
@@ -5150,7 +5634,9 @@ const FfiConverterOptionalTypeTurnkeyRetryConfig=new FfiConverterOptional(FfiCon
|
|
|
5150
5634
|
const FfiConverterOptionalString=new FfiConverterOptional(FfiConverterString);// FfiConverter for /*u32*/number | undefined
|
|
5151
5635
|
const FfiConverterOptionalUInt32=new FfiConverterOptional(FfiConverterUInt32);// FfiConverter for /*u64*/bigint | undefined
|
|
5152
5636
|
const FfiConverterOptionalUInt64=new FfiConverterOptional(FfiConverterUInt64);// FfiConverter for Array<ArrayBuffer>
|
|
5153
|
-
const FfiConverterArrayArrayBuffer=new FfiConverterArray(FfiConverterArrayBuffer);// FfiConverter for Array<
|
|
5637
|
+
const FfiConverterArrayArrayBuffer=new FfiConverterArray(FfiConverterArrayBuffer);// FfiConverter for Array<BatchRecipient>
|
|
5638
|
+
const FfiConverterArrayTypeBatchRecipient=new FfiConverterArray(FfiConverterTypeBatchRecipient);// FfiConverter for Array<BatchTotal>
|
|
5639
|
+
const FfiConverterArrayTypeBatchTotal=new FfiConverterArray(FfiConverterTypeBatchTotal);// FfiConverter for Array<Bip21Extra>
|
|
5154
5640
|
const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip21Extra);// FfiConverter for Array<Bolt11RouteHint>
|
|
5155
5641
|
const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
|
|
5156
5642
|
const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
|
|
@@ -5176,15 +5662,19 @@ const FfiConverterArrayTypeLocaleOverrides=new FfiConverterArray(FfiConverterTyp
|
|
|
5176
5662
|
const FfiConverterArrayTypeLocalizedName=new FfiConverterArray(FfiConverterTypeLocalizedName);// FfiConverter for Array<OutgoingChange>
|
|
5177
5663
|
const FfiConverterArrayTypeOutgoingChange=new FfiConverterArray(FfiConverterTypeOutgoingChange);// FfiConverter for Array<Payment>
|
|
5178
5664
|
const FfiConverterArrayTypePayment=new FfiConverterArray(FfiConverterTypePayment);// FfiConverter for Array<PaymentIdUpdate>
|
|
5179
|
-
const FfiConverterArrayTypePaymentIdUpdate=new FfiConverterArray(FfiConverterTypePaymentIdUpdate);// FfiConverter for Array<
|
|
5665
|
+
const FfiConverterArrayTypePaymentIdUpdate=new FfiConverterArray(FfiConverterTypePaymentIdUpdate);// FfiConverter for Array<PerBranchFunding>
|
|
5666
|
+
const FfiConverterArrayTypePerBranchFunding=new FfiConverterArray(FfiConverterTypePerBranchFunding);// FfiConverter for Array<ProvisionalPayment>
|
|
5180
5667
|
const FfiConverterArrayTypeProvisionalPayment=new FfiConverterArray(FfiConverterTypeProvisionalPayment);// FfiConverter for Array<Rate>
|
|
5181
5668
|
const FfiConverterArrayTypeRate=new FfiConverterArray(FfiConverterTypeRate);// FfiConverter for Array<Record>
|
|
5182
|
-
const FfiConverterArrayTypeRecord=new FfiConverterArray(FfiConverterTypeRecord);// FfiConverter for Array<
|
|
5669
|
+
const FfiConverterArrayTypeRecord=new FfiConverterArray(FfiConverterTypeRecord);// FfiConverter for Array<ResolvedBatchRecipient>
|
|
5670
|
+
const FfiConverterArrayTypeResolvedBatchRecipient=new FfiConverterArray(FfiConverterTypeResolvedBatchRecipient);// FfiConverter for Array<SetLnurlMetadataItem>
|
|
5183
5671
|
const FfiConverterArrayTypeSetLnurlMetadataItem=new FfiConverterArray(FfiConverterTypeSetLnurlMetadataItem);// FfiConverter for Array<SparkSigningOperator>
|
|
5184
5672
|
const FfiConverterArrayTypeSparkSigningOperator=new FfiConverterArray(FfiConverterTypeSparkSigningOperator);// FfiConverter for Array<StableBalanceToken>
|
|
5185
5673
|
const FfiConverterArrayTypeStableBalanceToken=new FfiConverterArray(FfiConverterTypeStableBalanceToken);// FfiConverter for Array<StoredCrossChainSwap>
|
|
5186
5674
|
const FfiConverterArrayTypeStoredCrossChainSwap=new FfiConverterArray(FfiConverterTypeStoredCrossChainSwap);// FfiConverter for Array<TokenMetadata>
|
|
5187
|
-
const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<
|
|
5675
|
+
const FfiConverterArrayTypeTokenMetadata=new FfiConverterArray(FfiConverterTypeTokenMetadata);// FfiConverter for Array<UnilateralExitLeaf>
|
|
5676
|
+
const FfiConverterArrayTypeUnilateralExitLeaf=new FfiConverterArray(FfiConverterTypeUnilateralExitLeaf);// FfiConverter for Array<UnilateralExitTransaction>
|
|
5677
|
+
const FfiConverterArrayTypeUnilateralExitTransaction=new FfiConverterArray(FfiConverterTypeUnilateralExitTransaction);// FfiConverter for Array<Utxo>
|
|
5188
5678
|
const FfiConverterArrayTypeUtxo=new FfiConverterArray(FfiConverterTypeUtxo);// FfiConverter for Array<Webhook>
|
|
5189
5679
|
const FfiConverterArrayTypeWebhook=new FfiConverterArray(FfiConverterTypeWebhook);// FfiConverter for Array<string>
|
|
5190
5680
|
const FfiConverterArrayString=new FfiConverterArray(FfiConverterString);// FfiConverter for Array</*u64*/bigint>
|
|
@@ -5204,7 +5694,8 @@ const FfiConverterOptionalTypeFee=new FfiConverterOptional(FfiConverterTypeFee);
|
|
|
5204
5694
|
const FfiConverterOptionalTypeFeePolicy=new FfiConverterOptional(FfiConverterTypeFeePolicy);// FfiConverter for MaxFee | undefined
|
|
5205
5695
|
const FfiConverterOptionalTypeMaxFee=new FfiConverterOptional(FfiConverterTypeMaxFee);// FfiConverter for PaymentDetails | undefined
|
|
5206
5696
|
const FfiConverterOptionalTypePaymentDetails=new FfiConverterOptional(FfiConverterTypePaymentDetails);// FfiConverter for SendPaymentOptions | undefined
|
|
5207
|
-
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for
|
|
5697
|
+
const FfiConverterOptionalTypeSendPaymentOptions=new FfiConverterOptional(FfiConverterTypeSendPaymentOptions);// FfiConverter for SparkMasterIdentityPublicKey | undefined
|
|
5698
|
+
const FfiConverterOptionalTypeSparkMasterIdentityPublicKey=new FfiConverterOptional(FfiConverterTypeSparkMasterIdentityPublicKey);// FfiConverter for StableBalanceActiveLabel | undefined
|
|
5208
5699
|
const FfiConverterOptionalTypeStableBalanceActiveLabel=new FfiConverterOptional(FfiConverterTypeStableBalanceActiveLabel);// FfiConverter for SuccessAction | undefined
|
|
5209
5700
|
const FfiConverterOptionalTypeSuccessAction=new FfiConverterOptional(FfiConverterTypeSuccessAction);// FfiConverter for SuccessActionProcessed | undefined
|
|
5210
5701
|
const FfiConverterOptionalTypeSuccessActionProcessed=new FfiConverterOptional(FfiConverterTypeSuccessActionProcessed);// FfiConverter for TokenTransactionType | undefined
|
|
@@ -5212,7 +5703,8 @@ const FfiConverterOptionalTypeTokenTransactionType=new FfiConverterOptional(FfiC
|
|
|
5212
5703
|
const FfiConverterOptionalMapStringString=new FfiConverterOptional(FfiConverterMapStringString);// FfiConverter for StorageBackend | undefined
|
|
5213
5704
|
const FfiConverterOptionalTypeStorageBackend=new FfiConverterOptional(FfiConverterTypeStorageBackend);// FfiConverter for Array<ArrayBuffer> | undefined
|
|
5214
5705
|
const FfiConverterOptionalArrayArrayBuffer=new FfiConverterOptional(FfiConverterArrayArrayBuffer);// FfiConverter for Array<ExternalInputParser> | undefined
|
|
5215
|
-
const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<
|
|
5706
|
+
const FfiConverterOptionalArrayTypeExternalInputParser=new FfiConverterOptional(FfiConverterArrayTypeExternalInputParser);// FfiConverter for Array<CpfpInput>
|
|
5707
|
+
const FfiConverterArrayTypeCpfpInput=new FfiConverterArray(FfiConverterTypeCpfpInput);// FfiConverter for Array<InputType>
|
|
5216
5708
|
const FfiConverterArrayTypeInputType=new FfiConverterArray(FfiConverterTypeInputType);// FfiConverter for Array<PaymentDetailsFilter>
|
|
5217
5709
|
const FfiConverterArrayTypePaymentDetailsFilter=new FfiConverterArray(FfiConverterTypePaymentDetailsFilter);// FfiConverter for Array<PaymentStatus>
|
|
5218
5710
|
const FfiConverterArrayTypePaymentStatus=new FfiConverterArray(FfiConverterTypePaymentStatus);// FfiConverter for Array<PaymentType>
|
|
@@ -5236,5 +5728,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
|
|
|
5236
5728
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
5237
5729
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
5238
5730
|
const bindingsContractVersion=29;// Get the scaffolding contract version by calling the into the dylib
|
|
5239
|
-
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_connect_with_signing_only_signer()!==17952){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==50635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer()!==37791){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}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_signers()!==58595){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==40188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_session_store()!==24904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}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_func_new_rest_chain_service()!==23177){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}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()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package()!==23822){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package()!==60228){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package');}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_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_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}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()!==20026){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_cross_chain_routes()!==25164){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_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_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}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_publish_signed_lnurl_pay_package()!==48698){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package()!==59188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package');}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_refund_pending_conversions()!==24173){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}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_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_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key()!==28092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa()!==13755){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable()!==34935){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr()!==21395){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==39015){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote()!==63049){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==54380){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==53611){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==1815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==41995){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==7663){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==40463){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==22362){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==44945){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==15575){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==3082){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==33){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==33122){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==14601){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}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_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==32814){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==18330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==1967){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}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_account_number()!==6550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}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_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_session_store()!==32818){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}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_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}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_set_cross_chain_swap()!==31116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap()!==20172){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps()!==23493){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==44890){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()!==8492){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()!==54668){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()!==17237){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()!==35265){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()!==32789){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()!==18699){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()!==59591){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()!==30443){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}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_passkeyclient_new()!==51278){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_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_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer()!==27342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer');}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();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSigningSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBuildTransferPackageOptions,FfiConverterTypeBuildUnsignedLnurlPayPackageRequest,FfiConverterTypeBuildUnsignedTransferPackageRequest,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConnectWithSigningOnlySignerRequest,FfiConverterTypeContact,FfiConverterTypeConversion,FfiConverterTypeConversionAsset,FfiConverterTypeConversionChain,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionFilter,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionProvider,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionSide,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainRouteFilter,FfiConverterTypeCrossChainRoutePair,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSigningSigner,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayContext,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypePublishSignedLnurlPayPackageRequest,FfiConverterTypePublishSignedLnurlPayResponse,FfiConverterTypePublishSignedTransferPackageRequest,FfiConverterTypePublishSignedTransferPackageResponse,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignedTransferPackage,FfiConverterTypeSignerError,FfiConverterTypeSigningOnlyExternalSigners,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSourceAsset,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeStoredCrossChainSwap,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTransferSignature,FfiConverterTypeTransferTarget,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnsignedTransferPackage,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
|
|
5731
|
+
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_connect_with_signing_only_signer()!==17952){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer()!==50635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer()!==37791){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage()!==18116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_custom_storage');}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_signers()!==58595){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signers');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config()!==40188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_server_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_session_store()!==24904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage()!==56226){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_storage');}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_func_new_rest_chain_service()!==23177){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context()!==7027){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer()!==28762){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer');}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_address_txos()!==10702){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==53546){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()!==16866){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend()!==42521){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==13500){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()!==50885){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()!==19224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer()!==15257){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package()!==52999){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package()!==23822){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package()!==60228){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package');}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_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_claim_lightning_address_transfer()!==20680){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_lightning_address_transfer');}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()!==20026){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_cross_chain_routes()!==25164){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_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_optimize_leaves()!==39254){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves');}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_batch()!==59347){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch');}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_prepare_unilateral_exit()!==36492){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package()!==48698){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package()!==59188){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package');}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_refund_pending_conversions()!==11342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions');}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_batch()!==34563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit()!==23033){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit');}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_cpfpsigner_sign_psbt()!==20736){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key()!==26700){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa()!==17969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable()!==45907){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies()!==5296){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies()!==6089){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr()!==1766){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256()!==65429){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key()!==28092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa()!==13755){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable()!==34935){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr()!==21395){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key()!==38705){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf()!==39015){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote()!==63049){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key()!==54380){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge()!==53611){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message()!==1815){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend()!==62629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost()!==58732){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer()!==29829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim()!==17684){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive()!==25306){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_lightning_receive');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit()!==3348){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund()!==22709){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_start_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund()!==52719){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_static_deposit_refund');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice()!==39737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_spark_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction()!==12801){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_token_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim()!==53174){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_static_deposit_claim');}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_passkeyclient_check_availability()!==35189){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_check_availability');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey()!==32814){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels()!==35849){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_labels');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_register()!==27748){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_register');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in()!==42245){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyclient_sign_in');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_list()!==54877){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_list');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeylabels_store()!==58514){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeylabels_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==27806){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send()!==31673){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_after_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds()!==18550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_derive_seeds');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported()!==46331){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_is_supported');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey()!==61235){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_create_passkey');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association()!==18713){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_prfprovider_check_domain_association');}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_account_number()!==6550){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_account_number');}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_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_session_store()!==32818){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context()!==64829){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==20369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend()!==28545){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session()!==49546){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_get_session');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session()!==13629){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sessionstore_set_session');}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_apply_payment_update()!==8631){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_apply_payment_update');}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_set_cross_chain_swap()!==31116){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap()!==20172){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps()!==23493){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==44890){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()!==8492){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()!==54668){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()!==17237){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()!==35265){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()!==32789){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()!==18699){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()!==59591){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()!==30443){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores()!==51497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storagebackend_create_stores');}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_passkeyclient_new()!==51278){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_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_constructor_sdkbuilder_new_with_signer()!==28871){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer()!==27342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer');}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();uniffiCallbackInterfaceCpfpSigner.register();uniffiCallbackInterfaceExternalBreezSigner.register();uniffiCallbackInterfaceExternalSigningSigner.register();uniffiCallbackInterfaceExternalSparkSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfacePrfProvider.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceSessionStore.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAmountAdjustmentReason,FfiConverterTypeAssetFilter,FfiConverterTypeAuthorizeTransferRequest,FfiConverterTypeAutoOptimizationEvent,FfiConverterTypeBatchDestination,FfiConverterTypeBatchRecipient,FfiConverterTypeBatchTotal,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBuildTransferPackageOptions,FfiConverterTypeBuildUnsignedBatchPackageRequest,FfiConverterTypeBuildUnsignedLnurlPayPackageRequest,FfiConverterTypeBuildUnsignedTransferPackageRequest,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeChainServiceError,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeClaimTransferRequest,FfiConverterTypeConfig,FfiConverterTypeConfirmationStatus,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithPasskeyRequest,FfiConverterTypeConnectWithPasskeyResponse,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConnectWithSigningOnlySignerRequest,FfiConverterTypeContact,FfiConverterTypeConversion,FfiConverterTypeConversionAsset,FfiConverterTypeConversionChain,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionFilter,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionProvider,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionSide,FfiConverterTypeConversionStatus,FfiConverterTypeConversionType,FfiConverterTypeCpfpFundingKind,FfiConverterTypeCpfpInput,FfiConverterTypeCpfpSigner,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCreatePasskeyOutput,FfiConverterTypeCredentials,FfiConverterTypeCrossChainAddressDetails,FfiConverterTypeCrossChainAddressFamily,FfiConverterTypeCrossChainConfig,FfiConverterTypeCrossChainFeeMode,FfiConverterTypeCrossChainProvider,FfiConverterTypeCrossChainProviderContext,FfiConverterTypeCrossChainRouteFilter,FfiConverterTypeCrossChainRoutePair,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeDeriveSeedsOutput,FfiConverterTypeDeriveSeedsRequest,FfiConverterTypeDomainAssociation,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeErrorKind,FfiConverterTypeExitLeafSelection,FfiConverterTypeExternalBreezSigner,FfiConverterTypeExternalClaimLeafInput,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostDerivation,FfiConverterTypeExternalFrostJob,FfiConverterTypeExternalFrostShareResult,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalNewLeafKey,FfiConverterTypeExternalOperatorPackage,FfiConverterTypeExternalOperatorRecipient,FfiConverterTypeExternalPrepareClaimRequest,FfiConverterTypeExternalPrepareLightningReceiveRequest,FfiConverterTypeExternalPrepareStaticDepositClaimRequest,FfiConverterTypeExternalPrepareStaticDepositRequest,FfiConverterTypeExternalPrepareTokenTransactionRequest,FfiConverterTypeExternalPrepareTransferRequest,FfiConverterTypeExternalPreparedClaim,FfiConverterTypeExternalPreparedLightningReceive,FfiConverterTypeExternalPreparedStaticDeposit,FfiConverterTypeExternalPreparedStaticDepositClaim,FfiConverterTypeExternalPreparedTokenTransaction,FfiConverterTypeExternalPreparedTransfer,FfiConverterTypeExternalSignSparkInvoiceRequest,FfiConverterTypeExternalSignStaticDepositRefundRequest,FfiConverterTypeExternalSignedSparkInvoice,FfiConverterTypeExternalSigners,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalSigningSigner,FfiConverterTypeExternalSparkInvoiceKind,FfiConverterTypeExternalSparkSigner,FfiConverterTypeExternalStartStaticDepositRefundRequest,FfiConverterTypeExternalStartedStaticDepositRefund,FfiConverterTypeExternalTokenTransactionKind,FfiConverterTypeExternalTransferLeafInput,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeLeafOptimizationConfig,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayContext,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationMode,FfiConverterTypeOptimizationOutcome,FfiConverterTypeOptimizeLeavesRequest,FfiConverterTypeOptimizeLeavesResponse,FfiConverterTypeOutgoingChange,FfiConverterTypeOutspend,FfiConverterTypePasskeyAvailability,FfiConverterTypePasskeyClient,FfiConverterTypePasskeyConfig,FfiConverterTypePasskeyCredential,FfiConverterTypePasskeyError,FfiConverterTypePasskeyLabels,FfiConverterTypePasskeyProviderOptions,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentIdUpdate,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentObserverError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePerBranchFunding,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendBatchRequest,FfiConverterTypePrepareSendBatchResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypePrepareUnilateralExitRequest,FfiConverterTypePrepareUnilateralExitResponse,FfiConverterTypePrfProvider,FfiConverterTypePrfProviderError,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKey,FfiConverterTypePublicKeyBytes,FfiConverterTypePublishSignedLnurlPayPackageRequest,FfiConverterTypePublishSignedLnurlPayResponse,FfiConverterTypePublishSignedTransferPackageRequest,FfiConverterTypePublishSignedTransferPackageResponse,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRefundPendingConversionsResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRegisterRequest,FfiConverterTypeRegisterResponse,FfiConverterTypeRegisterWebhookRequest,FfiConverterTypeRegisterWebhookResponse,FfiConverterTypeResolvedBatchRecipient,FfiConverterTypeResolvedStores,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkContext,FfiConverterTypeSdkContextConfig,FfiConverterTypeSdkError,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendBatchRequest,FfiConverterTypeSendBatchResponse,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceConnectivityError,FfiConverterTypeServiceStatus,FfiConverterTypeSession,FfiConverterTypeSessionStore,FfiConverterTypeSessionStoreError,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSetupWalletRequest,FfiConverterTypeSignInRequest,FfiConverterTypeSignInResponse,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSignedTransferPackage,FfiConverterTypeSignerError,FfiConverterTypeSigningOnlyExternalSigners,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSourceAsset,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkConfig,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkMasterIdentityPublicKey,FfiConverterTypeSparkSigningOperator,FfiConverterTypeSparkSspConfig,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceActiveLabel,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStableBalanceToken,FfiConverterTypeStorage,FfiConverterTypeStorageBackend,FfiConverterTypeStorageError,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeStoredCrossChainSwap,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenOptimizationConfig,FfiConverterTypeTokenTransactionType,FfiConverterTypeTransferAuthorization,FfiConverterTypeTransferSignature,FfiConverterTypeTransferTarget,FfiConverterTypeTurnkeyConfig,FfiConverterTypeTurnkeyRetryConfig,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnilateralExitLeaf,FfiConverterTypeUnilateralExitRequest,FfiConverterTypeUnilateralExitResponse,FfiConverterTypeUnilateralExitTransaction,FfiConverterTypeUnilateralExitTxKind,FfiConverterTypeUnregisterWebhookRequest,FfiConverterTypeUnsignedTransferPackage,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeWalletSetup,FfiConverterTypeWebhook,FfiConverterTypeWebhookEventType,FfiConverterTypeu128}});
|
|
5240
5732
|
//# sourceMappingURL=breez_sdk_spark.js.map
|