@secondts/bark-react-native 0.7.0 → 0.8.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;;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":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AA2wBA;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":[]}
@@ -674,7 +674,8 @@ const FfiConverterTypeLightningSend = (() => {
674
674
  invoice: FfiConverterString.read(from),
675
675
  amountSats: FfiConverterUInt64.read(from),
676
676
  feeSats: FfiConverterUInt64.read(from),
677
- htlcVtxoCount: FfiConverterUInt32.read(from)
677
+ htlcVtxoCount: FfiConverterUInt32.read(from),
678
+ hasFailedRevocation: FfiConverterBool.read(from)
678
679
  };
679
680
  }
680
681
  write(value, into) {
@@ -682,9 +683,10 @@ const FfiConverterTypeLightningSend = (() => {
682
683
  FfiConverterUInt64.write(value.amountSats, into);
683
684
  FfiConverterUInt64.write(value.feeSats, into);
684
685
  FfiConverterUInt32.write(value.htlcVtxoCount, into);
686
+ FfiConverterBool.write(value.hasFailedRevocation, into);
685
687
  }
686
688
  allocationSize(value) {
687
- return FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterUInt64.allocationSize(value.feeSats) + FfiConverterUInt32.allocationSize(value.htlcVtxoCount);
689
+ return FfiConverterString.allocationSize(value.invoice) + FfiConverterUInt64.allocationSize(value.amountSats) + FfiConverterUInt64.allocationSize(value.feeSats) + FfiConverterUInt32.allocationSize(value.htlcVtxoCount) + FfiConverterBool.allocationSize(value.hasFailedRevocation);
688
690
  }
689
691
  }
690
692
  return new FFIConverter();
@@ -2983,6 +2985,19 @@ export class Wallet extends UniffiAbstractObject {
2983
2985
  throw __error;
2984
2986
  }
2985
2987
  }
2988
+ async allowLightningSendToExit(paymentHash, asyncOpts_) /*throws*/{
2989
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2990
+ try {
2991
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2992
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
2993
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2994
+ } catch (__error) {
2995
+ if (uniffiIsDebug && __error instanceof Error) {
2996
+ __error.stack = __stack;
2997
+ }
2998
+ throw __error;
2999
+ }
3000
+ }
2986
3001
  async arkInfo(asyncOpts_) {
2987
3002
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
2988
3003
  try {
@@ -2996,6 +3011,19 @@ export class Wallet extends UniffiAbstractObject {
2996
3011
  throw __error;
2997
3012
  }
2998
3013
  }
3014
+ async attemptLightningReceiveExit(paymentHash, asyncOpts_) /*throws*/{
3015
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3016
+ try {
3017
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3018
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
3019
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3020
+ } catch (__error) {
3021
+ if (uniffiIsDebug && __error instanceof Error) {
3022
+ __error.stack = __stack;
3023
+ }
3024
+ throw __error;
3025
+ }
3026
+ }
2999
3027
  async balance(asyncOpts_) /*throws*/{
3000
3028
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3001
3029
  try {
@@ -3969,6 +3997,19 @@ export class Wallet extends UniffiAbstractObject {
3969
3997
  throw __error;
3970
3998
  }
3971
3999
  }
4000
+ async stuckFailedLightningSends(asyncOpts_) /*throws*/{
4001
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
4002
+ try {
4003
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
4004
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
4005
+ }, /*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:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
4006
+ } catch (__error) {
4007
+ if (uniffiIsDebug && __error instanceof Error) {
4008
+ __error.stack = __stack;
4009
+ }
4010
+ throw __error;
4011
+ }
4012
+ }
3972
4013
  async sync(asyncOpts_) /*throws*/{
3973
4014
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3974
4015
  try {
@@ -4272,9 +4313,15 @@ function uniffiEnsureInitialized() {
4272
4313
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 38449) {
4273
4314
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
4274
4315
  }
4316
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !== 44140) {
4317
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit");
4318
+ }
4275
4319
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 37357) {
4276
4320
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
4277
4321
  }
4322
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !== 32877) {
4323
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit");
4324
+ }
4278
4325
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 26361) {
4279
4326
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
4280
4327
  }
@@ -4506,6 +4553,9 @@ function uniffiEnsureInitialized() {
4506
4553
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 27848) {
4507
4554
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
4508
4555
  }
4556
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 51351) {
4557
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");
4558
+ }
4509
4559
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 38360) {
4510
4560
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
4511
4561
  }