@xchainjs/xchain-thornode 0.3.4 → 0.3.6

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.
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.116.0
5
+ * The version of the OpenAPI document: 1.120.1
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -80,13 +80,13 @@ export interface BaseQuoteResponse {
80
80
  */
81
81
  'fees'?: QuoteFees;
82
82
  /**
83
- * the total swap slippage in basis points
83
+ * Deprecated - migrate to fees object.
84
84
  * @type {number}
85
85
  * @memberof BaseQuoteResponse
86
86
  */
87
87
  'slippage_bps'?: number;
88
88
  /**
89
- * the total streaming swap slippage in basis points
89
+ * Deprecated - migrate to fees object.
90
90
  * @type {number}
91
91
  * @memberof BaseQuoteResponse
92
92
  */
@@ -151,25 +151,37 @@ export interface Borrower {
151
151
  * @type {string}
152
152
  * @memberof Borrower
153
153
  */
154
- 'debt_up': string;
154
+ 'debt_issued': string;
155
155
  /**
156
156
  *
157
157
  * @type {string}
158
158
  * @memberof Borrower
159
159
  */
160
- 'debt_down': string;
160
+ 'debt_repaid': string;
161
161
  /**
162
162
  *
163
163
  * @type {string}
164
164
  * @memberof Borrower
165
165
  */
166
- 'collateral_up': string;
166
+ 'debt_current': string;
167
167
  /**
168
168
  *
169
169
  * @type {string}
170
170
  * @memberof Borrower
171
171
  */
172
- 'collateral_down': string;
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;
173
185
  /**
174
186
  *
175
187
  * @type {number}
@@ -265,6 +277,56 @@ export interface ConstantsResponse {
265
277
  [key: string]: string;
266
278
  };
267
279
  }
280
+ /**
281
+ *
282
+ * @export
283
+ * @interface DerivedPool
284
+ */
285
+ export interface DerivedPool {
286
+ /**
287
+ *
288
+ * @type {string}
289
+ * @memberof DerivedPool
290
+ */
291
+ 'asset': string;
292
+ /**
293
+ *
294
+ * @type {string}
295
+ * @memberof DerivedPool
296
+ */
297
+ 'status': string;
298
+ /**
299
+ *
300
+ * @type {number}
301
+ * @memberof DerivedPool
302
+ */
303
+ 'decimals'?: number;
304
+ /**
305
+ *
306
+ * @type {string}
307
+ * @memberof DerivedPool
308
+ */
309
+ 'balance_asset': string;
310
+ /**
311
+ *
312
+ * @type {string}
313
+ * @memberof DerivedPool
314
+ */
315
+ 'balance_rune': string;
316
+ /**
317
+ * the depth of the derived virtual pool relative to L1 pool (in basis points)
318
+ * @type {string}
319
+ * @memberof DerivedPool
320
+ */
321
+ 'derived_depth_bps': string;
322
+ }
323
+ /**
324
+ *
325
+ * @export
326
+ * @interface DerivedPoolsResponse
327
+ */
328
+ export interface DerivedPoolsResponse extends Array<DerivedPool> {
329
+ }
268
330
  /**
269
331
  *
270
332
  * @export
@@ -377,10 +439,10 @@ export interface InvariantResponse {
377
439
  'broken': boolean;
378
440
  /**
379
441
  * Informative message about the invariant result.
380
- * @type {string}
442
+ * @type {Array<string>}
381
443
  * @memberof InvariantResponse
382
444
  */
383
- 'msg': string;
445
+ 'msg': Array<string>;
384
446
  }
385
447
  /**
386
448
  *
@@ -1366,6 +1428,12 @@ export interface Pool {
1366
1428
  * @memberof Pool
1367
1429
  */
1368
1430
  'asset': string;
1431
+ /**
1432
+ *
1433
+ * @type {string}
1434
+ * @memberof Pool
1435
+ */
1436
+ 'short_code'?: string;
1369
1437
  /**
1370
1438
  *
1371
1439
  * @type {string}
@@ -1456,6 +1524,18 @@ export interface Pool {
1456
1524
  * @memberof Pool
1457
1525
  */
1458
1526
  'loan_collateral': string;
1527
+ /**
1528
+ * the current loan collateralization ratio
1529
+ * @type {string}
1530
+ * @memberof Pool
1531
+ */
1532
+ 'loan_cr': string;
1533
+ /**
1534
+ * the depth of the derived virtual pool relative to L1 pool (in basis points)
1535
+ * @type {string}
1536
+ * @memberof Pool
1537
+ */
1538
+ 'derived_depth_bps': string;
1459
1539
  }
1460
1540
  /**
1461
1541
  *
@@ -1502,35 +1582,47 @@ export interface QueueResponse {
1502
1582
  */
1503
1583
  export interface QuoteFees {
1504
1584
  /**
1505
- *
1585
+ * the target asset used for all fees
1506
1586
  * @type {string}
1507
1587
  * @memberof QuoteFees
1508
1588
  */
1509
1589
  'asset': string;
1510
1590
  /**
1511
- *
1591
+ * affiliate fee in the target asset
1512
1592
  * @type {string}
1513
1593
  * @memberof QuoteFees
1514
1594
  */
1515
1595
  'affiliate'?: string;
1516
1596
  /**
1517
- *
1597
+ * outbound fee in the target asset
1518
1598
  * @type {string}
1519
1599
  * @memberof QuoteFees
1520
1600
  */
1521
- 'outbound': string;
1601
+ 'outbound'?: string;
1522
1602
  /**
1523
- * liquidity fees paid to pools
1603
+ * liquidity fees paid to pools in the target asset
1524
1604
  * @type {string}
1525
1605
  * @memberof QuoteFees
1526
1606
  */
1527
- 'liquidity'?: string;
1607
+ 'liquidity': string;
1528
1608
  /**
1529
- * total basis points in fees relative to amount out
1609
+ * total fees in the target asset
1530
1610
  * @type {string}
1531
1611
  * @memberof QuoteFees
1532
1612
  */
1533
- 'total_bps'?: string;
1613
+ 'total': string;
1614
+ /**
1615
+ * the swap slippage in basis points
1616
+ * @type {number}
1617
+ * @memberof QuoteFees
1618
+ */
1619
+ 'slippage_bps': number;
1620
+ /**
1621
+ * total basis points in fees relative to amount out
1622
+ * @type {number}
1623
+ * @memberof QuoteFees
1624
+ */
1625
+ 'total_bps': number;
1534
1626
  }
1535
1627
  /**
1536
1628
  *
@@ -1575,13 +1667,13 @@ export interface QuoteLoanCloseResponse {
1575
1667
  */
1576
1668
  'fees': QuoteFees;
1577
1669
  /**
1578
- * the total swap slippage in basis points
1670
+ * Deprecated - migrate to fees object.
1579
1671
  * @type {number}
1580
1672
  * @memberof QuoteLoanCloseResponse
1581
1673
  */
1582
1674
  'slippage_bps'?: number;
1583
1675
  /**
1584
- * the total streaming swap slippage in basis points
1676
+ * Deprecated - migrate to fees object.
1585
1677
  * @type {number}
1586
1678
  * @memberof QuoteLoanCloseResponse
1587
1679
  */
@@ -1639,13 +1731,13 @@ export interface QuoteLoanCloseResponse {
1639
1731
  * @type {string}
1640
1732
  * @memberof QuoteLoanCloseResponse
1641
1733
  */
1642
- 'expected_collateral_down': string;
1734
+ 'expected_collateral_withdrawn': string;
1643
1735
  /**
1644
1736
  * the expected amount of TOR debt decrease on the loan
1645
1737
  * @type {string}
1646
1738
  * @memberof QuoteLoanCloseResponse
1647
1739
  */
1648
- 'expected_debt_down': string;
1740
+ 'expected_debt_repaid': string;
1649
1741
  }
1650
1742
  /**
1651
1743
  *
@@ -1690,13 +1782,13 @@ export interface QuoteLoanOpenResponse {
1690
1782
  */
1691
1783
  'fees': QuoteFees;
1692
1784
  /**
1693
- * the total swap slippage in basis points
1785
+ * Deprecated - migrate to fees object.
1694
1786
  * @type {number}
1695
1787
  * @memberof QuoteLoanOpenResponse
1696
1788
  */
1697
1789
  'slippage_bps'?: number;
1698
1790
  /**
1699
- * the total streaming swap slippage in basis points
1791
+ * Deprecated - migrate to fees object.
1700
1792
  * @type {number}
1701
1793
  * @memberof QuoteLoanOpenResponse
1702
1794
  */
@@ -1760,13 +1852,13 @@ export interface QuoteLoanOpenResponse {
1760
1852
  * @type {string}
1761
1853
  * @memberof QuoteLoanOpenResponse
1762
1854
  */
1763
- 'expected_collateral_up': string;
1855
+ 'expected_collateral_deposited': string;
1764
1856
  /**
1765
1857
  * the expected amount of TOR debt increase on the loan
1766
1858
  * @type {string}
1767
1859
  * @memberof QuoteLoanOpenResponse
1768
1860
  */
1769
- 'expected_debt_up': string;
1861
+ 'expected_debt_issued': string;
1770
1862
  }
1771
1863
  /**
1772
1864
  *
@@ -1811,13 +1903,13 @@ export interface QuoteSaverDepositResponse {
1811
1903
  */
1812
1904
  'fees': QuoteFees;
1813
1905
  /**
1814
- * the total swap slippage in basis points
1906
+ * Deprecated - migrate to fees object.
1815
1907
  * @type {number}
1816
1908
  * @memberof QuoteSaverDepositResponse
1817
1909
  */
1818
1910
  'slippage_bps': number;
1819
1911
  /**
1820
- * the total streaming swap slippage in basis points
1912
+ * Deprecated - migrate to fees object.
1821
1913
  * @type {number}
1822
1914
  * @memberof QuoteSaverDepositResponse
1823
1915
  */
@@ -1920,13 +2012,13 @@ export interface QuoteSaverWithdrawResponse {
1920
2012
  */
1921
2013
  'fees': QuoteFees;
1922
2014
  /**
1923
- * the total swap slippage in basis points
2015
+ * Deprecated - migrate to fees object.
1924
2016
  * @type {number}
1925
2017
  * @memberof QuoteSaverWithdrawResponse
1926
2018
  */
1927
2019
  'slippage_bps': number;
1928
2020
  /**
1929
- * the total streaming swap slippage in basis points
2021
+ * Deprecated - migrate to fees object.
1930
2022
  * @type {number}
1931
2023
  * @memberof QuoteSaverWithdrawResponse
1932
2024
  */
@@ -2029,13 +2121,13 @@ export interface QuoteSwapResponse {
2029
2121
  */
2030
2122
  'fees': QuoteFees;
2031
2123
  /**
2032
- * the total swap slippage in basis points
2124
+ * Deprecated - migrate to fees object.
2033
2125
  * @type {number}
2034
2126
  * @memberof QuoteSwapResponse
2035
2127
  */
2036
2128
  'slippage_bps': number;
2037
2129
  /**
2038
- * the total streaming swap slippage in basis points
2130
+ * Deprecated - migrate to fees object.
2039
2131
  * @type {number}
2040
2132
  * @memberof QuoteSwapResponse
2041
2133
  */
@@ -2089,7 +2181,7 @@ export interface QuoteSwapResponse {
2089
2181
  */
2090
2182
  'expected_amount_out': string;
2091
2183
  /**
2092
- * the amount of the target asset the user can expect to receive after fees for a streaming swap
2184
+ * Deprecated - expected_amount_out is streaming amount if interval provided.
2093
2185
  * @type {string}
2094
2186
  * @memberof QuoteSwapResponse
2095
2187
  */
@@ -2248,6 +2340,18 @@ export interface StreamingSwap {
2248
2340
  * @memberof StreamingSwap
2249
2341
  */
2250
2342
  'out'?: string;
2343
+ /**
2344
+ * the list of swap indexes that failed
2345
+ * @type {Array<number>}
2346
+ * @memberof StreamingSwap
2347
+ */
2348
+ 'failed_swaps'?: Array<number>;
2349
+ /**
2350
+ * the list of reasons that sub-swaps have failed
2351
+ * @type {Array<string>}
2352
+ * @memberof StreamingSwap
2353
+ */
2354
+ 'failed_swap_reasons'?: Array<string>;
2251
2355
  }
2252
2356
  /**
2253
2357
  *
@@ -2437,12 +2541,6 @@ export interface TxDetailsResponse {
2437
2541
  * @memberof TxDetailsResponse
2438
2542
  */
2439
2543
  'tx': ObservedTx;
2440
- /**
2441
- *
2442
- * @type {number}
2443
- * @memberof TxDetailsResponse
2444
- */
2445
- 'height'?: number;
2446
2544
  /**
2447
2545
  *
2448
2546
  * @type {Array<ObservedTx>}
@@ -2461,6 +2559,12 @@ export interface TxDetailsResponse {
2461
2559
  * @memberof TxDetailsResponse
2462
2560
  */
2463
2561
  'out_txs': Array<Tx>;
2562
+ /**
2563
+ * the thorchain height at which the inbound reached consensus
2564
+ * @type {number}
2565
+ * @memberof TxDetailsResponse
2566
+ */
2567
+ 'consensus_height'?: number;
2464
2568
  /**
2465
2569
  * the thorchain height at which the outbound was finalised
2466
2570
  * @type {number}
@@ -2565,6 +2669,12 @@ export interface TxResponse {
2565
2669
  * @memberof TxResponse
2566
2670
  */
2567
2671
  'observed_tx'?: ObservedTx;
2672
+ /**
2673
+ * the thorchain height at which the inbound reached consensus
2674
+ * @type {number}
2675
+ * @memberof TxResponse
2676
+ */
2677
+ 'consensus_height'?: number;
2568
2678
  /**
2569
2679
  * the thorchain height at which the outbound was finalised
2570
2680
  * @type {number}
@@ -2602,12 +2712,6 @@ export interface TxSignersResponse {
2602
2712
  * @memberof TxSignersResponse
2603
2713
  */
2604
2714
  'tx': ObservedTx;
2605
- /**
2606
- *
2607
- * @type {number}
2608
- * @memberof TxSignersResponse
2609
- */
2610
- 'height'?: number;
2611
2715
  /**
2612
2716
  *
2613
2717
  * @type {Array<ObservedTx>}
@@ -2626,6 +2730,12 @@ export interface TxSignersResponse {
2626
2730
  * @memberof TxSignersResponse
2627
2731
  */
2628
2732
  'out_txs': Array<Tx>;
2733
+ /**
2734
+ * the thorchain height at which the inbound reached consensus
2735
+ * @type {number}
2736
+ * @memberof TxSignersResponse
2737
+ */
2738
+ 'consensus_height'?: number;
2629
2739
  /**
2630
2740
  * the thorchain height at which the outbound was finalised
2631
2741
  * @type {number}
@@ -2674,7 +2784,13 @@ export interface TxStagesResponse {
2674
2784
  * @type {TxStagesResponseInboundFinalised}
2675
2785
  * @memberof TxStagesResponse
2676
2786
  */
2677
- 'inbound_finalised': TxStagesResponseInboundFinalised;
2787
+ 'inbound_finalised'?: TxStagesResponseInboundFinalised;
2788
+ /**
2789
+ *
2790
+ * @type {TxStagesResponseSwapStatus}
2791
+ * @memberof TxStagesResponse
2792
+ */
2793
+ 'swap_status'?: TxStagesResponseSwapStatus;
2678
2794
  /**
2679
2795
  *
2680
2796
  * @type {TxStagesResponseSwapFinalised}
@@ -2757,11 +2873,23 @@ export interface TxStagesResponseInboundFinalised {
2757
2873
  */
2758
2874
  export interface TxStagesResponseInboundObserved {
2759
2875
  /**
2760
- * returns true if any nodes have observed the transaction
2876
+ * returns true if any nodes have observed the transaction (to be deprecated in favour of counts)
2761
2877
  * @type {boolean}
2762
2878
  * @memberof TxStagesResponseInboundObserved
2763
2879
  */
2764
2880
  'started'?: boolean;
2881
+ /**
2882
+ * number of signers for pre-confirmation-counting observations
2883
+ * @type {number}
2884
+ * @memberof TxStagesResponseInboundObserved
2885
+ */
2886
+ 'pre_confirmation_count'?: number;
2887
+ /**
2888
+ * number of signers for final observations, after any confirmation counting complete
2889
+ * @type {number}
2890
+ * @memberof TxStagesResponseInboundObserved
2891
+ */
2892
+ 'final_count'?: number;
2765
2893
  /**
2766
2894
  * returns true if no transaction observation remains to be done
2767
2895
  * @type {boolean}
@@ -2826,12 +2954,56 @@ export interface TxStagesResponseOutboundSigned {
2826
2954
  */
2827
2955
  export interface TxStagesResponseSwapFinalised {
2828
2956
  /**
2829
- * returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
2957
+ * (to be deprecated in favor of swap_status) returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
2830
2958
  * @type {boolean}
2831
2959
  * @memberof TxStagesResponseSwapFinalised
2832
2960
  */
2833
2961
  'completed': boolean;
2834
2962
  }
2963
+ /**
2964
+ *
2965
+ * @export
2966
+ * @interface TxStagesResponseSwapStatus
2967
+ */
2968
+ export interface TxStagesResponseSwapStatus {
2969
+ /**
2970
+ * true when awaiting a swap
2971
+ * @type {boolean}
2972
+ * @memberof TxStagesResponseSwapStatus
2973
+ */
2974
+ 'pending': boolean;
2975
+ /**
2976
+ *
2977
+ * @type {TxStagesResponseSwapStatusStreaming}
2978
+ * @memberof TxStagesResponseSwapStatus
2979
+ */
2980
+ 'streaming'?: TxStagesResponseSwapStatusStreaming;
2981
+ }
2982
+ /**
2983
+ *
2984
+ * @export
2985
+ * @interface TxStagesResponseSwapStatusStreaming
2986
+ */
2987
+ export interface TxStagesResponseSwapStatusStreaming {
2988
+ /**
2989
+ * how often each swap is made, in blocks
2990
+ * @type {number}
2991
+ * @memberof TxStagesResponseSwapStatusStreaming
2992
+ */
2993
+ 'interval': number;
2994
+ /**
2995
+ * the total number of swaps in a streaming swaps
2996
+ * @type {number}
2997
+ * @memberof TxStagesResponseSwapStatusStreaming
2998
+ */
2999
+ 'quantity': number;
3000
+ /**
3001
+ * the amount of swap attempts so far
3002
+ * @type {number}
3003
+ * @memberof TxStagesResponseSwapStatusStreaming
3004
+ */
3005
+ 'count': number;
3006
+ }
2835
3007
  /**
2836
3008
  *
2837
3009
  * @export
@@ -4034,6 +4206,21 @@ export declare class POLApi extends BaseAPI {
4034
4206
  * @export
4035
4207
  */
4036
4208
  export declare const PoolsApiAxiosParamCreator: (configuration?: Configuration) => {
4209
+ /**
4210
+ * Returns the pool information for the provided derived asset.
4211
+ * @param {string} asset
4212
+ * @param {number} [height] optional block height, defaults to current tip
4213
+ * @param {*} [options] Override http request option.
4214
+ * @throws {RequiredError}
4215
+ */
4216
+ dpool: (asset: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4217
+ /**
4218
+ * Returns the pool information for all derived assets.
4219
+ * @param {number} [height] optional block height, defaults to current tip
4220
+ * @param {*} [options] Override http request option.
4221
+ * @throws {RequiredError}
4222
+ */
4223
+ dpools: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4037
4224
  /**
4038
4225
  * Returns the pool information for the provided asset.
4039
4226
  * @param {string} asset
@@ -4055,6 +4242,21 @@ export declare const PoolsApiAxiosParamCreator: (configuration?: Configuration)
4055
4242
  * @export
4056
4243
  */
4057
4244
  export declare const PoolsApiFp: (configuration?: Configuration) => {
4245
+ /**
4246
+ * Returns the pool information for the provided derived asset.
4247
+ * @param {string} asset
4248
+ * @param {number} [height] optional block height, defaults to current tip
4249
+ * @param {*} [options] Override http request option.
4250
+ * @throws {RequiredError}
4251
+ */
4252
+ dpool(asset: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DerivedPool>>;
4253
+ /**
4254
+ * Returns the pool information for all derived assets.
4255
+ * @param {number} [height] optional block height, defaults to current tip
4256
+ * @param {*} [options] Override http request option.
4257
+ * @throws {RequiredError}
4258
+ */
4259
+ dpools(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DerivedPoolsResponse>>;
4058
4260
  /**
4059
4261
  * Returns the pool information for the provided asset.
4060
4262
  * @param {string} asset
@@ -4076,6 +4278,21 @@ export declare const PoolsApiFp: (configuration?: Configuration) => {
4076
4278
  * @export
4077
4279
  */
4078
4280
  export declare const PoolsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4281
+ /**
4282
+ * Returns the pool information for the provided derived asset.
4283
+ * @param {string} asset
4284
+ * @param {number} [height] optional block height, defaults to current tip
4285
+ * @param {*} [options] Override http request option.
4286
+ * @throws {RequiredError}
4287
+ */
4288
+ dpool(asset: string, height?: number, options?: any): AxiosPromise<DerivedPool>;
4289
+ /**
4290
+ * Returns the pool information for all derived assets.
4291
+ * @param {number} [height] optional block height, defaults to current tip
4292
+ * @param {*} [options] Override http request option.
4293
+ * @throws {RequiredError}
4294
+ */
4295
+ dpools(height?: number, options?: any): AxiosPromise<DerivedPoolsResponse>;
4079
4296
  /**
4080
4297
  * Returns the pool information for the provided asset.
4081
4298
  * @param {string} asset
@@ -4099,6 +4316,23 @@ export declare const PoolsApiFactory: (configuration?: Configuration, basePath?:
4099
4316
  * @extends {BaseAPI}
4100
4317
  */
4101
4318
  export declare class PoolsApi extends BaseAPI {
4319
+ /**
4320
+ * Returns the pool information for the provided derived asset.
4321
+ * @param {string} asset
4322
+ * @param {number} [height] optional block height, defaults to current tip
4323
+ * @param {*} [options] Override http request option.
4324
+ * @throws {RequiredError}
4325
+ * @memberof PoolsApi
4326
+ */
4327
+ dpool(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DerivedPool, any>>;
4328
+ /**
4329
+ * Returns the pool information for all derived assets.
4330
+ * @param {number} [height] optional block height, defaults to current tip
4331
+ * @param {*} [options] Override http request option.
4332
+ * @throws {RequiredError}
4333
+ * @memberof PoolsApi
4334
+ */
4335
+ dpools(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DerivedPoolsResponse, any>>;
4102
4336
  /**
4103
4337
  * Returns the pool information for the provided asset.
4104
4338
  * @param {string} asset
@@ -4267,21 +4501,21 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4267
4501
  /**
4268
4502
  * Provide a quote estimate for the provided loan close.
4269
4503
  * @param {number} [height] optional block height, defaults to current tip
4270
- * @param {string} [asset] the asset used to repay the loan
4504
+ * @param {string} [fromAsset] the asset used to repay the loan
4271
4505
  * @param {number} [amount] the asset amount in 1e8 decimals
4272
- * @param {string} [loanAsset] the collateral asset of the loan
4506
+ * @param {string} [toAsset] the collateral asset of the loan
4273
4507
  * @param {string} [loanOwner] the owner of the loan collateral
4274
4508
  * @param {string} [minOut] the minimum amount of the target asset to accept
4275
4509
  * @param {*} [options] Override http request option.
4276
4510
  * @throws {RequiredError}
4277
4511
  */
4278
- quoteloanclose: (height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4512
+ quoteloanclose: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4279
4513
  /**
4280
4514
  * Provide a quote estimate for the provided loan open.
4281
4515
  * @param {number} [height] optional block height, defaults to current tip
4282
- * @param {string} [asset] the collateral asset
4516
+ * @param {string} [fromAsset] the collateral asset
4283
4517
  * @param {number} [amount] the collateral asset amount in 1e8 decimals
4284
- * @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
4518
+ * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
4285
4519
  * @param {string} [destination] the destination address, required to generate memo
4286
4520
  * @param {string} [minOut] the minimum amount of the target asset to accept
4287
4521
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4289,7 +4523,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4289
4523
  * @param {*} [options] Override http request option.
4290
4524
  * @throws {RequiredError}
4291
4525
  */
4292
- quoteloanopen: (height?: number, asset?: string, amount?: number, targetAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4526
+ quoteloanopen: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4293
4527
  /**
4294
4528
  * Provide a quote estimate for the provided saver deposit.
4295
4529
  * @param {number} [height] optional block height, defaults to current tip
@@ -4335,21 +4569,21 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4335
4569
  /**
4336
4570
  * Provide a quote estimate for the provided loan close.
4337
4571
  * @param {number} [height] optional block height, defaults to current tip
4338
- * @param {string} [asset] the asset used to repay the loan
4572
+ * @param {string} [fromAsset] the asset used to repay the loan
4339
4573
  * @param {number} [amount] the asset amount in 1e8 decimals
4340
- * @param {string} [loanAsset] the collateral asset of the loan
4574
+ * @param {string} [toAsset] the collateral asset of the loan
4341
4575
  * @param {string} [loanOwner] the owner of the loan collateral
4342
4576
  * @param {string} [minOut] the minimum amount of the target asset to accept
4343
4577
  * @param {*} [options] Override http request option.
4344
4578
  * @throws {RequiredError}
4345
4579
  */
4346
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4580
+ quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4347
4581
  /**
4348
4582
  * Provide a quote estimate for the provided loan open.
4349
4583
  * @param {number} [height] optional block height, defaults to current tip
4350
- * @param {string} [asset] the collateral asset
4584
+ * @param {string} [fromAsset] the collateral asset
4351
4585
  * @param {number} [amount] the collateral asset amount in 1e8 decimals
4352
- * @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
4586
+ * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
4353
4587
  * @param {string} [destination] the destination address, required to generate memo
4354
4588
  * @param {string} [minOut] the minimum amount of the target asset to accept
4355
4589
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4357,7 +4591,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4357
4591
  * @param {*} [options] Override http request option.
4358
4592
  * @throws {RequiredError}
4359
4593
  */
4360
- quoteloanopen(height?: number, asset?: string, amount?: number, targetAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanOpenResponse>>;
4594
+ quoteloanopen(height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanOpenResponse>>;
4361
4595
  /**
4362
4596
  * Provide a quote estimate for the provided saver deposit.
4363
4597
  * @param {number} [height] optional block height, defaults to current tip
@@ -4403,21 +4637,21 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4403
4637
  /**
4404
4638
  * Provide a quote estimate for the provided loan close.
4405
4639
  * @param {number} [height] optional block height, defaults to current tip
4406
- * @param {string} [asset] the asset used to repay the loan
4640
+ * @param {string} [fromAsset] the asset used to repay the loan
4407
4641
  * @param {number} [amount] the asset amount in 1e8 decimals
4408
- * @param {string} [loanAsset] the collateral asset of the loan
4642
+ * @param {string} [toAsset] the collateral asset of the loan
4409
4643
  * @param {string} [loanOwner] the owner of the loan collateral
4410
4644
  * @param {string} [minOut] the minimum amount of the target asset to accept
4411
4645
  * @param {*} [options] Override http request option.
4412
4646
  * @throws {RequiredError}
4413
4647
  */
4414
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4648
+ quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4415
4649
  /**
4416
4650
  * Provide a quote estimate for the provided loan open.
4417
4651
  * @param {number} [height] optional block height, defaults to current tip
4418
- * @param {string} [asset] the collateral asset
4652
+ * @param {string} [fromAsset] the collateral asset
4419
4653
  * @param {number} [amount] the collateral asset amount in 1e8 decimals
4420
- * @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
4654
+ * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
4421
4655
  * @param {string} [destination] the destination address, required to generate memo
4422
4656
  * @param {string} [minOut] the minimum amount of the target asset to accept
4423
4657
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4425,7 +4659,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4425
4659
  * @param {*} [options] Override http request option.
4426
4660
  * @throws {RequiredError}
4427
4661
  */
4428
- quoteloanopen(height?: number, asset?: string, amount?: number, targetAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteLoanOpenResponse>;
4662
+ quoteloanopen(height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteLoanOpenResponse>;
4429
4663
  /**
4430
4664
  * Provide a quote estimate for the provided saver deposit.
4431
4665
  * @param {number} [height] optional block height, defaults to current tip
@@ -4473,22 +4707,22 @@ export declare class QuoteApi extends BaseAPI {
4473
4707
  /**
4474
4708
  * Provide a quote estimate for the provided loan close.
4475
4709
  * @param {number} [height] optional block height, defaults to current tip
4476
- * @param {string} [asset] the asset used to repay the loan
4710
+ * @param {string} [fromAsset] the asset used to repay the loan
4477
4711
  * @param {number} [amount] the asset amount in 1e8 decimals
4478
- * @param {string} [loanAsset] the collateral asset of the loan
4712
+ * @param {string} [toAsset] the collateral asset of the loan
4479
4713
  * @param {string} [loanOwner] the owner of the loan collateral
4480
4714
  * @param {string} [minOut] the minimum amount of the target asset to accept
4481
4715
  * @param {*} [options] Override http request option.
4482
4716
  * @throws {RequiredError}
4483
4717
  * @memberof QuoteApi
4484
4718
  */
4485
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4719
+ quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4486
4720
  /**
4487
4721
  * Provide a quote estimate for the provided loan open.
4488
4722
  * @param {number} [height] optional block height, defaults to current tip
4489
- * @param {string} [asset] the collateral asset
4723
+ * @param {string} [fromAsset] the collateral asset
4490
4724
  * @param {number} [amount] the collateral asset amount in 1e8 decimals
4491
- * @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
4725
+ * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
4492
4726
  * @param {string} [destination] the destination address, required to generate memo
4493
4727
  * @param {string} [minOut] the minimum amount of the target asset to accept
4494
4728
  * @param {number} [affiliateBps] the affiliate fee in basis points
@@ -4497,7 +4731,7 @@ export declare class QuoteApi extends BaseAPI {
4497
4731
  * @throws {RequiredError}
4498
4732
  * @memberof QuoteApi
4499
4733
  */
4500
- quoteloanopen(height?: number, asset?: string, amount?: number, targetAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanOpenResponse, any>>;
4734
+ quoteloanopen(height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanOpenResponse, any>>;
4501
4735
  /**
4502
4736
  * Provide a quote estimate for the provided saver deposit.
4503
4737
  * @param {number} [height] optional block height, defaults to current tip