@secondts/bark-react-native 0.26.1 → 0.27.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 +86 -32
- package/cpp/generated/bark.cpp +81 -6
- package/cpp/generated/bark.hpp +4 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +156 -10
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +155 -9
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +6 -2
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +513 -6
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +6 -2
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +513 -6
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -9
- package/src/generated/bark-ffi.ts +6 -2
- package/src/generated/bark.ts +984 -84
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AA4YA,MAAMA,MAAmC,GAAGA,CAAA,KAAOC,UAAU,CAASC,UAAU;AAChF,eAAeF,MAAM;;AAErB;;AA0CA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI","ignoreList":[]}
|
|
@@ -38,6 +38,8 @@ process?.env?.NODE_ENV!=="production"||false;// Public interface members begin h
|
|
|
38
38
|
* Low-level function to initialize a wallet
|
|
39
39
|
*
|
|
40
40
|
* You probably want to use [`Wallet::open`] instead.
|
|
41
|
+
*
|
|
42
|
+
* `datadir` is a filesystem path or a `file://` URI.
|
|
41
43
|
*/export async function initWallet(network,mnemonicOrSeed,config,datadir,allowUnreachableServer,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_init_wallet(FfiConverterTypeNetwork.lower(network,nativeModule().rustbuffer_alloc),FfiConverterString.lower(mnemonicOrSeed,nativeModule().rustbuffer_alloc),FfiConverterTypeConfig.lower(config,nativeModule().rustbuffer_alloc),FfiConverterString.lower(datadir,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(allowUnreachableServer,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
42
44
|
* Largest value `Config.vtxo_key_gap_limit` (or an import/recovery
|
|
43
45
|
* `gap_limit` override) accepts. A scan that matches nothing runs the limit
|
|
@@ -68,6 +70,8 @@ process?.env?.NODE_ENV!=="production"||false;// Public interface members begin h
|
|
|
68
70
|
*/export function validateMnemonic(mnemonic)/*throws*/{return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(FfiConverterString.lower(mnemonic,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString)));}/**
|
|
69
71
|
* Whether `datadir` holds an initialized bark wallet.
|
|
70
72
|
*
|
|
73
|
+
* `datadir` is a filesystem path or a `file://` URI.
|
|
74
|
+
*
|
|
71
75
|
* Answers without side effects: the database is opened read-only, no
|
|
72
76
|
* migration runs and no file or directory is created. Returns `false` for a
|
|
73
77
|
* missing or empty directory and for a database that never got its wallet
|
|
@@ -382,7 +386,12 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
382
386
|
* Claim transaction for exited funds
|
|
383
387
|
*//**
|
|
384
388
|
* Generated factory for {@link ExitClaimTransaction} record objects.
|
|
385
|
-
*/export const ExitClaimTransaction=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitClaimTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{psbtBase64:FfiConverterString.readFromCursor(c),feeSats:FfiConverterUInt64.readFromCursor(c),vtxoIds:FfiConverterSequenceString.readFromCursor(c),skippedVtxoIds:FfiConverterSequenceString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.psbtBase64,c);FfiConverterUInt64.writeIntoCursor(value.feeSats,c);FfiConverterSequenceString.writeIntoCursor(value.vtxoIds,c);FfiConverterSequenceString.writeIntoCursor(value.skippedVtxoIds,c);}allocationSize(value){return FfiConverterString.allocationSize(value.psbtBase64)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterSequenceString.allocationSize(value.vtxoIds)+FfiConverterSequenceString.allocationSize(value.skippedVtxoIds);}};return new FFIConverter();})()
|
|
389
|
+
*/export const ExitClaimTransaction=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitClaimTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{psbtBase64:FfiConverterString.readFromCursor(c),feeSats:FfiConverterUInt64.readFromCursor(c),vtxoIds:FfiConverterSequenceString.readFromCursor(c),skippedVtxoIds:FfiConverterSequenceString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.psbtBase64,c);FfiConverterUInt64.writeIntoCursor(value.feeSats,c);FfiConverterSequenceString.writeIntoCursor(value.vtxoIds,c);FfiConverterSequenceString.writeIntoCursor(value.skippedVtxoIds,c);}allocationSize(value){return FfiConverterString.allocationSize(value.psbtBase64)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterSequenceString.allocationSize(value.vtxoIds)+FfiConverterSequenceString.allocationSize(value.skippedVtxoIds);}};return new FFIConverter();})();/**
|
|
390
|
+
* Fee a transaction commits together with its unconfirmed ancestors,
|
|
391
|
+
* mirroring `bark::exit::FeeInfo`.
|
|
392
|
+
*//**
|
|
393
|
+
* Generated factory for {@link ExitFeeInfo} record objects.
|
|
394
|
+
*/export const ExitFeeInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitFeeInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{feeRateSatPerKwu:FfiConverterUInt64.readFromCursor(c),totalFeeSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt64.writeIntoCursor(value.feeRateSatPerKwu,c);FfiConverterUInt64.writeIntoCursor(value.totalFeeSats,c);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.feeRateSatPerKwu)+FfiConverterUInt64.allocationSize(value.totalFeeSats);}};return new FFIConverter();})();// Enum: ExitTxStatus
|
|
386
395
|
export let ExitTxStatus_Tags=/*#__PURE__*/function(ExitTxStatus_Tags){ExitTxStatus_Tags["VerifyInputs"]="VerifyInputs";ExitTxStatus_Tags["AwaitingInputConfirmation"]="AwaitingInputConfirmation";ExitTxStatus_Tags["AwaitingCpfpBroadcast"]="AwaitingCpfpBroadcast";ExitTxStatus_Tags["AwaitingConfirmation"]="AwaitingConfirmation";ExitTxStatus_Tags["Confirmed"]="Confirmed";return ExitTxStatus_Tags;}({});/**
|
|
387
396
|
* Broadcast/confirmation status of one transaction in an exit chain,
|
|
388
397
|
* mirroring `bark::exit::ExitTxStatus`.
|
|
@@ -497,6 +506,10 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
497
506
|
*//**
|
|
498
507
|
* Generated factory for {@link ExitProgressStatus} record objects.
|
|
499
508
|
*/export const ExitProgressStatus=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitProgressStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),state:FfiConverterTypeExitState.readFromCursor(c),error:FfiConverterOptionalString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterTypeExitState.writeIntoCursor(value.state,c);FfiConverterOptionalString.writeIntoCursor(value.error,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterTypeExitState.allocationSize(value.state)+FfiConverterOptionalString.allocationSize(value.error);}};return new FFIConverter();})();/**
|
|
509
|
+
* A transaction of an exit chain, mirroring `bark::exit::TransactionInfo`.
|
|
510
|
+
*//**
|
|
511
|
+
* Generated factory for {@link ExitTransactionInfo} record objects.
|
|
512
|
+
*/export const ExitTransactionInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitTransactionInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),txHex:FfiConverterString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterString.writeIntoCursor(value.txHex,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterString.allocationSize(value.txHex);}};return new FFIConverter();})();/**
|
|
500
513
|
* One transaction of an exit: the exit transaction itself and, once it was
|
|
501
514
|
* fee-bumped, the child that confirms it. A unilateral exit is a chain of
|
|
502
515
|
* these, root first.
|
|
@@ -552,7 +565,73 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
552
565
|
* Generated factory for {@link PaymentRequest} record objects.
|
|
553
566
|
*/export const PaymentRequest=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePaymentRequest=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{amountSats:FfiConverterOptionalUInt64.readFromCursor(c),label:FfiConverterOptionalString.readFromCursor(c),message:FfiConverterOptionalString.readFromCursor(c),options:FfiConverterSequenceTypeAvailablePaymentMethod.readFromCursor(c),defaultOption:FfiConverterOptionalTypeAvailablePaymentMethod.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterOptionalUInt64.writeIntoCursor(value.amountSats,c);FfiConverterOptionalString.writeIntoCursor(value.label,c);FfiConverterOptionalString.writeIntoCursor(value.message,c);FfiConverterSequenceTypeAvailablePaymentMethod.writeIntoCursor(value.options,c);FfiConverterOptionalTypeAvailablePaymentMethod.writeIntoCursor(value.defaultOption,c);}allocationSize(value){return FfiConverterOptionalUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.label)+FfiConverterOptionalString.allocationSize(value.message)+FfiConverterSequenceTypeAvailablePaymentMethod.allocationSize(value.options)+FfiConverterOptionalTypeAvailablePaymentMethod.allocationSize(value.defaultOption);}};return new FFIConverter();})();/**
|
|
554
567
|
* Generated factory for {@link PendingBoard} record objects.
|
|
555
|
-
*/export const PendingBoard=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePendingBoard=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),amountSats:FfiConverterUInt64.readFromCursor(c),txid:FfiConverterString.readFromCursor(c),movementId:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterUInt32.writeIntoCursor(value.movementId,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.movementId);}};return new FFIConverter();})()
|
|
568
|
+
*/export const PendingBoard=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePendingBoard=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),amountSats:FfiConverterUInt64.readFromCursor(c),txid:FfiConverterString.readFromCursor(c),movementId:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterUInt32.writeIntoCursor(value.movementId,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.movementId);}};return new FFIConverter();})();// Enum: PresignedExitStatus
|
|
569
|
+
export let PresignedExitStatus_Tags=/*#__PURE__*/function(PresignedExitStatus_Tags){PresignedExitStatus_Tags["FullySigned"]="FullySigned";PresignedExitStatus_Tags["PartiallySigned"]="PartiallySigned";PresignedExitStatus_Tags["Unsigned"]="Unsigned";return PresignedExitStatus_Tags;}({});/**
|
|
570
|
+
* How much of a [`PresignedExit`]'s remaining broadcast work could be funded
|
|
571
|
+
* and signed, mirroring `bark::exit::PresignedExitStatus`.
|
|
572
|
+
*/export const PresignedExitStatus=(()=>{/**
|
|
573
|
+
* Every package has a signed child. The exit's broadcast completes once
|
|
574
|
+
* wave `exited_in_wave` (an index into [`PresignedExits::waves`])
|
|
575
|
+
* confirms; `None` when the chain is already confirmed and there is
|
|
576
|
+
* nothing to broadcast. `fee_info` totals the children's fees over the
|
|
577
|
+
* combined weight of this exit's packages.
|
|
578
|
+
*/class FullySigned_ extends UniffiEnum{/**
|
|
579
|
+
* @private
|
|
580
|
+
* This field is private and should not be used, use `tag` instead.
|
|
581
|
+
*/[uniffiTypeNameSymbol]="PresignedExitStatus";tag=PresignedExitStatus_Tags.FullySigned;constructor(inner){super("PresignedExitStatus","FullySigned");this.inner=Object.freeze(inner);}static new(inner){return new FullySigned_(inner);}static instanceOf(obj){return obj.tag===PresignedExitStatus_Tags.FullySigned;}}/**
|
|
582
|
+
* Confirmed onchain funds ran out mid-chain: wave `last_wave` holds this
|
|
583
|
+
* exit's last signed package and [`PresignedExit::unsigned`] continues
|
|
584
|
+
* right after it.
|
|
585
|
+
*/class PartiallySigned_ extends UniffiEnum{/**
|
|
586
|
+
* @private
|
|
587
|
+
* This field is private and should not be used, use `tag` instead.
|
|
588
|
+
*/[uniffiTypeNameSymbol]="PresignedExitStatus";tag=PresignedExitStatus_Tags.PartiallySigned;constructor(inner){super("PresignedExitStatus","PartiallySigned");this.inner=Object.freeze(inner);}static new(inner){return new PartiallySigned_(inner);}static instanceOf(obj){return obj.tag===PresignedExitStatus_Tags.PartiallySigned;}}/**
|
|
589
|
+
* No package could be funded.
|
|
590
|
+
*/class Unsigned_ extends UniffiEnum{/**
|
|
591
|
+
* @private
|
|
592
|
+
* This field is private and should not be used, use `tag` instead.
|
|
593
|
+
*/[uniffiTypeNameSymbol]="PresignedExitStatus";tag=PresignedExitStatus_Tags.Unsigned;constructor(){super("PresignedExitStatus","Unsigned");}static new(){return new Unsigned_();}static instanceOf(obj){return obj.tag===PresignedExitStatus_Tags.Unsigned;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="PresignedExitStatus";}return Object.freeze({instanceOf,FullySigned:FullySigned_,PartiallySigned:PartiallySigned_,Unsigned:Unsigned_});})();/**
|
|
594
|
+
* How much of a [`PresignedExit`]'s remaining broadcast work could be funded
|
|
595
|
+
* and signed, mirroring `bark::exit::PresignedExitStatus`.
|
|
596
|
+
*/// FfiConverter for enum PresignedExitStatus
|
|
597
|
+
const FfiConverterTypePresignedExitStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new PresignedExitStatus.FullySigned({exitedInWave:FfiConverterOptionalUInt32.readFromCursor(c),feeInfo:FfiConverterTypeExitFeeInfo.readFromCursor(c)});case 2:return new PresignedExitStatus.PartiallySigned({lastWave:FfiConverterUInt32.readFromCursor(c)});case 3:return new PresignedExitStatus.Unsigned();default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case PresignedExitStatus_Tags.FullySigned:{c.writeI32(1);const inner=value.inner;FfiConverterOptionalUInt32.writeIntoCursor(inner.exitedInWave,c);FfiConverterTypeExitFeeInfo.writeIntoCursor(inner.feeInfo,c);return;}case PresignedExitStatus_Tags.PartiallySigned:{c.writeI32(2);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.lastWave,c);return;}case PresignedExitStatus_Tags.Unsigned:{c.writeI32(3);return;}default:// Throwing from here means that PresignedExitStatus_Tags hasn't matched an ordinal.
|
|
598
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PresignedExitStatus_Tags.FullySigned:{const inner=value.inner;let size=4;size+=FfiConverterOptionalUInt32.allocationSize(inner.exitedInWave);size+=FfiConverterTypeExitFeeInfo.allocationSize(inner.feeInfo);return size;}case PresignedExitStatus_Tags.PartiallySigned:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.lastWave);return size;}case PresignedExitStatus_Tags.Unsigned:{return 4;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
599
|
+
* The presigned broadcast work for one VTXO, mirroring
|
|
600
|
+
* `bark::exit::PresignedExit`.
|
|
601
|
+
*//**
|
|
602
|
+
* Generated factory for {@link PresignedExit} record objects.
|
|
603
|
+
*/export const PresignedExit=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePresignedExit=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),status:FfiConverterTypePresignedExitStatus.readFromCursor(c),unsigned:FfiConverterSequenceTypeExitTransactionInfo.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterTypePresignedExitStatus.writeIntoCursor(value.status,c);FfiConverterSequenceTypeExitTransactionInfo.writeIntoCursor(value.unsigned,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterTypePresignedExitStatus.allocationSize(value.status)+FfiConverterSequenceTypeExitTransactionInfo.allocationSize(value.unsigned);}};return new FFIConverter();})();/**
|
|
604
|
+
* A signed CPFP child and the fee it commits, mirroring
|
|
605
|
+
* `bark::exit::PresignedExitChildInfo`.
|
|
606
|
+
*//**
|
|
607
|
+
* Generated factory for {@link PresignedExitChild} record objects.
|
|
608
|
+
*/export const PresignedExitChild=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePresignedExitChild=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),txHex:FfiConverterString.readFromCursor(c),feeInfo:FfiConverterTypeExitFeeInfo.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterString.writeIntoCursor(value.txHex,c);FfiConverterTypeExitFeeInfo.writeIntoCursor(value.feeInfo,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterString.allocationSize(value.txHex)+FfiConverterTypeExitFeeInfo.allocationSize(value.feeInfo);}};return new FFIConverter();})();/**
|
|
609
|
+
* An `(exit, child)` transaction package, broadcast as one unit (e.g. with
|
|
610
|
+
* `submitpackage`), mirroring `bark::exit::PresignedExitPackage`.
|
|
611
|
+
*//**
|
|
612
|
+
* Generated factory for {@link PresignedExitPackage} record objects.
|
|
613
|
+
*/export const PresignedExitPackage=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePresignedExitPackage=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),exit:FfiConverterTypeExitTransactionInfo.readFromCursor(c),child:FfiConverterTypePresignedExitChild.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterTypeExitTransactionInfo.writeIntoCursor(value.exit,c);FfiConverterTypePresignedExitChild.writeIntoCursor(value.child,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterTypeExitTransactionInfo.allocationSize(value.exit)+FfiConverterTypePresignedExitChild.allocationSize(value.child);}};return new FFIConverter();})();/**
|
|
614
|
+
* One step of a presigned broadcast plan, mirroring
|
|
615
|
+
* `bark::exit::PresignedWave`. See [`PresignedExits`] for the rules.
|
|
616
|
+
*//**
|
|
617
|
+
* Generated factory for {@link PresignedWave} record objects.
|
|
618
|
+
*/export const PresignedWave=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePresignedWave=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{packages:FfiConverterSequenceTypePresignedExitPackage.readFromCursor(c),inMempool:FfiConverterSequenceTypeExitTransactionInfo.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterSequenceTypePresignedExitPackage.writeIntoCursor(value.packages,c);FfiConverterSequenceTypeExitTransactionInfo.writeIntoCursor(value.inMempool,c);}allocationSize(value){return FfiConverterSequenceTypePresignedExitPackage.allocationSize(value.packages)+FfiConverterSequenceTypeExitTransactionInfo.allocationSize(value.inMempool);}};return new FFIConverter();})();/**
|
|
619
|
+
* Presigned emergency-exit chains for a set of VTXOs: a wave-by-wave
|
|
620
|
+
* broadcast plan plus a per-VTXO summary, mirroring
|
|
621
|
+
* `bark::exit::PresignedExits`.
|
|
622
|
+
*
|
|
623
|
+
* Execute the plan in wave order: broadcast all of a wave's packages
|
|
624
|
+
* together, then wait for every one, and its `in_mempool` transactions, to
|
|
625
|
+
* confirm before the next wave. Each wave's children spend change confirmed
|
|
626
|
+
* by the previous wave.
|
|
627
|
+
*
|
|
628
|
+
* Presigning reserves no funds, so a later spend from the onchain wallet can
|
|
629
|
+
* invalidate the remaining children. It does reveal the change addresses
|
|
630
|
+
* those children pay to. The children are fully signed: treat the result as
|
|
631
|
+
* sensitive and store it accordingly.
|
|
632
|
+
*//**
|
|
633
|
+
* Generated factory for {@link PresignedExits} record objects.
|
|
634
|
+
*/export const PresignedExits=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypePresignedExits=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{exits:FfiConverterSequenceTypePresignedExit.readFromCursor(c),waves:FfiConverterSequenceTypePresignedWave.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterSequenceTypePresignedExit.writeIntoCursor(value.exits,c);FfiConverterSequenceTypePresignedWave.writeIntoCursor(value.waves,c);}allocationSize(value){return FfiConverterSequenceTypePresignedExit.allocationSize(value.exits)+FfiConverterSequenceTypePresignedWave.allocationSize(value.waves);}};return new FFIConverter();})();/**
|
|
556
635
|
* One bucket of a [`RecoveryReport`].
|
|
557
636
|
*
|
|
558
637
|
* `total_sats` only sums the VTXOs whose amount is known, so it can
|
|
@@ -572,6 +651,15 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
572
651
|
*//**
|
|
573
652
|
* Generated factory for {@link RecoveryReport} record objects.
|
|
574
653
|
*/export const RecoveryReport=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRecoveryReport=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{recovered:FfiConverterTypeRecoveryBucket.readFromCursor(c),skipped:FfiConverterTypeRecoveryBucket.readFromCursor(c),foreign:FfiConverterTypeRecoveryBucket.readFromCursor(c),failed:FfiConverterTypeRecoveryBucket.readFromCursor(c),exited:FfiConverterTypeRecoveryBucket.readFromCursor(c),isComplete:FfiConverterBool.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterTypeRecoveryBucket.writeIntoCursor(value.recovered,c);FfiConverterTypeRecoveryBucket.writeIntoCursor(value.skipped,c);FfiConverterTypeRecoveryBucket.writeIntoCursor(value.foreign,c);FfiConverterTypeRecoveryBucket.writeIntoCursor(value.failed,c);FfiConverterTypeRecoveryBucket.writeIntoCursor(value.exited,c);FfiConverterBool.writeIntoCursor(value.isComplete,c);}allocationSize(value){return FfiConverterTypeRecoveryBucket.allocationSize(value.recovered)+FfiConverterTypeRecoveryBucket.allocationSize(value.skipped)+FfiConverterTypeRecoveryBucket.allocationSize(value.foreign)+FfiConverterTypeRecoveryBucket.allocationSize(value.failed)+FfiConverterTypeRecoveryBucket.allocationSize(value.exited)+FfiConverterBool.allocationSize(value.isComplete);}};return new FFIConverter();})();/**
|
|
654
|
+
* The exit transactions one VTXO still needs confirmed to be exited.
|
|
655
|
+
*//**
|
|
656
|
+
* Generated factory for {@link RemainingExit} record objects.
|
|
657
|
+
*/export const RemainingExit=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRemainingExit=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),txids:FfiConverterSequenceString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterSequenceString.writeIntoCursor(value.txids,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterSequenceString.allocationSize(value.txids);}};return new FFIConverter();})();/**
|
|
658
|
+
* The exit transactions of a set of VTXOs still awaiting confirmation,
|
|
659
|
+
* mirroring `bark::exit::RemainingExitTransactions`.
|
|
660
|
+
*//**
|
|
661
|
+
* Generated factory for {@link RemainingExitTransactions} record objects.
|
|
662
|
+
*/export const RemainingExitTransactions=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRemainingExitTransactions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{exits:FfiConverterSequenceTypeRemainingExit.readFromCursor(c),transactions:FfiConverterSequenceTypeExitTransactionInfo.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterSequenceTypeRemainingExit.writeIntoCursor(value.exits,c);FfiConverterSequenceTypeExitTransactionInfo.writeIntoCursor(value.transactions,c);}allocationSize(value){return FfiConverterSequenceTypeRemainingExit.allocationSize(value.exits)+FfiConverterSequenceTypeExitTransactionInfo.allocationSize(value.transactions);}};return new FFIConverter();})();/**
|
|
575
663
|
* Lifecycle phase of a round participation, mirroring
|
|
576
664
|
* `bark::round::RoundFlowKind`.
|
|
577
665
|
*
|
|
@@ -726,7 +814,8 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
726
814
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeOnchainWalletObjectFactory.bless(pointer);}/**
|
|
727
815
|
* Callback-backed wallet for foreign-language implementations.
|
|
728
816
|
*/static custom(callbacks)/*throws*/{return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString)));}/**
|
|
729
|
-
* BDK-backed wallet. Opens the shared sqlite cache
|
|
817
|
+
* BDK-backed wallet. Opens the shared sqlite cache in `datadir`, a
|
|
818
|
+
* filesystem path or a `file://` URI.
|
|
730
819
|
*/static async default_(network,mnemonic,config,datadir,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterTypeNetwork.lower(network,nativeModule().rustbuffer_alloc),FfiConverterString.lower(mnemonic,nativeModule().rustbuffer_alloc),FfiConverterTypeConfig.lower(config,nativeModule().rustbuffer_alloc),FfiConverterString.lower(datadir,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u64,// Async returns always go through the JS-side converter: the
|
|
731
820
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
732
821
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
@@ -1238,7 +1327,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1238
1327
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1239
1328
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1240
1329
|
// already JS-owned.
|
|
1241
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypePendingBoard.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
1330
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypePendingBoard.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1331
|
+
* Create an invoice for an incoming lightning payment.
|
|
1332
|
+
*
|
|
1333
|
+
* `expiry_secs` is how long the invoice can be paid for. It defaults to,
|
|
1334
|
+
* and cannot exceed, the Ark server's invoice expiry; creating the invoice
|
|
1335
|
+
* fails if the server does not honour it. Must be at least 1.
|
|
1336
|
+
*/async bolt11Invoice(amountSats,description,token=undefined,expirySecs=undefined,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(description,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(token,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(expirySecs,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,// Async returns always go through the JS-side converter: the
|
|
1242
1337
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1243
1338
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1244
1339
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1261,7 +1356,9 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1261
1356
|
*
|
|
1262
1357
|
* A `claim_destination` owned by this wallet is claimed locally instead of
|
|
1263
1358
|
* going through its mailbox.
|
|
1264
|
-
|
|
1359
|
+
*
|
|
1360
|
+
* `expiry_secs` works as in [`Self::bolt11_invoice`].
|
|
1361
|
+
*/async bolt11InvoiceForAddress(amountSats,claimDestination,description=undefined,token=undefined,expirySecs=undefined,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterString.lower(claimDestination,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(description,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(token,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(expirySecs,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,// Async returns always go through the JS-side converter: the
|
|
1265
1362
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1266
1363
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1267
1364
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1811,7 +1908,33 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1811
1908
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1812
1909
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1813
1910
|
// already JS-owned.
|
|
1814
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeRoundState.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}
|
|
1911
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeRoundState.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1912
|
+
* Sign, without broadcasting, the CPFP child of every exit transaction
|
|
1913
|
+
* that still needs broadcasting to emergency-exit the given VTXOs, for as
|
|
1914
|
+
* long as confirmed onchain funds last. Mirrors bark-rest
|
|
1915
|
+
* `POST /exits/presign`.
|
|
1916
|
+
*
|
|
1917
|
+
* Omit `vtxo_ids` to presign every spendable VTXO; an empty list presigns
|
|
1918
|
+
* nothing. `fee_rate_sat_per_vb` defaults to the chain's fast rate. Syncs
|
|
1919
|
+
* the onchain wallet and exits first.
|
|
1920
|
+
*
|
|
1921
|
+
* Execute the result wave by wave: broadcast a wave's packages together
|
|
1922
|
+
* and wait for them, and its `in_mempool` transactions, to confirm before
|
|
1923
|
+
* the next. No funds are reserved, so a later onchain spend can
|
|
1924
|
+
* invalidate the children. The children are signed: store the result
|
|
1925
|
+
* securely.
|
|
1926
|
+
*
|
|
1927
|
+
* Needs the built-in onchain wallet; with callback wallets
|
|
1928
|
+
* (`CustomOnchainWalletCallbacks`) it fails.
|
|
1929
|
+
*/async presignEmergencyExit(vtxoIds=undefined,feeRateSatPerVb=undefined,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterOptionalSequenceString.lower(vtxoIds,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(feeRateSatPerVb,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,// Async returns always go through the JS-side converter: the
|
|
1930
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1931
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1932
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1933
|
+
// here using the per-callable return-type converter.
|
|
1934
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1935
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1936
|
+
// already JS-owned.
|
|
1937
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypePresignedExits.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}async progressExits(feeRateSatPerVb,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterOptionalUInt64.lower(feeRateSatPerVb,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,// Async returns always go through the JS-side converter: the
|
|
1815
1938
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1816
1939
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1817
1940
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1887,6 +2010,23 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1887
2010
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1888
2011
|
// already JS-owned.
|
|
1889
2012
|
/*liftFunc:*/__rb=>{try{return FfiConverterOptionalTypeRoundState.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
2013
|
+
* List every exit transaction of the given VTXOs still awaiting
|
|
2014
|
+
* confirmation, so anyone can broadcast the exits on the user's behalf.
|
|
2015
|
+
* Mirrors bark-rest `GET /exits/remaining`.
|
|
2016
|
+
*
|
|
2017
|
+
* Omit `vtxo_ids` to cover every spendable VTXO; an empty list covers
|
|
2018
|
+
* nothing. Read-only: signs nothing and never touches the onchain wallet,
|
|
2019
|
+
* so it works with callback wallets too. Statuses of started exits reflect
|
|
2020
|
+
* the last `sync_exits`.
|
|
2021
|
+
*/async remainingExitTransactions(vtxoIds=undefined,asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterOptionalSequenceString.lower(vtxoIds,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,// Async returns always go through the JS-side converter: the
|
|
2022
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2023
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2024
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2025
|
+
// here using the per-callable return-type converter.
|
|
2026
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
2027
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
2028
|
+
// already JS-owned.
|
|
2029
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeRemainingExitTransactions.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1890
2030
|
* Start the background daemon. The onchain wallet used by the daemon is
|
|
1891
2031
|
* the one supplied to `Wallet::open` (see `WalletOpenArgs.onchain`).
|
|
1892
2032
|
*/async runDaemon(asyncOpts_)/*throws*/{const __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/()=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiTypeWalletObjectFactory.clonePointer(this));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,/*liftFunc:*/_v=>{},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
@@ -2044,7 +2184,12 @@ const FfiConverterOptionalSequenceTypeExitState=new FfiConverterOptional(FfiConv
|
|
|
2044
2184
|
const FfiConverterSequenceTypeExitTransactionPackage=new FfiConverterArray(FfiConverterTypeExitTransactionPackage);// FfiConverter for bigint | undefined
|
|
2045
2185
|
const FfiConverterOptionalInt64=new FfiConverterOptional(FfiConverterInt64);// FfiConverter for Array<AvailablePaymentMethod>
|
|
2046
2186
|
const FfiConverterSequenceTypeAvailablePaymentMethod=new FfiConverterArray(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for AvailablePaymentMethod | undefined
|
|
2047
|
-
const FfiConverterOptionalTypeAvailablePaymentMethod=new FfiConverterOptional(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for
|
|
2187
|
+
const FfiConverterOptionalTypeAvailablePaymentMethod=new FfiConverterOptional(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for Array<ExitTransactionInfo>
|
|
2188
|
+
const FfiConverterSequenceTypeExitTransactionInfo=new FfiConverterArray(FfiConverterTypeExitTransactionInfo);// FfiConverter for Array<PresignedExit>
|
|
2189
|
+
const FfiConverterSequenceTypePresignedExit=new FfiConverterArray(FfiConverterTypePresignedExit);// FfiConverter for Array<PresignedExitPackage>
|
|
2190
|
+
const FfiConverterSequenceTypePresignedExitPackage=new FfiConverterArray(FfiConverterTypePresignedExitPackage);// FfiConverter for Array<PresignedWave>
|
|
2191
|
+
const FfiConverterSequenceTypePresignedWave=new FfiConverterArray(FfiConverterTypePresignedWave);// FfiConverter for Array<RemainingExit>
|
|
2192
|
+
const FfiConverterSequenceTypeRemainingExit=new FfiConverterArray(FfiConverterTypeRemainingExit);// FfiConverter for VtxoLockHolder | undefined
|
|
2048
2193
|
const FfiConverterOptionalTypeVtxoLockHolder=new FfiConverterOptional(FfiConverterTypeVtxoLockHolder);// FfiConverter for Array<WalletTransaction>
|
|
2049
2194
|
const FfiConverterSequenceTypeWalletTransaction=new FfiConverterArray(FfiConverterTypeWalletTransaction);// FfiConverter for Array<OnchainUtxo>
|
|
2050
2195
|
const FfiConverterSequenceTypeOnchainUtxo=new FfiConverterArray(FfiConverterTypeOnchainUtxo);// FfiConverter for OnchainWalletLike | undefined
|
|
@@ -2062,7 +2207,8 @@ const FfiConverterSequenceTypeExitTransactionStatus=new FfiConverterArray(FfiCon
|
|
|
2062
2207
|
const FfiConverterSequenceTypePendingBoard=new FfiConverterArray(FfiConverterTypePendingBoard);// FfiConverter for Array<LightningReceive>
|
|
2063
2208
|
const FfiConverterSequenceTypeLightningReceive=new FfiConverterArray(FfiConverterTypeLightningReceive);// FfiConverter for Array<LightningSend>
|
|
2064
2209
|
const FfiConverterSequenceTypeLightningSend=new FfiConverterArray(FfiConverterTypeLightningSend);// FfiConverter for Array<RoundState>
|
|
2065
|
-
const FfiConverterSequenceTypeRoundState=new FfiConverterArray(FfiConverterTypeRoundState);// FfiConverter for Array<
|
|
2210
|
+
const FfiConverterSequenceTypeRoundState=new FfiConverterArray(FfiConverterTypeRoundState);// FfiConverter for Array<string> | undefined
|
|
2211
|
+
const FfiConverterOptionalSequenceString=new FfiConverterOptional(FfiConverterSequenceString);// FfiConverter for Array<ExitProgressStatus>
|
|
2066
2212
|
const FfiConverterSequenceTypeExitProgressStatus=new FfiConverterArray(FfiConverterTypeExitProgressStatus);// FfiConverter for RecoveryReport | undefined
|
|
2067
2213
|
const FfiConverterOptionalTypeRecoveryReport=new FfiConverterOptional(FfiConverterTypeRecoveryReport);// FfiConverter for RoundState | undefined
|
|
2068
2214
|
const FfiConverterOptionalTypeRoundState=new FfiConverterOptional(FfiConverterTypeRoundState);// FfiConverter for DatadirInfo | undefined
|
|
@@ -2077,5 +2223,5 @@ const FfiConverterOptionalTypeDatadirInfo=new FfiConverterOptional(FfiConverterT
|
|
|
2077
2223
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2078
2224
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
2079
2225
|
const bindingsContractVersion=30;// Get the scaffolding contract version by calling the into the dylib
|
|
2080
|
-
const scaffoldingContractVersion=nativeModule().ubrn_ffi_bark_ffi_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_clear_logger()!==48287){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_clear_logger");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_decode_bolt11_invoice()!==43493){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_decode_bolt11_invoice");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit()!==3344){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt()!==8893){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_extract_tx_from_psbt");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic()!==65033){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_generate_mnemonic");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_init_wallet()!==41495){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_init_wallet");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit()!==15808){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_read_datadir_info()!==62647){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_read_datadir_info");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger()!==17909){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address()!==43084){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_ark_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic()!==33507){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_wallet_exists()!==32702){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_wallet_exists");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log()!==3468){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance()!==22074){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx()!==41818){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx()!==43328){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sign_psbt()!==17958){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sign_psbt");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine()!==18867){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx()!==17970){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx()!==36298){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp()!==46075){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp()!==64815){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync()!==29018){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait()!==45269){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification()!==25507){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom()!==33645){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default()!==61714){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance()!==39213){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx()!==26786){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates()!==30741){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan()!==19010){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address()!==7405){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send()!==30495){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync()!==4373){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_tip_height()!==12254){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_tip_height");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_transactions()!==566){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_transactions");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_utxos()!==44926){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_utxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open()!==45531){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height()!==59034){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos()!==62209){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit()!==56991){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info()!==54388){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit()!==6368){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance()!==37345){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance_summary()!==9541){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance_summary");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bip321_uri()!==64697){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bip321_uri");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all()!==5667){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount()!==54692){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address()!==8961){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_funding_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt()!==28300){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_psbt");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice()!==54959){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address()!==56368){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx()!==46367){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds()!==53455){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_exit()!==63172){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive()!==49444){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round()!==13433){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment()!==50033){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats()!==7743){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config()!==23594){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_debug_info()!==12282){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_debug_info");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits()!==45364){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee()!==35980){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee()!==55967){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee()!==5118){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee()!==33637){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee()!==11290){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee()!==24629){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee()!==37073){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_payment_fee()!==53689){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_payment_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee()!==18182){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee()!==1027){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint()!==51021){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status()!==3037){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos()!==35836){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos()!==39689){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight()!==33536){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight()!==58530){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id()!==34050){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh()!==52553){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits()!==19790){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history()!==10552){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method()!==11845){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo()!==26027){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxos()!==13727){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid()!==5699){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state()!==27834){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state()!==53422){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_all_exits()!==11191){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_all_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits()!==58660){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_finished_exits()!==44459){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_finished_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_live_exits()!==16771){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_live_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lock_vtxos()!==13415){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lock_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization()!==25098){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier()!==15231){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance()!==33161){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated()!==31668){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh()!==34548){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network()!==2007){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address()!==65478){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index()!==37344){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time()!==20748){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications()!==8597){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all()!==7986){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos()!==64605){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_parse_payment_request()!==2160){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_parse_payment_request");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address()!==45319){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice()!==48095){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer()!==53553){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl()!==19202){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lnurl");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address()!==31847){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos()!==53566){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards()!==61501){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats()!==38418){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives()!==26676){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos()!==62766){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends()!==8847){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos()!==54307){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states()!==11480){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits()!==6255){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds()!==43537){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties()!==9773){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos()!==56476){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recover_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report()!==10331){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_report");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status()!==14132){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_status");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server()!==41162){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos()!==52101){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated()!==61476){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled()!==50488){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon()!==9520){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment()!==61332){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain()!==11375){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_payment()!==15378){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs()!==12930){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos()!==22755){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet()!==6525){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos()!==56154){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard()!==27907){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon()!==7109){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait()!==1734){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends()!==31613){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync()!==2151){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits()!==12141){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos()!==25363){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards()!==63453){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives()!==14560){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive()!==43209){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos()!==11806){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address()!==30498){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded()!==25637){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos()!==33207){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");}uniffiCallbackInterfaceBarkLogger.register();uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddressWithIndex,FfiConverterTypeArkInfo,FfiConverterTypeAvailablePaymentMethod,FfiConverterTypeBalance,FfiConverterTypeBalanceSummary,FfiConverterTypeBarkLogger,FfiConverterTypeBip321Uri,FfiConverterTypeBip321UriOptions,FfiConverterTypeBlockRef,FfiConverterTypeBoardFees,FfiConverterTypeBoardFundingInfo,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeConfig,FfiConverterTypeCpfpParams,FfiConverterTypeCustomOnchainWalletCallbacks,FfiConverterTypeDatadirInfo,FfiConverterTypeDebugInfo,FfiConverterTypeDestination,FfiConverterTypeEmergencyExitFeeEstimate,FfiConverterTypeError,FfiConverterTypeExitCancelFailure,FfiConverterTypeExitCancelResult,FfiConverterTypeExitChildTransaction,FfiConverterTypeExitClaimTransaction,FfiConverterTypeExitProgressStatus,FfiConverterTypeExitState,FfiConverterTypeExitStateKind,FfiConverterTypeExitTransactionPackage,FfiConverterTypeExitTransactionStatus,FfiConverterTypeExitTx,FfiConverterTypeExitTxOrigin,FfiConverterTypeExitTxStatus,FfiConverterTypeExitVtxo,FfiConverterTypeFeeEstimate,FfiConverterTypeFeeRates,FfiConverterTypeFeeSchedule,FfiConverterTypeImportVtxoArgs,FfiConverterTypeLightningInvoice,FfiConverterTypeLightningReceive,FfiConverterTypeLightningReceiveFees,FfiConverterTypeLightningSend,FfiConverterTypeLightningSendFees,FfiConverterTypeLightningSendStatus,FfiConverterTypeLogLevel,FfiConverterTypeMovement,FfiConverterTypeNetwork,FfiConverterTypeNotificationHolder,FfiConverterTypeOffboardFees,FfiConverterTypeOffboardResult,FfiConverterTypeOnchainBalance,FfiConverterTypeOnchainUtxo,FfiConverterTypeOnchainWallet,FfiConverterTypeOutPoint,FfiConverterTypePaymentMethod,FfiConverterTypePaymentMethodParsingError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentResult,FfiConverterTypePendingBoard,FfiConverterTypePpmExpiryFeeEntry,FfiConverterTypeRecoveryBucket,FfiConverterTypeRecoveryReport,FfiConverterTypeRecoveryStatus,FfiConverterTypeRefreshFees,FfiConverterTypeRoundFlowKind,FfiConverterTypeRoundState,FfiConverterTypeVtxo,FfiConverterTypeVtxoLockHolder,FfiConverterTypeVtxoState,FfiConverterTypeWallet,FfiConverterTypeWalletNotification,FfiConverterTypeWalletOpenArgs,FfiConverterTypeWalletProperties,FfiConverterTypeWalletTransaction}});
|
|
2226
|
+
const scaffoldingContractVersion=nativeModule().ubrn_ffi_bark_ffi_uniffi_contract_version();if(bindingsContractVersion!==scaffoldingContractVersion){throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion,bindingsContractVersion);}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_clear_logger()!==48287){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_clear_logger");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_decode_bolt11_invoice()!==43493){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_decode_bolt11_invoice");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit()!==3344){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt()!==8893){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_extract_tx_from_psbt");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic()!==65033){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_generate_mnemonic");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_init_wallet()!==2602){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_init_wallet");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit()!==15808){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_read_datadir_info()!==62647){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_read_datadir_info");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_set_logger()!==17909){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address()!==43084){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_ark_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic()!==33507){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_func_wallet_exists()!==29370){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_wallet_exists");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log()!==3468){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance()!==22074){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx()!==41818){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx()!==43328){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sign_psbt()!==17958){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sign_psbt");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine()!==18867){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx()!==17970){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx()!==36298){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp()!==46075){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp()!==64815){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync()!==29018){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait()!==45269){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification()!==25507){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom()!==33645){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default()!==23070){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance()!==39213){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx()!==26786){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates()!==30741){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan()!==19010){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address()!==7405){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send()!==30495){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync()!==4373){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_tip_height()!==12254){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_tip_height");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_transactions()!==566){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_transactions");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_utxos()!==44926){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_utxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open()!==45531){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height()!==59034){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos()!==62209){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit()!==56991){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info()!==54388){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit()!==6368){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance()!==37345){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance_summary()!==9541){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance_summary");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bip321_uri()!==64697){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bip321_uri");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all()!==5667){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount()!==54692){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address()!==8961){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_funding_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt()!==28300){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_psbt");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice()!==32731){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address()!==25554){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx()!==46367){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds()!==53455){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_exit()!==63172){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive()!==49444){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round()!==13433){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment()!==50033){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats()!==7743){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config()!==23594){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_debug_info()!==12282){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_debug_info");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits()!==45364){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee()!==35980){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee()!==55967){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee()!==5118){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee()!==33637){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee()!==11290){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee()!==24629){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee()!==37073){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_payment_fee()!==53689){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_payment_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee()!==18182){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee()!==1027){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint()!==51021){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status()!==3037){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos()!==35836){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos()!==39689){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight()!==33536){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight()!==58530){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id()!==34050){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh()!==52553){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits()!==19790){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history()!==10552){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method()!==11845){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo()!==26027){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxos()!==13727){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid()!==5699){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state()!==27834){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state()!==53422){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_all_exits()!==11191){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_all_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits()!==58660){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_finished_exits()!==44459){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_finished_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_live_exits()!==16771){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_live_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lock_vtxos()!==13415){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lock_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization()!==25098){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier()!==15231){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance()!==33161){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated()!==31668){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh()!==34548){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network()!==2007){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address()!==65478){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index()!==37344){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time()!==20748){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications()!==8597){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all()!==7986){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos()!==64605){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_parse_payment_request()!==2160){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_parse_payment_request");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address()!==45319){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice()!==48095){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer()!==53553){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl()!==19202){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lnurl");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address()!==31847){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos()!==53566){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards()!==61501){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats()!==38418){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives()!==26676){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos()!==62766){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends()!==8847){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos()!==54307){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states()!==11480){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit()!==32185){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits()!==6255){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds()!==43537){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties()!==9773){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos()!==56476){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recover_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report()!==10331){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_report");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status()!==14132){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_status");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server()!==41162){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos()!==52101){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated()!==61476){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled()!==50488){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions()!==44959){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon()!==9520){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment()!==61332){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain()!==11375){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_payment()!==15378){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs()!==12930){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos()!==22755){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet()!==6525){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos()!==56154){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard()!==27907){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon()!==7109){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait()!==1734){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends()!==31613){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync()!==2151){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits()!==12141){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos()!==25363){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards()!==63453){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives()!==14560){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive()!==43209){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos()!==11806){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address()!==30498){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded()!==25637){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos()!==33207){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");}uniffiCallbackInterfaceBarkLogger.register();uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();}export default Object.freeze({initialize:uniffiEnsureInitialized,converters:{FfiConverterTypeAddressWithIndex,FfiConverterTypeArkInfo,FfiConverterTypeAvailablePaymentMethod,FfiConverterTypeBalance,FfiConverterTypeBalanceSummary,FfiConverterTypeBarkLogger,FfiConverterTypeBip321Uri,FfiConverterTypeBip321UriOptions,FfiConverterTypeBlockRef,FfiConverterTypeBoardFees,FfiConverterTypeBoardFundingInfo,FfiConverterTypeBolt11InvoiceDetails,FfiConverterTypeConfig,FfiConverterTypeCpfpParams,FfiConverterTypeCustomOnchainWalletCallbacks,FfiConverterTypeDatadirInfo,FfiConverterTypeDebugInfo,FfiConverterTypeDestination,FfiConverterTypeEmergencyExitFeeEstimate,FfiConverterTypeError,FfiConverterTypeExitCancelFailure,FfiConverterTypeExitCancelResult,FfiConverterTypeExitChildTransaction,FfiConverterTypeExitClaimTransaction,FfiConverterTypeExitFeeInfo,FfiConverterTypeExitProgressStatus,FfiConverterTypeExitState,FfiConverterTypeExitStateKind,FfiConverterTypeExitTransactionInfo,FfiConverterTypeExitTransactionPackage,FfiConverterTypeExitTransactionStatus,FfiConverterTypeExitTx,FfiConverterTypeExitTxOrigin,FfiConverterTypeExitTxStatus,FfiConverterTypeExitVtxo,FfiConverterTypeFeeEstimate,FfiConverterTypeFeeRates,FfiConverterTypeFeeSchedule,FfiConverterTypeImportVtxoArgs,FfiConverterTypeLightningInvoice,FfiConverterTypeLightningReceive,FfiConverterTypeLightningReceiveFees,FfiConverterTypeLightningSend,FfiConverterTypeLightningSendFees,FfiConverterTypeLightningSendStatus,FfiConverterTypeLogLevel,FfiConverterTypeMovement,FfiConverterTypeNetwork,FfiConverterTypeNotificationHolder,FfiConverterTypeOffboardFees,FfiConverterTypeOffboardResult,FfiConverterTypeOnchainBalance,FfiConverterTypeOnchainUtxo,FfiConverterTypeOnchainWallet,FfiConverterTypeOutPoint,FfiConverterTypePaymentMethod,FfiConverterTypePaymentMethodParsingError,FfiConverterTypePaymentRequest,FfiConverterTypePaymentResult,FfiConverterTypePendingBoard,FfiConverterTypePpmExpiryFeeEntry,FfiConverterTypePresignedExit,FfiConverterTypePresignedExitChild,FfiConverterTypePresignedExitPackage,FfiConverterTypePresignedExitStatus,FfiConverterTypePresignedExits,FfiConverterTypePresignedWave,FfiConverterTypeRecoveryBucket,FfiConverterTypeRecoveryReport,FfiConverterTypeRecoveryStatus,FfiConverterTypeRefreshFees,FfiConverterTypeRemainingExit,FfiConverterTypeRemainingExitTransactions,FfiConverterTypeRoundFlowKind,FfiConverterTypeRoundState,FfiConverterTypeVtxo,FfiConverterTypeVtxoLockHolder,FfiConverterTypeVtxoState,FfiConverterTypeWallet,FfiConverterTypeWalletNotification,FfiConverterTypeWalletOpenArgs,FfiConverterTypeWalletProperties,FfiConverterTypeWalletTransaction}});
|
|
2081
2227
|
//# sourceMappingURL=bark.js.map
|