@secondts/bark-react-native 0.11.3 → 0.12.2

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.
@@ -32,9 +32,8 @@ class NativeBark : public jsi::HostObject {
32
32
  jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
33
33
  jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
34
34
  jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
35
- jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
36
- jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
37
- jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
35
+ jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
36
+ jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
38
37
  jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
39
38
  jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
40
39
  jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -91,7 +90,7 @@ class NativeBark : public jsi::HostObject {
91
90
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
92
91
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
93
92
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
94
- jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
93
+ jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
95
94
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
96
95
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
97
96
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -99,8 +98,6 @@ class NativeBark : public jsi::HostObject {
99
98
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_maintenance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
100
99
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
101
100
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
102
- jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
103
- jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
104
101
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
105
102
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_new_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
106
103
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_new_address_with_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -210,9 +207,8 @@ class NativeBark : public jsi::HostObject {
210
207
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
211
208
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
212
209
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
213
- jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
214
- jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
215
- jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
210
+ jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
211
+ jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
216
212
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
217
213
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
218
214
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -259,7 +255,7 @@ class NativeBark : public jsi::HostObject {
259
255
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
260
256
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
261
257
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
262
- jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
258
+ jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
263
259
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
264
260
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
265
261
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -267,8 +263,6 @@ class NativeBark : public jsi::HostObject {
267
263
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
268
264
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
269
265
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
270
- jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
271
- jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
272
266
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
273
267
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_new_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
274
268
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAqwBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AA6KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AA2uBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AAwKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -661,23 +661,23 @@ const FfiConverterTypeLightningReceive = (() => {
661
661
  read(from) {
662
662
  return {
663
663
  paymentHash: FfiConverterString.read(from),
664
- paymentPreimage: FfiConverterString.read(from),
665
664
  invoice: FfiConverterString.read(from),
666
665
  amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
667
- hasHtlcVtxos: _uniffiBindgenReactNative.FfiConverterBool.read(from),
668
- preimageRevealed: _uniffiBindgenReactNative.FfiConverterBool.read(from)
666
+ state: FfiConverterString.read(from),
667
+ paymentPreimage: FfiConverterOptionalString.read(from),
668
+ settledAt: FfiConverterOptionalInt64.read(from)
669
669
  };
670
670
  }
671
671
  write(value, into) {
672
672
  FfiConverterString.write(value.paymentHash, into);
673
- FfiConverterString.write(value.paymentPreimage, into);
674
673
  FfiConverterString.write(value.invoice, into);
675
674
  _uniffiBindgenReactNative.FfiConverterUInt64.write(value.amountSats, into);
676
- _uniffiBindgenReactNative.FfiConverterBool.write(value.hasHtlcVtxos, into);
677
- _uniffiBindgenReactNative.FfiConverterBool.write(value.preimageRevealed, into);
675
+ FfiConverterString.write(value.state, into);
676
+ FfiConverterOptionalString.write(value.paymentPreimage, into);
677
+ FfiConverterOptionalInt64.write(value.settledAt, into);
678
678
  }
679
679
  allocationSize(value) {
680
- return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.paymentPreimage) + FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.hasHtlcVtxos) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.preimageRevealed);
680
+ return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterString.allocationSize(value.state) + FfiConverterOptionalString.allocationSize(value.paymentPreimage) + FfiConverterOptionalInt64.allocationSize(value.settledAt);
681
681
  }
682
682
  }
683
683
  return new FFIConverter();
@@ -1789,48 +1789,27 @@ class CustomOnchainWalletCallbacksImpl extends _uniffiBindgenReactNative.UniffiA
1789
1789
  }
1790
1790
 
1791
1791
  /**
1792
- * Get a wallet transaction by txid
1793
- *
1794
- * # Arguments
1795
- * * `txid` - Transaction ID as hex string
1796
- *
1797
- * # Returns
1798
- * Hex-encoded transaction, or null if not found
1799
- */
1800
- getWalletTx(txid) /*throws*/{
1801
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
1802
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
1803
- }, /*liftString:*/FfiConverterString.lift));
1804
- }
1805
-
1806
- /**
1807
- * Get the block hash where a transaction was confirmed
1792
+ * Whether a script pubkey belongs to the wallet's keychains
1808
1793
  *
1809
1794
  * # Arguments
1810
- * * `txid` - Transaction ID as hex string
1811
- *
1812
- * # Returns
1813
- * Block reference with height and hash, or null if unconfirmed
1795
+ * * `script_pubkey_hex` - Hex-encoded script pubkey
1814
1796
  */
1815
- getWalletTxConfirmedBlock(txid) /*throws*/{
1816
- return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
1817
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
1797
+ isMine(scriptPubkeyHex) /*throws*/{
1798
+ return _uniffiBindgenReactNative.FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
1799
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(scriptPubkeyHex), callStatus);
1818
1800
  }, /*liftString:*/FfiConverterString.lift));
1819
1801
  }
1820
1802
 
1821
1803
  /**
1822
- * Find transaction that spends a given output
1804
+ * Register an unconfirmed transaction relevant to the wallet
1823
1805
  *
1824
1806
  * # Arguments
1825
- * * `outpoint` - Transaction outpoint to check
1826
- *
1827
- * # Returns
1828
- * Hex-encoded spending transaction, or null if unspent
1807
+ * * `tx_hex` - Hex-encoded transaction
1829
1808
  */
1830
- getSpendingTx(outpoint) /*throws*/{
1831
- return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
1832
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeOutPoint.lower(outpoint), callStatus);
1833
- }, /*liftString:*/FfiConverterString.lift));
1809
+ registerTx(txHex) /*throws*/{
1810
+ uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
1811
+ (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txHex), callStatus);
1812
+ }, /*liftString:*/FfiConverterString.lift);
1834
1813
  }
1835
1814
 
1836
1815
  /**
@@ -1994,14 +1973,14 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
1994
1973
  (0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
1995
1974
  return uniffiResult;
1996
1975
  },
1997
- getWalletTx: (uniffiHandle, txid) => {
1976
+ isMine: (uniffiHandle, scriptPubkeyHex) => {
1998
1977
  const uniffiMakeCall = () => {
1999
1978
  const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
2000
- return jsCallback.getWalletTx(FfiConverterString.lift(txid));
1979
+ return jsCallback.isMine(FfiConverterString.lift(scriptPubkeyHex));
2001
1980
  };
2002
1981
  const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
2003
1982
  const uniffiHandleSuccess = obj => {
2004
- _uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
1983
+ _uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, _uniffiBindgenReactNative.FfiConverterBool.lower(obj));
2005
1984
  };
2006
1985
  const uniffiHandleError = (code, errBuf) => {
2007
1986
  _uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
@@ -2009,30 +1988,13 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
2009
1988
  (0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2010
1989
  return uniffiResult;
2011
1990
  },
2012
- getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
1991
+ registerTx: (uniffiHandle, txHex) => {
2013
1992
  const uniffiMakeCall = () => {
2014
1993
  const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
2015
- return jsCallback.getWalletTxConfirmedBlock(FfiConverterString.lift(txid));
1994
+ return jsCallback.registerTx(FfiConverterString.lift(txHex));
2016
1995
  };
2017
1996
  const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
2018
- const uniffiHandleSuccess = obj => {
2019
- _uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalTypeBlockRef.lower(obj));
2020
- };
2021
- const uniffiHandleError = (code, errBuf) => {
2022
- _uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
2023
- };
2024
- (0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
2025
- return uniffiResult;
2026
- },
2027
- getSpendingTx: (uniffiHandle, outpoint) => {
2028
- const uniffiMakeCall = () => {
2029
- const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
2030
- return jsCallback.getSpendingTx(FfiConverterTypeOutPoint.lift(outpoint));
2031
- };
2032
- const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
2033
- const uniffiHandleSuccess = obj => {
2034
- _uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
2035
- };
1997
+ const uniffiHandleSuccess = obj => {};
2036
1998
  const uniffiHandleError = (code, errBuf) => {
2037
1999
  _uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
2038
2000
  };
@@ -2522,11 +2484,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2522
2484
  throw __error;
2523
2485
  }
2524
2486
  }
2525
- async boardAll(onchainWallet, asyncOpts_) /*throws*/{
2487
+ async boardAll(asyncOpts_) /*throws*/{
2526
2488
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2527
2489
  try {
2528
2490
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2529
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
2491
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_all(uniffiTypeWalletObjectFactory.clonePointer(this));
2530
2492
  }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2531
2493
  } catch (__error) {
2532
2494
  if (uniffiIsDebug && __error instanceof Error) {
@@ -2535,11 +2497,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2535
2497
  throw __error;
2536
2498
  }
2537
2499
  }
2538
- async boardAmount(onchainWallet, amountSats, asyncOpts_) /*throws*/{
2500
+ async boardAmount(amountSats, asyncOpts_) /*throws*/{
2539
2501
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2540
2502
  try {
2541
2503
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2542
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
2504
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats));
2543
2505
  }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2544
2506
  } catch (__error) {
2545
2507
  if (uniffiIsDebug && __error instanceof Error) {
@@ -2548,11 +2510,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2548
2510
  throw __error;
2549
2511
  }
2550
2512
  }
2551
- async bolt11Invoice(amountSats, description, asyncOpts_) /*throws*/{
2513
+ async bolt11Invoice(amountSats, description, token = undefined, asyncOpts_) /*throws*/{
2552
2514
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2553
2515
  try {
2554
2516
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2555
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(description));
2517
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(description), FfiConverterOptionalString.lower(token));
2556
2518
  }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningInvoice.lift.bind(FfiConverterTypeLightningInvoice), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2557
2519
  } catch (__error) {
2558
2520
  if (uniffiIsDebug && __error instanceof Error) {
@@ -2930,12 +2892,17 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2930
2892
  throw __error;
2931
2893
  }
2932
2894
  }
2933
- async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
2895
+
2896
+ /**
2897
+ * Triage a payment hash: settled or in-progress. Errors if no lightning
2898
+ * receive is known for this payment hash.
2899
+ */
2900
+ async lightningReceiveState(paymentHash, asyncOpts_) /*throws*/{
2934
2901
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2935
2902
  try {
2936
2903
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2937
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
2938
- }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeLightningReceive.lift.bind(FfiConverterOptionalTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2904
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
2905
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningReceive.lift.bind(FfiConverterTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
2939
2906
  } catch (__error) {
2940
2907
  if (uniffiIsDebug && __error instanceof Error) {
2941
2908
  __error.stack = __stack;
@@ -3018,32 +2985,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3018
2985
  throw __error;
3019
2986
  }
3020
2987
  }
3021
- async maintenanceWithOnchain(onchainWallet, asyncOpts_) /*throws*/{
3022
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
3023
- try {
3024
- return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3025
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3026
- }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3027
- } catch (__error) {
3028
- if (uniffiIsDebug && __error instanceof Error) {
3029
- __error.stack = __stack;
3030
- }
3031
- throw __error;
3032
- }
3033
- }
3034
- async maintenanceWithOnchainDelegated(onchainWallet, asyncOpts_) /*throws*/{
3035
- const __stack = uniffiIsDebug ? new Error().stack : undefined;
3036
- try {
3037
- return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3038
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3039
- }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3040
- } catch (__error) {
3041
- if (uniffiIsDebug && __error instanceof Error) {
3042
- __error.stack = __stack;
3043
- }
3044
- throw __error;
3045
- }
3046
- }
3047
2988
  async network(asyncOpts_) /*throws*/{
3048
2989
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3049
2990
  try {
@@ -3307,11 +3248,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3307
3248
  throw __error;
3308
3249
  }
3309
3250
  }
3310
- async progressExits(onchainWallet, feeRateSatPerVb, asyncOpts_) /*throws*/{
3251
+ async progressExits(feeRateSatPerVb, asyncOpts_) /*throws*/{
3311
3252
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3312
3253
  try {
3313
3254
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3314
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
3255
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterOptionalUInt64.lower(feeRateSatPerVb));
3315
3256
  }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeExitProgressStatus.lift.bind(FfiConverterArrayTypeExitProgressStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3316
3257
  } catch (__error) {
3317
3258
  if (uniffiIsDebug && __error instanceof Error) {
@@ -3385,11 +3326,16 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3385
3326
  throw __error;
3386
3327
  }
3387
3328
  }
3388
- async runDaemon(onchainWallet, asyncOpts_) /*throws*/{
3329
+
3330
+ /**
3331
+ * Start the background daemon. The onchain wallet used by the daemon is
3332
+ * the one supplied to `Wallet::open` (see `WalletOpenArgs.onchain`).
3333
+ */
3334
+ async runDaemon(asyncOpts_) /*throws*/{
3389
3335
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3390
3336
  try {
3391
3337
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3392
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterOptionalTypeOnchainWallet.lower(onchainWallet));
3338
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiTypeWalletObjectFactory.clonePointer(this));
3393
3339
  }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3394
3340
  } catch (__error) {
3395
3341
  if (uniffiIsDebug && __error instanceof Error) {
@@ -3515,11 +3461,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3515
3461
  throw __error;
3516
3462
  }
3517
3463
  }
3518
- async syncExits(onchainWallet, asyncOpts_) /*throws*/{
3464
+ async syncExits(asyncOpts_) /*throws*/{
3519
3465
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3520
3466
  try {
3521
3467
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3522
- return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterTypeOnchainWallet.lower(onchainWallet));
3468
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffiTypeWalletObjectFactory.clonePointer(this));
3523
3469
  }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3524
3470
  } catch (__error) {
3525
3471
  if (uniffiIsDebug && __error instanceof Error) {
@@ -3580,7 +3526,7 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3580
3526
  try {
3581
3527
  return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3582
3528
  return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
3583
- }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3529
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeLightningReceive.lift.bind(FfiConverterTypeLightningReceive), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
3584
3530
  } catch (__error) {
3585
3531
  if (uniffiIsDebug && __error instanceof Error) {
3586
3532
  __error.stack = __stack;
@@ -3671,18 +3617,15 @@ const FfiConverterTypeWallet = new _uniffiBindgenReactNative.FfiConverterObject(
3671
3617
  // FfiConverter for boolean | undefined
3672
3618
  const FfiConverterOptionalBool = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterBool);
3673
3619
 
3620
+ // FfiConverter for /*i64*/bigint | undefined
3621
+ const FfiConverterOptionalInt64 = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterInt64);
3622
+
3674
3623
  // FfiConverter for ArkInfo | undefined
3675
3624
  const FfiConverterOptionalTypeArkInfo = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeArkInfo);
3676
3625
 
3677
- // FfiConverter for BlockRef | undefined
3678
- const FfiConverterOptionalTypeBlockRef = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeBlockRef);
3679
-
3680
3626
  // FfiConverter for ExitTransactionStatus | undefined
3681
3627
  const FfiConverterOptionalTypeExitTransactionStatus = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeExitTransactionStatus);
3682
3628
 
3683
- // FfiConverter for LightningReceive | undefined
3684
- const FfiConverterOptionalTypeLightningReceive = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeLightningReceive);
3685
-
3686
3629
  // FfiConverter for RoundState | undefined
3687
3630
  const FfiConverterOptionalTypeRoundState = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeRoundState);
3688
3631
 
@@ -3794,22 +3737,19 @@ function uniffiEnsureInitialized() {
3794
3737
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !== 39878) {
3795
3738
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt");
3796
3739
  }
3797
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 40848) {
3798
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
3799
- }
3800
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 20505) {
3801
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
3740
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine() !== 18867) {
3741
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine");
3802
3742
  }
3803
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 24154) {
3804
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
3743
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx() !== 17970) {
3744
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx");
3805
3745
  }
3806
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 58200) {
3746
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 62938) {
3807
3747
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
3808
3748
  }
3809
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 64815) {
3749
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 47426) {
3810
3750
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
3811
3751
  }
3812
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !== 29018) {
3752
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !== 12900) {
3813
3753
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");
3814
3754
  }
3815
3755
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 30279) {
@@ -3845,13 +3785,13 @@ function uniffiEnsureInitialized() {
3845
3785
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 37345) {
3846
3786
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
3847
3787
  }
3848
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 58611) {
3788
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 5667) {
3849
3789
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
3850
3790
  }
3851
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 51838) {
3791
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 54692) {
3852
3792
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
3853
3793
  }
3854
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 43491) {
3794
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 54959) {
3855
3795
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
3856
3796
  }
3857
3797
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 46367) {
@@ -3941,8 +3881,8 @@ function uniffiEnsureInitialized() {
3941
3881
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 31079) {
3942
3882
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");
3943
3883
  }
3944
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 27695) {
3945
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
3884
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state() !== 27834) {
3885
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state");
3946
3886
  }
3947
3887
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !== 5687) {
3948
3888
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");
@@ -3965,12 +3905,6 @@ function uniffiEnsureInitialized() {
3965
3905
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 34548) {
3966
3906
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
3967
3907
  }
3968
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 16119) {
3969
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
3970
- }
3971
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 40766) {
3972
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
3973
- }
3974
3908
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 2007) {
3975
3909
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
3976
3910
  }
@@ -4031,7 +3965,7 @@ function uniffiEnsureInitialized() {
4031
3965
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 11480) {
4032
3966
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
4033
3967
  }
4034
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 7089) {
3968
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 6255) {
4035
3969
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
4036
3970
  }
4037
3971
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 43537) {
@@ -4049,7 +3983,7 @@ function uniffiEnsureInitialized() {
4049
3983
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 61476) {
4050
3984
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
4051
3985
  }
4052
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 3475) {
3986
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 9520) {
4053
3987
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
4054
3988
  }
4055
3989
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 46166) {
@@ -4079,7 +4013,7 @@ function uniffiEnsureInitialized() {
4079
4013
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 2151) {
4080
4014
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
4081
4015
  }
4082
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 22078) {
4016
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 12141) {
4083
4017
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
4084
4018
  }
4085
4019
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos() !== 25363) {
@@ -4091,7 +4025,7 @@ function uniffiEnsureInitialized() {
4091
4025
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 14560) {
4092
4026
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
4093
4027
  }
4094
- if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 45229) {
4028
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 43209) {
4095
4029
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
4096
4030
  }
4097
4031
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 10861) {