@secondts/bark-react-native 0.6.2 → 0.7.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.
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AAgvBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AAyKA;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,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AA6vBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AAyKA;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,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -673,18 +673,18 @@ const FfiConverterTypeLightningSend = (() => {
673
673
  return {
674
674
  invoice: FfiConverterString.read(from),
675
675
  amountSats: FfiConverterUInt64.read(from),
676
- htlcVtxoCount: FfiConverterUInt32.read(from),
677
- preimage: FfiConverterOptionalString.read(from)
676
+ feeSats: FfiConverterUInt64.read(from),
677
+ htlcVtxoCount: FfiConverterUInt32.read(from)
678
678
  };
679
679
  }
680
680
  write(value, into) {
681
681
  FfiConverterString.write(value.invoice, into);
682
682
  FfiConverterUInt64.write(value.amountSats, into);
683
+ FfiConverterUInt64.write(value.feeSats, into);
683
684
  FfiConverterUInt32.write(value.htlcVtxoCount, into);
684
- FfiConverterOptionalString.write(value.preimage, into);
685
685
  }
686
686
  allocationSize(value) {
687
- return FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterUInt32.allocationSize(value.htlcVtxoCount) + FfiConverterOptionalString.allocationSize(value.preimage);
687
+ return FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterUInt64.allocationSize(value.feeSats) + FfiConverterUInt32.allocationSize(value.htlcVtxoCount);
688
688
  }
689
689
  }
690
690
  return new FFIConverter();
@@ -1667,6 +1667,179 @@ const FfiConverterTypeBarkError = (() => {
1667
1667
  return new FFIConverter();
1668
1668
  })();
1669
1669
 
1670
+ // Enum: LightningSendStatus
1671
+ export let LightningSendStatus_Tags = /*#__PURE__*/function (LightningSendStatus_Tags) {
1672
+ LightningSendStatus_Tags["Unknown"] = "Unknown";
1673
+ LightningSendStatus_Tags["InProgress"] = "InProgress";
1674
+ LightningSendStatus_Tags["Paid"] = "Paid";
1675
+ return LightningSendStatus_Tags;
1676
+ }({});
1677
+ /**
1678
+ * Terminal/in-flight state of an outgoing lightning send.
1679
+ *
1680
+ * Mirrors `bark`'s `LightningSendState`. `pay_lightning_*` and
1681
+ * `check_lightning_payment` now return this so callers can drive the
1682
+ * crash-safe send flow themselves (initiate with `wait = false`, then poll).
1683
+ */
1684
+ export const LightningSendStatus = (() => {
1685
+ /**
1686
+ * No record of this payment (never started, or already pruned).
1687
+ */
1688
+ class Unknown_ extends UniffiEnum {
1689
+ /**
1690
+ * @private
1691
+ * This field is private and should not be used, use `tag` instead.
1692
+ */
1693
+ [uniffiTypeNameSymbol] = "LightningSendStatus";
1694
+ tag = LightningSendStatus_Tags.Unknown;
1695
+ constructor() {
1696
+ super("LightningSendStatus", "Unknown");
1697
+ }
1698
+ static new() {
1699
+ return new Unknown_();
1700
+ }
1701
+ static instanceOf(obj) {
1702
+ return obj.tag === LightningSendStatus_Tags.Unknown;
1703
+ }
1704
+ }
1705
+ /**
1706
+ * Send is in flight; HTLC VTXOs are locked.
1707
+ */
1708
+ class InProgress_ extends UniffiEnum {
1709
+ /**
1710
+ * @private
1711
+ * This field is private and should not be used, use `tag` instead.
1712
+ */
1713
+ [uniffiTypeNameSymbol] = "LightningSendStatus";
1714
+ tag = LightningSendStatus_Tags.InProgress;
1715
+ constructor(inner) {
1716
+ super("LightningSendStatus", "InProgress");
1717
+ this.inner = Object.freeze(inner);
1718
+ }
1719
+ static new(inner) {
1720
+ return new InProgress_(inner);
1721
+ }
1722
+ static instanceOf(obj) {
1723
+ return obj.tag === LightningSendStatus_Tags.InProgress;
1724
+ }
1725
+ }
1726
+ /**
1727
+ * Send has settled; the preimage proves payment.
1728
+ */
1729
+ class Paid_ extends UniffiEnum {
1730
+ /**
1731
+ * @private
1732
+ * This field is private and should not be used, use `tag` instead.
1733
+ */
1734
+ [uniffiTypeNameSymbol] = "LightningSendStatus";
1735
+ tag = LightningSendStatus_Tags.Paid;
1736
+ constructor(inner) {
1737
+ super("LightningSendStatus", "Paid");
1738
+ this.inner = Object.freeze(inner);
1739
+ }
1740
+ static new(inner) {
1741
+ return new Paid_(inner);
1742
+ }
1743
+ static instanceOf(obj) {
1744
+ return obj.tag === LightningSendStatus_Tags.Paid;
1745
+ }
1746
+ }
1747
+ function instanceOf(obj) {
1748
+ return obj[uniffiTypeNameSymbol] === "LightningSendStatus";
1749
+ }
1750
+ return Object.freeze({
1751
+ instanceOf,
1752
+ Unknown: Unknown_,
1753
+ InProgress: InProgress_,
1754
+ Paid: Paid_
1755
+ });
1756
+ })();
1757
+
1758
+ /**
1759
+ * Terminal/in-flight state of an outgoing lightning send.
1760
+ *
1761
+ * Mirrors `bark`'s `LightningSendState`. `pay_lightning_*` and
1762
+ * `check_lightning_payment` now return this so callers can drive the
1763
+ * crash-safe send flow themselves (initiate with `wait = false`, then poll).
1764
+ */
1765
+
1766
+ // FfiConverter for enum LightningSendStatus
1767
+ const FfiConverterTypeLightningSendStatus = (() => {
1768
+ const ordinalConverter = FfiConverterInt32;
1769
+ class FFIConverter extends AbstractFfiConverterByteArray {
1770
+ read(from) {
1771
+ switch (ordinalConverter.read(from)) {
1772
+ case 1:
1773
+ return new LightningSendStatus.Unknown();
1774
+ case 2:
1775
+ return new LightningSendStatus.InProgress({
1776
+ send: FfiConverterTypeLightningSend.read(from)
1777
+ });
1778
+ case 3:
1779
+ return new LightningSendStatus.Paid({
1780
+ paymentHash: FfiConverterString.read(from),
1781
+ preimage: FfiConverterString.read(from)
1782
+ });
1783
+ default:
1784
+ throw new UniffiInternalError.UnexpectedEnumCase();
1785
+ }
1786
+ }
1787
+ write(value, into) {
1788
+ switch (value.tag) {
1789
+ case LightningSendStatus_Tags.Unknown:
1790
+ {
1791
+ ordinalConverter.write(1, into);
1792
+ return;
1793
+ }
1794
+ case LightningSendStatus_Tags.InProgress:
1795
+ {
1796
+ ordinalConverter.write(2, into);
1797
+ const inner = value.inner;
1798
+ FfiConverterTypeLightningSend.write(inner.send, into);
1799
+ return;
1800
+ }
1801
+ case LightningSendStatus_Tags.Paid:
1802
+ {
1803
+ ordinalConverter.write(3, into);
1804
+ const inner = value.inner;
1805
+ FfiConverterString.write(inner.paymentHash, into);
1806
+ FfiConverterString.write(inner.preimage, into);
1807
+ return;
1808
+ }
1809
+ default:
1810
+ // Throwing from here means that LightningSendStatus_Tags hasn't matched an ordinal.
1811
+ throw new UniffiInternalError.UnexpectedEnumCase();
1812
+ }
1813
+ }
1814
+ allocationSize(value) {
1815
+ switch (value.tag) {
1816
+ case LightningSendStatus_Tags.Unknown:
1817
+ {
1818
+ return ordinalConverter.allocationSize(1);
1819
+ }
1820
+ case LightningSendStatus_Tags.InProgress:
1821
+ {
1822
+ const inner = value.inner;
1823
+ let size = ordinalConverter.allocationSize(2);
1824
+ size += FfiConverterTypeLightningSend.allocationSize(inner.send);
1825
+ return size;
1826
+ }
1827
+ case LightningSendStatus_Tags.Paid:
1828
+ {
1829
+ const inner = value.inner;
1830
+ let size = ordinalConverter.allocationSize(3);
1831
+ size += FfiConverterString.allocationSize(inner.paymentHash);
1832
+ size += FfiConverterString.allocationSize(inner.preimage);
1833
+ return size;
1834
+ }
1835
+ default:
1836
+ throw new UniffiInternalError.UnexpectedEnumCase();
1837
+ }
1838
+ }
1839
+ }
1840
+ return new FFIConverter();
1841
+ })();
1842
+
1670
1843
  /**
1671
1844
  * Severity of a log record.
1672
1845
  */
@@ -2932,7 +3105,7 @@ export class Wallet extends UniffiAbstractObject {
2932
3105
  try {
2933
3106
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2934
3107
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), FfiConverterBool.lower(wait));
2935
- }, /*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, /*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3108
+ }, /*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, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2936
3109
  } catch (__error) {
2937
3110
  if (uniffiIsDebug && __error instanceof Error) {
2938
3111
  __error.stack = __stack;
@@ -3231,6 +3404,19 @@ export class Wallet extends UniffiAbstractObject {
3231
3404
  throw __error;
3232
3405
  }
3233
3406
  }
3407
+ async isInvoicePaid(paymentHash, asyncOpts_) /*throws*/{
3408
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3409
+ try {
3410
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3411
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3412
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3413
+ } catch (__error) {
3414
+ if (uniffiIsDebug && __error instanceof Error) {
3415
+ __error.stack = __stack;
3416
+ }
3417
+ throw __error;
3418
+ }
3419
+ }
3234
3420
  async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
3235
3421
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3236
3422
  try {
@@ -3244,6 +3430,19 @@ export class Wallet extends UniffiAbstractObject {
3244
3430
  throw __error;
3245
3431
  }
3246
3432
  }
3433
+ async lightningSendState(paymentHash, asyncOpts_) /*throws*/{
3434
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3435
+ try {
3436
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3437
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3438
+ }, /*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, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3439
+ } catch (__error) {
3440
+ if (uniffiIsDebug && __error instanceof Error) {
3441
+ __error.stack = __stack;
3442
+ }
3443
+ throw __error;
3444
+ }
3445
+ }
3247
3446
  async listClaimableExits(asyncOpts_) /*throws*/{
3248
3447
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3249
3448
  try {
@@ -3432,12 +3631,12 @@ export class Wallet extends UniffiAbstractObject {
3432
3631
  /**
3433
3632
  * Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
3434
3633
  */
3435
- async payLightningAddress(lightningAddress, amountSats, comment, asyncOpts_) /*throws*/{
3634
+ async payLightningAddress(lightningAddress, amountSats, comment, wait, asyncOpts_) /*throws*/{
3436
3635
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3437
3636
  try {
3438
3637
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3439
- return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment));
3440
- }, /*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, /*liftFunc:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3638
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), FfiConverterBool.lower(wait));
3639
+ }, /*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, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3441
3640
  } catch (__error) {
3442
3641
  if (uniffiIsDebug && __error instanceof Error) {
3443
3642
  __error.stack = __stack;
@@ -3445,12 +3644,12 @@ export class Wallet extends UniffiAbstractObject {
3445
3644
  throw __error;
3446
3645
  }
3447
3646
  }
3448
- async payLightningInvoice(invoice, amountSats, asyncOpts_) /*throws*/{
3647
+ async payLightningInvoice(invoice, amountSats, wait, asyncOpts_) /*throws*/{
3449
3648
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3450
3649
  try {
3451
3650
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3452
- return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats));
3453
- }, /*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, /*liftFunc:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3651
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats), FfiConverterBool.lower(wait));
3652
+ }, /*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, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3454
3653
  } catch (__error) {
3455
3654
  if (uniffiIsDebug && __error instanceof Error) {
3456
3655
  __error.stack = __stack;
@@ -3458,12 +3657,12 @@ export class Wallet extends UniffiAbstractObject {
3458
3657
  throw __error;
3459
3658
  }
3460
3659
  }
3461
- async payLightningOffer(offer, amountSats, asyncOpts_) /*throws*/{
3660
+ async payLightningOffer(offer, amountSats, wait, asyncOpts_) /*throws*/{
3462
3661
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3463
3662
  try {
3464
3663
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3465
- return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats));
3466
- }, /*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, /*liftFunc:*/FfiConverterTypeLightningSend.lift.bind(FfiConverterTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3664
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats), FfiConverterBool.lower(wait));
3665
+ }, /*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, /*liftFunc:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3467
3666
  } catch (__error) {
3468
3667
  if (uniffiIsDebug && __error instanceof Error) {
3469
3668
  __error.stack = __stack;
@@ -4100,7 +4299,7 @@ function uniffiEnsureInitialized() {
4100
4299
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 21817) {
4101
4300
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
4102
4301
  }
4103
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 2315) {
4302
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 33087) {
4104
4303
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
4105
4304
  }
4106
4305
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 57824) {
@@ -4172,9 +4371,15 @@ function uniffiEnsureInitialized() {
4172
4371
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 58528) {
4173
4372
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
4174
4373
  }
4374
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 43344) {
4375
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");
4376
+ }
4175
4377
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 37213) {
4176
4378
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
4177
4379
  }
4380
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !== 37487) {
4381
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");
4382
+ }
4178
4383
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 46928) {
4179
4384
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
4180
4385
  }
@@ -4223,13 +4428,13 @@ function uniffiEnsureInitialized() {
4223
4428
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 45323) {
4224
4429
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
4225
4430
  }
4226
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 48668) {
4431
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 2440) {
4227
4432
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
4228
4433
  }
4229
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 64416) {
4434
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 18714) {
4230
4435
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
4231
4436
  }
4232
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 7458) {
4437
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 31129) {
4233
4438
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
4234
4439
  }
4235
4440
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 55042) {
@@ -4367,6 +4572,7 @@ export default Object.freeze({
4367
4572
  FfiConverterTypeLightningInvoice,
4368
4573
  FfiConverterTypeLightningReceive,
4369
4574
  FfiConverterTypeLightningSend,
4575
+ FfiConverterTypeLightningSendStatus,
4370
4576
  FfiConverterTypeLogLevel,
4371
4577
  FfiConverterTypeMovement,
4372
4578
  FfiConverterTypeNetwork,