@secondts/bark-react-native 0.25.0 → 0.26.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 +1 -1
- package/cpp/generated/bark.cpp +519 -31
- package/cpp/generated/bark.hpp +28 -2
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +436 -61
- 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 +436 -61
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +34 -8
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +1580 -159
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +34 -8
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +1580 -159
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/scripts/postinstall.js +35 -9
- package/src/generated/bark-ffi.ts +81 -8
- package/src/generated/bark.ts +3373 -539
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
2
|
// Trust me, you don't want to mess with it!
|
|
3
3
|
/* tslint:disable *//* eslint-disable */// @ts-nocheck
|
|
4
|
-
import nativeModule from"./bark-ffi.js";import{AbstractFfiConverterByteArray,FfiConverterArray,FfiConverterBool,FfiConverterInt64,FfiConverterObject,FfiConverterObjectWithCallbacks,FfiConverterOptional,FfiConverterUInt16,FfiConverterUInt32,FfiConverterUInt64,FfiConverterUInt8,UniffiAbstractObject,UniffiEnum,UniffiError,UniffiInternalError,UniffiResult,UniffiRustCaller,destructorGuardSymbol,pointerLiteralSymbol,uniffiCreateFfiConverterString,uniffiCreateRecord,uniffiRustCallAsync,uniffiTraitInterfaceCall,uniffiTraitInterfaceCallWithError,uniffiTypeNameSymbol,variantOrdinalSymbol}from"@ubjs/core";const uniffiCaller=new UniffiRustCaller(()=>({code:0}));const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
|
|
4
|
+
import nativeModule from"./bark-ffi.js";import{AbstractFfiConverterByteArray,FfiConverterArray,FfiConverterBool,FfiConverterFloat64,FfiConverterInt64,FfiConverterObject,FfiConverterObjectWithCallbacks,FfiConverterOptional,FfiConverterUInt16,FfiConverterUInt32,FfiConverterUInt64,FfiConverterUInt8,UniffiAbstractObject,UniffiEnum,UniffiError,UniffiInternalError,UniffiResult,UniffiRustCaller,destructorGuardSymbol,pointerLiteralSymbol,uniffiCreateFfiConverterString,uniffiCreateRecord,uniffiRustCallAsync,uniffiTraitInterfaceCall,uniffiTraitInterfaceCallWithError,uniffiTypeNameSymbol,variantOrdinalSymbol}from"@ubjs/core";const uniffiCaller=new UniffiRustCaller(()=>({code:0}));const uniffiIsDebug=// @ts-ignore -- The process global might not be defined
|
|
5
5
|
typeof process!=="object"||// @ts-ignore -- The process global might not be defined
|
|
6
6
|
process?.env?.NODE_ENV!=="production"||false;// Public interface members begin here.
|
|
7
7
|
/**
|
|
8
|
+
* Turn logging off and detach the current logger, which is never released.
|
|
9
|
+
*
|
|
10
|
+
* React Native calls this when its JS runtime starts, so a logger left by a
|
|
11
|
+
* runtime that was reloaded is never called.
|
|
12
|
+
*/export function clearLogger(){uniffiCaller.rustCall(/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_bark_ffi_fn_func_clear_logger(callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));}/**
|
|
13
|
+
* Decode a BOLT11 invoice, for example to show its amount, description,
|
|
14
|
+
* payee and expiry before paying it.
|
|
15
|
+
*
|
|
16
|
+
* Only decodes: it does not check the invoice's network or whether it has
|
|
17
|
+
* expired. `Wallet::parse_payment_request` checks the network.
|
|
18
|
+
*/export function decodeBolt11Invoice(invoice)/*throws*/{const __rb=uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_decode_bolt11_invoice(FfiConverterString.lower(invoice,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterTypeBolt11InvoiceDetails.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}/**
|
|
8
19
|
* Default for `Config.vtxo_key_gap_limit`: the run of consecutive unused
|
|
9
20
|
* seed-derived VTXO key indices a scan crosses before concluding a VTXO
|
|
10
21
|
* isn't ours.
|
|
@@ -32,10 +43,20 @@ process?.env?.NODE_ENV!=="production"||false;// Public interface members begin h
|
|
|
32
43
|
* `gap_limit` override) accepts. A scan that matches nothing runs the limit
|
|
33
44
|
* to its end, so an unbounded limit is unbounded work.
|
|
34
45
|
*/export function maxVtxoKeyGapLimit(){return FfiConverterUInt32.lift(uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString)));}/**
|
|
35
|
-
*
|
|
46
|
+
* Network and seed fingerprint of the wallet in `datadir`, or `None` when no
|
|
47
|
+
* wallet is initialized there. Same side-effect guarantees as
|
|
48
|
+
* [`wallet_exists`].
|
|
49
|
+
*
|
|
50
|
+
* Not named `datadir_info`: the Go bindings would export it as `DatadirInfo`,
|
|
51
|
+
* which collides with the record of the same name.
|
|
52
|
+
*/export function readDatadirInfo(datadir)/*throws*/{const __rb=uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_read_datadir_info(FfiConverterString.lower(datadir,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterOptionalTypeDatadirInfo.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}/**
|
|
53
|
+
* Send bark's log records at or above `max_level` to `logger`.
|
|
36
54
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
55
|
+
* Calling this again replaces the current logger and level. The replaced
|
|
56
|
+
* logger is never released. `clear_logger` turns logging off.
|
|
57
|
+
*
|
|
58
|
+
* Errors if another logger for Rust's `log` crate was installed in this
|
|
59
|
+
* process before the first call.
|
|
39
60
|
*/export function setLogger(logger,maxLevel)/*throws*/{uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{nativeModule().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger,nativeModule().rustbuffer_alloc),FfiConverterTypeLogLevel.lower(maxLevel,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));}/**
|
|
40
61
|
* Validate an Ark address (basic format check only)
|
|
41
62
|
*
|
|
@@ -44,7 +65,16 @@ process?.env?.NODE_ENV!=="production"||false;// Public interface members begin h
|
|
|
44
65
|
* use Wallet::validate_arkoor_address() instead.
|
|
45
66
|
*/export function validateArkAddress(address)/*throws*/{return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(FfiConverterString.lower(address,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString)));}/**
|
|
46
67
|
* Validate a BIP39 mnemonic phrase
|
|
47
|
-
*/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)));}
|
|
68
|
+
*/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
|
+
* Whether `datadir` holds an initialized bark wallet.
|
|
70
|
+
*
|
|
71
|
+
* Answers without side effects: the database is opened read-only, no
|
|
72
|
+
* migration runs and no file or directory is created. Returns `false` for a
|
|
73
|
+
* missing or empty directory and for a database that never got its wallet
|
|
74
|
+
* properties (for example after a crash during creation). Returns an error
|
|
75
|
+
* when a database exists but cannot be read, so a corrupt wallet is never
|
|
76
|
+
* mistaken for an absent one.
|
|
77
|
+
*/export function walletExists(datadir)/*throws*/{return FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_func_wallet_exists(FfiConverterString.lower(datadir,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString)));}// Hermes (React Native ≥ 0.74) ships TextEncoder and encodeInto, but not
|
|
48
78
|
// TextDecoder. For single-string decode (bytesToString), we polyfill via the
|
|
49
79
|
// C++ string_from_buffer helper using a duck-typed object matching the
|
|
50
80
|
// standard TextDecoder.decode signature. Once Hermes ships a real
|
|
@@ -100,9 +130,133 @@ readStringFromBuffer:(buf,offset,length)=>nativeModule().ubrn_uniffi_internal_fn
|
|
|
100
130
|
* Generated factory for {@link FeeSchedule} record objects.
|
|
101
131
|
*/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();})();/**
|
|
102
132
|
* Generated factory for {@link ArkInfo} record objects.
|
|
103
|
-
*/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();})()
|
|
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
|
|
134
|
+
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
|
+
* A payment destination, mirroring `bark::movement::PaymentMethod`.
|
|
136
|
+
*
|
|
137
|
+
* Each variant carries the destination as a string. `type` and `value`
|
|
138
|
+
* match upstream's JSON encoding (`{"type":"ark","value":"tark1…"}`), which
|
|
139
|
+
* is what `Movement.sent_to_addresses` and `Movement.received_on_addresses`
|
|
140
|
+
* hold and what `Wallet::history_by_payment_method` takes.
|
|
141
|
+
*/export const PaymentMethod=(()=>{/**
|
|
142
|
+
* An Ark address.
|
|
143
|
+
*/class Ark_ extends UniffiEnum{/**
|
|
144
|
+
* @private
|
|
145
|
+
* This field is private and should not be used, use `tag` instead.
|
|
146
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.Ark;constructor(inner){super("PaymentMethod","Ark");this.inner=Object.freeze(inner);}static new(inner){return new Ark_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.Ark;}}/**
|
|
147
|
+
* An onchain bitcoin address.
|
|
148
|
+
*/class Bitcoin_ extends UniffiEnum{/**
|
|
149
|
+
* @private
|
|
150
|
+
* This field is private and should not be used, use `tag` instead.
|
|
151
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.Bitcoin;constructor(inner){super("PaymentMethod","Bitcoin");this.inner=Object.freeze(inner);}static new(inner){return new Bitcoin_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.Bitcoin;}}/**
|
|
152
|
+
* A hex-encoded onchain output script. bark cannot pay these yet.
|
|
153
|
+
*/class OutputScript_ extends UniffiEnum{/**
|
|
154
|
+
* @private
|
|
155
|
+
* This field is private and should not be used, use `tag` instead.
|
|
156
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.OutputScript;constructor(inner){super("PaymentMethod","OutputScript");this.inner=Object.freeze(inner);}static new(inner){return new OutputScript_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.OutputScript;}}/**
|
|
157
|
+
* A lightning invoice, BOLT11 or BOLT12. `decode_bolt11_invoice` reads
|
|
158
|
+
* a BOLT11 invoice's amount, description, payee and expiry.
|
|
159
|
+
*/class Invoice_ extends UniffiEnum{/**
|
|
160
|
+
* @private
|
|
161
|
+
* This field is private and should not be used, use `tag` instead.
|
|
162
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.Invoice;constructor(inner){super("PaymentMethod","Invoice");this.inner=Object.freeze(inner);}static new(inner){return new Invoice_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.Invoice;}}/**
|
|
163
|
+
* A reusable BOLT12 offer.
|
|
164
|
+
*/class Offer_ extends UniffiEnum{/**
|
|
165
|
+
* @private
|
|
166
|
+
* This field is private and should not be used, use `tag` instead.
|
|
167
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.Offer;constructor(inner){super("PaymentMethod","Offer");this.inner=Object.freeze(inner);}static new(inner){return new Offer_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.Offer;}}/**
|
|
168
|
+
* A lightning address (`user@domain`), resolved over LNURL-pay.
|
|
169
|
+
*/class LightningAddress_ extends UniffiEnum{/**
|
|
170
|
+
* @private
|
|
171
|
+
* This field is private and should not be used, use `tag` instead.
|
|
172
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.LightningAddress;constructor(inner){super("PaymentMethod","LightningAddress");this.inner=Object.freeze(inner);}static new(inner){return new LightningAddress_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.LightningAddress;}}/**
|
|
173
|
+
* An LNURL-pay link (`lnurl1…`).
|
|
174
|
+
*/class Lnurl_ extends UniffiEnum{/**
|
|
175
|
+
* @private
|
|
176
|
+
* This field is private and should not be used, use `tag` instead.
|
|
177
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.Lnurl;constructor(inner){super("PaymentMethod","Lnurl");this.inner=Object.freeze(inner);}static new(inner){return new Lnurl_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.Lnurl;}}/**
|
|
178
|
+
* A destination bark recognizes but cannot pay, such as an Arkade
|
|
179
|
+
* address.
|
|
180
|
+
*/class Custom_ extends UniffiEnum{/**
|
|
181
|
+
* @private
|
|
182
|
+
* This field is private and should not be used, use `tag` instead.
|
|
183
|
+
*/[uniffiTypeNameSymbol]="PaymentMethod";tag=PaymentMethod_Tags.Custom;constructor(inner){super("PaymentMethod","Custom");this.inner=Object.freeze(inner);}static new(inner){return new Custom_(inner);}static instanceOf(obj){return obj.tag===PaymentMethod_Tags.Custom;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="PaymentMethod";}return Object.freeze({instanceOf,Ark:Ark_,Bitcoin:Bitcoin_,OutputScript:OutputScript_,Invoice:Invoice_,Offer:Offer_,LightningAddress:LightningAddress_,Lnurl:Lnurl_,Custom:Custom_});})();/**
|
|
184
|
+
* A payment destination, mirroring `bark::movement::PaymentMethod`.
|
|
185
|
+
*
|
|
186
|
+
* Each variant carries the destination as a string. `type` and `value`
|
|
187
|
+
* match upstream's JSON encoding (`{"type":"ark","value":"tark1…"}`), which
|
|
188
|
+
* is what `Movement.sent_to_addresses` and `Movement.received_on_addresses`
|
|
189
|
+
* hold and what `Wallet::history_by_payment_method` takes.
|
|
190
|
+
*/// FfiConverter for enum PaymentMethod
|
|
191
|
+
const FfiConverterTypePaymentMethod=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new PaymentMethod.Ark({value:FfiConverterString.readFromCursor(c)});case 2:return new PaymentMethod.Bitcoin({value:FfiConverterString.readFromCursor(c)});case 3:return new PaymentMethod.OutputScript({value:FfiConverterString.readFromCursor(c)});case 4:return new PaymentMethod.Invoice({value:FfiConverterString.readFromCursor(c)});case 5:return new PaymentMethod.Offer({value:FfiConverterString.readFromCursor(c)});case 6:return new PaymentMethod.LightningAddress({value:FfiConverterString.readFromCursor(c)});case 7:return new PaymentMethod.Lnurl({value:FfiConverterString.readFromCursor(c)});case 8:return new PaymentMethod.Custom({value:FfiConverterString.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case PaymentMethod_Tags.Ark:{c.writeI32(1);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.Bitcoin:{c.writeI32(2);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.OutputScript:{c.writeI32(3);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.Invoice:{c.writeI32(4);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.Offer:{c.writeI32(5);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.LightningAddress:{c.writeI32(6);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.Lnurl:{c.writeI32(7);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}case PaymentMethod_Tags.Custom:{c.writeI32(8);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.value,c);return;}default:// Throwing from here means that PaymentMethod_Tags hasn't matched an ordinal.
|
|
192
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentMethod_Tags.Ark:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.Bitcoin:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.OutputScript:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.Invoice:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.Offer:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.LightningAddress:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.Lnurl:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}case PaymentMethod_Tags.Custom:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.value);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();// Enum: PaymentMethodParsingError
|
|
193
|
+
export let PaymentMethodParsingError_Tags=/*#__PURE__*/function(PaymentMethodParsingError_Tags){PaymentMethodParsingError_Tags["NetworkMismatch"]="NetworkMismatch";PaymentMethodParsingError_Tags["InvalidArkAddress"]="InvalidArkAddress";PaymentMethodParsingError_Tags["AmountMismatch"]="AmountMismatch";PaymentMethodParsingError_Tags["InvalidAmount"]="InvalidAmount";PaymentMethodParsingError_Tags["Unsupported"]="Unsupported";return PaymentMethodParsingError_Tags;}({});/**
|
|
194
|
+
* Why an option of a [`PaymentRequest`] may not be payable, mirroring
|
|
195
|
+
* `bark::PaymentMethodParsingError`.
|
|
196
|
+
*
|
|
197
|
+
* Returned as data in [`AvailablePaymentMethod::errors`] rather than as an
|
|
198
|
+
* error, so the caller can still show every option and flag the bad ones.
|
|
199
|
+
*/export const PaymentMethodParsingError=(()=>{/**
|
|
200
|
+
* The destination is for another bitcoin network than the wallet's.
|
|
201
|
+
*/class NetworkMismatch_ extends UniffiEnum{/**
|
|
202
|
+
* @private
|
|
203
|
+
* This field is private and should not be used, use `tag` instead.
|
|
204
|
+
*/[uniffiTypeNameSymbol]="PaymentMethodParsingError";tag=PaymentMethodParsingError_Tags.NetworkMismatch;constructor(){super("PaymentMethodParsingError","NetworkMismatch");}static new(){return new NetworkMismatch_();}static instanceOf(obj){return obj.tag===PaymentMethodParsingError_Tags.NetworkMismatch;}}/**
|
|
205
|
+
* This wallet cannot pay the Ark address, for example because it
|
|
206
|
+
* belongs to another Ark server. `reason` says which check failed.
|
|
207
|
+
*/class InvalidArkAddress_ extends UniffiEnum{/**
|
|
208
|
+
* @private
|
|
209
|
+
* This field is private and should not be used, use `tag` instead.
|
|
210
|
+
*/[uniffiTypeNameSymbol]="PaymentMethodParsingError";tag=PaymentMethodParsingError_Tags.InvalidArkAddress;constructor(inner){super("PaymentMethodParsingError","InvalidArkAddress");this.inner=Object.freeze(inner);}static new(inner){return new InvalidArkAddress_(inner);}static instanceOf(obj){return obj.tag===PaymentMethodParsingError_Tags.InvalidArkAddress;}}/**
|
|
211
|
+
* The invoice or offer asks for `expected_sats`, but the URI's `amount`
|
|
212
|
+
* is `got_sats`.
|
|
213
|
+
*/class AmountMismatch_ extends UniffiEnum{/**
|
|
214
|
+
* @private
|
|
215
|
+
* This field is private and should not be used, use `tag` instead.
|
|
216
|
+
*/[uniffiTypeNameSymbol]="PaymentMethodParsingError";tag=PaymentMethodParsingError_Tags.AmountMismatch;constructor(inner){super("PaymentMethodParsingError","AmountMismatch");this.inner=Object.freeze(inner);}static new(inner){return new AmountMismatch_(inner);}static instanceOf(obj){return obj.tag===PaymentMethodParsingError_Tags.AmountMismatch;}}/**
|
|
217
|
+
* The destination's amount is invalid.
|
|
218
|
+
*/class InvalidAmount_ extends UniffiEnum{/**
|
|
219
|
+
* @private
|
|
220
|
+
* This field is private and should not be used, use `tag` instead.
|
|
221
|
+
*/[uniffiTypeNameSymbol]="PaymentMethodParsingError";tag=PaymentMethodParsingError_Tags.InvalidAmount;constructor(){super("PaymentMethodParsingError","InvalidAmount");}static new(){return new InvalidAmount_();}static instanceOf(obj){return obj.tag===PaymentMethodParsingError_Tags.InvalidAmount;}}/**
|
|
222
|
+
* bark recognizes the destination but cannot pay it.
|
|
223
|
+
*/class Unsupported_ extends UniffiEnum{/**
|
|
224
|
+
* @private
|
|
225
|
+
* This field is private and should not be used, use `tag` instead.
|
|
226
|
+
*/[uniffiTypeNameSymbol]="PaymentMethodParsingError";tag=PaymentMethodParsingError_Tags.Unsupported;constructor(){super("PaymentMethodParsingError","Unsupported");}static new(){return new Unsupported_();}static instanceOf(obj){return obj.tag===PaymentMethodParsingError_Tags.Unsupported;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="PaymentMethodParsingError";}return Object.freeze({instanceOf,NetworkMismatch:NetworkMismatch_,InvalidArkAddress:InvalidArkAddress_,AmountMismatch:AmountMismatch_,InvalidAmount:InvalidAmount_,Unsupported:Unsupported_});})();/**
|
|
227
|
+
* Why an option of a [`PaymentRequest`] may not be payable, mirroring
|
|
228
|
+
* `bark::PaymentMethodParsingError`.
|
|
229
|
+
*
|
|
230
|
+
* Returned as data in [`AvailablePaymentMethod::errors`] rather than as an
|
|
231
|
+
* error, so the caller can still show every option and flag the bad ones.
|
|
232
|
+
*/// FfiConverter for enum PaymentMethodParsingError
|
|
233
|
+
const FfiConverterTypePaymentMethodParsingError=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new PaymentMethodParsingError.NetworkMismatch();case 2:return new PaymentMethodParsingError.InvalidArkAddress({reason:FfiConverterString.readFromCursor(c)});case 3:return new PaymentMethodParsingError.AmountMismatch({expectedSats:FfiConverterUInt64.readFromCursor(c),gotSats:FfiConverterUInt64.readFromCursor(c)});case 4:return new PaymentMethodParsingError.InvalidAmount();case 5:return new PaymentMethodParsingError.Unsupported();default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case PaymentMethodParsingError_Tags.NetworkMismatch:{c.writeI32(1);return;}case PaymentMethodParsingError_Tags.InvalidArkAddress:{c.writeI32(2);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.reason,c);return;}case PaymentMethodParsingError_Tags.AmountMismatch:{c.writeI32(3);const inner=value.inner;FfiConverterUInt64.writeIntoCursor(inner.expectedSats,c);FfiConverterUInt64.writeIntoCursor(inner.gotSats,c);return;}case PaymentMethodParsingError_Tags.InvalidAmount:{c.writeI32(4);return;}case PaymentMethodParsingError_Tags.Unsupported:{c.writeI32(5);return;}default:// Throwing from here means that PaymentMethodParsingError_Tags hasn't matched an ordinal.
|
|
234
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case PaymentMethodParsingError_Tags.NetworkMismatch:{return 4;}case PaymentMethodParsingError_Tags.InvalidArkAddress:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.reason);return size;}case PaymentMethodParsingError_Tags.AmountMismatch:{const inner=value.inner;let size=4;size+=FfiConverterUInt64.allocationSize(inner.expectedSats);size+=FfiConverterUInt64.allocationSize(inner.gotSats);return size;}case PaymentMethodParsingError_Tags.InvalidAmount:{return 4;}case PaymentMethodParsingError_Tags.Unsupported:{return 4;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
235
|
+
* One way to pay a [`PaymentRequest`], mirroring
|
|
236
|
+
* `bark::AvailablePaymentMethod`.
|
|
237
|
+
*//**
|
|
238
|
+
* Generated factory for {@link AvailablePaymentMethod} record objects.
|
|
239
|
+
*/export const AvailablePaymentMethod=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeAvailablePaymentMethod=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{method:FfiConverterTypePaymentMethod.readFromCursor(c),errors:FfiConverterSequenceTypePaymentMethodParsingError.readFromCursor(c),requiresAmount:FfiConverterBool.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterTypePaymentMethod.writeIntoCursor(value.method,c);FfiConverterSequenceTypePaymentMethodParsingError.writeIntoCursor(value.errors,c);FfiConverterBool.writeIntoCursor(value.requiresAmount,c);}allocationSize(value){return FfiConverterTypePaymentMethod.allocationSize(value.method)+FfiConverterSequenceTypePaymentMethodParsingError.allocationSize(value.errors)+FfiConverterBool.allocationSize(value.requiresAmount);}}return new FFIConverter();})();/**
|
|
104
240
|
* Generated factory for {@link Balance} record objects.
|
|
105
|
-
*/export const Balance=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBalance=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{spendableSats:FfiConverterUInt64.readFromCursor(c),pendingInRoundSats:FfiConverterUInt64.readFromCursor(c),pendingExitSats:FfiConverterUInt64.readFromCursor(c),pendingLightningSendSats:FfiConverterUInt64.readFromCursor(c),claimableLightningReceiveSats:FfiConverterUInt64.readFromCursor(c),pendingBoardSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt64.writeIntoCursor(value.spendableSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingInRoundSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingExitSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingLightningSendSats,c);FfiConverterUInt64.writeIntoCursor(value.claimableLightningReceiveSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingBoardSats,c);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.spendableSats)+FfiConverterUInt64.allocationSize(value.pendingInRoundSats)+FfiConverterUInt64.allocationSize(value.pendingExitSats)+FfiConverterUInt64.allocationSize(value.pendingLightningSendSats)+FfiConverterUInt64.allocationSize(value.claimableLightningReceiveSats)+FfiConverterUInt64.allocationSize(value.pendingBoardSats);}}return new FFIConverter();})();/**
|
|
241
|
+
*/export const Balance=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBalance=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{spendableSats:FfiConverterUInt64.readFromCursor(c),needsRefreshSats:FfiConverterUInt64.readFromCursor(c),pendingInRoundSats:FfiConverterUInt64.readFromCursor(c),pendingExitSats:FfiConverterUInt64.readFromCursor(c),pendingLightningSendSats:FfiConverterUInt64.readFromCursor(c),claimableLightningReceiveSats:FfiConverterUInt64.readFromCursor(c),pendingBoardSats:FfiConverterUInt64.readFromCursor(c),pendingArkoorSendSats:FfiConverterUInt64.readFromCursor(c),pendingOffboardSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt64.writeIntoCursor(value.spendableSats,c);FfiConverterUInt64.writeIntoCursor(value.needsRefreshSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingInRoundSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingExitSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingLightningSendSats,c);FfiConverterUInt64.writeIntoCursor(value.claimableLightningReceiveSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingBoardSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingArkoorSendSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingOffboardSats,c);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.spendableSats)+FfiConverterUInt64.allocationSize(value.needsRefreshSats)+FfiConverterUInt64.allocationSize(value.pendingInRoundSats)+FfiConverterUInt64.allocationSize(value.pendingExitSats)+FfiConverterUInt64.allocationSize(value.pendingLightningSendSats)+FfiConverterUInt64.allocationSize(value.claimableLightningReceiveSats)+FfiConverterUInt64.allocationSize(value.pendingBoardSats)+FfiConverterUInt64.allocationSize(value.pendingArkoorSendSats)+FfiConverterUInt64.allocationSize(value.pendingOffboardSats);}}return new FFIConverter();})();/**
|
|
242
|
+
* The numbers to show a user without the breakdown of [`Balance`],
|
|
243
|
+
* mirroring `bark::BalanceSummary`.
|
|
244
|
+
*
|
|
245
|
+
* Show `spendable_sats` as what a user can pay with and `total_sats` as what
|
|
246
|
+
* a user owns.
|
|
247
|
+
*//**
|
|
248
|
+
* Generated factory for {@link BalanceSummary} record objects.
|
|
249
|
+
*/export const BalanceSummary=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBalanceSummary=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{spendableSats:FfiConverterUInt64.readFromCursor(c),needsRefreshSats:FfiConverterUInt64.readFromCursor(c),pendingSats:FfiConverterUInt64.readFromCursor(c),totalSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt64.writeIntoCursor(value.spendableSats,c);FfiConverterUInt64.writeIntoCursor(value.needsRefreshSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingSats,c);FfiConverterUInt64.writeIntoCursor(value.totalSats,c);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.spendableSats)+FfiConverterUInt64.allocationSize(value.needsRefreshSats)+FfiConverterUInt64.allocationSize(value.pendingSats)+FfiConverterUInt64.allocationSize(value.totalSats);}}return new FFIConverter();})();/**
|
|
250
|
+
* Generated factory for {@link LightningInvoice} record objects.
|
|
251
|
+
*/export const LightningInvoice=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLightningInvoice=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{invoice:FfiConverterString.readFromCursor(c),paymentHash:FfiConverterString.readFromCursor(c),amountSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.invoice,c);FfiConverterString.writeIntoCursor(value.paymentHash,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);}allocationSize(value){return FfiConverterString.allocationSize(value.invoice)+FfiConverterString.allocationSize(value.paymentHash)+FfiConverterUInt64.allocationSize(value.amountSats);}}return new FFIConverter();})();/**
|
|
252
|
+
* A BIP 321 URI built by `Wallet::bip321_uri`, with the destinations in it.
|
|
253
|
+
*//**
|
|
254
|
+
* Generated factory for {@link Bip321Uri} record objects.
|
|
255
|
+
*/export const Bip321Uri=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBip321Uri=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{uri:FfiConverterString.readFromCursor(c),arkAddress:FfiConverterOptionalString.readFromCursor(c),lightningInvoice:FfiConverterOptionalTypeLightningInvoice.readFromCursor(c),onchainAddress:FfiConverterOptionalString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.uri,c);FfiConverterOptionalString.writeIntoCursor(value.arkAddress,c);FfiConverterOptionalTypeLightningInvoice.writeIntoCursor(value.lightningInvoice,c);FfiConverterOptionalString.writeIntoCursor(value.onchainAddress,c);}allocationSize(value){return FfiConverterString.allocationSize(value.uri)+FfiConverterOptionalString.allocationSize(value.arkAddress)+FfiConverterOptionalTypeLightningInvoice.allocationSize(value.lightningInvoice)+FfiConverterOptionalString.allocationSize(value.onchainAddress);}}return new FFIConverter();})();/**
|
|
256
|
+
* What `Wallet::bip321_uri` puts in the URI. Every field is optional.
|
|
257
|
+
*//**
|
|
258
|
+
* Generated factory for {@link Bip321UriOptions} record objects.
|
|
259
|
+
*/export const Bip321UriOptions=(()=>{const defaults=()=>({amountSats:undefined,label:undefined,message:undefined,ark:true,lightning:true,onchainAddress:undefined});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeBip321UriOptions=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{amountSats:FfiConverterOptionalUInt64.readFromCursor(c),label:FfiConverterOptionalString.readFromCursor(c),message:FfiConverterOptionalString.readFromCursor(c),ark:FfiConverterBool.readFromCursor(c),lightning:FfiConverterBool.readFromCursor(c),onchainAddress:FfiConverterOptionalString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterOptionalUInt64.writeIntoCursor(value.amountSats,c);FfiConverterOptionalString.writeIntoCursor(value.label,c);FfiConverterOptionalString.writeIntoCursor(value.message,c);FfiConverterBool.writeIntoCursor(value.ark,c);FfiConverterBool.writeIntoCursor(value.lightning,c);FfiConverterOptionalString.writeIntoCursor(value.onchainAddress,c);}allocationSize(value){return FfiConverterOptionalUInt64.allocationSize(value.amountSats)+FfiConverterOptionalString.allocationSize(value.label)+FfiConverterOptionalString.allocationSize(value.message)+FfiConverterBool.allocationSize(value.ark)+FfiConverterBool.allocationSize(value.lightning)+FfiConverterOptionalString.allocationSize(value.onchainAddress);}}return new FFIConverter();})();/**
|
|
106
260
|
* Reference to a block in the blockchain
|
|
107
261
|
*//**
|
|
108
262
|
* Generated factory for {@link BlockRef} record objects.
|
|
@@ -116,12 +270,26 @@ readStringFromBuffer:(buf,offset,length)=>nativeModule().ubrn_uniffi_internal_fn
|
|
|
116
270
|
*//**
|
|
117
271
|
* Generated factory for {@link BoardFundingInfo} record objects.
|
|
118
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),keypairIndex:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.address,c);FfiConverterUInt32.writeIntoCursor(value.expiryHeight,c);FfiConverterUInt32.writeIntoCursor(value.keypairIndex,c);}allocationSize(value){return FfiConverterString.allocationSize(value.address)+FfiConverterUInt32.allocationSize(value.expiryHeight)+FfiConverterUInt32.allocationSize(value.keypairIndex);}}return new FFIConverter();})();/**
|
|
273
|
+
* Fields of a BOLT11 invoice, as returned by `decode_bolt11_invoice`.
|
|
274
|
+
*//**
|
|
275
|
+
* Generated factory for {@link Bolt11InvoiceDetails} record objects.
|
|
276
|
+
*/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();})();/**
|
|
119
277
|
* Generated factory for {@link Config} record objects.
|
|
120
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();})();/**
|
|
121
279
|
* Parameters for creating a CPFP (Child Pays For Parent) transaction
|
|
122
280
|
*//**
|
|
123
281
|
* Generated factory for {@link CpfpParams} record objects.
|
|
124
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),currentPackageFeeSats:FfiConverterOptionalUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txHex,c);FfiConverterString.writeIntoCursor(value.feesType,c);FfiConverterUInt64.writeIntoCursor(value.effectiveFeeRateSatPerVb,c);FfiConverterOptionalUInt64.writeIntoCursor(value.currentPackageFeeSats,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txHex)+FfiConverterString.allocationSize(value.feesType)+FfiConverterUInt64.allocationSize(value.effectiveFeeRateSatPerVb)+FfiConverterOptionalUInt64.allocationSize(value.currentPackageFeeSats);}}return new FFIConverter();})();/**
|
|
283
|
+
* What [`read_datadir_info`] found in a wallet directory.
|
|
284
|
+
*//**
|
|
285
|
+
* Generated factory for {@link DatadirInfo} record objects.
|
|
286
|
+
*/export const DatadirInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDatadirInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{dbFile:FfiConverterString.readFromCursor(c),network:FfiConverterTypeNetwork.readFromCursor(c),fingerprint:FfiConverterString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.dbFile,c);FfiConverterTypeNetwork.writeIntoCursor(value.network,c);FfiConverterString.writeIntoCursor(value.fingerprint,c);}allocationSize(value){return FfiConverterString.allocationSize(value.dbFile)+FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterString.allocationSize(value.fingerprint);}}return new FFIConverter();})();/**
|
|
287
|
+
* Wallet information that helps to debug issues, mirroring
|
|
288
|
+
* `bark::DebugInfo` (what `bark debug-info` prints). Users can share it in
|
|
289
|
+
* support requests.
|
|
290
|
+
*//**
|
|
291
|
+
* Generated factory for {@link DebugInfo} record objects.
|
|
292
|
+
*/export const DebugInfo=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeDebugInfo=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{network:FfiConverterTypeNetwork.readFromCursor(c),mailboxId:FfiConverterString.readFromCursor(c),vtxoXpub:FfiConverterString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterTypeNetwork.writeIntoCursor(value.network,c);FfiConverterString.writeIntoCursor(value.mailboxId,c);FfiConverterString.writeIntoCursor(value.vtxoXpub,c);}allocationSize(value){return FfiConverterTypeNetwork.allocationSize(value.network)+FfiConverterString.allocationSize(value.mailboxId)+FfiConverterString.allocationSize(value.vtxoXpub);}}return new FFIConverter();})();/**
|
|
125
293
|
* A Bitcoin transaction output destination
|
|
126
294
|
*//**
|
|
127
295
|
* Generated factory for {@link Destination} record objects.
|
|
@@ -142,7 +310,7 @@ readStringFromBuffer:(buf,offset,length)=>nativeModule().ubrn_uniffi_internal_fn
|
|
|
142
310
|
* Carries no payload — use it where only the variant matters (e.g. reporting
|
|
143
311
|
* which state blocked a cancellation). Serde/TS tags match upstream's
|
|
144
312
|
* kebab-case serialization.
|
|
145
|
-
*/export let ExitStateKind=/*#__PURE__*/function(ExitStateKind){ExitStateKind[ExitStateKind["Start"]=0]="Start";ExitStateKind[ExitStateKind["Processing"]=1]="Processing";ExitStateKind[ExitStateKind["AwaitingDelta"]=2]="AwaitingDelta";ExitStateKind[ExitStateKind["Claimable"]=3]="Claimable";ExitStateKind[ExitStateKind["ClaimInProgress"]=4]="ClaimInProgress";ExitStateKind[ExitStateKind["Claimed"]=5]="Claimed";ExitStateKind[ExitStateKind["VtxoAlreadySpent"]=6]="VtxoAlreadySpent";ExitStateKind[ExitStateKind["
|
|
313
|
+
*/export let ExitStateKind=/*#__PURE__*/function(ExitStateKind){ExitStateKind[ExitStateKind["Start"]=0]="Start";ExitStateKind[ExitStateKind["Processing"]=1]="Processing";ExitStateKind[ExitStateKind["AwaitingDelta"]=2]="AwaitingDelta";ExitStateKind[ExitStateKind["Claimable"]=3]="Claimable";ExitStateKind[ExitStateKind["ClaimInProgress"]=4]="ClaimInProgress";ExitStateKind[ExitStateKind["Claimed"]=5]="Claimed";ExitStateKind[ExitStateKind["VtxoAlreadySpent"]=6]="VtxoAlreadySpent";ExitStateKind[ExitStateKind["VtxoSwept"]=7]="VtxoSwept";ExitStateKind[ExitStateKind["Canceled"]=8]="Canceled";return ExitStateKind;}({});const FfiConverterTypeExitStateKind=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return ExitStateKind.Start;case 2:return ExitStateKind.Processing;case 3:return ExitStateKind.AwaitingDelta;case 4:return ExitStateKind.Claimable;case 5:return ExitStateKind.ClaimInProgress;case 6:return ExitStateKind.Claimed;case 7:return ExitStateKind.VtxoAlreadySpent;case 8:return ExitStateKind.VtxoSwept;case 9:return ExitStateKind.Canceled;default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value){case ExitStateKind.Start:return c.writeI32(1);case ExitStateKind.Processing:return c.writeI32(2);case ExitStateKind.AwaitingDelta:return c.writeI32(3);case ExitStateKind.Claimable:return c.writeI32(4);case ExitStateKind.ClaimInProgress:return c.writeI32(5);case ExitStateKind.Claimed:return c.writeI32(6);case ExitStateKind.VtxoAlreadySpent:return c.writeI32(7);case ExitStateKind.VtxoSwept:return c.writeI32(8);case ExitStateKind.Canceled:return c.writeI32(9);}}allocationSize(value){return 4;}}return new FFIConverter();})();// Enum: ExitCancelFailure
|
|
146
314
|
export let ExitCancelFailure_Tags=/*#__PURE__*/function(ExitCancelFailure_Tags){ExitCancelFailure_Tags["NotExiting"]="NotExiting";ExitCancelFailure_Tags["TooLate"]="TooLate";ExitCancelFailure_Tags["AlreadyBroadcast"]="AlreadyBroadcast";return ExitCancelFailure_Tags;}({});/**
|
|
147
315
|
* Why a [`Wallet::cancel_exit`](crate::core::Wallet::cancel_exit) did not
|
|
148
316
|
* cancel the exit.
|
|
@@ -184,11 +352,7 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
184
352
|
* When `false`, `reason` says why.
|
|
185
353
|
*//**
|
|
186
354
|
* Generated factory for {@link ExitCancelResult} record objects.
|
|
187
|
-
*/export const ExitCancelResult=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitCancelResult=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{canceled:FfiConverterBool.readFromCursor(c),reason:FfiConverterOptionalTypeExitCancelFailure.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterBool.writeIntoCursor(value.canceled,c);FfiConverterOptionalTypeExitCancelFailure.writeIntoCursor(value.reason,c);}allocationSize(value){return FfiConverterBool.allocationSize(value.canceled)+FfiConverterOptionalTypeExitCancelFailure.allocationSize(value.reason);}}return new FFIConverter();})()
|
|
188
|
-
* Claim transaction for exited funds
|
|
189
|
-
*//**
|
|
190
|
-
* Generated factory for {@link ExitClaimTransaction} record objects.
|
|
191
|
-
*/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)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.psbtBase64,c);FfiConverterUInt64.writeIntoCursor(value.feeSats,c);}allocationSize(value){return FfiConverterString.allocationSize(value.psbtBase64)+FfiConverterUInt64.allocationSize(value.feeSats);}}return new FFIConverter();})();// Enum: ExitTxOrigin
|
|
355
|
+
*/export const ExitCancelResult=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitCancelResult=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{canceled:FfiConverterBool.readFromCursor(c),reason:FfiConverterOptionalTypeExitCancelFailure.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterBool.writeIntoCursor(value.canceled,c);FfiConverterOptionalTypeExitCancelFailure.writeIntoCursor(value.reason,c);}allocationSize(value){return FfiConverterBool.allocationSize(value.canceled)+FfiConverterOptionalTypeExitCancelFailure.allocationSize(value.reason);}}return new FFIConverter();})();// Enum: ExitTxOrigin
|
|
192
356
|
export let ExitTxOrigin_Tags=/*#__PURE__*/function(ExitTxOrigin_Tags){ExitTxOrigin_Tags["Wallet"]="Wallet";ExitTxOrigin_Tags["Mempool"]="Mempool";ExitTxOrigin_Tags["Block"]="Block";return ExitTxOrigin_Tags;}({});/**
|
|
193
357
|
* Where an exit transaction was first seen, mirroring `bark::exit::ExitTxOrigin`.
|
|
194
358
|
*/export const ExitTxOrigin=(()=>{/**
|
|
@@ -210,7 +374,15 @@ export let ExitTxOrigin_Tags=/*#__PURE__*/function(ExitTxOrigin_Tags){ExitTxOrig
|
|
|
210
374
|
* Where an exit transaction was first seen, mirroring `bark::exit::ExitTxOrigin`.
|
|
211
375
|
*/// FfiConverter for enum ExitTxOrigin
|
|
212
376
|
const FfiConverterTypeExitTxOrigin=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new ExitTxOrigin.Wallet({confirmedIn:FfiConverterOptionalTypeBlockRef.readFromCursor(c)});case 2:return new ExitTxOrigin.Mempool();case 3:return new ExitTxOrigin.Block({confirmedIn:FfiConverterTypeBlockRef.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case ExitTxOrigin_Tags.Wallet:{c.writeI32(1);const inner=value.inner;FfiConverterOptionalTypeBlockRef.writeIntoCursor(inner.confirmedIn,c);return;}case ExitTxOrigin_Tags.Mempool:{c.writeI32(2);return;}case ExitTxOrigin_Tags.Block:{c.writeI32(3);const inner=value.inner;FfiConverterTypeBlockRef.writeIntoCursor(inner.confirmedIn,c);return;}default:// Throwing from here means that ExitTxOrigin_Tags hasn't matched an ordinal.
|
|
213
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitTxOrigin_Tags.Wallet:{const inner=value.inner;let size=4;size+=FfiConverterOptionalTypeBlockRef.allocationSize(inner.confirmedIn);return size;}case ExitTxOrigin_Tags.Mempool:{return 4;}case ExitTxOrigin_Tags.Block:{const inner=value.inner;let size=4;size+=FfiConverterTypeBlockRef.allocationSize(inner.confirmedIn);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})()
|
|
377
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitTxOrigin_Tags.Wallet:{const inner=value.inner;let size=4;size+=FfiConverterOptionalTypeBlockRef.allocationSize(inner.confirmedIn);return size;}case ExitTxOrigin_Tags.Mempool:{return 4;}case ExitTxOrigin_Tags.Block:{const inner=value.inner;let size=4;size+=FfiConverterTypeBlockRef.allocationSize(inner.confirmedIn);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
378
|
+
* The CPFP child of an exit transaction.
|
|
379
|
+
*//**
|
|
380
|
+
* Generated factory for {@link ExitChildTransaction} record objects.
|
|
381
|
+
*/export const ExitChildTransaction=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitChildTransaction=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),txHex:FfiConverterString.readFromCursor(c),origin:FfiConverterTypeExitTxOrigin.readFromCursor(c),feeRateSatPerKwu:FfiConverterOptionalUInt64.readFromCursor(c),totalFeeSats:FfiConverterOptionalUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterString.writeIntoCursor(value.txHex,c);FfiConverterTypeExitTxOrigin.writeIntoCursor(value.origin,c);FfiConverterOptionalUInt64.writeIntoCursor(value.feeRateSatPerKwu,c);FfiConverterOptionalUInt64.writeIntoCursor(value.totalFeeSats,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterString.allocationSize(value.txHex)+FfiConverterTypeExitTxOrigin.allocationSize(value.origin)+FfiConverterOptionalUInt64.allocationSize(value.feeRateSatPerKwu)+FfiConverterOptionalUInt64.allocationSize(value.totalFeeSats);}}return new FFIConverter();})();/**
|
|
382
|
+
* Claim transaction for exited funds
|
|
383
|
+
*//**
|
|
384
|
+
* 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();})();// Enum: ExitTxStatus
|
|
214
386
|
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;}({});/**
|
|
215
387
|
* Broadcast/confirmation status of one transaction in an exit chain,
|
|
216
388
|
* mirroring `bark::exit::ExitTxStatus`.
|
|
@@ -249,13 +421,18 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
249
421
|
* One transaction in an exit's unilateral broadcast chain.
|
|
250
422
|
*//**
|
|
251
423
|
* Generated factory for {@link ExitTx} record objects.
|
|
252
|
-
*/export const ExitTx=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitTx=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),status:FfiConverterTypeExitTxStatus.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterTypeExitTxStatus.writeIntoCursor(value.status,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterTypeExitTxStatus.allocationSize(value.status);}}return new FFIConverter();})()
|
|
253
|
-
|
|
424
|
+
*/export const ExitTx=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitTx=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),status:FfiConverterTypeExitTxStatus.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterTypeExitTxStatus.writeIntoCursor(value.status,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterTypeExitTxStatus.allocationSize(value.status);}}return new FFIConverter();})();/**
|
|
425
|
+
* A Bitcoin transaction outpoint (reference to a previous output)
|
|
426
|
+
*//**
|
|
427
|
+
* Generated factory for {@link OutPoint} record objects.
|
|
428
|
+
*/export const OutPoint=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOutPoint=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),vout:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterUInt32.writeIntoCursor(value.vout,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.vout);}}return new FFIConverter();})();// Enum: ExitState
|
|
429
|
+
export let ExitState_Tags=/*#__PURE__*/function(ExitState_Tags){ExitState_Tags["Start"]="Start";ExitState_Tags["Processing"]="Processing";ExitState_Tags["AwaitingDelta"]="AwaitingDelta";ExitState_Tags["Claimable"]="Claimable";ExitState_Tags["ClaimInProgress"]="ClaimInProgress";ExitState_Tags["Claimed"]="Claimed";ExitState_Tags["VtxoAlreadySpent"]="VtxoAlreadySpent";ExitState_Tags["VtxoSwept"]="VtxoSwept";ExitState_Tags["Canceled"]="Canceled";return ExitState_Tags;}({});/**
|
|
254
430
|
* State of a unilateral exit, mirroring `bark::exit::ExitState`.
|
|
255
431
|
*
|
|
256
432
|
* Serde/TS tags match upstream's kebab-case serialization (`"start"`,
|
|
257
433
|
* `"processing"`, `"awaiting-delta"`, `"claimable"`, `"claim-in-progress"`,
|
|
258
|
-
* `"claimed"`, `"vtxo-already-spent"`, `"canceled"`), with
|
|
434
|
+
* `"claimed"`, `"vtxo-already-spent"`, `"vtxo-swept"`, `"canceled"`), with
|
|
435
|
+
* camelCase fields.
|
|
259
436
|
*/export const ExitState=(()=>{/**
|
|
260
437
|
* The exit was requested at the given tip.
|
|
261
438
|
*/class Start_ extends UniffiEnum{/**
|
|
@@ -293,28 +470,46 @@ export let ExitState_Tags=/*#__PURE__*/function(ExitState_Tags){ExitState_Tags["
|
|
|
293
470
|
* @private
|
|
294
471
|
* This field is private and should not be used, use `tag` instead.
|
|
295
472
|
*/[uniffiTypeNameSymbol]="ExitState";tag=ExitState_Tags.VtxoAlreadySpent;constructor(inner){super("ExitState","VtxoAlreadySpent");this.inner=Object.freeze(inner);}static new(inner){return new VtxoAlreadySpent_(inner);}static instanceOf(obj){return obj.tag===ExitState_Tags.VtxoAlreadySpent;}}/**
|
|
473
|
+
* Terminal: an output the exit chain needs was spent on chain by someone
|
|
474
|
+
* else, in practice the server sweeping a VTXO that expired mid-exit.
|
|
475
|
+
* `spent_inputs` are the exit transaction inputs that were taken. A
|
|
476
|
+
* refresh may still be possible.
|
|
477
|
+
*/class VtxoSwept_ extends UniffiEnum{/**
|
|
478
|
+
* @private
|
|
479
|
+
* This field is private and should not be used, use `tag` instead.
|
|
480
|
+
*/[uniffiTypeNameSymbol]="ExitState";tag=ExitState_Tags.VtxoSwept;constructor(inner){super("ExitState","VtxoSwept");this.inner=Object.freeze(inner);}static new(inner){return new VtxoSwept_(inner);}static instanceOf(obj){return obj.tag===ExitState_Tags.VtxoSwept;}}/**
|
|
296
481
|
* Resumable: the user canceled the exit before its final transaction
|
|
297
482
|
* was broadcast. The VTXO stays spendable.
|
|
298
483
|
*/class Canceled_ extends UniffiEnum{/**
|
|
299
484
|
* @private
|
|
300
485
|
* This field is private and should not be used, use `tag` instead.
|
|
301
|
-
*/[uniffiTypeNameSymbol]="ExitState";tag=ExitState_Tags.Canceled;constructor(inner){super("ExitState","Canceled");this.inner=Object.freeze(inner);}static new(inner){return new Canceled_(inner);}static instanceOf(obj){return obj.tag===ExitState_Tags.Canceled;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="ExitState";}return Object.freeze({instanceOf,Start:Start_,Processing:Processing_,AwaitingDelta:AwaitingDelta_,Claimable:Claimable_,ClaimInProgress:ClaimInProgress_,Claimed:Claimed_,VtxoAlreadySpent:VtxoAlreadySpent_,Canceled:Canceled_});})();/**
|
|
486
|
+
*/[uniffiTypeNameSymbol]="ExitState";tag=ExitState_Tags.Canceled;constructor(inner){super("ExitState","Canceled");this.inner=Object.freeze(inner);}static new(inner){return new Canceled_(inner);}static instanceOf(obj){return obj.tag===ExitState_Tags.Canceled;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="ExitState";}return Object.freeze({instanceOf,Start:Start_,Processing:Processing_,AwaitingDelta:AwaitingDelta_,Claimable:Claimable_,ClaimInProgress:ClaimInProgress_,Claimed:Claimed_,VtxoAlreadySpent:VtxoAlreadySpent_,VtxoSwept:VtxoSwept_,Canceled:Canceled_});})();/**
|
|
302
487
|
* State of a unilateral exit, mirroring `bark::exit::ExitState`.
|
|
303
488
|
*
|
|
304
489
|
* Serde/TS tags match upstream's kebab-case serialization (`"start"`,
|
|
305
490
|
* `"processing"`, `"awaiting-delta"`, `"claimable"`, `"claim-in-progress"`,
|
|
306
|
-
* `"claimed"`, `"vtxo-already-spent"`, `"canceled"`), with
|
|
491
|
+
* `"claimed"`, `"vtxo-already-spent"`, `"vtxo-swept"`, `"canceled"`), with
|
|
492
|
+
* camelCase fields.
|
|
307
493
|
*/// FfiConverter for enum ExitState
|
|
308
|
-
const FfiConverterTypeExitState=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new ExitState.Start({tipHeight:FfiConverterUInt32.readFromCursor(c)});case 2:return new ExitState.Processing({tipHeight:FfiConverterUInt32.readFromCursor(c),transactions:FfiConverterSequenceTypeExitTx.readFromCursor(c)});case 3:return new ExitState.AwaitingDelta({tipHeight:FfiConverterUInt32.readFromCursor(c),confirmedBlock:FfiConverterTypeBlockRef.readFromCursor(c),claimableHeight:FfiConverterUInt32.readFromCursor(c)});case 4:return new ExitState.Claimable({tipHeight:FfiConverterUInt32.readFromCursor(c),claimableSince:FfiConverterTypeBlockRef.readFromCursor(c),lastScannedBlock:FfiConverterOptionalTypeBlockRef.readFromCursor(c)});case 5:return new ExitState.ClaimInProgress({tipHeight:FfiConverterUInt32.readFromCursor(c),claimableSince:FfiConverterTypeBlockRef.readFromCursor(c),claimTxid:FfiConverterString.readFromCursor(c)});case 6:return new ExitState.Claimed({tipHeight:FfiConverterUInt32.readFromCursor(c),txid:FfiConverterString.readFromCursor(c),block:FfiConverterTypeBlockRef.readFromCursor(c)});case 7:return new ExitState.VtxoAlreadySpent({tipHeight:FfiConverterUInt32.readFromCursor(c)});case 8:return new ExitState.Canceled({tipHeight:FfiConverterUInt32.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case ExitState_Tags.Start:{c.writeI32(1);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);return;}case ExitState_Tags.Processing:{c.writeI32(2);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterSequenceTypeExitTx.writeIntoCursor(inner.transactions,c);return;}case ExitState_Tags.AwaitingDelta:{c.writeI32(3);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.confirmedBlock,c);FfiConverterUInt32.writeIntoCursor(inner.claimableHeight,c);return;}case ExitState_Tags.Claimable:{c.writeI32(4);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.claimableSince,c);FfiConverterOptionalTypeBlockRef.writeIntoCursor(inner.lastScannedBlock,c);return;}case ExitState_Tags.ClaimInProgress:{c.writeI32(5);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.claimableSince,c);FfiConverterString.writeIntoCursor(inner.claimTxid,c);return;}case ExitState_Tags.Claimed:{c.writeI32(6);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterString.writeIntoCursor(inner.txid,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.block,c);return;}case ExitState_Tags.VtxoAlreadySpent:{c.writeI32(7);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);return;}case ExitState_Tags.
|
|
309
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitState_Tags.Start:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);return size;}case ExitState_Tags.Processing:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterSequenceTypeExitTx.allocationSize(inner.transactions);return size;}case ExitState_Tags.AwaitingDelta:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterTypeBlockRef.allocationSize(inner.confirmedBlock);size+=FfiConverterUInt32.allocationSize(inner.claimableHeight);return size;}case ExitState_Tags.Claimable:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterTypeBlockRef.allocationSize(inner.claimableSince);size+=FfiConverterOptionalTypeBlockRef.allocationSize(inner.lastScannedBlock);return size;}case ExitState_Tags.ClaimInProgress:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterTypeBlockRef.allocationSize(inner.claimableSince);size+=FfiConverterString.allocationSize(inner.claimTxid);return size;}case ExitState_Tags.Claimed:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterTypeBlockRef.allocationSize(inner.block);return size;}case ExitState_Tags.VtxoAlreadySpent:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);return size;}case ExitState_Tags.Canceled:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
494
|
+
const FfiConverterTypeExitState=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new ExitState.Start({tipHeight:FfiConverterUInt32.readFromCursor(c)});case 2:return new ExitState.Processing({tipHeight:FfiConverterUInt32.readFromCursor(c),transactions:FfiConverterSequenceTypeExitTx.readFromCursor(c)});case 3:return new ExitState.AwaitingDelta({tipHeight:FfiConverterUInt32.readFromCursor(c),confirmedBlock:FfiConverterTypeBlockRef.readFromCursor(c),claimableHeight:FfiConverterUInt32.readFromCursor(c)});case 4:return new ExitState.Claimable({tipHeight:FfiConverterUInt32.readFromCursor(c),claimableSince:FfiConverterTypeBlockRef.readFromCursor(c),lastScannedBlock:FfiConverterOptionalTypeBlockRef.readFromCursor(c)});case 5:return new ExitState.ClaimInProgress({tipHeight:FfiConverterUInt32.readFromCursor(c),claimableSince:FfiConverterTypeBlockRef.readFromCursor(c),claimTxid:FfiConverterString.readFromCursor(c)});case 6:return new ExitState.Claimed({tipHeight:FfiConverterUInt32.readFromCursor(c),txid:FfiConverterString.readFromCursor(c),block:FfiConverterTypeBlockRef.readFromCursor(c)});case 7:return new ExitState.VtxoAlreadySpent({tipHeight:FfiConverterUInt32.readFromCursor(c)});case 8:return new ExitState.VtxoSwept({tipHeight:FfiConverterUInt32.readFromCursor(c),spentInputs:FfiConverterSequenceTypeOutPoint.readFromCursor(c)});case 9:return new ExitState.Canceled({tipHeight:FfiConverterUInt32.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case ExitState_Tags.Start:{c.writeI32(1);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);return;}case ExitState_Tags.Processing:{c.writeI32(2);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterSequenceTypeExitTx.writeIntoCursor(inner.transactions,c);return;}case ExitState_Tags.AwaitingDelta:{c.writeI32(3);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.confirmedBlock,c);FfiConverterUInt32.writeIntoCursor(inner.claimableHeight,c);return;}case ExitState_Tags.Claimable:{c.writeI32(4);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.claimableSince,c);FfiConverterOptionalTypeBlockRef.writeIntoCursor(inner.lastScannedBlock,c);return;}case ExitState_Tags.ClaimInProgress:{c.writeI32(5);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.claimableSince,c);FfiConverterString.writeIntoCursor(inner.claimTxid,c);return;}case ExitState_Tags.Claimed:{c.writeI32(6);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterString.writeIntoCursor(inner.txid,c);FfiConverterTypeBlockRef.writeIntoCursor(inner.block,c);return;}case ExitState_Tags.VtxoAlreadySpent:{c.writeI32(7);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);return;}case ExitState_Tags.VtxoSwept:{c.writeI32(8);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);FfiConverterSequenceTypeOutPoint.writeIntoCursor(inner.spentInputs,c);return;}case ExitState_Tags.Canceled:{c.writeI32(9);const inner=value.inner;FfiConverterUInt32.writeIntoCursor(inner.tipHeight,c);return;}default:// Throwing from here means that ExitState_Tags hasn't matched an ordinal.
|
|
495
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case ExitState_Tags.Start:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);return size;}case ExitState_Tags.Processing:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterSequenceTypeExitTx.allocationSize(inner.transactions);return size;}case ExitState_Tags.AwaitingDelta:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterTypeBlockRef.allocationSize(inner.confirmedBlock);size+=FfiConverterUInt32.allocationSize(inner.claimableHeight);return size;}case ExitState_Tags.Claimable:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterTypeBlockRef.allocationSize(inner.claimableSince);size+=FfiConverterOptionalTypeBlockRef.allocationSize(inner.lastScannedBlock);return size;}case ExitState_Tags.ClaimInProgress:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterTypeBlockRef.allocationSize(inner.claimableSince);size+=FfiConverterString.allocationSize(inner.claimTxid);return size;}case ExitState_Tags.Claimed:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterString.allocationSize(inner.txid);size+=FfiConverterTypeBlockRef.allocationSize(inner.block);return size;}case ExitState_Tags.VtxoAlreadySpent:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);return size;}case ExitState_Tags.VtxoSwept:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);size+=FfiConverterSequenceTypeOutPoint.allocationSize(inner.spentInputs);return size;}case ExitState_Tags.Canceled:{const inner=value.inner;let size=4;size+=FfiConverterUInt32.allocationSize(inner.tipHeight);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
310
496
|
* Status of an exit progression
|
|
311
497
|
*//**
|
|
312
498
|
* Generated factory for {@link ExitProgressStatus} record objects.
|
|
313
499
|
*/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();})();/**
|
|
500
|
+
* One transaction of an exit: the exit transaction itself and, once it was
|
|
501
|
+
* fee-bumped, the child that confirms it. A unilateral exit is a chain of
|
|
502
|
+
* these, root first.
|
|
503
|
+
*//**
|
|
504
|
+
* Generated factory for {@link ExitTransactionPackage} record objects.
|
|
505
|
+
*/export const ExitTransactionPackage=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitTransactionPackage=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{exitTxid:FfiConverterString.readFromCursor(c),exitTxHex:FfiConverterString.readFromCursor(c),child:FfiConverterOptionalTypeExitChildTransaction.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.exitTxid,c);FfiConverterString.writeIntoCursor(value.exitTxHex,c);FfiConverterOptionalTypeExitChildTransaction.writeIntoCursor(value.child,c);}allocationSize(value){return FfiConverterString.allocationSize(value.exitTxid)+FfiConverterString.allocationSize(value.exitTxHex)+FfiConverterOptionalTypeExitChildTransaction.allocationSize(value.child);}}return new FFIConverter();})();/**
|
|
314
506
|
* Detailed status of an exit transaction
|
|
507
|
+
*
|
|
508
|
+
* Returned for live and finished exits alike by `get_exit_status`,
|
|
509
|
+
* `list_all_exits`, `list_live_exits` and `list_finished_exits`.
|
|
315
510
|
*//**
|
|
316
511
|
* Generated factory for {@link ExitTransactionStatus} record objects.
|
|
317
|
-
*/export const ExitTransactionStatus=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitTransactionStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),state:FfiConverterTypeExitState.readFromCursor(c),history:FfiConverterOptionalSequenceTypeExitState.readFromCursor(c),transactionCount:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterTypeExitState.writeIntoCursor(value.state,c);FfiConverterOptionalSequenceTypeExitState.writeIntoCursor(value.history,c);FfiConverterUInt32.writeIntoCursor(value.transactionCount,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterTypeExitState.allocationSize(value.state)+FfiConverterOptionalSequenceTypeExitState.allocationSize(value.history)+FfiConverterUInt32.allocationSize(value.transactionCount);}}return new FFIConverter();})();/**
|
|
512
|
+
*/export const ExitTransactionStatus=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeExitTransactionStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{vtxoId:FfiConverterString.readFromCursor(c),state:FfiConverterTypeExitState.readFromCursor(c),history:FfiConverterOptionalSequenceTypeExitState.readFromCursor(c),transactionCount:FfiConverterUInt32.readFromCursor(c),transactions:FfiConverterSequenceTypeExitTransactionPackage.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterTypeExitState.writeIntoCursor(value.state,c);FfiConverterOptionalSequenceTypeExitState.writeIntoCursor(value.history,c);FfiConverterUInt32.writeIntoCursor(value.transactionCount,c);FfiConverterSequenceTypeExitTransactionPackage.writeIntoCursor(value.transactions,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterTypeExitState.allocationSize(value.state)+FfiConverterOptionalSequenceTypeExitState.allocationSize(value.history)+FfiConverterUInt32.allocationSize(value.transactionCount)+FfiConverterSequenceTypeExitTransactionPackage.allocationSize(value.transactions);}}return new FFIConverter();})();/**
|
|
318
513
|
* A VTXO that is being unilaterally exited
|
|
319
514
|
*//**
|
|
320
515
|
* Generated factory for {@link ExitVtxo} record objects.
|
|
@@ -335,24 +530,29 @@ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switc
|
|
|
335
530
|
*//**
|
|
336
531
|
* Generated factory for {@link ImportVtxoArgs} record objects.
|
|
337
532
|
*/export const ImportVtxoArgs=(()=>{const defaults=()=>({gapLimit:undefined,skipStatusCheck:false,allowPartial:false});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeImportVtxoArgs=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{gapLimit:FfiConverterOptionalUInt32.readFromCursor(c),skipStatusCheck:FfiConverterBool.readFromCursor(c),allowPartial:FfiConverterBool.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterOptionalUInt32.writeIntoCursor(value.gapLimit,c);FfiConverterBool.writeIntoCursor(value.skipStatusCheck,c);FfiConverterBool.writeIntoCursor(value.allowPartial,c);}allocationSize(value){return FfiConverterOptionalUInt32.allocationSize(value.gapLimit)+FfiConverterBool.allocationSize(value.skipStatusCheck)+FfiConverterBool.allocationSize(value.allowPartial);}}return new FFIConverter();})();/**
|
|
338
|
-
* Generated factory for {@link LightningInvoice} record objects.
|
|
339
|
-
*/export const LightningInvoice=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLightningInvoice=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{invoice:FfiConverterString.readFromCursor(c),paymentHash:FfiConverterString.readFromCursor(c),amountSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.invoice,c);FfiConverterString.writeIntoCursor(value.paymentHash,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);}allocationSize(value){return FfiConverterString.allocationSize(value.invoice)+FfiConverterString.allocationSize(value.paymentHash)+FfiConverterUInt64.allocationSize(value.amountSats);}}return new FFIConverter();})();/**
|
|
340
533
|
* Generated factory for {@link LightningReceive} record objects.
|
|
341
534
|
*/export const LightningReceive=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLightningReceive=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{paymentHash:FfiConverterString.readFromCursor(c),invoice:FfiConverterString.readFromCursor(c),amountSats:FfiConverterOptionalUInt64.readFromCursor(c),state:FfiConverterString.readFromCursor(c),paymentPreimage:FfiConverterOptionalString.readFromCursor(c),settledAt:FfiConverterOptionalInt64.readFromCursor(c),claimDestination:FfiConverterOptionalString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.paymentHash,c);FfiConverterString.writeIntoCursor(value.invoice,c);FfiConverterOptionalUInt64.writeIntoCursor(value.amountSats,c);FfiConverterString.writeIntoCursor(value.state,c);FfiConverterOptionalString.writeIntoCursor(value.paymentPreimage,c);FfiConverterOptionalInt64.writeIntoCursor(value.settledAt,c);FfiConverterOptionalString.writeIntoCursor(value.claimDestination,c);}allocationSize(value){return FfiConverterString.allocationSize(value.paymentHash)+FfiConverterString.allocationSize(value.invoice)+FfiConverterOptionalUInt64.allocationSize(value.amountSats)+FfiConverterString.allocationSize(value.state)+FfiConverterOptionalString.allocationSize(value.paymentPreimage)+FfiConverterOptionalInt64.allocationSize(value.settledAt)+FfiConverterOptionalString.allocationSize(value.claimDestination);}}return new FFIConverter();})();/**
|
|
342
535
|
* Generated factory for {@link LightningSend} record objects.
|
|
343
|
-
*/export const LightningSend=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLightningSend=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{invoice:FfiConverterString.readFromCursor(c),amountSats:FfiConverterUInt64.readFromCursor(c),feeSats:FfiConverterUInt64.readFromCursor(c),htlcVtxoCount:FfiConverterUInt32.readFromCursor(c),hasFailedRevocation:FfiConverterBool.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.invoice,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);FfiConverterUInt64.writeIntoCursor(value.feeSats,c);FfiConverterUInt32.writeIntoCursor(value.htlcVtxoCount,c);FfiConverterBool.writeIntoCursor(value.hasFailedRevocation,c);}allocationSize(value){return FfiConverterString.allocationSize(value.invoice)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterUInt32.allocationSize(value.htlcVtxoCount)+FfiConverterBool.allocationSize(value.hasFailedRevocation);}}return new FFIConverter();})();/**
|
|
536
|
+
*/export const LightningSend=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeLightningSend=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{invoice:FfiConverterString.readFromCursor(c),paymentHash:FfiConverterString.readFromCursor(c),movementId:FfiConverterOptionalUInt32.readFromCursor(c),amountSats:FfiConverterUInt64.readFromCursor(c),feeSats:FfiConverterUInt64.readFromCursor(c),htlcVtxoCount:FfiConverterUInt32.readFromCursor(c),hasFailedRevocation:FfiConverterBool.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.invoice,c);FfiConverterString.writeIntoCursor(value.paymentHash,c);FfiConverterOptionalUInt32.writeIntoCursor(value.movementId,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);FfiConverterUInt64.writeIntoCursor(value.feeSats,c);FfiConverterUInt32.writeIntoCursor(value.htlcVtxoCount,c);FfiConverterBool.writeIntoCursor(value.hasFailedRevocation,c);}allocationSize(value){return FfiConverterString.allocationSize(value.invoice)+FfiConverterString.allocationSize(value.paymentHash)+FfiConverterOptionalUInt32.allocationSize(value.movementId)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterUInt64.allocationSize(value.feeSats)+FfiConverterUInt32.allocationSize(value.htlcVtxoCount)+FfiConverterBool.allocationSize(value.hasFailedRevocation);}}return new FFIConverter();})();/**
|
|
344
537
|
* Generated factory for {@link Movement} record objects.
|
|
345
538
|
*/export const Movement=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeMovement=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{id:FfiConverterUInt32.readFromCursor(c),status:FfiConverterString.readFromCursor(c),subsystemName:FfiConverterString.readFromCursor(c),subsystemKind:FfiConverterString.readFromCursor(c),metadataJson:FfiConverterString.readFromCursor(c),intendedBalanceSats:FfiConverterInt64.readFromCursor(c),effectiveBalanceSats:FfiConverterInt64.readFromCursor(c),offchainFeeSats:FfiConverterUInt64.readFromCursor(c),sentToAddresses:FfiConverterSequenceString.readFromCursor(c),receivedOnAddresses:FfiConverterSequenceString.readFromCursor(c),inputVtxoIds:FfiConverterSequenceString.readFromCursor(c),outputVtxoIds:FfiConverterSequenceString.readFromCursor(c),exitedVtxoIds:FfiConverterSequenceString.readFromCursor(c),createdAt:FfiConverterString.readFromCursor(c),updatedAt:FfiConverterString.readFromCursor(c),completedAt:FfiConverterOptionalString.readFromCursor(c),paymentHash:FfiConverterOptionalString.readFromCursor(c),lightningInvoice:FfiConverterOptionalString.readFromCursor(c),lightningOffer:FfiConverterOptionalString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt32.writeIntoCursor(value.id,c);FfiConverterString.writeIntoCursor(value.status,c);FfiConverterString.writeIntoCursor(value.subsystemName,c);FfiConverterString.writeIntoCursor(value.subsystemKind,c);FfiConverterString.writeIntoCursor(value.metadataJson,c);FfiConverterInt64.writeIntoCursor(value.intendedBalanceSats,c);FfiConverterInt64.writeIntoCursor(value.effectiveBalanceSats,c);FfiConverterUInt64.writeIntoCursor(value.offchainFeeSats,c);FfiConverterSequenceString.writeIntoCursor(value.sentToAddresses,c);FfiConverterSequenceString.writeIntoCursor(value.receivedOnAddresses,c);FfiConverterSequenceString.writeIntoCursor(value.inputVtxoIds,c);FfiConverterSequenceString.writeIntoCursor(value.outputVtxoIds,c);FfiConverterSequenceString.writeIntoCursor(value.exitedVtxoIds,c);FfiConverterString.writeIntoCursor(value.createdAt,c);FfiConverterString.writeIntoCursor(value.updatedAt,c);FfiConverterOptionalString.writeIntoCursor(value.completedAt,c);FfiConverterOptionalString.writeIntoCursor(value.paymentHash,c);FfiConverterOptionalString.writeIntoCursor(value.lightningInvoice,c);FfiConverterOptionalString.writeIntoCursor(value.lightningOffer,c);}allocationSize(value){return FfiConverterUInt32.allocationSize(value.id)+FfiConverterString.allocationSize(value.status)+FfiConverterString.allocationSize(value.subsystemName)+FfiConverterString.allocationSize(value.subsystemKind)+FfiConverterString.allocationSize(value.metadataJson)+FfiConverterInt64.allocationSize(value.intendedBalanceSats)+FfiConverterInt64.allocationSize(value.effectiveBalanceSats)+FfiConverterUInt64.allocationSize(value.offchainFeeSats)+FfiConverterSequenceString.allocationSize(value.sentToAddresses)+FfiConverterSequenceString.allocationSize(value.receivedOnAddresses)+FfiConverterSequenceString.allocationSize(value.inputVtxoIds)+FfiConverterSequenceString.allocationSize(value.outputVtxoIds)+FfiConverterSequenceString.allocationSize(value.exitedVtxoIds)+FfiConverterString.allocationSize(value.createdAt)+FfiConverterString.allocationSize(value.updatedAt)+FfiConverterOptionalString.allocationSize(value.completedAt)+FfiConverterOptionalString.allocationSize(value.paymentHash)+FfiConverterOptionalString.allocationSize(value.lightningInvoice)+FfiConverterOptionalString.allocationSize(value.lightningOffer);}}return new FFIConverter();})();/**
|
|
539
|
+
* What `offboard_all`, `offboard_vtxos` and `send_onchain` broadcast,
|
|
540
|
+
* mirroring `bark::OffboardResult`.
|
|
541
|
+
*//**
|
|
346
542
|
* Generated factory for {@link OffboardResult} record objects.
|
|
347
|
-
*/export const OffboardResult=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOffboardResult=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid);}}return new FFIConverter();})();/**
|
|
543
|
+
*/export const OffboardResult=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOffboardResult=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{txid:FfiConverterString.readFromCursor(c),movementId:FfiConverterUInt32.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.txid,c);FfiConverterUInt32.writeIntoCursor(value.movementId,c);}allocationSize(value){return FfiConverterString.allocationSize(value.txid)+FfiConverterUInt32.allocationSize(value.movementId);}}return new FFIConverter();})();/**
|
|
348
544
|
* Generated factory for {@link OnchainBalance} record objects.
|
|
349
545
|
*/export const OnchainBalance=(()=>{const defaults=()=>({});const create=(()=>{return uniffiCreateRecord(defaults);})();return Object.freeze({create,new:create,defaults:()=>Object.freeze(defaults())});})();const FfiConverterTypeOnchainBalance=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){return{confirmedSats:FfiConverterUInt64.readFromCursor(c),pendingSats:FfiConverterUInt64.readFromCursor(c),totalSats:FfiConverterUInt64.readFromCursor(c)};}writeIntoCursor(value,c){FfiConverterUInt64.writeIntoCursor(value.confirmedSats,c);FfiConverterUInt64.writeIntoCursor(value.pendingSats,c);FfiConverterUInt64.writeIntoCursor(value.totalSats,c);}allocationSize(value){return FfiConverterUInt64.allocationSize(value.confirmedSats)+FfiConverterUInt64.allocationSize(value.pendingSats)+FfiConverterUInt64.allocationSize(value.totalSats);}}return new FFIConverter();})();/**
|
|
350
|
-
* A
|
|
546
|
+
* A parsed payment string, mirroring `bark::PaymentRequest`.
|
|
547
|
+
*
|
|
548
|
+
* `label` and `message` come from a BIP 321 URI. For a bare BOLT11 invoice
|
|
549
|
+
* or BOLT12 offer, `amount_sats` is its amount and `message` its
|
|
550
|
+
* description.
|
|
351
551
|
*//**
|
|
352
|
-
* Generated factory for {@link
|
|
353
|
-
*/export const
|
|
552
|
+
* Generated factory for {@link PaymentRequest} record objects.
|
|
553
|
+
*/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();})();/**
|
|
354
554
|
* Generated factory for {@link PendingBoard} record objects.
|
|
355
|
-
*/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)};}writeIntoCursor(value,c){FfiConverterString.writeIntoCursor(value.vtxoId,c);FfiConverterUInt64.writeIntoCursor(value.amountSats,c);FfiConverterString.writeIntoCursor(value.txid,c);}allocationSize(value){return FfiConverterString.allocationSize(value.vtxoId)+FfiConverterUInt64.allocationSize(value.amountSats)+FfiConverterString.allocationSize(value.txid);}}return new FFIConverter();})();/**
|
|
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();})();/**
|
|
356
556
|
* One bucket of a [`RecoveryReport`].
|
|
357
557
|
*
|
|
358
558
|
* `total_sats` only sums the VTXOs whose amount is known, so it can
|
|
@@ -656,7 +856,33 @@ export let LightningSendStatus_Tags=/*#__PURE__*/function(LightningSendStatus_Ta
|
|
|
656
856
|
const FfiConverterTypeLightningSendStatus=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return new LightningSendStatus.Unknown();case 2:return new LightningSendStatus.InProgress({send:FfiConverterTypeLightningSend.readFromCursor(c)});case 3:return new LightningSendStatus.Paid({paymentHash:FfiConverterString.readFromCursor(c),preimage:FfiConverterString.readFromCursor(c)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value.tag){case LightningSendStatus_Tags.Unknown:{c.writeI32(1);return;}case LightningSendStatus_Tags.InProgress:{c.writeI32(2);const inner=value.inner;FfiConverterTypeLightningSend.writeIntoCursor(inner.send,c);return;}case LightningSendStatus_Tags.Paid:{c.writeI32(3);const inner=value.inner;FfiConverterString.writeIntoCursor(inner.paymentHash,c);FfiConverterString.writeIntoCursor(inner.preimage,c);return;}default:// Throwing from here means that LightningSendStatus_Tags hasn't matched an ordinal.
|
|
657
857
|
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case LightningSendStatus_Tags.Unknown:{return 4;}case LightningSendStatus_Tags.InProgress:{const inner=value.inner;let size=4;size+=FfiConverterTypeLightningSend.allocationSize(inner.send);return size;}case LightningSendStatus_Tags.Paid:{const inner=value.inner;let size=4;size+=FfiConverterString.allocationSize(inner.paymentHash);size+=FfiConverterString.allocationSize(inner.preimage);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();/**
|
|
658
858
|
* Severity of a log record.
|
|
659
|
-
*/export let LogLevel=/*#__PURE__*/function(LogLevel){LogLevel[LogLevel["Error"]=0]="Error";LogLevel[LogLevel["Warn"]=1]="Warn";LogLevel[LogLevel["Info"]=2]="Info";LogLevel[LogLevel["Debug"]=3]="Debug";LogLevel[LogLevel["Trace"]=4]="Trace";return LogLevel;}({});const FfiConverterTypeLogLevel=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return LogLevel.Error;case 2:return LogLevel.Warn;case 3:return LogLevel.Info;case 4:return LogLevel.Debug;case 5:return LogLevel.Trace;default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value){case LogLevel.Error:return c.writeI32(1);case LogLevel.Warn:return c.writeI32(2);case LogLevel.Info:return c.writeI32(3);case LogLevel.Debug:return c.writeI32(4);case LogLevel.Trace:return c.writeI32(5);}}allocationSize(value){return 4;}}return new FFIConverter();})();// Enum:
|
|
859
|
+
*/export let LogLevel=/*#__PURE__*/function(LogLevel){LogLevel[LogLevel["Error"]=0]="Error";LogLevel[LogLevel["Warn"]=1]="Warn";LogLevel[LogLevel["Info"]=2]="Info";LogLevel[LogLevel["Debug"]=3]="Debug";LogLevel[LogLevel["Trace"]=4]="Trace";return LogLevel;}({});const FfiConverterTypeLogLevel=(()=>{class FFIConverter extends AbstractFfiConverterByteArray{readFromCursor(c){switch(c.readI32()){case 1:return LogLevel.Error;case 2:return LogLevel.Warn;case 3:return LogLevel.Info;case 4:return LogLevel.Debug;case 5:return LogLevel.Trace;default:throw new UniffiInternalError.UnexpectedEnumCase();}}writeIntoCursor(value,c){switch(value){case LogLevel.Error:return c.writeI32(1);case LogLevel.Warn:return c.writeI32(2);case LogLevel.Info:return c.writeI32(3);case LogLevel.Debug:return c.writeI32(4);case LogLevel.Trace:return c.writeI32(5);}}allocationSize(value){return 4;}}return new FFIConverter();})();// Enum: PaymentResult
|
|
860
|
+
export let PaymentResult_Tags=/*#__PURE__*/function(PaymentResult_Tags){PaymentResult_Tags["Onchain"]="Onchain";PaymentResult_Tags["Lightning"]="Lightning";PaymentResult_Tags["Ark"]="Ark";return PaymentResult_Tags;}({});/**
|
|
861
|
+
* Outcome of `Wallet::send_payment`, mirroring `bark::PaymentInitOutput`.
|
|
862
|
+
*/export const PaymentResult=(()=>{/**
|
|
863
|
+
* The onchain payment's transaction was broadcast.
|
|
864
|
+
*/class Onchain_ extends UniffiEnum{/**
|
|
865
|
+
* @private
|
|
866
|
+
* This field is private and should not be used, use `tag` instead.
|
|
867
|
+
*/[uniffiTypeNameSymbol]="PaymentResult";tag=PaymentResult_Tags.Onchain;constructor(inner){super("PaymentResult","Onchain");this.inner=Object.freeze(inner);}static new(inner){return new Onchain_(inner);}static instanceOf(obj){return obj.tag===PaymentResult_Tags.Onchain;}}/**
|
|
868
|
+
* The lightning payment was started. Unless `wait` was set it may still
|
|
869
|
+
* be in flight: follow it with `lightning_send_state(payment_hash)`.
|
|
870
|
+
* `invoice` is the one paid, which for an offer, lightning address or
|
|
871
|
+
* LNURL is the one bark fetched.
|
|
872
|
+
*/class Lightning_ extends UniffiEnum{/**
|
|
873
|
+
* @private
|
|
874
|
+
* This field is private and should not be used, use `tag` instead.
|
|
875
|
+
*/[uniffiTypeNameSymbol]="PaymentResult";tag=PaymentResult_Tags.Lightning;constructor(inner){super("PaymentResult","Lightning");this.inner=Object.freeze(inner);}static new(inner){return new Lightning_(inner);}static instanceOf(obj){return obj.tag===PaymentResult_Tags.Lightning;}}/**
|
|
876
|
+
* The Ark payment was made. `movement_id` is the movement that records
|
|
877
|
+
* it.
|
|
878
|
+
*/class Ark_ extends UniffiEnum{/**
|
|
879
|
+
* @private
|
|
880
|
+
* This field is private and should not be used, use `tag` instead.
|
|
881
|
+
*/[uniffiTypeNameSymbol]="PaymentResult";tag=PaymentResult_Tags.Ark;constructor(inner){super("PaymentResult","Ark");this.inner=Object.freeze(inner);}static new(inner){return new Ark_(inner);}static instanceOf(obj){return obj.tag===PaymentResult_Tags.Ark;}}function instanceOf(obj){return obj[uniffiTypeNameSymbol]==="PaymentResult";}return Object.freeze({instanceOf,Onchain:Onchain_,Lightning:Lightning_,Ark:Ark_});})();/**
|
|
882
|
+
* Outcome of `Wallet::send_payment`, mirroring `bark::PaymentInitOutput`.
|
|
883
|
+
*/// FfiConverter for enum PaymentResult
|
|
884
|
+
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
|
+
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
|
|
660
886
|
export let RecoveryStatus_Tags=/*#__PURE__*/function(RecoveryStatus_Tags){RecoveryStatus_Tags["NotRun"]="NotRun";RecoveryStatus_Tags["Failed"]="Failed";RecoveryStatus_Tags["Completed"]="Completed";return RecoveryStatus_Tags;}({});/**
|
|
661
887
|
* Outcome of the seed-recovery scan `Wallet::open` runs, mirroring
|
|
662
888
|
* `bark::RecoveryStatus`.
|
|
@@ -769,7 +995,11 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
769
995
|
* # Returns
|
|
770
996
|
* Base64-encoded PSBT. Rejected unless every output pays `address`.
|
|
771
997
|
*/prepareDrainTx(address,feeRateSatPerVb)/*throws*/{const __rb=uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this),FfiConverterString.lower(address,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(feeRateSatPerVb,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterString.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}/**
|
|
772
|
-
* Sign and finalize a PSBT
|
|
998
|
+
* Sign and finalize a PSBT, without recording the transaction
|
|
999
|
+
*
|
|
1000
|
+
* The wallet must not treat the transaction as spent yet: a board that
|
|
1001
|
+
* fails after signing has to leave the wallet untouched. Once the
|
|
1002
|
+
* transaction is broadcast, Bark reports it through `register_tx`.
|
|
773
1003
|
*
|
|
774
1004
|
* # Arguments
|
|
775
1005
|
* * `psbt_base64` - Base64-encoded PSBT
|
|
@@ -777,7 +1007,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
777
1007
|
* # Returns
|
|
778
1008
|
* Base64-encoded fully signed PSBT (all witnesses filled in). Rejected
|
|
779
1009
|
* unless the unsigned transaction is unchanged.
|
|
780
|
-
*/
|
|
1010
|
+
*/signPsbt(psbtBase64)/*throws*/{const __rb=uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError),/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sign_psbt(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this),FfiConverterString.lower(psbtBase64,nativeModule().rustbuffer_alloc),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterString.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}/**
|
|
781
1011
|
* Whether a script pubkey belongs to the wallet's keychains
|
|
782
1012
|
*
|
|
783
1013
|
* # Arguments
|
|
@@ -822,7 +1052,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
822
1052
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
823
1053
|
const uniffiCallbackInterfaceCustomOnchainWalletCallbacks={// Create the VTable using a series of closures.
|
|
824
1054
|
// ts automatically converts these into C callback functions.
|
|
825
|
-
vtable:{get_balance:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.getBalance();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterUInt64.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},prepare_tx:(uniffiHandle,destinations,feeRateSatPerVb)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.prepareTx(FfiConverterSequenceTypeDestination.lift(destinations),FfiConverterUInt64.lift(feeRateSatPerVb));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterString.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},prepare_drain_tx:(uniffiHandle,address,feeRateSatPerVb)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.prepareDrainTx(FfiConverterString.lift(address),FfiConverterUInt64.lift(feeRateSatPerVb));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterString.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},
|
|
1055
|
+
vtable:{get_balance:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.getBalance();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterUInt64.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},prepare_tx:(uniffiHandle,destinations,feeRateSatPerVb)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.prepareTx(FfiConverterSequenceTypeDestination.lift(destinations),FfiConverterUInt64.lift(feeRateSatPerVb));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterString.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},prepare_drain_tx:(uniffiHandle,address,feeRateSatPerVb)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.prepareDrainTx(FfiConverterString.lift(address),FfiConverterUInt64.lift(feeRateSatPerVb));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterString.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},sign_psbt:(uniffiHandle,psbtBase64)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.signPsbt(FfiConverterString.lift(psbtBase64));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterString.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},is_mine:(uniffiHandle,scriptPubkeyHex)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.isMine(FfiConverterString.lift(scriptPubkeyHex));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterBool.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},register_tx:(uniffiHandle,txHex)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.registerTx(FfiConverterString.lift(txHex));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},evict_tx:(uniffiHandle,txid)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.evictTx(FfiConverterString.lift(txid));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},make_signed_p2a_cpfp:(uniffiHandle,params)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.makeSignedP2aCpfp(FfiConverterTypeCpfpParams.lift(params));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{UniffiResult.writeSuccess(uniffiResult,FfiConverterString.lower(obj,nativeModule().rustbuffer_alloc));};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},store_signed_p2a_cpfp:(uniffiHandle,txHex)=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.storeSignedP2aCpfp(FfiConverterString.lift(txHex));};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},sync:uniffiHandle=>{const uniffiMakeCall=()=>{const jsCallback=FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);return jsCallback.sync();};const uniffiResult=UniffiResult.ready();const uniffiHandleSuccess=obj=>{};const uniffiHandleError=(code,errBuf)=>{UniffiResult.writeError(uniffiResult,code,errBuf);};uniffiTraitInterfaceCallWithError(/*makeCall:*/uniffiMakeCall,/*handleSuccess:*/uniffiHandleSuccess,/*handleError:*/uniffiHandleError,/*isErrorType:*/Exception.instanceOf,/*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError),/*lowerString:*/FfiConverterString.lower.bind(FfiConverterString),/*alloc:*/nativeModule().rustbuffer_alloc);return uniffiResult;},uniffi_free:uniffiHandle=>{// this will throw a stale handle error if the handle isn't found.
|
|
826
1056
|
FfiConverterTypeCustomOnchainWalletCallbacks.drop(uniffiHandle);},uniffi_clone:uniffiHandle=>{return FfiConverterTypeCustomOnchainWalletCallbacks.clone(uniffiHandle);}},register:()=>{nativeModule().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(uniffiCallbackInterfaceCustomOnchainWalletCallbacks.vtable);}};/**
|
|
827
1057
|
* Pull-based notification handle exposed over FFI.
|
|
828
1058
|
*
|
|
@@ -953,7 +1183,30 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
953
1183
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
954
1184
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
955
1185
|
// already JS-owned.
|
|
956
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBalance.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;}}
|
|
1186
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBalance.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;}}/**
|
|
1187
|
+
* The numbers to show a user, without the breakdown of `balance`: what
|
|
1188
|
+
* they can spend, what needs a refresh, what is pending and the total.
|
|
1189
|
+
*/async balanceSummary(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_balance_summary(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
|
|
1190
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1191
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1192
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1193
|
+
// here using the per-callable return-type converter.
|
|
1194
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1195
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1196
|
+
// already JS-owned.
|
|
1197
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeBalanceSummary.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;}}/**
|
|
1198
|
+
* Build a BIP 321 `bitcoin:` URI with a new Ark address, a new BOLT11
|
|
1199
|
+
* invoice (when there is an amount) and the caller's onchain address,
|
|
1200
|
+
* as `options` selects.
|
|
1201
|
+
*/async bip321Uri(options,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_bip321_uri(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterTypeBip321UriOptions.lower(options,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
|
|
1202
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1203
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1204
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1205
|
+
// here using the per-callable return-type converter.
|
|
1206
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1207
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1208
|
+
// 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;}}async boardAll(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));},/*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
|
|
957
1210
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
958
1211
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
959
1212
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1060,6 +1313,17 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1060
1313
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1061
1314
|
// already JS-owned.
|
|
1062
1315
|
/*liftFunc:*/__rb=>{try{return FfiConverterTypeConfig.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1316
|
+
* The network, mailbox id and VTXO xpub, as `bark debug-info` prints
|
|
1317
|
+
* them. Users can share this in support requests.
|
|
1318
|
+
*/async debugInfo(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_debug_info(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
|
|
1319
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1320
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1321
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1322
|
+
// here using the per-callable return-type converter.
|
|
1323
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1324
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1325
|
+
// already JS-owned.
|
|
1326
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeDebugInfo.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;}}/**
|
|
1063
1327
|
* Build a PSBT claiming exited VTXOs to `address`.
|
|
1064
1328
|
*
|
|
1065
1329
|
* Draining everything must be asked for with `drain_all`, so an id list
|
|
@@ -1097,12 +1361,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1097
1361
|
* spendable VTXO). `fee_rate_sat_per_vb` applies to both legs; omit it to
|
|
1098
1362
|
* use the chain's fast rate for the broadcast leg and regular rate for
|
|
1099
1363
|
* the claim leg. `destination` only affects the claim transaction's weight.
|
|
1364
|
+
* `fee_margin` scales the broadcast leg (finite and non-negative; default
|
|
1365
|
+
* 1.2).
|
|
1100
1366
|
*
|
|
1101
|
-
* The
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1104
|
-
|
|
1105
|
-
*/async estimateEmergencyExitFee(vtxoIds,feeRateSatPerVb,destination,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_estimate_emergency_exit_fee(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterSequenceString.lower(vtxoIds,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(feeRateSatPerVb,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(destination,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
|
|
1367
|
+
* The estimate never reads the onchain wallet, so it works before the
|
|
1368
|
+
* wallet holds funds and with callback wallets
|
|
1369
|
+
* (`CustomOnchainWalletCallbacks`) too.
|
|
1370
|
+
*/async estimateEmergencyExitFee(vtxoIds,feeRateSatPerVb,destination,feeMargin=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_estimate_emergency_exit_fee(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterSequenceString.lower(vtxoIds,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(feeRateSatPerVb,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(destination,nativeModule().rustbuffer_alloc),FfiConverterOptionalFloat64.lower(feeMargin,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
|
|
1106
1371
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1107
1372
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1108
1373
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1142,6 +1407,16 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1142
1407
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1143
1408
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1144
1409
|
// already JS-owned.
|
|
1410
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeFeeEstimate.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;}}/**
|
|
1411
|
+
* Estimate the fee of paying `amount_sats` to `method`.
|
|
1412
|
+
*/async estimatePaymentFee(method,amountSats,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_estimate_payment_fee(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterTypePaymentMethod.lower(method,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,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
|
|
1413
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1414
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1415
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1416
|
+
// here using the per-callable return-type converter.
|
|
1417
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1418
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1419
|
+
// already JS-owned.
|
|
1145
1420
|
/*liftFunc:*/__rb=>{try{return FfiConverterTypeFeeEstimate.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 estimateRefreshFee(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_estimate_refresh_fee(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
|
|
1146
1421
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1147
1422
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
@@ -1158,7 +1433,10 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1158
1433
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1159
1434
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1160
1435
|
// already JS-owned.
|
|
1161
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeFeeEstimate.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;}}fingerprint(){const __rb=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(uniffiTypeWalletObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterString.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}
|
|
1436
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeFeeEstimate.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;}}fingerprint(){const __rb=uniffiCaller.rustCall(/*caller:*/callStatus=>{return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(uniffiTypeWalletObjectFactory.clonePointer(this),callStatus);},/*liftString:*/FfiConverterString.lift.bind(FfiConverterString));try{return FfiConverterString.lift(__rb);}finally{nativeModule().rustbuffer_free(__rb);}}/**
|
|
1437
|
+
* Status of one exit, live or finished. `None` if no exit was ever
|
|
1438
|
+
* started for the VTXO.
|
|
1439
|
+
*/async getExitStatus(vtxoId,includeHistory,includeTransactions,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_get_exit_status(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(vtxoId,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(includeHistory,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(includeTransactions,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
|
|
1162
1440
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1163
1441
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1164
1442
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1166,7 +1444,10 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1166
1444
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1167
1445
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1168
1446
|
// already JS-owned.
|
|
1169
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterOptionalTypeExitTransactionStatus.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;}}
|
|
1447
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterOptionalTypeExitTransactionStatus.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;}}/**
|
|
1448
|
+
* Live exits only. Finished exits leave this list; see
|
|
1449
|
+
* `list_finished_exits` and `get_exit_status`.
|
|
1450
|
+
*/async getExitVtxos(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_get_exit_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
|
|
1170
1451
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1171
1452
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1172
1453
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1292,7 +1573,17 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1292
1573
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1293
1574
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1294
1575
|
// already JS-owned.
|
|
1295
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeLightningSendStatus.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;}}
|
|
1576
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeLightningSendStatus.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;}}/**
|
|
1577
|
+
* Status of every exit this wallet ever started, live and finished.
|
|
1578
|
+
*/async listAllExits(includeHistory=false,includeTransactions=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_list_all_exits(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterBool.lower(includeHistory,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(includeTransactions,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
|
|
1579
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1580
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1581
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1582
|
+
// here using the per-callable return-type converter.
|
|
1583
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1584
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1585
|
+
// already JS-owned.
|
|
1586
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeExitTransactionStatus.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 listClaimableExits(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_list_claimable_exits(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
|
|
1296
1587
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1297
1588
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1298
1589
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1301,6 +1592,28 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1301
1592
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1302
1593
|
// already JS-owned.
|
|
1303
1594
|
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeExitVtxo.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;}}/**
|
|
1595
|
+
* Status of the exits in a terminal state: claimed, canceled, or aborted
|
|
1596
|
+
* because the VTXO was already spent or swept. They stay queryable after
|
|
1597
|
+
* completion, so a client need not snapshot them at drain time.
|
|
1598
|
+
*/async listFinishedExits(includeHistory=false,includeTransactions=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_list_finished_exits(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterBool.lower(includeHistory,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(includeTransactions,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
|
|
1599
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1600
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1601
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1602
|
+
// here using the per-callable return-type converter.
|
|
1603
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1604
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1605
|
+
// already JS-owned.
|
|
1606
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeExitTransactionStatus.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;}}/**
|
|
1607
|
+
* Status of the exits that are still progressing.
|
|
1608
|
+
*/async listLiveExits(includeHistory=false,includeTransactions=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_list_live_exits(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterBool.lower(includeHistory,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(includeTransactions,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
|
|
1609
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1610
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1611
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1612
|
+
// here using the per-callable return-type converter.
|
|
1613
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1614
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1615
|
+
// already JS-owned.
|
|
1616
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeExitTransactionStatus.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;}}/**
|
|
1304
1617
|
* Reserve VTXOs so wallet-driven flows leave them alone: a locked VTXO is
|
|
1305
1618
|
* excluded from coin selection.
|
|
1306
1619
|
*
|
|
@@ -1366,8 +1679,27 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1366
1679
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1367
1680
|
// already JS-owned.
|
|
1368
1681
|
/*liftFunc:*/__rb=>{try{return FfiConverterTypeOffboardResult.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;}}/**
|
|
1682
|
+
* Parse any payment string bark understands: a BIP 321 `bitcoin:` URI, a
|
|
1683
|
+
* `lightning:` URI (any case), a BOLT11 invoice, a BOLT12 offer, a
|
|
1684
|
+
* lightning address, an LNURL-pay link or LUD-17 `lnurlp://` URI, an Ark
|
|
1685
|
+
* address, a bitcoin address or a hex output script. Surrounding
|
|
1686
|
+
* whitespace is not trimmed.
|
|
1687
|
+
*
|
|
1688
|
+
* Problems with a single option (wrong network, an Ark address of
|
|
1689
|
+
* another server, an amount mismatch) are reported in that option's
|
|
1690
|
+
* `errors`. Errors only when nothing in the string can be paid at all.
|
|
1691
|
+
* Checking an Ark address needs a server connection.
|
|
1692
|
+
*/async parsePaymentRequest(payment,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_parse_payment_request(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(payment,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
|
|
1693
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1694
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1695
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1696
|
+
// here using the per-callable return-type converter.
|
|
1697
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1698
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1699
|
+
// already JS-owned.
|
|
1700
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypePaymentRequest.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;}}/**
|
|
1369
1701
|
* Pay to a Lightning Address (`user@domain`), resolved via LNURL-pay.
|
|
1370
|
-
*/async payLightningAddress(lightningAddress,amountSats,comment,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_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(lightningAddress,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(comment,nativeModule().rustbuffer_alloc),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
|
|
1702
|
+
*/async payLightningAddress(lightningAddress,amountSats,comment,wait=false,retryForSecs=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_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(lightningAddress,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(comment,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(wait,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(retryForSecs,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
|
|
1371
1703
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1372
1704
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1373
1705
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1375,7 +1707,13 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1375
1707
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1376
1708
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1377
1709
|
// already JS-owned.
|
|
1378
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeLightningSendStatus.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;}}
|
|
1710
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeLightningSendStatus.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;}}/**
|
|
1711
|
+
* Pay a BOLT11 invoice.
|
|
1712
|
+
*
|
|
1713
|
+
* `retry_for_secs` is how long the Ark server keeps trying to pay,
|
|
1714
|
+
* capped to the server's maximum; `None` leaves it to the server and 0
|
|
1715
|
+
* makes a single attempt. The same holds for every `pay_*` method.
|
|
1716
|
+
*/async payLightningInvoice(invoice,amountSats,wait=false,retryForSecs=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_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(invoice,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(wait,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(retryForSecs,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
|
|
1379
1717
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1380
1718
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1381
1719
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1383,7 +1721,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1383
1721
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1384
1722
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1385
1723
|
// already JS-owned.
|
|
1386
|
-
/*liftFunc:*/__rb=>{try{return FfiConverterTypeLightningSendStatus.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 payLightningOffer(offer,amountSats,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_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(offer,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),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
|
|
1724
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeLightningSendStatus.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 payLightningOffer(offer,amountSats,wait=false,retryForSecs=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_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(offer,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(wait,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(retryForSecs,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
|
|
1387
1725
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1388
1726
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1389
1727
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1396,7 +1734,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1396
1734
|
*
|
|
1397
1735
|
* Resolves the LNURL-pay endpoint to a BOLT11 invoice and pays it. Errors
|
|
1398
1736
|
* if the link decodes to a non-pay LNURL (auth, withdraw, channel).
|
|
1399
|
-
*/async payLnurl(lnurl,amountSats,comment,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_pay_lnurl(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(lnurl,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(comment,nativeModule().rustbuffer_alloc),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
|
|
1737
|
+
*/async payLnurl(lnurl,amountSats,comment,wait=false,retryForSecs=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_pay_lnurl(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(lnurl,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(comment,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(wait,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(retryForSecs,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
|
|
1400
1738
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1401
1739
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1402
1740
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1556,7 +1894,34 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1556
1894
|
*
|
|
1557
1895
|
* An address this bark cannot deliver to (see `validateArkoorAddress`) is
|
|
1558
1896
|
* rejected up front, leaving the VTXOs spendable rather than cosigned.
|
|
1559
|
-
|
|
1897
|
+
*
|
|
1898
|
+
* Returns the id of the movement that records the payment.
|
|
1899
|
+
*/async sendArkoorPayment(arkAddress,amountSats,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_send_arkoor_payment(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(arkAddress,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,nativeModule().rustbuffer_alloc));},/*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_u32,/*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_u32,/*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_u32,/*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_u32,// Async returns always go through the JS-side converter: the
|
|
1900
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1901
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1902
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1903
|
+
// here using the per-callable return-type converter.
|
|
1904
|
+
/*liftFunc:*/FfiConverterUInt32.lift.bind(FfiConverterUInt32),/*liftString:*/FfiConverterString.lift.bind(FfiConverterString),/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
1905
|
+
* Send `amount_sats` from the offchain balance to an onchain address,
|
|
1906
|
+
* as an offboard. Returns the offboard txid and its movement id.
|
|
1907
|
+
*/async sendOnchain(address,amountSats,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_send_onchain(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(address,nativeModule().rustbuffer_alloc),FfiConverterUInt64.lower(amountSats,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
|
|
1908
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1909
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1910
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1911
|
+
// here using the per-callable return-type converter.
|
|
1912
|
+
// Borrowed view over foreign memory: the call site owns the free,
|
|
1913
|
+
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1914
|
+
// already JS-owned.
|
|
1915
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypeOffboardResult.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;}}/**
|
|
1916
|
+
* Pay `method` over the matching rail: Ark, lightning or onchain.
|
|
1917
|
+
*
|
|
1918
|
+
* `amount_sats` is required for addresses and LNURL, and for invoices
|
|
1919
|
+
* and offers without an amount (`AvailablePaymentMethod.requires_amount`).
|
|
1920
|
+
* `comment` only reaches lightning addresses and LNURL. `wait` and
|
|
1921
|
+
* `retry_for_secs` only affect lightning. `retry_for_secs` is how long
|
|
1922
|
+
* the Ark server keeps trying to pay, capped to the server's maximum;
|
|
1923
|
+
* `None` leaves it to the server and 0 makes a single attempt.
|
|
1924
|
+
*/async sendPayment(method,amountSats=undefined,comment=undefined,wait=false,retryForSecs=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_send_payment(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterTypePaymentMethod.lower(method,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(amountSats,nativeModule().rustbuffer_alloc),FfiConverterOptionalString.lower(comment,nativeModule().rustbuffer_alloc),FfiConverterBool.lower(wait,nativeModule().rustbuffer_alloc),FfiConverterOptionalUInt64.lower(retryForSecs,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
|
|
1560
1925
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1561
1926
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1562
1927
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1564,7 +1929,7 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1564
1929
|
// Borrowed view over foreign memory: the call site owns the free,
|
|
1565
1930
|
// as on the sync paths. Unconditional — a no-op where buffers are
|
|
1566
1931
|
// already JS-owned.
|
|
1567
|
-
/*liftFunc:*/__rb=>{try{return
|
|
1932
|
+
/*liftFunc:*/__rb=>{try{return FfiConverterTypePaymentResult.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 signExitClaimInputs(psbtBase64,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_sign_exit_claim_inputs(uniffiTypeWalletObjectFactory.clonePointer(this),FfiConverterString.lower(psbtBase64,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
|
|
1568
1933
|
// FFI symbol returns the future handle (u64), and the user-level
|
|
1569
1934
|
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1570
1935
|
// export. The bytes the runtime hands back must be deserialized
|
|
@@ -1660,19 +2025,26 @@ constructor(pointer){super();this[pointerLiteralSymbol]=pointer;this[destructorG
|
|
|
1660
2025
|
// already JS-owned.
|
|
1661
2026
|
/*liftFunc:*/__rb=>{try{return FfiConverterSequenceTypeVtxo.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;}}uniffiDestroy(){const ptr=this[destructorGuardSymbol];if(ptr!==undefined){const pointer=uniffiTypeWalletObjectFactory.pointer(this);uniffiTypeWalletObjectFactory.freePointer(pointer);uniffiTypeWalletObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}static instanceOf(obj_){return uniffiTypeWalletObjectFactory.isConcreteType(obj_);}}const uniffiTypeWalletObjectFactory=(()=>{return{create(pointer){const instance=Object.create(Wallet.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="Wallet";return instance;},bless(p){return uniffiCaller.rustCall(/*caller:*/status=>nativeModule().ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(p,status),/*liftString:*/FfiConverterString.lift);},unbless(ptr_){ptr_.markDestroyed();},pointer(obj_){if(obj_[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj_[pointerLiteralSymbol];},clonePointer(obj_){const pointer=this.pointer(obj_);return uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_bark_ffi_fn_clone_wallet(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},freePointer(pointer){uniffiCaller.rustCall(/*caller:*/callStatus=>nativeModule().ubrn_uniffi_bark_ffi_fn_free_wallet(pointer,callStatus),/*liftString:*/FfiConverterString.lift);},isConcreteType(obj_){return obj_[destructorGuardSymbol]&&obj_[uniffiTypeNameSymbol]==="Wallet";}};})();const FfiConverterTypeWallet=new FfiConverterObject(uniffiTypeWalletObjectFactory);// FfiConverter for bigint | undefined
|
|
1662
2027
|
const FfiConverterOptionalUInt64=new FfiConverterOptional(FfiConverterUInt64);// FfiConverter for Array<PpmExpiryFeeEntry>
|
|
1663
|
-
const FfiConverterSequenceTypePpmExpiryFeeEntry=new FfiConverterArray(FfiConverterTypePpmExpiryFeeEntry);// FfiConverter for
|
|
1664
|
-
const
|
|
2028
|
+
const FfiConverterSequenceTypePpmExpiryFeeEntry=new FfiConverterArray(FfiConverterTypePpmExpiryFeeEntry);// FfiConverter for Array<PaymentMethodParsingError>
|
|
2029
|
+
const FfiConverterSequenceTypePaymentMethodParsingError=new FfiConverterArray(FfiConverterTypePaymentMethodParsingError);// FfiConverter for string | undefined
|
|
2030
|
+
const FfiConverterOptionalString=new FfiConverterOptional(FfiConverterString);// FfiConverter for LightningInvoice | undefined
|
|
2031
|
+
const FfiConverterOptionalTypeLightningInvoice=new FfiConverterOptional(FfiConverterTypeLightningInvoice);// FfiConverter for number | undefined
|
|
1665
2032
|
const FfiConverterOptionalUInt16=new FfiConverterOptional(FfiConverterUInt16);// FfiConverter for number | undefined
|
|
1666
2033
|
const FfiConverterOptionalUInt32=new FfiConverterOptional(FfiConverterUInt32);// FfiConverter for boolean | undefined
|
|
1667
2034
|
const FfiConverterOptionalBoolean=new FfiConverterOptional(FfiConverterBool);// FfiConverter for number | undefined
|
|
1668
2035
|
const FfiConverterOptionalUInt8=new FfiConverterOptional(FfiConverterUInt8);// FfiConverter for ExitCancelFailure | undefined
|
|
1669
|
-
const FfiConverterOptionalTypeExitCancelFailure=new FfiConverterOptional(FfiConverterTypeExitCancelFailure);// FfiConverter for
|
|
1670
|
-
const
|
|
1671
|
-
const
|
|
1672
|
-
const FfiConverterSequenceTypeExitTx=new FfiConverterArray(FfiConverterTypeExitTx);// FfiConverter for Array<
|
|
2036
|
+
const FfiConverterOptionalTypeExitCancelFailure=new FfiConverterOptional(FfiConverterTypeExitCancelFailure);// FfiConverter for BlockRef | undefined
|
|
2037
|
+
const FfiConverterOptionalTypeBlockRef=new FfiConverterOptional(FfiConverterTypeBlockRef);// FfiConverter for Array<string>
|
|
2038
|
+
const FfiConverterSequenceString=new FfiConverterArray(FfiConverterString);// FfiConverter for Array<ExitTx>
|
|
2039
|
+
const FfiConverterSequenceTypeExitTx=new FfiConverterArray(FfiConverterTypeExitTx);// FfiConverter for Array<OutPoint>
|
|
2040
|
+
const FfiConverterSequenceTypeOutPoint=new FfiConverterArray(FfiConverterTypeOutPoint);// FfiConverter for ExitChildTransaction | undefined
|
|
2041
|
+
const FfiConverterOptionalTypeExitChildTransaction=new FfiConverterOptional(FfiConverterTypeExitChildTransaction);// FfiConverter for Array<ExitState>
|
|
1673
2042
|
const FfiConverterSequenceTypeExitState=new FfiConverterArray(FfiConverterTypeExitState);// FfiConverter for Array<ExitState> | undefined
|
|
1674
|
-
const FfiConverterOptionalSequenceTypeExitState=new FfiConverterOptional(FfiConverterSequenceTypeExitState);// FfiConverter for
|
|
1675
|
-
const
|
|
2043
|
+
const FfiConverterOptionalSequenceTypeExitState=new FfiConverterOptional(FfiConverterSequenceTypeExitState);// FfiConverter for Array<ExitTransactionPackage>
|
|
2044
|
+
const FfiConverterSequenceTypeExitTransactionPackage=new FfiConverterArray(FfiConverterTypeExitTransactionPackage);// FfiConverter for bigint | undefined
|
|
2045
|
+
const FfiConverterOptionalInt64=new FfiConverterOptional(FfiConverterInt64);// FfiConverter for Array<AvailablePaymentMethod>
|
|
2046
|
+
const FfiConverterSequenceTypeAvailablePaymentMethod=new FfiConverterArray(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for AvailablePaymentMethod | undefined
|
|
2047
|
+
const FfiConverterOptionalTypeAvailablePaymentMethod=new FfiConverterOptional(FfiConverterTypeAvailablePaymentMethod);// FfiConverter for VtxoLockHolder | undefined
|
|
1676
2048
|
const FfiConverterOptionalTypeVtxoLockHolder=new FfiConverterOptional(FfiConverterTypeVtxoLockHolder);// FfiConverter for Array<WalletTransaction>
|
|
1677
2049
|
const FfiConverterSequenceTypeWalletTransaction=new FfiConverterArray(FfiConverterTypeWalletTransaction);// FfiConverter for Array<OnchainUtxo>
|
|
1678
2050
|
const FfiConverterSequenceTypeOnchainUtxo=new FfiConverterArray(FfiConverterTypeOnchainUtxo);// FfiConverter for OnchainWalletLike | undefined
|
|
@@ -1680,18 +2052,21 @@ const FfiConverterOptionalTypeOnchainWallet=new FfiConverterOptional(FfiConverte
|
|
|
1680
2052
|
const FfiConverterSequenceTypeDestination=new FfiConverterArray(FfiConverterTypeDestination);// FfiConverter for WalletNotification | undefined
|
|
1681
2053
|
const FfiConverterOptionalTypeWalletNotification=new FfiConverterOptional(FfiConverterTypeWalletNotification);// FfiConverter for Array<Vtxo>
|
|
1682
2054
|
const FfiConverterSequenceTypeVtxo=new FfiConverterArray(FfiConverterTypeVtxo);// FfiConverter for ArkInfo | undefined
|
|
1683
|
-
const FfiConverterOptionalTypeArkInfo=new FfiConverterOptional(FfiConverterTypeArkInfo);// FfiConverter for
|
|
2055
|
+
const FfiConverterOptionalTypeArkInfo=new FfiConverterOptional(FfiConverterTypeArkInfo);// FfiConverter for number | undefined
|
|
2056
|
+
const FfiConverterOptionalFloat64=new FfiConverterOptional(FfiConverterFloat64);// FfiConverter for ExitTransactionStatus | undefined
|
|
1684
2057
|
const FfiConverterOptionalTypeExitTransactionStatus=new FfiConverterOptional(FfiConverterTypeExitTransactionStatus);// FfiConverter for Array<ExitVtxo>
|
|
1685
2058
|
const FfiConverterSequenceTypeExitVtxo=new FfiConverterArray(FfiConverterTypeExitVtxo);// FfiConverter for Array<Movement>
|
|
1686
2059
|
const FfiConverterSequenceTypeMovement=new FfiConverterArray(FfiConverterTypeMovement);// FfiConverter for ImportVtxoArgs | undefined
|
|
1687
|
-
const FfiConverterOptionalTypeImportVtxoArgs=new FfiConverterOptional(FfiConverterTypeImportVtxoArgs);// FfiConverter for Array<
|
|
2060
|
+
const FfiConverterOptionalTypeImportVtxoArgs=new FfiConverterOptional(FfiConverterTypeImportVtxoArgs);// FfiConverter for Array<ExitTransactionStatus>
|
|
2061
|
+
const FfiConverterSequenceTypeExitTransactionStatus=new FfiConverterArray(FfiConverterTypeExitTransactionStatus);// FfiConverter for Array<PendingBoard>
|
|
1688
2062
|
const FfiConverterSequenceTypePendingBoard=new FfiConverterArray(FfiConverterTypePendingBoard);// FfiConverter for Array<LightningReceive>
|
|
1689
2063
|
const FfiConverterSequenceTypeLightningReceive=new FfiConverterArray(FfiConverterTypeLightningReceive);// FfiConverter for Array<LightningSend>
|
|
1690
2064
|
const FfiConverterSequenceTypeLightningSend=new FfiConverterArray(FfiConverterTypeLightningSend);// FfiConverter for Array<RoundState>
|
|
1691
2065
|
const FfiConverterSequenceTypeRoundState=new FfiConverterArray(FfiConverterTypeRoundState);// FfiConverter for Array<ExitProgressStatus>
|
|
1692
2066
|
const FfiConverterSequenceTypeExitProgressStatus=new FfiConverterArray(FfiConverterTypeExitProgressStatus);// FfiConverter for RecoveryReport | undefined
|
|
1693
2067
|
const FfiConverterOptionalTypeRecoveryReport=new FfiConverterOptional(FfiConverterTypeRecoveryReport);// FfiConverter for RoundState | undefined
|
|
1694
|
-
const FfiConverterOptionalTypeRoundState=new FfiConverterOptional(FfiConverterTypeRoundState)
|
|
2068
|
+
const FfiConverterOptionalTypeRoundState=new FfiConverterOptional(FfiConverterTypeRoundState);// FfiConverter for DatadirInfo | undefined
|
|
2069
|
+
const FfiConverterOptionalTypeDatadirInfo=new FfiConverterOptional(FfiConverterTypeDatadirInfo);/**
|
|
1695
2070
|
* This should be called before anything else.
|
|
1696
2071
|
*
|
|
1697
2072
|
* It is likely that this is being done for you by the library's `index.ts`.
|
|
@@ -1702,5 +2077,5 @@ const FfiConverterOptionalTypeRoundState=new FfiConverterOptional(FfiConverterTy
|
|
|
1702
2077
|
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
1703
2078
|
*/function uniffiEnsureInitialized(){// Get the bindings contract version from our ComponentInterface
|
|
1704
2079
|
const bindingsContractVersion=30;// Get the scaffolding contract version by calling the into the dylib
|
|
1705
|
-
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_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_set_logger()!==16477){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_method_barklogger_log()!==30279){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_finish_psbt()!==24435){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_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_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_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()!==44713){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_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()!==33054){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()!==20147){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_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_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_pay_lightning_address()!==43061){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()!==26921){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()!==25462){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl()!==1459){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()!==32252){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");}if(nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain()!==42570){throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");}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,FfiConverterTypeBalance,FfiConverterTypeBarkLogger,FfiConverterTypeBlockRef,FfiConverterTypeBoardFees,FfiConverterTypeBoardFundingInfo,FfiConverterTypeConfig,FfiConverterTypeCpfpParams,FfiConverterTypeCustomOnchainWalletCallbacks,FfiConverterTypeDestination,FfiConverterTypeEmergencyExitFeeEstimate,FfiConverterTypeError,FfiConverterTypeExitCancelFailure,FfiConverterTypeExitCancelResult,FfiConverterTypeExitClaimTransaction,FfiConverterTypeExitProgressStatus,FfiConverterTypeExitState,FfiConverterTypeExitStateKind,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,FfiConverterTypePendingBoard,FfiConverterTypePpmExpiryFeeEntry,FfiConverterTypeRecoveryBucket,FfiConverterTypeRecoveryReport,FfiConverterTypeRecoveryStatus,FfiConverterTypeRefreshFees,FfiConverterTypeRoundFlowKind,FfiConverterTypeRoundState,FfiConverterTypeVtxo,FfiConverterTypeVtxoLockHolder,FfiConverterTypeVtxoState,FfiConverterTypeWallet,FfiConverterTypeWalletNotification,FfiConverterTypeWalletOpenArgs,FfiConverterTypeWalletProperties,FfiConverterTypeWalletTransaction}});
|
|
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}});
|
|
1706
2081
|
//# sourceMappingURL=bark.js.map
|