@xchainjs/xchain-thornode 0.3.3 → 0.3.5
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/lib/generated/thornodeApi/api.d.ts +323 -15
- package/lib/generated/thornodeApi/base.d.ts +1 -1
- package/lib/generated/thornodeApi/common.d.ts +1 -1
- package/lib/generated/thornodeApi/configuration.d.ts +1 -1
- package/lib/generated/thornodeApi/index.d.ts +1 -1
- package/lib/index.esm.js +182 -9
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +185 -8
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.118.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -85,6 +85,12 @@ export interface BaseQuoteResponse {
|
|
|
85
85
|
* @memberof BaseQuoteResponse
|
|
86
86
|
*/
|
|
87
87
|
'slippage_bps'?: number;
|
|
88
|
+
/**
|
|
89
|
+
* the total streaming swap slippage in basis points
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof BaseQuoteResponse
|
|
92
|
+
*/
|
|
93
|
+
'streaming_slippage_bps'?: number;
|
|
88
94
|
/**
|
|
89
95
|
* the EVM chain router contract address
|
|
90
96
|
* @type {string}
|
|
@@ -145,25 +151,37 @@ export interface Borrower {
|
|
|
145
151
|
* @type {string}
|
|
146
152
|
* @memberof Borrower
|
|
147
153
|
*/
|
|
148
|
-
'
|
|
154
|
+
'debt_issued': string;
|
|
149
155
|
/**
|
|
150
156
|
*
|
|
151
157
|
* @type {string}
|
|
152
158
|
* @memberof Borrower
|
|
153
159
|
*/
|
|
154
|
-
'
|
|
160
|
+
'debt_repaid': string;
|
|
155
161
|
/**
|
|
156
162
|
*
|
|
157
163
|
* @type {string}
|
|
158
164
|
* @memberof Borrower
|
|
159
165
|
*/
|
|
160
|
-
'
|
|
166
|
+
'debt_current': string;
|
|
161
167
|
/**
|
|
162
168
|
*
|
|
163
169
|
* @type {string}
|
|
164
170
|
* @memberof Borrower
|
|
165
171
|
*/
|
|
166
|
-
'
|
|
172
|
+
'collateral_deposited': string;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof Borrower
|
|
177
|
+
*/
|
|
178
|
+
'collateral_withdrawn': string;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof Borrower
|
|
183
|
+
*/
|
|
184
|
+
'collateral_current': string;
|
|
167
185
|
/**
|
|
168
186
|
*
|
|
169
187
|
* @type {number}
|
|
@@ -371,10 +389,10 @@ export interface InvariantResponse {
|
|
|
371
389
|
'broken': boolean;
|
|
372
390
|
/**
|
|
373
391
|
* Informative message about the invariant result.
|
|
374
|
-
* @type {string}
|
|
392
|
+
* @type {Array<string>}
|
|
375
393
|
* @memberof InvariantResponse
|
|
376
394
|
*/
|
|
377
|
-
'msg': string
|
|
395
|
+
'msg': Array<string>;
|
|
378
396
|
}
|
|
379
397
|
/**
|
|
380
398
|
*
|
|
@@ -830,6 +848,18 @@ export interface MsgSwap {
|
|
|
830
848
|
* @memberof MsgSwap
|
|
831
849
|
*/
|
|
832
850
|
'order_type'?: number;
|
|
851
|
+
/**
|
|
852
|
+
* number of swaps to execute in a streaming swap
|
|
853
|
+
* @type {number}
|
|
854
|
+
* @memberof MsgSwap
|
|
855
|
+
*/
|
|
856
|
+
'stream_quantity'?: number;
|
|
857
|
+
/**
|
|
858
|
+
* the interval (in blocks) to execute the streaming swap
|
|
859
|
+
* @type {number}
|
|
860
|
+
* @memberof MsgSwap
|
|
861
|
+
*/
|
|
862
|
+
'stream_interval'?: number;
|
|
833
863
|
}
|
|
834
864
|
/**
|
|
835
865
|
*
|
|
@@ -861,6 +891,12 @@ export interface NetworkResponse {
|
|
|
861
891
|
* @memberof NetworkResponse
|
|
862
892
|
*/
|
|
863
893
|
'total_bond_units': string;
|
|
894
|
+
/**
|
|
895
|
+
* effective security bond used to determine maximum pooled RUNE
|
|
896
|
+
* @type {string}
|
|
897
|
+
* @memberof NetworkResponse
|
|
898
|
+
*/
|
|
899
|
+
'effective_security_bond': string;
|
|
864
900
|
/**
|
|
865
901
|
* total reserve RUNE
|
|
866
902
|
* @type {string}
|
|
@@ -891,6 +927,30 @@ export interface NetworkResponse {
|
|
|
891
927
|
* @memberof NetworkResponse
|
|
892
928
|
*/
|
|
893
929
|
'outbound_fee_multiplier'?: string;
|
|
930
|
+
/**
|
|
931
|
+
* the outbound transaction fee in rune, converted from the NativeOutboundFeeUSD mimir
|
|
932
|
+
* @type {string}
|
|
933
|
+
* @memberof NetworkResponse
|
|
934
|
+
*/
|
|
935
|
+
'native_outbound_fee_rune': string;
|
|
936
|
+
/**
|
|
937
|
+
* the native transaction fee in rune, converted from the NativeTransactionFeeUSD mimir
|
|
938
|
+
* @type {string}
|
|
939
|
+
* @memberof NetworkResponse
|
|
940
|
+
*/
|
|
941
|
+
'native_tx_fee_rune': string;
|
|
942
|
+
/**
|
|
943
|
+
* the thorname register fee in rune, converted from the TNSRegisterFeeUSD mimir
|
|
944
|
+
* @type {string}
|
|
945
|
+
* @memberof NetworkResponse
|
|
946
|
+
*/
|
|
947
|
+
'tns_register_fee_rune': string;
|
|
948
|
+
/**
|
|
949
|
+
* the thorname fee per block in rune, converted from the TNSFeePerBlockUSD mimir
|
|
950
|
+
* @type {string}
|
|
951
|
+
* @memberof NetworkResponse
|
|
952
|
+
*/
|
|
953
|
+
'tns_fee_per_block_rune': string;
|
|
894
954
|
}
|
|
895
955
|
/**
|
|
896
956
|
*
|
|
@@ -1408,6 +1468,12 @@ export interface Pool {
|
|
|
1408
1468
|
* @memberof Pool
|
|
1409
1469
|
*/
|
|
1410
1470
|
'loan_collateral': string;
|
|
1471
|
+
/**
|
|
1472
|
+
* the current loan collateralization ratio
|
|
1473
|
+
* @type {string}
|
|
1474
|
+
* @memberof Pool
|
|
1475
|
+
*/
|
|
1476
|
+
'loan_cr': string;
|
|
1411
1477
|
}
|
|
1412
1478
|
/**
|
|
1413
1479
|
*
|
|
@@ -1532,6 +1598,12 @@ export interface QuoteLoanCloseResponse {
|
|
|
1532
1598
|
* @memberof QuoteLoanCloseResponse
|
|
1533
1599
|
*/
|
|
1534
1600
|
'slippage_bps'?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* the total streaming swap slippage in basis points
|
|
1603
|
+
* @type {number}
|
|
1604
|
+
* @memberof QuoteLoanCloseResponse
|
|
1605
|
+
*/
|
|
1606
|
+
'streaming_slippage_bps'?: number;
|
|
1535
1607
|
/**
|
|
1536
1608
|
* the EVM chain router contract address
|
|
1537
1609
|
* @type {string}
|
|
@@ -1585,13 +1657,13 @@ export interface QuoteLoanCloseResponse {
|
|
|
1585
1657
|
* @type {string}
|
|
1586
1658
|
* @memberof QuoteLoanCloseResponse
|
|
1587
1659
|
*/
|
|
1588
|
-
'
|
|
1660
|
+
'expected_collateral_withdrawn': string;
|
|
1589
1661
|
/**
|
|
1590
1662
|
* the expected amount of TOR debt decrease on the loan
|
|
1591
1663
|
* @type {string}
|
|
1592
1664
|
* @memberof QuoteLoanCloseResponse
|
|
1593
1665
|
*/
|
|
1594
|
-
'
|
|
1666
|
+
'expected_debt_repaid': string;
|
|
1595
1667
|
}
|
|
1596
1668
|
/**
|
|
1597
1669
|
*
|
|
@@ -1641,6 +1713,12 @@ export interface QuoteLoanOpenResponse {
|
|
|
1641
1713
|
* @memberof QuoteLoanOpenResponse
|
|
1642
1714
|
*/
|
|
1643
1715
|
'slippage_bps'?: number;
|
|
1716
|
+
/**
|
|
1717
|
+
* the total streaming swap slippage in basis points
|
|
1718
|
+
* @type {number}
|
|
1719
|
+
* @memberof QuoteLoanOpenResponse
|
|
1720
|
+
*/
|
|
1721
|
+
'streaming_slippage_bps'?: number;
|
|
1644
1722
|
/**
|
|
1645
1723
|
* the EVM chain router contract address
|
|
1646
1724
|
* @type {string}
|
|
@@ -1700,13 +1778,13 @@ export interface QuoteLoanOpenResponse {
|
|
|
1700
1778
|
* @type {string}
|
|
1701
1779
|
* @memberof QuoteLoanOpenResponse
|
|
1702
1780
|
*/
|
|
1703
|
-
'
|
|
1781
|
+
'expected_collateral_deposited': string;
|
|
1704
1782
|
/**
|
|
1705
1783
|
* the expected amount of TOR debt increase on the loan
|
|
1706
1784
|
* @type {string}
|
|
1707
1785
|
* @memberof QuoteLoanOpenResponse
|
|
1708
1786
|
*/
|
|
1709
|
-
'
|
|
1787
|
+
'expected_debt_issued': string;
|
|
1710
1788
|
}
|
|
1711
1789
|
/**
|
|
1712
1790
|
*
|
|
@@ -1756,6 +1834,12 @@ export interface QuoteSaverDepositResponse {
|
|
|
1756
1834
|
* @memberof QuoteSaverDepositResponse
|
|
1757
1835
|
*/
|
|
1758
1836
|
'slippage_bps': number;
|
|
1837
|
+
/**
|
|
1838
|
+
* the total streaming swap slippage in basis points
|
|
1839
|
+
* @type {number}
|
|
1840
|
+
* @memberof QuoteSaverDepositResponse
|
|
1841
|
+
*/
|
|
1842
|
+
'streaming_slippage_bps'?: number;
|
|
1759
1843
|
/**
|
|
1760
1844
|
* the EVM chain router contract address
|
|
1761
1845
|
* @type {string}
|
|
@@ -1859,6 +1943,12 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1859
1943
|
* @memberof QuoteSaverWithdrawResponse
|
|
1860
1944
|
*/
|
|
1861
1945
|
'slippage_bps': number;
|
|
1946
|
+
/**
|
|
1947
|
+
* the total streaming swap slippage in basis points
|
|
1948
|
+
* @type {number}
|
|
1949
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1950
|
+
*/
|
|
1951
|
+
'streaming_slippage_bps'?: number;
|
|
1862
1952
|
/**
|
|
1863
1953
|
* the EVM chain router contract address
|
|
1864
1954
|
* @type {string}
|
|
@@ -1962,6 +2052,12 @@ export interface QuoteSwapResponse {
|
|
|
1962
2052
|
* @memberof QuoteSwapResponse
|
|
1963
2053
|
*/
|
|
1964
2054
|
'slippage_bps': number;
|
|
2055
|
+
/**
|
|
2056
|
+
* the total streaming swap slippage in basis points
|
|
2057
|
+
* @type {number}
|
|
2058
|
+
* @memberof QuoteSwapResponse
|
|
2059
|
+
*/
|
|
2060
|
+
'streaming_slippage_bps': number;
|
|
1965
2061
|
/**
|
|
1966
2062
|
* the EVM chain router contract address
|
|
1967
2063
|
* @type {string}
|
|
@@ -2010,6 +2106,36 @@ export interface QuoteSwapResponse {
|
|
|
2010
2106
|
* @memberof QuoteSwapResponse
|
|
2011
2107
|
*/
|
|
2012
2108
|
'expected_amount_out': string;
|
|
2109
|
+
/**
|
|
2110
|
+
* the amount of the target asset the user can expect to receive after fees for a streaming swap
|
|
2111
|
+
* @type {string}
|
|
2112
|
+
* @memberof QuoteSwapResponse
|
|
2113
|
+
*/
|
|
2114
|
+
'expected_amount_out_streaming': string;
|
|
2115
|
+
/**
|
|
2116
|
+
* the maxiumum amount of trades a streaming swap can do for a trade
|
|
2117
|
+
* @type {number}
|
|
2118
|
+
* @memberof QuoteSwapResponse
|
|
2119
|
+
*/
|
|
2120
|
+
'max_streaming_quantity'?: number;
|
|
2121
|
+
/**
|
|
2122
|
+
* the number of blocks the streaming swap will execute over
|
|
2123
|
+
* @type {number}
|
|
2124
|
+
* @memberof QuoteSwapResponse
|
|
2125
|
+
*/
|
|
2126
|
+
'streaming_swap_blocks'?: number;
|
|
2127
|
+
/**
|
|
2128
|
+
* approx the number of seconds the streaming swap will execute over
|
|
2129
|
+
* @type {number}
|
|
2130
|
+
* @memberof QuoteSwapResponse
|
|
2131
|
+
*/
|
|
2132
|
+
'streaming_swap_seconds'?: number;
|
|
2133
|
+
/**
|
|
2134
|
+
* total number of seconds a swap is expected to take (inbound conf + streaming swap + outbound delay)
|
|
2135
|
+
* @type {number}
|
|
2136
|
+
* @memberof QuoteSwapResponse
|
|
2137
|
+
*/
|
|
2138
|
+
'total_swap_seconds'?: number;
|
|
2013
2139
|
}
|
|
2014
2140
|
/**
|
|
2015
2141
|
*
|
|
@@ -2080,6 +2206,86 @@ export interface SaversResponse extends Array<Saver> {
|
|
|
2080
2206
|
*/
|
|
2081
2207
|
export interface ScheduledResponse extends Array<TxOutItem> {
|
|
2082
2208
|
}
|
|
2209
|
+
/**
|
|
2210
|
+
*
|
|
2211
|
+
* @export
|
|
2212
|
+
* @interface StreamingSwap
|
|
2213
|
+
*/
|
|
2214
|
+
export interface StreamingSwap {
|
|
2215
|
+
/**
|
|
2216
|
+
* the hash of a transaction
|
|
2217
|
+
* @type {string}
|
|
2218
|
+
* @memberof StreamingSwap
|
|
2219
|
+
*/
|
|
2220
|
+
'tx_id'?: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* how often each swap is made, in blocks
|
|
2223
|
+
* @type {number}
|
|
2224
|
+
* @memberof StreamingSwap
|
|
2225
|
+
*/
|
|
2226
|
+
'interval'?: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* the total number of swaps in a streaming swaps
|
|
2229
|
+
* @type {number}
|
|
2230
|
+
* @memberof StreamingSwap
|
|
2231
|
+
*/
|
|
2232
|
+
'quantity'?: number;
|
|
2233
|
+
/**
|
|
2234
|
+
* the amount of swap attempts so far
|
|
2235
|
+
* @type {number}
|
|
2236
|
+
* @memberof StreamingSwap
|
|
2237
|
+
*/
|
|
2238
|
+
'count'?: number;
|
|
2239
|
+
/**
|
|
2240
|
+
* the block height of the latest swap
|
|
2241
|
+
* @type {number}
|
|
2242
|
+
* @memberof StreamingSwap
|
|
2243
|
+
*/
|
|
2244
|
+
'last_height'?: number;
|
|
2245
|
+
/**
|
|
2246
|
+
* the total number of tokens the swapper wants to receive of the output asset
|
|
2247
|
+
* @type {string}
|
|
2248
|
+
* @memberof StreamingSwap
|
|
2249
|
+
*/
|
|
2250
|
+
'trade_target'?: string;
|
|
2251
|
+
/**
|
|
2252
|
+
* the number of input tokens the swapper has deposited
|
|
2253
|
+
* @type {string}
|
|
2254
|
+
* @memberof StreamingSwap
|
|
2255
|
+
*/
|
|
2256
|
+
'deposit'?: string;
|
|
2257
|
+
/**
|
|
2258
|
+
* the amount of input tokens that have been swapped so far
|
|
2259
|
+
* @type {string}
|
|
2260
|
+
* @memberof StreamingSwap
|
|
2261
|
+
*/
|
|
2262
|
+
'in'?: string;
|
|
2263
|
+
/**
|
|
2264
|
+
* the amount of output tokens that have been swapped so far
|
|
2265
|
+
* @type {string}
|
|
2266
|
+
* @memberof StreamingSwap
|
|
2267
|
+
*/
|
|
2268
|
+
'out'?: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* the list of swap indexes that failed
|
|
2271
|
+
* @type {Array<number>}
|
|
2272
|
+
* @memberof StreamingSwap
|
|
2273
|
+
*/
|
|
2274
|
+
'failed_swaps'?: Array<number>;
|
|
2275
|
+
/**
|
|
2276
|
+
* the list of reasons that sub-swaps have failed
|
|
2277
|
+
* @type {Array<string>}
|
|
2278
|
+
* @memberof StreamingSwap
|
|
2279
|
+
*/
|
|
2280
|
+
'failed_swap_reasons'?: Array<string>;
|
|
2281
|
+
}
|
|
2282
|
+
/**
|
|
2283
|
+
*
|
|
2284
|
+
* @export
|
|
2285
|
+
* @interface StreamingSwapsResponse
|
|
2286
|
+
*/
|
|
2287
|
+
export interface StreamingSwapsResponse extends Array<StreamingSwap> {
|
|
2288
|
+
}
|
|
2083
2289
|
/**
|
|
2084
2290
|
*
|
|
2085
2291
|
* @export
|
|
@@ -2117,6 +2323,12 @@ export interface Thorname {
|
|
|
2117
2323
|
* @memberof Thorname
|
|
2118
2324
|
*/
|
|
2119
2325
|
'preferred_asset': string;
|
|
2326
|
+
/**
|
|
2327
|
+
* Amount of RUNE currently accrued by this thorname in affiliate fees waiting to be swapped to preferred asset.
|
|
2328
|
+
* @type {string}
|
|
2329
|
+
* @memberof Thorname
|
|
2330
|
+
*/
|
|
2331
|
+
'affiliate_collector_rune'?: string;
|
|
2120
2332
|
/**
|
|
2121
2333
|
*
|
|
2122
2334
|
* @type {Array<ThornameAlias>}
|
|
@@ -4134,6 +4346,8 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4134
4346
|
* @param {string} [toAsset] the target asset
|
|
4135
4347
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4136
4348
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4349
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4350
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4137
4351
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4138
4352
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4139
4353
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4141,7 +4355,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4141
4355
|
* @param {*} [options] Override http request option.
|
|
4142
4356
|
* @throws {RequiredError}
|
|
4143
4357
|
*/
|
|
4144
|
-
quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4358
|
+
quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4145
4359
|
};
|
|
4146
4360
|
/**
|
|
4147
4361
|
* QuoteApi - functional programming interface
|
|
@@ -4200,6 +4414,8 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4200
4414
|
* @param {string} [toAsset] the target asset
|
|
4201
4415
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4202
4416
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4417
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4418
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4203
4419
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4204
4420
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4205
4421
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4207,7 +4423,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4207
4423
|
* @param {*} [options] Override http request option.
|
|
4208
4424
|
* @throws {RequiredError}
|
|
4209
4425
|
*/
|
|
4210
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
|
|
4426
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
|
|
4211
4427
|
};
|
|
4212
4428
|
/**
|
|
4213
4429
|
* QuoteApi - factory interface
|
|
@@ -4266,6 +4482,8 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4266
4482
|
* @param {string} [toAsset] the target asset
|
|
4267
4483
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4268
4484
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4485
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4486
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4269
4487
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4270
4488
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4271
4489
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4273,7 +4491,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4273
4491
|
* @param {*} [options] Override http request option.
|
|
4274
4492
|
* @throws {RequiredError}
|
|
4275
4493
|
*/
|
|
4276
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
|
|
4494
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
|
|
4277
4495
|
};
|
|
4278
4496
|
/**
|
|
4279
4497
|
* QuoteApi - object-oriented interface
|
|
@@ -4338,6 +4556,8 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4338
4556
|
* @param {string} [toAsset] the target asset
|
|
4339
4557
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
4340
4558
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4559
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4560
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4341
4561
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4342
4562
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4343
4563
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4346,7 +4566,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4346
4566
|
* @throws {RequiredError}
|
|
4347
4567
|
* @memberof QuoteApi
|
|
4348
4568
|
*/
|
|
4349
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
|
|
4569
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
|
|
4350
4570
|
}
|
|
4351
4571
|
/**
|
|
4352
4572
|
* SaversApi - axios parameter creator
|
|
@@ -4444,6 +4664,94 @@ export declare class SaversApi extends BaseAPI {
|
|
|
4444
4664
|
*/
|
|
4445
4665
|
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SaversResponse, any>>;
|
|
4446
4666
|
}
|
|
4667
|
+
/**
|
|
4668
|
+
* StreamingSwapApi - axios parameter creator
|
|
4669
|
+
* @export
|
|
4670
|
+
*/
|
|
4671
|
+
export declare const StreamingSwapApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4672
|
+
/**
|
|
4673
|
+
* Returns the state of a streaming swap
|
|
4674
|
+
* @param {string} hash
|
|
4675
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4676
|
+
* @param {*} [options] Override http request option.
|
|
4677
|
+
* @throws {RequiredError}
|
|
4678
|
+
*/
|
|
4679
|
+
streamSwap: (hash: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4680
|
+
/**
|
|
4681
|
+
* Returns the state of all streaming swaps
|
|
4682
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4683
|
+
* @param {*} [options] Override http request option.
|
|
4684
|
+
* @throws {RequiredError}
|
|
4685
|
+
*/
|
|
4686
|
+
streamSwaps: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4687
|
+
};
|
|
4688
|
+
/**
|
|
4689
|
+
* StreamingSwapApi - functional programming interface
|
|
4690
|
+
* @export
|
|
4691
|
+
*/
|
|
4692
|
+
export declare const StreamingSwapApiFp: (configuration?: Configuration) => {
|
|
4693
|
+
/**
|
|
4694
|
+
* Returns the state of a streaming swap
|
|
4695
|
+
* @param {string} hash
|
|
4696
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4697
|
+
* @param {*} [options] Override http request option.
|
|
4698
|
+
* @throws {RequiredError}
|
|
4699
|
+
*/
|
|
4700
|
+
streamSwap(hash: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StreamingSwap>>;
|
|
4701
|
+
/**
|
|
4702
|
+
* Returns the state of all streaming swaps
|
|
4703
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4704
|
+
* @param {*} [options] Override http request option.
|
|
4705
|
+
* @throws {RequiredError}
|
|
4706
|
+
*/
|
|
4707
|
+
streamSwaps(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StreamingSwapsResponse>>;
|
|
4708
|
+
};
|
|
4709
|
+
/**
|
|
4710
|
+
* StreamingSwapApi - factory interface
|
|
4711
|
+
* @export
|
|
4712
|
+
*/
|
|
4713
|
+
export declare const StreamingSwapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4714
|
+
/**
|
|
4715
|
+
* Returns the state of a streaming swap
|
|
4716
|
+
* @param {string} hash
|
|
4717
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4718
|
+
* @param {*} [options] Override http request option.
|
|
4719
|
+
* @throws {RequiredError}
|
|
4720
|
+
*/
|
|
4721
|
+
streamSwap(hash: string, height?: number, options?: any): AxiosPromise<StreamingSwap>;
|
|
4722
|
+
/**
|
|
4723
|
+
* Returns the state of all streaming swaps
|
|
4724
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4725
|
+
* @param {*} [options] Override http request option.
|
|
4726
|
+
* @throws {RequiredError}
|
|
4727
|
+
*/
|
|
4728
|
+
streamSwaps(height?: number, options?: any): AxiosPromise<StreamingSwapsResponse>;
|
|
4729
|
+
};
|
|
4730
|
+
/**
|
|
4731
|
+
* StreamingSwapApi - object-oriented interface
|
|
4732
|
+
* @export
|
|
4733
|
+
* @class StreamingSwapApi
|
|
4734
|
+
* @extends {BaseAPI}
|
|
4735
|
+
*/
|
|
4736
|
+
export declare class StreamingSwapApi extends BaseAPI {
|
|
4737
|
+
/**
|
|
4738
|
+
* Returns the state of a streaming swap
|
|
4739
|
+
* @param {string} hash
|
|
4740
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4741
|
+
* @param {*} [options] Override http request option.
|
|
4742
|
+
* @throws {RequiredError}
|
|
4743
|
+
* @memberof StreamingSwapApi
|
|
4744
|
+
*/
|
|
4745
|
+
streamSwap(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StreamingSwap, any>>;
|
|
4746
|
+
/**
|
|
4747
|
+
* Returns the state of all streaming swaps
|
|
4748
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4749
|
+
* @param {*} [options] Override http request option.
|
|
4750
|
+
* @throws {RequiredError}
|
|
4751
|
+
* @memberof StreamingSwapApi
|
|
4752
|
+
*/
|
|
4753
|
+
streamSwaps(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StreamingSwapsResponse, any>>;
|
|
4754
|
+
}
|
|
4447
4755
|
/**
|
|
4448
4756
|
* TSSApi - axios parameter creator
|
|
4449
4757
|
* @export
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.118.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.118.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.118.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.118.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|