@secondts/bark-react-native 0.1.0-beta.7 → 0.1.2-beta.13

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.
@@ -2390,6 +2390,7 @@ export enum BarkError_Tags {
2390
2390
  ServerConnection = "ServerConnection",
2391
2391
  Internal = "Internal",
2392
2392
  OnchainWalletRequired = "OnchainWalletRequired",
2393
+ InvalidVtxoId = "InvalidVtxoId",
2393
2394
  }
2394
2395
  /**
2395
2396
  * Error types that can occur when using the Bark wallet
@@ -2844,6 +2845,41 @@ export const BarkError = (() => {
2844
2845
  }
2845
2846
  }
2846
2847
 
2848
+ type InvalidVtxoId__interface = {
2849
+ tag: BarkError_Tags.InvalidVtxoId;
2850
+ inner: Readonly<{ errorMessage: string }>;
2851
+ };
2852
+
2853
+ class InvalidVtxoId_ extends UniffiError implements InvalidVtxoId__interface {
2854
+ /**
2855
+ * @private
2856
+ * This field is private and should not be used, use `tag` instead.
2857
+ */
2858
+ readonly [uniffiTypeNameSymbol] = "BarkError";
2859
+ readonly tag = BarkError_Tags.InvalidVtxoId;
2860
+ readonly inner: Readonly<{ errorMessage: string }>;
2861
+ constructor(inner: { errorMessage: string }) {
2862
+ super("BarkError", "InvalidVtxoId");
2863
+ this.inner = Object.freeze(inner);
2864
+ }
2865
+
2866
+ static new(inner: { errorMessage: string }): InvalidVtxoId_ {
2867
+ return new InvalidVtxoId_(inner);
2868
+ }
2869
+
2870
+ static instanceOf(obj: any): obj is InvalidVtxoId_ {
2871
+ return obj.tag === BarkError_Tags.InvalidVtxoId;
2872
+ }
2873
+
2874
+ static hasInner(obj: any): obj is InvalidVtxoId_ {
2875
+ return InvalidVtxoId_.instanceOf(obj);
2876
+ }
2877
+
2878
+ static getInner(obj: InvalidVtxoId_): Readonly<{ errorMessage: string }> {
2879
+ return obj.inner;
2880
+ }
2881
+ }
2882
+
2847
2883
  function instanceOf(obj: any): obj is BarkError {
2848
2884
  return obj[uniffiTypeNameSymbol] === "BarkError";
2849
2885
  }
@@ -2862,6 +2898,7 @@ export const BarkError = (() => {
2862
2898
  ServerConnection: ServerConnection_,
2863
2899
  Internal: Internal_,
2864
2900
  OnchainWalletRequired: OnchainWalletRequired_,
2901
+ InvalidVtxoId: InvalidVtxoId_,
2865
2902
  });
2866
2903
  })();
2867
2904
 
@@ -2928,6 +2965,10 @@ const FfiConverterTypeBarkError = (() => {
2928
2965
  return new BarkError.OnchainWalletRequired({
2929
2966
  errorMessage: FfiConverterString.read(from),
2930
2967
  });
2968
+ case 13:
2969
+ return new BarkError.InvalidVtxoId({
2970
+ errorMessage: FfiConverterString.read(from),
2971
+ });
2931
2972
  default:
2932
2973
  throw new UniffiInternalError.UnexpectedEnumCase();
2933
2974
  }
@@ -3006,6 +3047,12 @@ const FfiConverterTypeBarkError = (() => {
3006
3047
  FfiConverterString.write(inner.errorMessage, into);
3007
3048
  return;
3008
3049
  }
3050
+ case BarkError_Tags.InvalidVtxoId: {
3051
+ ordinalConverter.write(13, into);
3052
+ const inner = value.inner;
3053
+ FfiConverterString.write(inner.errorMessage, into);
3054
+ return;
3055
+ }
3009
3056
  default:
3010
3057
  // Throwing from here means that BarkError_Tags hasn't matched an ordinal.
3011
3058
  throw new UniffiInternalError.UnexpectedEnumCase();
@@ -3085,6 +3132,12 @@ const FfiConverterTypeBarkError = (() => {
3085
3132
  size += FfiConverterString.allocationSize(inner.errorMessage);
3086
3133
  return size;
3087
3134
  }
3135
+ case BarkError_Tags.InvalidVtxoId: {
3136
+ const inner = value.inner;
3137
+ let size = ordinalConverter.allocationSize(13);
3138
+ size += FfiConverterString.allocationSize(inner.errorMessage);
3139
+ return size;
3140
+ }
3088
3141
  default:
3089
3142
  throw new UniffiInternalError.UnexpectedEnumCase();
3090
3143
  }
@@ -3516,6 +3569,10 @@ export interface WalletInterface {
3516
3569
  address: string,
3517
3570
  feeRateSatPerVb: /*u64*/ bigint | undefined
3518
3571
  ): /*throws*/ ExitClaimTransaction;
3572
+ /**
3573
+ * Get the wallet's BIP32 fingerprint
3574
+ */
3575
+ fingerprint(): string;
3519
3576
  /**
3520
3577
  * Get detailed exit status for a specific VTXO
3521
3578
  *
@@ -3585,7 +3642,25 @@ export interface WalletInterface {
3585
3642
  * Returns exits ready to be drained to onchain wallet.
3586
3643
  */
3587
3644
  listClaimableExits(): /*throws*/ Array<ExitVtxo>;
3645
+ /**
3646
+ * Get the mailbox identifier for push notifications
3647
+ *
3648
+ * This identifier can be registered with a push notification service
3649
+ * to receive alerts when VTXOs arrive in your mailbox. The mailbox
3650
+ * receives all incoming VTXOs regardless of source (arkoor payments,
3651
+ * Lightning receives, or round outputs).
3652
+ *
3653
+ * Returns the mailbox identifier as a hex-encoded public key.
3654
+ */
3655
+ mailboxIdentifier(): /*throws*/ string;
3588
3656
  maintenance(): /*throws*/ void;
3657
+ /**
3658
+ * Perform maintenance in delegated (non-interactive) mode
3659
+ *
3660
+ * This schedules refresh operations but doesn't wait for completion.
3661
+ * Use this when you want to queue operations without blocking.
3662
+ */
3663
+ maintenanceDelegated(): /*throws*/ void;
3589
3664
  /**
3590
3665
  * Perform maintenance refresh
3591
3666
  */
@@ -3598,17 +3673,32 @@ export interface WalletInterface {
3598
3673
  maintenanceWithOnchain(
3599
3674
  onchainWallet: OnchainWalletInterface
3600
3675
  ): /*throws*/ void;
3676
+ /**
3677
+ * Perform maintenance with onchain wallet in delegated mode
3678
+ */
3679
+ maintenanceWithOnchainDelegated(
3680
+ onchainWallet: OnchainWalletInterface
3681
+ ): /*throws*/ void;
3601
3682
  /**
3602
3683
  * Schedule a maintenance refresh if VTXOs need refreshing
3603
3684
  *
3604
3685
  * Returns the round ID if a refresh was scheduled, null otherwise.
3605
3686
  */
3606
3687
  maybeScheduleMaintenanceRefresh(): /*throws*/ /*u32*/ number | undefined;
3688
+ /**
3689
+ * Get the Bitcoin network this wallet is using
3690
+ */
3691
+ network(): /*throws*/ Network;
3607
3692
  newAddress(): /*throws*/ string;
3608
3693
  /**
3609
3694
  * Generate a new address and return it with its index
3610
3695
  */
3611
3696
  newAddressWithIndex(): /*throws*/ AddressWithIndex;
3697
+ /**
3698
+ * Get the timestamp when the next round will start (Unix timestamp in seconds)
3699
+ * Returns an error if the server hasn't provided round timing info
3700
+ */
3701
+ nextRoundStartTime(): /*throws*/ /*u64*/ bigint;
3612
3702
  offboardAll(bitcoinAddress: string): /*throws*/ OffboardResult;
3613
3703
  /**
3614
3704
  * Offboard specific VTXOs to a Bitcoin address
@@ -3642,6 +3732,14 @@ export interface WalletInterface {
3642
3732
  * Peek at an address at a specific index
3643
3733
  */
3644
3734
  peakAddress(index: /*u32*/ number): /*throws*/ string;
3735
+ /**
3736
+ * Get all VTXOs that are part of pending boards
3737
+ */
3738
+ pendingBoardVtxos(): /*throws*/ Array<Vtxo>;
3739
+ /**
3740
+ * Get all pending board operations
3741
+ */
3742
+ pendingBoards(): /*throws*/ Array<PendingBoard>;
3645
3743
  /**
3646
3744
  * Get total amount in pending exits (sats)
3647
3745
  */
@@ -3650,10 +3748,18 @@ export interface WalletInterface {
3650
3748
  * Get all pending lightning receives
3651
3749
  */
3652
3750
  pendingLightningReceives(): /*throws*/ Array<LightningReceive>;
3751
+ /**
3752
+ * Get VTXOs locked in pending Lightning sends
3753
+ */
3754
+ pendingLightningSendVtxos(): /*throws*/ Array<Vtxo>;
3653
3755
  /**
3654
3756
  * Get all pending lightning sends
3655
3757
  */
3656
3758
  pendingLightningSends(): /*throws*/ Array<LightningSend>;
3759
+ /**
3760
+ * Get VTXOs being used as inputs in pending rounds
3761
+ */
3762
+ pendingRoundInputVtxos(): /*throws*/ Array<Vtxo>;
3657
3763
  /**
3658
3764
  * Get all pending round states
3659
3765
  */
@@ -3679,6 +3785,9 @@ export interface WalletInterface {
3679
3785
  * Advances the state of all pending rounds. Call periodically.
3680
3786
  */
3681
3787
  progressPendingRounds(): /*throws*/ void;
3788
+ /**
3789
+ * Get wallet properties
3790
+ */
3682
3791
  properties(): /*throws*/ WalletProperties;
3683
3792
  /**
3684
3793
  * Refresh the Ark server connection
@@ -3690,17 +3799,19 @@ export interface WalletInterface {
3690
3799
  * Refresh specific VTXOs
3691
3800
  */
3692
3801
  refreshVtxos(vtxoIds: Array<string>): /*throws*/ string | undefined;
3693
- sendArkoorPayment(
3694
- arkAddress: string,
3695
- amountSats: /*u64*/ bigint
3696
- ): /*throws*/ string;
3697
3802
  /**
3698
- * Send an onchain payment during a round
3803
+ * Refresh VTXOs in delegated (non-interactive) mode
3804
+ *
3805
+ * Returns the round state if a refresh was scheduled, null otherwise.
3699
3806
  */
3700
- sendRoundOnchainPayment(
3701
- address: string,
3807
+ refreshVtxosDelegated(
3808
+ vtxoIds: Array<string>
3809
+ ): /*throws*/ RoundState | undefined;
3810
+ sendArkoorPayment(
3811
+ arkAddress: string,
3702
3812
  amountSats: /*u64*/ bigint
3703
3813
  ): /*throws*/ string;
3814
+ sendOnchain(address: string, amountSats: /*u64*/ bigint): /*throws*/ string;
3704
3815
  /**
3705
3816
  * Sign exit claim inputs in an external PSBT
3706
3817
  *
@@ -4205,6 +4316,23 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4205
4316
  );
4206
4317
  }
4207
4318
 
4319
+ /**
4320
+ * Get the wallet's BIP32 fingerprint
4321
+ */
4322
+ public fingerprint(): string {
4323
+ return FfiConverterString.lift(
4324
+ uniffiCaller.rustCall(
4325
+ /*caller:*/ (callStatus) => {
4326
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(
4327
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4328
+ callStatus
4329
+ );
4330
+ },
4331
+ /*liftString:*/ FfiConverterString.lift
4332
+ )
4333
+ );
4334
+ }
4335
+
4208
4336
  /**
4209
4337
  * Get detailed exit status for a specific VTXO
4210
4338
  *
@@ -4462,6 +4590,33 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4462
4590
  );
4463
4591
  }
4464
4592
 
4593
+ /**
4594
+ * Get the mailbox identifier for push notifications
4595
+ *
4596
+ * This identifier can be registered with a push notification service
4597
+ * to receive alerts when VTXOs arrive in your mailbox. The mailbox
4598
+ * receives all incoming VTXOs regardless of source (arkoor payments,
4599
+ * Lightning receives, or round outputs).
4600
+ *
4601
+ * Returns the mailbox identifier as a hex-encoded public key.
4602
+ */
4603
+ public mailboxIdentifier(): string /*throws*/ {
4604
+ return FfiConverterString.lift(
4605
+ uniffiCaller.rustCallWithError(
4606
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4607
+ FfiConverterTypeBarkError
4608
+ ),
4609
+ /*caller:*/ (callStatus) => {
4610
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
4611
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4612
+ callStatus
4613
+ );
4614
+ },
4615
+ /*liftString:*/ FfiConverterString.lift
4616
+ )
4617
+ );
4618
+ }
4619
+
4465
4620
  public maintenance(): void /*throws*/ {
4466
4621
  uniffiCaller.rustCallWithError(
4467
4622
  /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
@@ -4477,6 +4632,27 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4477
4632
  );
4478
4633
  }
4479
4634
 
4635
+ /**
4636
+ * Perform maintenance in delegated (non-interactive) mode
4637
+ *
4638
+ * This schedules refresh operations but doesn't wait for completion.
4639
+ * Use this when you want to queue operations without blocking.
4640
+ */
4641
+ public maintenanceDelegated(): void /*throws*/ {
4642
+ uniffiCaller.rustCallWithError(
4643
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4644
+ FfiConverterTypeBarkError
4645
+ ),
4646
+ /*caller:*/ (callStatus) => {
4647
+ nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated(
4648
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4649
+ callStatus
4650
+ );
4651
+ },
4652
+ /*liftString:*/ FfiConverterString.lift
4653
+ );
4654
+ }
4655
+
4480
4656
  /**
4481
4657
  * Perform maintenance refresh
4482
4658
  */
@@ -4520,6 +4696,27 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4520
4696
  );
4521
4697
  }
4522
4698
 
4699
+ /**
4700
+ * Perform maintenance with onchain wallet in delegated mode
4701
+ */
4702
+ public maintenanceWithOnchainDelegated(
4703
+ onchainWallet: OnchainWalletInterface
4704
+ ): void /*throws*/ {
4705
+ uniffiCaller.rustCallWithError(
4706
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4707
+ FfiConverterTypeBarkError
4708
+ ),
4709
+ /*caller:*/ (callStatus) => {
4710
+ nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(
4711
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4712
+ FfiConverterTypeOnchainWallet.lower(onchainWallet),
4713
+ callStatus
4714
+ );
4715
+ },
4716
+ /*liftString:*/ FfiConverterString.lift
4717
+ );
4718
+ }
4719
+
4523
4720
  /**
4524
4721
  * Schedule a maintenance refresh if VTXOs need refreshing
4525
4722
  *
@@ -4544,6 +4741,26 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4544
4741
  );
4545
4742
  }
4546
4743
 
4744
+ /**
4745
+ * Get the Bitcoin network this wallet is using
4746
+ */
4747
+ public network(): Network /*throws*/ {
4748
+ return FfiConverterTypeNetwork.lift(
4749
+ uniffiCaller.rustCallWithError(
4750
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4751
+ FfiConverterTypeBarkError
4752
+ ),
4753
+ /*caller:*/ (callStatus) => {
4754
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_network(
4755
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4756
+ callStatus
4757
+ );
4758
+ },
4759
+ /*liftString:*/ FfiConverterString.lift
4760
+ )
4761
+ );
4762
+ }
4763
+
4547
4764
  public newAddress(): string /*throws*/ {
4548
4765
  return FfiConverterString.lift(
4549
4766
  uniffiCaller.rustCallWithError(
@@ -4581,6 +4798,27 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4581
4798
  );
4582
4799
  }
4583
4800
 
4801
+ /**
4802
+ * Get the timestamp when the next round will start (Unix timestamp in seconds)
4803
+ * Returns an error if the server hasn't provided round timing info
4804
+ */
4805
+ public nextRoundStartTime(): /*u64*/ bigint /*throws*/ {
4806
+ return FfiConverterUInt64.lift(
4807
+ uniffiCaller.rustCallWithError(
4808
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4809
+ FfiConverterTypeBarkError
4810
+ ),
4811
+ /*caller:*/ (callStatus) => {
4812
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(
4813
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4814
+ callStatus
4815
+ );
4816
+ },
4817
+ /*liftString:*/ FfiConverterString.lift
4818
+ )
4819
+ );
4820
+ }
4821
+
4584
4822
  public offboardAll(bitcoinAddress: string): OffboardResult /*throws*/ {
4585
4823
  return FfiConverterTypeOffboardResult.lift(
4586
4824
  uniffiCaller.rustCallWithError(
@@ -4721,6 +4959,46 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4721
4959
  );
4722
4960
  }
4723
4961
 
4962
+ /**
4963
+ * Get all VTXOs that are part of pending boards
4964
+ */
4965
+ public pendingBoardVtxos(): Array<Vtxo> /*throws*/ {
4966
+ return FfiConverterArrayTypeVtxo.lift(
4967
+ uniffiCaller.rustCallWithError(
4968
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4969
+ FfiConverterTypeBarkError
4970
+ ),
4971
+ /*caller:*/ (callStatus) => {
4972
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(
4973
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4974
+ callStatus
4975
+ );
4976
+ },
4977
+ /*liftString:*/ FfiConverterString.lift
4978
+ )
4979
+ );
4980
+ }
4981
+
4982
+ /**
4983
+ * Get all pending board operations
4984
+ */
4985
+ public pendingBoards(): Array<PendingBoard> /*throws*/ {
4986
+ return FfiConverterArrayTypePendingBoard.lift(
4987
+ uniffiCaller.rustCallWithError(
4988
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
4989
+ FfiConverterTypeBarkError
4990
+ ),
4991
+ /*caller:*/ (callStatus) => {
4992
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(
4993
+ uniffiTypeWalletObjectFactory.clonePointer(this),
4994
+ callStatus
4995
+ );
4996
+ },
4997
+ /*liftString:*/ FfiConverterString.lift
4998
+ )
4999
+ );
5000
+ }
5001
+
4724
5002
  /**
4725
5003
  * Get total amount in pending exits (sats)
4726
5004
  */
@@ -4761,6 +5039,26 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4761
5039
  );
4762
5040
  }
4763
5041
 
5042
+ /**
5043
+ * Get VTXOs locked in pending Lightning sends
5044
+ */
5045
+ public pendingLightningSendVtxos(): Array<Vtxo> /*throws*/ {
5046
+ return FfiConverterArrayTypeVtxo.lift(
5047
+ uniffiCaller.rustCallWithError(
5048
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5049
+ FfiConverterTypeBarkError
5050
+ ),
5051
+ /*caller:*/ (callStatus) => {
5052
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos(
5053
+ uniffiTypeWalletObjectFactory.clonePointer(this),
5054
+ callStatus
5055
+ );
5056
+ },
5057
+ /*liftString:*/ FfiConverterString.lift
5058
+ )
5059
+ );
5060
+ }
5061
+
4764
5062
  /**
4765
5063
  * Get all pending lightning sends
4766
5064
  */
@@ -4781,6 +5079,26 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4781
5079
  );
4782
5080
  }
4783
5081
 
5082
+ /**
5083
+ * Get VTXOs being used as inputs in pending rounds
5084
+ */
5085
+ public pendingRoundInputVtxos(): Array<Vtxo> /*throws*/ {
5086
+ return FfiConverterArrayTypeVtxo.lift(
5087
+ uniffiCaller.rustCallWithError(
5088
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5089
+ FfiConverterTypeBarkError
5090
+ ),
5091
+ /*caller:*/ (callStatus) => {
5092
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(
5093
+ uniffiTypeWalletObjectFactory.clonePointer(this),
5094
+ callStatus
5095
+ );
5096
+ },
5097
+ /*liftString:*/ FfiConverterString.lift
5098
+ )
5099
+ );
5100
+ }
5101
+
4784
5102
  /**
4785
5103
  * Get all pending round states
4786
5104
  */
@@ -4854,6 +5172,9 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4854
5172
  );
4855
5173
  }
4856
5174
 
5175
+ /**
5176
+ * Get wallet properties
5177
+ */
4857
5178
  public properties(): WalletProperties /*throws*/ {
4858
5179
  return FfiConverterTypeWalletProperties.lift(
4859
5180
  uniffiCaller.rustCallWithError(
@@ -4912,6 +5233,31 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4912
5233
  );
4913
5234
  }
4914
5235
 
5236
+ /**
5237
+ * Refresh VTXOs in delegated (non-interactive) mode
5238
+ *
5239
+ * Returns the round state if a refresh was scheduled, null otherwise.
5240
+ */
5241
+ public refreshVtxosDelegated(
5242
+ vtxoIds: Array<string>
5243
+ ): RoundState | undefined /*throws*/ {
5244
+ return FfiConverterOptionalTypeRoundState.lift(
5245
+ uniffiCaller.rustCallWithError(
5246
+ /*liftError:*/ FfiConverterTypeBarkError.lift.bind(
5247
+ FfiConverterTypeBarkError
5248
+ ),
5249
+ /*caller:*/ (callStatus) => {
5250
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(
5251
+ uniffiTypeWalletObjectFactory.clonePointer(this),
5252
+ FfiConverterArrayString.lower(vtxoIds),
5253
+ callStatus
5254
+ );
5255
+ },
5256
+ /*liftString:*/ FfiConverterString.lift
5257
+ )
5258
+ );
5259
+ }
5260
+
4915
5261
  public sendArkoorPayment(
4916
5262
  arkAddress: string,
4917
5263
  amountSats: /*u64*/ bigint
@@ -4934,10 +5280,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4934
5280
  );
4935
5281
  }
4936
5282
 
4937
- /**
4938
- * Send an onchain payment during a round
4939
- */
4940
- public sendRoundOnchainPayment(
5283
+ public sendOnchain(
4941
5284
  address: string,
4942
5285
  amountSats: /*u64*/ bigint
4943
5286
  ): string /*throws*/ {
@@ -4947,7 +5290,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
4947
5290
  FfiConverterTypeBarkError
4948
5291
  ),
4949
5292
  /*caller:*/ (callStatus) => {
4950
- return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_round_onchain_payment(
5293
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain(
4951
5294
  uniffiTypeWalletObjectFactory.clonePointer(this),
4952
5295
  FfiConverterString.lower(address),
4953
5296
  FfiConverterUInt64.lower(amountSats),
@@ -5297,6 +5640,11 @@ const FfiConverterOptionalTypeLightningReceive = new FfiConverterOptional(
5297
5640
  FfiConverterTypeLightningReceive
5298
5641
  );
5299
5642
 
5643
+ // FfiConverter for RoundState | undefined
5644
+ const FfiConverterOptionalTypeRoundState = new FfiConverterOptional(
5645
+ FfiConverterTypeRoundState
5646
+ );
5647
+
5300
5648
  // FfiConverter for string | undefined
5301
5649
  const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
5302
5650
 
@@ -5339,6 +5687,11 @@ const FfiConverterArrayTypeMovement = new FfiConverterArray(
5339
5687
  FfiConverterTypeMovement
5340
5688
  );
5341
5689
 
5690
+ // FfiConverter for Array<PendingBoard>
5691
+ const FfiConverterArrayTypePendingBoard = new FfiConverterArray(
5692
+ FfiConverterTypePendingBoard
5693
+ );
5694
+
5342
5695
  // FfiConverter for Array<RoundState>
5343
5696
  const FfiConverterArrayTypeRoundState = new FfiConverterArray(
5344
5697
  FfiConverterTypeRoundState
@@ -5553,6 +5906,14 @@ function uniffiEnsureInitialized() {
5553
5906
  "uniffi_bark_ffi_checksum_method_wallet_drain_exits"
5554
5907
  );
5555
5908
  }
5909
+ if (
5910
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
5911
+ 2456
5912
+ ) {
5913
+ throw new UniffiInternalError.ApiChecksumMismatch(
5914
+ "uniffi_bark_ffi_checksum_method_wallet_fingerprint"
5915
+ );
5916
+ }
5556
5917
  if (
5557
5918
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
5558
5919
  13877
@@ -5641,6 +6002,14 @@ function uniffiEnsureInitialized() {
5641
6002
  "uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"
5642
6003
  );
5643
6004
  }
6005
+ if (
6006
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
6007
+ 37148
6008
+ ) {
6009
+ throw new UniffiInternalError.ApiChecksumMismatch(
6010
+ "uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"
6011
+ );
6012
+ }
5644
6013
  if (
5645
6014
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
5646
6015
  21349
@@ -5649,6 +6018,14 @@ function uniffiEnsureInitialized() {
5649
6018
  "uniffi_bark_ffi_checksum_method_wallet_maintenance"
5650
6019
  );
5651
6020
  }
6021
+ if (
6022
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
6023
+ 46080
6024
+ ) {
6025
+ throw new UniffiInternalError.ApiChecksumMismatch(
6026
+ "uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated"
6027
+ );
6028
+ }
5652
6029
  if (
5653
6030
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
5654
6031
  17108
@@ -5665,6 +6042,14 @@ function uniffiEnsureInitialized() {
5665
6042
  "uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"
5666
6043
  );
5667
6044
  }
6045
+ if (
6046
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
6047
+ 51786
6048
+ ) {
6049
+ throw new UniffiInternalError.ApiChecksumMismatch(
6050
+ "uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"
6051
+ );
6052
+ }
5668
6053
  if (
5669
6054
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
5670
6055
  30042
@@ -5673,6 +6058,14 @@ function uniffiEnsureInitialized() {
5673
6058
  "uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"
5674
6059
  );
5675
6060
  }
6061
+ if (
6062
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
6063
+ 61729
6064
+ ) {
6065
+ throw new UniffiInternalError.ApiChecksumMismatch(
6066
+ "uniffi_bark_ffi_checksum_method_wallet_network"
6067
+ );
6068
+ }
5676
6069
  if (
5677
6070
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
5678
6071
  23909
@@ -5689,6 +6082,14 @@ function uniffiEnsureInitialized() {
5689
6082
  "uniffi_bark_ffi_checksum_method_wallet_new_address_with_index"
5690
6083
  );
5691
6084
  }
6085
+ if (
6086
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
6087
+ 61507
6088
+ ) {
6089
+ throw new UniffiInternalError.ApiChecksumMismatch(
6090
+ "uniffi_bark_ffi_checksum_method_wallet_next_round_start_time"
6091
+ );
6092
+ }
5692
6093
  if (
5693
6094
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
5694
6095
  9225
@@ -5737,6 +6138,22 @@ function uniffiEnsureInitialized() {
5737
6138
  "uniffi_bark_ffi_checksum_method_wallet_peak_address"
5738
6139
  );
5739
6140
  }
6141
+ if (
6142
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
6143
+ 58457
6144
+ ) {
6145
+ throw new UniffiInternalError.ApiChecksumMismatch(
6146
+ "uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos"
6147
+ );
6148
+ }
6149
+ if (
6150
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
6151
+ 59350
6152
+ ) {
6153
+ throw new UniffiInternalError.ApiChecksumMismatch(
6154
+ "uniffi_bark_ffi_checksum_method_wallet_pending_boards"
6155
+ );
6156
+ }
5740
6157
  if (
5741
6158
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
5742
6159
  50026
@@ -5753,6 +6170,14 @@ function uniffiEnsureInitialized() {
5753
6170
  "uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives"
5754
6171
  );
5755
6172
  }
6173
+ if (
6174
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
6175
+ 9022
6176
+ ) {
6177
+ throw new UniffiInternalError.ApiChecksumMismatch(
6178
+ "uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos"
6179
+ );
6180
+ }
5756
6181
  if (
5757
6182
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
5758
6183
  363
@@ -5761,6 +6186,14 @@ function uniffiEnsureInitialized() {
5761
6186
  "uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends"
5762
6187
  );
5763
6188
  }
6189
+ if (
6190
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
6191
+ 47165
6192
+ ) {
6193
+ throw new UniffiInternalError.ApiChecksumMismatch(
6194
+ "uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"
6195
+ );
6196
+ }
5764
6197
  if (
5765
6198
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
5766
6199
  20536
@@ -5809,6 +6242,14 @@ function uniffiEnsureInitialized() {
5809
6242
  "uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos"
5810
6243
  );
5811
6244
  }
6245
+ if (
6246
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
6247
+ 52548
6248
+ ) {
6249
+ throw new UniffiInternalError.ApiChecksumMismatch(
6250
+ "uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated"
6251
+ );
6252
+ }
5812
6253
  if (
5813
6254
  nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
5814
6255
  56067
@@ -5818,11 +6259,11 @@ function uniffiEnsureInitialized() {
5818
6259
  );
5819
6260
  }
5820
6261
  if (
5821
- nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_round_onchain_payment() !==
5822
- 47652
6262
+ nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
6263
+ 59921
5823
6264
  ) {
5824
6265
  throw new UniffiInternalError.ApiChecksumMismatch(
5825
- "uniffi_bark_ffi_checksum_method_wallet_send_round_onchain_payment"
6266
+ "uniffi_bark_ffi_checksum_method_wallet_send_onchain"
5826
6267
  );
5827
6268
  }
5828
6269
  if (