@breeztech/breez-sdk-spark-react-native 0.10.0 → 0.11.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/README.md +16 -0
- package/android/proguard-rules.pro +4 -0
- package/cpp/generated/breez_sdk_spark.cpp +2535 -557
- package/cpp/generated/breez_sdk_spark.hpp +119 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +350 -16
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +349 -15
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +69 -17
- 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 +1900 -141
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +69 -17
- 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 +1900 -141
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/plugin/build/index.d.ts +5 -0
- package/plugin/build/index.js +2 -2
- package/plugin/build/withBinaryArtifacts.d.ts +1 -1
- package/plugin/build/withBinaryArtifacts.js +5 -7
- package/plugin/build/withIOS.d.ts +5 -1
- package/plugin/build/withIOS.js +14 -4
- package/src/generated/breez_sdk_spark-ffi.ts +161 -17
- package/src/generated/breez_sdk_spark.ts +7159 -4248
|
@@ -62,6 +62,18 @@ const uniffiCallbackInterfaceLogger={// Create the VTable using a series of clos
|
|
|
62
62
|
vtable:{log:(uniffiHandle,l)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeLogger.lift(uniffiHandle);return jsCallback.log(FfiConverterTypeLogEntry.lift(l));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCall(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*lowerString:*/FfiConverterString.lower);return uniffiResult;},uniffiFree:uniffiHandle=>{// Logger: this will throw a stale handle error if the handle isn't found.
|
|
63
63
|
FfiConverterTypeLogger.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(uniffiCallbackInterfaceLogger.vtable);}};// FfiConverter protocol for callback interfaces
|
|
64
64
|
const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
65
|
+
* Request to add a new contact.
|
|
66
|
+
*//**
|
|
67
|
+
* Generated factory for {@link AddContactRequest} record objects.
|
|
68
|
+
*/export const AddContactRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
69
|
+
* Create a frozen instance of {@link AddContactRequest}, with defaults specified
|
|
70
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
71
|
+
*/create,/**
|
|
72
|
+
* Create a frozen instance of {@link AddContactRequest}, with defaults specified
|
|
73
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
74
|
+
*/new:create,/**
|
|
75
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
76
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeAddContactRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier);}}return new FFIConverter();})();/**
|
|
65
77
|
* Payload of the AES success action, as received from the LNURL endpoint
|
|
66
78
|
*
|
|
67
79
|
* See [`AesSuccessActionDataDecrypted`] for a similar wrapper containing the decrypted payload
|
|
@@ -356,6 +368,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
356
368
|
*/new:create,/**
|
|
357
369
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
358
370
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConnectWithSignerRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{config:FfiConverterTypeConfig.read(from),signer:FfiConverterTypeExternalSigner.read(from),storageDir:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeConfig.write(value.config,into);FfiConverterTypeExternalSigner.write(value.signer,into);FfiConverterString.write(value.storageDir,into);}allocationSize(value){return FfiConverterTypeConfig.allocationSize(value.config)+FfiConverterTypeExternalSigner.allocationSize(value.signer)+FfiConverterString.allocationSize(value.storageDir);}}return new FFIConverter();})();/**
|
|
371
|
+
* A contact entry containing a name and payment identifier.
|
|
372
|
+
*//**
|
|
373
|
+
* Generated factory for {@link Contact} record objects.
|
|
374
|
+
*/export const Contact=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
375
|
+
* Create a frozen instance of {@link Contact}, with defaults specified
|
|
376
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
377
|
+
*/create,/**
|
|
378
|
+
* Create a frozen instance of {@link Contact}, with defaults specified
|
|
379
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
380
|
+
*/new:create,/**
|
|
381
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
382
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeContact=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from),createdAt:FfiConverterUInt64.read(from),updatedAt:FfiConverterUInt64.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);FfiConverterUInt64.write(value.createdAt,into);FfiConverterUInt64.write(value.updatedAt,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier)+FfiConverterUInt64.allocationSize(value.createdAt)+FfiConverterUInt64.allocationSize(value.updatedAt);}}return new FFIConverter();})();/**
|
|
359
383
|
* Outlines the steps involved in a conversion
|
|
360
384
|
*//**
|
|
361
385
|
* Generated factory for {@link ConversionDetails} record objects.
|
|
@@ -832,6 +856,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
832
856
|
*/new:create,/**
|
|
833
857
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
834
858
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLightningAddressInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{description:FfiConverterString.read(from),lightningAddress:FfiConverterString.read(from),lnurl:FfiConverterTypeLnurlInfo.read(from),username:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.description,into);FfiConverterString.write(value.lightningAddress,into);FfiConverterTypeLnurlInfo.write(value.lnurl,into);FfiConverterString.write(value.username,into);}allocationSize(value){return FfiConverterString.allocationSize(value.description)+FfiConverterString.allocationSize(value.lightningAddress)+FfiConverterTypeLnurlInfo.allocationSize(value.lnurl)+FfiConverterString.allocationSize(value.username);}}return new FFIConverter();})();/**
|
|
859
|
+
* Request to list contacts with optional pagination.
|
|
860
|
+
*//**
|
|
861
|
+
* Generated factory for {@link ListContactsRequest} record objects.
|
|
862
|
+
*/export const ListContactsRequest=(()=>{const defaults=()=>({offset:undefined,limit:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
863
|
+
* Create a frozen instance of {@link ListContactsRequest}, with defaults specified
|
|
864
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
865
|
+
*/create,/**
|
|
866
|
+
* Create a frozen instance of {@link ListContactsRequest}, with defaults specified
|
|
867
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
868
|
+
*/new:create,/**
|
|
869
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
870
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeListContactsRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{offset:FfiConverterOptionalUInt32.read(from),limit:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterOptionalUInt32.write(value.offset,into);FfiConverterOptionalUInt32.write(value.limit,into);}allocationSize(value){return FfiConverterOptionalUInt32.allocationSize(value.offset)+FfiConverterOptionalUInt32.allocationSize(value.limit);}}return new FFIConverter();})();/**
|
|
835
871
|
* Response from listing fiat currencies
|
|
836
872
|
*//**
|
|
837
873
|
* Generated factory for {@link ListFiatCurrenciesResponse} record objects.
|
|
@@ -1098,6 +1134,22 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1098
1134
|
*/new:create,/**
|
|
1099
1135
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1100
1136
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeMintIssuerTokenRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{amount:FfiConverterTypeu128.read(from)};}write(value,into){FfiConverterTypeu128.write(value.amount,into);}allocationSize(value){return FfiConverterTypeu128.allocationSize(value.amount);}}return new FFIConverter();})();/**
|
|
1137
|
+
* Configuration for Nostr relay connections used in `Passkey`.
|
|
1138
|
+
*
|
|
1139
|
+
* Relay URLs are managed internally by the client:
|
|
1140
|
+
* - Public relays are always included
|
|
1141
|
+
* - Breez relay is added when `breez_api_key` is provided (enables NIP-42 auth)
|
|
1142
|
+
*//**
|
|
1143
|
+
* Generated factory for {@link NostrRelayConfig} record objects.
|
|
1144
|
+
*/export const NostrRelayConfig=(()=>{const defaults=()=>({breezApiKey:undefined,timeoutSecs:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1145
|
+
* Create a frozen instance of {@link NostrRelayConfig}, with defaults specified
|
|
1146
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1147
|
+
*/create,/**
|
|
1148
|
+
* Create a frozen instance of {@link NostrRelayConfig}, with defaults specified
|
|
1149
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1150
|
+
*/new:create,/**
|
|
1151
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1152
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeNostrRelayConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{breezApiKey:FfiConverterOptionalString.read(from),timeoutSecs:FfiConverterOptionalUInt32.read(from)};}write(value,into){FfiConverterOptionalString.write(value.breezApiKey,into);FfiConverterOptionalUInt32.write(value.timeoutSecs,into);}allocationSize(value){return FfiConverterOptionalString.allocationSize(value.breezApiKey)+FfiConverterOptionalUInt32.allocationSize(value.timeoutSecs);}}return new FFIConverter();})();/**
|
|
1101
1153
|
* Generated factory for {@link OptimizationConfig} record objects.
|
|
1102
1154
|
*/export const OptimizationConfig=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1103
1155
|
* Create a frozen instance of {@link OptimizationConfig}, with defaults specified
|
|
@@ -1645,6 +1697,18 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1645
1697
|
*/new:create,/**
|
|
1646
1698
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1647
1699
|
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUnversionedRecordChange=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterTypeRecordId.read(from),schemaVersion:FfiConverterString.read(from),updatedFields:FfiConverterMapStringString.read(from)};}write(value,into){FfiConverterTypeRecordId.write(value.id,into);FfiConverterString.write(value.schemaVersion,into);FfiConverterMapStringString.write(value.updatedFields,into);}allocationSize(value){return FfiConverterTypeRecordId.allocationSize(value.id)+FfiConverterString.allocationSize(value.schemaVersion)+FfiConverterMapStringString.allocationSize(value.updatedFields);}}return new FFIConverter();})();/**
|
|
1700
|
+
* Request to update an existing contact.
|
|
1701
|
+
*//**
|
|
1702
|
+
* Generated factory for {@link UpdateContactRequest} record objects.
|
|
1703
|
+
*/export const UpdateContactRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1704
|
+
* Create a frozen instance of {@link UpdateContactRequest}, with defaults specified
|
|
1705
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1706
|
+
*/create,/**
|
|
1707
|
+
* Create a frozen instance of {@link UpdateContactRequest}, with defaults specified
|
|
1708
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1709
|
+
*/new:create,/**
|
|
1710
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1711
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUpdateContactRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{id:FfiConverterString.read(from),name:FfiConverterString.read(from),paymentIdentifier:FfiConverterString.read(from)};}write(value,into){FfiConverterString.write(value.id,into);FfiConverterString.write(value.name,into);FfiConverterString.write(value.paymentIdentifier,into);}allocationSize(value){return FfiConverterString.allocationSize(value.id)+FfiConverterString.allocationSize(value.name)+FfiConverterString.allocationSize(value.paymentIdentifier);}}return new FFIConverter();})();/**
|
|
1648
1712
|
* Generated factory for {@link UpdateUserSettingsRequest} record objects.
|
|
1649
1713
|
*/export const UpdateUserSettingsRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1650
1714
|
* Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
|
|
@@ -1684,7 +1748,21 @@ const FfiConverterTypeLogger=new FfiConverterCallback();/**
|
|
|
1684
1748
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1685
1749
|
*/new:create,/**
|
|
1686
1750
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1687
|
-
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUtxo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),status:FfiConverterTypeTxStatus.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.value,into);FfiConverterTypeTxStatus.write(value.status,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.value)+FfiConverterTypeTxStatus.allocationSize(value.status);}}return new FFIConverter();})()
|
|
1751
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeUtxo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{txid:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),value:FfiConverterUInt64.read(from),status:FfiConverterTypeTxStatus.read(from)};}write(value,into){FfiConverterString.write(value.txid,into);FfiConverterUInt32.write(value.vout,into);FfiConverterUInt64.write(value.value,into);FfiConverterTypeTxStatus.write(value.status,into);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout)+FfiConverterUInt64.allocationSize(value.value)+FfiConverterTypeTxStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
|
|
1752
|
+
* A wallet derived from a passkey.
|
|
1753
|
+
*
|
|
1754
|
+
* Contains the derived seed and the wallet name used during derivation.
|
|
1755
|
+
*//**
|
|
1756
|
+
* Generated factory for {@link Wallet} record objects.
|
|
1757
|
+
*/export const Wallet=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({/**
|
|
1758
|
+
* Create a frozen instance of {@link Wallet}, with defaults specified
|
|
1759
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1760
|
+
*/create,/**
|
|
1761
|
+
* Create a frozen instance of {@link Wallet}, with defaults specified
|
|
1762
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1763
|
+
*/new:create,/**
|
|
1764
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1765
|
+
*/defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeWallet=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{read(from){return{seed:FfiConverterTypeSeed.read(from),name:FfiConverterString.read(from)};}write(value,into){FfiConverterTypeSeed.write(value.seed,into);FfiConverterString.write(value.name,into);}allocationSize(value){return FfiConverterTypeSeed.allocationSize(value.seed)+FfiConverterString.allocationSize(value.name);}}return new FFIConverter();})();const stringConverter={stringToBytes:s=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(s,status)),bytesToString:ab=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(ab,status)),stringByteLength:s=>uniffiCaller.rustCall(status=>nativeModule().ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(s,status))};const FfiConverterString=uniffiCreateFfiConverterString(stringConverter);/**
|
|
1688
1766
|
* Typealias from the type name used in the UDL file to the custom type. This
|
|
1689
1767
|
* is needed because the UDL type name is used in function/method signatures.
|
|
1690
1768
|
*/// FfiConverter for U128
|
|
@@ -1956,7 +2034,100 @@ export let OptimizationEvent_Tags=/*#__PURE__*/function(OptimizationEvent_Tags){
|
|
|
1956
2034
|
* This field is private and should not be used, use `tag` instead.
|
|
1957
2035
|
*/[uniffiTypeNameSymbol]='OptimizationEvent';tag=OptimizationEvent_Tags.Skipped;constructor(){super('OptimizationEvent','Skipped');}static new(){return new Skipped_();}static instanceOf(obj){return obj.tag===OptimizationEvent_Tags.Skipped;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='OptimizationEvent';}return Object.freeze({instanceOf,Started:Started_,RoundCompleted:RoundCompleted_,Completed:Completed_,Cancelled:Cancelled_,Failed:Failed_,Skipped:Skipped_});})();// FfiConverter for enum OptimizationEvent
|
|
1958
2036
|
const FfiConverterTypeOptimizationEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new OptimizationEvent.Started({totalRounds:FfiConverterUInt32.read(from)});case 2:return new OptimizationEvent.RoundCompleted({currentRound:FfiConverterUInt32.read(from),totalRounds:FfiConverterUInt32.read(from)});case 3:return new OptimizationEvent.Completed();case 4:return new OptimizationEvent.Cancelled();case 5:return new OptimizationEvent.Failed({error:FfiConverterString.read(from)});case 6:return new OptimizationEvent.Skipped();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case OptimizationEvent_Tags.Started:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterUInt32.write(inner.totalRounds,into);return;}case OptimizationEvent_Tags.RoundCompleted:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt32.write(inner.currentRound,into);FfiConverterUInt32.write(inner.totalRounds,into);return;}case OptimizationEvent_Tags.Completed:{ordinalConverter.write(3,into);return;}case OptimizationEvent_Tags.Cancelled:{ordinalConverter.write(4,into);return;}case OptimizationEvent_Tags.Failed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner.error,into);return;}case OptimizationEvent_Tags.Skipped:{ordinalConverter.write(6,into);return;}default:// Throwing from here means that OptimizationEvent_Tags hasn't matched an ordinal.
|
|
1959
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case OptimizationEvent_Tags.Started:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case OptimizationEvent_Tags.RoundCompleted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.currentRound);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case OptimizationEvent_Tags.Completed:{return ordinalConverter.allocationSize(3);}case OptimizationEvent_Tags.Cancelled:{return ordinalConverter.allocationSize(4);}case OptimizationEvent_Tags.Failed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.error);return size;}case OptimizationEvent_Tags.Skipped:{return ordinalConverter.allocationSize(6);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();//
|
|
2037
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case OptimizationEvent_Tags.Started:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case OptimizationEvent_Tags.RoundCompleted:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt32.allocationSize(inner.currentRound);size+=FfiConverterUInt32.allocationSize(inner.totalRounds);return size;}case OptimizationEvent_Tags.Completed:{return ordinalConverter.allocationSize(3);}case OptimizationEvent_Tags.Cancelled:{return ordinalConverter.allocationSize(4);}case OptimizationEvent_Tags.Failed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner.error);return size;}case OptimizationEvent_Tags.Skipped:{return ordinalConverter.allocationSize(6);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: PasskeyError
|
|
2038
|
+
// Enum: PasskeyError
|
|
2039
|
+
export let PasskeyError_Tags=/*#__PURE__*/function(PasskeyError_Tags){PasskeyError_Tags["PrfError"]="PrfError";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;}({});/**
|
|
2040
|
+
* Error type for passkey operations.
|
|
2041
|
+
*/export const PasskeyError=(()=>{/**
|
|
2042
|
+
* Passkey PRF provider error
|
|
2043
|
+
*/class PrfError_ extends UniffiError{/**
|
|
2044
|
+
* @private
|
|
2045
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2046
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.PrfError;constructor(v0){super('PasskeyError','PrfError');this.inner=Object.freeze([v0]);}static new(v0){return new PrfError_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.PrfError;}static hasInner(obj){return PrfError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2047
|
+
* Nostr relay connection failed
|
|
2048
|
+
*/class RelayConnectionFailed_ extends UniffiError{/**
|
|
2049
|
+
* @private
|
|
2050
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2051
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.RelayConnectionFailed;constructor(v0){super('PasskeyError','RelayConnectionFailed');this.inner=Object.freeze([v0]);}static new(v0){return new RelayConnectionFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.RelayConnectionFailed;}static hasInner(obj){return RelayConnectionFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2052
|
+
* Failed to publish to Nostr
|
|
2053
|
+
*/class NostrWriteFailed_ extends UniffiError{/**
|
|
2054
|
+
* @private
|
|
2055
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2056
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.NostrWriteFailed;constructor(v0){super('PasskeyError','NostrWriteFailed');this.inner=Object.freeze([v0]);}static new(v0){return new NostrWriteFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.NostrWriteFailed;}static hasInner(obj){return NostrWriteFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2057
|
+
* Failed to query from Nostr
|
|
2058
|
+
*/class NostrReadFailed_ extends UniffiError{/**
|
|
2059
|
+
* @private
|
|
2060
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2061
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.NostrReadFailed;constructor(v0){super('PasskeyError','NostrReadFailed');this.inner=Object.freeze([v0]);}static new(v0){return new NostrReadFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.NostrReadFailed;}static hasInner(obj){return NostrReadFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2062
|
+
* Key derivation error
|
|
2063
|
+
*/class KeyDerivationError_ extends UniffiError{/**
|
|
2064
|
+
* @private
|
|
2065
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2066
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.KeyDerivationError;constructor(v0){super('PasskeyError','KeyDerivationError');this.inner=Object.freeze([v0]);}static new(v0){return new KeyDerivationError_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.KeyDerivationError;}static hasInner(obj){return KeyDerivationError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2067
|
+
* Invalid PRF output (wrong size, etc.)
|
|
2068
|
+
*/class InvalidPrfOutput_ extends UniffiError{/**
|
|
2069
|
+
* @private
|
|
2070
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2071
|
+
*/[uniffiTypeNameSymbol]='PasskeyError';tag=PasskeyError_Tags.InvalidPrfOutput;constructor(v0){super('PasskeyError','InvalidPrfOutput');this.inner=Object.freeze([v0]);}static new(v0){return new InvalidPrfOutput_(v0);}static instanceOf(obj){return obj.tag===PasskeyError_Tags.InvalidPrfOutput;}static hasInner(obj){return InvalidPrfOutput_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2072
|
+
* BIP39 mnemonic generation error
|
|
2073
|
+
*/class MnemonicError_ extends UniffiError{/**
|
|
2074
|
+
* @private
|
|
2075
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2076
|
+
*/[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;}}/**
|
|
2077
|
+
* Invalid salt input
|
|
2078
|
+
*/class InvalidSalt_ extends UniffiError{/**
|
|
2079
|
+
* @private
|
|
2080
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2081
|
+
*/[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;}}/**
|
|
2082
|
+
* Generic error
|
|
2083
|
+
*/class Generic_ extends UniffiError{/**
|
|
2084
|
+
* @private
|
|
2085
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2086
|
+
*/[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,PrfError:PrfError_,RelayConnectionFailed:RelayConnectionFailed_,NostrWriteFailed:NostrWriteFailed_,NostrReadFailed:NostrReadFailed_,KeyDerivationError:KeyDerivationError_,InvalidPrfOutput:InvalidPrfOutput_,MnemonicError:MnemonicError_,InvalidSalt:InvalidSalt_,Generic:Generic_});})();/**
|
|
2087
|
+
* Error type for passkey operations.
|
|
2088
|
+
*/// FfiConverter for enum PasskeyError
|
|
2089
|
+
const FfiConverterTypePasskeyError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyError.PrfError(FfiConverterTypePasskeyPrfError.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.PrfError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterTypePasskeyPrfError.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.Generic:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PasskeyError_Tags hasn't matched an ordinal.
|
|
2090
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyError_Tags.PrfError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterTypePasskeyPrfError.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.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Error type: PasskeyPrfError
|
|
2091
|
+
// Enum: PasskeyPrfError
|
|
2092
|
+
export let PasskeyPrfError_Tags=/*#__PURE__*/function(PasskeyPrfError_Tags){PasskeyPrfError_Tags["PrfNotSupported"]="PrfNotSupported";PasskeyPrfError_Tags["UserCancelled"]="UserCancelled";PasskeyPrfError_Tags["CredentialNotFound"]="CredentialNotFound";PasskeyPrfError_Tags["AuthenticationFailed"]="AuthenticationFailed";PasskeyPrfError_Tags["PrfEvaluationFailed"]="PrfEvaluationFailed";PasskeyPrfError_Tags["Generic"]="Generic";return PasskeyPrfError_Tags;}({});/**
|
|
2093
|
+
* Error type for passkey PRF operations.
|
|
2094
|
+
* Platforms implement `PasskeyPrfProvider` and return this error type.
|
|
2095
|
+
*/export const PasskeyPrfError=(()=>{/**
|
|
2096
|
+
* PRF extension is not supported by the authenticator
|
|
2097
|
+
*/class PrfNotSupported_ extends UniffiError{/**
|
|
2098
|
+
* @private
|
|
2099
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2100
|
+
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.PrfNotSupported;constructor(){super('PasskeyPrfError','PrfNotSupported');}static new(){return new PrfNotSupported_();}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.PrfNotSupported;}static hasInner(obj){return false;}}/**
|
|
2101
|
+
* User cancelled the authentication
|
|
2102
|
+
*/class UserCancelled_ extends UniffiError{/**
|
|
2103
|
+
* @private
|
|
2104
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2105
|
+
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.UserCancelled;constructor(){super('PasskeyPrfError','UserCancelled');}static new(){return new UserCancelled_();}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.UserCancelled;}static hasInner(obj){return false;}}/**
|
|
2106
|
+
* No credential found
|
|
2107
|
+
*/class CredentialNotFound_ extends UniffiError{/**
|
|
2108
|
+
* @private
|
|
2109
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2110
|
+
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.CredentialNotFound;constructor(){super('PasskeyPrfError','CredentialNotFound');}static new(){return new CredentialNotFound_();}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.CredentialNotFound;}static hasInner(obj){return false;}}/**
|
|
2111
|
+
* Authentication failed
|
|
2112
|
+
*/class AuthenticationFailed_ extends UniffiError{/**
|
|
2113
|
+
* @private
|
|
2114
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2115
|
+
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.AuthenticationFailed;constructor(v0){super('PasskeyPrfError','AuthenticationFailed');this.inner=Object.freeze([v0]);}static new(v0){return new AuthenticationFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.AuthenticationFailed;}static hasInner(obj){return AuthenticationFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2116
|
+
* PRF evaluation failed
|
|
2117
|
+
*/class PrfEvaluationFailed_ extends UniffiError{/**
|
|
2118
|
+
* @private
|
|
2119
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2120
|
+
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.PrfEvaluationFailed;constructor(v0){super('PasskeyPrfError','PrfEvaluationFailed');this.inner=Object.freeze([v0]);}static new(v0){return new PrfEvaluationFailed_(v0);}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.PrfEvaluationFailed;}static hasInner(obj){return PrfEvaluationFailed_.instanceOf(obj);}static getInner(obj){return obj.inner;}}/**
|
|
2121
|
+
* Generic error
|
|
2122
|
+
*/class Generic_ extends UniffiError{/**
|
|
2123
|
+
* @private
|
|
2124
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2125
|
+
*/[uniffiTypeNameSymbol]='PasskeyPrfError';tag=PasskeyPrfError_Tags.Generic;constructor(v0){super('PasskeyPrfError','Generic');this.inner=Object.freeze([v0]);}static new(v0){return new Generic_(v0);}static instanceOf(obj){return obj.tag===PasskeyPrfError_Tags.Generic;}static hasInner(obj){return Generic_.instanceOf(obj);}static getInner(obj){return obj.inner;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='PasskeyPrfError';}return Object.freeze({instanceOf,PrfNotSupported:PrfNotSupported_,UserCancelled:UserCancelled_,CredentialNotFound:CredentialNotFound_,AuthenticationFailed:AuthenticationFailed_,PrfEvaluationFailed:PrfEvaluationFailed_,Generic:Generic_});})();/**
|
|
2126
|
+
* Error type for passkey PRF operations.
|
|
2127
|
+
* Platforms implement `PasskeyPrfProvider` and return this error type.
|
|
2128
|
+
*/// FfiConverter for enum PasskeyPrfError
|
|
2129
|
+
const FfiConverterTypePasskeyPrfError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new PasskeyPrfError.PrfNotSupported();case 2:return new PasskeyPrfError.UserCancelled();case 3:return new PasskeyPrfError.CredentialNotFound();case 4:return new PasskeyPrfError.AuthenticationFailed(FfiConverterString.read(from));case 5:return new PasskeyPrfError.PrfEvaluationFailed(FfiConverterString.read(from));case 6:return new PasskeyPrfError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case PasskeyPrfError_Tags.PrfNotSupported:{ordinalConverter.write(1,into);return;}case PasskeyPrfError_Tags.UserCancelled:{ordinalConverter.write(2,into);return;}case PasskeyPrfError_Tags.CredentialNotFound:{ordinalConverter.write(3,into);return;}case PasskeyPrfError_Tags.AuthenticationFailed:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyPrfError_Tags.PrfEvaluationFailed:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case PasskeyPrfError_Tags.Generic:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that PasskeyPrfError_Tags hasn't matched an ordinal.
|
|
2130
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PasskeyPrfError_Tags.PrfNotSupported:{return ordinalConverter.allocationSize(1);}case PasskeyPrfError_Tags.UserCancelled:{return ordinalConverter.allocationSize(2);}case PasskeyPrfError_Tags.CredentialNotFound:{return ordinalConverter.allocationSize(3);}case PasskeyPrfError_Tags.AuthenticationFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyPrfError_Tags.PrfEvaluationFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case PasskeyPrfError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentDetails
|
|
1960
2131
|
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{/**
|
|
1961
2132
|
* @private
|
|
1962
2133
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -2091,7 +2262,7 @@ export let SdkError_Tags=/*#__PURE__*/function(SdkError_Tags){SdkError_Tags["Spa
|
|
|
2091
2262
|
*/// FfiConverter for enum SdkError
|
|
2092
2263
|
const FfiConverterTypeSdkError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkError.SparkError(FfiConverterString.read(from));case 2:return new SdkError.InsufficientFunds();case 3:return new SdkError.InvalidUuid(FfiConverterString.read(from));case 4:return new SdkError.InvalidInput(FfiConverterString.read(from));case 5:return new SdkError.NetworkError(FfiConverterString.read(from));case 6:return new SdkError.StorageError(FfiConverterString.read(from));case 7:return new SdkError.ChainServiceError(FfiConverterString.read(from));case 8:return new SdkError.MaxDepositClaimFeeExceeded({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from),maxFee:FfiConverterOptionalTypeFee.read(from),requiredFeeSats:FfiConverterUInt64.read(from),requiredFeeRateSatPerVbyte:FfiConverterUInt64.read(from)});case 9:return new SdkError.MissingUtxo({tx:FfiConverterString.read(from),vout:FfiConverterUInt32.read(from)});case 10:return new SdkError.LnurlError(FfiConverterString.read(from));case 11:return new SdkError.Signer(FfiConverterString.read(from));case 12:return new SdkError.Generic(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkError_Tags.SparkError:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InsufficientFunds:{ordinalConverter.write(2,into);return;}case SdkError_Tags.InvalidUuid:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.InvalidInput:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.NetworkError:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.StorageError:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.ChainServiceError:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);FfiConverterOptionalTypeFee.write(inner.maxFee,into);FfiConverterUInt64.write(inner.requiredFeeSats,into);FfiConverterUInt64.write(inner.requiredFeeRateSatPerVbyte,into);return;}case SdkError_Tags.MissingUtxo:{ordinalConverter.write(9,into);const inner=value.inner;FfiConverterString.write(inner.tx,into);FfiConverterUInt32.write(inner.vout,into);return;}case SdkError_Tags.LnurlError:{ordinalConverter.write(10,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Signer:{ordinalConverter.write(11,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case SdkError_Tags.Generic:{ordinalConverter.write(12,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that SdkError_Tags hasn't matched an ordinal.
|
|
2093
2264
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkError_Tags.SparkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InsufficientFunds:{return ordinalConverter.allocationSize(2);}case SdkError_Tags.InvalidUuid:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.InvalidInput:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.NetworkError:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.StorageError:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.ChainServiceError:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.MaxDepositClaimFeeExceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);size+=FfiConverterOptionalTypeFee.allocationSize(inner.maxFee);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeSats);size+=FfiConverterUInt64.allocationSize(inner.requiredFeeRateSatPerVbyte);return size;}case SdkError_Tags.MissingUtxo:{const inner=value.inner;let size=ordinalConverter.allocationSize(9);size+=FfiConverterString.allocationSize(inner.tx);size+=FfiConverterUInt32.allocationSize(inner.vout);return size;}case SdkError_Tags.LnurlError:{const inner=value.inner;let size=ordinalConverter.allocationSize(10);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Signer:{const inner=value.inner;let size=ordinalConverter.allocationSize(11);size+=FfiConverterString.allocationSize(inner[0]);return size;}case SdkError_Tags.Generic:{const inner=value.inner;let size=ordinalConverter.allocationSize(12);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: SdkEvent
|
|
2094
|
-
export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["Optimization"]="Optimization";return SdkEvent_Tags;}({});/**
|
|
2265
|
+
export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Synced"]="Synced";SdkEvent_Tags["UnclaimedDeposits"]="UnclaimedDeposits";SdkEvent_Tags["ClaimedDeposits"]="ClaimedDeposits";SdkEvent_Tags["PaymentSucceeded"]="PaymentSucceeded";SdkEvent_Tags["PaymentPending"]="PaymentPending";SdkEvent_Tags["PaymentFailed"]="PaymentFailed";SdkEvent_Tags["Optimization"]="Optimization";SdkEvent_Tags["LightningAddressChanged"]="LightningAddressChanged";return SdkEvent_Tags;}({});/**
|
|
2095
2266
|
* Events emitted by the SDK
|
|
2096
2267
|
*/export const SdkEvent=(()=>{/**
|
|
2097
2268
|
* Emitted when the wallet has been synchronized with the network
|
|
@@ -2118,11 +2289,14 @@ export let SdkEvent_Tags=/*#__PURE__*/function(SdkEvent_Tags){SdkEvent_Tags["Syn
|
|
|
2118
2289
|
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.PaymentFailed;constructor(inner){super('SdkEvent','PaymentFailed');this.inner=Object.freeze(inner);}static new(inner){return new PaymentFailed_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.PaymentFailed;}}class Optimization_ extends UniffiEnum{/**
|
|
2119
2290
|
* @private
|
|
2120
2291
|
* This field is private and should not be used, use `tag` instead.
|
|
2121
|
-
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.Optimization;constructor(inner){super('SdkEvent','Optimization');this.inner=Object.freeze(inner);}static new(inner){return new Optimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.Optimization;}}
|
|
2292
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.Optimization;constructor(inner){super('SdkEvent','Optimization');this.inner=Object.freeze(inner);}static new(inner){return new Optimization_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.Optimization;}}class LightningAddressChanged_ extends UniffiEnum{/**
|
|
2293
|
+
* @private
|
|
2294
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2295
|
+
*/[uniffiTypeNameSymbol]='SdkEvent';tag=SdkEvent_Tags.LightningAddressChanged;constructor(inner){super('SdkEvent','LightningAddressChanged');this.inner=Object.freeze(inner);}static new(inner){return new LightningAddressChanged_(inner);}static instanceOf(obj){return obj.tag===SdkEvent_Tags.LightningAddressChanged;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='SdkEvent';}return Object.freeze({instanceOf,Synced:Synced_,UnclaimedDeposits:UnclaimedDeposits_,ClaimedDeposits:ClaimedDeposits_,PaymentSucceeded:PaymentSucceeded_,PaymentPending:PaymentPending_,PaymentFailed:PaymentFailed_,Optimization:Optimization_,LightningAddressChanged:LightningAddressChanged_});})();/**
|
|
2122
2296
|
* Events emitted by the SDK
|
|
2123
2297
|
*/// FfiConverter for enum SdkEvent
|
|
2124
|
-
const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.Optimization({optimizationEvent:FfiConverterTypeOptimizationEvent.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.Optimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeOptimizationEvent.write(inner.optimizationEvent,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
|
|
2125
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.Optimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
|
|
2298
|
+
const FfiConverterTypeSdkEvent=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new SdkEvent.Synced();case 2:return new SdkEvent.UnclaimedDeposits({unclaimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 3:return new SdkEvent.ClaimedDeposits({claimedDeposits:FfiConverterArrayTypeDepositInfo.read(from)});case 4:return new SdkEvent.PaymentSucceeded({payment:FfiConverterTypePayment.read(from)});case 5:return new SdkEvent.PaymentPending({payment:FfiConverterTypePayment.read(from)});case 6:return new SdkEvent.PaymentFailed({payment:FfiConverterTypePayment.read(from)});case 7:return new SdkEvent.Optimization({optimizationEvent:FfiConverterTypeOptimizationEvent.read(from)});case 8:return new SdkEvent.LightningAddressChanged({lightningAddress:FfiConverterOptionalTypeLightningAddressInfo.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case SdkEvent_Tags.Synced:{ordinalConverter.write(1,into);return;}case SdkEvent_Tags.UnclaimedDeposits:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits,into);return;}case SdkEvent_Tags.ClaimedDeposits:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits,into);return;}case SdkEvent_Tags.PaymentSucceeded:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentPending:{ordinalConverter.write(5,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.PaymentFailed:{ordinalConverter.write(6,into);const inner=value.inner;FfiConverterTypePayment.write(inner.payment,into);return;}case SdkEvent_Tags.Optimization:{ordinalConverter.write(7,into);const inner=value.inner;FfiConverterTypeOptimizationEvent.write(inner.optimizationEvent,into);return;}case SdkEvent_Tags.LightningAddressChanged:{ordinalConverter.write(8,into);const inner=value.inner;FfiConverterOptionalTypeLightningAddressInfo.write(inner.lightningAddress,into);return;}default:// Throwing from here means that SdkEvent_Tags hasn't matched an ordinal.
|
|
2299
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case SdkEvent_Tags.Synced:{return ordinalConverter.allocationSize(1);}case SdkEvent_Tags.UnclaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.unclaimedDeposits);return size;}case SdkEvent_Tags.ClaimedDeposits:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterArrayTypeDepositInfo.allocationSize(inner.claimedDeposits);return size;}case SdkEvent_Tags.PaymentSucceeded:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentPending:{const inner=value.inner;let size=ordinalConverter.allocationSize(5);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.PaymentFailed:{const inner=value.inner;let size=ordinalConverter.allocationSize(6);size+=FfiConverterTypePayment.allocationSize(inner.payment);return size;}case SdkEvent_Tags.Optimization:{const inner=value.inner;let size=ordinalConverter.allocationSize(7);size+=FfiConverterTypeOptimizationEvent.allocationSize(inner.optimizationEvent);return size;}case SdkEvent_Tags.LightningAddressChanged:{const inner=value.inner;let size=ordinalConverter.allocationSize(8);size+=FfiConverterOptionalTypeLightningAddressInfo.allocationSize(inner.lightningAddress);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: Seed
|
|
2126
2300
|
export let Seed_Tags=/*#__PURE__*/function(Seed_Tags){Seed_Tags["Mnemonic"]="Mnemonic";Seed_Tags["Entropy"]="Entropy";return Seed_Tags;}({});/**
|
|
2127
2301
|
* Represents the seed for wallet generation, either as a mnemonic phrase with an optional
|
|
2128
2302
|
* passphrase or as raw entropy bytes.
|
|
@@ -2251,7 +2425,7 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
2251
2425
|
* The HTLC has been returned to the sender due to expiry
|
|
2252
2426
|
*/SparkHtlcStatus[SparkHtlcStatus["Returned"]=2]="Returned";return SparkHtlcStatus;}({});const FfiConverterTypeSparkHtlcStatus=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return SparkHtlcStatus.WaitingForPreimage;case 2:return SparkHtlcStatus.PreimageShared;case 3:return SparkHtlcStatus.Returned;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case SparkHtlcStatus.WaitingForPreimage:return ordinalConverter.write(1,into);case SparkHtlcStatus.PreimageShared:return ordinalConverter.write(2,into);case SparkHtlcStatus.Returned:return ordinalConverter.write(3,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: StorageError
|
|
2253
2427
|
// Enum: StorageError
|
|
2254
|
-
export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageError_Tags["Connection"]="Connection";StorageError_Tags["Implementation"]="Implementation";StorageError_Tags["InitializationError"]="InitializationError";StorageError_Tags["Serialization"]="Serialization";return StorageError_Tags;}({});/**
|
|
2428
|
+
export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageError_Tags["Connection"]="Connection";StorageError_Tags["Implementation"]="Implementation";StorageError_Tags["InitializationError"]="InitializationError";StorageError_Tags["Serialization"]="Serialization";StorageError_Tags["NotFound"]="NotFound";return StorageError_Tags;}({});/**
|
|
2255
2429
|
* Errors that can occur during storage operations
|
|
2256
2430
|
*/export const StorageError=(()=>{/**
|
|
2257
2431
|
* Connection-related errors (pool exhaustion, timeouts, connection refused).
|
|
@@ -2270,11 +2444,14 @@ export let StorageError_Tags=/*#__PURE__*/function(StorageError_Tags){StorageErr
|
|
|
2270
2444
|
*/[uniffiTypeNameSymbol]='StorageError';tag=StorageError_Tags.InitializationError;constructor(v0){super('StorageError','InitializationError');this.inner=Object.freeze([v0]);}static new(v0){return new InitializationError_(v0);}static instanceOf(obj){return obj.tag===StorageError_Tags.InitializationError;}static hasInner(obj){return InitializationError_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class Serialization_ extends UniffiError{/**
|
|
2271
2445
|
* @private
|
|
2272
2446
|
* This field is private and should not be used, use `tag` instead.
|
|
2273
|
-
*/[uniffiTypeNameSymbol]='StorageError';tag=StorageError_Tags.Serialization;constructor(v0){super('StorageError','Serialization');this.inner=Object.freeze([v0]);}static new(v0){return new Serialization_(v0);}static instanceOf(obj){return obj.tag===StorageError_Tags.Serialization;}static hasInner(obj){return Serialization_.instanceOf(obj);}static getInner(obj){return obj.inner;}}
|
|
2447
|
+
*/[uniffiTypeNameSymbol]='StorageError';tag=StorageError_Tags.Serialization;constructor(v0){super('StorageError','Serialization');this.inner=Object.freeze([v0]);}static new(v0){return new Serialization_(v0);}static instanceOf(obj){return obj.tag===StorageError_Tags.Serialization;}static hasInner(obj){return Serialization_.instanceOf(obj);}static getInner(obj){return obj.inner;}}class NotFound_ extends UniffiError{/**
|
|
2448
|
+
* @private
|
|
2449
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2450
|
+
*/[uniffiTypeNameSymbol]='StorageError';tag=StorageError_Tags.NotFound;constructor(){super('StorageError','NotFound');}static new(){return new NotFound_();}static instanceOf(obj){return obj.tag===StorageError_Tags.NotFound;}static hasInner(obj){return false;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==='StorageError';}return Object.freeze({instanceOf,Connection:Connection_,Implementation:Implementation_,InitializationError:InitializationError_,Serialization:Serialization_,NotFound:NotFound_});})();/**
|
|
2274
2451
|
* Errors that can occur during storage operations
|
|
2275
2452
|
*/// FfiConverter for enum StorageError
|
|
2276
|
-
const FfiConverterTypeStorageError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StorageError.Connection(FfiConverterString.read(from));case 2:return new StorageError.Implementation(FfiConverterString.read(from));case 3:return new StorageError.InitializationError(FfiConverterString.read(from));case 4:return new StorageError.Serialization(FfiConverterString.read(from));default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StorageError_Tags.Connection:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.Implementation:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.InitializationError:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.Serialization:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}default:// Throwing from here means that StorageError_Tags hasn't matched an ordinal.
|
|
2277
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StorageError_Tags.Connection:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.Implementation:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.InitializationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.Serialization:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: StoragePaymentDetailsFilter
|
|
2453
|
+
const FfiConverterTypeStorageError=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new StorageError.Connection(FfiConverterString.read(from));case 2:return new StorageError.Implementation(FfiConverterString.read(from));case 3:return new StorageError.InitializationError(FfiConverterString.read(from));case 4:return new StorageError.Serialization(FfiConverterString.read(from));case 5:return new StorageError.NotFound();default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case StorageError_Tags.Connection:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.Implementation:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.InitializationError:{ordinalConverter.write(3,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.Serialization:{ordinalConverter.write(4,into);const inner=value.inner;FfiConverterString.write(inner[0],into);return;}case StorageError_Tags.NotFound:{ordinalConverter.write(5,into);return;}default:// Throwing from here means that StorageError_Tags hasn't matched an ordinal.
|
|
2454
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case StorageError_Tags.Connection:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.Implementation:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.InitializationError:{const inner=value.inner;let size=ordinalConverter.allocationSize(3);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.Serialization:{const inner=value.inner;let size=ordinalConverter.allocationSize(4);size+=FfiConverterString.allocationSize(inner[0]);return size;}case StorageError_Tags.NotFound:{return ordinalConverter.allocationSize(5);}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: StoragePaymentDetailsFilter
|
|
2278
2455
|
export let StoragePaymentDetailsFilter_Tags=/*#__PURE__*/function(StoragePaymentDetailsFilter_Tags){StoragePaymentDetailsFilter_Tags["Spark"]="Spark";StoragePaymentDetailsFilter_Tags["Token"]="Token";StoragePaymentDetailsFilter_Tags["Lightning"]="Lightning";return StoragePaymentDetailsFilter_Tags;}({});/**
|
|
2279
2456
|
* Storage-internal variant of [`PaymentDetailsFilter`] that includes the
|
|
2280
2457
|
* `has_lnurl_preimage` field on the `Lightning` variant, which is not exposed
|
|
@@ -2383,6 +2560,16 @@ FfiConverterTypeBitcoinChainService.drop(uniffiHandle);}},register:()=>{nativeMo
|
|
|
2383
2560
|
* with request/response objects and comprehensive error handling.
|
|
2384
2561
|
*/export class BreezSdk extends UniffiAbstractObject{[uniffiTypeNameSymbol]='BreezSdk';// No primary constructor declared for this class.
|
|
2385
2562
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeBreezSdkObjectFactory.bless(pointer);}/**
|
|
2563
|
+
* Adds a new contact.
|
|
2564
|
+
*
|
|
2565
|
+
* # Arguments
|
|
2566
|
+
*
|
|
2567
|
+
* * `request` - The request containing the contact details
|
|
2568
|
+
*
|
|
2569
|
+
* # Returns
|
|
2570
|
+
*
|
|
2571
|
+
* The created contact or an error
|
|
2572
|
+
*/async addContact(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_add_contact(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeAddContactRequest.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:*/FfiConverterTypeContact.lift.bind(FfiConverterTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2386
2573
|
* Registers a listener to receive SDK events
|
|
2387
2574
|
*
|
|
2388
2575
|
* # Arguments
|
|
@@ -2419,7 +2606,17 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2419
2606
|
* Verifies a message signature against the provided public key. The message
|
|
2420
2607
|
* is SHA256 hashed before verification. The signature can be hex encoded
|
|
2421
2608
|
* in either DER or compact format.
|
|
2422
|
-
*/async checkMessage(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_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.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:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(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_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.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:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimHtlcPayment(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_claim_htlc_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimHtlcPaymentRequest.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:*/FfiConverterTypeClaimHtlcPaymentResponse.lift.bind(FfiConverterTypeClaimHtlcPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
2609
|
+
*/async checkMessage(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_check_message(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeCheckMessageRequest.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:*/FfiConverterTypeCheckMessageResponse.lift.bind(FfiConverterTypeCheckMessageResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimDeposit(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_claim_deposit(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimDepositRequest.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:*/FfiConverterTypeClaimDepositResponse.lift.bind(FfiConverterTypeClaimDepositResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async claimHtlcPayment(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_claim_htlc_payment(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeClaimHtlcPaymentRequest.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:*/FfiConverterTypeClaimHtlcPaymentResponse.lift.bind(FfiConverterTypeClaimHtlcPaymentResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2610
|
+
* Deletes a contact by its ID.
|
|
2611
|
+
*
|
|
2612
|
+
* # Arguments
|
|
2613
|
+
*
|
|
2614
|
+
* * `id` - The ID of the contact to delete
|
|
2615
|
+
*
|
|
2616
|
+
* # Returns
|
|
2617
|
+
*
|
|
2618
|
+
* Success or an error
|
|
2619
|
+
*/async deleteContact(id,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_delete_contact(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async deleteLightningAddress(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_delete_lightning_address(uniffiTypeBreezSdkObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2423
2620
|
* Stops the SDK's background tasks
|
|
2424
2621
|
*
|
|
2425
2622
|
* This method stops the background tasks started by the `start()` method.
|
|
@@ -2446,6 +2643,16 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2446
2643
|
*
|
|
2447
2644
|
* Some settings are fetched from the Spark network so network requests are performed.
|
|
2448
2645
|
*/async getUserSettings(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_get_user_settings(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:*/FfiConverterTypeUserSettings.lift.bind(FfiConverterTypeUserSettings),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2646
|
+
* Lists contacts with optional pagination.
|
|
2647
|
+
*
|
|
2648
|
+
* # Arguments
|
|
2649
|
+
*
|
|
2650
|
+
* * `request` - The request containing optional pagination parameters
|
|
2651
|
+
*
|
|
2652
|
+
* # Returns
|
|
2653
|
+
*
|
|
2654
|
+
* A list of contacts or an error
|
|
2655
|
+
*/async listContacts(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_contacts(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeListContactsRequest.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:*/FfiConverterArrayTypeContact.lift.bind(FfiConverterArrayTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2449
2656
|
* List fiat currencies for which there is a known exchange rate,
|
|
2450
2657
|
* sorted by the canonical name of the currency.
|
|
2451
2658
|
*/async listFiatCurrencies(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(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:*/FfiConverterTypeListFiatCurrenciesResponse.lift.bind(FfiConverterTypeListFiatCurrenciesResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
@@ -2521,6 +2728,16 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
2521
2728
|
*/startLeafOptimization(){uniffiCaller.rustCall(/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization(uniffiTypeBreezSdkObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
|
|
2522
2729
|
* Synchronizes the wallet with the Spark network
|
|
2523
2730
|
*/async syncWallet(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeSyncWalletRequest.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSyncWalletResponse.lift.bind(FfiConverterTypeSyncWalletResponse),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2731
|
+
* Updates an existing contact.
|
|
2732
|
+
*
|
|
2733
|
+
* # Arguments
|
|
2734
|
+
*
|
|
2735
|
+
* * `request` - The request containing the updated contact details
|
|
2736
|
+
*
|
|
2737
|
+
* # Returns
|
|
2738
|
+
*
|
|
2739
|
+
* The updated contact or an error
|
|
2740
|
+
*/async updateContact(request,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(uniffiTypeBreezSdkObjectFactory.clonePointer(this),FfiConverterTypeUpdateContactRequest.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:*/FfiConverterTypeContact.lift.bind(FfiConverterTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSdkError.lift.bind(FfiConverterTypeSdkError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2524
2741
|
* Updates the user settings for the wallet.
|
|
2525
2742
|
*
|
|
2526
2743
|
* Some settings are updated on the Spark network so network requests may be performed.
|
|
@@ -2803,6 +3020,108 @@ vtable:{fetchFiatCurrencies:(uniffiHandle,uniffiFutureCallback,uniffiCallbackDat
|
|
|
2803
3020
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},fetchFiatRates:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeFiatService.lift(uniffiHandle);return await jsCallback.fetchFiatRates({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeRate.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
2804
3021
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/ServiceConnectivityError.instanceOf,/*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// FiatService: this will throw a stale handle error if the handle isn't found.
|
|
2805
3022
|
FfiConverterTypeFiatService.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(uniffiCallbackInterfaceFiatService.vtable);}};/**
|
|
3023
|
+
* Orchestrates passkey-based wallet creation and restore operations.
|
|
3024
|
+
*
|
|
3025
|
+
* This struct coordinates between the platform's passkey PRF provider and
|
|
3026
|
+
* Nostr relays to derive wallet mnemonics and manage wallet names.
|
|
3027
|
+
*
|
|
3028
|
+
* The Nostr identity (derived from the passkey's magic salt) is cached after
|
|
3029
|
+
* the first derivation so that subsequent calls to [`Passkey::list_wallet_names`]
|
|
3030
|
+
* and [`Passkey::store_wallet_name`] do not require additional PRF interactions.
|
|
3031
|
+
*//**
|
|
3032
|
+
* Orchestrates passkey-based wallet creation and restore operations.
|
|
3033
|
+
*
|
|
3034
|
+
* This struct coordinates between the platform's passkey PRF provider and
|
|
3035
|
+
* Nostr relays to derive wallet mnemonics and manage wallet names.
|
|
3036
|
+
*
|
|
3037
|
+
* The Nostr identity (derived from the passkey's magic salt) is cached after
|
|
3038
|
+
* the first derivation so that subsequent calls to [`Passkey::list_wallet_names`]
|
|
3039
|
+
* and [`Passkey::store_wallet_name`] do not require additional PRF interactions.
|
|
3040
|
+
*/export class Passkey extends UniffiAbstractObject{[uniffiTypeNameSymbol]='Passkey';/**
|
|
3041
|
+
* Create a new `Passkey` instance.
|
|
3042
|
+
*
|
|
3043
|
+
* # Arguments
|
|
3044
|
+
* * `prf_provider` - Platform implementation of passkey PRF operations
|
|
3045
|
+
* * `relay_config` - Optional configuration for Nostr relay connections (uses default if None)
|
|
3046
|
+
*/constructor(prfProvider,relayConfig){super();const pointer=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_constructor_passkey_new(FfiConverterTypePasskeyPrfProvider.lower(prfProvider),FfiConverterOptionalTypeNostrRelayConfig.lower(relayConfig),callStatus);},/*liftString:*/FfiConverterString.lift);this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePasskeyObjectFactory.bless(pointer);}/**
|
|
3047
|
+
* Derive a wallet for a given wallet name.
|
|
3048
|
+
*
|
|
3049
|
+
* Uses the passkey PRF to derive a 24-word BIP39 mnemonic from the wallet name
|
|
3050
|
+
* and returns it as a [`Wallet`] containing the seed and resolved name.
|
|
3051
|
+
* This works for both creating a new wallet and restoring an existing one.
|
|
3052
|
+
*
|
|
3053
|
+
* # Arguments
|
|
3054
|
+
* * `wallet_name` - A user-chosen wallet name (e.g., "personal", "business").
|
|
3055
|
+
* If `None`, defaults to [`DEFAULT_WALLET_NAME`].
|
|
3056
|
+
*/async getWallet(walletName,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkey_get_wallet(uniffiTypePasskeyObjectFactory.clonePointer(this),FfiConverterOptionalString.lower(walletName));},/*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:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3057
|
+
* Check if passkey PRF is available on this device.
|
|
3058
|
+
*
|
|
3059
|
+
* Delegates to the platform's `PasskeyPrfProvider` implementation.
|
|
3060
|
+
*/async isAvailable(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkey_is_available(uniffiTypePasskeyObjectFactory.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:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3061
|
+
* List all wallet names published to Nostr for this passkey's identity.
|
|
3062
|
+
*
|
|
3063
|
+
* Queries Nostr relays for all wallet names associated with the Nostr identity
|
|
3064
|
+
* derived from this passkey. Requires 1 PRF call.
|
|
3065
|
+
*/async listWalletNames(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkey_list_wallet_names(uniffiTypePasskeyObjectFactory.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:*/FfiConverterArrayString.lift.bind(FfiConverterArrayString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3066
|
+
* Publish a wallet name to Nostr relays for this passkey's identity.
|
|
3067
|
+
*
|
|
3068
|
+
* Idempotent: if the wallet name already exists, it is not published again.
|
|
3069
|
+
* Requires 1 PRF call.
|
|
3070
|
+
*
|
|
3071
|
+
* # Arguments
|
|
3072
|
+
* * `wallet_name` - A user-chosen wallet name (e.g., "personal", "business")
|
|
3073
|
+
*/async storeWalletName(walletName,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkey_store_wallet_name(uniffiTypePasskeyObjectFactory.clonePointer(this),FfiConverterString.lower(walletName));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyError.lift.bind(FfiConverterTypePasskeyError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3074
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3075
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyObjectFactory.pointer(this);uniffiTypePasskeyObjectFactory.freePointer(pointer);uniffiTypePasskeyObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyObjectFactory={create(pointer){const instance=Object.create(Passkey.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='Passkey';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkey_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_passkey(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkey(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='Passkey';}};// FfiConverter for PasskeyInterface
|
|
3076
|
+
const FfiConverterTypePasskey=new FfiConverterObject(uniffiTypePasskeyObjectFactory);/**
|
|
3077
|
+
* Trait for passkey PRF (Pseudo-Random Function) operations.
|
|
3078
|
+
*
|
|
3079
|
+
* Platforms must implement this trait to provide passkey PRF functionality.
|
|
3080
|
+
* The implementation is responsible for:
|
|
3081
|
+
* - Authenticating the user via platform-specific passkey APIs (`WebAuthn`, native passkey managers)
|
|
3082
|
+
* - Evaluating the PRF extension with the provided salt
|
|
3083
|
+
* - Returning the 32-byte PRF output
|
|
3084
|
+
*//**
|
|
3085
|
+
* Trait for passkey PRF (Pseudo-Random Function) operations.
|
|
3086
|
+
*
|
|
3087
|
+
* Platforms must implement this trait to provide passkey PRF functionality.
|
|
3088
|
+
* The implementation is responsible for:
|
|
3089
|
+
* - Authenticating the user via platform-specific passkey APIs (`WebAuthn`, native passkey managers)
|
|
3090
|
+
* - Evaluating the PRF extension with the provided salt
|
|
3091
|
+
* - Returning the 32-byte PRF output
|
|
3092
|
+
*/export class PasskeyPrfProviderImpl extends UniffiAbstractObject{[uniffiTypeNameSymbol]='PasskeyPrfProviderImpl';// No primary constructor declared for this class.
|
|
3093
|
+
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypePasskeyPrfProviderImplObjectFactory.bless(pointer);}/**
|
|
3094
|
+
* Derive a 32-byte seed from passkey PRF with the given salt.
|
|
3095
|
+
*
|
|
3096
|
+
* The platform authenticates the user via passkey and evaluates the PRF extension.
|
|
3097
|
+
* The salt is used as input to the PRF to derive a deterministic output.
|
|
3098
|
+
*
|
|
3099
|
+
* # Arguments
|
|
3100
|
+
* * `salt` - The salt string to use for PRF evaluation
|
|
3101
|
+
*
|
|
3102
|
+
* # Returns
|
|
3103
|
+
* * `Ok(Vec<u8>)` - The 32-byte PRF output
|
|
3104
|
+
* * `Err(PasskeyPrfError)` - If authentication fails or PRF is not supported
|
|
3105
|
+
*/async derivePrfSeed(salt,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_derive_prf_seed(uniffiTypePasskeyPrfProviderImplObjectFactory.clonePointer(this),FfiConverterString.lower(salt));},/*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:*/FfiConverterTypePasskeyPrfError.lift.bind(FfiConverterTypePasskeyPrfError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3106
|
+
* Check if a PRF-capable passkey is available on this device.
|
|
3107
|
+
*
|
|
3108
|
+
* This allows applications to gracefully degrade if passkey PRF is not supported.
|
|
3109
|
+
*
|
|
3110
|
+
* # Returns
|
|
3111
|
+
* * `Ok(true)` - PRF-capable passkey is available
|
|
3112
|
+
* * `Ok(false)` - No PRF-capable passkey available
|
|
3113
|
+
* * `Err(PasskeyPrfError)` - If the check fails
|
|
3114
|
+
*/async isPrfAvailable(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_is_prf_available(uniffiTypePasskeyPrfProviderImplObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypePasskeyPrfError.lift.bind(FfiConverterTypePasskeyPrfError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3115
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3116
|
+
*/uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypePasskeyPrfProviderImplObjectFactory.pointer(this);uniffiTypePasskeyPrfProviderImplObjectFactory.freePointer(pointer);uniffiTypePasskeyPrfProviderImplObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj){return uniffiTypePasskeyPrfProviderImplObjectFactory.isConcreteType(obj);}}const uniffiTypePasskeyPrfProviderImplObjectFactory={create(pointer){const instance=Object.create(PasskeyPrfProviderImpl.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]='PasskeyPrfProviderImpl';return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_passkeyprfprovider_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr){ptr.markDestroyed();},pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer(obj){const pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_clone_passkeyprfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==='PasskeyPrfProviderImpl';}};// FfiConverter for PasskeyPrfProvider
|
|
3117
|
+
const FfiConverterTypePasskeyPrfProvider=new FfiConverterObjectWithCallbacks(uniffiTypePasskeyPrfProviderImplObjectFactory);// Add a vtavble for the callbacks that go in PasskeyPrfProvider.
|
|
3118
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
3119
|
+
const uniffiCallbackInterfacePasskeyPrfProvider={// Create the VTable using a series of closures.
|
|
3120
|
+
// ts automatically converts these into C callback functions.
|
|
3121
|
+
vtable:{derivePrfSeed:(uniffiHandle,salt,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePasskeyPrfProvider.lift(uniffiHandle);return await jsCallback.derivePrfSeed(FfiConverterString.lift(salt),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayBuffer.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3122
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PasskeyPrfError.instanceOf,/*lowerError:*/FfiConverterTypePasskeyPrfError.lower.bind(FfiConverterTypePasskeyPrfError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},isPrfAvailable:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypePasskeyPrfProvider.lift(uniffiHandle);return await jsCallback.isPrfAvailable({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:FfiConverterBool.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructI8 */{returnValue:0,// TODO create callstatus with error.
|
|
3123
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/PasskeyPrfError.instanceOf,/*lowerError:*/FfiConverterTypePasskeyPrfError.lower.bind(FfiConverterTypePasskeyPrfError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},uniffiFree:uniffiHandle=>{// PasskeyPrfProvider: this will throw a stale handle error if the handle isn't found.
|
|
3124
|
+
FfiConverterTypePasskeyPrfProvider.drop(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(uniffiCallbackInterfacePasskeyPrfProvider.vtable);}};/**
|
|
2806
3125
|
* This interface is used to observe outgoing payments before Lightning, Spark and onchain Bitcoin payments.
|
|
2807
3126
|
* If the implementation returns an error, the payment is cancelled.
|
|
2808
3127
|
*//**
|
|
@@ -3008,7 +3327,16 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
3008
3327
|
* # Returns
|
|
3009
3328
|
*
|
|
3010
3329
|
* Success or a `StorageError`
|
|
3011
|
-
*/async updateDeposit(txid,vout,payload,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_update_deposit(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout),FfiConverterTypeUpdateDepositPayload.lower(payload));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async setLnurlMetadata(metadata,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterArrayTypeSetLnurlMetadataItem.lower(metadata));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
3330
|
+
*/async updateDeposit(txid,vout,payload,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_update_deposit(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid),FfiConverterUInt32.lower(vout),FfiConverterTypeUpdateDepositPayload.lower(payload));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async setLnurlMetadata(metadata,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterArrayTypeSetLnurlMetadataItem.lower(metadata));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3331
|
+
* Lists contacts from storage with optional pagination
|
|
3332
|
+
*/async listContacts(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_storage_list_contacts(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeListContactsRequest.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:*/FfiConverterArrayTypeContact.lift.bind(FfiConverterArrayTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3333
|
+
* Gets a single contact by its ID
|
|
3334
|
+
*/async getContact(id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*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:*/FfiConverterTypeContact.lift.bind(FfiConverterTypeContact),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3335
|
+
* Inserts or updates a contact in storage (upsert by id).
|
|
3336
|
+
* Preserves `created_at` on update.
|
|
3337
|
+
*/async insertContact(contact,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_insert_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeContact.lower(contact));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3338
|
+
* Deletes a contact by its ID
|
|
3339
|
+
*/async deleteContact(id,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterString.lower(id));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async addOutgoingChange(record,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeUnversionedRecordChange.lower(record));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_u64,/*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async completeOutgoingSync(record,localRevision,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_complete_outgoing_sync(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterTypeRecord.lower(record),FfiConverterUInt64.lower(localRevision));},/*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async getPendingOutgoingChanges(limit,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_pending_outgoing_changes(uniffiTypeStorageImplObjectFactory.clonePointer(this),FfiConverterUInt32.lower(limit));},/*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:*/FfiConverterArrayTypeOutgoingChange.lift.bind(FfiConverterArrayTypeOutgoingChange),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeStorageError.lift.bind(FfiConverterTypeStorageError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3012
3340
|
* Get the last committed sync revision.
|
|
3013
3341
|
*
|
|
3014
3342
|
* The `sync_revision` table tracks the highest revision that has been committed
|
|
@@ -3046,6 +3374,10 @@ callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCal
|
|
|
3046
3374
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},listDeposits:(uniffiHandle,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listDeposits({signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeDepositInfo.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3047
3375
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},updateDeposit:(uniffiHandle,txid,vout,payload,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.updateDeposit(FfiConverterString.lift(txid),FfiConverterUInt32.lift(vout),FfiConverterTypeUpdateDepositPayload.lift(payload),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3048
3376
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},setLnurlMetadata:(uniffiHandle,metadata,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.setLnurlMetadata(FfiConverterArrayTypeSetLnurlMetadataItem.lift(metadata),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3377
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},listContacts:(uniffiHandle,request,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.listContacts(FfiConverterTypeListContactsRequest.lift(request),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3378
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterTypeContact.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
3379
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},insertContact:(uniffiHandle,contact,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.insertContact(FfiConverterTypeContact.lift(contact),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3380
|
+
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},deleteContact:(uniffiHandle,id,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.deleteContact(FfiConverterString.lift(id),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3049
3381
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},addOutgoingChange:(uniffiHandle,record,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.addOutgoingChange(FfiConverterTypeUnversionedRecordChange.lift(record),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:FfiConverterUInt64.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructU64 */{returnValue:0n,// TODO create callstatus with error.
|
|
3050
3382
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},completeOutgoingSync:(uniffiHandle,record,localRevision,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.completeOutgoingSync(FfiConverterTypeRecord.lift(record),FfiConverterUInt64.lift(localRevision),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructVoid */{// TODO create callstatus with error.
|
|
3051
3383
|
callStatus:{code,errorBuf}});};const uniffiForeignFuture=uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/StorageError.instanceOf,/*lowerError:*/FfiConverterTypeStorageError.lower.bind(FfiConverterTypeStorageError),/*lowerString:*/FfiConverterString.lower);return UniffiResult.success(uniffiForeignFuture);},getPendingOutgoingChanges:(uniffiHandle,limit,uniffiFutureCallback,uniffiCallbackData)=>{const uniffiMakeCall=async signal=>{const jsCallback=FfiConverterTypeStorage.lift(uniffiHandle);return await jsCallback.getPendingOutgoingChanges(FfiConverterUInt32.lift(limit),{signal});};const uniffiHandleSuccess=returnValue=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:FfiConverterArrayTypeOutgoingChange.lower(returnValue),callStatus:uniffiCaller.createCallStatus()});};const uniffiHandleError=(code,errorBuf)=>{uniffiFutureCallback(uniffiCallbackData,/* UniffiForeignFutureStructRustBuffer */{returnValue:/*empty*/new Uint8Array(0),// TODO create callstatus with error.
|
|
@@ -3149,7 +3481,8 @@ const FfiConverterOptionalTypeKeySetConfig=new FfiConverterOptional(FfiConverter
|
|
|
3149
3481
|
const FfiConverterOptionalTypeLightningAddressInfo=new FfiConverterOptional(FfiConverterTypeLightningAddressInfo);// FfiConverter for LnurlPayInfo | undefined
|
|
3150
3482
|
const FfiConverterOptionalTypeLnurlPayInfo=new FfiConverterOptional(FfiConverterTypeLnurlPayInfo);// FfiConverter for LnurlReceiveMetadata | undefined
|
|
3151
3483
|
const FfiConverterOptionalTypeLnurlReceiveMetadata=new FfiConverterOptional(FfiConverterTypeLnurlReceiveMetadata);// FfiConverter for LnurlWithdrawInfo | undefined
|
|
3152
|
-
const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConverterTypeLnurlWithdrawInfo);// FfiConverter for
|
|
3484
|
+
const FfiConverterOptionalTypeLnurlWithdrawInfo=new FfiConverterOptional(FfiConverterTypeLnurlWithdrawInfo);// FfiConverter for NostrRelayConfig | undefined
|
|
3485
|
+
const FfiConverterOptionalTypeNostrRelayConfig=new FfiConverterOptional(FfiConverterTypeNostrRelayConfig);// FfiConverter for OutgoingChange | undefined
|
|
3153
3486
|
const FfiConverterOptionalTypeOutgoingChange=new FfiConverterOptional(FfiConverterTypeOutgoingChange);// FfiConverter for Payment | undefined
|
|
3154
3487
|
const FfiConverterOptionalTypePayment=new FfiConverterOptional(FfiConverterTypePayment);// FfiConverter for Record | undefined
|
|
3155
3488
|
const FfiConverterOptionalTypeRecord=new FfiConverterOptional(FfiConverterTypeRecord);// FfiConverter for SparkHtlcDetails | undefined
|
|
@@ -3166,7 +3499,8 @@ const FfiConverterArrayArrayBuffer=new FfiConverterArray(FfiConverterArrayBuffer
|
|
|
3166
3499
|
const FfiConverterArrayTypeBip21Extra=new FfiConverterArray(FfiConverterTypeBip21Extra);// FfiConverter for Array<Bolt11RouteHint>
|
|
3167
3500
|
const FfiConverterArrayTypeBolt11RouteHint=new FfiConverterArray(FfiConverterTypeBolt11RouteHint);// FfiConverter for Array<Bolt11RouteHintHop>
|
|
3168
3501
|
const FfiConverterArrayTypeBolt11RouteHintHop=new FfiConverterArray(FfiConverterTypeBolt11RouteHintHop);// FfiConverter for Array<Bolt12OfferBlindedPath>
|
|
3169
|
-
const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<
|
|
3502
|
+
const FfiConverterArrayTypeBolt12OfferBlindedPath=new FfiConverterArray(FfiConverterTypeBolt12OfferBlindedPath);// FfiConverter for Array<Contact>
|
|
3503
|
+
const FfiConverterArrayTypeContact=new FfiConverterArray(FfiConverterTypeContact);// FfiConverter for Array<DepositInfo>
|
|
3170
3504
|
const FfiConverterArrayTypeDepositInfo=new FfiConverterArray(FfiConverterTypeDepositInfo);// FfiConverter for Array<ExternalInputParser>
|
|
3171
3505
|
const FfiConverterArrayTypeExternalInputParser=new FfiConverterArray(FfiConverterTypeExternalInputParser);// FfiConverter for Array<ExternalVerifiableSecretShare>
|
|
3172
3506
|
const FfiConverterArrayTypeExternalVerifiableSecretShare=new FfiConverterArray(FfiConverterTypeExternalVerifiableSecretShare);// FfiConverter for Array<FiatCurrency>
|
|
@@ -3223,5 +3557,5 @@ const FfiConverterOptionalArrayTypeStoragePaymentDetailsFilter=new FfiConverterO
|
|
|
3223
3557
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
3224
3558
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
3225
3559
|
const bindingsContractVersion=26;// Get the scaffolding contract version by calling the into the dylib
|
|
3226
|
-
const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signer()!==40694){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==37737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==32150){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization()!==56996){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress()!==38008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization()!==22827){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key()!==62941){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==23137){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==37648){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==3107){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies()!==60224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies()!==59601){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256()!==57517){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment()!==31862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==37434){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret()!==26114){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted()!==38925){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret()!==45280){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key()!==62519){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets()!==45969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs()!==19489){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver()!==51627){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret()!==53055){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==20635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost()!==53544){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==30686){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set()!==50052){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==13181){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==50774){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()!==8796){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()!==20314){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()!==48442){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()!==38174){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()!==26412){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()!==13705){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()!==41859){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()!==54499){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceExternalSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionStep,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedSecret,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretSource,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceStatus,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStorage,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenTransactionType,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeu128}});
|
|
3560
|
+
const scaffoldingContractVersion=nativeModule().ubrn_ffi_breez_sdk_spark_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect()!==40345){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer()!==1399){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_connect_with_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_config()!==62194){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_config');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signer()!==40694){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_default_external_signer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status()!==62888){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_get_spark_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging()!==8518){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_func_init_logging');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos()!==20959){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status()!==23018){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex()!==59376){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction()!==65179){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees()!==43230){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact()!==26497){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener()!==37737){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin()!==32150){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization()!==56996){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available()!==31624){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message()!==4385){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit()!==43529){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment()!==57587){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact()!==15670){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address()!==44132){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect()!==330){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits()!==50958){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info()!==6771){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress()!==38008){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address()!==36552){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment()!==11540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer()!==26649){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata()!==40125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings()!==38537){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts()!==2729){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies()!==63366){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates()!==5904){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments()!==39170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits()!==22486){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth()!==125){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay()!==10147){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw()!==45652){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse()!==14285){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_parse');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay()!==37691){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment()!==34185){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment()!==36984){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees()!==16947){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit()!==33646){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address()!==530){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener()!==41066){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment()!==54349){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message()!==57563){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization()!==22827){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet()!==30368){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact()!==21170){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings()!==1721){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key()!==62941){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key()!==23137){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa()!==37648){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable()!==3107){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies()!==60224){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies()!==59601){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr()!==57220){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256()!==57517){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment()!==31862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node()!==37434){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret()!==26114){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted()!==38925){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret()!==45280){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key()!==62519){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets()!==45969){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs()!==19489){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver()!==51627){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret()!==53055){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost()!==20635){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost()!==53544){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies()!==19092){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates()!==11512){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_get_wallet()!==499){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_get_wallet');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_is_available()!==31283){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_is_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_list_wallet_names()!==37080){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_list_wallet_names');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_store_wallet_name()!==2664){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkey_store_wallet_name');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed()!==44905){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available()!==33931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send()!==30686){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request()!==8260){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_get_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request()!==24889){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_post_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request()!==51072){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_restclient_delete_request');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build()!==8126){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service()!==2848){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage()!==14543){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service()!==37854){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set()!==50052){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client()!==51060){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer()!==21617){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service()!==63155){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage()!==59400){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item()!==6883){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item()!==30248){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item()!==7970){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_cached_item');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_payments()!==51078){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_payments');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment()!==28075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata()!==32757){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_payment_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id()!==35394){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice()!==57075){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids()!==10948){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_payments_by_parent_ids');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit()!==13181){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit()!==28477){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits()!==62636){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_deposits');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit()!==18714){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_deposit');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata()!==64210){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts()!==10490){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_list_contacts');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact()!==19980){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact()!==38342){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact()!==50274){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_contact');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change()!==1304){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync()!==7860){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes()!==30862){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision()!==6931){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_last_revision');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records()!==59522){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_insert_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record()!==19643){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_delete_incoming_record');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records()!==28540){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_incoming_records');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change()!==41369){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_get_latest_outgoing_change');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming()!==18793){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_storage_update_record_from_incoming');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token()!==56056){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token()!==33277){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token()!==32344){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance()!==9758){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata()!==57707){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token()!==36459){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token()!==65025){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkey_new()!==25404){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_passkey_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new()!==65435){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event()!==24807){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event');}if(nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log()!==11839){throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_logger_log');}uniffiCallbackInterfaceEventListener.register();uniffiCallbackInterfaceLogger.register();uniffiCallbackInterfaceBitcoinChainService.register();uniffiCallbackInterfaceExternalSigner.register();uniffiCallbackInterfaceFiatService.register();uniffiCallbackInterfacePasskeyPrfProvider.register();uniffiCallbackInterfacePaymentObserver.register();uniffiCallbackInterfaceRestClient.register();uniffiCallbackInterfaceStorage.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddContactRequest,FfiConverterTypeAesSuccessActionData,FfiConverterTypeAesSuccessActionDataDecrypted,FfiConverterTypeAesSuccessActionDataResult,FfiConverterTypeAmount,FfiConverterTypeAssetFilter,FfiConverterTypeBip21Details,FfiConverterTypeBip21Extra,FfiConverterTypeBitcoinAddressDetails,FfiConverterTypeBitcoinChainService,FfiConverterTypeBitcoinNetwork,FfiConverterTypeBolt11Invoice,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeBolt11RouteHint,FfiConverterTypeBolt11RouteHintHop,FfiConverterTypeBolt12Invoice,FfiConverterTypeBolt12InvoiceDetails,FfiConverterTypeBolt12InvoiceRequestDetails,FfiConverterTypeBolt12Offer,FfiConverterTypeBolt12OfferBlindedPath,FfiConverterTypeBolt12OfferDetails,FfiConverterTypeBreezSdk,FfiConverterTypeBurnIssuerTokenRequest,FfiConverterTypeBuyBitcoinRequest,FfiConverterTypeBuyBitcoinResponse,FfiConverterTypeChainApiType,FfiConverterTypeCheckLightningAddressRequest,FfiConverterTypeCheckMessageRequest,FfiConverterTypeCheckMessageResponse,FfiConverterTypeClaimDepositRequest,FfiConverterTypeClaimDepositResponse,FfiConverterTypeClaimHtlcPaymentRequest,FfiConverterTypeClaimHtlcPaymentResponse,FfiConverterTypeConfig,FfiConverterTypeConnectRequest,FfiConverterTypeConnectWithSignerRequest,FfiConverterTypeContact,FfiConverterTypeConversionDetails,FfiConverterTypeConversionEstimate,FfiConverterTypeConversionInfo,FfiConverterTypeConversionOptions,FfiConverterTypeConversionPurpose,FfiConverterTypeConversionStatus,FfiConverterTypeConversionStep,FfiConverterTypeConversionType,FfiConverterTypeCreateIssuerTokenRequest,FfiConverterTypeCredentials,FfiConverterTypeCurrencyInfo,FfiConverterTypeDepositClaimError,FfiConverterTypeDepositInfo,FfiConverterTypeEcdsaSignatureBytes,FfiConverterTypeExternalAggregateFrostRequest,FfiConverterTypeExternalEncryptedSecret,FfiConverterTypeExternalFrostCommitments,FfiConverterTypeExternalFrostSignature,FfiConverterTypeExternalFrostSignatureShare,FfiConverterTypeExternalIdentifier,FfiConverterTypeExternalInputParser,FfiConverterTypeExternalScalar,FfiConverterTypeExternalSecretShare,FfiConverterTypeExternalSecretSource,FfiConverterTypeExternalSecretToSplit,FfiConverterTypeExternalSignFrostRequest,FfiConverterTypeExternalSigner,FfiConverterTypeExternalSigningCommitments,FfiConverterTypeExternalTreeNodeId,FfiConverterTypeExternalVerifiableSecretShare,FfiConverterTypeFee,FfiConverterTypeFeePolicy,FfiConverterTypeFetchConversionLimitsRequest,FfiConverterTypeFetchConversionLimitsResponse,FfiConverterTypeFiatCurrency,FfiConverterTypeFiatService,FfiConverterTypeFreezeIssuerTokenRequest,FfiConverterTypeFreezeIssuerTokenResponse,FfiConverterTypeGetInfoRequest,FfiConverterTypeGetInfoResponse,FfiConverterTypeGetPaymentRequest,FfiConverterTypeGetPaymentResponse,FfiConverterTypeGetTokensMetadataRequest,FfiConverterTypeGetTokensMetadataResponse,FfiConverterTypeHashedMessageBytes,FfiConverterTypeIdentifierCommitmentPair,FfiConverterTypeIdentifierPublicKeyPair,FfiConverterTypeIdentifierSignaturePair,FfiConverterTypeIncomingChange,FfiConverterTypeInputType,FfiConverterTypeKeySetConfig,FfiConverterTypeKeySetType,FfiConverterTypeLightningAddressDetails,FfiConverterTypeLightningAddressInfo,FfiConverterTypeListContactsRequest,FfiConverterTypeListFiatCurrenciesResponse,FfiConverterTypeListFiatRatesResponse,FfiConverterTypeListPaymentsRequest,FfiConverterTypeListPaymentsResponse,FfiConverterTypeListUnclaimedDepositsRequest,FfiConverterTypeListUnclaimedDepositsResponse,FfiConverterTypeLnurlAuthRequestDetails,FfiConverterTypeLnurlCallbackStatus,FfiConverterTypeLnurlErrorDetails,FfiConverterTypeLnurlInfo,FfiConverterTypeLnurlPayInfo,FfiConverterTypeLnurlPayRequest,FfiConverterTypeLnurlPayRequestDetails,FfiConverterTypeLnurlPayResponse,FfiConverterTypeLnurlReceiveMetadata,FfiConverterTypeLnurlWithdrawInfo,FfiConverterTypeLnurlWithdrawRequest,FfiConverterTypeLnurlWithdrawRequestDetails,FfiConverterTypeLnurlWithdrawResponse,FfiConverterTypeLocaleOverrides,FfiConverterTypeLocalizedName,FfiConverterTypeLogEntry,FfiConverterTypeMaxFee,FfiConverterTypeMessageBytes,FfiConverterTypeMessageSuccessActionData,FfiConverterTypeMintIssuerTokenRequest,FfiConverterTypeNetwork,FfiConverterTypeNostrRelayConfig,FfiConverterTypeOnchainConfirmationSpeed,FfiConverterTypeOptimizationConfig,FfiConverterTypeOptimizationEvent,FfiConverterTypeOptimizationProgress,FfiConverterTypeOutgoingChange,FfiConverterTypePasskey,FfiConverterTypePasskeyPrfProvider,FfiConverterTypePayment,FfiConverterTypePaymentDetails,FfiConverterTypePaymentDetailsFilter,FfiConverterTypePaymentMetadata,FfiConverterTypePaymentMethod,FfiConverterTypePaymentObserver,FfiConverterTypePaymentRequestSource,FfiConverterTypePaymentStatus,FfiConverterTypePaymentType,FfiConverterTypePrepareLnurlPayRequest,FfiConverterTypePrepareLnurlPayResponse,FfiConverterTypePrepareSendPaymentRequest,FfiConverterTypePrepareSendPaymentResponse,FfiConverterTypeProvisionalPayment,FfiConverterTypeProvisionalPaymentDetails,FfiConverterTypePublicKeyBytes,FfiConverterTypeRate,FfiConverterTypeReceivePaymentMethod,FfiConverterTypeReceivePaymentRequest,FfiConverterTypeReceivePaymentResponse,FfiConverterTypeRecommendedFees,FfiConverterTypeRecord,FfiConverterTypeRecordChange,FfiConverterTypeRecordId,FfiConverterTypeRecoverableEcdsaSignatureBytes,FfiConverterTypeRefundDepositRequest,FfiConverterTypeRefundDepositResponse,FfiConverterTypeRegisterLightningAddressRequest,FfiConverterTypeRestClient,FfiConverterTypeRestResponse,FfiConverterTypeSchnorrSignatureBytes,FfiConverterTypeSdkBuilder,FfiConverterTypeSdkEvent,FfiConverterTypeSecretBytes,FfiConverterTypeSeed,FfiConverterTypeSendOnchainFeeQuote,FfiConverterTypeSendOnchainSpeedFeeQuote,FfiConverterTypeSendPaymentMethod,FfiConverterTypeSendPaymentOptions,FfiConverterTypeSendPaymentRequest,FfiConverterTypeSendPaymentResponse,FfiConverterTypeServiceStatus,FfiConverterTypeSetLnurlMetadataItem,FfiConverterTypeSignMessageRequest,FfiConverterTypeSignMessageResponse,FfiConverterTypeSilentPaymentAddressDetails,FfiConverterTypeSparkAddressDetails,FfiConverterTypeSparkHtlcDetails,FfiConverterTypeSparkHtlcOptions,FfiConverterTypeSparkHtlcStatus,FfiConverterTypeSparkInvoiceDetails,FfiConverterTypeSparkInvoicePaymentDetails,FfiConverterTypeSparkStatus,FfiConverterTypeStableBalanceConfig,FfiConverterTypeStorage,FfiConverterTypeStorageListPaymentsRequest,FfiConverterTypeStoragePaymentDetailsFilter,FfiConverterTypeSuccessAction,FfiConverterTypeSuccessActionProcessed,FfiConverterTypeSymbol,FfiConverterTypeSyncWalletRequest,FfiConverterTypeSyncWalletResponse,FfiConverterTypeTokenBalance,FfiConverterTypeTokenIssuer,FfiConverterTypeTokenMetadata,FfiConverterTypeTokenTransactionType,FfiConverterTypeTxStatus,FfiConverterTypeUnfreezeIssuerTokenRequest,FfiConverterTypeUnfreezeIssuerTokenResponse,FfiConverterTypeUnversionedRecordChange,FfiConverterTypeUpdateContactRequest,FfiConverterTypeUpdateDepositPayload,FfiConverterTypeUpdateUserSettingsRequest,FfiConverterTypeUrlSuccessActionData,FfiConverterTypeUserSettings,FfiConverterTypeUtxo,FfiConverterTypeWallet,FfiConverterTypeu128}});
|
|
3227
3561
|
//# sourceMappingURL=breez_sdk_spark.js.map
|