@breeztech/breez-sdk-spark-react-native 0.24.1 → 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.
- package/android/build.gradle +7 -1
- package/cpp/generated/breez_sdk_spark.cpp +694 -232
- package/cpp/generated/breez_sdk_spark.hpp +24 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +535 -125
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +534 -124
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +44 -34
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +2283 -369
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +44 -34
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +2283 -369
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +4 -4
- package/scripts/post-ubrn.js +29 -0
- package/src/generated/breez_sdk_spark-ffi.ts +62 -33
- package/src/generated/breez_sdk_spark.ts +3766 -625
|
@@ -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
|
|
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
|
/**
|
|
@@ -939,6 +939,63 @@ export declare const CheckMessageResponse: Readonly<{
|
|
|
939
939
|
*/
|
|
940
940
|
defaults: () => Partial<CheckMessageResponse>;
|
|
941
941
|
}>;
|
|
942
|
+
/**
|
|
943
|
+
* Request for `check_unilateral_exit`: the exit you kept from a previous
|
|
944
|
+
* `unilateral_exit`, as you last stored it.
|
|
945
|
+
*/
|
|
946
|
+
export type CheckUnilateralExitRequest = {
|
|
947
|
+
exit: UnilateralExitResponse;
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* Generated factory for {@link CheckUnilateralExitRequest} record objects.
|
|
951
|
+
*/
|
|
952
|
+
export declare const CheckUnilateralExitRequest: Readonly<{
|
|
953
|
+
/**
|
|
954
|
+
* Create a frozen instance of {@link CheckUnilateralExitRequest}, with defaults specified
|
|
955
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
956
|
+
*/
|
|
957
|
+
create: (partial: Partial<CheckUnilateralExitRequest> & Required<Omit<CheckUnilateralExitRequest, never>>) => CheckUnilateralExitRequest;
|
|
958
|
+
/**
|
|
959
|
+
* Create a frozen instance of {@link CheckUnilateralExitRequest}, with defaults specified
|
|
960
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
961
|
+
*/
|
|
962
|
+
new: (partial: Partial<CheckUnilateralExitRequest> & Required<Omit<CheckUnilateralExitRequest, never>>) => CheckUnilateralExitRequest;
|
|
963
|
+
/**
|
|
964
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
965
|
+
*/
|
|
966
|
+
defaults: () => Partial<CheckUnilateralExitRequest>;
|
|
967
|
+
}>;
|
|
968
|
+
/**
|
|
969
|
+
* Result of `check_unilateral_exit`: the same exit, read back against the
|
|
970
|
+
* chain.
|
|
971
|
+
*/
|
|
972
|
+
export type CheckUnilateralExitResponse = {
|
|
973
|
+
/**
|
|
974
|
+
* The exit with each transaction's status brought up to date. Store it in
|
|
975
|
+
* place of the copy you passed in.
|
|
976
|
+
*/
|
|
977
|
+
exit: UnilateralExitResponse;
|
|
978
|
+
verdict: UnilateralExitVerdict;
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
* Generated factory for {@link CheckUnilateralExitResponse} record objects.
|
|
982
|
+
*/
|
|
983
|
+
export declare const CheckUnilateralExitResponse: Readonly<{
|
|
984
|
+
/**
|
|
985
|
+
* Create a frozen instance of {@link CheckUnilateralExitResponse}, with defaults specified
|
|
986
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
987
|
+
*/
|
|
988
|
+
create: (partial: Partial<CheckUnilateralExitResponse> & Required<Omit<CheckUnilateralExitResponse, never>>) => CheckUnilateralExitResponse;
|
|
989
|
+
/**
|
|
990
|
+
* Create a frozen instance of {@link CheckUnilateralExitResponse}, with defaults specified
|
|
991
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
992
|
+
*/
|
|
993
|
+
new: (partial: Partial<CheckUnilateralExitResponse> & Required<Omit<CheckUnilateralExitResponse, never>>) => CheckUnilateralExitResponse;
|
|
994
|
+
/**
|
|
995
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
996
|
+
*/
|
|
997
|
+
defaults: () => Partial<CheckUnilateralExitResponse>;
|
|
998
|
+
}>;
|
|
942
999
|
/**
|
|
943
1000
|
* What one way of claiming a deposit costs.
|
|
944
1001
|
*/
|
|
@@ -991,9 +1048,20 @@ export type ClaimDepositRequest = {
|
|
|
991
1048
|
txid: string;
|
|
992
1049
|
vout: number;
|
|
993
1050
|
/**
|
|
994
|
-
* Caps what the claim may cost
|
|
995
|
-
*
|
|
996
|
-
*
|
|
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.
|
|
997
1065
|
*/
|
|
998
1066
|
maxFee: MaxFee | undefined;
|
|
999
1067
|
};
|
|
@@ -1018,14 +1086,11 @@ export declare const ClaimDepositRequest: Readonly<{
|
|
|
1018
1086
|
}>;
|
|
1019
1087
|
export type ClaimDepositResponse = {
|
|
1020
1088
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1023
|
-
*
|
|
1024
|
-
* `list_payments`. Which of the two happens follows from the deposit's maturity
|
|
1025
|
-
* and the fee ceiling, not from anything the caller asks for, so treat the
|
|
1026
|
-
* 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.
|
|
1027
1092
|
*/
|
|
1028
|
-
|
|
1093
|
+
outcome: ClaimDepositOutcome;
|
|
1029
1094
|
};
|
|
1030
1095
|
/**
|
|
1031
1096
|
* Generated factory for {@link ClaimDepositResponse} record objects.
|
|
@@ -1148,15 +1213,20 @@ export type Config = {
|
|
|
1148
1213
|
preferSparkOverLightning: boolean;
|
|
1149
1214
|
/**
|
|
1150
1215
|
* Whether the data needed to exit a payment unilaterally, without the Spark
|
|
1151
|
-
* operators, is collected as funds arrive. Collection runs in
|
|
1152
|
-
*
|
|
1153
|
-
*
|
|
1154
|
-
*
|
|
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.
|
|
1155
1220
|
*
|
|
1156
|
-
*
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
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.
|
|
1160
1230
|
*
|
|
1161
1231
|
* Default value is true.
|
|
1162
1232
|
*/
|
|
@@ -1297,6 +1367,37 @@ export declare const Config: Readonly<{
|
|
|
1297
1367
|
*/
|
|
1298
1368
|
defaults: () => Partial<Config>;
|
|
1299
1369
|
}>;
|
|
1370
|
+
/**
|
|
1371
|
+
* A node of the exit tree that is already on-chain.
|
|
1372
|
+
*/
|
|
1373
|
+
export type ConfirmedExitNode = {
|
|
1374
|
+
nodeId: string;
|
|
1375
|
+
confirmedBy: ExitNodeConfirmation;
|
|
1376
|
+
/**
|
|
1377
|
+
* The block it is in, where that is known. Unset for a node put in a block
|
|
1378
|
+
* by a descendant's confirmation rather than read directly.
|
|
1379
|
+
*/
|
|
1380
|
+
blockHeight: /*u32*/ number | undefined;
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* Generated factory for {@link ConfirmedExitNode} record objects.
|
|
1384
|
+
*/
|
|
1385
|
+
export declare const ConfirmedExitNode: Readonly<{
|
|
1386
|
+
/**
|
|
1387
|
+
* Create a frozen instance of {@link ConfirmedExitNode}, with defaults specified
|
|
1388
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1389
|
+
*/
|
|
1390
|
+
create: (partial: Partial<ConfirmedExitNode> & Required<Omit<ConfirmedExitNode, never>>) => ConfirmedExitNode;
|
|
1391
|
+
/**
|
|
1392
|
+
* Create a frozen instance of {@link ConfirmedExitNode}, with defaults specified
|
|
1393
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1394
|
+
*/
|
|
1395
|
+
new: (partial: Partial<ConfirmedExitNode> & Required<Omit<ConfirmedExitNode, never>>) => ConfirmedExitNode;
|
|
1396
|
+
/**
|
|
1397
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1398
|
+
*/
|
|
1399
|
+
defaults: () => Partial<ConfirmedExitNode>;
|
|
1400
|
+
}>;
|
|
1300
1401
|
export type ConnectRequest = {
|
|
1301
1402
|
config: Config;
|
|
1302
1403
|
seed: Seed;
|
|
@@ -1854,6 +1955,38 @@ export declare const Credentials: Readonly<{
|
|
|
1854
1955
|
*/
|
|
1855
1956
|
defaults: () => Partial<Credentials>;
|
|
1856
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
|
+
}>;
|
|
1857
1990
|
export type CrossChainAddressDetails = {
|
|
1858
1991
|
address: string;
|
|
1859
1992
|
addressFamily: CrossChainAddressFamily;
|
|
@@ -1890,16 +2023,16 @@ export type CrossChainConfig = {
|
|
|
1890
2023
|
/**
|
|
1891
2024
|
* Default maximum slippage in basis points used when
|
|
1892
2025
|
* [`PaymentRequest::CrossChain::max_slippage_bps`] is not set on the
|
|
1893
|
-
* prepare request. Must be in
|
|
1894
|
-
* when this field is
|
|
2026
|
+
* prepare request. Must be in 10 to 500. Falls back to 100 bps (1%)
|
|
2027
|
+
* when this field is unset.
|
|
1895
2028
|
*/
|
|
1896
2029
|
defaultSlippageBps: /*u32*/ number | undefined;
|
|
1897
2030
|
/**
|
|
1898
2031
|
* Default target-overpay pad in basis points applied to the user's
|
|
1899
2032
|
* destination amount on `FeesExcluded` conversion sends. Bumps the
|
|
1900
2033
|
* target upward before quoting so the recipient lands at or above the
|
|
1901
|
-
* requested amount despite provider slippage. Must be in
|
|
1902
|
-
* Falls back to 15 bps when
|
|
2034
|
+
* requested amount despite provider slippage. Must be in 0 to 500.
|
|
2035
|
+
* Falls back to 15 bps when unset.
|
|
1903
2036
|
*/
|
|
1904
2037
|
defaultTargetOverpayBps: /*u32*/ number | undefined;
|
|
1905
2038
|
};
|
|
@@ -1922,6 +2055,131 @@ export declare const CrossChainConfig: Readonly<{
|
|
|
1922
2055
|
*/
|
|
1923
2056
|
defaults: () => Partial<CrossChainConfig>;
|
|
1924
2057
|
}>;
|
|
2058
|
+
/**
|
|
2059
|
+
* Information about the cross-chain receive quote.
|
|
2060
|
+
*/
|
|
2061
|
+
export type CrossChainReceiveInfo = {
|
|
2062
|
+
/**
|
|
2063
|
+
* Bare external deposit address the sender pays to.
|
|
2064
|
+
*/
|
|
2065
|
+
depositAddress: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Amount the sender must deposit, in source-asset base units
|
|
2068
|
+
* (`route.decimals`). On `FeesExcluded` this may differ from the
|
|
2069
|
+
* request's `amount` because the SDK inflates the deposit to absorb
|
|
2070
|
+
* provider fees. Render this value to the sender.
|
|
2071
|
+
*/
|
|
2072
|
+
depositAmount: U128;
|
|
2073
|
+
/**
|
|
2074
|
+
* Amount the receiver will see, net of provider fees, in
|
|
2075
|
+
* destination-asset base units. Sats when receiving BTC into Spark,
|
|
2076
|
+
* or token base units when receiving a Spark token (e.g. USDB). The
|
|
2077
|
+
* final delivered amount may move within the slippage tolerance.
|
|
2078
|
+
*/
|
|
2079
|
+
expectedReceivedAmount: U128;
|
|
2080
|
+
/**
|
|
2081
|
+
* Symbol of the Spark-side asset `expected_received_amount` is
|
|
2082
|
+
* denominated in, as the provider reports it: `"BTC"` for sats, or the
|
|
2083
|
+
* token symbol (e.g. `"USDB"`).
|
|
2084
|
+
*/
|
|
2085
|
+
destinationAsset: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Spark token identifier when the destination is a token. Absent when
|
|
2088
|
+
* the destination is BTC and the receiver will see sats.
|
|
2089
|
+
*/
|
|
2090
|
+
tokenIdentifier: string | undefined;
|
|
2091
|
+
/**
|
|
2092
|
+
* Provider-quoted total fee for this receive, in `service_fee_asset`
|
|
2093
|
+
* units.
|
|
2094
|
+
*/
|
|
2095
|
+
serviceFeeAmount: U128;
|
|
2096
|
+
/**
|
|
2097
|
+
* Ticker for `service_fee_amount`. Absent when the fee is denominated
|
|
2098
|
+
* in sats.
|
|
2099
|
+
*/
|
|
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;
|
|
2106
|
+
/**
|
|
2107
|
+
* Quote expiry as a unix timestamp in seconds.
|
|
2108
|
+
*/
|
|
2109
|
+
expiresAt: bigint;
|
|
2110
|
+
};
|
|
2111
|
+
/**
|
|
2112
|
+
* Generated factory for {@link CrossChainReceiveInfo} record objects.
|
|
2113
|
+
*/
|
|
2114
|
+
export declare const CrossChainReceiveInfo: Readonly<{
|
|
2115
|
+
/**
|
|
2116
|
+
* Create a frozen instance of {@link CrossChainReceiveInfo}, with defaults specified
|
|
2117
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2118
|
+
*/
|
|
2119
|
+
create: (partial: Partial<CrossChainReceiveInfo> & Required<Omit<CrossChainReceiveInfo, never>>) => CrossChainReceiveInfo;
|
|
2120
|
+
/**
|
|
2121
|
+
* Create a frozen instance of {@link CrossChainReceiveInfo}, with defaults specified
|
|
2122
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2123
|
+
*/
|
|
2124
|
+
new: (partial: Partial<CrossChainReceiveInfo> & Required<Omit<CrossChainReceiveInfo, never>>) => CrossChainReceiveInfo;
|
|
2125
|
+
/**
|
|
2126
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2127
|
+
*/
|
|
2128
|
+
defaults: () => Partial<CrossChainReceiveInfo>;
|
|
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
|
+
}>;
|
|
1925
2183
|
/**
|
|
1926
2184
|
* A single route available for cross-chain transfers, tagged with the provider
|
|
1927
2185
|
* that offers it. Returned by `get_cross_chain_routes()`.
|
|
@@ -1932,17 +2190,17 @@ export type CrossChainRoutePair = {
|
|
|
1932
2190
|
*/
|
|
1933
2191
|
provider: CrossChainProvider;
|
|
1934
2192
|
/**
|
|
1935
|
-
*
|
|
2193
|
+
* External blockchain (e.g. `"base"`, `"solana"`, `"tron"`).
|
|
1936
2194
|
*/
|
|
1937
2195
|
chain: string;
|
|
1938
2196
|
/**
|
|
1939
|
-
*
|
|
2197
|
+
* External chain identifier (e.g. EVM `chainId` as a decimal string).
|
|
1940
2198
|
* `None` for non-EVM chains that don't expose one, or when the
|
|
1941
2199
|
* provider doesn't surface it.
|
|
1942
2200
|
*/
|
|
1943
2201
|
chainId: string | undefined;
|
|
1944
2202
|
/**
|
|
1945
|
-
*
|
|
2203
|
+
* External asset symbol (e.g. `"USDC"`, `"USDT"`).
|
|
1946
2204
|
*/
|
|
1947
2205
|
asset: string;
|
|
1948
2206
|
/**
|
|
@@ -1958,22 +2216,14 @@ export type CrossChainRoutePair = {
|
|
|
1958
2216
|
*/
|
|
1959
2217
|
exactOutEligible: boolean;
|
|
1960
2218
|
/**
|
|
1961
|
-
*
|
|
1962
|
-
*
|
|
1963
|
-
* Boltz routes accept `[SourceAsset::Bitcoin]`. Orchestra routes accept
|
|
1964
|
-
* one or more of `Bitcoin` / `Token(...)` (a given destination endpoint
|
|
1965
|
-
* may be fronted by multiple source variants on Orchestra).
|
|
2219
|
+
* Spark-side assets this route accepts, each with its own amount bounds.
|
|
1966
2220
|
*/
|
|
1967
|
-
|
|
2221
|
+
acceptedAssets: Array<CrossChainAcceptedAsset>;
|
|
1968
2222
|
/**
|
|
1969
|
-
*
|
|
1970
|
-
* `
|
|
1971
|
-
*
|
|
1972
|
-
* This is the actual funding rail, which differs by provider: Boltz routes
|
|
1973
|
-
* are always paid over Lightning. Orchestra send routes report Spark, and
|
|
1974
|
-
* Orchestra payment-link routes report Lightning.
|
|
2223
|
+
* Rails this route can be delivered over, orthogonal to
|
|
2224
|
+
* `accepted_assets` (the asset moved vs the rail moved on).
|
|
1975
2225
|
*/
|
|
1976
|
-
|
|
2226
|
+
deliveryMethods: Array<DeliveryMethod>;
|
|
1977
2227
|
};
|
|
1978
2228
|
/**
|
|
1979
2229
|
* Generated factory for {@link CrossChainRoutePair} record objects.
|
|
@@ -2063,6 +2313,14 @@ export type DepositInfo = {
|
|
|
2063
2313
|
* Unset when no instant claim has been attempted.
|
|
2064
2314
|
*/
|
|
2065
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;
|
|
2066
2324
|
};
|
|
2067
2325
|
/**
|
|
2068
2326
|
* Generated factory for {@link DepositInfo} record objects.
|
|
@@ -2185,6 +2443,83 @@ export declare const EcdsaSignatureBytes: Readonly<{
|
|
|
2185
2443
|
*/
|
|
2186
2444
|
defaults: () => Partial<EcdsaSignatureBytes>;
|
|
2187
2445
|
}>;
|
|
2446
|
+
/**
|
|
2447
|
+
* What the chain has already done to an exit's leaves, as
|
|
2448
|
+
* `prepare_unilateral_exit` found it. Pass it back to `unilateral_exit`, which
|
|
2449
|
+
* builds only the steps it does not cover.
|
|
2450
|
+
*/
|
|
2451
|
+
export type ExitChainState = {
|
|
2452
|
+
/**
|
|
2453
|
+
* Nodes whose transaction is on-chain.
|
|
2454
|
+
*/
|
|
2455
|
+
confirmedNodes: Array<ConfirmedExitNode>;
|
|
2456
|
+
/**
|
|
2457
|
+
* Leaves whose refund reached the chain.
|
|
2458
|
+
*/
|
|
2459
|
+
refunds: Array<ExitRefund>;
|
|
2460
|
+
/**
|
|
2461
|
+
* Leaves whose lineage was taken on-chain by a transaction the exit cannot
|
|
2462
|
+
* continue from. Nothing further can be driven for them.
|
|
2463
|
+
*/
|
|
2464
|
+
stoppedLeafIds: Array<string>;
|
|
2465
|
+
/**
|
|
2466
|
+
* Nodes a chain lookup could not read, so their state is unknown rather
|
|
2467
|
+
* than absent. Transactions depending on them come back
|
|
2468
|
+
* `ExitTransactionStatus::Unverified`.
|
|
2469
|
+
*/
|
|
2470
|
+
unverifiedNodeIds: Array<string>;
|
|
2471
|
+
/**
|
|
2472
|
+
* Nodes taken to be on-chain on the operators' word, the chain itself being
|
|
2473
|
+
* unreadable. Their spend is invisible, so anything built over them risks
|
|
2474
|
+
* double-spending an output that is already gone.
|
|
2475
|
+
*/
|
|
2476
|
+
unverifiableConfirmedNodeIds: Array<string>;
|
|
2477
|
+
};
|
|
2478
|
+
/**
|
|
2479
|
+
* Generated factory for {@link ExitChainState} record objects.
|
|
2480
|
+
*/
|
|
2481
|
+
export declare const ExitChainState: Readonly<{
|
|
2482
|
+
/**
|
|
2483
|
+
* Create a frozen instance of {@link ExitChainState}, with defaults specified
|
|
2484
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2485
|
+
*/
|
|
2486
|
+
create: (partial: Partial<ExitChainState> & Required<Omit<ExitChainState, never>>) => ExitChainState;
|
|
2487
|
+
/**
|
|
2488
|
+
* Create a frozen instance of {@link ExitChainState}, with defaults specified
|
|
2489
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2490
|
+
*/
|
|
2491
|
+
new: (partial: Partial<ExitChainState> & Required<Omit<ExitChainState, never>>) => ExitChainState;
|
|
2492
|
+
/**
|
|
2493
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2494
|
+
*/
|
|
2495
|
+
defaults: () => Partial<ExitChainState>;
|
|
2496
|
+
}>;
|
|
2497
|
+
/**
|
|
2498
|
+
* A leaf's refund as the chain shows it.
|
|
2499
|
+
*/
|
|
2500
|
+
export type ExitRefund = {
|
|
2501
|
+
leafId: string;
|
|
2502
|
+
state: ExitRefundState;
|
|
2503
|
+
};
|
|
2504
|
+
/**
|
|
2505
|
+
* Generated factory for {@link ExitRefund} record objects.
|
|
2506
|
+
*/
|
|
2507
|
+
export declare const ExitRefund: Readonly<{
|
|
2508
|
+
/**
|
|
2509
|
+
* Create a frozen instance of {@link ExitRefund}, with defaults specified
|
|
2510
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2511
|
+
*/
|
|
2512
|
+
create: (partial: Partial<ExitRefund> & Required<Omit<ExitRefund, never>>) => ExitRefund;
|
|
2513
|
+
/**
|
|
2514
|
+
* Create a frozen instance of {@link ExitRefund}, with defaults specified
|
|
2515
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
2516
|
+
*/
|
|
2517
|
+
new: (partial: Partial<ExitRefund> & Required<Omit<ExitRefund, never>>) => ExitRefund;
|
|
2518
|
+
/**
|
|
2519
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
2520
|
+
*/
|
|
2521
|
+
defaults: () => Partial<ExitRefund>;
|
|
2522
|
+
}>;
|
|
2188
2523
|
/**
|
|
2189
2524
|
* Result of `export_unilateral_exit_state`: a self-contained copy of the
|
|
2190
2525
|
* wallet's exit state, ready to be stored outside the wallet.
|
|
@@ -2475,6 +2810,32 @@ export declare const ExternalInputParser: Readonly<{
|
|
|
2475
2810
|
*/
|
|
2476
2811
|
defaults: () => Partial<ExternalInputParser>;
|
|
2477
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
|
+
}>;
|
|
2478
2839
|
/**
|
|
2479
2840
|
* FFI-safe representation of `spark_wallet::NewLeafKey`.
|
|
2480
2841
|
*/
|
|
@@ -3113,12 +3474,14 @@ export declare const ExternalStartedStaticDepositRefund: Readonly<{
|
|
|
3113
3474
|
defaults: () => Partial<ExternalStartedStaticDepositRefund>;
|
|
3114
3475
|
}>;
|
|
3115
3476
|
/**
|
|
3116
|
-
* FFI-safe representation of `spark_wallet::TransferLeafInput`. Conveys the
|
|
3117
|
-
* leaf id and the new (post-transfer) leaf id;
|
|
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.
|
|
3118
3480
|
*/
|
|
3119
3481
|
export type ExternalTransferLeafInput = {
|
|
3120
3482
|
nodeId: ExternalTreeNodeId;
|
|
3121
3483
|
newLeafId: ExternalTreeNodeId;
|
|
3484
|
+
signingKey: ExternalLeafSigningKey;
|
|
3122
3485
|
};
|
|
3123
3486
|
/**
|
|
3124
3487
|
* Generated factory for {@link ExternalTransferLeafInput} record objects.
|
|
@@ -5214,6 +5577,11 @@ export type PreparePaymentLinkResponse = {
|
|
|
5214
5577
|
* denominates its fee in sats, Orchestra in the stablecoin.
|
|
5215
5578
|
*/
|
|
5216
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;
|
|
5217
5585
|
/**
|
|
5218
5586
|
* RFC3339 timestamp after which the quote is no longer valid.
|
|
5219
5587
|
*/
|
|
@@ -5426,6 +5794,11 @@ export declare const PrepareUnilateralExitRequest: Readonly<{
|
|
|
5426
5794
|
* fee at the requested rate, and how much to fund.
|
|
5427
5795
|
*/
|
|
5428
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
|
+
*/
|
|
5429
5802
|
leaves: Array<UnilateralExitLeaf>;
|
|
5430
5803
|
/**
|
|
5431
5804
|
* Total value of the selected leaves, in satoshis.
|
|
@@ -5436,16 +5809,34 @@ export type PrepareUnilateralExitResponse = {
|
|
|
5436
5809
|
* branches), in satoshis. Exact for the given funding kind; nodes the
|
|
5437
5810
|
* operators report on-chain are assumed already paid, so a partially-exited
|
|
5438
5811
|
* tree quotes a lower fee than a fresh one.
|
|
5812
|
+
*
|
|
5813
|
+
* The sum of the three components below, which say who pays what:
|
|
5814
|
+
* `cpfp_fee_sat + fanout_fee_sat + sweep_fee_sat`. The first two come from
|
|
5815
|
+
* your funding UTXO, the third off the value being recovered.
|
|
5439
5816
|
*/
|
|
5440
5817
|
totalFeeSat: bigint;
|
|
5441
5818
|
/**
|
|
5442
|
-
* The part of `total_fee_sat`
|
|
5443
|
-
*
|
|
5444
|
-
|
|
5819
|
+
* The part of `total_fee_sat` the CPFP children pay, funded by your UTXOs.
|
|
5820
|
+
* It does not reduce what the exit recovers.
|
|
5821
|
+
*/
|
|
5822
|
+
cpfpFeeSat: bigint;
|
|
5823
|
+
/**
|
|
5824
|
+
* The part of `total_fee_sat` paid for the fan-out transaction, funded by
|
|
5825
|
+
* your UTXO. Funding one UTXO per branch (`per_branch_funding`) avoids it.
|
|
5826
|
+
* Zero for a single branch (no fan-out).
|
|
5445
5827
|
*/
|
|
5446
5828
|
fanoutFeeSat: bigint;
|
|
5829
|
+
/**
|
|
5830
|
+
* The part of `total_fee_sat` the final sweep pays. The sweep takes its fee
|
|
5831
|
+
* from the value it moves, so this is the one component subtracted from
|
|
5832
|
+
* what reaches `destination`.
|
|
5833
|
+
*/
|
|
5834
|
+
sweepFeeSat: bigint;
|
|
5447
5835
|
/**
|
|
5448
5836
|
* Fund a single UTXO of at least this many satoshis to exit with a fan-out.
|
|
5837
|
+
* Above `cpfp_fee_sat + fanout_fee_sat` by design: it carries the sweep fee
|
|
5838
|
+
* and a per-branch dust allowance as headroom, both of which come back to
|
|
5839
|
+
* you in the sweep.
|
|
5449
5840
|
*/
|
|
5450
5841
|
singleUtxoFundingSat: bigint;
|
|
5451
5842
|
/**
|
|
@@ -5458,6 +5849,12 @@ export type PrepareUnilateralExitResponse = {
|
|
|
5458
5849
|
*/
|
|
5459
5850
|
feeRateSatPerVbyte: bigint;
|
|
5460
5851
|
destination: string;
|
|
5852
|
+
/**
|
|
5853
|
+
* What the chain has already done to these leaves, read while preparing.
|
|
5854
|
+
* Pass it back to `unilateral_exit`, which builds only the steps it does
|
|
5855
|
+
* not already cover.
|
|
5856
|
+
*/
|
|
5857
|
+
exitChainState: ExitChainState;
|
|
5461
5858
|
};
|
|
5462
5859
|
/**
|
|
5463
5860
|
* Generated factory for {@link PrepareUnilateralExitResponse} record objects.
|
|
@@ -5680,6 +6077,10 @@ export type ReceivePaymentResponse = {
|
|
|
5680
6077
|
* Denominated in sats or token base units
|
|
5681
6078
|
*/
|
|
5682
6079
|
fee: U128;
|
|
6080
|
+
/**
|
|
6081
|
+
* Optional information populated only for cross-chain receives.
|
|
6082
|
+
*/
|
|
6083
|
+
crossChainInfo: CrossChainReceiveInfo | undefined;
|
|
5683
6084
|
};
|
|
5684
6085
|
/**
|
|
5685
6086
|
* Generated factory for {@link ReceivePaymentResponse} record objects.
|
|
@@ -6287,11 +6688,26 @@ export declare const SendBatchResponse: Readonly<{
|
|
|
6287
6688
|
defaults: () => Partial<SendBatchResponse>;
|
|
6288
6689
|
}>;
|
|
6289
6690
|
export type SendOnchainFeeQuote = {
|
|
6691
|
+
/**
|
|
6692
|
+
* Identifies the quote to the provider when the payment is sent. Empty on
|
|
6693
|
+
* an estimate, which no provider has issued.
|
|
6694
|
+
*/
|
|
6290
6695
|
id: string;
|
|
6696
|
+
/**
|
|
6697
|
+
* When the quote stops being honoured, as a Unix timestamp in seconds.
|
|
6698
|
+
* Zero on an estimate.
|
|
6699
|
+
*/
|
|
6291
6700
|
expiresAt: bigint;
|
|
6292
6701
|
speedFast: SendOnchainSpeedFeeQuote;
|
|
6293
6702
|
speedMedium: SendOnchainSpeedFeeQuote;
|
|
6294
6703
|
speedSlow: SendOnchainSpeedFeeQuote;
|
|
6704
|
+
/**
|
|
6705
|
+
* Set when the wallet holds no bitcoin and a token conversion will fund the
|
|
6706
|
+
* send, because the provider will not quote without funds to price against.
|
|
6707
|
+
* The estimate is an upper bound: the payment quotes for real once the
|
|
6708
|
+
* conversion lands, and fails rather than spending more than this.
|
|
6709
|
+
*/
|
|
6710
|
+
isEstimate: boolean;
|
|
6295
6711
|
};
|
|
6296
6712
|
/**
|
|
6297
6713
|
* Generated factory for {@link SendOnchainFeeQuote} record objects.
|
|
@@ -7051,9 +7467,8 @@ export declare const SparkStatus: Readonly<{
|
|
|
7051
7467
|
* Configuration for automatic conversion of Bitcoin to stable tokens.
|
|
7052
7468
|
*
|
|
7053
7469
|
* When configured, the SDK automatically monitors the Bitcoin balance after each
|
|
7054
|
-
* wallet sync.
|
|
7055
|
-
*
|
|
7056
|
-
* to the active stable token.
|
|
7470
|
+
* wallet sync. Once the balance reaches the configured threshold, the SDK converts
|
|
7471
|
+
* the whole Bitcoin balance to the active stable token.
|
|
7057
7472
|
*
|
|
7058
7473
|
* When the balance is held in a stable token, Bitcoin payments can still be sent.
|
|
7059
7474
|
* The SDK automatically detects when there's not enough Bitcoin balance to cover a
|
|
@@ -7503,6 +7918,7 @@ export type TurnkeyConfig = {
|
|
|
7503
7918
|
/**
|
|
7504
7919
|
* Network the wallet operates on; selects the Spark address format
|
|
7505
7920
|
* (mainnet or regtest) used for Spark-protocol and Schnorr signing.
|
|
7921
|
+
* Signet is unsupported by Turnkey's Spark account formats.
|
|
7506
7922
|
*/
|
|
7507
7923
|
network: Network;
|
|
7508
7924
|
/**
|
|
@@ -7761,14 +8177,43 @@ export type UnilateralExitResponse = {
|
|
|
7761
8177
|
* The actual total on-chain fee the returned transactions pay at the
|
|
7762
8178
|
* requested rate, in satoshis. A resumed or partially-confirmed exit pays
|
|
7763
8179
|
* less because already-confirmed steps are not rebuilt.
|
|
8180
|
+
*
|
|
8181
|
+
* The sum of the three components below, which say who pays what:
|
|
8182
|
+
* `cpfp_fee_sat + fanout_fee_sat + sweep_fee_sat`. The first two come from
|
|
8183
|
+
* your funding UTXOs, the third off the value being recovered.
|
|
7764
8184
|
*/
|
|
7765
8185
|
totalFeeSat: bigint;
|
|
8186
|
+
/**
|
|
8187
|
+
* The part of `total_fee_sat` the CPFP children pay, funded by your UTXOs.
|
|
8188
|
+
* It does not reduce what the exit recovers.
|
|
8189
|
+
*/
|
|
8190
|
+
cpfpFeeSat: bigint;
|
|
8191
|
+
/**
|
|
8192
|
+
* The part of `total_fee_sat` the fan-out pays, funded by your UTXO. Zero
|
|
8193
|
+
* when this exit needed no fan-out, and when an earlier attempt's fan-out
|
|
8194
|
+
* had already confirmed.
|
|
8195
|
+
*/
|
|
8196
|
+
fanoutFeeSat: bigint;
|
|
8197
|
+
/**
|
|
8198
|
+
* The part of `total_fee_sat` the sweep pays, taken from the value it
|
|
8199
|
+
* moves, so this is the one component subtracted from what reaches the
|
|
8200
|
+
* destination. Zero while no refund is on-chain yet and the set carries no
|
|
8201
|
+
* sweep.
|
|
8202
|
+
*/
|
|
8203
|
+
sweepFeeSat: bigint;
|
|
7766
8204
|
leaves: Array<UnilateralExitLeaf>;
|
|
7767
8205
|
/**
|
|
7768
8206
|
* The full signed transaction set, in valid topological (broadcast) order
|
|
7769
8207
|
* with shared ancestors appearing once and the sweep last.
|
|
7770
8208
|
*/
|
|
7771
8209
|
transactions: Array<UnilateralExitTransaction>;
|
|
8210
|
+
/**
|
|
8211
|
+
* The funding UTXOs this exit was built from, as you supplied them. Hand
|
|
8212
|
+
* them back when you build the exit again and they are followed to whatever
|
|
8213
|
+
* they have since become, so an outpoint an earlier attempt already spent
|
|
8214
|
+
* still funds the rest.
|
|
8215
|
+
*/
|
|
8216
|
+
fundingInputs: Array<CpfpInput>;
|
|
7772
8217
|
};
|
|
7773
8218
|
/**
|
|
7774
8219
|
* Generated factory for {@link UnilateralExitResponse} record objects.
|
|
@@ -7818,7 +8263,12 @@ export type UnilateralExitTransaction = {
|
|
|
7818
8263
|
* one can be broadcast.
|
|
7819
8264
|
*/
|
|
7820
8265
|
dependsOn: Array<string>;
|
|
7821
|
-
|
|
8266
|
+
/**
|
|
8267
|
+
* Whether this transaction is on-chain, can go out now, or is waiting on
|
|
8268
|
+
* something. Resolved against the chain tip, so it accounts for
|
|
8269
|
+
* `csv_timelock_blocks` as well as `depends_on`.
|
|
8270
|
+
*/
|
|
8271
|
+
status: ExitTransactionStatus;
|
|
7822
8272
|
};
|
|
7823
8273
|
/**
|
|
7824
8274
|
* Generated factory for {@link UnilateralExitTransaction} record objects.
|
|
@@ -8105,6 +8555,40 @@ export declare const WalletSetup: Readonly<{
|
|
|
8105
8555
|
*/
|
|
8106
8556
|
defaults: () => Partial<WalletSetup>;
|
|
8107
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
|
+
}>;
|
|
8108
8592
|
/**
|
|
8109
8593
|
* A registered webhook entry.
|
|
8110
8594
|
*/
|
|
@@ -8974,6 +9458,7 @@ export declare enum ChainApiType {
|
|
|
8974
9458
|
export declare enum ChainServiceError_Tags {
|
|
8975
9459
|
InvalidAddress = "InvalidAddress",
|
|
8976
9460
|
ServiceConnectivity = "ServiceConnectivity",
|
|
9461
|
+
NotFound = "NotFound",
|
|
8977
9462
|
Generic = "Generic"
|
|
8978
9463
|
}
|
|
8979
9464
|
export declare const ChainServiceError: Readonly<{
|
|
@@ -9120,9 +9605,9 @@ export declare const ChainServiceError: Readonly<{
|
|
|
9120
9605
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
9121
9606
|
stackTraceLimit: number;
|
|
9122
9607
|
};
|
|
9123
|
-
|
|
9608
|
+
NotFound: {
|
|
9124
9609
|
new (v0: string): {
|
|
9125
|
-
readonly tag: ChainServiceError_Tags.
|
|
9610
|
+
readonly tag: ChainServiceError_Tags.NotFound;
|
|
9126
9611
|
readonly inner: Readonly<[string]>;
|
|
9127
9612
|
/**
|
|
9128
9613
|
* @private
|
|
@@ -9135,7 +9620,7 @@ export declare const ChainServiceError: Readonly<{
|
|
|
9135
9620
|
cause?: unknown;
|
|
9136
9621
|
};
|
|
9137
9622
|
"new"(v0: string): {
|
|
9138
|
-
readonly tag: ChainServiceError_Tags.
|
|
9623
|
+
readonly tag: ChainServiceError_Tags.NotFound;
|
|
9139
9624
|
readonly inner: Readonly<[string]>;
|
|
9140
9625
|
/**
|
|
9141
9626
|
* @private
|
|
@@ -9148,7 +9633,78 @@ export declare const ChainServiceError: Readonly<{
|
|
|
9148
9633
|
cause?: unknown;
|
|
9149
9634
|
};
|
|
9150
9635
|
instanceOf(obj: any): obj is {
|
|
9151
|
-
readonly tag: ChainServiceError_Tags.
|
|
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
|
+
};
|
|
9679
|
+
Generic: {
|
|
9680
|
+
new (v0: string): {
|
|
9681
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
9682
|
+
readonly inner: Readonly<[string]>;
|
|
9683
|
+
/**
|
|
9684
|
+
* @private
|
|
9685
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9686
|
+
*/
|
|
9687
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
9688
|
+
name: string;
|
|
9689
|
+
message: string;
|
|
9690
|
+
stack?: string;
|
|
9691
|
+
cause?: unknown;
|
|
9692
|
+
};
|
|
9693
|
+
"new"(v0: string): {
|
|
9694
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
9695
|
+
readonly inner: Readonly<[string]>;
|
|
9696
|
+
/**
|
|
9697
|
+
* @private
|
|
9698
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9699
|
+
*/
|
|
9700
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
9701
|
+
name: string;
|
|
9702
|
+
message: string;
|
|
9703
|
+
stack?: string;
|
|
9704
|
+
cause?: unknown;
|
|
9705
|
+
};
|
|
9706
|
+
instanceOf(obj: any): obj is {
|
|
9707
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
9152
9708
|
readonly inner: Readonly<[string]>;
|
|
9153
9709
|
/**
|
|
9154
9710
|
* @private
|
|
@@ -9193,24 +9749,257 @@ export declare const ChainServiceError: Readonly<{
|
|
|
9193
9749
|
};
|
|
9194
9750
|
}>;
|
|
9195
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
|
+
}
|
|
9196
9757
|
/**
|
|
9197
|
-
*
|
|
9758
|
+
* Why a claim was deferred rather than made.
|
|
9198
9759
|
*/
|
|
9199
|
-
export declare
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
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"
|
|
9213
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'>]>;
|
|
9214
10003
|
export declare enum ConversionChain_Tags {
|
|
9215
10004
|
Spark = "Spark",
|
|
9216
10005
|
Lightning = "Lightning",
|
|
@@ -9364,8 +10153,9 @@ export declare enum ConversionInfo_Tags {
|
|
|
9364
10153
|
*
|
|
9365
10154
|
* The variant identifies which provider handled the conversion:
|
|
9366
10155
|
* - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
|
|
9367
|
-
* - [`ConversionInfo::Orchestra`] for cross-chain
|
|
9368
|
-
* Orchestra (Spark → external chain
|
|
10156
|
+
* - [`ConversionInfo::Orchestra`] for cross-chain transfers via Flashnet
|
|
10157
|
+
* Orchestra, in either direction (Spark → external chain, or external
|
|
10158
|
+
* chain → Spark).
|
|
9369
10159
|
* - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
|
|
9370
10160
|
*/
|
|
9371
10161
|
export declare const ConversionInfo: Readonly<{
|
|
@@ -9494,21 +10284,33 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9494
10284
|
* Asset ticker (e.g. `"USDC"`, `"USDT"`).
|
|
9495
10285
|
*/ asset: string;
|
|
9496
10286
|
/**
|
|
9497
|
-
*
|
|
10287
|
+
* The target-chain address on a send, the receiving Spark address
|
|
10288
|
+
* on a receive.
|
|
9498
10289
|
*/ recipientAddress: string;
|
|
9499
10290
|
/**
|
|
9500
|
-
* Amount in
|
|
9501
|
-
* the rate the SDK used at prepare
|
|
10291
|
+
* Amount paid in, in `asset` base units. On a send it is the Spark
|
|
10292
|
+
* amount expressed in `asset` via the rate the SDK used at prepare
|
|
10293
|
+
* time. On a receive it is the deposit the sender made on `chain`.
|
|
9502
10294
|
*/ assetAmountIn: U128 | undefined;
|
|
9503
10295
|
/**
|
|
9504
|
-
* Estimated
|
|
10296
|
+
* Estimated amount delivered to the receiving end, frozen at prepare
|
|
10297
|
+
* time. In `asset` base units on a send, and in Spark-side units on
|
|
10298
|
+
* a receive (sats for Bitcoin, token base units for a token).
|
|
9505
10299
|
*/ estimatedOut: U128;
|
|
9506
10300
|
/**
|
|
9507
|
-
* Actual delivered amount,
|
|
10301
|
+
* Actual delivered amount, in the same units as `estimated_out`.
|
|
10302
|
+
* Unset until the order reaches a terminal state.
|
|
9508
10303
|
*/ deliveredAmount: U128 | undefined;
|
|
10304
|
+
/**
|
|
10305
|
+
* Transaction on `chain`, the non-Spark side of the conversion: the
|
|
10306
|
+
* delivery on a send, the funding deposit on a receive. Format follows
|
|
10307
|
+
* the chain (e.g. `0x`-prefixed hex on EVM, a base58 signature on
|
|
10308
|
+
* Solana). Unset until that transaction exists, and on orders that
|
|
10309
|
+
* failed or were refunded.
|
|
10310
|
+
*/ externalTxHash: string | undefined;
|
|
9509
10311
|
status: ConversionStatus;
|
|
9510
10312
|
/**
|
|
9511
|
-
* Best-available total fee in
|
|
10313
|
+
* Best-available total fee, in `asset` base units.
|
|
9512
10314
|
* Prepare-time estimate while pending, realized fee when Completed.
|
|
9513
10315
|
*/ feeAmount: U128 | undefined;
|
|
9514
10316
|
/**
|
|
@@ -9517,11 +10319,16 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9517
10319
|
/**
|
|
9518
10320
|
* Asset the service fee is denominated in. Unset means BTC sats.
|
|
9519
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;
|
|
9520
10326
|
/**
|
|
9521
10327
|
* Asset decimals (e.g. 6 for USDC).
|
|
9522
10328
|
*/ assetDecimals: number;
|
|
9523
10329
|
/**
|
|
9524
|
-
* Token contract / mint address
|
|
10330
|
+
* Token contract / mint address on `chain`. Unset when that side is
|
|
10331
|
+
* the chain's native asset.
|
|
9525
10332
|
*/ assetContract: string | undefined;
|
|
9526
10333
|
}): {
|
|
9527
10334
|
readonly tag: ConversionInfo_Tags.Orchestra;
|
|
@@ -9536,10 +10343,12 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9536
10343
|
assetAmountIn: U128 | undefined;
|
|
9537
10344
|
estimatedOut: U128;
|
|
9538
10345
|
deliveredAmount: U128 | undefined;
|
|
10346
|
+
externalTxHash: string | undefined;
|
|
9539
10347
|
status: ConversionStatus;
|
|
9540
10348
|
feeAmount: U128 | undefined;
|
|
9541
10349
|
serviceFeeAmount: U128 | undefined;
|
|
9542
10350
|
serviceFeeAsset: string | undefined;
|
|
10351
|
+
serviceFeeAssetDecimals: /*u32*/ number | undefined;
|
|
9543
10352
|
assetDecimals: number;
|
|
9544
10353
|
assetContract: string | undefined;
|
|
9545
10354
|
}>;
|
|
@@ -9571,21 +10380,33 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9571
10380
|
* Asset ticker (e.g. `"USDC"`, `"USDT"`).
|
|
9572
10381
|
*/ asset: string;
|
|
9573
10382
|
/**
|
|
9574
|
-
*
|
|
10383
|
+
* The target-chain address on a send, the receiving Spark address
|
|
10384
|
+
* on a receive.
|
|
9575
10385
|
*/ recipientAddress: string;
|
|
9576
10386
|
/**
|
|
9577
|
-
* Amount in
|
|
9578
|
-
* the rate the SDK used at prepare
|
|
10387
|
+
* Amount paid in, in `asset` base units. On a send it is the Spark
|
|
10388
|
+
* amount expressed in `asset` via the rate the SDK used at prepare
|
|
10389
|
+
* time. On a receive it is the deposit the sender made on `chain`.
|
|
9579
10390
|
*/ assetAmountIn: U128 | undefined;
|
|
9580
10391
|
/**
|
|
9581
|
-
* Estimated
|
|
10392
|
+
* Estimated amount delivered to the receiving end, frozen at prepare
|
|
10393
|
+
* time. In `asset` base units on a send, and in Spark-side units on
|
|
10394
|
+
* a receive (sats for Bitcoin, token base units for a token).
|
|
9582
10395
|
*/ estimatedOut: U128;
|
|
9583
10396
|
/**
|
|
9584
|
-
* Actual delivered amount,
|
|
10397
|
+
* Actual delivered amount, in the same units as `estimated_out`.
|
|
10398
|
+
* Unset until the order reaches a terminal state.
|
|
9585
10399
|
*/ deliveredAmount: U128 | undefined;
|
|
10400
|
+
/**
|
|
10401
|
+
* Transaction on `chain`, the non-Spark side of the conversion: the
|
|
10402
|
+
* delivery on a send, the funding deposit on a receive. Format follows
|
|
10403
|
+
* the chain (e.g. `0x`-prefixed hex on EVM, a base58 signature on
|
|
10404
|
+
* Solana). Unset until that transaction exists, and on orders that
|
|
10405
|
+
* failed or were refunded.
|
|
10406
|
+
*/ externalTxHash: string | undefined;
|
|
9586
10407
|
status: ConversionStatus;
|
|
9587
10408
|
/**
|
|
9588
|
-
* Best-available total fee in
|
|
10409
|
+
* Best-available total fee, in `asset` base units.
|
|
9589
10410
|
* Prepare-time estimate while pending, realized fee when Completed.
|
|
9590
10411
|
*/ feeAmount: U128 | undefined;
|
|
9591
10412
|
/**
|
|
@@ -9594,11 +10415,16 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9594
10415
|
/**
|
|
9595
10416
|
* Asset the service fee is denominated in. Unset means BTC sats.
|
|
9596
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;
|
|
9597
10422
|
/**
|
|
9598
10423
|
* Asset decimals (e.g. 6 for USDC).
|
|
9599
10424
|
*/ assetDecimals: number;
|
|
9600
10425
|
/**
|
|
9601
|
-
* Token contract / mint address
|
|
10426
|
+
* Token contract / mint address on `chain`. Unset when that side is
|
|
10427
|
+
* the chain's native asset.
|
|
9602
10428
|
*/ assetContract: string | undefined;
|
|
9603
10429
|
}): {
|
|
9604
10430
|
readonly tag: ConversionInfo_Tags.Orchestra;
|
|
@@ -9613,10 +10439,12 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9613
10439
|
assetAmountIn: U128 | undefined;
|
|
9614
10440
|
estimatedOut: U128;
|
|
9615
10441
|
deliveredAmount: U128 | undefined;
|
|
10442
|
+
externalTxHash: string | undefined;
|
|
9616
10443
|
status: ConversionStatus;
|
|
9617
10444
|
feeAmount: U128 | undefined;
|
|
9618
10445
|
serviceFeeAmount: U128 | undefined;
|
|
9619
10446
|
serviceFeeAsset: string | undefined;
|
|
10447
|
+
serviceFeeAssetDecimals: /*u32*/ number | undefined;
|
|
9620
10448
|
assetDecimals: number;
|
|
9621
10449
|
assetContract: string | undefined;
|
|
9622
10450
|
}>;
|
|
@@ -9639,10 +10467,12 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9639
10467
|
assetAmountIn: U128 | undefined;
|
|
9640
10468
|
estimatedOut: U128;
|
|
9641
10469
|
deliveredAmount: U128 | undefined;
|
|
10470
|
+
externalTxHash: string | undefined;
|
|
9642
10471
|
status: ConversionStatus;
|
|
9643
10472
|
feeAmount: U128 | undefined;
|
|
9644
10473
|
serviceFeeAmount: U128 | undefined;
|
|
9645
10474
|
serviceFeeAsset: string | undefined;
|
|
10475
|
+
serviceFeeAssetDecimals: /*u32*/ number | undefined;
|
|
9646
10476
|
assetDecimals: number;
|
|
9647
10477
|
assetContract: string | undefined;
|
|
9648
10478
|
}>;
|
|
@@ -9716,7 +10546,8 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9716
10546
|
* Asset decimals (e.g. 6 for USDT).
|
|
9717
10547
|
*/ assetDecimals: number;
|
|
9718
10548
|
/**
|
|
9719
|
-
* Token contract / mint address
|
|
10549
|
+
* Token contract / mint address on `chain`. Unset when that side is
|
|
10550
|
+
* the chain's native asset.
|
|
9720
10551
|
*/ assetContract: string | undefined;
|
|
9721
10552
|
}): {
|
|
9722
10553
|
readonly tag: ConversionInfo_Tags.Boltz;
|
|
@@ -9809,7 +10640,8 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9809
10640
|
* Asset decimals (e.g. 6 for USDT).
|
|
9810
10641
|
*/ assetDecimals: number;
|
|
9811
10642
|
/**
|
|
9812
|
-
* Token contract / mint address
|
|
10643
|
+
* Token contract / mint address on `chain`. Unset when that side is
|
|
10644
|
+
* the chain's native asset.
|
|
9813
10645
|
*/ assetContract: string | undefined;
|
|
9814
10646
|
}): {
|
|
9815
10647
|
readonly tag: ConversionInfo_Tags.Boltz;
|
|
@@ -9877,8 +10709,9 @@ export declare const ConversionInfo: Readonly<{
|
|
|
9877
10709
|
*
|
|
9878
10710
|
* The variant identifies which provider handled the conversion:
|
|
9879
10711
|
* - [`ConversionInfo::Amm`] for Spark token swaps via Flashnet AMM pools.
|
|
9880
|
-
* - [`ConversionInfo::Orchestra`] for cross-chain
|
|
9881
|
-
* Orchestra (Spark → external chain
|
|
10712
|
+
* - [`ConversionInfo::Orchestra`] for cross-chain transfers via Flashnet
|
|
10713
|
+
* Orchestra, in either direction (Spark → external chain, or external
|
|
10714
|
+
* chain → Spark).
|
|
9882
10715
|
* - [`ConversionInfo::Boltz`] for sats → stable-coin reverse swaps via Boltz.
|
|
9883
10716
|
*/
|
|
9884
10717
|
export type ConversionInfo = InstanceType<(typeof ConversionInfo)[keyof Omit<typeof ConversionInfo, 'instanceOf'>]>;
|
|
@@ -10409,19 +11242,34 @@ export declare enum CrossChainAddressFamily {
|
|
|
10409
11242
|
Tron = 2
|
|
10410
11243
|
}
|
|
10411
11244
|
/**
|
|
10412
|
-
*
|
|
10413
|
-
*
|
|
10414
|
-
* - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
|
|
10415
|
-
* wallet pays `amount + source_transfer_fee_sats` in total.
|
|
10416
|
-
* - `FeesIncluded`: `amount` is the wallet's total sats budget; the provider
|
|
10417
|
-
* leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
|
|
11245
|
+
* Which side of the transfer the request `amount` sizes: what leaves the
|
|
11246
|
+
* payer, or what reaches the receiver.
|
|
10418
11247
|
*/
|
|
10419
11248
|
export declare enum CrossChainFeeMode {
|
|
11249
|
+
/**
|
|
11250
|
+
* `amount` sizes the receiving end, and fees are paid on top.
|
|
11251
|
+
*
|
|
11252
|
+
* Sending: `amount` is the provider invoice/deposit target, and the
|
|
11253
|
+
* wallet pays `amount + source_transfer_fee_sats` in total.
|
|
11254
|
+
* Receiving: `amount` is what the wallet ends up with, and the deposit
|
|
11255
|
+
* the sender is asked for is sized above it to cover fees.
|
|
11256
|
+
*/
|
|
10420
11257
|
FeesExcluded = 0,
|
|
11258
|
+
/**
|
|
11259
|
+
* `amount` sizes the paying end, and fees come out of it.
|
|
11260
|
+
*
|
|
11261
|
+
* Sending: `amount` is the wallet's total sats budget, and the provider
|
|
11262
|
+
* leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
|
|
11263
|
+
* Receiving: `amount` is the deposit the sender makes, and the wallet
|
|
11264
|
+
* ends up with that minus fees.
|
|
11265
|
+
*/
|
|
10421
11266
|
FeesIncluded = 1
|
|
10422
11267
|
}
|
|
10423
11268
|
export declare enum CrossChainProvider {
|
|
10424
11269
|
Orchestra = 0,
|
|
11270
|
+
/**
|
|
11271
|
+
* Not operational: no routes are currently offered under this provider.
|
|
11272
|
+
*/
|
|
10425
11273
|
Boltz = 1
|
|
10426
11274
|
}
|
|
10427
11275
|
export declare enum CrossChainProviderContext_Tags {
|
|
@@ -10707,6 +11555,23 @@ export declare const CrossChainRouteFilter: Readonly<{
|
|
|
10707
11555
|
* `get_cross_chain_routes()` API.
|
|
10708
11556
|
*/
|
|
10709
11557
|
export type CrossChainRouteFilter = InstanceType<(typeof CrossChainRouteFilter)[keyof Omit<typeof CrossChainRouteFilter, 'instanceOf'>]>;
|
|
11558
|
+
/**
|
|
11559
|
+
* The rail a cross-chain payment is delivered over.
|
|
11560
|
+
*/
|
|
11561
|
+
export declare enum DeliveryMethod {
|
|
11562
|
+
/**
|
|
11563
|
+
* Delivered over the Spark network.
|
|
11564
|
+
*/
|
|
11565
|
+
Spark = 0,
|
|
11566
|
+
/**
|
|
11567
|
+
* Delivered over Lightning.
|
|
11568
|
+
*/
|
|
11569
|
+
Lightning = 1,
|
|
11570
|
+
/**
|
|
11571
|
+
* Delivered on-chain over Bitcoin.
|
|
11572
|
+
*/
|
|
11573
|
+
Bitcoin = 2
|
|
11574
|
+
}
|
|
10710
11575
|
export declare enum DepositClaimError_Tags {
|
|
10711
11576
|
MaxDepositClaimFeeExceeded = "MaxDepositClaimFeeExceeded",
|
|
10712
11577
|
MissingUtxo = "MissingUtxo",
|
|
@@ -11067,53 +11932,330 @@ export declare const ExitLeafSelection: Readonly<{
|
|
|
11067
11932
|
* @private
|
|
11068
11933
|
* This field is private and should not be used, use `tag` instead.
|
|
11069
11934
|
*/
|
|
11070
|
-
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
11935
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
11936
|
+
};
|
|
11937
|
+
};
|
|
11938
|
+
Specific: {
|
|
11939
|
+
new (inner: {
|
|
11940
|
+
leafIds: Array<string>;
|
|
11941
|
+
}): {
|
|
11942
|
+
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
11943
|
+
readonly inner: Readonly<{
|
|
11944
|
+
leafIds: Array<string>;
|
|
11945
|
+
}>;
|
|
11946
|
+
/**
|
|
11947
|
+
* @private
|
|
11948
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11949
|
+
*/
|
|
11950
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
11951
|
+
};
|
|
11952
|
+
"new"(inner: {
|
|
11953
|
+
leafIds: Array<string>;
|
|
11954
|
+
}): {
|
|
11955
|
+
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
11956
|
+
readonly inner: Readonly<{
|
|
11957
|
+
leafIds: Array<string>;
|
|
11958
|
+
}>;
|
|
11959
|
+
/**
|
|
11960
|
+
* @private
|
|
11961
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11962
|
+
*/
|
|
11963
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
11964
|
+
};
|
|
11965
|
+
instanceOf(obj: any): obj is {
|
|
11966
|
+
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
11967
|
+
readonly inner: Readonly<{
|
|
11968
|
+
leafIds: Array<string>;
|
|
11969
|
+
}>;
|
|
11970
|
+
/**
|
|
11971
|
+
* @private
|
|
11972
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11973
|
+
*/
|
|
11974
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
11975
|
+
};
|
|
11976
|
+
};
|
|
11977
|
+
}>;
|
|
11978
|
+
/**
|
|
11979
|
+
* Which leaves to exit.
|
|
11980
|
+
*/
|
|
11981
|
+
export type ExitLeafSelection = InstanceType<(typeof ExitLeafSelection)[keyof Omit<typeof ExitLeafSelection, 'instanceOf'>]>;
|
|
11982
|
+
/**
|
|
11983
|
+
* Which of a node's two pre-signed spends took it on-chain.
|
|
11984
|
+
*/
|
|
11985
|
+
export declare enum ExitNodeConfirmation {
|
|
11986
|
+
/**
|
|
11987
|
+
* The CPFP transaction, whose fee a child paid.
|
|
11988
|
+
*/
|
|
11989
|
+
Cpfp = 0,
|
|
11990
|
+
/**
|
|
11991
|
+
* The direct transaction, which pays its own fee. A leaf that went out this
|
|
11992
|
+
* way is refunded by its direct refund transaction.
|
|
11993
|
+
*/
|
|
11994
|
+
Direct = 1
|
|
11995
|
+
}
|
|
11996
|
+
export declare enum ExitRefundState_Tags {
|
|
11997
|
+
OnChain = "OnChain",
|
|
11998
|
+
Swept = "Swept"
|
|
11999
|
+
}
|
|
12000
|
+
export declare const ExitRefundState: Readonly<{
|
|
12001
|
+
instanceOf: (obj: any) => obj is ExitRefundState;
|
|
12002
|
+
OnChain: {
|
|
12003
|
+
new (inner: {
|
|
12004
|
+
txHex: string;
|
|
12005
|
+
vout: number;
|
|
12006
|
+
valueSat: bigint;
|
|
12007
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12008
|
+
}): {
|
|
12009
|
+
readonly tag: ExitRefundState_Tags.OnChain;
|
|
12010
|
+
readonly inner: Readonly<{
|
|
12011
|
+
txHex: string;
|
|
12012
|
+
vout: number;
|
|
12013
|
+
valueSat: bigint;
|
|
12014
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12015
|
+
}>;
|
|
12016
|
+
/**
|
|
12017
|
+
* @private
|
|
12018
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12019
|
+
*/
|
|
12020
|
+
readonly [uniffiTypeNameSymbol]: "ExitRefundState";
|
|
12021
|
+
};
|
|
12022
|
+
"new"(inner: {
|
|
12023
|
+
txHex: string;
|
|
12024
|
+
vout: number;
|
|
12025
|
+
valueSat: bigint;
|
|
12026
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12027
|
+
}): {
|
|
12028
|
+
readonly tag: ExitRefundState_Tags.OnChain;
|
|
12029
|
+
readonly inner: Readonly<{
|
|
12030
|
+
txHex: string;
|
|
12031
|
+
vout: number;
|
|
12032
|
+
valueSat: bigint;
|
|
12033
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12034
|
+
}>;
|
|
12035
|
+
/**
|
|
12036
|
+
* @private
|
|
12037
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12038
|
+
*/
|
|
12039
|
+
readonly [uniffiTypeNameSymbol]: "ExitRefundState";
|
|
12040
|
+
};
|
|
12041
|
+
instanceOf(obj: any): obj is {
|
|
12042
|
+
readonly tag: ExitRefundState_Tags.OnChain;
|
|
12043
|
+
readonly inner: Readonly<{
|
|
12044
|
+
txHex: string;
|
|
12045
|
+
vout: number;
|
|
12046
|
+
valueSat: bigint;
|
|
12047
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12048
|
+
}>;
|
|
12049
|
+
/**
|
|
12050
|
+
* @private
|
|
12051
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12052
|
+
*/
|
|
12053
|
+
readonly [uniffiTypeNameSymbol]: "ExitRefundState";
|
|
12054
|
+
};
|
|
12055
|
+
};
|
|
12056
|
+
Swept: {
|
|
12057
|
+
new (): {
|
|
12058
|
+
readonly tag: ExitRefundState_Tags.Swept;
|
|
12059
|
+
/**
|
|
12060
|
+
* @private
|
|
12061
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12062
|
+
*/
|
|
12063
|
+
readonly [uniffiTypeNameSymbol]: "ExitRefundState";
|
|
12064
|
+
};
|
|
12065
|
+
"new"(): {
|
|
12066
|
+
readonly tag: ExitRefundState_Tags.Swept;
|
|
12067
|
+
/**
|
|
12068
|
+
* @private
|
|
12069
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12070
|
+
*/
|
|
12071
|
+
readonly [uniffiTypeNameSymbol]: "ExitRefundState";
|
|
12072
|
+
};
|
|
12073
|
+
instanceOf(obj: any): obj is {
|
|
12074
|
+
readonly tag: ExitRefundState_Tags.Swept;
|
|
12075
|
+
/**
|
|
12076
|
+
* @private
|
|
12077
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12078
|
+
*/
|
|
12079
|
+
readonly [uniffiTypeNameSymbol]: "ExitRefundState";
|
|
12080
|
+
};
|
|
12081
|
+
};
|
|
12082
|
+
}>;
|
|
12083
|
+
export type ExitRefundState = InstanceType<(typeof ExitRefundState)[keyof Omit<typeof ExitRefundState, 'instanceOf'>]>;
|
|
12084
|
+
export declare enum ExitTransactionStatus_Tags {
|
|
12085
|
+
Confirmed = "Confirmed",
|
|
12086
|
+
Ready = "Ready",
|
|
12087
|
+
WaitingForDependencies = "WaitingForDependencies",
|
|
12088
|
+
WaitingForTimelock = "WaitingForTimelock",
|
|
12089
|
+
Unverified = "Unverified"
|
|
12090
|
+
}
|
|
12091
|
+
/**
|
|
12092
|
+
* Where a transaction in the exit path stands: on-chain, ready to send, or
|
|
12093
|
+
* waiting for something.
|
|
12094
|
+
*/
|
|
12095
|
+
export declare const ExitTransactionStatus: Readonly<{
|
|
12096
|
+
instanceOf: (obj: any) => obj is ExitTransactionStatus;
|
|
12097
|
+
Confirmed: {
|
|
12098
|
+
new (inner: {
|
|
12099
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12100
|
+
}): {
|
|
12101
|
+
readonly tag: ExitTransactionStatus_Tags.Confirmed;
|
|
12102
|
+
readonly inner: Readonly<{
|
|
12103
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12104
|
+
}>;
|
|
12105
|
+
/**
|
|
12106
|
+
* @private
|
|
12107
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12108
|
+
*/
|
|
12109
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12110
|
+
};
|
|
12111
|
+
"new"(inner: {
|
|
12112
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12113
|
+
}): {
|
|
12114
|
+
readonly tag: ExitTransactionStatus_Tags.Confirmed;
|
|
12115
|
+
readonly inner: Readonly<{
|
|
12116
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12117
|
+
}>;
|
|
12118
|
+
/**
|
|
12119
|
+
* @private
|
|
12120
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12121
|
+
*/
|
|
12122
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12123
|
+
};
|
|
12124
|
+
instanceOf(obj: any): obj is {
|
|
12125
|
+
readonly tag: ExitTransactionStatus_Tags.Confirmed;
|
|
12126
|
+
readonly inner: Readonly<{
|
|
12127
|
+
blockHeight: /*u32*/ number | undefined;
|
|
12128
|
+
}>;
|
|
12129
|
+
/**
|
|
12130
|
+
* @private
|
|
12131
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12132
|
+
*/
|
|
12133
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12134
|
+
};
|
|
12135
|
+
};
|
|
12136
|
+
Ready: {
|
|
12137
|
+
new (): {
|
|
12138
|
+
readonly tag: ExitTransactionStatus_Tags.Ready;
|
|
12139
|
+
/**
|
|
12140
|
+
* @private
|
|
12141
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12142
|
+
*/
|
|
12143
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12144
|
+
};
|
|
12145
|
+
"new"(): {
|
|
12146
|
+
readonly tag: ExitTransactionStatus_Tags.Ready;
|
|
12147
|
+
/**
|
|
12148
|
+
* @private
|
|
12149
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12150
|
+
*/
|
|
12151
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12152
|
+
};
|
|
12153
|
+
instanceOf(obj: any): obj is {
|
|
12154
|
+
readonly tag: ExitTransactionStatus_Tags.Ready;
|
|
12155
|
+
/**
|
|
12156
|
+
* @private
|
|
12157
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12158
|
+
*/
|
|
12159
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12160
|
+
};
|
|
12161
|
+
};
|
|
12162
|
+
WaitingForDependencies: {
|
|
12163
|
+
new (): {
|
|
12164
|
+
readonly tag: ExitTransactionStatus_Tags.WaitingForDependencies;
|
|
12165
|
+
/**
|
|
12166
|
+
* @private
|
|
12167
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12168
|
+
*/
|
|
12169
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12170
|
+
};
|
|
12171
|
+
"new"(): {
|
|
12172
|
+
readonly tag: ExitTransactionStatus_Tags.WaitingForDependencies;
|
|
12173
|
+
/**
|
|
12174
|
+
* @private
|
|
12175
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12176
|
+
*/
|
|
12177
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12178
|
+
};
|
|
12179
|
+
instanceOf(obj: any): obj is {
|
|
12180
|
+
readonly tag: ExitTransactionStatus_Tags.WaitingForDependencies;
|
|
12181
|
+
/**
|
|
12182
|
+
* @private
|
|
12183
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12184
|
+
*/
|
|
12185
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12186
|
+
};
|
|
12187
|
+
};
|
|
12188
|
+
WaitingForTimelock: {
|
|
12189
|
+
new (inner: {
|
|
12190
|
+
spendableAtHeight: /*u32*/ number | undefined;
|
|
12191
|
+
}): {
|
|
12192
|
+
readonly tag: ExitTransactionStatus_Tags.WaitingForTimelock;
|
|
12193
|
+
readonly inner: Readonly<{
|
|
12194
|
+
spendableAtHeight: /*u32*/ number | undefined;
|
|
12195
|
+
}>;
|
|
12196
|
+
/**
|
|
12197
|
+
* @private
|
|
12198
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12199
|
+
*/
|
|
12200
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12201
|
+
};
|
|
12202
|
+
"new"(inner: {
|
|
12203
|
+
spendableAtHeight: /*u32*/ number | undefined;
|
|
12204
|
+
}): {
|
|
12205
|
+
readonly tag: ExitTransactionStatus_Tags.WaitingForTimelock;
|
|
12206
|
+
readonly inner: Readonly<{
|
|
12207
|
+
spendableAtHeight: /*u32*/ number | undefined;
|
|
12208
|
+
}>;
|
|
12209
|
+
/**
|
|
12210
|
+
* @private
|
|
12211
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12212
|
+
*/
|
|
12213
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
12214
|
+
};
|
|
12215
|
+
instanceOf(obj: any): obj is {
|
|
12216
|
+
readonly tag: ExitTransactionStatus_Tags.WaitingForTimelock;
|
|
12217
|
+
readonly inner: Readonly<{
|
|
12218
|
+
spendableAtHeight: /*u32*/ number | undefined;
|
|
12219
|
+
}>;
|
|
12220
|
+
/**
|
|
12221
|
+
* @private
|
|
12222
|
+
* This field is private and should not be used, use `tag` instead.
|
|
12223
|
+
*/
|
|
12224
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
11071
12225
|
};
|
|
11072
12226
|
};
|
|
11073
|
-
|
|
11074
|
-
new (
|
|
11075
|
-
|
|
11076
|
-
}): {
|
|
11077
|
-
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
11078
|
-
readonly inner: Readonly<{
|
|
11079
|
-
leafIds: Array<string>;
|
|
11080
|
-
}>;
|
|
12227
|
+
Unverified: {
|
|
12228
|
+
new (): {
|
|
12229
|
+
readonly tag: ExitTransactionStatus_Tags.Unverified;
|
|
11081
12230
|
/**
|
|
11082
12231
|
* @private
|
|
11083
12232
|
* This field is private and should not be used, use `tag` instead.
|
|
11084
12233
|
*/
|
|
11085
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
12234
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
11086
12235
|
};
|
|
11087
|
-
"new"(
|
|
11088
|
-
|
|
11089
|
-
}): {
|
|
11090
|
-
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
11091
|
-
readonly inner: Readonly<{
|
|
11092
|
-
leafIds: Array<string>;
|
|
11093
|
-
}>;
|
|
12236
|
+
"new"(): {
|
|
12237
|
+
readonly tag: ExitTransactionStatus_Tags.Unverified;
|
|
11094
12238
|
/**
|
|
11095
12239
|
* @private
|
|
11096
12240
|
* This field is private and should not be used, use `tag` instead.
|
|
11097
12241
|
*/
|
|
11098
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
12242
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
11099
12243
|
};
|
|
11100
12244
|
instanceOf(obj: any): obj is {
|
|
11101
|
-
readonly tag:
|
|
11102
|
-
readonly inner: Readonly<{
|
|
11103
|
-
leafIds: Array<string>;
|
|
11104
|
-
}>;
|
|
12245
|
+
readonly tag: ExitTransactionStatus_Tags.Unverified;
|
|
11105
12246
|
/**
|
|
11106
12247
|
* @private
|
|
11107
12248
|
* This field is private and should not be used, use `tag` instead.
|
|
11108
12249
|
*/
|
|
11109
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
12250
|
+
readonly [uniffiTypeNameSymbol]: "ExitTransactionStatus";
|
|
11110
12251
|
};
|
|
11111
12252
|
};
|
|
11112
12253
|
}>;
|
|
11113
12254
|
/**
|
|
11114
|
-
*
|
|
12255
|
+
* Where a transaction in the exit path stands: on-chain, ready to send, or
|
|
12256
|
+
* waiting for something.
|
|
11115
12257
|
*/
|
|
11116
|
-
export type
|
|
12258
|
+
export type ExitTransactionStatus = InstanceType<(typeof ExitTransactionStatus)[keyof Omit<typeof ExitTransactionStatus, 'instanceOf'>]>;
|
|
11117
12259
|
export declare enum ExternalFrostDerivation_Tags {
|
|
11118
12260
|
SigningLeaf = "SigningLeaf",
|
|
11119
12261
|
StaticDeposit = "StaticDeposit",
|
|
@@ -11842,7 +12984,8 @@ export declare const InputType: Readonly<{
|
|
|
11842
12984
|
export type InputType = InstanceType<(typeof InputType)[keyof Omit<typeof InputType, 'instanceOf'>]>;
|
|
11843
12985
|
export declare enum InstantClaimStatus_Tags {
|
|
11844
12986
|
Declined = "Declined",
|
|
11845
|
-
Submitted = "Submitted"
|
|
12987
|
+
Submitted = "Submitted",
|
|
12988
|
+
Claimed = "Claimed"
|
|
11846
12989
|
}
|
|
11847
12990
|
/**
|
|
11848
12991
|
* State of an instant claim attempt on a deposit.
|
|
@@ -11932,6 +13075,32 @@ export declare const InstantClaimStatus: Readonly<{
|
|
|
11932
13075
|
readonly [uniffiTypeNameSymbol]: "InstantClaimStatus";
|
|
11933
13076
|
};
|
|
11934
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
|
+
};
|
|
11935
13104
|
}>;
|
|
11936
13105
|
/**
|
|
11937
13106
|
* State of an instant claim attempt on a deposit.
|
|
@@ -12144,7 +13313,8 @@ export declare const MaxFee: Readonly<{
|
|
|
12144
13313
|
export type MaxFee = InstanceType<(typeof MaxFee)[keyof Omit<typeof MaxFee, 'instanceOf'>]>;
|
|
12145
13314
|
export declare enum Network {
|
|
12146
13315
|
Mainnet = 0,
|
|
12147
|
-
Regtest = 1
|
|
13316
|
+
Regtest = 1,
|
|
13317
|
+
Signet = 2
|
|
12148
13318
|
}
|
|
12149
13319
|
export declare enum OnchainConfirmationSpeed {
|
|
12150
13320
|
Fast = 0,
|
|
@@ -14076,16 +15246,16 @@ export declare const PaymentRequest: Readonly<{
|
|
|
14076
15246
|
route: CrossChainRoutePair;
|
|
14077
15247
|
/**
|
|
14078
15248
|
* Maximum slippage tolerance in basis points (1/100 of a percent)
|
|
14079
|
-
* for the cross-chain quote. Must be in
|
|
14080
|
-
* [`Config::default_slippage_bps`] when
|
|
14081
|
-
* defaults to 100 bps (1%)
|
|
15249
|
+
* for the cross-chain quote. Must be in 10 to 500. Falls back to
|
|
15250
|
+
* [`Config::default_slippage_bps`] when unset, which itself
|
|
15251
|
+
* defaults to 100 bps (1%).
|
|
14082
15252
|
*/ maxSlippageBps: /*u32*/ number | undefined;
|
|
14083
15253
|
/**
|
|
14084
15254
|
* Target-overpay pad in basis points applied on `FeesExcluded`
|
|
14085
15255
|
* conversion sends. Inflates the destination target before quoting
|
|
14086
15256
|
* so the recipient lands at or above the user's requested amount
|
|
14087
|
-
* despite provider slippage. Must be in
|
|
14088
|
-
* [`CrossChainConfig::default_target_overpay_bps`] when
|
|
15257
|
+
* despite provider slippage. Must be in 0 to 500. Falls back to
|
|
15258
|
+
* [`CrossChainConfig::default_target_overpay_bps`] when unset,
|
|
14089
15259
|
* which itself defaults to 15 bps.
|
|
14090
15260
|
*/ targetOverpayBps: /*u32*/ number | undefined;
|
|
14091
15261
|
}): {
|
|
@@ -14107,16 +15277,16 @@ export declare const PaymentRequest: Readonly<{
|
|
|
14107
15277
|
route: CrossChainRoutePair;
|
|
14108
15278
|
/**
|
|
14109
15279
|
* Maximum slippage tolerance in basis points (1/100 of a percent)
|
|
14110
|
-
* for the cross-chain quote. Must be in
|
|
14111
|
-
* [`Config::default_slippage_bps`] when
|
|
14112
|
-
* defaults to 100 bps (1%)
|
|
15280
|
+
* for the cross-chain quote. Must be in 10 to 500. Falls back to
|
|
15281
|
+
* [`Config::default_slippage_bps`] when unset, which itself
|
|
15282
|
+
* defaults to 100 bps (1%).
|
|
14113
15283
|
*/ maxSlippageBps: /*u32*/ number | undefined;
|
|
14114
15284
|
/**
|
|
14115
15285
|
* Target-overpay pad in basis points applied on `FeesExcluded`
|
|
14116
15286
|
* conversion sends. Inflates the destination target before quoting
|
|
14117
15287
|
* so the recipient lands at or above the user's requested amount
|
|
14118
|
-
* despite provider slippage. Must be in
|
|
14119
|
-
* [`CrossChainConfig::default_target_overpay_bps`] when
|
|
15288
|
+
* despite provider slippage. Must be in 0 to 500. Falls back to
|
|
15289
|
+
* [`CrossChainConfig::default_target_overpay_bps`] when unset,
|
|
14120
15290
|
* which itself defaults to 15 bps.
|
|
14121
15291
|
*/ targetOverpayBps: /*u32*/ number | undefined;
|
|
14122
15292
|
}): {
|
|
@@ -15179,7 +16349,8 @@ export declare enum ReceivePaymentMethod_Tags {
|
|
|
15179
16349
|
SparkAddress = "SparkAddress",
|
|
15180
16350
|
SparkInvoice = "SparkInvoice",
|
|
15181
16351
|
BitcoinAddress = "BitcoinAddress",
|
|
15182
|
-
Bolt11Invoice = "Bolt11Invoice"
|
|
16352
|
+
Bolt11Invoice = "Bolt11Invoice",
|
|
16353
|
+
CrossChain = "CrossChain"
|
|
15183
16354
|
}
|
|
15184
16355
|
export declare const ReceivePaymentMethod: Readonly<{
|
|
15185
16356
|
instanceOf: (obj: any) => obj is ReceivePaymentMethod;
|
|
@@ -15414,6 +16585,130 @@ export declare const ReceivePaymentMethod: Readonly<{
|
|
|
15414
16585
|
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
15415
16586
|
};
|
|
15416
16587
|
};
|
|
16588
|
+
CrossChain: {
|
|
16589
|
+
new (inner: {
|
|
16590
|
+
/**
|
|
16591
|
+
* The selected cross-chain route in the receive direction.
|
|
16592
|
+
*/ route: CrossChainRoutePair;
|
|
16593
|
+
/**
|
|
16594
|
+
* The amount, in the source asset's base units (`route.decimals`).
|
|
16595
|
+
* USD-stable sources are at parity, so `1 USD = 10^route.decimals`
|
|
16596
|
+
* (e.g. `1_000_000` for 6-decimal USDC/USDT, `10^18` for 18-decimal
|
|
16597
|
+
* BSC USDC).
|
|
16598
|
+
*
|
|
16599
|
+
* - `FeesExcluded` (default): what the receiver ends up with, sized
|
|
16600
|
+
* as if `amount` source units were converted to the Spark-side
|
|
16601
|
+
* destination at parity (USDB) or the live BTC/USD rate (Bitcoin).
|
|
16602
|
+
* - `FeesIncluded`: what the sender deposits. The receiver ends up
|
|
16603
|
+
* with that amount minus provider fees.
|
|
16604
|
+
*/ amount: U128;
|
|
16605
|
+
/**
|
|
16606
|
+
* Spark-side asset the receiver wants delivered. When absent, the
|
|
16607
|
+
* SDK auto-selects: the wallet's active stable-balance token if
|
|
16608
|
+
* the route supports it, otherwise Bitcoin (sats). When set, the
|
|
16609
|
+
* value must appear in the route's `accepted_assets`.
|
|
16610
|
+
*/ destination: SparkAsset | undefined;
|
|
16611
|
+
/**
|
|
16612
|
+
* How `amount` should be interpreted. When absent, defaults to
|
|
16613
|
+
* `FeesExcluded`.
|
|
16614
|
+
*/ feeMode: CrossChainFeeMode | undefined;
|
|
16615
|
+
/**
|
|
16616
|
+
* Maximum slippage in basis points. When absent, the SDK default
|
|
16617
|
+
* (100 bps) is used.
|
|
16618
|
+
*/ maxSlippageBps: /*u32*/ number | undefined;
|
|
16619
|
+
/**
|
|
16620
|
+
* Per-request override for the overpay buffer applied to the
|
|
16621
|
+
* sender's deposit when `fee_mode == FeesExcluded`. Range 0 to 500.
|
|
16622
|
+
* When absent, falls back to `CrossChainConfig::default_target_overpay_bps`
|
|
16623
|
+
* then the built-in default (15 bps). Ignored when `fee_mode`
|
|
16624
|
+
* is `FeesIncluded`.
|
|
16625
|
+
*/ targetOverpayBps: /*u32*/ number | undefined;
|
|
16626
|
+
}): {
|
|
16627
|
+
readonly tag: ReceivePaymentMethod_Tags.CrossChain;
|
|
16628
|
+
readonly inner: Readonly<{
|
|
16629
|
+
route: CrossChainRoutePair;
|
|
16630
|
+
amount: U128;
|
|
16631
|
+
destination: SparkAsset | undefined;
|
|
16632
|
+
feeMode: CrossChainFeeMode | undefined;
|
|
16633
|
+
maxSlippageBps: /*u32*/ number | undefined;
|
|
16634
|
+
targetOverpayBps: /*u32*/ number | undefined;
|
|
16635
|
+
}>;
|
|
16636
|
+
/**
|
|
16637
|
+
* @private
|
|
16638
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16639
|
+
*/
|
|
16640
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
16641
|
+
};
|
|
16642
|
+
"new"(inner: {
|
|
16643
|
+
/**
|
|
16644
|
+
* The selected cross-chain route in the receive direction.
|
|
16645
|
+
*/ route: CrossChainRoutePair;
|
|
16646
|
+
/**
|
|
16647
|
+
* The amount, in the source asset's base units (`route.decimals`).
|
|
16648
|
+
* USD-stable sources are at parity, so `1 USD = 10^route.decimals`
|
|
16649
|
+
* (e.g. `1_000_000` for 6-decimal USDC/USDT, `10^18` for 18-decimal
|
|
16650
|
+
* BSC USDC).
|
|
16651
|
+
*
|
|
16652
|
+
* - `FeesExcluded` (default): what the receiver ends up with, sized
|
|
16653
|
+
* as if `amount` source units were converted to the Spark-side
|
|
16654
|
+
* destination at parity (USDB) or the live BTC/USD rate (Bitcoin).
|
|
16655
|
+
* - `FeesIncluded`: what the sender deposits. The receiver ends up
|
|
16656
|
+
* with that amount minus provider fees.
|
|
16657
|
+
*/ amount: U128;
|
|
16658
|
+
/**
|
|
16659
|
+
* Spark-side asset the receiver wants delivered. When absent, the
|
|
16660
|
+
* SDK auto-selects: the wallet's active stable-balance token if
|
|
16661
|
+
* the route supports it, otherwise Bitcoin (sats). When set, the
|
|
16662
|
+
* value must appear in the route's `accepted_assets`.
|
|
16663
|
+
*/ destination: SparkAsset | undefined;
|
|
16664
|
+
/**
|
|
16665
|
+
* How `amount` should be interpreted. When absent, defaults to
|
|
16666
|
+
* `FeesExcluded`.
|
|
16667
|
+
*/ feeMode: CrossChainFeeMode | undefined;
|
|
16668
|
+
/**
|
|
16669
|
+
* Maximum slippage in basis points. When absent, the SDK default
|
|
16670
|
+
* (100 bps) is used.
|
|
16671
|
+
*/ maxSlippageBps: /*u32*/ number | undefined;
|
|
16672
|
+
/**
|
|
16673
|
+
* Per-request override for the overpay buffer applied to the
|
|
16674
|
+
* sender's deposit when `fee_mode == FeesExcluded`. Range 0 to 500.
|
|
16675
|
+
* When absent, falls back to `CrossChainConfig::default_target_overpay_bps`
|
|
16676
|
+
* then the built-in default (15 bps). Ignored when `fee_mode`
|
|
16677
|
+
* is `FeesIncluded`.
|
|
16678
|
+
*/ targetOverpayBps: /*u32*/ number | undefined;
|
|
16679
|
+
}): {
|
|
16680
|
+
readonly tag: ReceivePaymentMethod_Tags.CrossChain;
|
|
16681
|
+
readonly inner: Readonly<{
|
|
16682
|
+
route: CrossChainRoutePair;
|
|
16683
|
+
amount: U128;
|
|
16684
|
+
destination: SparkAsset | undefined;
|
|
16685
|
+
feeMode: CrossChainFeeMode | undefined;
|
|
16686
|
+
maxSlippageBps: /*u32*/ number | undefined;
|
|
16687
|
+
targetOverpayBps: /*u32*/ number | undefined;
|
|
16688
|
+
}>;
|
|
16689
|
+
/**
|
|
16690
|
+
* @private
|
|
16691
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16692
|
+
*/
|
|
16693
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
16694
|
+
};
|
|
16695
|
+
instanceOf(obj: any): obj is {
|
|
16696
|
+
readonly tag: ReceivePaymentMethod_Tags.CrossChain;
|
|
16697
|
+
readonly inner: Readonly<{
|
|
16698
|
+
route: CrossChainRoutePair;
|
|
16699
|
+
amount: U128;
|
|
16700
|
+
destination: SparkAsset | undefined;
|
|
16701
|
+
feeMode: CrossChainFeeMode | undefined;
|
|
16702
|
+
maxSlippageBps: /*u32*/ number | undefined;
|
|
16703
|
+
targetOverpayBps: /*u32*/ number | undefined;
|
|
16704
|
+
}>;
|
|
16705
|
+
/**
|
|
16706
|
+
* @private
|
|
16707
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16708
|
+
*/
|
|
16709
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
16710
|
+
};
|
|
16711
|
+
};
|
|
15417
16712
|
}>;
|
|
15418
16713
|
export type ReceivePaymentMethod = InstanceType<(typeof ReceivePaymentMethod)[keyof Omit<typeof ReceivePaymentMethod, 'instanceOf'>]>;
|
|
15419
16714
|
export declare enum RefundState_Tags {
|
|
@@ -15500,6 +16795,8 @@ export declare enum SdkError_Tags {
|
|
|
15500
16795
|
InsufficientFunds = "InsufficientFunds",
|
|
15501
16796
|
InvalidUuid = "InvalidUuid",
|
|
15502
16797
|
InvalidInput = "InvalidInput",
|
|
16798
|
+
CrossChainAmountOutOfRange = "CrossChainAmountOutOfRange",
|
|
16799
|
+
CrossChainRouteUnavailable = "CrossChainRouteUnavailable",
|
|
15503
16800
|
NetworkError = "NetworkError",
|
|
15504
16801
|
StorageError = "StorageError",
|
|
15505
16802
|
ChainServiceError = "ChainServiceError",
|
|
@@ -15512,7 +16809,6 @@ export declare enum SdkError_Tags {
|
|
|
15512
16809
|
OptimizationAlreadyRunning = "OptimizationAlreadyRunning",
|
|
15513
16810
|
OptimizationCancelled = "OptimizationCancelled",
|
|
15514
16811
|
InsufficientCpfpFunds = "InsufficientCpfpFunds",
|
|
15515
|
-
FundingUtxoConflict = "FundingUtxoConflict",
|
|
15516
16812
|
Generic = "Generic"
|
|
15517
16813
|
}
|
|
15518
16814
|
/**
|
|
@@ -15612,16 +16908,166 @@ export declare const SdkError: Readonly<{
|
|
|
15612
16908
|
stack?: string;
|
|
15613
16909
|
cause?: unknown;
|
|
15614
16910
|
};
|
|
15615
|
-
"new"(inner: {
|
|
15616
|
-
/**
|
|
15617
|
-
* The token that cannot cover the payment. Unset when the shortfall is
|
|
15618
|
-
* in sats or when no single token can be named.
|
|
15619
|
-
*/ tokenIdentifier: string | undefined;
|
|
15620
|
-
}): {
|
|
15621
|
-
readonly tag: SdkError_Tags.InsufficientFunds;
|
|
15622
|
-
readonly inner: Readonly<{
|
|
15623
|
-
tokenIdentifier: string | undefined;
|
|
15624
|
-
}>;
|
|
16911
|
+
"new"(inner: {
|
|
16912
|
+
/**
|
|
16913
|
+
* The token that cannot cover the payment. Unset when the shortfall is
|
|
16914
|
+
* in sats or when no single token can be named.
|
|
16915
|
+
*/ tokenIdentifier: string | undefined;
|
|
16916
|
+
}): {
|
|
16917
|
+
readonly tag: SdkError_Tags.InsufficientFunds;
|
|
16918
|
+
readonly inner: Readonly<{
|
|
16919
|
+
tokenIdentifier: string | undefined;
|
|
16920
|
+
}>;
|
|
16921
|
+
/**
|
|
16922
|
+
* @private
|
|
16923
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16924
|
+
*/
|
|
16925
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16926
|
+
name: string;
|
|
16927
|
+
message: string;
|
|
16928
|
+
stack?: string;
|
|
16929
|
+
cause?: unknown;
|
|
16930
|
+
};
|
|
16931
|
+
instanceOf(obj: any): obj is {
|
|
16932
|
+
readonly tag: SdkError_Tags.InsufficientFunds;
|
|
16933
|
+
readonly inner: Readonly<{
|
|
16934
|
+
tokenIdentifier: string | undefined;
|
|
16935
|
+
}>;
|
|
16936
|
+
/**
|
|
16937
|
+
* @private
|
|
16938
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16939
|
+
*/
|
|
16940
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16941
|
+
name: string;
|
|
16942
|
+
message: string;
|
|
16943
|
+
stack?: string;
|
|
16944
|
+
cause?: unknown;
|
|
16945
|
+
};
|
|
16946
|
+
hasInner(obj: any): obj is {
|
|
16947
|
+
readonly tag: SdkError_Tags.InsufficientFunds;
|
|
16948
|
+
readonly inner: Readonly<{
|
|
16949
|
+
tokenIdentifier: string | undefined;
|
|
16950
|
+
}>;
|
|
16951
|
+
/**
|
|
16952
|
+
* @private
|
|
16953
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16954
|
+
*/
|
|
16955
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16956
|
+
name: string;
|
|
16957
|
+
message: string;
|
|
16958
|
+
stack?: string;
|
|
16959
|
+
cause?: unknown;
|
|
16960
|
+
};
|
|
16961
|
+
getInner(obj: {
|
|
16962
|
+
readonly tag: SdkError_Tags.InsufficientFunds;
|
|
16963
|
+
readonly inner: Readonly<{
|
|
16964
|
+
tokenIdentifier: string | undefined;
|
|
16965
|
+
}>;
|
|
16966
|
+
/**
|
|
16967
|
+
* @private
|
|
16968
|
+
* This field is private and should not be used, use `tag` instead.
|
|
16969
|
+
*/
|
|
16970
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16971
|
+
name: string;
|
|
16972
|
+
message: string;
|
|
16973
|
+
stack?: string;
|
|
16974
|
+
cause?: unknown;
|
|
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]>;
|
|
15625
17071
|
/**
|
|
15626
17072
|
* @private
|
|
15627
17073
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15633,10 +17079,8 @@ export declare const SdkError: Readonly<{
|
|
|
15633
17079
|
cause?: unknown;
|
|
15634
17080
|
};
|
|
15635
17081
|
instanceOf(obj: any): obj is {
|
|
15636
|
-
readonly tag: SdkError_Tags.
|
|
15637
|
-
readonly inner: Readonly<
|
|
15638
|
-
tokenIdentifier: string | undefined;
|
|
15639
|
-
}>;
|
|
17082
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
17083
|
+
readonly inner: Readonly<[string]>;
|
|
15640
17084
|
/**
|
|
15641
17085
|
* @private
|
|
15642
17086
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15648,10 +17092,8 @@ export declare const SdkError: Readonly<{
|
|
|
15648
17092
|
cause?: unknown;
|
|
15649
17093
|
};
|
|
15650
17094
|
hasInner(obj: any): obj is {
|
|
15651
|
-
readonly tag: SdkError_Tags.
|
|
15652
|
-
readonly inner: Readonly<
|
|
15653
|
-
tokenIdentifier: string | undefined;
|
|
15654
|
-
}>;
|
|
17095
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
17096
|
+
readonly inner: Readonly<[string]>;
|
|
15655
17097
|
/**
|
|
15656
17098
|
* @private
|
|
15657
17099
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15663,10 +17105,8 @@ export declare const SdkError: Readonly<{
|
|
|
15663
17105
|
cause?: unknown;
|
|
15664
17106
|
};
|
|
15665
17107
|
getInner(obj: {
|
|
15666
|
-
readonly tag: SdkError_Tags.
|
|
15667
|
-
readonly inner: Readonly<
|
|
15668
|
-
tokenIdentifier: string | undefined;
|
|
15669
|
-
}>;
|
|
17108
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
17109
|
+
readonly inner: Readonly<[string]>;
|
|
15670
17110
|
/**
|
|
15671
17111
|
* @private
|
|
15672
17112
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15676,18 +17116,34 @@ export declare const SdkError: Readonly<{
|
|
|
15676
17116
|
message: string;
|
|
15677
17117
|
stack?: string;
|
|
15678
17118
|
cause?: unknown;
|
|
15679
|
-
}): Readonly<
|
|
15680
|
-
tokenIdentifier: string | undefined;
|
|
15681
|
-
}>;
|
|
17119
|
+
}): Readonly<[string]>;
|
|
15682
17120
|
isError(error: unknown): error is Error;
|
|
15683
17121
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
15684
17122
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
15685
17123
|
stackTraceLimit: number;
|
|
15686
17124
|
};
|
|
15687
|
-
|
|
15688
|
-
new (
|
|
15689
|
-
|
|
15690
|
-
|
|
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
|
+
}>;
|
|
15691
17147
|
/**
|
|
15692
17148
|
* @private
|
|
15693
17149
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15698,9 +17154,27 @@ export declare const SdkError: Readonly<{
|
|
|
15698
17154
|
stack?: string;
|
|
15699
17155
|
cause?: unknown;
|
|
15700
17156
|
};
|
|
15701
|
-
"new"(
|
|
15702
|
-
|
|
15703
|
-
|
|
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
|
+
}>;
|
|
15704
17178
|
/**
|
|
15705
17179
|
* @private
|
|
15706
17180
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15712,8 +17186,13 @@ export declare const SdkError: Readonly<{
|
|
|
15712
17186
|
cause?: unknown;
|
|
15713
17187
|
};
|
|
15714
17188
|
instanceOf(obj: any): obj is {
|
|
15715
|
-
readonly tag: SdkError_Tags.
|
|
15716
|
-
readonly inner: Readonly<
|
|
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
|
+
}>;
|
|
15717
17196
|
/**
|
|
15718
17197
|
* @private
|
|
15719
17198
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15725,8 +17204,13 @@ export declare const SdkError: Readonly<{
|
|
|
15725
17204
|
cause?: unknown;
|
|
15726
17205
|
};
|
|
15727
17206
|
hasInner(obj: any): obj is {
|
|
15728
|
-
readonly tag: SdkError_Tags.
|
|
15729
|
-
readonly inner: Readonly<
|
|
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
|
+
}>;
|
|
15730
17214
|
/**
|
|
15731
17215
|
* @private
|
|
15732
17216
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15738,8 +17222,13 @@ export declare const SdkError: Readonly<{
|
|
|
15738
17222
|
cause?: unknown;
|
|
15739
17223
|
};
|
|
15740
17224
|
getInner(obj: {
|
|
15741
|
-
readonly tag: SdkError_Tags.
|
|
15742
|
-
readonly inner: Readonly<
|
|
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
|
+
}>;
|
|
15743
17232
|
/**
|
|
15744
17233
|
* @private
|
|
15745
17234
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15749,16 +17238,30 @@ export declare const SdkError: Readonly<{
|
|
|
15749
17238
|
message: string;
|
|
15750
17239
|
stack?: string;
|
|
15751
17240
|
cause?: unknown;
|
|
15752
|
-
}): Readonly<
|
|
17241
|
+
}): Readonly<{
|
|
17242
|
+
reason: string;
|
|
17243
|
+
tooSmall: boolean;
|
|
17244
|
+
boundAmount: U128 | undefined;
|
|
17245
|
+
boundUsdCents: /*u64*/ bigint | undefined;
|
|
17246
|
+
}>;
|
|
15753
17247
|
isError(error: unknown): error is Error;
|
|
15754
17248
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
15755
17249
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
15756
17250
|
stackTraceLimit: number;
|
|
15757
17251
|
};
|
|
15758
|
-
|
|
15759
|
-
new (
|
|
15760
|
-
|
|
15761
|
-
|
|
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
|
+
}>;
|
|
15762
17265
|
/**
|
|
15763
17266
|
* @private
|
|
15764
17267
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15769,9 +17272,18 @@ export declare const SdkError: Readonly<{
|
|
|
15769
17272
|
stack?: string;
|
|
15770
17273
|
cause?: unknown;
|
|
15771
17274
|
};
|
|
15772
|
-
"new"(
|
|
15773
|
-
|
|
15774
|
-
|
|
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
|
+
}>;
|
|
15775
17287
|
/**
|
|
15776
17288
|
* @private
|
|
15777
17289
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15783,8 +17295,11 @@ export declare const SdkError: Readonly<{
|
|
|
15783
17295
|
cause?: unknown;
|
|
15784
17296
|
};
|
|
15785
17297
|
instanceOf(obj: any): obj is {
|
|
15786
|
-
readonly tag: SdkError_Tags.
|
|
15787
|
-
readonly inner: Readonly<
|
|
17298
|
+
readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
|
|
17299
|
+
readonly inner: Readonly<{
|
|
17300
|
+
reason: string;
|
|
17301
|
+
temporary: boolean;
|
|
17302
|
+
}>;
|
|
15788
17303
|
/**
|
|
15789
17304
|
* @private
|
|
15790
17305
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15796,8 +17311,11 @@ export declare const SdkError: Readonly<{
|
|
|
15796
17311
|
cause?: unknown;
|
|
15797
17312
|
};
|
|
15798
17313
|
hasInner(obj: any): obj is {
|
|
15799
|
-
readonly tag: SdkError_Tags.
|
|
15800
|
-
readonly inner: Readonly<
|
|
17314
|
+
readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
|
|
17315
|
+
readonly inner: Readonly<{
|
|
17316
|
+
reason: string;
|
|
17317
|
+
temporary: boolean;
|
|
17318
|
+
}>;
|
|
15801
17319
|
/**
|
|
15802
17320
|
* @private
|
|
15803
17321
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15809,8 +17327,11 @@ export declare const SdkError: Readonly<{
|
|
|
15809
17327
|
cause?: unknown;
|
|
15810
17328
|
};
|
|
15811
17329
|
getInner(obj: {
|
|
15812
|
-
readonly tag: SdkError_Tags.
|
|
15813
|
-
readonly inner: Readonly<
|
|
17330
|
+
readonly tag: SdkError_Tags.CrossChainRouteUnavailable;
|
|
17331
|
+
readonly inner: Readonly<{
|
|
17332
|
+
reason: string;
|
|
17333
|
+
temporary: boolean;
|
|
17334
|
+
}>;
|
|
15814
17335
|
/**
|
|
15815
17336
|
* @private
|
|
15816
17337
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -15820,7 +17341,10 @@ export declare const SdkError: Readonly<{
|
|
|
15820
17341
|
message: string;
|
|
15821
17342
|
stack?: string;
|
|
15822
17343
|
cause?: unknown;
|
|
15823
|
-
}): Readonly<
|
|
17344
|
+
}): Readonly<{
|
|
17345
|
+
reason: string;
|
|
17346
|
+
temporary: boolean;
|
|
17347
|
+
}>;
|
|
15824
17348
|
isError(error: unknown): error is Error;
|
|
15825
17349
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
15826
17350
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
@@ -16780,101 +18304,6 @@ export declare const SdkError: Readonly<{
|
|
|
16780
18304
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
16781
18305
|
stackTraceLimit: number;
|
|
16782
18306
|
};
|
|
16783
|
-
FundingUtxoConflict: {
|
|
16784
|
-
new (inner: {
|
|
16785
|
-
txid: string;
|
|
16786
|
-
vout: number;
|
|
16787
|
-
}): {
|
|
16788
|
-
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
16789
|
-
readonly inner: Readonly<{
|
|
16790
|
-
txid: string;
|
|
16791
|
-
vout: number;
|
|
16792
|
-
}>;
|
|
16793
|
-
/**
|
|
16794
|
-
* @private
|
|
16795
|
-
* This field is private and should not be used, use `tag` instead.
|
|
16796
|
-
*/
|
|
16797
|
-
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16798
|
-
name: string;
|
|
16799
|
-
message: string;
|
|
16800
|
-
stack?: string;
|
|
16801
|
-
cause?: unknown;
|
|
16802
|
-
};
|
|
16803
|
-
"new"(inner: {
|
|
16804
|
-
txid: string;
|
|
16805
|
-
vout: number;
|
|
16806
|
-
}): {
|
|
16807
|
-
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
16808
|
-
readonly inner: Readonly<{
|
|
16809
|
-
txid: string;
|
|
16810
|
-
vout: number;
|
|
16811
|
-
}>;
|
|
16812
|
-
/**
|
|
16813
|
-
* @private
|
|
16814
|
-
* This field is private and should not be used, use `tag` instead.
|
|
16815
|
-
*/
|
|
16816
|
-
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16817
|
-
name: string;
|
|
16818
|
-
message: string;
|
|
16819
|
-
stack?: string;
|
|
16820
|
-
cause?: unknown;
|
|
16821
|
-
};
|
|
16822
|
-
instanceOf(obj: any): obj is {
|
|
16823
|
-
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
16824
|
-
readonly inner: Readonly<{
|
|
16825
|
-
txid: string;
|
|
16826
|
-
vout: number;
|
|
16827
|
-
}>;
|
|
16828
|
-
/**
|
|
16829
|
-
* @private
|
|
16830
|
-
* This field is private and should not be used, use `tag` instead.
|
|
16831
|
-
*/
|
|
16832
|
-
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16833
|
-
name: string;
|
|
16834
|
-
message: string;
|
|
16835
|
-
stack?: string;
|
|
16836
|
-
cause?: unknown;
|
|
16837
|
-
};
|
|
16838
|
-
hasInner(obj: any): obj is {
|
|
16839
|
-
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
16840
|
-
readonly inner: Readonly<{
|
|
16841
|
-
txid: string;
|
|
16842
|
-
vout: number;
|
|
16843
|
-
}>;
|
|
16844
|
-
/**
|
|
16845
|
-
* @private
|
|
16846
|
-
* This field is private and should not be used, use `tag` instead.
|
|
16847
|
-
*/
|
|
16848
|
-
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16849
|
-
name: string;
|
|
16850
|
-
message: string;
|
|
16851
|
-
stack?: string;
|
|
16852
|
-
cause?: unknown;
|
|
16853
|
-
};
|
|
16854
|
-
getInner(obj: {
|
|
16855
|
-
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
16856
|
-
readonly inner: Readonly<{
|
|
16857
|
-
txid: string;
|
|
16858
|
-
vout: number;
|
|
16859
|
-
}>;
|
|
16860
|
-
/**
|
|
16861
|
-
* @private
|
|
16862
|
-
* This field is private and should not be used, use `tag` instead.
|
|
16863
|
-
*/
|
|
16864
|
-
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
16865
|
-
name: string;
|
|
16866
|
-
message: string;
|
|
16867
|
-
stack?: string;
|
|
16868
|
-
cause?: unknown;
|
|
16869
|
-
}): Readonly<{
|
|
16870
|
-
txid: string;
|
|
16871
|
-
vout: number;
|
|
16872
|
-
}>;
|
|
16873
|
-
isError(error: unknown): error is Error;
|
|
16874
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
16875
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
16876
|
-
stackTraceLimit: number;
|
|
16877
|
-
};
|
|
16878
18307
|
Generic: {
|
|
16879
18308
|
new (v0: string): {
|
|
16880
18309
|
readonly tag: SdkError_Tags.Generic;
|
|
@@ -16958,6 +18387,7 @@ export declare enum SdkEvent_Tags {
|
|
|
16958
18387
|
PaymentSucceeded = "PaymentSucceeded",
|
|
16959
18388
|
PaymentPending = "PaymentPending",
|
|
16960
18389
|
PaymentFailed = "PaymentFailed",
|
|
18390
|
+
PaymentMetadataUpdated = "PaymentMetadataUpdated",
|
|
16961
18391
|
AutoOptimization = "AutoOptimization",
|
|
16962
18392
|
LightningAddressChanged = "LightningAddressChanged",
|
|
16963
18393
|
NewDeposits = "NewDeposits",
|
|
@@ -17063,7 +18493,46 @@ export declare const SdkEvent: Readonly<{
|
|
|
17063
18493
|
instanceOf(obj: any): obj is {
|
|
17064
18494
|
readonly tag: SdkEvent_Tags.ClaimedDeposits;
|
|
17065
18495
|
readonly inner: Readonly<{
|
|
17066
|
-
claimedDeposits: Array<DepositInfo>;
|
|
18496
|
+
claimedDeposits: Array<DepositInfo>;
|
|
18497
|
+
}>;
|
|
18498
|
+
/**
|
|
18499
|
+
* @private
|
|
18500
|
+
* This field is private and should not be used, use `tag` instead.
|
|
18501
|
+
*/
|
|
18502
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
18503
|
+
};
|
|
18504
|
+
};
|
|
18505
|
+
PaymentSucceeded: {
|
|
18506
|
+
new (inner: {
|
|
18507
|
+
payment: Payment;
|
|
18508
|
+
}): {
|
|
18509
|
+
readonly tag: SdkEvent_Tags.PaymentSucceeded;
|
|
18510
|
+
readonly inner: Readonly<{
|
|
18511
|
+
payment: Payment;
|
|
18512
|
+
}>;
|
|
18513
|
+
/**
|
|
18514
|
+
* @private
|
|
18515
|
+
* This field is private and should not be used, use `tag` instead.
|
|
18516
|
+
*/
|
|
18517
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
18518
|
+
};
|
|
18519
|
+
"new"(inner: {
|
|
18520
|
+
payment: Payment;
|
|
18521
|
+
}): {
|
|
18522
|
+
readonly tag: SdkEvent_Tags.PaymentSucceeded;
|
|
18523
|
+
readonly inner: Readonly<{
|
|
18524
|
+
payment: Payment;
|
|
18525
|
+
}>;
|
|
18526
|
+
/**
|
|
18527
|
+
* @private
|
|
18528
|
+
* This field is private and should not be used, use `tag` instead.
|
|
18529
|
+
*/
|
|
18530
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
18531
|
+
};
|
|
18532
|
+
instanceOf(obj: any): obj is {
|
|
18533
|
+
readonly tag: SdkEvent_Tags.PaymentSucceeded;
|
|
18534
|
+
readonly inner: Readonly<{
|
|
18535
|
+
payment: Payment;
|
|
17067
18536
|
}>;
|
|
17068
18537
|
/**
|
|
17069
18538
|
* @private
|
|
@@ -17072,11 +18541,11 @@ export declare const SdkEvent: Readonly<{
|
|
|
17072
18541
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
17073
18542
|
};
|
|
17074
18543
|
};
|
|
17075
|
-
|
|
18544
|
+
PaymentPending: {
|
|
17076
18545
|
new (inner: {
|
|
17077
18546
|
payment: Payment;
|
|
17078
18547
|
}): {
|
|
17079
|
-
readonly tag: SdkEvent_Tags.
|
|
18548
|
+
readonly tag: SdkEvent_Tags.PaymentPending;
|
|
17080
18549
|
readonly inner: Readonly<{
|
|
17081
18550
|
payment: Payment;
|
|
17082
18551
|
}>;
|
|
@@ -17089,7 +18558,7 @@ export declare const SdkEvent: Readonly<{
|
|
|
17089
18558
|
"new"(inner: {
|
|
17090
18559
|
payment: Payment;
|
|
17091
18560
|
}): {
|
|
17092
|
-
readonly tag: SdkEvent_Tags.
|
|
18561
|
+
readonly tag: SdkEvent_Tags.PaymentPending;
|
|
17093
18562
|
readonly inner: Readonly<{
|
|
17094
18563
|
payment: Payment;
|
|
17095
18564
|
}>;
|
|
@@ -17100,7 +18569,7 @@ export declare const SdkEvent: Readonly<{
|
|
|
17100
18569
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
17101
18570
|
};
|
|
17102
18571
|
instanceOf(obj: any): obj is {
|
|
17103
|
-
readonly tag: SdkEvent_Tags.
|
|
18572
|
+
readonly tag: SdkEvent_Tags.PaymentPending;
|
|
17104
18573
|
readonly inner: Readonly<{
|
|
17105
18574
|
payment: Payment;
|
|
17106
18575
|
}>;
|
|
@@ -17111,11 +18580,11 @@ export declare const SdkEvent: Readonly<{
|
|
|
17111
18580
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
17112
18581
|
};
|
|
17113
18582
|
};
|
|
17114
|
-
|
|
18583
|
+
PaymentFailed: {
|
|
17115
18584
|
new (inner: {
|
|
17116
18585
|
payment: Payment;
|
|
17117
18586
|
}): {
|
|
17118
|
-
readonly tag: SdkEvent_Tags.
|
|
18587
|
+
readonly tag: SdkEvent_Tags.PaymentFailed;
|
|
17119
18588
|
readonly inner: Readonly<{
|
|
17120
18589
|
payment: Payment;
|
|
17121
18590
|
}>;
|
|
@@ -17128,7 +18597,7 @@ export declare const SdkEvent: Readonly<{
|
|
|
17128
18597
|
"new"(inner: {
|
|
17129
18598
|
payment: Payment;
|
|
17130
18599
|
}): {
|
|
17131
|
-
readonly tag: SdkEvent_Tags.
|
|
18600
|
+
readonly tag: SdkEvent_Tags.PaymentFailed;
|
|
17132
18601
|
readonly inner: Readonly<{
|
|
17133
18602
|
payment: Payment;
|
|
17134
18603
|
}>;
|
|
@@ -17139,7 +18608,7 @@ export declare const SdkEvent: Readonly<{
|
|
|
17139
18608
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
17140
18609
|
};
|
|
17141
18610
|
instanceOf(obj: any): obj is {
|
|
17142
|
-
readonly tag: SdkEvent_Tags.
|
|
18611
|
+
readonly tag: SdkEvent_Tags.PaymentFailed;
|
|
17143
18612
|
readonly inner: Readonly<{
|
|
17144
18613
|
payment: Payment;
|
|
17145
18614
|
}>;
|
|
@@ -17150,11 +18619,11 @@ export declare const SdkEvent: Readonly<{
|
|
|
17150
18619
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
17151
18620
|
};
|
|
17152
18621
|
};
|
|
17153
|
-
|
|
18622
|
+
PaymentMetadataUpdated: {
|
|
17154
18623
|
new (inner: {
|
|
17155
18624
|
payment: Payment;
|
|
17156
18625
|
}): {
|
|
17157
|
-
readonly tag: SdkEvent_Tags.
|
|
18626
|
+
readonly tag: SdkEvent_Tags.PaymentMetadataUpdated;
|
|
17158
18627
|
readonly inner: Readonly<{
|
|
17159
18628
|
payment: Payment;
|
|
17160
18629
|
}>;
|
|
@@ -17167,7 +18636,7 @@ export declare const SdkEvent: Readonly<{
|
|
|
17167
18636
|
"new"(inner: {
|
|
17168
18637
|
payment: Payment;
|
|
17169
18638
|
}): {
|
|
17170
|
-
readonly tag: SdkEvent_Tags.
|
|
18639
|
+
readonly tag: SdkEvent_Tags.PaymentMetadataUpdated;
|
|
17171
18640
|
readonly inner: Readonly<{
|
|
17172
18641
|
payment: Payment;
|
|
17173
18642
|
}>;
|
|
@@ -17178,7 +18647,7 @@ export declare const SdkEvent: Readonly<{
|
|
|
17178
18647
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
17179
18648
|
};
|
|
17180
18649
|
instanceOf(obj: any): obj is {
|
|
17181
|
-
readonly tag: SdkEvent_Tags.
|
|
18650
|
+
readonly tag: SdkEvent_Tags.PaymentMetadataUpdated;
|
|
17182
18651
|
readonly inner: Readonly<{
|
|
17183
18652
|
payment: Payment;
|
|
17184
18653
|
}>;
|
|
@@ -17693,6 +19162,10 @@ export declare const SendPaymentMethod: Readonly<{
|
|
|
17693
19162
|
/**
|
|
17694
19163
|
* Asset which service fee is denominated in. Unset means BTC sats.
|
|
17695
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;
|
|
17696
19169
|
/**
|
|
17697
19170
|
* Sats budget for moving the amount in from the wallet to the provider.
|
|
17698
19171
|
*/ sourceTransferFeeSats: bigint;
|
|
@@ -17717,6 +19190,7 @@ export declare const SendPaymentMethod: Readonly<{
|
|
|
17717
19190
|
feeAmount: U128;
|
|
17718
19191
|
serviceFeeAmount: U128;
|
|
17719
19192
|
serviceFeeAsset: string | undefined;
|
|
19193
|
+
serviceFeeAssetDecimals: /*u32*/ number | undefined;
|
|
17720
19194
|
sourceTransferFeeSats: bigint;
|
|
17721
19195
|
feeMode: CrossChainFeeMode;
|
|
17722
19196
|
expiresAt: string;
|
|
@@ -17762,6 +19236,10 @@ export declare const SendPaymentMethod: Readonly<{
|
|
|
17762
19236
|
/**
|
|
17763
19237
|
* Asset which service fee is denominated in. Unset means BTC sats.
|
|
17764
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;
|
|
17765
19243
|
/**
|
|
17766
19244
|
* Sats budget for moving the amount in from the wallet to the provider.
|
|
17767
19245
|
*/ sourceTransferFeeSats: bigint;
|
|
@@ -17786,6 +19264,7 @@ export declare const SendPaymentMethod: Readonly<{
|
|
|
17786
19264
|
feeAmount: U128;
|
|
17787
19265
|
serviceFeeAmount: U128;
|
|
17788
19266
|
serviceFeeAsset: string | undefined;
|
|
19267
|
+
serviceFeeAssetDecimals: /*u32*/ number | undefined;
|
|
17789
19268
|
sourceTransferFeeSats: bigint;
|
|
17790
19269
|
feeMode: CrossChainFeeMode;
|
|
17791
19270
|
expiresAt: string;
|
|
@@ -17808,6 +19287,7 @@ export declare const SendPaymentMethod: Readonly<{
|
|
|
17808
19287
|
feeAmount: U128;
|
|
17809
19288
|
serviceFeeAmount: U128;
|
|
17810
19289
|
serviceFeeAsset: string | undefined;
|
|
19290
|
+
serviceFeeAssetDecimals: /*u32*/ number | undefined;
|
|
17811
19291
|
sourceTransferFeeSats: bigint;
|
|
17812
19292
|
feeMode: CrossChainFeeMode;
|
|
17813
19293
|
expiresAt: string;
|
|
@@ -19465,46 +20945,46 @@ export declare const SignerError: Readonly<{
|
|
|
19465
20945
|
* Error type for signer operations
|
|
19466
20946
|
*/
|
|
19467
20947
|
export type SignerError = InstanceType<(typeof SignerError)[keyof Omit<typeof SignerError, 'instanceOf'>]>;
|
|
19468
|
-
export declare enum
|
|
20948
|
+
export declare enum SparkAsset_Tags {
|
|
19469
20949
|
Bitcoin = "Bitcoin",
|
|
19470
20950
|
Token = "Token"
|
|
19471
20951
|
}
|
|
19472
20952
|
/**
|
|
19473
|
-
* The
|
|
20953
|
+
* The asset a cross-chain route accepts on the Spark side.
|
|
19474
20954
|
*/
|
|
19475
|
-
export declare const
|
|
19476
|
-
instanceOf: (obj: any) => obj is
|
|
20955
|
+
export declare const SparkAsset: Readonly<{
|
|
20956
|
+
instanceOf: (obj: any) => obj is SparkAsset;
|
|
19477
20957
|
Bitcoin: {
|
|
19478
20958
|
new (): {
|
|
19479
|
-
readonly tag:
|
|
20959
|
+
readonly tag: SparkAsset_Tags.Bitcoin;
|
|
19480
20960
|
/**
|
|
19481
20961
|
* @private
|
|
19482
20962
|
* This field is private and should not be used, use `tag` instead.
|
|
19483
20963
|
*/
|
|
19484
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
20964
|
+
readonly [uniffiTypeNameSymbol]: "SparkAsset";
|
|
19485
20965
|
};
|
|
19486
20966
|
"new"(): {
|
|
19487
|
-
readonly tag:
|
|
20967
|
+
readonly tag: SparkAsset_Tags.Bitcoin;
|
|
19488
20968
|
/**
|
|
19489
20969
|
* @private
|
|
19490
20970
|
* This field is private and should not be used, use `tag` instead.
|
|
19491
20971
|
*/
|
|
19492
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
20972
|
+
readonly [uniffiTypeNameSymbol]: "SparkAsset";
|
|
19493
20973
|
};
|
|
19494
20974
|
instanceOf(obj: any): obj is {
|
|
19495
|
-
readonly tag:
|
|
20975
|
+
readonly tag: SparkAsset_Tags.Bitcoin;
|
|
19496
20976
|
/**
|
|
19497
20977
|
* @private
|
|
19498
20978
|
* This field is private and should not be used, use `tag` instead.
|
|
19499
20979
|
*/
|
|
19500
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
20980
|
+
readonly [uniffiTypeNameSymbol]: "SparkAsset";
|
|
19501
20981
|
};
|
|
19502
20982
|
};
|
|
19503
20983
|
Token: {
|
|
19504
20984
|
new (inner: {
|
|
19505
20985
|
tokenIdentifier: string;
|
|
19506
20986
|
}): {
|
|
19507
|
-
readonly tag:
|
|
20987
|
+
readonly tag: SparkAsset_Tags.Token;
|
|
19508
20988
|
readonly inner: Readonly<{
|
|
19509
20989
|
tokenIdentifier: string;
|
|
19510
20990
|
}>;
|
|
@@ -19512,12 +20992,12 @@ export declare const SourceAsset: Readonly<{
|
|
|
19512
20992
|
* @private
|
|
19513
20993
|
* This field is private and should not be used, use `tag` instead.
|
|
19514
20994
|
*/
|
|
19515
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
20995
|
+
readonly [uniffiTypeNameSymbol]: "SparkAsset";
|
|
19516
20996
|
};
|
|
19517
20997
|
"new"(inner: {
|
|
19518
20998
|
tokenIdentifier: string;
|
|
19519
20999
|
}): {
|
|
19520
|
-
readonly tag:
|
|
21000
|
+
readonly tag: SparkAsset_Tags.Token;
|
|
19521
21001
|
readonly inner: Readonly<{
|
|
19522
21002
|
tokenIdentifier: string;
|
|
19523
21003
|
}>;
|
|
@@ -19525,10 +21005,10 @@ export declare const SourceAsset: Readonly<{
|
|
|
19525
21005
|
* @private
|
|
19526
21006
|
* This field is private and should not be used, use `tag` instead.
|
|
19527
21007
|
*/
|
|
19528
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
21008
|
+
readonly [uniffiTypeNameSymbol]: "SparkAsset";
|
|
19529
21009
|
};
|
|
19530
21010
|
instanceOf(obj: any): obj is {
|
|
19531
|
-
readonly tag:
|
|
21011
|
+
readonly tag: SparkAsset_Tags.Token;
|
|
19532
21012
|
readonly inner: Readonly<{
|
|
19533
21013
|
tokenIdentifier: string;
|
|
19534
21014
|
}>;
|
|
@@ -19536,32 +21016,14 @@ export declare const SourceAsset: Readonly<{
|
|
|
19536
21016
|
* @private
|
|
19537
21017
|
* This field is private and should not be used, use `tag` instead.
|
|
19538
21018
|
*/
|
|
19539
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
21019
|
+
readonly [uniffiTypeNameSymbol]: "SparkAsset";
|
|
19540
21020
|
};
|
|
19541
21021
|
};
|
|
19542
21022
|
}>;
|
|
19543
21023
|
/**
|
|
19544
|
-
* The
|
|
21024
|
+
* The asset a cross-chain route accepts on the Spark side.
|
|
19545
21025
|
*/
|
|
19546
|
-
export type
|
|
19547
|
-
/**
|
|
19548
|
-
* The chain a cross-chain route is funded from, orthogonal to the
|
|
19549
|
-
* [`SourceAsset`] that moves.
|
|
19550
|
-
*/
|
|
19551
|
-
export declare enum SourceChain {
|
|
19552
|
-
/**
|
|
19553
|
-
* Paid over Spark, using a Bitcoin or token source asset.
|
|
19554
|
-
*/
|
|
19555
|
-
Spark = 0,
|
|
19556
|
-
/**
|
|
19557
|
-
* Paid over Lightning, using a Bitcoin source asset.
|
|
19558
|
-
*/
|
|
19559
|
-
Lightning = 1,
|
|
19560
|
-
/**
|
|
19561
|
-
* Paid on-chain to Bitcoin (L1), using a Bitcoin source asset.
|
|
19562
|
-
*/
|
|
19563
|
-
Bitcoin = 2
|
|
19564
|
-
}
|
|
21026
|
+
export type SparkAsset = InstanceType<(typeof SparkAsset)[keyof Omit<typeof SparkAsset, 'instanceOf'>]>;
|
|
19565
21027
|
export declare enum SparkHtlcStatus {
|
|
19566
21028
|
/**
|
|
19567
21029
|
* The HTLC is waiting for the preimage to be shared by the receiver
|
|
@@ -20783,6 +22245,18 @@ export declare const TransferTarget: Readonly<{
|
|
|
20783
22245
|
};
|
|
20784
22246
|
}>;
|
|
20785
22247
|
export type TransferTarget = InstanceType<(typeof TransferTarget)[keyof Omit<typeof TransferTarget, 'instanceOf'>]>;
|
|
22248
|
+
/**
|
|
22249
|
+
* Why an exit has to be built again.
|
|
22250
|
+
*/
|
|
22251
|
+
export declare enum UnilateralExitRedoReason {
|
|
22252
|
+
/**
|
|
22253
|
+
* The chain no longer matches the exit: something that is not one of its
|
|
22254
|
+
* own transactions took an outpoint it still needs. A different refund, a
|
|
22255
|
+
* fee bump from elsewhere, or funding spent on something else all land
|
|
22256
|
+
* here.
|
|
22257
|
+
*/
|
|
22258
|
+
OnChainStateDiverged = 0
|
|
22259
|
+
}
|
|
20786
22260
|
/**
|
|
20787
22261
|
* The role of a transaction in the exit path.
|
|
20788
22262
|
*/
|
|
@@ -20805,6 +22279,112 @@ export declare enum UnilateralExitTxKind {
|
|
|
20805
22279
|
*/
|
|
20806
22280
|
Sweep = 3
|
|
20807
22281
|
}
|
|
22282
|
+
export declare enum UnilateralExitVerdict_Tags {
|
|
22283
|
+
Valid = "Valid",
|
|
22284
|
+
Done = "Done",
|
|
22285
|
+
Redo = "Redo"
|
|
22286
|
+
}
|
|
22287
|
+
/**
|
|
22288
|
+
* What to do with an exit that has been read back against the chain.
|
|
22289
|
+
*/
|
|
22290
|
+
export declare const UnilateralExitVerdict: Readonly<{
|
|
22291
|
+
instanceOf: (obj: any) => obj is UnilateralExitVerdict;
|
|
22292
|
+
Valid: {
|
|
22293
|
+
new (): {
|
|
22294
|
+
readonly tag: UnilateralExitVerdict_Tags.Valid;
|
|
22295
|
+
/**
|
|
22296
|
+
* @private
|
|
22297
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22298
|
+
*/
|
|
22299
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22300
|
+
};
|
|
22301
|
+
"new"(): {
|
|
22302
|
+
readonly tag: UnilateralExitVerdict_Tags.Valid;
|
|
22303
|
+
/**
|
|
22304
|
+
* @private
|
|
22305
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22306
|
+
*/
|
|
22307
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22308
|
+
};
|
|
22309
|
+
instanceOf(obj: any): obj is {
|
|
22310
|
+
readonly tag: UnilateralExitVerdict_Tags.Valid;
|
|
22311
|
+
/**
|
|
22312
|
+
* @private
|
|
22313
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22314
|
+
*/
|
|
22315
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22316
|
+
};
|
|
22317
|
+
};
|
|
22318
|
+
Done: {
|
|
22319
|
+
new (): {
|
|
22320
|
+
readonly tag: UnilateralExitVerdict_Tags.Done;
|
|
22321
|
+
/**
|
|
22322
|
+
* @private
|
|
22323
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22324
|
+
*/
|
|
22325
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22326
|
+
};
|
|
22327
|
+
"new"(): {
|
|
22328
|
+
readonly tag: UnilateralExitVerdict_Tags.Done;
|
|
22329
|
+
/**
|
|
22330
|
+
* @private
|
|
22331
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22332
|
+
*/
|
|
22333
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22334
|
+
};
|
|
22335
|
+
instanceOf(obj: any): obj is {
|
|
22336
|
+
readonly tag: UnilateralExitVerdict_Tags.Done;
|
|
22337
|
+
/**
|
|
22338
|
+
* @private
|
|
22339
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22340
|
+
*/
|
|
22341
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22342
|
+
};
|
|
22343
|
+
};
|
|
22344
|
+
Redo: {
|
|
22345
|
+
new (inner: {
|
|
22346
|
+
reason: UnilateralExitRedoReason;
|
|
22347
|
+
}): {
|
|
22348
|
+
readonly tag: UnilateralExitVerdict_Tags.Redo;
|
|
22349
|
+
readonly inner: Readonly<{
|
|
22350
|
+
reason: UnilateralExitRedoReason;
|
|
22351
|
+
}>;
|
|
22352
|
+
/**
|
|
22353
|
+
* @private
|
|
22354
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22355
|
+
*/
|
|
22356
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22357
|
+
};
|
|
22358
|
+
"new"(inner: {
|
|
22359
|
+
reason: UnilateralExitRedoReason;
|
|
22360
|
+
}): {
|
|
22361
|
+
readonly tag: UnilateralExitVerdict_Tags.Redo;
|
|
22362
|
+
readonly inner: Readonly<{
|
|
22363
|
+
reason: UnilateralExitRedoReason;
|
|
22364
|
+
}>;
|
|
22365
|
+
/**
|
|
22366
|
+
* @private
|
|
22367
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22368
|
+
*/
|
|
22369
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22370
|
+
};
|
|
22371
|
+
instanceOf(obj: any): obj is {
|
|
22372
|
+
readonly tag: UnilateralExitVerdict_Tags.Redo;
|
|
22373
|
+
readonly inner: Readonly<{
|
|
22374
|
+
reason: UnilateralExitRedoReason;
|
|
22375
|
+
}>;
|
|
22376
|
+
/**
|
|
22377
|
+
* @private
|
|
22378
|
+
* This field is private and should not be used, use `tag` instead.
|
|
22379
|
+
*/
|
|
22380
|
+
readonly [uniffiTypeNameSymbol]: "UnilateralExitVerdict";
|
|
22381
|
+
};
|
|
22382
|
+
};
|
|
22383
|
+
}>;
|
|
22384
|
+
/**
|
|
22385
|
+
* What to do with an exit that has been read back against the chain.
|
|
22386
|
+
*/
|
|
22387
|
+
export type UnilateralExitVerdict = InstanceType<(typeof UnilateralExitVerdict)[keyof Omit<typeof UnilateralExitVerdict, 'instanceOf'>]>;
|
|
20808
22388
|
export declare enum UnsignedTransferPackage_Tags {
|
|
20809
22389
|
Swap = "Swap",
|
|
20810
22390
|
Transfer = "Transfer",
|
|
@@ -21067,7 +22647,8 @@ export declare enum UpdateDepositPayload_Tags {
|
|
|
21067
22647
|
ClaimError = "ClaimError",
|
|
21068
22648
|
Refund = "Refund",
|
|
21069
22649
|
InstantClaim = "InstantClaim",
|
|
21070
|
-
RefundBroadcastState = "RefundBroadcastState"
|
|
22650
|
+
RefundBroadcastState = "RefundBroadcastState",
|
|
22651
|
+
MaxClaimFee = "MaxClaimFee"
|
|
21071
22652
|
}
|
|
21072
22653
|
export declare const UpdateDepositPayload: Readonly<{
|
|
21073
22654
|
instanceOf: (obj: any) => obj is UpdateDepositPayload;
|
|
@@ -21242,8 +22823,160 @@ export declare const UpdateDepositPayload: Readonly<{
|
|
|
21242
22823
|
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
21243
22824
|
};
|
|
21244
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
|
+
};
|
|
21245
22865
|
}>;
|
|
21246
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'>]>;
|
|
21247
22980
|
export declare enum WebhookEventType_Tags {
|
|
21248
22981
|
LightningReceiveFinished = "LightningReceiveFinished",
|
|
21249
22982
|
LightningSendFinished = "LightningSendFinished",
|
|
@@ -21571,6 +23304,17 @@ export interface BreezSdkInterface {
|
|
|
21571
23304
|
checkMessage(request: CheckMessageRequest, asyncOpts_?: {
|
|
21572
23305
|
signal: AbortSignal;
|
|
21573
23306
|
}): Promise<CheckMessageResponse>;
|
|
23307
|
+
/**
|
|
23308
|
+
* Reads an exit you kept back against the chain: which of its transactions
|
|
23309
|
+
* are now in a block, and whether it can still be finished as it stands.
|
|
23310
|
+
*
|
|
23311
|
+
* Needs neither the wallet's leaves nor a signer, so an exit can be followed
|
|
23312
|
+
* from the response alone. Store the response in place of the one you passed
|
|
23313
|
+
* in, and broadcast what its statuses leave to send.
|
|
23314
|
+
*/
|
|
23315
|
+
checkUnilateralExit(request: CheckUnilateralExitRequest, asyncOpts_?: {
|
|
23316
|
+
signal: AbortSignal;
|
|
23317
|
+
}): Promise<CheckUnilateralExitResponse>;
|
|
21574
23318
|
claimDeposit(request: ClaimDepositRequest, asyncOpts_?: {
|
|
21575
23319
|
signal: AbortSignal;
|
|
21576
23320
|
}): Promise<ClaimDepositResponse>;
|
|
@@ -21984,7 +23728,13 @@ export interface BreezSdkInterface {
|
|
|
21984
23728
|
signal: AbortSignal;
|
|
21985
23729
|
}): Promise<SignMessageResponse>;
|
|
21986
23730
|
/**
|
|
21987
|
-
* 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.
|
|
21988
23738
|
*/
|
|
21989
23739
|
syncWallet(request: SyncWalletRequest, asyncOpts_?: {
|
|
21990
23740
|
signal: AbortSignal;
|
|
@@ -21995,11 +23745,10 @@ export interface BreezSdkInterface {
|
|
|
21995
23745
|
* topological broadcast order without broadcasting. Broadcast it over time,
|
|
21996
23746
|
* respecting each transaction's `depends_on` and `csv_timelock_blocks`.
|
|
21997
23747
|
*
|
|
21998
|
-
* It
|
|
21999
|
-
*
|
|
22000
|
-
*
|
|
22001
|
-
*
|
|
22002
|
-
* therefore resumes rather than restarts.
|
|
23748
|
+
* It reads on-chain state first: an already-confirmed fan-out or CPFP node
|
|
23749
|
+
* is not rebuilt, and a leaf refund already on-chain (recognized by the
|
|
23750
|
+
* leaf's refund address, so any refund variant counts) is swept directly.
|
|
23751
|
+
* Re-running after partial progress therefore resumes rather than restarts.
|
|
22003
23752
|
*/
|
|
22004
23753
|
unilateralExit(request: UnilateralExitRequest, signer: CpfpSigner, asyncOpts_?: {
|
|
22005
23754
|
signal: AbortSignal;
|
|
@@ -22138,6 +23887,17 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
22138
23887
|
checkMessage(request: CheckMessageRequest, asyncOpts_?: {
|
|
22139
23888
|
signal: AbortSignal;
|
|
22140
23889
|
}): Promise<CheckMessageResponse>;
|
|
23890
|
+
/**
|
|
23891
|
+
* Reads an exit you kept back against the chain: which of its transactions
|
|
23892
|
+
* are now in a block, and whether it can still be finished as it stands.
|
|
23893
|
+
*
|
|
23894
|
+
* Needs neither the wallet's leaves nor a signer, so an exit can be followed
|
|
23895
|
+
* from the response alone. Store the response in place of the one you passed
|
|
23896
|
+
* in, and broadcast what its statuses leave to send.
|
|
23897
|
+
*/
|
|
23898
|
+
checkUnilateralExit(request: CheckUnilateralExitRequest, asyncOpts_?: {
|
|
23899
|
+
signal: AbortSignal;
|
|
23900
|
+
}): Promise<CheckUnilateralExitResponse>;
|
|
22141
23901
|
claimDeposit(request: ClaimDepositRequest, asyncOpts_?: {
|
|
22142
23902
|
signal: AbortSignal;
|
|
22143
23903
|
}): Promise<ClaimDepositResponse>;
|
|
@@ -22551,7 +24311,13 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
22551
24311
|
signal: AbortSignal;
|
|
22552
24312
|
}): Promise<SignMessageResponse>;
|
|
22553
24313
|
/**
|
|
22554
|
-
* 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.
|
|
22555
24321
|
*/
|
|
22556
24322
|
syncWallet(request: SyncWalletRequest, asyncOpts_?: {
|
|
22557
24323
|
signal: AbortSignal;
|
|
@@ -22562,11 +24328,10 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
22562
24328
|
* topological broadcast order without broadcasting. Broadcast it over time,
|
|
22563
24329
|
* respecting each transaction's `depends_on` and `csv_timelock_blocks`.
|
|
22564
24330
|
*
|
|
22565
|
-
* It
|
|
22566
|
-
*
|
|
22567
|
-
*
|
|
22568
|
-
*
|
|
22569
|
-
* therefore resumes rather than restarts.
|
|
24331
|
+
* It reads on-chain state first: an already-confirmed fan-out or CPFP node
|
|
24332
|
+
* is not rebuilt, and a leaf refund already on-chain (recognized by the
|
|
24333
|
+
* leaf's refund address, so any refund variant counts) is swept directly.
|
|
24334
|
+
* Re-running after partial progress therefore resumes rather than restarts.
|
|
22570
24335
|
*/
|
|
22571
24336
|
unilateralExit(request: UnilateralExitRequest, signer: CpfpSigner, asyncOpts_?: {
|
|
22572
24337
|
signal: AbortSignal;
|
|
@@ -23038,7 +24803,7 @@ export interface ExternalSparkSigner {
|
|
|
23038
24803
|
signal: AbortSignal;
|
|
23039
24804
|
}): Promise<PublicKeyBytes>;
|
|
23040
24805
|
/**
|
|
23041
|
-
* The
|
|
24806
|
+
* The public key of the leaf signing key derived from `leaf_id`.
|
|
23042
24807
|
*/
|
|
23043
24808
|
getPublicKeyForLeaf(leafId: ExternalTreeNodeId, asyncOpts_?: {
|
|
23044
24809
|
signal: AbortSignal;
|
|
@@ -23070,7 +24835,8 @@ export interface ExternalSparkSigner {
|
|
|
23070
24835
|
}): Promise<EcdsaSignatureBytes>;
|
|
23071
24836
|
/**
|
|
23072
24837
|
* Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
|
|
23073
|
-
* 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`.
|
|
23074
24840
|
*/
|
|
23075
24841
|
signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: ArrayBuffer, asyncOpts_?: {
|
|
23076
24842
|
signal: AbortSignal;
|
|
@@ -23151,7 +24917,7 @@ export declare class ExternalSparkSignerImpl extends UniffiAbstractObject implem
|
|
|
23151
24917
|
signal: AbortSignal;
|
|
23152
24918
|
}): Promise<PublicKeyBytes>;
|
|
23153
24919
|
/**
|
|
23154
|
-
* The
|
|
24920
|
+
* The public key of the leaf signing key derived from `leaf_id`.
|
|
23155
24921
|
*/
|
|
23156
24922
|
getPublicKeyForLeaf(leafId: ExternalTreeNodeId, asyncOpts_?: {
|
|
23157
24923
|
signal: AbortSignal;
|
|
@@ -23183,7 +24949,8 @@ export declare class ExternalSparkSignerImpl extends UniffiAbstractObject implem
|
|
|
23183
24949
|
}): Promise<EcdsaSignatureBytes>;
|
|
23184
24950
|
/**
|
|
23185
24951
|
* Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
|
|
23186
|
-
* 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`.
|
|
23187
24954
|
*/
|
|
23188
24955
|
signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: ArrayBuffer, asyncOpts_?: {
|
|
23189
24956
|
signal: AbortSignal;
|
|
@@ -23852,7 +25619,7 @@ export interface SdkBuilderInterface {
|
|
|
23852
25619
|
* Sets the account number for key derivation. All wallet keys derive from
|
|
23853
25620
|
* the seed at `m/8797555'/<account number>'`, so each account number
|
|
23854
25621
|
* yields an independent wallet from the same seed. Defaults to 0 on
|
|
23855
|
-
* Regtest and 1 on
|
|
25622
|
+
* Regtest and Signet, and 1 on Mainnet when unset.
|
|
23856
25623
|
* Arguments:
|
|
23857
25624
|
* - `account_number`: The account number in the derivation path.
|
|
23858
25625
|
*/
|
|
@@ -24003,7 +25770,7 @@ export declare class SdkBuilder extends UniffiAbstractObject implements SdkBuild
|
|
|
24003
25770
|
* Sets the account number for key derivation. All wallet keys derive from
|
|
24004
25771
|
* the seed at `m/8797555'/<account number>'`, so each account number
|
|
24005
25772
|
* yields an independent wallet from the same seed. Defaults to 0 on
|
|
24006
|
-
* Regtest and 1 on
|
|
25773
|
+
* Regtest and Signet, and 1 on Mainnet when unset.
|
|
24007
25774
|
* Arguments:
|
|
24008
25775
|
* - `account_number`: The account number in the derivation path.
|
|
24009
25776
|
*/
|
|
@@ -24345,6 +26112,20 @@ export interface Storage {
|
|
|
24345
26112
|
updateDeposit(txid: string, vout: number, payload: UpdateDepositPayload, asyncOpts_?: {
|
|
24346
26113
|
signal: AbortSignal;
|
|
24347
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>;
|
|
24348
26129
|
setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
|
|
24349
26130
|
signal: AbortSignal;
|
|
24350
26131
|
}): Promise<void>;
|
|
@@ -24596,6 +26377,20 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
|
|
|
24596
26377
|
updateDeposit(txid: string, vout: number, payload: UpdateDepositPayload, asyncOpts_?: {
|
|
24597
26378
|
signal: AbortSignal;
|
|
24598
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>;
|
|
24599
26394
|
setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
|
|
24600
26395
|
signal: AbortSignal;
|
|
24601
26396
|
}): Promise<void>;
|
|
@@ -25237,6 +27032,34 @@ declare const _default: Readonly<{
|
|
|
25237
27032
|
lift(value: UniffiByteArray): CheckMessageResponse;
|
|
25238
27033
|
lower(value: CheckMessageResponse): UniffiByteArray;
|
|
25239
27034
|
};
|
|
27035
|
+
FfiConverterTypeCheckUnilateralExitRequest: {
|
|
27036
|
+
read(from: RustBuffer): CheckUnilateralExitRequest;
|
|
27037
|
+
write(value: CheckUnilateralExitRequest, into: RustBuffer): void;
|
|
27038
|
+
allocationSize(value: CheckUnilateralExitRequest): number;
|
|
27039
|
+
lift(value: UniffiByteArray): CheckUnilateralExitRequest;
|
|
27040
|
+
lower(value: CheckUnilateralExitRequest): UniffiByteArray;
|
|
27041
|
+
};
|
|
27042
|
+
FfiConverterTypeCheckUnilateralExitResponse: {
|
|
27043
|
+
read(from: RustBuffer): CheckUnilateralExitResponse;
|
|
27044
|
+
write(value: CheckUnilateralExitResponse, into: RustBuffer): void;
|
|
27045
|
+
allocationSize(value: CheckUnilateralExitResponse): number;
|
|
27046
|
+
lift(value: UniffiByteArray): CheckUnilateralExitResponse;
|
|
27047
|
+
lower(value: CheckUnilateralExitResponse): UniffiByteArray;
|
|
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
|
+
};
|
|
25240
27063
|
FfiConverterTypeClaimDepositQuote: {
|
|
25241
27064
|
read(from: RustBuffer): ClaimDepositQuote;
|
|
25242
27065
|
write(value: ClaimDepositQuote, into: RustBuffer): void;
|
|
@@ -25286,12 +27109,12 @@ declare const _default: Readonly<{
|
|
|
25286
27109
|
lift(value: UniffiByteArray): Config;
|
|
25287
27110
|
lower(value: Config): UniffiByteArray;
|
|
25288
27111
|
};
|
|
25289
|
-
|
|
25290
|
-
read(from: RustBuffer):
|
|
25291
|
-
write(value:
|
|
25292
|
-
allocationSize(value:
|
|
25293
|
-
lift(value: UniffiByteArray):
|
|
25294
|
-
lower(value:
|
|
27112
|
+
FfiConverterTypeConfirmedExitNode: {
|
|
27113
|
+
read(from: RustBuffer): ConfirmedExitNode;
|
|
27114
|
+
write(value: ConfirmedExitNode, into: RustBuffer): void;
|
|
27115
|
+
allocationSize(value: ConfirmedExitNode): number;
|
|
27116
|
+
lift(value: UniffiByteArray): ConfirmedExitNode;
|
|
27117
|
+
lower(value: ConfirmedExitNode): UniffiByteArray;
|
|
25295
27118
|
};
|
|
25296
27119
|
FfiConverterTypeConnectRequest: {
|
|
25297
27120
|
read(from: RustBuffer): ConnectRequest;
|
|
@@ -25462,6 +27285,13 @@ declare const _default: Readonly<{
|
|
|
25462
27285
|
lift(value: UniffiByteArray): Credentials;
|
|
25463
27286
|
lower(value: Credentials): UniffiByteArray;
|
|
25464
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
|
+
};
|
|
25465
27295
|
FfiConverterTypeCrossChainAddressDetails: {
|
|
25466
27296
|
read(from: RustBuffer): CrossChainAddressDetails;
|
|
25467
27297
|
write(value: CrossChainAddressDetails, into: RustBuffer): void;
|
|
@@ -25504,6 +27334,13 @@ declare const _default: Readonly<{
|
|
|
25504
27334
|
lift(value: UniffiByteArray): CrossChainProviderContext;
|
|
25505
27335
|
lower(value: CrossChainProviderContext): UniffiByteArray;
|
|
25506
27336
|
};
|
|
27337
|
+
FfiConverterTypeCrossChainReceiveInfo: {
|
|
27338
|
+
read(from: RustBuffer): CrossChainReceiveInfo;
|
|
27339
|
+
write(value: CrossChainReceiveInfo, into: RustBuffer): void;
|
|
27340
|
+
allocationSize(value: CrossChainReceiveInfo): number;
|
|
27341
|
+
lift(value: UniffiByteArray): CrossChainReceiveInfo;
|
|
27342
|
+
lower(value: CrossChainReceiveInfo): UniffiByteArray;
|
|
27343
|
+
};
|
|
25507
27344
|
FfiConverterTypeCrossChainRouteFilter: {
|
|
25508
27345
|
read(from: RustBuffer): CrossChainRouteFilter;
|
|
25509
27346
|
write(value: CrossChainRouteFilter, into: RustBuffer): void;
|
|
@@ -25511,6 +27348,13 @@ declare const _default: Readonly<{
|
|
|
25511
27348
|
lift(value: UniffiByteArray): CrossChainRouteFilter;
|
|
25512
27349
|
lower(value: CrossChainRouteFilter): UniffiByteArray;
|
|
25513
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
|
+
};
|
|
25514
27358
|
FfiConverterTypeCrossChainRoutePair: {
|
|
25515
27359
|
read(from: RustBuffer): CrossChainRoutePair;
|
|
25516
27360
|
write(value: CrossChainRoutePair, into: RustBuffer): void;
|
|
@@ -25525,6 +27369,13 @@ declare const _default: Readonly<{
|
|
|
25525
27369
|
lift(value: UniffiByteArray): CurrencyInfo;
|
|
25526
27370
|
lower(value: CurrencyInfo): UniffiByteArray;
|
|
25527
27371
|
};
|
|
27372
|
+
FfiConverterTypeDeliveryMethod: {
|
|
27373
|
+
read(from: RustBuffer): DeliveryMethod;
|
|
27374
|
+
write(value: DeliveryMethod, into: RustBuffer): void;
|
|
27375
|
+
allocationSize(value: DeliveryMethod): number;
|
|
27376
|
+
lift(value: UniffiByteArray): DeliveryMethod;
|
|
27377
|
+
lower(value: DeliveryMethod): UniffiByteArray;
|
|
27378
|
+
};
|
|
25528
27379
|
FfiConverterTypeDepositClaimError: {
|
|
25529
27380
|
read(from: RustBuffer): DepositClaimError;
|
|
25530
27381
|
write(value: DepositClaimError, into: RustBuffer): void;
|
|
@@ -25574,6 +27425,13 @@ declare const _default: Readonly<{
|
|
|
25574
27425
|
lift(value: UniffiByteArray): ErrorKind;
|
|
25575
27426
|
lower(value: ErrorKind): UniffiByteArray;
|
|
25576
27427
|
};
|
|
27428
|
+
FfiConverterTypeExitChainState: {
|
|
27429
|
+
read(from: RustBuffer): ExitChainState;
|
|
27430
|
+
write(value: ExitChainState, into: RustBuffer): void;
|
|
27431
|
+
allocationSize(value: ExitChainState): number;
|
|
27432
|
+
lift(value: UniffiByteArray): ExitChainState;
|
|
27433
|
+
lower(value: ExitChainState): UniffiByteArray;
|
|
27434
|
+
};
|
|
25577
27435
|
FfiConverterTypeExitLeafSelection: {
|
|
25578
27436
|
read(from: RustBuffer): ExitLeafSelection;
|
|
25579
27437
|
write(value: ExitLeafSelection, into: RustBuffer): void;
|
|
@@ -25581,6 +27439,34 @@ declare const _default: Readonly<{
|
|
|
25581
27439
|
lift(value: UniffiByteArray): ExitLeafSelection;
|
|
25582
27440
|
lower(value: ExitLeafSelection): UniffiByteArray;
|
|
25583
27441
|
};
|
|
27442
|
+
FfiConverterTypeExitNodeConfirmation: {
|
|
27443
|
+
read(from: RustBuffer): ExitNodeConfirmation;
|
|
27444
|
+
write(value: ExitNodeConfirmation, into: RustBuffer): void;
|
|
27445
|
+
allocationSize(value: ExitNodeConfirmation): number;
|
|
27446
|
+
lift(value: UniffiByteArray): ExitNodeConfirmation;
|
|
27447
|
+
lower(value: ExitNodeConfirmation): UniffiByteArray;
|
|
27448
|
+
};
|
|
27449
|
+
FfiConverterTypeExitRefund: {
|
|
27450
|
+
read(from: RustBuffer): ExitRefund;
|
|
27451
|
+
write(value: ExitRefund, into: RustBuffer): void;
|
|
27452
|
+
allocationSize(value: ExitRefund): number;
|
|
27453
|
+
lift(value: UniffiByteArray): ExitRefund;
|
|
27454
|
+
lower(value: ExitRefund): UniffiByteArray;
|
|
27455
|
+
};
|
|
27456
|
+
FfiConverterTypeExitRefundState: {
|
|
27457
|
+
read(from: RustBuffer): ExitRefundState;
|
|
27458
|
+
write(value: ExitRefundState, into: RustBuffer): void;
|
|
27459
|
+
allocationSize(value: ExitRefundState): number;
|
|
27460
|
+
lift(value: UniffiByteArray): ExitRefundState;
|
|
27461
|
+
lower(value: ExitRefundState): UniffiByteArray;
|
|
27462
|
+
};
|
|
27463
|
+
FfiConverterTypeExitTransactionStatus: {
|
|
27464
|
+
read(from: RustBuffer): ExitTransactionStatus;
|
|
27465
|
+
write(value: ExitTransactionStatus, into: RustBuffer): void;
|
|
27466
|
+
allocationSize(value: ExitTransactionStatus): number;
|
|
27467
|
+
lift(value: UniffiByteArray): ExitTransactionStatus;
|
|
27468
|
+
lower(value: ExitTransactionStatus): UniffiByteArray;
|
|
27469
|
+
};
|
|
25584
27470
|
FfiConverterTypeExportUnilateralExitStateResponse: {
|
|
25585
27471
|
read(from: RustBuffer): ExportUnilateralExitStateResponse;
|
|
25586
27472
|
write(value: ExportUnilateralExitStateResponse, into: RustBuffer): void;
|
|
@@ -25652,6 +27538,13 @@ declare const _default: Readonly<{
|
|
|
25652
27538
|
lift(value: UniffiByteArray): ExternalInputParser;
|
|
25653
27539
|
lower(value: ExternalInputParser): UniffiByteArray;
|
|
25654
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
|
+
};
|
|
25655
27548
|
FfiConverterTypeExternalNewLeafKey: {
|
|
25656
27549
|
read(from: RustBuffer): ExternalNewLeafKey;
|
|
25657
27550
|
write(value: ExternalNewLeafKey, into: RustBuffer): void;
|
|
@@ -26890,20 +28783,6 @@ declare const _default: Readonly<{
|
|
|
26890
28783
|
lift(value: UniffiByteArray): SilentPaymentAddressDetails;
|
|
26891
28784
|
lower(value: SilentPaymentAddressDetails): UniffiByteArray;
|
|
26892
28785
|
};
|
|
26893
|
-
FfiConverterTypeSourceAsset: {
|
|
26894
|
-
read(from: RustBuffer): SourceAsset;
|
|
26895
|
-
write(value: SourceAsset, into: RustBuffer): void;
|
|
26896
|
-
allocationSize(value: SourceAsset): number;
|
|
26897
|
-
lift(value: UniffiByteArray): SourceAsset;
|
|
26898
|
-
lower(value: SourceAsset): UniffiByteArray;
|
|
26899
|
-
};
|
|
26900
|
-
FfiConverterTypeSourceChain: {
|
|
26901
|
-
read(from: RustBuffer): SourceChain;
|
|
26902
|
-
write(value: SourceChain, into: RustBuffer): void;
|
|
26903
|
-
allocationSize(value: SourceChain): number;
|
|
26904
|
-
lift(value: UniffiByteArray): SourceChain;
|
|
26905
|
-
lower(value: SourceChain): UniffiByteArray;
|
|
26906
|
-
};
|
|
26907
28786
|
FfiConverterTypeSparkAddressDetails: {
|
|
26908
28787
|
read(from: RustBuffer): SparkAddressDetails;
|
|
26909
28788
|
write(value: SparkAddressDetails, into: RustBuffer): void;
|
|
@@ -26911,6 +28790,13 @@ declare const _default: Readonly<{
|
|
|
26911
28790
|
lift(value: UniffiByteArray): SparkAddressDetails;
|
|
26912
28791
|
lower(value: SparkAddressDetails): UniffiByteArray;
|
|
26913
28792
|
};
|
|
28793
|
+
FfiConverterTypeSparkAsset: {
|
|
28794
|
+
read(from: RustBuffer): SparkAsset;
|
|
28795
|
+
write(value: SparkAsset, into: RustBuffer): void;
|
|
28796
|
+
allocationSize(value: SparkAsset): number;
|
|
28797
|
+
lift(value: UniffiByteArray): SparkAsset;
|
|
28798
|
+
lower(value: SparkAsset): UniffiByteArray;
|
|
28799
|
+
};
|
|
26914
28800
|
FfiConverterTypeSparkConfig: {
|
|
26915
28801
|
read(from: RustBuffer): SparkConfig;
|
|
26916
28802
|
write(value: SparkConfig, into: RustBuffer): void;
|
|
@@ -27166,6 +29052,13 @@ declare const _default: Readonly<{
|
|
|
27166
29052
|
lift(value: UniffiByteArray): UnilateralExitLeaf;
|
|
27167
29053
|
lower(value: UnilateralExitLeaf): UniffiByteArray;
|
|
27168
29054
|
};
|
|
29055
|
+
FfiConverterTypeUnilateralExitRedoReason: {
|
|
29056
|
+
read(from: RustBuffer): UnilateralExitRedoReason;
|
|
29057
|
+
write(value: UnilateralExitRedoReason, into: RustBuffer): void;
|
|
29058
|
+
allocationSize(value: UnilateralExitRedoReason): number;
|
|
29059
|
+
lift(value: UniffiByteArray): UnilateralExitRedoReason;
|
|
29060
|
+
lower(value: UnilateralExitRedoReason): UniffiByteArray;
|
|
29061
|
+
};
|
|
27169
29062
|
FfiConverterTypeUnilateralExitRequest: {
|
|
27170
29063
|
read(from: RustBuffer): UnilateralExitRequest;
|
|
27171
29064
|
write(value: UnilateralExitRequest, into: RustBuffer): void;
|
|
@@ -27194,6 +29087,13 @@ declare const _default: Readonly<{
|
|
|
27194
29087
|
lift(value: UniffiByteArray): UnilateralExitTxKind;
|
|
27195
29088
|
lower(value: UnilateralExitTxKind): UniffiByteArray;
|
|
27196
29089
|
};
|
|
29090
|
+
FfiConverterTypeUnilateralExitVerdict: {
|
|
29091
|
+
read(from: RustBuffer): UnilateralExitVerdict;
|
|
29092
|
+
write(value: UnilateralExitVerdict, into: RustBuffer): void;
|
|
29093
|
+
allocationSize(value: UnilateralExitVerdict): number;
|
|
29094
|
+
lift(value: UniffiByteArray): UnilateralExitVerdict;
|
|
29095
|
+
lower(value: UnilateralExitVerdict): UniffiByteArray;
|
|
29096
|
+
};
|
|
27197
29097
|
FfiConverterTypeUnregisterWebhookRequest: {
|
|
27198
29098
|
read(from: RustBuffer): UnregisterWebhookRequest;
|
|
27199
29099
|
write(value: UnregisterWebhookRequest, into: RustBuffer): void;
|
|
@@ -27236,6 +29136,13 @@ declare const _default: Readonly<{
|
|
|
27236
29136
|
lift(value: UniffiByteArray): UpdateUserSettingsRequest;
|
|
27237
29137
|
lower(value: UpdateUserSettingsRequest): UniffiByteArray;
|
|
27238
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
|
+
};
|
|
27239
29146
|
FfiConverterTypeUrlSuccessActionData: {
|
|
27240
29147
|
read(from: RustBuffer): UrlSuccessActionData;
|
|
27241
29148
|
write(value: UrlSuccessActionData, into: RustBuffer): void;
|
|
@@ -27271,6 +29178,13 @@ declare const _default: Readonly<{
|
|
|
27271
29178
|
lift(value: UniffiByteArray): WalletSetup;
|
|
27272
29179
|
lower(value: WalletSetup): UniffiByteArray;
|
|
27273
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
|
+
};
|
|
27274
29188
|
FfiConverterTypeWebhook: {
|
|
27275
29189
|
read(from: RustBuffer): Webhook;
|
|
27276
29190
|
write(value: Webhook, into: RustBuffer): void;
|