@breeztech/breez-sdk-spark-react-native 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,9 +92,9 @@ export declare function defaultConfig(network: Network): Config;
92
92
  *
93
93
  * * `mnemonic` - BIP39 mnemonic phrase (12 or 24 words)
94
94
  * * `passphrase` - Optional passphrase for the mnemonic
95
- * * `network` - Network to use (Mainnet or Regtest)
95
+ * * `network` - Network to use (Mainnet, Signet, or Regtest)
96
96
  * * `account_number` - Account number in the derivation path. Unset uses the
97
- * network default: 0 on Regtest, 1 on all other networks.
97
+ * network default: 0 on Regtest and Signet, 1 on Mainnet.
98
98
  */
99
99
  export declare function defaultExternalSigners(mnemonic: string, passphrase: string | undefined, network: Network, accountNumber: /*u32*/ number | undefined): ExternalSigners;
100
100
  /**
@@ -1048,9 +1048,20 @@ export type ClaimDepositRequest = {
1048
1048
  txid: string;
1049
1049
  vout: number;
1050
1050
  /**
1051
- * Caps what the claim may cost. A deposit that has not matured is claimed
1052
- * instantly when the provider's spread fits within this, so the same ceiling
1053
- * governs both. Falls back to the configured max deposit claim fee.
1051
+ * Caps what the claim may cost, and is recorded on the deposit so later
1052
+ * automatic attempts are held to it too.
1053
+ *
1054
+ * Raising it above the quoted spread is what lets a deposit be claimed ahead
1055
+ * of maturity without further input. Lowering it below the spread keeps the
1056
+ * deposit from being claimed early, and does not hold back its claim at
1057
+ * maturity: that one runs under whichever is larger, this or the configured
1058
+ * max deposit claim fee.
1059
+ *
1060
+ * Unset claims under the configured max deposit claim fee and clears any
1061
+ * ceiling previously recorded on the deposit.
1062
+ *
1063
+ * The ceiling is recorded before the claim is attempted, so it stands even
1064
+ * when the attempt is then declined for exceeding it.
1054
1065
  */
1055
1066
  maxFee: MaxFee | undefined;
1056
1067
  };
@@ -1075,14 +1086,11 @@ export declare const ClaimDepositRequest: Readonly<{
1075
1086
  }>;
1076
1087
  export type ClaimDepositResponse = {
1077
1088
  /**
1078
- * The settled claim payment, present when the deposit was claimed at maturity,
1079
- * which completes synchronously. Absent when it was claimed before maturity,
1080
- * whose transfer settles asynchronously: watch for the payment via events or
1081
- * `list_payments`. Which of the two happens follows from the deposit's maturity
1082
- * and the fee ceiling, not from anything the caller asks for, so treat the
1083
- * payment as optional on every claim.
1089
+ * What the call did. Which outcome occurs follows from the deposit's maturity
1090
+ * and the fee ceiling, not from anything the caller asks for, so handle all
1091
+ * three on every claim.
1084
1092
  */
1085
- payment: Payment | undefined;
1093
+ outcome: ClaimDepositOutcome;
1086
1094
  };
1087
1095
  /**
1088
1096
  * Generated factory for {@link ClaimDepositResponse} record objects.
@@ -1205,15 +1213,20 @@ export type Config = {
1205
1213
  preferSparkOverLightning: boolean;
1206
1214
  /**
1207
1215
  * Whether the data needed to exit a payment unilaterally, without the Spark
1208
- * operators, is collected as funds arrive. Collection runs in the background,
1209
- * and a sync waits for a collection pass before returning, so syncing is how
1210
- * to make that happen at a moment of your choosing. A leaf the operators
1211
- * cannot complete stays un-exitable until a later attempt succeeds.
1216
+ * operators, is collected automatically as funds arrive. Collection runs in
1217
+ * the background, after an operation rather than during it. A leaf the
1218
+ * operators cannot complete stays un-exitable until a later attempt
1219
+ * succeeds.
1212
1220
  *
1213
- * Leave this on unless bandwidth matters more than being able to recover funds
1214
- * when the operators are unreachable. With it off, chains are only collected
1215
- * when an exit is prepared, which needs the operators reachable at that
1216
- * moment: a leaf cannot be exited without them until one is collected.
1221
+ * Turn it off when collecting behind every operation costs more than it is
1222
+ * worth, on a busy wallet holding many leaves. `sync_wallet` collects
1223
+ * regardless of this flag, and waits for the pass before returning, so an
1224
+ * explicit sync on a cadence of your choosing is how the data is kept
1225
+ * current with the automatic collection off.
1226
+ *
1227
+ * Only that automatic collection is governed, so this has no effect at all
1228
+ * where none runs: with `background_tasks_enabled` off there is no
1229
+ * background collector, and every sync is an explicit one.
1217
1230
  *
1218
1231
  * Default value is true.
1219
1232
  */
@@ -1942,6 +1955,38 @@ export declare const Credentials: Readonly<{
1942
1955
  */
1943
1956
  defaults: () => Partial<Credentials>;
1944
1957
  }>;
1958
+ /**
1959
+ * A Spark-side asset a route accepts, with the amount bounds that apply to it.
1960
+ *
1961
+ * Bounds are per asset rather than per route: the same external endpoint can
1962
+ * carry a dust floor when moved as sats and none when moved as a token.
1963
+ */
1964
+ export type CrossChainAcceptedAsset = {
1965
+ asset: SparkAsset;
1966
+ /**
1967
+ * Unset when the provider publishes no bounds for this pairing.
1968
+ */
1969
+ limits: CrossChainRouteLimits | undefined;
1970
+ };
1971
+ /**
1972
+ * Generated factory for {@link CrossChainAcceptedAsset} record objects.
1973
+ */
1974
+ export declare const CrossChainAcceptedAsset: Readonly<{
1975
+ /**
1976
+ * Create a frozen instance of {@link CrossChainAcceptedAsset}, with defaults specified
1977
+ * in Rust, in the {@link breez_sdk_spark} crate.
1978
+ */
1979
+ create: (partial: Partial<CrossChainAcceptedAsset> & Required<Omit<CrossChainAcceptedAsset, never>>) => CrossChainAcceptedAsset;
1980
+ /**
1981
+ * Create a frozen instance of {@link CrossChainAcceptedAsset}, with defaults specified
1982
+ * in Rust, in the {@link breez_sdk_spark} crate.
1983
+ */
1984
+ new: (partial: Partial<CrossChainAcceptedAsset> & Required<Omit<CrossChainAcceptedAsset, never>>) => CrossChainAcceptedAsset;
1985
+ /**
1986
+ * Defaults specified in the {@link breez_sdk_spark} crate.
1987
+ */
1988
+ defaults: () => Partial<CrossChainAcceptedAsset>;
1989
+ }>;
1945
1990
  export type CrossChainAddressDetails = {
1946
1991
  address: string;
1947
1992
  addressFamily: CrossChainAddressFamily;
@@ -2053,6 +2098,11 @@ export type CrossChainReceiveInfo = {
2053
2098
  * in sats.
2054
2099
  */
2055
2100
  serviceFeeAsset: string | undefined;
2101
+ /**
2102
+ * Decimals of `service_fee_asset`, for formatting `service_fee_amount`.
2103
+ * Unset when the fee is in sats or the provider did not report them.
2104
+ */
2105
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
2056
2106
  /**
2057
2107
  * Quote expiry as a unix timestamp in seconds.
2058
2108
  */
@@ -2077,6 +2127,59 @@ export declare const CrossChainReceiveInfo: Readonly<{
2077
2127
  */
2078
2128
  defaults: () => Partial<CrossChainReceiveInfo>;
2079
2129
  }>;
2130
+ /**
2131
+ * Amount bounds a provider publishes for moving a route with one Spark-side
2132
+ * asset.
2133
+ *
2134
+ * A route can enforce a tighter bound than it publishes, so an amount inside
2135
+ * these can still be rejected when the payment is prepared.
2136
+ *
2137
+ * The two groups are independent, and either can be absent: a route may
2138
+ * publish a base-unit floor (a dust minimum on a sats-funded route), a USD
2139
+ * notional band, both, or neither.
2140
+ *
2141
+ * `min_amount` / `max_amount` bound the asset that is paid in, so which asset
2142
+ * they are denominated in follows the direction: the Spark-side asset on a
2143
+ * send, the external asset on a receive. The USD band bounds the order's
2144
+ * value and reads the same in both directions.
2145
+ */
2146
+ export type CrossChainRouteLimits = {
2147
+ /**
2148
+ * Smallest amount accepted, in the base units of the asset paid in.
2149
+ */
2150
+ minAmount: U128 | undefined;
2151
+ /**
2152
+ * Largest amount accepted, in the base units of the asset paid in.
2153
+ */
2154
+ maxAmount: U128 | undefined;
2155
+ /**
2156
+ * Smallest order value accepted, in USD cents.
2157
+ */
2158
+ minUsdCents: /*u64*/ bigint | undefined;
2159
+ /**
2160
+ * Largest order value accepted, in USD cents.
2161
+ */
2162
+ maxUsdCents: /*u64*/ bigint | undefined;
2163
+ };
2164
+ /**
2165
+ * Generated factory for {@link CrossChainRouteLimits} record objects.
2166
+ */
2167
+ export declare const CrossChainRouteLimits: Readonly<{
2168
+ /**
2169
+ * Create a frozen instance of {@link CrossChainRouteLimits}, with defaults specified
2170
+ * in Rust, in the {@link breez_sdk_spark} crate.
2171
+ */
2172
+ create: (partial: Partial<CrossChainRouteLimits> & Required<Omit<CrossChainRouteLimits, never>>) => CrossChainRouteLimits;
2173
+ /**
2174
+ * Create a frozen instance of {@link CrossChainRouteLimits}, with defaults specified
2175
+ * in Rust, in the {@link breez_sdk_spark} crate.
2176
+ */
2177
+ new: (partial: Partial<CrossChainRouteLimits> & Required<Omit<CrossChainRouteLimits, never>>) => CrossChainRouteLimits;
2178
+ /**
2179
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2180
+ */
2181
+ defaults: () => Partial<CrossChainRouteLimits>;
2182
+ }>;
2080
2183
  /**
2081
2184
  * A single route available for cross-chain transfers, tagged with the provider
2082
2185
  * that offers it. Returned by `get_cross_chain_routes()`.
@@ -2113,9 +2216,9 @@ export type CrossChainRoutePair = {
2113
2216
  */
2114
2217
  exactOutEligible: boolean;
2115
2218
  /**
2116
- * Spark-side assets this route accepts.
2219
+ * Spark-side assets this route accepts, each with its own amount bounds.
2117
2220
  */
2118
- acceptedAssets: Array<SparkAsset>;
2221
+ acceptedAssets: Array<CrossChainAcceptedAsset>;
2119
2222
  /**
2120
2223
  * Rails this route can be delivered over, orthogonal to
2121
2224
  * `accepted_assets` (the asset moved vs the rail moved on).
@@ -2210,6 +2313,14 @@ export type DepositInfo = {
2210
2313
  * Unset when no instant claim has been attempted.
2211
2314
  */
2212
2315
  instantClaimStatus: InstantClaimStatus | undefined;
2316
+ /**
2317
+ * The fee ceiling standing for this deposit alone. It caps what may be paid
2318
+ * to claim the deposit ahead of maturity. The claim at maturity runs under
2319
+ * whichever is larger, this or the configured max deposit claim fee, so a
2320
+ * ceiling set below that one does not hold the deposit back from it. Unset
2321
+ * means the configured ceiling applies to both.
2322
+ */
2323
+ maxClaimFee: MaxFee | undefined;
2213
2324
  };
2214
2325
  /**
2215
2326
  * Generated factory for {@link DepositInfo} record objects.
@@ -2699,6 +2810,32 @@ export declare const ExternalInputParser: Readonly<{
2699
2810
  */
2700
2811
  defaults: () => Partial<ExternalInputParser>;
2701
2812
  }>;
2813
+ /**
2814
+ * FFI-safe representation of `spark_wallet::LeafSigningKey`: the leaf signing
2815
+ * key derived from `derived_from`.
2816
+ */
2817
+ export type ExternalLeafSigningKey = {
2818
+ derivedFrom: ExternalTreeNodeId;
2819
+ };
2820
+ /**
2821
+ * Generated factory for {@link ExternalLeafSigningKey} record objects.
2822
+ */
2823
+ export declare const ExternalLeafSigningKey: Readonly<{
2824
+ /**
2825
+ * Create a frozen instance of {@link ExternalLeafSigningKey}, with defaults specified
2826
+ * in Rust, in the {@link breez_sdk_spark} crate.
2827
+ */
2828
+ create: (partial: Partial<ExternalLeafSigningKey> & Required<Omit<ExternalLeafSigningKey, never>>) => ExternalLeafSigningKey;
2829
+ /**
2830
+ * Create a frozen instance of {@link ExternalLeafSigningKey}, with defaults specified
2831
+ * in Rust, in the {@link breez_sdk_spark} crate.
2832
+ */
2833
+ new: (partial: Partial<ExternalLeafSigningKey> & Required<Omit<ExternalLeafSigningKey, never>>) => ExternalLeafSigningKey;
2834
+ /**
2835
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2836
+ */
2837
+ defaults: () => Partial<ExternalLeafSigningKey>;
2838
+ }>;
2702
2839
  /**
2703
2840
  * FFI-safe representation of `spark_wallet::NewLeafKey`.
2704
2841
  */
@@ -3337,12 +3474,14 @@ export declare const ExternalStartedStaticDepositRefund: Readonly<{
3337
3474
  defaults: () => Partial<ExternalStartedStaticDepositRefund>;
3338
3475
  }>;
3339
3476
  /**
3340
- * FFI-safe representation of `spark_wallet::TransferLeafInput`. Conveys the old
3341
- * leaf id and the new (post-transfer) leaf id; the signer derives keys from them.
3477
+ * FFI-safe representation of `spark_wallet::TransferLeafInput`. Conveys the
3478
+ * leaf id, the key the leaf is held under and the new (post-transfer) leaf id;
3479
+ * the signer derives the keys from them.
3342
3480
  */
3343
3481
  export type ExternalTransferLeafInput = {
3344
3482
  nodeId: ExternalTreeNodeId;
3345
3483
  newLeafId: ExternalTreeNodeId;
3484
+ signingKey: ExternalLeafSigningKey;
3346
3485
  };
3347
3486
  /**
3348
3487
  * Generated factory for {@link ExternalTransferLeafInput} record objects.
@@ -5438,6 +5577,11 @@ export type PreparePaymentLinkResponse = {
5438
5577
  * denominates its fee in sats, Orchestra in the stablecoin.
5439
5578
  */
5440
5579
  serviceFeeAsset: string | undefined;
5580
+ /**
5581
+ * Decimals of `service_fee_asset`, for formatting `service_fee_amount`.
5582
+ * Unset when the fee is in sats or the provider did not report them.
5583
+ */
5584
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
5441
5585
  /**
5442
5586
  * RFC3339 timestamp after which the quote is no longer valid.
5443
5587
  */
@@ -5650,6 +5794,11 @@ export declare const PrepareUnilateralExitRequest: Readonly<{
5650
5794
  * fee at the requested rate, and how much to fund.
5651
5795
  */
5652
5796
  export type PrepareUnilateralExitResponse = {
5797
+ /**
5798
+ * The leaves the exit covers. A leaf whose exit already finished is left out,
5799
+ * even when named: `exit_chain_state` shows its refund swept or its branch
5800
+ * stopped.
5801
+ */
5653
5802
  leaves: Array<UnilateralExitLeaf>;
5654
5803
  /**
5655
5804
  * Total value of the selected leaves, in satoshis.
@@ -7769,6 +7918,7 @@ export type TurnkeyConfig = {
7769
7918
  /**
7770
7919
  * Network the wallet operates on; selects the Spark address format
7771
7920
  * (mainnet or regtest) used for Spark-protocol and Schnorr signing.
7921
+ * Signet is unsupported by Turnkey's Spark account formats.
7772
7922
  */
7773
7923
  network: Network;
7774
7924
  /**
@@ -8405,6 +8555,40 @@ export declare const WalletSetup: Readonly<{
8405
8555
  */
8406
8556
  defaults: () => Partial<WalletSetup>;
8407
8557
  }>;
8558
+ /**
8559
+ * A static deposit address being watched on-chain for unconfirmed deposits.
8560
+ */
8561
+ export type WatchedDepositAddress = {
8562
+ address: string;
8563
+ /**
8564
+ * When the address was handed out, in seconds since the epoch. The watch
8565
+ * window is measured from here.
8566
+ */
8567
+ issuedAt: bigint;
8568
+ /**
8569
+ * Whether a deposit to it has been seen unconfirmed.
8570
+ */
8571
+ seen: boolean;
8572
+ };
8573
+ /**
8574
+ * Generated factory for {@link WatchedDepositAddress} record objects.
8575
+ */
8576
+ export declare const WatchedDepositAddress: Readonly<{
8577
+ /**
8578
+ * Create a frozen instance of {@link WatchedDepositAddress}, with defaults specified
8579
+ * in Rust, in the {@link breez_sdk_spark} crate.
8580
+ */
8581
+ create: (partial: Partial<WatchedDepositAddress> & Required<Omit<WatchedDepositAddress, never>>) => WatchedDepositAddress;
8582
+ /**
8583
+ * Create a frozen instance of {@link WatchedDepositAddress}, with defaults specified
8584
+ * in Rust, in the {@link breez_sdk_spark} crate.
8585
+ */
8586
+ new: (partial: Partial<WatchedDepositAddress> & Required<Omit<WatchedDepositAddress, never>>) => WatchedDepositAddress;
8587
+ /**
8588
+ * Defaults specified in the {@link breez_sdk_spark} crate.
8589
+ */
8590
+ defaults: () => Partial<WatchedDepositAddress>;
8591
+ }>;
8408
8592
  /**
8409
8593
  * A registered webhook entry.
8410
8594
  */
@@ -9274,6 +9458,7 @@ export declare enum ChainApiType {
9274
9458
  export declare enum ChainServiceError_Tags {
9275
9459
  InvalidAddress = "InvalidAddress",
9276
9460
  ServiceConnectivity = "ServiceConnectivity",
9461
+ NotFound = "NotFound",
9277
9462
  Generic = "Generic"
9278
9463
  }
9279
9464
  export declare const ChainServiceError: Readonly<{
@@ -9420,6 +9605,77 @@ export declare const ChainServiceError: Readonly<{
9420
9605
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
9421
9606
  stackTraceLimit: number;
9422
9607
  };
9608
+ NotFound: {
9609
+ new (v0: string): {
9610
+ readonly tag: ChainServiceError_Tags.NotFound;
9611
+ readonly inner: Readonly<[string]>;
9612
+ /**
9613
+ * @private
9614
+ * This field is private and should not be used, use `tag` instead.
9615
+ */
9616
+ readonly [uniffiTypeNameSymbol]: "ChainServiceError";
9617
+ name: string;
9618
+ message: string;
9619
+ stack?: string;
9620
+ cause?: unknown;
9621
+ };
9622
+ "new"(v0: string): {
9623
+ readonly tag: ChainServiceError_Tags.NotFound;
9624
+ readonly inner: Readonly<[string]>;
9625
+ /**
9626
+ * @private
9627
+ * This field is private and should not be used, use `tag` instead.
9628
+ */
9629
+ readonly [uniffiTypeNameSymbol]: "ChainServiceError";
9630
+ name: string;
9631
+ message: string;
9632
+ stack?: string;
9633
+ cause?: unknown;
9634
+ };
9635
+ instanceOf(obj: any): obj is {
9636
+ readonly tag: ChainServiceError_Tags.NotFound;
9637
+ readonly inner: Readonly<[string]>;
9638
+ /**
9639
+ * @private
9640
+ * This field is private and should not be used, use `tag` instead.
9641
+ */
9642
+ readonly [uniffiTypeNameSymbol]: "ChainServiceError";
9643
+ name: string;
9644
+ message: string;
9645
+ stack?: string;
9646
+ cause?: unknown;
9647
+ };
9648
+ hasInner(obj: any): obj is {
9649
+ readonly tag: ChainServiceError_Tags.NotFound;
9650
+ readonly inner: Readonly<[string]>;
9651
+ /**
9652
+ * @private
9653
+ * This field is private and should not be used, use `tag` instead.
9654
+ */
9655
+ readonly [uniffiTypeNameSymbol]: "ChainServiceError";
9656
+ name: string;
9657
+ message: string;
9658
+ stack?: string;
9659
+ cause?: unknown;
9660
+ };
9661
+ getInner(obj: {
9662
+ readonly tag: ChainServiceError_Tags.NotFound;
9663
+ readonly inner: Readonly<[string]>;
9664
+ /**
9665
+ * @private
9666
+ * This field is private and should not be used, use `tag` instead.
9667
+ */
9668
+ readonly [uniffiTypeNameSymbol]: "ChainServiceError";
9669
+ name: string;
9670
+ message: string;
9671
+ stack?: string;
9672
+ cause?: unknown;
9673
+ }): Readonly<[string]>;
9674
+ isError(error: unknown): error is Error;
9675
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
9676
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
9677
+ stackTraceLimit: number;
9678
+ };
9423
9679
  Generic: {
9424
9680
  new (v0: string): {
9425
9681
  readonly tag: ChainServiceError_Tags.Generic;
@@ -9493,6 +9749,257 @@ export declare const ChainServiceError: Readonly<{
9493
9749
  };
9494
9750
  }>;
9495
9751
  export type ChainServiceError = InstanceType<(typeof ChainServiceError)[keyof Omit<typeof ChainServiceError, 'instanceOf'>]>;
9752
+ export declare enum ClaimDeferredReason_Tags {
9753
+ MaxFeeExceeded = "MaxFeeExceeded",
9754
+ NoEarlyClaimAvailable = "NoEarlyClaimAvailable",
9755
+ ProviderDeclined = "ProviderDeclined"
9756
+ }
9757
+ /**
9758
+ * Why a claim was deferred rather than made.
9759
+ */
9760
+ export declare const ClaimDeferredReason: Readonly<{
9761
+ instanceOf: (obj: any) => obj is ClaimDeferredReason;
9762
+ MaxFeeExceeded: {
9763
+ new (inner: {
9764
+ /**
9765
+ * What the provider asked to credit the deposit early.
9766
+ */ requiredFeeSats: bigint;
9767
+ /**
9768
+ * The ceiling it was held to.
9769
+ */ maxFeeSats: bigint;
9770
+ }): {
9771
+ readonly tag: ClaimDeferredReason_Tags.MaxFeeExceeded;
9772
+ readonly inner: Readonly<{
9773
+ requiredFeeSats: bigint;
9774
+ maxFeeSats: bigint;
9775
+ }>;
9776
+ /**
9777
+ * @private
9778
+ * This field is private and should not be used, use `tag` instead.
9779
+ */
9780
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9781
+ };
9782
+ "new"(inner: {
9783
+ /**
9784
+ * What the provider asked to credit the deposit early.
9785
+ */ requiredFeeSats: bigint;
9786
+ /**
9787
+ * The ceiling it was held to.
9788
+ */ maxFeeSats: bigint;
9789
+ }): {
9790
+ readonly tag: ClaimDeferredReason_Tags.MaxFeeExceeded;
9791
+ readonly inner: Readonly<{
9792
+ requiredFeeSats: bigint;
9793
+ maxFeeSats: bigint;
9794
+ }>;
9795
+ /**
9796
+ * @private
9797
+ * This field is private and should not be used, use `tag` instead.
9798
+ */
9799
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9800
+ };
9801
+ instanceOf(obj: any): obj is {
9802
+ readonly tag: ClaimDeferredReason_Tags.MaxFeeExceeded;
9803
+ readonly inner: Readonly<{
9804
+ requiredFeeSats: bigint;
9805
+ maxFeeSats: bigint;
9806
+ }>;
9807
+ /**
9808
+ * @private
9809
+ * This field is private and should not be used, use `tag` instead.
9810
+ */
9811
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9812
+ };
9813
+ };
9814
+ NoEarlyClaimAvailable: {
9815
+ new (): {
9816
+ readonly tag: ClaimDeferredReason_Tags.NoEarlyClaimAvailable;
9817
+ /**
9818
+ * @private
9819
+ * This field is private and should not be used, use `tag` instead.
9820
+ */
9821
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9822
+ };
9823
+ "new"(): {
9824
+ readonly tag: ClaimDeferredReason_Tags.NoEarlyClaimAvailable;
9825
+ /**
9826
+ * @private
9827
+ * This field is private and should not be used, use `tag` instead.
9828
+ */
9829
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9830
+ };
9831
+ instanceOf(obj: any): obj is {
9832
+ readonly tag: ClaimDeferredReason_Tags.NoEarlyClaimAvailable;
9833
+ /**
9834
+ * @private
9835
+ * This field is private and should not be used, use `tag` instead.
9836
+ */
9837
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9838
+ };
9839
+ };
9840
+ ProviderDeclined: {
9841
+ new (inner: {
9842
+ message: string;
9843
+ }): {
9844
+ readonly tag: ClaimDeferredReason_Tags.ProviderDeclined;
9845
+ readonly inner: Readonly<{
9846
+ message: string;
9847
+ }>;
9848
+ /**
9849
+ * @private
9850
+ * This field is private and should not be used, use `tag` instead.
9851
+ */
9852
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9853
+ };
9854
+ "new"(inner: {
9855
+ message: string;
9856
+ }): {
9857
+ readonly tag: ClaimDeferredReason_Tags.ProviderDeclined;
9858
+ readonly inner: Readonly<{
9859
+ message: string;
9860
+ }>;
9861
+ /**
9862
+ * @private
9863
+ * This field is private and should not be used, use `tag` instead.
9864
+ */
9865
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9866
+ };
9867
+ instanceOf(obj: any): obj is {
9868
+ readonly tag: ClaimDeferredReason_Tags.ProviderDeclined;
9869
+ readonly inner: Readonly<{
9870
+ message: string;
9871
+ }>;
9872
+ /**
9873
+ * @private
9874
+ * This field is private and should not be used, use `tag` instead.
9875
+ */
9876
+ readonly [uniffiTypeNameSymbol]: "ClaimDeferredReason";
9877
+ };
9878
+ };
9879
+ }>;
9880
+ /**
9881
+ * Why a claim was deferred rather than made.
9882
+ */
9883
+ export type ClaimDeferredReason = InstanceType<(typeof ClaimDeferredReason)[keyof Omit<typeof ClaimDeferredReason, 'instanceOf'>]>;
9884
+ export declare enum ClaimDepositOutcome_Tags {
9885
+ Settled = "Settled",
9886
+ Submitted = "Submitted",
9887
+ Deferred = "Deferred"
9888
+ }
9889
+ /**
9890
+ * What became of a claim.
9891
+ */
9892
+ export declare const ClaimDepositOutcome: Readonly<{
9893
+ instanceOf: (obj: any) => obj is ClaimDepositOutcome;
9894
+ Settled: {
9895
+ new (inner: {
9896
+ payment: Payment;
9897
+ }): {
9898
+ readonly tag: ClaimDepositOutcome_Tags.Settled;
9899
+ readonly inner: Readonly<{
9900
+ payment: Payment;
9901
+ }>;
9902
+ /**
9903
+ * @private
9904
+ * This field is private and should not be used, use `tag` instead.
9905
+ */
9906
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9907
+ };
9908
+ "new"(inner: {
9909
+ payment: Payment;
9910
+ }): {
9911
+ readonly tag: ClaimDepositOutcome_Tags.Settled;
9912
+ readonly inner: Readonly<{
9913
+ payment: Payment;
9914
+ }>;
9915
+ /**
9916
+ * @private
9917
+ * This field is private and should not be used, use `tag` instead.
9918
+ */
9919
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9920
+ };
9921
+ instanceOf(obj: any): obj is {
9922
+ readonly tag: ClaimDepositOutcome_Tags.Settled;
9923
+ readonly inner: Readonly<{
9924
+ payment: Payment;
9925
+ }>;
9926
+ /**
9927
+ * @private
9928
+ * This field is private and should not be used, use `tag` instead.
9929
+ */
9930
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9931
+ };
9932
+ };
9933
+ Submitted: {
9934
+ new (): {
9935
+ readonly tag: ClaimDepositOutcome_Tags.Submitted;
9936
+ /**
9937
+ * @private
9938
+ * This field is private and should not be used, use `tag` instead.
9939
+ */
9940
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9941
+ };
9942
+ "new"(): {
9943
+ readonly tag: ClaimDepositOutcome_Tags.Submitted;
9944
+ /**
9945
+ * @private
9946
+ * This field is private and should not be used, use `tag` instead.
9947
+ */
9948
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9949
+ };
9950
+ instanceOf(obj: any): obj is {
9951
+ readonly tag: ClaimDepositOutcome_Tags.Submitted;
9952
+ /**
9953
+ * @private
9954
+ * This field is private and should not be used, use `tag` instead.
9955
+ */
9956
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9957
+ };
9958
+ };
9959
+ Deferred: {
9960
+ new (inner: {
9961
+ reason: ClaimDeferredReason;
9962
+ }): {
9963
+ readonly tag: ClaimDepositOutcome_Tags.Deferred;
9964
+ readonly inner: Readonly<{
9965
+ reason: ClaimDeferredReason;
9966
+ }>;
9967
+ /**
9968
+ * @private
9969
+ * This field is private and should not be used, use `tag` instead.
9970
+ */
9971
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9972
+ };
9973
+ "new"(inner: {
9974
+ reason: ClaimDeferredReason;
9975
+ }): {
9976
+ readonly tag: ClaimDepositOutcome_Tags.Deferred;
9977
+ readonly inner: Readonly<{
9978
+ reason: ClaimDeferredReason;
9979
+ }>;
9980
+ /**
9981
+ * @private
9982
+ * This field is private and should not be used, use `tag` instead.
9983
+ */
9984
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9985
+ };
9986
+ instanceOf(obj: any): obj is {
9987
+ readonly tag: ClaimDepositOutcome_Tags.Deferred;
9988
+ readonly inner: Readonly<{
9989
+ reason: ClaimDeferredReason;
9990
+ }>;
9991
+ /**
9992
+ * @private
9993
+ * This field is private and should not be used, use `tag` instead.
9994
+ */
9995
+ readonly [uniffiTypeNameSymbol]: "ClaimDepositOutcome";
9996
+ };
9997
+ };
9998
+ }>;
9999
+ /**
10000
+ * What became of a claim.
10001
+ */
10002
+ export type ClaimDepositOutcome = InstanceType<(typeof ClaimDepositOutcome)[keyof Omit<typeof ClaimDepositOutcome, 'instanceOf'>]>;
9496
10003
  export declare enum ConversionChain_Tags {
9497
10004
  Spark = "Spark",
9498
10005
  Lightning = "Lightning",
@@ -9812,6 +10319,10 @@ export declare const ConversionInfo: Readonly<{
9812
10319
  /**
9813
10320
  * Asset the service fee is denominated in. Unset means BTC sats.
9814
10321
  */ serviceFeeAsset: string | undefined;
10322
+ /**
10323
+ * Decimals of `service_fee_asset`, for formatting `service_fee_amount`.
10324
+ * Unset when the fee is in sats or the provider did not report them.
10325
+ */ serviceFeeAssetDecimals: /*u32*/ number | undefined;
9815
10326
  /**
9816
10327
  * Asset decimals (e.g. 6 for USDC).
9817
10328
  */ assetDecimals: number;
@@ -9837,6 +10348,7 @@ export declare const ConversionInfo: Readonly<{
9837
10348
  feeAmount: U128 | undefined;
9838
10349
  serviceFeeAmount: U128 | undefined;
9839
10350
  serviceFeeAsset: string | undefined;
10351
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
9840
10352
  assetDecimals: number;
9841
10353
  assetContract: string | undefined;
9842
10354
  }>;
@@ -9903,6 +10415,10 @@ export declare const ConversionInfo: Readonly<{
9903
10415
  /**
9904
10416
  * Asset the service fee is denominated in. Unset means BTC sats.
9905
10417
  */ serviceFeeAsset: string | undefined;
10418
+ /**
10419
+ * Decimals of `service_fee_asset`, for formatting `service_fee_amount`.
10420
+ * Unset when the fee is in sats or the provider did not report them.
10421
+ */ serviceFeeAssetDecimals: /*u32*/ number | undefined;
9906
10422
  /**
9907
10423
  * Asset decimals (e.g. 6 for USDC).
9908
10424
  */ assetDecimals: number;
@@ -9928,6 +10444,7 @@ export declare const ConversionInfo: Readonly<{
9928
10444
  feeAmount: U128 | undefined;
9929
10445
  serviceFeeAmount: U128 | undefined;
9930
10446
  serviceFeeAsset: string | undefined;
10447
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
9931
10448
  assetDecimals: number;
9932
10449
  assetContract: string | undefined;
9933
10450
  }>;
@@ -9955,6 +10472,7 @@ export declare const ConversionInfo: Readonly<{
9955
10472
  feeAmount: U128 | undefined;
9956
10473
  serviceFeeAmount: U128 | undefined;
9957
10474
  serviceFeeAsset: string | undefined;
10475
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
9958
10476
  assetDecimals: number;
9959
10477
  assetContract: string | undefined;
9960
10478
  }>;
@@ -12466,7 +12984,8 @@ export declare const InputType: Readonly<{
12466
12984
  export type InputType = InstanceType<(typeof InputType)[keyof Omit<typeof InputType, 'instanceOf'>]>;
12467
12985
  export declare enum InstantClaimStatus_Tags {
12468
12986
  Declined = "Declined",
12469
- Submitted = "Submitted"
12987
+ Submitted = "Submitted",
12988
+ Claimed = "Claimed"
12470
12989
  }
12471
12990
  /**
12472
12991
  * State of an instant claim attempt on a deposit.
@@ -12556,6 +13075,32 @@ export declare const InstantClaimStatus: Readonly<{
12556
13075
  readonly [uniffiTypeNameSymbol]: "InstantClaimStatus";
12557
13076
  };
12558
13077
  };
13078
+ Claimed: {
13079
+ new (): {
13080
+ readonly tag: InstantClaimStatus_Tags.Claimed;
13081
+ /**
13082
+ * @private
13083
+ * This field is private and should not be used, use `tag` instead.
13084
+ */
13085
+ readonly [uniffiTypeNameSymbol]: "InstantClaimStatus";
13086
+ };
13087
+ "new"(): {
13088
+ readonly tag: InstantClaimStatus_Tags.Claimed;
13089
+ /**
13090
+ * @private
13091
+ * This field is private and should not be used, use `tag` instead.
13092
+ */
13093
+ readonly [uniffiTypeNameSymbol]: "InstantClaimStatus";
13094
+ };
13095
+ instanceOf(obj: any): obj is {
13096
+ readonly tag: InstantClaimStatus_Tags.Claimed;
13097
+ /**
13098
+ * @private
13099
+ * This field is private and should not be used, use `tag` instead.
13100
+ */
13101
+ readonly [uniffiTypeNameSymbol]: "InstantClaimStatus";
13102
+ };
13103
+ };
12559
13104
  }>;
12560
13105
  /**
12561
13106
  * State of an instant claim attempt on a deposit.
@@ -12768,7 +13313,8 @@ export declare const MaxFee: Readonly<{
12768
13313
  export type MaxFee = InstanceType<(typeof MaxFee)[keyof Omit<typeof MaxFee, 'instanceOf'>]>;
12769
13314
  export declare enum Network {
12770
13315
  Mainnet = 0,
12771
- Regtest = 1
13316
+ Regtest = 1,
13317
+ Signet = 2
12772
13318
  }
12773
13319
  export declare enum OnchainConfirmationSpeed {
12774
13320
  Fast = 0,
@@ -16249,6 +16795,8 @@ export declare enum SdkError_Tags {
16249
16795
  InsufficientFunds = "InsufficientFunds",
16250
16796
  InvalidUuid = "InvalidUuid",
16251
16797
  InvalidInput = "InvalidInput",
16798
+ CrossChainAmountOutOfRange = "CrossChainAmountOutOfRange",
16799
+ CrossChainRouteUnavailable = "CrossChainRouteUnavailable",
16252
16800
  NetworkError = "NetworkError",
16253
16801
  StorageError = "StorageError",
16254
16802
  ChainServiceError = "ChainServiceError",
@@ -16424,18 +16972,178 @@ export declare const SdkError: Readonly<{
16424
16972
  message: string;
16425
16973
  stack?: string;
16426
16974
  cause?: unknown;
16427
- }): Readonly<{
16428
- tokenIdentifier: string | undefined;
16429
- }>;
16975
+ }): Readonly<{
16976
+ tokenIdentifier: string | undefined;
16977
+ }>;
16978
+ isError(error: unknown): error is Error;
16979
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
16980
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
16981
+ stackTraceLimit: number;
16982
+ };
16983
+ InvalidUuid: {
16984
+ new (v0: string): {
16985
+ readonly tag: SdkError_Tags.InvalidUuid;
16986
+ readonly inner: Readonly<[string]>;
16987
+ /**
16988
+ * @private
16989
+ * This field is private and should not be used, use `tag` instead.
16990
+ */
16991
+ readonly [uniffiTypeNameSymbol]: "SdkError";
16992
+ name: string;
16993
+ message: string;
16994
+ stack?: string;
16995
+ cause?: unknown;
16996
+ };
16997
+ "new"(v0: string): {
16998
+ readonly tag: SdkError_Tags.InvalidUuid;
16999
+ readonly inner: Readonly<[string]>;
17000
+ /**
17001
+ * @private
17002
+ * This field is private and should not be used, use `tag` instead.
17003
+ */
17004
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17005
+ name: string;
17006
+ message: string;
17007
+ stack?: string;
17008
+ cause?: unknown;
17009
+ };
17010
+ instanceOf(obj: any): obj is {
17011
+ readonly tag: SdkError_Tags.InvalidUuid;
17012
+ readonly inner: Readonly<[string]>;
17013
+ /**
17014
+ * @private
17015
+ * This field is private and should not be used, use `tag` instead.
17016
+ */
17017
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17018
+ name: string;
17019
+ message: string;
17020
+ stack?: string;
17021
+ cause?: unknown;
17022
+ };
17023
+ hasInner(obj: any): obj is {
17024
+ readonly tag: SdkError_Tags.InvalidUuid;
17025
+ readonly inner: Readonly<[string]>;
17026
+ /**
17027
+ * @private
17028
+ * This field is private and should not be used, use `tag` instead.
17029
+ */
17030
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17031
+ name: string;
17032
+ message: string;
17033
+ stack?: string;
17034
+ cause?: unknown;
17035
+ };
17036
+ getInner(obj: {
17037
+ readonly tag: SdkError_Tags.InvalidUuid;
17038
+ readonly inner: Readonly<[string]>;
17039
+ /**
17040
+ * @private
17041
+ * This field is private and should not be used, use `tag` instead.
17042
+ */
17043
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17044
+ name: string;
17045
+ message: string;
17046
+ stack?: string;
17047
+ cause?: unknown;
17048
+ }): Readonly<[string]>;
17049
+ isError(error: unknown): error is Error;
17050
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
17051
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
17052
+ stackTraceLimit: number;
17053
+ };
17054
+ InvalidInput: {
17055
+ new (v0: string): {
17056
+ readonly tag: SdkError_Tags.InvalidInput;
17057
+ readonly inner: Readonly<[string]>;
17058
+ /**
17059
+ * @private
17060
+ * This field is private and should not be used, use `tag` instead.
17061
+ */
17062
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17063
+ name: string;
17064
+ message: string;
17065
+ stack?: string;
17066
+ cause?: unknown;
17067
+ };
17068
+ "new"(v0: string): {
17069
+ readonly tag: SdkError_Tags.InvalidInput;
17070
+ readonly inner: Readonly<[string]>;
17071
+ /**
17072
+ * @private
17073
+ * This field is private and should not be used, use `tag` instead.
17074
+ */
17075
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17076
+ name: string;
17077
+ message: string;
17078
+ stack?: string;
17079
+ cause?: unknown;
17080
+ };
17081
+ instanceOf(obj: any): obj is {
17082
+ readonly tag: SdkError_Tags.InvalidInput;
17083
+ readonly inner: Readonly<[string]>;
17084
+ /**
17085
+ * @private
17086
+ * This field is private and should not be used, use `tag` instead.
17087
+ */
17088
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17089
+ name: string;
17090
+ message: string;
17091
+ stack?: string;
17092
+ cause?: unknown;
17093
+ };
17094
+ hasInner(obj: any): obj is {
17095
+ readonly tag: SdkError_Tags.InvalidInput;
17096
+ readonly inner: Readonly<[string]>;
17097
+ /**
17098
+ * @private
17099
+ * This field is private and should not be used, use `tag` instead.
17100
+ */
17101
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17102
+ name: string;
17103
+ message: string;
17104
+ stack?: string;
17105
+ cause?: unknown;
17106
+ };
17107
+ getInner(obj: {
17108
+ readonly tag: SdkError_Tags.InvalidInput;
17109
+ readonly inner: Readonly<[string]>;
17110
+ /**
17111
+ * @private
17112
+ * This field is private and should not be used, use `tag` instead.
17113
+ */
17114
+ readonly [uniffiTypeNameSymbol]: "SdkError";
17115
+ name: string;
17116
+ message: string;
17117
+ stack?: string;
17118
+ cause?: unknown;
17119
+ }): Readonly<[string]>;
16430
17120
  isError(error: unknown): error is Error;
16431
17121
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
16432
17122
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
16433
17123
  stackTraceLimit: number;
16434
17124
  };
16435
- InvalidUuid: {
16436
- new (v0: string): {
16437
- readonly tag: SdkError_Tags.InvalidUuid;
16438
- readonly inner: Readonly<[string]>;
17125
+ CrossChainAmountOutOfRange: {
17126
+ new (inner: {
17127
+ reason: string;
17128
+ /**
17129
+ * `true` for a rejection below the minimum, `false` for one above the
17130
+ * maximum or beyond available liquidity.
17131
+ */ tooSmall: boolean;
17132
+ /**
17133
+ * The published bound in the base units of the asset paid in: the
17134
+ * Spark-side asset on a send, the external asset on a receive.
17135
+ */ boundAmount: U128 | undefined;
17136
+ /**
17137
+ * The published bound as an order value in USD cents.
17138
+ */ boundUsdCents: /*u64*/ bigint | undefined;
17139
+ }): {
17140
+ readonly tag: SdkError_Tags.CrossChainAmountOutOfRange;
17141
+ readonly inner: Readonly<{
17142
+ reason: string;
17143
+ tooSmall: boolean;
17144
+ boundAmount: U128 | undefined;
17145
+ boundUsdCents: /*u64*/ bigint | undefined;
17146
+ }>;
16439
17147
  /**
16440
17148
  * @private
16441
17149
  * This field is private and should not be used, use `tag` instead.
@@ -16446,9 +17154,27 @@ export declare const SdkError: Readonly<{
16446
17154
  stack?: string;
16447
17155
  cause?: unknown;
16448
17156
  };
16449
- "new"(v0: string): {
16450
- readonly tag: SdkError_Tags.InvalidUuid;
16451
- readonly inner: Readonly<[string]>;
17157
+ "new"(inner: {
17158
+ reason: string;
17159
+ /**
17160
+ * `true` for a rejection below the minimum, `false` for one above the
17161
+ * maximum or beyond available liquidity.
17162
+ */ tooSmall: boolean;
17163
+ /**
17164
+ * The published bound in the base units of the asset paid in: the
17165
+ * Spark-side asset on a send, the external asset on a receive.
17166
+ */ boundAmount: U128 | undefined;
17167
+ /**
17168
+ * The published bound as an order value in USD cents.
17169
+ */ boundUsdCents: /*u64*/ bigint | undefined;
17170
+ }): {
17171
+ readonly tag: SdkError_Tags.CrossChainAmountOutOfRange;
17172
+ readonly inner: Readonly<{
17173
+ reason: string;
17174
+ tooSmall: boolean;
17175
+ boundAmount: U128 | undefined;
17176
+ boundUsdCents: /*u64*/ bigint | undefined;
17177
+ }>;
16452
17178
  /**
16453
17179
  * @private
16454
17180
  * This field is private and should not be used, use `tag` instead.
@@ -16460,8 +17186,13 @@ export declare const SdkError: Readonly<{
16460
17186
  cause?: unknown;
16461
17187
  };
16462
17188
  instanceOf(obj: any): obj is {
16463
- readonly tag: SdkError_Tags.InvalidUuid;
16464
- readonly inner: Readonly<[string]>;
17189
+ readonly tag: SdkError_Tags.CrossChainAmountOutOfRange;
17190
+ readonly inner: Readonly<{
17191
+ reason: string;
17192
+ tooSmall: boolean;
17193
+ boundAmount: U128 | undefined;
17194
+ boundUsdCents: /*u64*/ bigint | undefined;
17195
+ }>;
16465
17196
  /**
16466
17197
  * @private
16467
17198
  * This field is private and should not be used, use `tag` instead.
@@ -16473,8 +17204,13 @@ export declare const SdkError: Readonly<{
16473
17204
  cause?: unknown;
16474
17205
  };
16475
17206
  hasInner(obj: any): obj is {
16476
- readonly tag: SdkError_Tags.InvalidUuid;
16477
- readonly inner: Readonly<[string]>;
17207
+ readonly tag: SdkError_Tags.CrossChainAmountOutOfRange;
17208
+ readonly inner: Readonly<{
17209
+ reason: string;
17210
+ tooSmall: boolean;
17211
+ boundAmount: U128 | undefined;
17212
+ boundUsdCents: /*u64*/ bigint | undefined;
17213
+ }>;
16478
17214
  /**
16479
17215
  * @private
16480
17216
  * This field is private and should not be used, use `tag` instead.
@@ -16486,8 +17222,13 @@ export declare const SdkError: Readonly<{
16486
17222
  cause?: unknown;
16487
17223
  };
16488
17224
  getInner(obj: {
16489
- readonly tag: SdkError_Tags.InvalidUuid;
16490
- readonly inner: Readonly<[string]>;
17225
+ readonly tag: SdkError_Tags.CrossChainAmountOutOfRange;
17226
+ readonly inner: Readonly<{
17227
+ reason: string;
17228
+ tooSmall: boolean;
17229
+ boundAmount: U128 | undefined;
17230
+ boundUsdCents: /*u64*/ bigint | undefined;
17231
+ }>;
16491
17232
  /**
16492
17233
  * @private
16493
17234
  * This field is private and should not be used, use `tag` instead.
@@ -16497,16 +17238,30 @@ export declare const SdkError: Readonly<{
16497
17238
  message: string;
16498
17239
  stack?: string;
16499
17240
  cause?: unknown;
16500
- }): Readonly<[string]>;
17241
+ }): Readonly<{
17242
+ reason: string;
17243
+ tooSmall: boolean;
17244
+ boundAmount: U128 | undefined;
17245
+ boundUsdCents: /*u64*/ bigint | undefined;
17246
+ }>;
16501
17247
  isError(error: unknown): error is Error;
16502
17248
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
16503
17249
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
16504
17250
  stackTraceLimit: number;
16505
17251
  };
16506
- InvalidInput: {
16507
- new (v0: string): {
16508
- readonly tag: SdkError_Tags.InvalidInput;
16509
- readonly inner: Readonly<[string]>;
17252
+ CrossChainRouteUnavailable: {
17253
+ new (inner: {
17254
+ reason: string;
17255
+ /**
17256
+ * `true` when the provider expects the route back shortly, so the
17257
+ * same request can succeed later. Otherwise try another route.
17258
+ */ temporary: boolean;
17259
+ }): {
17260
+ readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
17261
+ readonly inner: Readonly<{
17262
+ reason: string;
17263
+ temporary: boolean;
17264
+ }>;
16510
17265
  /**
16511
17266
  * @private
16512
17267
  * This field is private and should not be used, use `tag` instead.
@@ -16517,9 +17272,18 @@ export declare const SdkError: Readonly<{
16517
17272
  stack?: string;
16518
17273
  cause?: unknown;
16519
17274
  };
16520
- "new"(v0: string): {
16521
- readonly tag: SdkError_Tags.InvalidInput;
16522
- readonly inner: Readonly<[string]>;
17275
+ "new"(inner: {
17276
+ reason: string;
17277
+ /**
17278
+ * `true` when the provider expects the route back shortly, so the
17279
+ * same request can succeed later. Otherwise try another route.
17280
+ */ temporary: boolean;
17281
+ }): {
17282
+ readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
17283
+ readonly inner: Readonly<{
17284
+ reason: string;
17285
+ temporary: boolean;
17286
+ }>;
16523
17287
  /**
16524
17288
  * @private
16525
17289
  * This field is private and should not be used, use `tag` instead.
@@ -16531,8 +17295,11 @@ export declare const SdkError: Readonly<{
16531
17295
  cause?: unknown;
16532
17296
  };
16533
17297
  instanceOf(obj: any): obj is {
16534
- readonly tag: SdkError_Tags.InvalidInput;
16535
- readonly inner: Readonly<[string]>;
17298
+ readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
17299
+ readonly inner: Readonly<{
17300
+ reason: string;
17301
+ temporary: boolean;
17302
+ }>;
16536
17303
  /**
16537
17304
  * @private
16538
17305
  * This field is private and should not be used, use `tag` instead.
@@ -16544,8 +17311,11 @@ export declare const SdkError: Readonly<{
16544
17311
  cause?: unknown;
16545
17312
  };
16546
17313
  hasInner(obj: any): obj is {
16547
- readonly tag: SdkError_Tags.InvalidInput;
16548
- readonly inner: Readonly<[string]>;
17314
+ readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
17315
+ readonly inner: Readonly<{
17316
+ reason: string;
17317
+ temporary: boolean;
17318
+ }>;
16549
17319
  /**
16550
17320
  * @private
16551
17321
  * This field is private and should not be used, use `tag` instead.
@@ -16557,8 +17327,11 @@ export declare const SdkError: Readonly<{
16557
17327
  cause?: unknown;
16558
17328
  };
16559
17329
  getInner(obj: {
16560
- readonly tag: SdkError_Tags.InvalidInput;
16561
- readonly inner: Readonly<[string]>;
17330
+ readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
17331
+ readonly inner: Readonly<{
17332
+ reason: string;
17333
+ temporary: boolean;
17334
+ }>;
16562
17335
  /**
16563
17336
  * @private
16564
17337
  * This field is private and should not be used, use `tag` instead.
@@ -16568,7 +17341,10 @@ export declare const SdkError: Readonly<{
16568
17341
  message: string;
16569
17342
  stack?: string;
16570
17343
  cause?: unknown;
16571
- }): Readonly<[string]>;
17344
+ }): Readonly<{
17345
+ reason: string;
17346
+ temporary: boolean;
17347
+ }>;
16572
17348
  isError(error: unknown): error is Error;
16573
17349
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
16574
17350
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -17611,6 +18387,7 @@ export declare enum SdkEvent_Tags {
17611
18387
  PaymentSucceeded = "PaymentSucceeded",
17612
18388
  PaymentPending = "PaymentPending",
17613
18389
  PaymentFailed = "PaymentFailed",
18390
+ PaymentMetadataUpdated = "PaymentMetadataUpdated",
17614
18391
  AutoOptimization = "AutoOptimization",
17615
18392
  LightningAddressChanged = "LightningAddressChanged",
17616
18393
  NewDeposits = "NewDeposits",
@@ -17842,6 +18619,45 @@ export declare const SdkEvent: Readonly<{
17842
18619
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
17843
18620
  };
17844
18621
  };
18622
+ PaymentMetadataUpdated: {
18623
+ new (inner: {
18624
+ payment: Payment;
18625
+ }): {
18626
+ readonly tag: SdkEvent_Tags.PaymentMetadataUpdated;
18627
+ readonly inner: Readonly<{
18628
+ payment: Payment;
18629
+ }>;
18630
+ /**
18631
+ * @private
18632
+ * This field is private and should not be used, use `tag` instead.
18633
+ */
18634
+ readonly [uniffiTypeNameSymbol]: "SdkEvent";
18635
+ };
18636
+ "new"(inner: {
18637
+ payment: Payment;
18638
+ }): {
18639
+ readonly tag: SdkEvent_Tags.PaymentMetadataUpdated;
18640
+ readonly inner: Readonly<{
18641
+ payment: Payment;
18642
+ }>;
18643
+ /**
18644
+ * @private
18645
+ * This field is private and should not be used, use `tag` instead.
18646
+ */
18647
+ readonly [uniffiTypeNameSymbol]: "SdkEvent";
18648
+ };
18649
+ instanceOf(obj: any): obj is {
18650
+ readonly tag: SdkEvent_Tags.PaymentMetadataUpdated;
18651
+ readonly inner: Readonly<{
18652
+ payment: Payment;
18653
+ }>;
18654
+ /**
18655
+ * @private
18656
+ * This field is private and should not be used, use `tag` instead.
18657
+ */
18658
+ readonly [uniffiTypeNameSymbol]: "SdkEvent";
18659
+ };
18660
+ };
17845
18661
  AutoOptimization: {
17846
18662
  new (inner: {
17847
18663
  optimizationEvent: AutoOptimizationEvent;
@@ -18346,6 +19162,10 @@ export declare const SendPaymentMethod: Readonly<{
18346
19162
  /**
18347
19163
  * Asset which service fee is denominated in. Unset means BTC sats.
18348
19164
  */ serviceFeeAsset: string | undefined;
19165
+ /**
19166
+ * Decimals of `service_fee_asset`, for formatting `service_fee_amount`.
19167
+ * Unset when the fee is in sats or the provider did not report them.
19168
+ */ serviceFeeAssetDecimals: /*u32*/ number | undefined;
18349
19169
  /**
18350
19170
  * Sats budget for moving the amount in from the wallet to the provider.
18351
19171
  */ sourceTransferFeeSats: bigint;
@@ -18370,6 +19190,7 @@ export declare const SendPaymentMethod: Readonly<{
18370
19190
  feeAmount: U128;
18371
19191
  serviceFeeAmount: U128;
18372
19192
  serviceFeeAsset: string | undefined;
19193
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
18373
19194
  sourceTransferFeeSats: bigint;
18374
19195
  feeMode: CrossChainFeeMode;
18375
19196
  expiresAt: string;
@@ -18415,6 +19236,10 @@ export declare const SendPaymentMethod: Readonly<{
18415
19236
  /**
18416
19237
  * Asset which service fee is denominated in. Unset means BTC sats.
18417
19238
  */ serviceFeeAsset: string | undefined;
19239
+ /**
19240
+ * Decimals of `service_fee_asset`, for formatting `service_fee_amount`.
19241
+ * Unset when the fee is in sats or the provider did not report them.
19242
+ */ serviceFeeAssetDecimals: /*u32*/ number | undefined;
18418
19243
  /**
18419
19244
  * Sats budget for moving the amount in from the wallet to the provider.
18420
19245
  */ sourceTransferFeeSats: bigint;
@@ -18439,6 +19264,7 @@ export declare const SendPaymentMethod: Readonly<{
18439
19264
  feeAmount: U128;
18440
19265
  serviceFeeAmount: U128;
18441
19266
  serviceFeeAsset: string | undefined;
19267
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
18442
19268
  sourceTransferFeeSats: bigint;
18443
19269
  feeMode: CrossChainFeeMode;
18444
19270
  expiresAt: string;
@@ -18461,6 +19287,7 @@ export declare const SendPaymentMethod: Readonly<{
18461
19287
  feeAmount: U128;
18462
19288
  serviceFeeAmount: U128;
18463
19289
  serviceFeeAsset: string | undefined;
19290
+ serviceFeeAssetDecimals: /*u32*/ number | undefined;
18464
19291
  sourceTransferFeeSats: bigint;
18465
19292
  feeMode: CrossChainFeeMode;
18466
19293
  expiresAt: string;
@@ -21820,7 +22647,8 @@ export declare enum UpdateDepositPayload_Tags {
21820
22647
  ClaimError = "ClaimError",
21821
22648
  Refund = "Refund",
21822
22649
  InstantClaim = "InstantClaim",
21823
- RefundBroadcastState = "RefundBroadcastState"
22650
+ RefundBroadcastState = "RefundBroadcastState",
22651
+ MaxClaimFee = "MaxClaimFee"
21824
22652
  }
21825
22653
  export declare const UpdateDepositPayload: Readonly<{
21826
22654
  instanceOf: (obj: any) => obj is UpdateDepositPayload;
@@ -21995,8 +22823,160 @@ export declare const UpdateDepositPayload: Readonly<{
21995
22823
  readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
21996
22824
  };
21997
22825
  };
22826
+ MaxClaimFee: {
22827
+ new (inner: {
22828
+ maxFee: MaxFee | undefined;
22829
+ }): {
22830
+ readonly tag: UpdateDepositPayload_Tags.MaxClaimFee;
22831
+ readonly inner: Readonly<{
22832
+ maxFee: MaxFee | undefined;
22833
+ }>;
22834
+ /**
22835
+ * @private
22836
+ * This field is private and should not be used, use `tag` instead.
22837
+ */
22838
+ readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
22839
+ };
22840
+ "new"(inner: {
22841
+ maxFee: MaxFee | undefined;
22842
+ }): {
22843
+ readonly tag: UpdateDepositPayload_Tags.MaxClaimFee;
22844
+ readonly inner: Readonly<{
22845
+ maxFee: MaxFee | undefined;
22846
+ }>;
22847
+ /**
22848
+ * @private
22849
+ * This field is private and should not be used, use `tag` instead.
22850
+ */
22851
+ readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
22852
+ };
22853
+ instanceOf(obj: any): obj is {
22854
+ readonly tag: UpdateDepositPayload_Tags.MaxClaimFee;
22855
+ readonly inner: Readonly<{
22856
+ maxFee: MaxFee | undefined;
22857
+ }>;
22858
+ /**
22859
+ * @private
22860
+ * This field is private and should not be used, use `tag` instead.
22861
+ */
22862
+ readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
22863
+ };
22864
+ };
21998
22865
  }>;
21999
22866
  export type UpdateDepositPayload = InstanceType<(typeof UpdateDepositPayload)[keyof Omit<typeof UpdateDepositPayload, 'instanceOf'>]>;
22867
+ export declare enum UpdateWatchedAddressPayload_Tags {
22868
+ Watch = "Watch",
22869
+ Seen = "Seen",
22870
+ Unwatch = "Unwatch"
22871
+ }
22872
+ export declare const UpdateWatchedAddressPayload: Readonly<{
22873
+ instanceOf: (obj: any) => obj is UpdateWatchedAddressPayload;
22874
+ Watch: {
22875
+ new (inner: {
22876
+ issuedAt: bigint;
22877
+ }): {
22878
+ readonly tag: UpdateWatchedAddressPayload_Tags.Watch;
22879
+ readonly inner: Readonly<{
22880
+ issuedAt: bigint;
22881
+ }>;
22882
+ /**
22883
+ * @private
22884
+ * This field is private and should not be used, use `tag` instead.
22885
+ */
22886
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22887
+ };
22888
+ "new"(inner: {
22889
+ issuedAt: bigint;
22890
+ }): {
22891
+ readonly tag: UpdateWatchedAddressPayload_Tags.Watch;
22892
+ readonly inner: Readonly<{
22893
+ issuedAt: bigint;
22894
+ }>;
22895
+ /**
22896
+ * @private
22897
+ * This field is private and should not be used, use `tag` instead.
22898
+ */
22899
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22900
+ };
22901
+ instanceOf(obj: any): obj is {
22902
+ readonly tag: UpdateWatchedAddressPayload_Tags.Watch;
22903
+ readonly inner: Readonly<{
22904
+ issuedAt: bigint;
22905
+ }>;
22906
+ /**
22907
+ * @private
22908
+ * This field is private and should not be used, use `tag` instead.
22909
+ */
22910
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22911
+ };
22912
+ };
22913
+ Seen: {
22914
+ new (): {
22915
+ readonly tag: UpdateWatchedAddressPayload_Tags.Seen;
22916
+ /**
22917
+ * @private
22918
+ * This field is private and should not be used, use `tag` instead.
22919
+ */
22920
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22921
+ };
22922
+ "new"(): {
22923
+ readonly tag: UpdateWatchedAddressPayload_Tags.Seen;
22924
+ /**
22925
+ * @private
22926
+ * This field is private and should not be used, use `tag` instead.
22927
+ */
22928
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22929
+ };
22930
+ instanceOf(obj: any): obj is {
22931
+ readonly tag: UpdateWatchedAddressPayload_Tags.Seen;
22932
+ /**
22933
+ * @private
22934
+ * This field is private and should not be used, use `tag` instead.
22935
+ */
22936
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22937
+ };
22938
+ };
22939
+ Unwatch: {
22940
+ new (inner: {
22941
+ issuedAt: bigint;
22942
+ }): {
22943
+ readonly tag: UpdateWatchedAddressPayload_Tags.Unwatch;
22944
+ readonly inner: Readonly<{
22945
+ issuedAt: bigint;
22946
+ }>;
22947
+ /**
22948
+ * @private
22949
+ * This field is private and should not be used, use `tag` instead.
22950
+ */
22951
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22952
+ };
22953
+ "new"(inner: {
22954
+ issuedAt: bigint;
22955
+ }): {
22956
+ readonly tag: UpdateWatchedAddressPayload_Tags.Unwatch;
22957
+ readonly inner: Readonly<{
22958
+ issuedAt: bigint;
22959
+ }>;
22960
+ /**
22961
+ * @private
22962
+ * This field is private and should not be used, use `tag` instead.
22963
+ */
22964
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22965
+ };
22966
+ instanceOf(obj: any): obj is {
22967
+ readonly tag: UpdateWatchedAddressPayload_Tags.Unwatch;
22968
+ readonly inner: Readonly<{
22969
+ issuedAt: bigint;
22970
+ }>;
22971
+ /**
22972
+ * @private
22973
+ * This field is private and should not be used, use `tag` instead.
22974
+ */
22975
+ readonly [uniffiTypeNameSymbol]: "UpdateWatchedAddressPayload";
22976
+ };
22977
+ };
22978
+ }>;
22979
+ export type UpdateWatchedAddressPayload = InstanceType<(typeof UpdateWatchedAddressPayload)[keyof Omit<typeof UpdateWatchedAddressPayload, 'instanceOf'>]>;
22000
22980
  export declare enum WebhookEventType_Tags {
22001
22981
  LightningReceiveFinished = "LightningReceiveFinished",
22002
22982
  LightningSendFinished = "LightningSendFinished",
@@ -22748,7 +23728,13 @@ export interface BreezSdkInterface {
22748
23728
  signal: AbortSignal;
22749
23729
  }): Promise<SignMessageResponse>;
22750
23730
  /**
22751
- * Synchronizes the wallet with the Spark network
23731
+ * Synchronizes the wallet with the Spark network.
23732
+ *
23733
+ * Also collects the data a unilateral exit needs for any leaf still missing
23734
+ * it, and waits for that before returning. This happens regardless of
23735
+ * [`exit_chain_auto_fetch_enabled`](crate::Config::exit_chain_auto_fetch_enabled),
23736
+ * which governs only the automatic collection: syncing is how to run one at
23737
+ * a moment of your choosing with that turned off.
22752
23738
  */
22753
23739
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
22754
23740
  signal: AbortSignal;
@@ -23325,7 +24311,13 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
23325
24311
  signal: AbortSignal;
23326
24312
  }): Promise<SignMessageResponse>;
23327
24313
  /**
23328
- * Synchronizes the wallet with the Spark network
24314
+ * Synchronizes the wallet with the Spark network.
24315
+ *
24316
+ * Also collects the data a unilateral exit needs for any leaf still missing
24317
+ * it, and waits for that before returning. This happens regardless of
24318
+ * [`exit_chain_auto_fetch_enabled`](crate::Config::exit_chain_auto_fetch_enabled),
24319
+ * which governs only the automatic collection: syncing is how to run one at
24320
+ * a moment of your choosing with that turned off.
23329
24321
  */
23330
24322
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
23331
24323
  signal: AbortSignal;
@@ -23811,7 +24803,7 @@ export interface ExternalSparkSigner {
23811
24803
  signal: AbortSignal;
23812
24804
  }): Promise<PublicKeyBytes>;
23813
24805
  /**
23814
- * The signing public key for a tree leaf.
24806
+ * The public key of the leaf signing key derived from `leaf_id`.
23815
24807
  */
23816
24808
  getPublicKeyForLeaf(leafId: ExternalTreeNodeId, asyncOpts_?: {
23817
24809
  signal: AbortSignal;
@@ -23843,7 +24835,8 @@ export interface ExternalSparkSigner {
23843
24835
  }): Promise<EcdsaSignatureBytes>;
23844
24836
  /**
23845
24837
  * Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
23846
- * BIP341 key-path spend (empty script tree).
24838
+ * BIP341 key-path spend (empty script tree), with the leaf signing key
24839
+ * derived from `leaf_id`.
23847
24840
  */
23848
24841
  signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: ArrayBuffer, asyncOpts_?: {
23849
24842
  signal: AbortSignal;
@@ -23924,7 +24917,7 @@ export declare class ExternalSparkSignerImpl extends UniffiAbstractObject implem
23924
24917
  signal: AbortSignal;
23925
24918
  }): Promise<PublicKeyBytes>;
23926
24919
  /**
23927
- * The signing public key for a tree leaf.
24920
+ * The public key of the leaf signing key derived from `leaf_id`.
23928
24921
  */
23929
24922
  getPublicKeyForLeaf(leafId: ExternalTreeNodeId, asyncOpts_?: {
23930
24923
  signal: AbortSignal;
@@ -23956,7 +24949,8 @@ export declare class ExternalSparkSignerImpl extends UniffiAbstractObject implem
23956
24949
  }): Promise<EcdsaSignatureBytes>;
23957
24950
  /**
23958
24951
  * Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
23959
- * BIP341 key-path spend (empty script tree).
24952
+ * BIP341 key-path spend (empty script tree), with the leaf signing key
24953
+ * derived from `leaf_id`.
23960
24954
  */
23961
24955
  signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: ArrayBuffer, asyncOpts_?: {
23962
24956
  signal: AbortSignal;
@@ -24625,7 +25619,7 @@ export interface SdkBuilderInterface {
24625
25619
  * Sets the account number for key derivation. All wallet keys derive from
24626
25620
  * the seed at `m/8797555'/<account number>'`, so each account number
24627
25621
  * yields an independent wallet from the same seed. Defaults to 0 on
24628
- * Regtest and 1 on all other networks when unset.
25622
+ * Regtest and Signet, and 1 on Mainnet when unset.
24629
25623
  * Arguments:
24630
25624
  * - `account_number`: The account number in the derivation path.
24631
25625
  */
@@ -24776,7 +25770,7 @@ export declare class SdkBuilder extends UniffiAbstractObject implements SdkBuild
24776
25770
  * Sets the account number for key derivation. All wallet keys derive from
24777
25771
  * the seed at `m/8797555'/<account number>'`, so each account number
24778
25772
  * yields an independent wallet from the same seed. Defaults to 0 on
24779
- * Regtest and 1 on all other networks when unset.
25773
+ * Regtest and Signet, and 1 on Mainnet when unset.
24780
25774
  * Arguments:
24781
25775
  * - `account_number`: The account number in the derivation path.
24782
25776
  */
@@ -25118,6 +26112,20 @@ export interface Storage {
25118
26112
  updateDeposit(txid: string, vout: number, payload: UpdateDepositPayload, asyncOpts_?: {
25119
26113
  signal: AbortSignal;
25120
26114
  }): Promise<void>;
26115
+ /**
26116
+ * Lists the deposit addresses currently being watched for unconfirmed
26117
+ * deposits, most recently issued first.
26118
+ */
26119
+ listWatchedDepositAddresses(asyncOpts_?: {
26120
+ signal: AbortSignal;
26121
+ }): Promise<Array<WatchedDepositAddress>>;
26122
+ /**
26123
+ * Applies one change to a watched deposit address. `Watch` inserts or
26124
+ * restarts it, `Seen` marks it, and `Unwatch` removes it.
26125
+ */
26126
+ updateWatchedDepositAddress(address: string, payload: UpdateWatchedAddressPayload, asyncOpts_?: {
26127
+ signal: AbortSignal;
26128
+ }): Promise<void>;
25121
26129
  setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
25122
26130
  signal: AbortSignal;
25123
26131
  }): Promise<void>;
@@ -25369,6 +26377,20 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
25369
26377
  updateDeposit(txid: string, vout: number, payload: UpdateDepositPayload, asyncOpts_?: {
25370
26378
  signal: AbortSignal;
25371
26379
  }): Promise<void>;
26380
+ /**
26381
+ * Lists the deposit addresses currently being watched for unconfirmed
26382
+ * deposits, most recently issued first.
26383
+ */
26384
+ listWatchedDepositAddresses(asyncOpts_?: {
26385
+ signal: AbortSignal;
26386
+ }): Promise<Array<WatchedDepositAddress>>;
26387
+ /**
26388
+ * Applies one change to a watched deposit address. `Watch` inserts or
26389
+ * restarts it, `Seen` marks it, and `Unwatch` removes it.
26390
+ */
26391
+ updateWatchedDepositAddress(address: string, payload: UpdateWatchedAddressPayload, asyncOpts_?: {
26392
+ signal: AbortSignal;
26393
+ }): Promise<void>;
25372
26394
  setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
25373
26395
  signal: AbortSignal;
25374
26396
  }): Promise<void>;
@@ -26024,6 +27046,20 @@ declare const _default: Readonly<{
26024
27046
  lift(value: UniffiByteArray): CheckUnilateralExitResponse;
26025
27047
  lower(value: CheckUnilateralExitResponse): UniffiByteArray;
26026
27048
  };
27049
+ FfiConverterTypeClaimDeferredReason: {
27050
+ read(from: RustBuffer): ClaimDeferredReason;
27051
+ write(value: ClaimDeferredReason, into: RustBuffer): void;
27052
+ allocationSize(value: ClaimDeferredReason): number;
27053
+ lift(value: UniffiByteArray): ClaimDeferredReason;
27054
+ lower(value: ClaimDeferredReason): UniffiByteArray;
27055
+ };
27056
+ FfiConverterTypeClaimDepositOutcome: {
27057
+ read(from: RustBuffer): ClaimDepositOutcome;
27058
+ write(value: ClaimDepositOutcome, into: RustBuffer): void;
27059
+ allocationSize(value: ClaimDepositOutcome): number;
27060
+ lift(value: UniffiByteArray): ClaimDepositOutcome;
27061
+ lower(value: ClaimDepositOutcome): UniffiByteArray;
27062
+ };
26027
27063
  FfiConverterTypeClaimDepositQuote: {
26028
27064
  read(from: RustBuffer): ClaimDepositQuote;
26029
27065
  write(value: ClaimDepositQuote, into: RustBuffer): void;
@@ -26249,6 +27285,13 @@ declare const _default: Readonly<{
26249
27285
  lift(value: UniffiByteArray): Credentials;
26250
27286
  lower(value: Credentials): UniffiByteArray;
26251
27287
  };
27288
+ FfiConverterTypeCrossChainAcceptedAsset: {
27289
+ read(from: RustBuffer): CrossChainAcceptedAsset;
27290
+ write(value: CrossChainAcceptedAsset, into: RustBuffer): void;
27291
+ allocationSize(value: CrossChainAcceptedAsset): number;
27292
+ lift(value: UniffiByteArray): CrossChainAcceptedAsset;
27293
+ lower(value: CrossChainAcceptedAsset): UniffiByteArray;
27294
+ };
26252
27295
  FfiConverterTypeCrossChainAddressDetails: {
26253
27296
  read(from: RustBuffer): CrossChainAddressDetails;
26254
27297
  write(value: CrossChainAddressDetails, into: RustBuffer): void;
@@ -26305,6 +27348,13 @@ declare const _default: Readonly<{
26305
27348
  lift(value: UniffiByteArray): CrossChainRouteFilter;
26306
27349
  lower(value: CrossChainRouteFilter): UniffiByteArray;
26307
27350
  };
27351
+ FfiConverterTypeCrossChainRouteLimits: {
27352
+ read(from: RustBuffer): CrossChainRouteLimits;
27353
+ write(value: CrossChainRouteLimits, into: RustBuffer): void;
27354
+ allocationSize(value: CrossChainRouteLimits): number;
27355
+ lift(value: UniffiByteArray): CrossChainRouteLimits;
27356
+ lower(value: CrossChainRouteLimits): UniffiByteArray;
27357
+ };
26308
27358
  FfiConverterTypeCrossChainRoutePair: {
26309
27359
  read(from: RustBuffer): CrossChainRoutePair;
26310
27360
  write(value: CrossChainRoutePair, into: RustBuffer): void;
@@ -26488,6 +27538,13 @@ declare const _default: Readonly<{
26488
27538
  lift(value: UniffiByteArray): ExternalInputParser;
26489
27539
  lower(value: ExternalInputParser): UniffiByteArray;
26490
27540
  };
27541
+ FfiConverterTypeExternalLeafSigningKey: {
27542
+ read(from: RustBuffer): ExternalLeafSigningKey;
27543
+ write(value: ExternalLeafSigningKey, into: RustBuffer): void;
27544
+ allocationSize(value: ExternalLeafSigningKey): number;
27545
+ lift(value: UniffiByteArray): ExternalLeafSigningKey;
27546
+ lower(value: ExternalLeafSigningKey): UniffiByteArray;
27547
+ };
26491
27548
  FfiConverterTypeExternalNewLeafKey: {
26492
27549
  read(from: RustBuffer): ExternalNewLeafKey;
26493
27550
  write(value: ExternalNewLeafKey, into: RustBuffer): void;
@@ -28079,6 +29136,13 @@ declare const _default: Readonly<{
28079
29136
  lift(value: UniffiByteArray): UpdateUserSettingsRequest;
28080
29137
  lower(value: UpdateUserSettingsRequest): UniffiByteArray;
28081
29138
  };
29139
+ FfiConverterTypeUpdateWatchedAddressPayload: {
29140
+ read(from: RustBuffer): UpdateWatchedAddressPayload;
29141
+ write(value: UpdateWatchedAddressPayload, into: RustBuffer): void;
29142
+ allocationSize(value: UpdateWatchedAddressPayload): number;
29143
+ lift(value: UniffiByteArray): UpdateWatchedAddressPayload;
29144
+ lower(value: UpdateWatchedAddressPayload): UniffiByteArray;
29145
+ };
28082
29146
  FfiConverterTypeUrlSuccessActionData: {
28083
29147
  read(from: RustBuffer): UrlSuccessActionData;
28084
29148
  write(value: UrlSuccessActionData, into: RustBuffer): void;
@@ -28114,6 +29178,13 @@ declare const _default: Readonly<{
28114
29178
  lift(value: UniffiByteArray): WalletSetup;
28115
29179
  lower(value: WalletSetup): UniffiByteArray;
28116
29180
  };
29181
+ FfiConverterTypeWatchedDepositAddress: {
29182
+ read(from: RustBuffer): WatchedDepositAddress;
29183
+ write(value: WatchedDepositAddress, into: RustBuffer): void;
29184
+ allocationSize(value: WatchedDepositAddress): number;
29185
+ lift(value: UniffiByteArray): WatchedDepositAddress;
29186
+ lower(value: WatchedDepositAddress): UniffiByteArray;
29187
+ };
28117
29188
  FfiConverterTypeWebhook: {
28118
29189
  read(from: RustBuffer): Webhook;
28119
29190
  write(value: Webhook, into: RustBuffer): void;