@secondts/bark-react-native 0.26.1 → 0.28.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 +203 -19
- package/cpp/generated/bark.hpp +10 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +318 -70
- 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 +317 -69
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +16 -6
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +869 -79
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +16 -6
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +869 -79
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -9
- package/src/generated/bark-ffi.ts +16 -6
- package/src/generated/bark.ts +1470 -150
|
@@ -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
|
|
@@ -130,7 +134,7 @@ readStringFromBuffer:(buf,offset,length)=>nativeModule().ubrn_uniffi_internal_fn
|
|
|
130
134
|
* Generated factory for {@link FeeSchedule} record objects.
|
|
131
135
|
*/export const FeeSchedule=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeFeeSchedule=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{board:FfiConverterTypeBoardFees.readFromCursor(c),offboard:FfiConverterTypeOffboardFees.readFromCursor(c),refresh:FfiConverterTypeRefreshFees.readFromCursor(c),lightningReceive:FfiConverterTypeLightningReceiveFees.readFromCursor(c),lightningSend:FfiConverterTypeLightningSendFees.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterTypeBoardFees.writeIntoCursor(value.board,c);FfiConverterTypeOffboardFees.writeIntoCursor(value.offboard,c);FfiConverterTypeRefreshFees.writeIntoCursor(value.refresh,c);FfiConverterTypeLightningReceiveFees.writeIntoCursor(value.lightningReceive,c);FfiConverterTypeLightningSendFees.writeIntoCursor(value.lightningSend,c);}allocationSize(value){return FfiConverterTypeBoardFees.allocationSize(value.board)+FfiConverterTypeOffboardFees.allocationSize(value.offboard)+FfiConverterTypeRefreshFees.allocationSize(value.refresh)+FfiConverterTypeLightningReceiveFees.allocationSize(value.lightningReceive)+FfiConverterTypeLightningSendFees.allocationSize(value.lightningSend);}};return new FFIConverter();})();/**
|
|
132
136
|
* Generated factory for {@link ArkInfo} record objects.
|
|
133
|
-
*/export const ArkInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeArkInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{network:FfiConverterTypeNetwork.readFromCursor(c),serverPubkey:FfiConverterString.readFromCursor(c),roundIntervalSecs:FfiConverterUInt64.readFromCursor(c),nbRoundNonces:FfiConverterUInt32.readFromCursor(c),vtxoExitDelta:FfiConverterUInt32.readFromCursor(c),vtxoLifetime:FfiConverterUInt32.readFromCursor(c),vtxoExpiryDelta:FfiConverterUInt32.readFromCursor(c),htlcSendExpiryDelta:FfiConverterUInt32.readFromCursor(c),htlcExpiryDelta:FfiConverterUInt32.readFromCursor(c),maxVtxoAmountSats:FfiConverterOptionalUInt64.readFromCursor(c),requiredBoardConfirmations:FfiConverterUInt32.readFromCursor(c),maxUserInvoiceCltvDelta:FfiConverterUInt16.readFromCursor(c),minBoardAmountSats:FfiConverterUInt64.readFromCursor(c),lnReceiveAntiDosRequired:FfiConverterBool.readFromCursor(c),feeSchedule:FfiConverterTypeFeeSchedule.readFromCursor(c),maxVtxoExitDepth:FfiConverterUInt16.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterTypeNetwork.writeIntoCursor(value.network,c);FfiConverterString.writeIntoCursor(value.serverPubkey,c);FfiConverterUInt64.writeIntoCursor(value.roundIntervalSecs,c);FfiConverterUInt32.writeIntoCursor(value.nbRoundNonces,c);FfiConverterUInt32.writeIntoCursor(value.vtxoExitDelta,c);FfiConverterUInt32.writeIntoCursor(value.vtxoLifetime,c);FfiConverterUInt32.writeIntoCursor(value.vtxoExpiryDelta,c);FfiConverterUInt32.writeIntoCursor(value.htlcSendExpiryDelta,c);FfiConverterUInt32.writeIntoCursor(value.htlcExpiryDelta,c);FfiConverterOptionalUInt64.writeIntoCursor(value.maxVtxoAmountSats,c);FfiConverterUInt32.writeIntoCursor(value.requiredBoardConfirmations,c);FfiConverterUInt16.writeIntoCursor(value.maxUserInvoiceCltvDelta,c);FfiConverterUInt64.writeIntoCursor(value.minBoardAmountSats,c);FfiConverterBool.writeIntoCursor(value.lnReceiveAntiDosRequired,c);FfiConverterTypeFeeSchedule.writeIntoCursor(value.feeSchedule,c);FfiConverterUInt16.writeIntoCursor(value.maxVtxoExitDepth,c);}allocationSize(value){return FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterString.allocationSize(value.serverPubkey)+FfiConverterUInt64.allocationSize(value.roundIntervalSecs)+FfiConverterUInt32.allocationSize(value.nbRoundNonces)+FfiConverterUInt32.allocationSize(value.vtxoExitDelta)+FfiConverterUInt32.allocationSize(value.vtxoLifetime)+FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta)+FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta)+FfiConverterUInt32.allocationSize(value.htlcExpiryDelta)+FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats)+FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations)+FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta)+FfiConverterUInt64.allocationSize(value.minBoardAmountSats)+FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired)+FfiConverterTypeFeeSchedule.allocationSize(value.feeSchedule)+FfiConverterUInt16.allocationSize(value.maxVtxoExitDepth);}};return new FFIConverter();})();// Enum: PaymentMethod
|
|
137
|
+
*/export const ArkInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeArkInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{network:FfiConverterTypeNetwork.readFromCursor(c),serverPubkey:FfiConverterString.readFromCursor(c),roundIntervalSecs:FfiConverterUInt64.readFromCursor(c),nbRoundNonces:FfiConverterUInt32.readFromCursor(c),vtxoExitDelta:FfiConverterUInt32.readFromCursor(c),vtxoLifetime:FfiConverterUInt32.readFromCursor(c),vtxoExpiryDelta:FfiConverterUInt32.readFromCursor(c),htlcSendExpiryDelta:FfiConverterUInt32.readFromCursor(c),htlcExpiryDelta:FfiConverterUInt32.readFromCursor(c),maxVtxoAmountSats:FfiConverterOptionalUInt64.readFromCursor(c),requiredBoardConfirmations:FfiConverterUInt32.readFromCursor(c),maxUserInvoiceCltvDelta:FfiConverterUInt16.readFromCursor(c),minBoardAmountSats:FfiConverterUInt64.readFromCursor(c),lnReceiveAntiDosRequired:FfiConverterBool.readFromCursor(c),feeSchedule:FfiConverterTypeFeeSchedule.readFromCursor(c),maxVtxoExitDepth:FfiConverterUInt16.readFromCursor(c),maxRoundParticipationOutputs:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterTypeNetwork.writeIntoCursor(value.network,c);FfiConverterString.writeIntoCursor(value.serverPubkey,c);FfiConverterUInt64.writeIntoCursor(value.roundIntervalSecs,c);FfiConverterUInt32.writeIntoCursor(value.nbRoundNonces,c);FfiConverterUInt32.writeIntoCursor(value.vtxoExitDelta,c);FfiConverterUInt32.writeIntoCursor(value.vtxoLifetime,c);FfiConverterUInt32.writeIntoCursor(value.vtxoExpiryDelta,c);FfiConverterUInt32.writeIntoCursor(value.htlcSendExpiryDelta,c);FfiConverterUInt32.writeIntoCursor(value.htlcExpiryDelta,c);FfiConverterOptionalUInt64.writeIntoCursor(value.maxVtxoAmountSats,c);FfiConverterUInt32.writeIntoCursor(value.requiredBoardConfirmations,c);FfiConverterUInt16.writeIntoCursor(value.maxUserInvoiceCltvDelta,c);FfiConverterUInt64.writeIntoCursor(value.minBoardAmountSats,c);FfiConverterBool.writeIntoCursor(value.lnReceiveAntiDosRequired,c);FfiConverterTypeFeeSchedule.writeIntoCursor(value.feeSchedule,c);FfiConverterUInt16.writeIntoCursor(value.maxVtxoExitDepth,c);FfiConverterUInt32.writeIntoCursor(value.maxRoundParticipationOutputs,c);}allocationSize(value){return FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterString.allocationSize(value.serverPubkey)+FfiConverterUInt64.allocationSize(value.roundIntervalSecs)+FfiConverterUInt32.allocationSize(value.nbRoundNonces)+FfiConverterUInt32.allocationSize(value.vtxoExitDelta)+FfiConverterUInt32.allocationSize(value.vtxoLifetime)+FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta)+FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta)+FfiConverterUInt32.allocationSize(value.htlcExpiryDelta)+FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats)+FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations)+FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta)+FfiConverterUInt64.allocationSize(value.minBoardAmountSats)+FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired)+FfiConverterTypeFeeSchedule.allocationSize(value.feeSchedule)+FfiConverterUInt16.allocationSize(value.maxVtxoExitDepth)+FfiConverterUInt32.allocationSize(value.maxRoundParticipationOutputs);}};return new FFIConverter();})();// Enum: PaymentMethod
|
|
134
138
|
export let PaymentMethod_Tags=/*#__PURE__*/function(PaymentMethod_Tags){PaymentMethod_Tags["Ark"]="Ark";PaymentMethod_Tags["Bitcoin"]="Bitcoin";PaymentMethod_Tags["OutputScript"]="OutputScript";PaymentMethod_Tags["Invoice"]="Invoice";PaymentMethod_Tags["Offer"]="Offer";PaymentMethod_Tags["LightningAddress"]="LightningAddress";PaymentMethod_Tags["Lnurl"]="Lnurl";PaymentMethod_Tags["Custom"]="Custom";return PaymentMethod_Tags;}({});/**
|
|
135
139
|
* A payment destination, mirroring `bark::movement::PaymentMethod`.
|
|
136
140
|
*
|
|
@@ -261,25 +265,28 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
261
265
|
*//**
|
|
262
266
|
* Generated factory for {@link BlockRef} record objects.
|
|
263
267
|
*/export const BlockRef=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBlockRef=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{height:FfiConverterUInt32.readFromCursor(c),hash:FfiConverterString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt32.writeIntoCursor(value.height,c);FfiConverterString.writeIntoCursor(value.hash,c);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.height)+FfiConverterString.allocationSize(value.hash);}};return new FFIConverter();})();/**
|
|
264
|
-
* Destination for an externally funded board (e.g. a payjoin receive)
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
* `
|
|
268
|
-
*
|
|
269
|
-
* after the sender changes the
|
|
268
|
+
* Destination for an externally funded board (e.g. a payjoin receive),
|
|
269
|
+
* mirroring `bark::BoardFundingAddress`.
|
|
270
|
+
*
|
|
271
|
+
* The funding script commits to `user_pubkey` and `expiry_height`, so persist
|
|
272
|
+
* this record and pass it back unchanged to `board_psbt` once the funding
|
|
273
|
+
* PSBT is available — including on retries after the sender changes the
|
|
274
|
+
* transaction. Fund it right away: the board VTXO's lifetime started when
|
|
275
|
+
* the address was made, and once it expires the server can sweep the funding
|
|
276
|
+
* output alone.
|
|
270
277
|
*//**
|
|
271
278
|
* Generated factory for {@link BoardFundingInfo} record objects.
|
|
272
|
-
*/export const BoardFundingInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBoardFundingInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{address:FfiConverterString.readFromCursor(c),expiryHeight:FfiConverterUInt32.readFromCursor(c),
|
|
279
|
+
*/export const BoardFundingInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBoardFundingInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{address:FfiConverterString.readFromCursor(c),expiryHeight:FfiConverterUInt32.readFromCursor(c),userPubkey:FfiConverterString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.address,c);FfiConverterUInt32.writeIntoCursor(value.expiryHeight,c);FfiConverterString.writeIntoCursor(value.userPubkey,c);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterUInt32.allocationSize(value.expiryHeight)+FfiConverterString.allocationSize(value.userPubkey);}};return new FFIConverter();})();/**
|
|
273
280
|
* Fields of a BOLT11 invoice, as returned by `decode_bolt11_invoice`.
|
|
274
281
|
*//**
|
|
275
282
|
* Generated factory for {@link Bolt11InvoiceDetails} record objects.
|
|
276
283
|
*/export const Bolt11InvoiceDetails=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBolt11InvoiceDetails=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{paymentHash:FfiConverterString.readFromCursor(c),amountMsat:FfiConverterOptionalUInt64.readFromCursor(c),amountSats:FfiConverterOptionalUInt64.readFromCursor(c),description:FfiConverterOptionalString.readFromCursor(c),descriptionHash:FfiConverterOptionalString.readFromCursor(c),payeePubkey:FfiConverterString.readFromCursor(c),createdAt:FfiConverterUInt64.readFromCursor(c),expiresAt:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.paymentHash,c);FfiConverterOptionalUInt64.writeIntoCursor(value.amountMsat,c);FfiConverterOptionalUInt64.writeIntoCursor(value.amountSats,c);FfiConverterOptionalString.writeIntoCursor(value.description,c);FfiConverterOptionalString.writeIntoCursor(value.descriptionHash,c);FfiConverterString.writeIntoCursor(value.payeePubkey,c);FfiConverterUInt64.writeIntoCursor(value.createdAt,c);FfiConverterUInt64.writeIntoCursor(value.expiresAt,c);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterOptionalUInt64.allocationSize(value.amountMsat)+FfiConverterOptionalUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.description)+FfiConverterOptionalString.allocationSize(value.descriptionHash)+FfiConverterString.allocationSize(value.payeePubkey)+FfiConverterUInt64.allocationSize(value.createdAt)+FfiConverterUInt64.allocationSize(value.expiresAt);}};return new FFIConverter();})();/**
|
|
277
284
|
* Generated factory for {@link Config} record objects.
|
|
278
|
-
*/export const Config=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{serverAddress:FfiConverterString.readFromCursor(c),serverAccessToken:FfiConverterOptionalString.readFromCursor(c),esploraAddress:FfiConverterOptionalString.readFromCursor(c),bitcoindAddress:FfiConverterOptionalString.readFromCursor(c),bitcoindCookiefile:FfiConverterOptionalString.readFromCursor(c),bitcoindUser:FfiConverterOptionalString.readFromCursor(c),bitcoindPass:FfiConverterOptionalString.readFromCursor(c),vtxoRefreshExpiryThreshold:FfiConverterOptionalUInt16.readFromCursor(c),vtxoExitMargin:FfiConverterOptionalUInt16.readFromCursor(c),htlcRecvClaimDelta:FfiConverterOptionalUInt16.readFromCursor(c),fallbackFeeRate:FfiConverterOptionalUInt64.readFromCursor(c),roundTxRequiredConfirmations:FfiConverterOptionalUInt32.readFromCursor(c),daemonSyncIntervalSecs:FfiConverterOptionalUInt64.readFromCursor(c),offboardRequiredConfirmations:FfiConverterOptionalUInt32.readFromCursor(c),daemonManualSync:FfiConverterOptionalBoolean.readFromCursor(c),lightningReceiveClaimRetries:FfiConverterOptionalUInt8.readFromCursor(c),userAgent:FfiConverterOptionalString.readFromCursor(c),vtxoKeyGapLimit:FfiConverterOptionalUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.serverAddress,c);FfiConverterOptionalString.writeIntoCursor(value.serverAccessToken,c);FfiConverterOptionalString.writeIntoCursor(value.esploraAddress,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindAddress,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindCookiefile,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindUser,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindPass,c);FfiConverterOptionalUInt16.writeIntoCursor(value.vtxoRefreshExpiryThreshold,c);FfiConverterOptionalUInt16.writeIntoCursor(value.vtxoExitMargin,c);FfiConverterOptionalUInt16.writeIntoCursor(value.htlcRecvClaimDelta,c);FfiConverterOptionalUInt64.writeIntoCursor(value.fallbackFeeRate,c);FfiConverterOptionalUInt32.writeIntoCursor(value.roundTxRequiredConfirmations,c);FfiConverterOptionalUInt64.writeIntoCursor(value.daemonSyncIntervalSecs,c);FfiConverterOptionalUInt32.writeIntoCursor(value.offboardRequiredConfirmations,c);FfiConverterOptionalBoolean.writeIntoCursor(value.daemonManualSync,c);FfiConverterOptionalUInt8.writeIntoCursor(value.lightningReceiveClaimRetries,c);FfiConverterOptionalString.writeIntoCursor(value.userAgent,c);FfiConverterOptionalUInt32.writeIntoCursor(value.vtxoKeyGapLimit,c);}allocationSize(value){return FfiConverterString.allocationSize(value.serverAddress)+FfiConverterOptionalString.allocationSize(value.serverAccessToken)+FfiConverterOptionalString.allocationSize(value.esploraAddress)+FfiConverterOptionalString.allocationSize(value.bitcoindAddress)+FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile)+FfiConverterOptionalString.allocationSize(value.bitcoindUser)+FfiConverterOptionalString.allocationSize(value.bitcoindPass)+FfiConverterOptionalUInt16.allocationSize(value.vtxoRefreshExpiryThreshold)+FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin)+FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta)+FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate)+FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations)+FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs)+FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations)+FfiConverterOptionalBoolean.allocationSize(value.daemonManualSync)+FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries)+FfiConverterOptionalString.allocationSize(value.userAgent)+FfiConverterOptionalUInt32.allocationSize(value.vtxoKeyGapLimit);}};return new FFIConverter();})();/**
|
|
285
|
+
*/export const Config=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeConfig=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{serverAddress:FfiConverterString.readFromCursor(c),serverAccessToken:FfiConverterOptionalString.readFromCursor(c),esploraAddress:FfiConverterOptionalString.readFromCursor(c),bitcoindAddress:FfiConverterOptionalString.readFromCursor(c),bitcoindCookiefile:FfiConverterOptionalString.readFromCursor(c),bitcoindUser:FfiConverterOptionalString.readFromCursor(c),bitcoindPass:FfiConverterOptionalString.readFromCursor(c),vtxoRefreshExpiryThreshold:FfiConverterOptionalUInt16.readFromCursor(c),vtxoExitMargin:FfiConverterOptionalUInt16.readFromCursor(c),boardLifetime:FfiConverterOptionalUInt16.readFromCursor(c),htlcRecvClaimDelta:FfiConverterOptionalUInt16.readFromCursor(c),fallbackFeeRate:FfiConverterOptionalUInt64.readFromCursor(c),roundTxRequiredConfirmations:FfiConverterOptionalUInt32.readFromCursor(c),daemonSyncIntervalSecs:FfiConverterOptionalUInt64.readFromCursor(c),offboardRequiredConfirmations:FfiConverterOptionalUInt32.readFromCursor(c),daemonManualSync:FfiConverterOptionalBoolean.readFromCursor(c),lightningReceiveClaimRetries:FfiConverterOptionalUInt8.readFromCursor(c),userAgent:FfiConverterOptionalString.readFromCursor(c),vtxoKeyGapLimit:FfiConverterOptionalUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.serverAddress,c);FfiConverterOptionalString.writeIntoCursor(value.serverAccessToken,c);FfiConverterOptionalString.writeIntoCursor(value.esploraAddress,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindAddress,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindCookiefile,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindUser,c);FfiConverterOptionalString.writeIntoCursor(value.bitcoindPass,c);FfiConverterOptionalUInt16.writeIntoCursor(value.vtxoRefreshExpiryThreshold,c);FfiConverterOptionalUInt16.writeIntoCursor(value.vtxoExitMargin,c);FfiConverterOptionalUInt16.writeIntoCursor(value.boardLifetime,c);FfiConverterOptionalUInt16.writeIntoCursor(value.htlcRecvClaimDelta,c);FfiConverterOptionalUInt64.writeIntoCursor(value.fallbackFeeRate,c);FfiConverterOptionalUInt32.writeIntoCursor(value.roundTxRequiredConfirmations,c);FfiConverterOptionalUInt64.writeIntoCursor(value.daemonSyncIntervalSecs,c);FfiConverterOptionalUInt32.writeIntoCursor(value.offboardRequiredConfirmations,c);FfiConverterOptionalBoolean.writeIntoCursor(value.daemonManualSync,c);FfiConverterOptionalUInt8.writeIntoCursor(value.lightningReceiveClaimRetries,c);FfiConverterOptionalString.writeIntoCursor(value.userAgent,c);FfiConverterOptionalUInt32.writeIntoCursor(value.vtxoKeyGapLimit,c);}allocationSize(value){return FfiConverterString.allocationSize(value.serverAddress)+FfiConverterOptionalString.allocationSize(value.serverAccessToken)+FfiConverterOptionalString.allocationSize(value.esploraAddress)+FfiConverterOptionalString.allocationSize(value.bitcoindAddress)+FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile)+FfiConverterOptionalString.allocationSize(value.bitcoindUser)+FfiConverterOptionalString.allocationSize(value.bitcoindPass)+FfiConverterOptionalUInt16.allocationSize(value.vtxoRefreshExpiryThreshold)+FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin)+FfiConverterOptionalUInt16.allocationSize(value.boardLifetime)+FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta)+FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate)+FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations)+FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs)+FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations)+FfiConverterOptionalBoolean.allocationSize(value.daemonManualSync)+FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries)+FfiConverterOptionalString.allocationSize(value.userAgent)+FfiConverterOptionalUInt32.allocationSize(value.vtxoKeyGapLimit);}};return new FFIConverter();})();/**
|
|
279
286
|
* Parameters for creating a CPFP (Child Pays For Parent) transaction
|
|
280
287
|
*//**
|
|
281
288
|
* Generated factory for {@link CpfpParams} record objects.
|
|
282
|
-
*/export const CpfpParams=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCpfpParams=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txHex:FfiConverterString.readFromCursor(c),feesType:FfiConverterString.readFromCursor(c),effectiveFeeRateSatPerVb:FfiConverterUInt64.readFromCursor(c),
|
|
289
|
+
*/export const CpfpParams=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeCpfpParams=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txHex:FfiConverterString.readFromCursor(c),feesType:FfiConverterString.readFromCursor(c),effectiveFeeRateSatPerVb:FfiConverterUInt64.readFromCursor(c),replacedFeeSats:FfiConverterOptionalUInt64.readFromCursor(c),replacedFeeRateSatPerVb:FfiConverterOptionalUInt64.readFromCursor(c),incrementalRelayFeeSatPerVb:FfiConverterOptionalUInt64.readFromCursor(c),parentInMempool:FfiConverterOptionalBoolean.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txHex,c);FfiConverterString.writeIntoCursor(value.feesType,c);FfiConverterUInt64.writeIntoCursor(value.effectiveFeeRateSatPerVb,c);FfiConverterOptionalUInt64.writeIntoCursor(value.replacedFeeSats,c);FfiConverterOptionalUInt64.writeIntoCursor(value.replacedFeeRateSatPerVb,c);FfiConverterOptionalUInt64.writeIntoCursor(value.incrementalRelayFeeSatPerVb,c);FfiConverterOptionalBoolean.writeIntoCursor(value.parentInMempool,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txHex)+FfiConverterString.allocationSize(value.feesType)+FfiConverterUInt64.allocationSize(value.effectiveFeeRateSatPerVb)+FfiConverterOptionalUInt64.allocationSize(value.replacedFeeSats)+FfiConverterOptionalUInt64.allocationSize(value.replacedFeeRateSatPerVb)+FfiConverterOptionalUInt64.allocationSize(value.incrementalRelayFeeSatPerVb)+FfiConverterOptionalBoolean.allocationSize(value.parentInMempool);}};return new FFIConverter();})();/**
|
|
283
290
|
* What [`read_datadir_info`] found in a wallet directory.
|
|
284
291
|
*//**
|
|
285
292
|
* Generated factory for {@link DatadirInfo} record objects.
|
|
@@ -382,7 +389,12 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
382
389
|
* Claim transaction for exited funds
|
|
383
390
|
*//**
|
|
384
391
|
* 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();})()
|
|
392
|
+
*/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();})();/**
|
|
393
|
+
* Fee a transaction commits together with its unconfirmed ancestors,
|
|
394
|
+
* mirroring `bark::exit::FeeInfo`.
|
|
395
|
+
*//**
|
|
396
|
+
* Generated factory for {@link ExitFeeInfo} record objects.
|
|
397
|
+
*/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
398
|
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
399
|
* Broadcast/confirmation status of one transaction in an exit chain,
|
|
388
400
|
* mirroring `bark::exit::ExitTxStatus`.
|
|
@@ -497,6 +509,10 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
497
509
|
*//**
|
|
498
510
|
* Generated factory for {@link ExitProgressStatus} record objects.
|
|
499
511
|
*/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();})();/**
|
|
512
|
+
* A transaction of an exit chain, mirroring `bark::exit::TransactionInfo`.
|
|
513
|
+
*//**
|
|
514
|
+
* Generated factory for {@link ExitTransactionInfo} record objects.
|
|
515
|
+
*/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
516
|
* One transaction of an exit: the exit transaction itself and, once it was
|
|
501
517
|
* fee-bumped, the child that confirms it. A unilateral exit is a chain of
|
|
502
518
|
* these, root first.
|
|
@@ -552,12 +568,78 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
552
568
|
* Generated factory for {@link PaymentRequest} record objects.
|
|
553
569
|
*/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
570
|
* 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();})()
|
|
571
|
+
*/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
|
|
572
|
+
export let PresignedExitStatus_Tags=/*#__PURE__*/function(PresignedExitStatus_Tags){PresignedExitStatus_Tags["FullySigned"]="FullySigned";PresignedExitStatus_Tags["PartiallySigned"]="PartiallySigned";PresignedExitStatus_Tags["Unsigned"]="Unsigned";return PresignedExitStatus_Tags;}({});/**
|
|
573
|
+
* How much of a [`PresignedExit`]'s remaining broadcast work could be funded
|
|
574
|
+
* and signed, mirroring `bark::exit::PresignedExitStatus`.
|
|
575
|
+
*/export const PresignedExitStatus=(()=>{/**
|
|
576
|
+
* Every package has a signed child. The exit's broadcast completes once
|
|
577
|
+
* wave `exited_in_wave` (an index into [`PresignedExits::waves`])
|
|
578
|
+
* confirms; `None` when the chain is already confirmed and there is
|
|
579
|
+
* nothing to broadcast. `fee_info` totals the children's fees over the
|
|
580
|
+
* combined weight of this exit's packages.
|
|
581
|
+
*/class FullySigned_ extends UniffiEnum{/**
|
|
582
|
+
* @private
|
|
583
|
+
* This field is private and should not be used, use `tag` instead.
|
|
584
|
+
*/[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;}}/**
|
|
585
|
+
* Confirmed onchain funds ran out mid-chain: wave `last_wave` holds this
|
|
586
|
+
* exit's last signed package and [`PresignedExit::unsigned`] continues
|
|
587
|
+
* right after it.
|
|
588
|
+
*/class PartiallySigned_ extends UniffiEnum{/**
|
|
589
|
+
* @private
|
|
590
|
+
* This field is private and should not be used, use `tag` instead.
|
|
591
|
+
*/[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;}}/**
|
|
592
|
+
* No package could be funded.
|
|
593
|
+
*/class Unsigned_ extends UniffiEnum{/**
|
|
594
|
+
* @private
|
|
595
|
+
* This field is private and should not be used, use `tag` instead.
|
|
596
|
+
*/[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_});})();/**
|
|
597
|
+
* How much of a [`PresignedExit`]'s remaining broadcast work could be funded
|
|
598
|
+
* and signed, mirroring `bark::exit::PresignedExitStatus`.
|
|
599
|
+
*/// FfiConverter for enum PresignedExitStatus
|
|
600
|
+
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.
|
|
601
|
+
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();})();/**
|
|
602
|
+
* The presigned broadcast work for one VTXO, mirroring
|
|
603
|
+
* `bark::exit::PresignedExit`.
|
|
604
|
+
*//**
|
|
605
|
+
* Generated factory for {@link PresignedExit} record objects.
|
|
606
|
+
*/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();})();/**
|
|
607
|
+
* A signed CPFP child and the fee it commits, mirroring
|
|
608
|
+
* `bark::exit::PresignedExitChildInfo`.
|
|
609
|
+
*//**
|
|
610
|
+
* Generated factory for {@link PresignedExitChild} record objects.
|
|
611
|
+
*/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();})();/**
|
|
612
|
+
* An `(exit, child)` transaction package, broadcast as one unit (e.g. with
|
|
613
|
+
* `submitpackage`), mirroring `bark::exit::PresignedExitPackage`.
|
|
614
|
+
*//**
|
|
615
|
+
* Generated factory for {@link PresignedExitPackage} record objects.
|
|
616
|
+
*/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();})();/**
|
|
617
|
+
* One step of a presigned broadcast plan, mirroring
|
|
618
|
+
* `bark::exit::PresignedWave`. See [`PresignedExits`] for the rules.
|
|
619
|
+
*//**
|
|
620
|
+
* Generated factory for {@link PresignedWave} record objects.
|
|
621
|
+
*/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();})();/**
|
|
622
|
+
* Presigned emergency-exit chains for a set of VTXOs: a wave-by-wave
|
|
623
|
+
* broadcast plan plus a per-VTXO summary, mirroring
|
|
624
|
+
* `bark::exit::PresignedExits`.
|
|
625
|
+
*
|
|
626
|
+
* Execute the plan in wave order: broadcast all of a wave's packages
|
|
627
|
+
* together, then wait for every one, and its `in_mempool` transactions, to
|
|
628
|
+
* confirm before the next wave. Each wave's children spend change confirmed
|
|
629
|
+
* by the previous wave.
|
|
630
|
+
*
|
|
631
|
+
* Presigning reserves no funds, so a later spend from the onchain wallet can
|
|
632
|
+
* invalidate the remaining children. It does reveal the change addresses
|
|
633
|
+
* those children pay to. The children are fully signed: treat the result as
|
|
634
|
+
* sensitive and store it accordingly.
|
|
635
|
+
*//**
|
|
636
|
+
* Generated factory for {@link PresignedExits} record objects.
|
|
637
|
+
*/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
638
|
* One bucket of a [`RecoveryReport`].
|
|
557
639
|
*
|
|
558
640
|
* `total_sats` only sums the VTXOs whose amount is known, so it can
|
|
559
|
-
* under-count `failed`, where a VTXO may
|
|
560
|
-
* `vtxo_ids` is sorted
|
|
641
|
+
* under-count `failed`, `abandoned` and `not_found`, where a VTXO may not
|
|
642
|
+
* have been fetched. `vtxo_ids` is sorted as strings.
|
|
561
643
|
*//**
|
|
562
644
|
* Generated factory for {@link RecoveryBucket} record objects.
|
|
563
645
|
*/export const RecoveryBucket=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeRecoveryBucket=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoIds:FfiConverterSequenceString.readFromCursor(c),totalSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterSequenceString.writeIntoCursor(value.vtxoIds,c);FfiConverterUInt64.writeIntoCursor(value.totalSats,c);}allocationSize(value){return FfiConverterSequenceString.allocationSize(value.vtxoIds)+FfiConverterUInt64.allocationSize(value.totalSats);}};return new FFIConverter();})();/**
|
|
@@ -567,11 +649,22 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
567
649
|
* `skipped` vs `failed` is the load-bearing distinction: a `skipped` VTXO was
|
|
568
650
|
* decided not to be spendable (spent, exited, or reported non-spendable),
|
|
569
651
|
* while a `failed` one could not be decided because of an error, so its funds
|
|
570
|
-
* may still be missing. `failed` is
|
|
571
|
-
*
|
|
652
|
+
* may still be missing. `failed` is retried by every sync while a seed
|
|
653
|
+
* recovery is in progress, and via `recover_vtxos`; an `abandoned` one was
|
|
654
|
+
* given up on after too many attempts; a `foreign` id instead sits beyond the
|
|
655
|
+
* key-derivation gap limit and needs a wider scan.
|
|
572
656
|
*//**
|
|
573
657
|
* Generated factory for {@link RecoveryReport} record objects.
|
|
574
|
-
*/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();})();/**
|
|
658
|
+
*/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),notFound:FfiConverterTypeRecoveryBucket.readFromCursor(c),abandoned: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);FfiConverterTypeRecoveryBucket.writeIntoCursor(value.notFound,c);FfiConverterTypeRecoveryBucket.writeIntoCursor(value.abandoned,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)+FfiConverterTypeRecoveryBucket.allocationSize(value.notFound)+FfiConverterTypeRecoveryBucket.allocationSize(value.abandoned)+FfiConverterBool.allocationSize(value.isComplete);}};return new FFIConverter();})();/**
|
|
659
|
+
* The exit transactions one VTXO still needs confirmed to be exited.
|
|
660
|
+
*//**
|
|
661
|
+
* Generated factory for {@link RemainingExit} record objects.
|
|
662
|
+
*/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();})();/**
|
|
663
|
+
* The exit transactions of a set of VTXOs still awaiting confirmation,
|
|
664
|
+
* mirroring `bark::exit::RemainingExitTransactions`.
|
|
665
|
+
*//**
|
|
666
|
+
* Generated factory for {@link RemainingExitTransactions} record objects.
|
|
667
|
+
*/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
668
|
* Lifecycle phase of a round participation, mirroring
|
|
576
669
|
* `bark::round::RoundFlowKind`.
|
|
577
670
|
*
|
|
@@ -726,7 +819,8 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
726
819
|
constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorGuardSymbol]=uniffiTypeOnchainWalletObjectFactory.bless(pointer);}/**
|
|
727
820
|
* Callback-backed wallet for foreign-language implementations.
|
|
728
821
|
*/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
|
|
822
|
+
* BDK-backed wallet. Opens the shared sqlite cache in `datadir`, a
|
|
823
|
+
* filesystem path or a `file://` URI.
|
|
730
824
|
*/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
825
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
732
826
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
@@ -883,46 +977,59 @@ export let PaymentResult_Tags=/*#__PURE__*/function(PaymentResult_Tags){PaymentR
|
|
|
883
977
|
*/// FfiConverter for enum PaymentResult
|
|
884
978
|
const FfiConverterTypePaymentResult=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new PaymentResult.Onchain({txid:FfiConverterString.readFromCursor(c)});case 2:return new PaymentResult.Lightning({invoice:FfiConverterString.readFromCursor(c),paymentHash:FfiConverterString.readFromCursor(c)});case 3:return new PaymentResult.Ark({movementId:FfiConverterUInt32.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case PaymentResult_Tags.Onchain:{c.writeI32(1);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.txid,c);return;}case PaymentResult_Tags.Lightning:{c.writeI32(2);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.invoice,c);FfiConverterString.writeIntoCursor(inner.paymentHash,c);return;}case PaymentResult_Tags.Ark:{c.writeI32(3);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.movementId,c);return;}default:// Throwing from here means that PaymentResult_Tags hasn't matched an ordinal.
|
|
885
979
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentResult_Tags.Onchain:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.txid);return size;}case PaymentResult_Tags.Lightning:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.invoice);size+=FfiConverterString.allocationSize(inner.paymentHash);return size;}case PaymentResult_Tags.Ark:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.movementId);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: RecoveryStatus
|
|
886
|
-
export let RecoveryStatus_Tags=/*#__PURE__*/function(RecoveryStatus_Tags){RecoveryStatus_Tags["NotRun"]="NotRun";RecoveryStatus_Tags["Failed"]="Failed";RecoveryStatus_Tags["Completed"]="Completed";return RecoveryStatus_Tags;}({});/**
|
|
887
|
-
* Outcome of the seed
|
|
980
|
+
export let RecoveryStatus_Tags=/*#__PURE__*/function(RecoveryStatus_Tags){RecoveryStatus_Tags["NotRun"]="NotRun";RecoveryStatus_Tags["Failed"]="Failed";RecoveryStatus_Tags["InProgress"]="InProgress";RecoveryStatus_Tags["Completed"]="Completed";return RecoveryStatus_Tags;}({});/**
|
|
981
|
+
* Outcome of the seed recovery as `Wallet::open` saw it, mirroring
|
|
888
982
|
* `bark::RecoveryStatus`.
|
|
889
983
|
*
|
|
890
|
-
* The
|
|
891
|
-
*
|
|
892
|
-
* `Failed` means the
|
|
893
|
-
*
|
|
894
|
-
*
|
|
984
|
+
* The variants are distinguishable on purpose: `NotRun` means nothing was
|
|
985
|
+
* attempted (wallet already existed locally without a recovery in progress,
|
|
986
|
+
* or `skip_recovery` was set), `Failed` means the recovery could not be
|
|
987
|
+
* started or read back so funds may be missing, `InProgress` means it stopped
|
|
988
|
+
* before it was done and resumes on every sync, and `Completed` carries the
|
|
989
|
+
* final report — whose `is_complete` can still be `false` for individual
|
|
990
|
+
* VTXOs.
|
|
895
991
|
*
|
|
896
|
-
* Serde/TS tags: `"not-run"` | `"failed"` | `"completed"`.
|
|
992
|
+
* Serde/TS tags: `"not-run"` | `"failed"` | `"in-progress"` | `"completed"`.
|
|
897
993
|
*/export const RecoveryStatus=(()=>{/**
|
|
898
994
|
* No scan was attempted.
|
|
899
995
|
*/class NotRun_ extends UniffiEnum{/**
|
|
900
996
|
* @private
|
|
901
997
|
* This field is private and should not be used, use `tag` instead.
|
|
902
998
|
*/[uniffiTypeNameSymbol]="RecoveryStatus";tag=RecoveryStatus_Tags.NotRun;constructor(){super("RecoveryStatus","NotRun");}static new(){return new NotRun_();}static instanceOf(obj){return obj.tag===RecoveryStatus_Tags.NotRun;}}/**
|
|
903
|
-
* The
|
|
999
|
+
* The recovery could not be started or its state could not be read
|
|
1000
|
+
* back.
|
|
904
1001
|
*/class Failed_ extends UniffiEnum{/**
|
|
905
1002
|
* @private
|
|
906
1003
|
* This field is private and should not be used, use `tag` instead.
|
|
907
1004
|
*/[uniffiTypeNameSymbol]="RecoveryStatus";tag=RecoveryStatus_Tags.Failed;constructor(inner){super("RecoveryStatus","Failed");this.inner=Object.freeze(inner);}static new(inner){return new Failed_(inner);}static instanceOf(obj){return obj.tag===RecoveryStatus_Tags.Failed;}}/**
|
|
908
|
-
* The
|
|
1005
|
+
* The recovery stopped before it was done, on an error or on VTXOs it
|
|
1006
|
+
* could not decide on yet. The report holds what it decided so far; its
|
|
1007
|
+
* `failed` VTXOs are kept locked. Every sync resumes the recovery, see
|
|
1008
|
+
* `Wallet::pending_recovery`.
|
|
1009
|
+
*/class InProgress_ extends UniffiEnum{/**
|
|
1010
|
+
* @private
|
|
1011
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1012
|
+
*/[uniffiTypeNameSymbol]="RecoveryStatus";tag=RecoveryStatus_Tags.InProgress;constructor(inner){super("RecoveryStatus","InProgress");this.inner=Object.freeze(inner);}static new(inner){return new InProgress_(inner);}static instanceOf(obj){return obj.tag===RecoveryStatus_Tags.InProgress;}}/**
|
|
1013
|
+
* The recovery is done: no VTXO is left failed.
|
|
909
1014
|
*/class Completed_ extends UniffiEnum{/**
|
|
910
1015
|
* @private
|
|
911
1016
|
* This field is private and should not be used, use `tag` instead.
|
|
912
|
-
*/[uniffiTypeNameSymbol]="RecoveryStatus";tag=RecoveryStatus_Tags.Completed;constructor(inner){super("RecoveryStatus","Completed");this.inner=Object.freeze(inner);}static new(inner){return new Completed_(inner);}static instanceOf(obj){return obj.tag===RecoveryStatus_Tags.Completed;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="RecoveryStatus";}return Object.freeze({instanceOf,NotRun:NotRun_,Failed:Failed_,Completed:Completed_});})();/**
|
|
913
|
-
* Outcome of the seed
|
|
1017
|
+
*/[uniffiTypeNameSymbol]="RecoveryStatus";tag=RecoveryStatus_Tags.Completed;constructor(inner){super("RecoveryStatus","Completed");this.inner=Object.freeze(inner);}static new(inner){return new Completed_(inner);}static instanceOf(obj){return obj.tag===RecoveryStatus_Tags.Completed;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="RecoveryStatus";}return Object.freeze({instanceOf,NotRun:NotRun_,Failed:Failed_,InProgress:InProgress_,Completed:Completed_});})();/**
|
|
1018
|
+
* Outcome of the seed recovery as `Wallet::open` saw it, mirroring
|
|
914
1019
|
* `bark::RecoveryStatus`.
|
|
915
1020
|
*
|
|
916
|
-
* The
|
|
917
|
-
*
|
|
918
|
-
* `Failed` means the
|
|
919
|
-
*
|
|
920
|
-
*
|
|
1021
|
+
* The variants are distinguishable on purpose: `NotRun` means nothing was
|
|
1022
|
+
* attempted (wallet already existed locally without a recovery in progress,
|
|
1023
|
+
* or `skip_recovery` was set), `Failed` means the recovery could not be
|
|
1024
|
+
* started or read back so funds may be missing, `InProgress` means it stopped
|
|
1025
|
+
* before it was done and resumes on every sync, and `Completed` carries the
|
|
1026
|
+
* final report — whose `is_complete` can still be `false` for individual
|
|
1027
|
+
* VTXOs.
|
|
921
1028
|
*
|
|
922
|
-
* Serde/TS tags: `"not-run"` | `"failed"` | `"completed"`.
|
|
1029
|
+
* Serde/TS tags: `"not-run"` | `"failed"` | `"in-progress"` | `"completed"`.
|
|
923
1030
|
*/// FfiConverter for enum RecoveryStatus
|
|
924
|
-
const FfiConverterTypeRecoveryStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new RecoveryStatus.NotRun();case 2:return new RecoveryStatus.Failed({message:FfiConverterString.readFromCursor(c)});case 3:return new RecoveryStatus.Completed({report:FfiConverterTypeRecoveryReport.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case RecoveryStatus_Tags.NotRun:{c.writeI32(1);return;}case RecoveryStatus_Tags.Failed:{c.writeI32(2);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.message,c);return;}case RecoveryStatus_Tags.
|
|
925
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case RecoveryStatus_Tags.NotRun:{return 4;}case RecoveryStatus_Tags.Failed:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.message);return size;}case RecoveryStatus_Tags.Completed:{const inner=value.inner;let size=4;size+=FfiConverterTypeRecoveryReport.allocationSize(inner.report);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: WalletNotification
|
|
1031
|
+
const FfiConverterTypeRecoveryStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new RecoveryStatus.NotRun();case 2:return new RecoveryStatus.Failed({message:FfiConverterString.readFromCursor(c)});case 3:return new RecoveryStatus.InProgress({report:FfiConverterTypeRecoveryReport.readFromCursor(c)});case 4:return new RecoveryStatus.Completed({report:FfiConverterTypeRecoveryReport.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case RecoveryStatus_Tags.NotRun:{c.writeI32(1);return;}case RecoveryStatus_Tags.Failed:{c.writeI32(2);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.message,c);return;}case RecoveryStatus_Tags.InProgress:{c.writeI32(3);const inner=value.inner;FfiConverterTypeRecoveryReport.writeIntoCursor(inner.report,c);return;}case RecoveryStatus_Tags.Completed:{c.writeI32(4);const inner=value.inner;FfiConverterTypeRecoveryReport.writeIntoCursor(inner.report,c);return;}default:// Throwing from here means that RecoveryStatus_Tags hasn't matched an ordinal.
|
|
1032
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case RecoveryStatus_Tags.NotRun:{return 4;}case RecoveryStatus_Tags.Failed:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.message);return size;}case RecoveryStatus_Tags.InProgress:{const inner=value.inner;let size=4;size+=FfiConverterTypeRecoveryReport.allocationSize(inner.report);return size;}case RecoveryStatus_Tags.Completed:{const inner=value.inner;let size=4;size+=FfiConverterTypeRecoveryReport.allocationSize(inner.report);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: WalletNotification
|
|
926
1033
|
export let WalletNotification_Tags=/*#__PURE__*/function(WalletNotification_Tags){WalletNotification_Tags["MovementCreated"]="MovementCreated";WalletNotification_Tags["MovementUpdated"]="MovementUpdated";WalletNotification_Tags["ChannelLagging"]="ChannelLagging";return WalletNotification_Tags;}({});/**
|
|
927
1034
|
* A notification event from the wallet
|
|
928
1035
|
*/export const WalletNotification=(()=>{/**
|
|
@@ -1030,6 +1137,17 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1030
1137
|
*/evictTx(txid)/*throws*/{uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this),FfiConverterString.lower(txid,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));}/**
|
|
1031
1138
|
* Create a signed P2A CPFP transaction
|
|
1032
1139
|
*
|
|
1140
|
+
* The child spends the parent's P2A anchor and pays the fee for the
|
|
1141
|
+
* whole package: at least (parent vsize + child vsize) times
|
|
1142
|
+
* `effective_fee_rate_sat_per_vb`, the parent being zero-fee.
|
|
1143
|
+
*
|
|
1144
|
+
* For `fees_type == "Rbf"` the child replaces what already spends the
|
|
1145
|
+
* anchor, so bitcoind's replacement rules apply on top. With
|
|
1146
|
+
* `replacement_vsize` the child's vsize, plus the parent's when
|
|
1147
|
+
* `parent_in_mempool` is false, the child must also pay at least:
|
|
1148
|
+
* * `replaced_fee_sats + incremental_relay_fee_sat_per_vb * replacement_vsize`
|
|
1149
|
+
* * `(replaced_fee_rate_sat_per_vb + incremental_relay_fee_sat_per_vb) * replacement_vsize`
|
|
1150
|
+
*
|
|
1033
1151
|
* # Arguments
|
|
1034
1152
|
* * `params` - CPFP transaction parameters
|
|
1035
1153
|
*
|
|
@@ -1206,7 +1324,10 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1206
1324
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1207
1325
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1208
1326
|
// already JS-owned.
|
|
1209
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBip321Uri.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;}}
|
|
1327
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBip321Uri.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;}}/**
|
|
1328
|
+
* Board all funds of the onchain wallet. See `board_amount` for
|
|
1329
|
+
* `expiry_height`.
|
|
1330
|
+
*/async boardAll(expiryHeight=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_board_all(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterOptionalUInt32.lower(expiryHeight,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
|
|
1210
1331
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1211
1332
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1212
1333
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1214,7 +1335,14 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1214
1335
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1215
1336
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1216
1337
|
// already JS-owned.
|
|
1217
|
-
/*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;}}
|
|
1338
|
+
/*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;}}/**
|
|
1339
|
+
* Board `amount_sats` from the onchain wallet.
|
|
1340
|
+
*
|
|
1341
|
+
* `expiry_height` sets the block height at which the board VTXO expires.
|
|
1342
|
+
* It defaults to `Config.board_lifetime` blocks from the tip, capped at
|
|
1343
|
+
* the server's VTXO lifetime; an expiry beyond that lifetime, or too
|
|
1344
|
+
* close to the tip to confirm and register in time, is refused.
|
|
1345
|
+
*/async boardAmount(amountSats,expiryHeight=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_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt32.lower(expiryHeight,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
|
|
1218
1346
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1219
1347
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1220
1348
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1222,7 +1350,12 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1222
1350
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1223
1351
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1224
1352
|
// already JS-owned.
|
|
1225
|
-
/*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;}}
|
|
1353
|
+
/*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;}}/**
|
|
1354
|
+
* Derive a fresh key and return the address to fund a board with from
|
|
1355
|
+
* elsewhere, e.g. as a payjoin receiver. Persist the returned info and
|
|
1356
|
+
* pass it to `board_psbt` with the funding PSBT. See `board_amount` for
|
|
1357
|
+
* `expiry_height`.
|
|
1358
|
+
*/async boardFundingAddress(expiryHeight=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_board_funding_address(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterOptionalUInt32.lower(expiryHeight,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
|
|
1226
1359
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1227
1360
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1228
1361
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1230,7 +1363,19 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1230
1363
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1231
1364
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1232
1365
|
// already JS-owned.
|
|
1233
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBoardFundingInfo.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;}}
|
|
1366
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBoardFundingInfo.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;}}/**
|
|
1367
|
+
* Board from a funding PSBT paying the address of `funding`, made by
|
|
1368
|
+
* `board_funding_address`.
|
|
1369
|
+
*
|
|
1370
|
+
* A finalized PSBT is broadcast by bark; an unfinalized one leaves the
|
|
1371
|
+
* broadcast to another party and bark waits for the transaction to
|
|
1372
|
+
* appear. The board commits to the PSBT's txid, so if the other party
|
|
1373
|
+
* changes the transaction, call this again with the new PSBT and the
|
|
1374
|
+
* same `funding`.
|
|
1375
|
+
*
|
|
1376
|
+
* Fails once `funding` is too close to its expiry height; make a new
|
|
1377
|
+
* funding address then.
|
|
1378
|
+
*/async boardPsbt(psbtBase64,funding,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_board_psbt(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(psbtBase64,nativeModule().rustbuffer_alloc),FfiConverterTypeBoardFundingInfo.lower(funding,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
|
|
1234
1379
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1235
1380
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1236
1381
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1238,7 +1383,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1238
1383
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1239
1384
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1240
1385
|
// 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;}}
|
|
1386
|
+
/*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;}}/**
|
|
1387
|
+
* Create an invoice for an incoming lightning payment.
|
|
1388
|
+
*
|
|
1389
|
+
* `expiry_secs` is how long the invoice can be paid for. It defaults to,
|
|
1390
|
+
* and cannot exceed, the Ark server's invoice expiry; creating the invoice
|
|
1391
|
+
* fails if the server does not honour it. Must be at least 1.
|
|
1392
|
+
*/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
1393
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1243
1394
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1244
1395
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1261,7 +1412,9 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1261
1412
|
*
|
|
1262
1413
|
* A `claim_destination` owned by this wallet is claimed locally instead of
|
|
1263
1414
|
* going through its mailbox.
|
|
1264
|
-
|
|
1415
|
+
*
|
|
1416
|
+
* `expiry_secs` works as in [`Self::bolt11_invoice`].
|
|
1417
|
+
*/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
1418
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1266
1419
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1267
1420
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1552,6 +1705,22 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1552
1705
|
// export. The bytes the runtime hands back must be deserialized
|
|
1553
1706
|
// here using the per-callable return-type converter.
|
|
1554
1707
|
/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1708
|
+
* Rebuild the funding info of a funding address made before
|
|
1709
|
+
* `BoardFundingInfo` carried `user_pubkey`, from the `keypair_index` and
|
|
1710
|
+
* `expiry_height` stored alongside it.
|
|
1711
|
+
*
|
|
1712
|
+
* Only for boards funded through the old `board_funding_address`. If the
|
|
1713
|
+
* server's key or exit delta changed since, the rebuilt address won't
|
|
1714
|
+
* match and `board_psbt` refuses the PSBT.
|
|
1715
|
+
*/async legacyBoardFundingAddress(keypairIndex,expiryHeight,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_legacy_board_funding_address(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterUInt32.lower(keypairIndex,nativeModule().rustbuffer_alloc),FfiConverterUInt32.lower(expiryHeight,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
|
|
1716
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1717
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1718
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1719
|
+
// here using the per-callable return-type converter.
|
|
1720
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1721
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1722
|
+
// already JS-owned.
|
|
1723
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBoardFundingInfo.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;}}/**
|
|
1555
1724
|
* Triage a payment hash: settled or in-progress. Errors if no lightning
|
|
1556
1725
|
* receive is known for this payment hash.
|
|
1557
1726
|
*/async lightningReceiveState(paymentHash,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_lightning_receive_state(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(paymentHash,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
|
|
@@ -1795,7 +1964,23 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1795
1964
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1796
1965
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1797
1966
|
// already JS-owned.
|
|
1798
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeLightningSend.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;}}
|
|
1967
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeLightningSend.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;}}/**
|
|
1968
|
+
* The report of the recovery from seed in progress, or none once it is
|
|
1969
|
+
* done (or if none ever ran). Its `failed` VTXOs are the ones still
|
|
1970
|
+
* missing: they are kept locked until the server gives their status.
|
|
1971
|
+
*
|
|
1972
|
+
* When a recovery resumed after open is done, bark only logs its final
|
|
1973
|
+
* report; it cannot be read here. VTXOs it gave up on (`abandoned`) stay
|
|
1974
|
+
* locked, so they still show in `vtxos`.
|
|
1975
|
+
*/async pendingRecovery(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_pending_recovery(uniffiTypeWalletObjectFactory.clonePointer(this));},/*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
|
|
1976
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1977
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1978
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1979
|
+
// here using the per-callable return-type converter.
|
|
1980
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1981
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1982
|
+
// already JS-owned.
|
|
1983
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterOptionalTypeRecoveryReport.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 pendingRoundInputVtxos(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_pending_round_input_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this));},/*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
|
|
1799
1984
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1800
1985
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1801
1986
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1811,7 +1996,33 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1811
1996
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1812
1997
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1813
1998
|
// 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;}}
|
|
1999
|
+
/*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;}}/**
|
|
2000
|
+
* Sign, without broadcasting, the CPFP child of every exit transaction
|
|
2001
|
+
* that still needs broadcasting to emergency-exit the given VTXOs, for as
|
|
2002
|
+
* long as confirmed onchain funds last. Mirrors bark-rest
|
|
2003
|
+
* `POST /exits/presign`.
|
|
2004
|
+
*
|
|
2005
|
+
* Omit `vtxo_ids` to presign every spendable VTXO; an empty list presigns
|
|
2006
|
+
* nothing. `fee_rate_sat_per_vb` defaults to the chain's fast rate. Syncs
|
|
2007
|
+
* the onchain wallet and exits first.
|
|
2008
|
+
*
|
|
2009
|
+
* Execute the result wave by wave: broadcast a wave's packages together
|
|
2010
|
+
* and wait for them, and its `in_mempool` transactions, to confirm before
|
|
2011
|
+
* the next. No funds are reserved, so a later onchain spend can
|
|
2012
|
+
* invalidate the children. The children are signed: store the result
|
|
2013
|
+
* securely.
|
|
2014
|
+
*
|
|
2015
|
+
* Needs the built-in onchain wallet; with callback wallets
|
|
2016
|
+
* (`CustomOnchainWalletCallbacks`) it fails.
|
|
2017
|
+
*/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
|
|
2018
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2019
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2020
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2021
|
+
// here using the per-callable return-type converter.
|
|
2022
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
2023
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
2024
|
+
// already JS-owned.
|
|
2025
|
+
/*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
2026
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1816
2027
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1817
2028
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1830,7 +2041,10 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1830
2041
|
/*liftFunc:*/__rb=>{try{return FfiConverterTypeWalletProperties.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;}}/**
|
|
1831
2042
|
* Recover the given VTXO ids from the server, importing the ones this
|
|
1832
2043
|
* wallet owns that are still spendable. Use it to retry ids a previous
|
|
1833
|
-
*
|
|
2044
|
+
* recovery reported as `failed` or `abandoned`.
|
|
2045
|
+
*
|
|
2046
|
+
* Fails while a recovery from seed is being driven, as both work on the
|
|
2047
|
+
* same locked VTXOs.
|
|
1834
2048
|
*
|
|
1835
2049
|
* `gap_limit` overrides `Config.vtxo_key_gap_limit` for the key scan that
|
|
1836
2050
|
* decides which of `vtxo_ids` this wallet owns. Widen it to reach ids a
|
|
@@ -1844,19 +2058,21 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1844
2058
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1845
2059
|
// already JS-owned.
|
|
1846
2060
|
/*liftFunc:*/__rb=>{try{return FfiConverterTypeRecoveryReport.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;}}/**
|
|
1847
|
-
* The report of the
|
|
1848
|
-
*
|
|
1849
|
-
* that failed apart from one that never ran.
|
|
2061
|
+
* The report of the recovery from seed as `Wallet::open` saw it, or none
|
|
2062
|
+
* if it did not run or failed. Use `recovery_status` to tell these apart.
|
|
1850
2063
|
*/recoveryReport(){const __rb=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report(uniffiTypeWalletObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterOptionalTypeRecoveryReport.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}/**
|
|
1851
|
-
* Outcome of the
|
|
1852
|
-
*
|
|
1853
|
-
*
|
|
1854
|
-
*
|
|
1855
|
-
* on
|
|
1856
|
-
*
|
|
1857
|
-
*
|
|
1858
|
-
* `
|
|
1859
|
-
*
|
|
2064
|
+
* Outcome of the recovery from seed as `Wallet::open` saw it. A
|
|
2065
|
+
* snapshot: it does not change after open, see `pending_recovery` for the
|
|
2066
|
+
* live state.
|
|
2067
|
+
*
|
|
2068
|
+
* Recovery starts on the open that creates the wallet locally, unless
|
|
2069
|
+
* `WalletOpenArgs.skip_recovery` is set. A later open reports
|
|
2070
|
+
* `InProgress` while that recovery is not done, and `NotRun` otherwise.
|
|
2071
|
+
* `Failed` means the recovery could not be started or read back — bark
|
|
2072
|
+
* logs that and lets open succeed — so funds may be missing. `InProgress`
|
|
2073
|
+
* means it stopped before it was done; every sync resumes it. `Completed`
|
|
2074
|
+
* carries the final report, and `isComplete == false` there means funds
|
|
2075
|
+
* may still be missing.
|
|
1860
2076
|
*/recoveryStatus(){const __rb=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status(uniffiTypeWalletObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterTypeRecoveryStatus.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}async refreshServer(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_refresh_server(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;}}async refreshVtxos(vtxoIds,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_refresh_vtxos(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterSequenceString.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
|
|
1861
2077
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1862
2078
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
@@ -1887,6 +2103,23 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1887
2103
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1888
2104
|
// already JS-owned.
|
|
1889
2105
|
/*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;}}/**
|
|
2106
|
+
* List every exit transaction of the given VTXOs still awaiting
|
|
2107
|
+
* confirmation, so anyone can broadcast the exits on the user's behalf.
|
|
2108
|
+
* Mirrors bark-rest `GET /exits/remaining`.
|
|
2109
|
+
*
|
|
2110
|
+
* Omit `vtxo_ids` to cover every spendable VTXO; an empty list covers
|
|
2111
|
+
* nothing. Read-only: signs nothing and never touches the onchain wallet,
|
|
2112
|
+
* so it works with callback wallets too. Statuses of started exits reflect
|
|
2113
|
+
* the last `sync_exits`.
|
|
2114
|
+
*/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
|
|
2115
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
2116
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
2117
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
2118
|
+
// here using the per-callable return-type converter.
|
|
2119
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
2120
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
2121
|
+
// already JS-owned.
|
|
2122
|
+
/*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
2123
|
* Start the background daemon. The onchain wallet used by the daemon is
|
|
1891
2124
|
* the one supplied to `Wallet::open` (see `WalletOpenArgs.onchain`).
|
|
1892
2125
|
*/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;}}/**
|
|
@@ -1951,9 +2184,12 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1951
2184
|
* Only for VTXOs already onchain, or a node that accepts non-standard
|
|
1952
2185
|
* transactions; otherwise the exit transactions may be unrelayable.
|
|
1953
2186
|
*/async startExitForVtxosIncludingNonStandard(vtxoIds,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_start_exit_for_vtxos_including_non_standard(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterSequenceString.lower(vtxoIds,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;}}async stopDaemon(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_stop_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;}}/**
|
|
1954
|
-
* Stop the background daemon and wait until
|
|
1955
|
-
*
|
|
1956
|
-
*
|
|
2187
|
+
* Stop the background daemon and wait until it has finished, e.g. before
|
|
2188
|
+
* deleting the wallet's datadir. No-op when no daemon is running.
|
|
2189
|
+
*
|
|
2190
|
+
* While another call already waits for the daemon, this returns at once
|
|
2191
|
+
* without waiting. A start made while it waits goes ahead, so the daemon
|
|
2192
|
+
* runs again after.
|
|
1957
2193
|
*/async stopDaemonWait(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_stop_daemon_wait(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;}}/**
|
|
1958
2194
|
* Failed lightning sends whose HTLC revocation also failed.
|
|
1959
2195
|
*/async stuckFailedLightningSends(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_stuck_failed_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));},/*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
|
|
@@ -1970,7 +2206,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1970
2206
|
*
|
|
1971
2207
|
* This already runs automatically as part of [`Self::sync`]; call it
|
|
1972
2208
|
* directly to trigger the scan on demand.
|
|
1973
|
-
*/async syncForceExitedVtxos(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_sync_force_exited_vtxos(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;}}async syncPendingBoards(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_sync_pending_boards(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;}}
|
|
2209
|
+
*/async syncForceExitedVtxos(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_sync_force_exited_vtxos(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;}}async syncPendingBoards(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_sync_pending_boards(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;}}/**
|
|
2210
|
+
* Drive the recovery from seed in progress, if any, until it is done or
|
|
2211
|
+
* parks again. Does nothing while another drive holds its lock.
|
|
2212
|
+
*
|
|
2213
|
+
* This already runs as part of `sync`; call it to resume the recovery on
|
|
2214
|
+
* demand.
|
|
2215
|
+
*/async syncPendingRecovery(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_sync_pending_recovery(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;}}async tryClaimAllLightningReceives(wait=false,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_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterBool.lower(wait,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
|
|
1974
2216
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1975
2217
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1976
2218
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -2044,7 +2286,12 @@ const FfiConverterOptionalSequenceTypeExitState=new FfiConverterOptional(FfiConv
|
|
|
2044
2286
|
const FfiConverterSequenceTypeExitTransactionPackage=new FfiConverterArray(FfiConverterTypeExitTransactionPackage);// FfiConverter for bigint | undefined
|
|
2045
2287
|
const FfiConverterOptionalInt64=new FfiConverterOptional(FfiConverterInt64);// FfiConverter for Array<AvailablePaymentMethod>
|
|
2046
2288
|
const FfiConverterSequenceTypeAvailablePaymentMethod=new FfiConverterArray(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for AvailablePaymentMethod | undefined
|
|
2047
|
-
const FfiConverterOptionalTypeAvailablePaymentMethod=new FfiConverterOptional(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for
|
|
2289
|
+
const FfiConverterOptionalTypeAvailablePaymentMethod=new FfiConverterOptional(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for Array<ExitTransactionInfo>
|
|
2290
|
+
const FfiConverterSequenceTypeExitTransactionInfo=new FfiConverterArray(FfiConverterTypeExitTransactionInfo);// FfiConverter for Array<PresignedExit>
|
|
2291
|
+
const FfiConverterSequenceTypePresignedExit=new FfiConverterArray(FfiConverterTypePresignedExit);// FfiConverter for Array<PresignedExitPackage>
|
|
2292
|
+
const FfiConverterSequenceTypePresignedExitPackage=new FfiConverterArray(FfiConverterTypePresignedExitPackage);// FfiConverter for Array<PresignedWave>
|
|
2293
|
+
const FfiConverterSequenceTypePresignedWave=new FfiConverterArray(FfiConverterTypePresignedWave);// FfiConverter for Array<RemainingExit>
|
|
2294
|
+
const FfiConverterSequenceTypeRemainingExit=new FfiConverterArray(FfiConverterTypeRemainingExit);// FfiConverter for VtxoLockHolder | undefined
|
|
2048
2295
|
const FfiConverterOptionalTypeVtxoLockHolder=new FfiConverterOptional(FfiConverterTypeVtxoLockHolder);// FfiConverter for Array<WalletTransaction>
|
|
2049
2296
|
const FfiConverterSequenceTypeWalletTransaction=new FfiConverterArray(FfiConverterTypeWalletTransaction);// FfiConverter for Array<OnchainUtxo>
|
|
2050
2297
|
const FfiConverterSequenceTypeOnchainUtxo=new FfiConverterArray(FfiConverterTypeOnchainUtxo);// FfiConverter for OnchainWalletLike | undefined
|
|
@@ -2061,10 +2308,11 @@ const FfiConverterOptionalTypeImportVtxoArgs=new FfiConverterOptional(FfiConvert
|
|
|
2061
2308
|
const FfiConverterSequenceTypeExitTransactionStatus=new FfiConverterArray(FfiConverterTypeExitTransactionStatus);// FfiConverter for Array<PendingBoard>
|
|
2062
2309
|
const FfiConverterSequenceTypePendingBoard=new FfiConverterArray(FfiConverterTypePendingBoard);// FfiConverter for Array<LightningReceive>
|
|
2063
2310
|
const FfiConverterSequenceTypeLightningReceive=new FfiConverterArray(FfiConverterTypeLightningReceive);// FfiConverter for Array<LightningSend>
|
|
2064
|
-
const FfiConverterSequenceTypeLightningSend=new FfiConverterArray(FfiConverterTypeLightningSend);// FfiConverter for
|
|
2065
|
-
const
|
|
2066
|
-
const
|
|
2067
|
-
const
|
|
2311
|
+
const FfiConverterSequenceTypeLightningSend=new FfiConverterArray(FfiConverterTypeLightningSend);// FfiConverter for RecoveryReport | undefined
|
|
2312
|
+
const FfiConverterOptionalTypeRecoveryReport=new FfiConverterOptional(FfiConverterTypeRecoveryReport);// FfiConverter for Array<RoundState>
|
|
2313
|
+
const FfiConverterSequenceTypeRoundState=new FfiConverterArray(FfiConverterTypeRoundState);// FfiConverter for Array<string> | undefined
|
|
2314
|
+
const FfiConverterOptionalSequenceString=new FfiConverterOptional(FfiConverterSequenceString);// FfiConverter for Array<ExitProgressStatus>
|
|
2315
|
+
const FfiConverterSequenceTypeExitProgressStatus=new FfiConverterArray(FfiConverterTypeExitProgressStatus);// FfiConverter for RoundState | undefined
|
|
2068
2316
|
const FfiConverterOptionalTypeRoundState=new FfiConverterOptional(FfiConverterTypeRoundState);// FfiConverter for DatadirInfo | undefined
|
|
2069
2317
|
const FfiConverterOptionalTypeDatadirInfo=new FfiConverterOptional(FfiConverterTypeDatadirInfo);/**
|
|
2070
2318
|
* This should be called before anything else.
|
|
@@ -2077,5 +2325,5 @@ const FfiConverterOptionalTypeDatadirInfo=new FfiConverterOptional(FfiConverterT
|
|
|
2077
2325
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2078
2326
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
2079
2327
|
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}});
|
|
2328
|
+
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()!==54481){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()!==20725){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount()!==52165){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address()!==44995){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_funding_address");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt()!==24319){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_legacy_board_funding_address()!==9227){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address");}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_recovery()!==25503){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_recovery");}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()!==57570){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recover_vtxos");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report()!==3988){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_report");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status()!==60997){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()!==53241){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_sync_pending_recovery()!==40039){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery");}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
2329
|
//# sourceMappingURL=bark.js.map
|