@xchainjs/xchain-thornode 0.3.5 → 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.
- package/lib/generated/thornodeApi/api.d.ts +265 -61
- 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 +166 -41
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +166 -41
- 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.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
|
-
*
|
|
83
|
+
* Deprecated - migrate to fees object.
|
|
84
84
|
* @type {number}
|
|
85
85
|
* @memberof BaseQuoteResponse
|
|
86
86
|
*/
|
|
87
87
|
'slippage_bps'?: number;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Deprecated - migrate to fees object.
|
|
90
90
|
* @type {number}
|
|
91
91
|
* @memberof BaseQuoteResponse
|
|
92
92
|
*/
|
|
@@ -277,6 +277,56 @@ export interface ConstantsResponse {
|
|
|
277
277
|
[key: string]: string;
|
|
278
278
|
};
|
|
279
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
|
+
}
|
|
280
330
|
/**
|
|
281
331
|
*
|
|
282
332
|
* @export
|
|
@@ -1378,6 +1428,12 @@ export interface Pool {
|
|
|
1378
1428
|
* @memberof Pool
|
|
1379
1429
|
*/
|
|
1380
1430
|
'asset': string;
|
|
1431
|
+
/**
|
|
1432
|
+
*
|
|
1433
|
+
* @type {string}
|
|
1434
|
+
* @memberof Pool
|
|
1435
|
+
*/
|
|
1436
|
+
'short_code'?: string;
|
|
1381
1437
|
/**
|
|
1382
1438
|
*
|
|
1383
1439
|
* @type {string}
|
|
@@ -1474,6 +1530,12 @@ export interface Pool {
|
|
|
1474
1530
|
* @memberof Pool
|
|
1475
1531
|
*/
|
|
1476
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;
|
|
1477
1539
|
}
|
|
1478
1540
|
/**
|
|
1479
1541
|
*
|
|
@@ -1520,35 +1582,47 @@ export interface QueueResponse {
|
|
|
1520
1582
|
*/
|
|
1521
1583
|
export interface QuoteFees {
|
|
1522
1584
|
/**
|
|
1523
|
-
*
|
|
1585
|
+
* the target asset used for all fees
|
|
1524
1586
|
* @type {string}
|
|
1525
1587
|
* @memberof QuoteFees
|
|
1526
1588
|
*/
|
|
1527
1589
|
'asset': string;
|
|
1528
1590
|
/**
|
|
1529
|
-
*
|
|
1591
|
+
* affiliate fee in the target asset
|
|
1530
1592
|
* @type {string}
|
|
1531
1593
|
* @memberof QuoteFees
|
|
1532
1594
|
*/
|
|
1533
1595
|
'affiliate'?: string;
|
|
1534
1596
|
/**
|
|
1535
|
-
*
|
|
1597
|
+
* outbound fee in the target asset
|
|
1536
1598
|
* @type {string}
|
|
1537
1599
|
* @memberof QuoteFees
|
|
1538
1600
|
*/
|
|
1539
|
-
'outbound'
|
|
1601
|
+
'outbound'?: string;
|
|
1540
1602
|
/**
|
|
1541
|
-
* liquidity fees paid to pools
|
|
1603
|
+
* liquidity fees paid to pools in the target asset
|
|
1542
1604
|
* @type {string}
|
|
1543
1605
|
* @memberof QuoteFees
|
|
1544
1606
|
*/
|
|
1545
|
-
'liquidity'
|
|
1607
|
+
'liquidity': string;
|
|
1546
1608
|
/**
|
|
1547
|
-
* total
|
|
1609
|
+
* total fees in the target asset
|
|
1548
1610
|
* @type {string}
|
|
1549
1611
|
* @memberof QuoteFees
|
|
1550
1612
|
*/
|
|
1551
|
-
'
|
|
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;
|
|
1552
1626
|
}
|
|
1553
1627
|
/**
|
|
1554
1628
|
*
|
|
@@ -1593,13 +1667,13 @@ export interface QuoteLoanCloseResponse {
|
|
|
1593
1667
|
*/
|
|
1594
1668
|
'fees': QuoteFees;
|
|
1595
1669
|
/**
|
|
1596
|
-
*
|
|
1670
|
+
* Deprecated - migrate to fees object.
|
|
1597
1671
|
* @type {number}
|
|
1598
1672
|
* @memberof QuoteLoanCloseResponse
|
|
1599
1673
|
*/
|
|
1600
1674
|
'slippage_bps'?: number;
|
|
1601
1675
|
/**
|
|
1602
|
-
*
|
|
1676
|
+
* Deprecated - migrate to fees object.
|
|
1603
1677
|
* @type {number}
|
|
1604
1678
|
* @memberof QuoteLoanCloseResponse
|
|
1605
1679
|
*/
|
|
@@ -1708,13 +1782,13 @@ export interface QuoteLoanOpenResponse {
|
|
|
1708
1782
|
*/
|
|
1709
1783
|
'fees': QuoteFees;
|
|
1710
1784
|
/**
|
|
1711
|
-
*
|
|
1785
|
+
* Deprecated - migrate to fees object.
|
|
1712
1786
|
* @type {number}
|
|
1713
1787
|
* @memberof QuoteLoanOpenResponse
|
|
1714
1788
|
*/
|
|
1715
1789
|
'slippage_bps'?: number;
|
|
1716
1790
|
/**
|
|
1717
|
-
*
|
|
1791
|
+
* Deprecated - migrate to fees object.
|
|
1718
1792
|
* @type {number}
|
|
1719
1793
|
* @memberof QuoteLoanOpenResponse
|
|
1720
1794
|
*/
|
|
@@ -1829,13 +1903,13 @@ export interface QuoteSaverDepositResponse {
|
|
|
1829
1903
|
*/
|
|
1830
1904
|
'fees': QuoteFees;
|
|
1831
1905
|
/**
|
|
1832
|
-
*
|
|
1906
|
+
* Deprecated - migrate to fees object.
|
|
1833
1907
|
* @type {number}
|
|
1834
1908
|
* @memberof QuoteSaverDepositResponse
|
|
1835
1909
|
*/
|
|
1836
1910
|
'slippage_bps': number;
|
|
1837
1911
|
/**
|
|
1838
|
-
*
|
|
1912
|
+
* Deprecated - migrate to fees object.
|
|
1839
1913
|
* @type {number}
|
|
1840
1914
|
* @memberof QuoteSaverDepositResponse
|
|
1841
1915
|
*/
|
|
@@ -1938,13 +2012,13 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1938
2012
|
*/
|
|
1939
2013
|
'fees': QuoteFees;
|
|
1940
2014
|
/**
|
|
1941
|
-
*
|
|
2015
|
+
* Deprecated - migrate to fees object.
|
|
1942
2016
|
* @type {number}
|
|
1943
2017
|
* @memberof QuoteSaverWithdrawResponse
|
|
1944
2018
|
*/
|
|
1945
2019
|
'slippage_bps': number;
|
|
1946
2020
|
/**
|
|
1947
|
-
*
|
|
2021
|
+
* Deprecated - migrate to fees object.
|
|
1948
2022
|
* @type {number}
|
|
1949
2023
|
* @memberof QuoteSaverWithdrawResponse
|
|
1950
2024
|
*/
|
|
@@ -2047,13 +2121,13 @@ export interface QuoteSwapResponse {
|
|
|
2047
2121
|
*/
|
|
2048
2122
|
'fees': QuoteFees;
|
|
2049
2123
|
/**
|
|
2050
|
-
*
|
|
2124
|
+
* Deprecated - migrate to fees object.
|
|
2051
2125
|
* @type {number}
|
|
2052
2126
|
* @memberof QuoteSwapResponse
|
|
2053
2127
|
*/
|
|
2054
2128
|
'slippage_bps': number;
|
|
2055
2129
|
/**
|
|
2056
|
-
*
|
|
2130
|
+
* Deprecated - migrate to fees object.
|
|
2057
2131
|
* @type {number}
|
|
2058
2132
|
* @memberof QuoteSwapResponse
|
|
2059
2133
|
*/
|
|
@@ -2107,7 +2181,7 @@ export interface QuoteSwapResponse {
|
|
|
2107
2181
|
*/
|
|
2108
2182
|
'expected_amount_out': string;
|
|
2109
2183
|
/**
|
|
2110
|
-
*
|
|
2184
|
+
* Deprecated - expected_amount_out is streaming amount if interval provided.
|
|
2111
2185
|
* @type {string}
|
|
2112
2186
|
* @memberof QuoteSwapResponse
|
|
2113
2187
|
*/
|
|
@@ -2467,12 +2541,6 @@ export interface TxDetailsResponse {
|
|
|
2467
2541
|
* @memberof TxDetailsResponse
|
|
2468
2542
|
*/
|
|
2469
2543
|
'tx': ObservedTx;
|
|
2470
|
-
/**
|
|
2471
|
-
*
|
|
2472
|
-
* @type {number}
|
|
2473
|
-
* @memberof TxDetailsResponse
|
|
2474
|
-
*/
|
|
2475
|
-
'height'?: number;
|
|
2476
2544
|
/**
|
|
2477
2545
|
*
|
|
2478
2546
|
* @type {Array<ObservedTx>}
|
|
@@ -2491,6 +2559,12 @@ export interface TxDetailsResponse {
|
|
|
2491
2559
|
* @memberof TxDetailsResponse
|
|
2492
2560
|
*/
|
|
2493
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;
|
|
2494
2568
|
/**
|
|
2495
2569
|
* the thorchain height at which the outbound was finalised
|
|
2496
2570
|
* @type {number}
|
|
@@ -2595,6 +2669,12 @@ export interface TxResponse {
|
|
|
2595
2669
|
* @memberof TxResponse
|
|
2596
2670
|
*/
|
|
2597
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;
|
|
2598
2678
|
/**
|
|
2599
2679
|
* the thorchain height at which the outbound was finalised
|
|
2600
2680
|
* @type {number}
|
|
@@ -2632,12 +2712,6 @@ export interface TxSignersResponse {
|
|
|
2632
2712
|
* @memberof TxSignersResponse
|
|
2633
2713
|
*/
|
|
2634
2714
|
'tx': ObservedTx;
|
|
2635
|
-
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @type {number}
|
|
2638
|
-
* @memberof TxSignersResponse
|
|
2639
|
-
*/
|
|
2640
|
-
'height'?: number;
|
|
2641
2715
|
/**
|
|
2642
2716
|
*
|
|
2643
2717
|
* @type {Array<ObservedTx>}
|
|
@@ -2656,6 +2730,12 @@ export interface TxSignersResponse {
|
|
|
2656
2730
|
* @memberof TxSignersResponse
|
|
2657
2731
|
*/
|
|
2658
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;
|
|
2659
2739
|
/**
|
|
2660
2740
|
* the thorchain height at which the outbound was finalised
|
|
2661
2741
|
* @type {number}
|
|
@@ -2704,7 +2784,13 @@ export interface TxStagesResponse {
|
|
|
2704
2784
|
* @type {TxStagesResponseInboundFinalised}
|
|
2705
2785
|
* @memberof TxStagesResponse
|
|
2706
2786
|
*/
|
|
2707
|
-
'inbound_finalised'
|
|
2787
|
+
'inbound_finalised'?: TxStagesResponseInboundFinalised;
|
|
2788
|
+
/**
|
|
2789
|
+
*
|
|
2790
|
+
* @type {TxStagesResponseSwapStatus}
|
|
2791
|
+
* @memberof TxStagesResponse
|
|
2792
|
+
*/
|
|
2793
|
+
'swap_status'?: TxStagesResponseSwapStatus;
|
|
2708
2794
|
/**
|
|
2709
2795
|
*
|
|
2710
2796
|
* @type {TxStagesResponseSwapFinalised}
|
|
@@ -2787,11 +2873,23 @@ export interface TxStagesResponseInboundFinalised {
|
|
|
2787
2873
|
*/
|
|
2788
2874
|
export interface TxStagesResponseInboundObserved {
|
|
2789
2875
|
/**
|
|
2790
|
-
* 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)
|
|
2791
2877
|
* @type {boolean}
|
|
2792
2878
|
* @memberof TxStagesResponseInboundObserved
|
|
2793
2879
|
*/
|
|
2794
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;
|
|
2795
2893
|
/**
|
|
2796
2894
|
* returns true if no transaction observation remains to be done
|
|
2797
2895
|
* @type {boolean}
|
|
@@ -2856,12 +2954,56 @@ export interface TxStagesResponseOutboundSigned {
|
|
|
2856
2954
|
*/
|
|
2857
2955
|
export interface TxStagesResponseSwapFinalised {
|
|
2858
2956
|
/**
|
|
2859
|
-
* 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
|
|
2860
2958
|
* @type {boolean}
|
|
2861
2959
|
* @memberof TxStagesResponseSwapFinalised
|
|
2862
2960
|
*/
|
|
2863
2961
|
'completed': boolean;
|
|
2864
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
|
+
}
|
|
2865
3007
|
/**
|
|
2866
3008
|
*
|
|
2867
3009
|
* @export
|
|
@@ -4064,6 +4206,21 @@ export declare class POLApi extends BaseAPI {
|
|
|
4064
4206
|
* @export
|
|
4065
4207
|
*/
|
|
4066
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>;
|
|
4067
4224
|
/**
|
|
4068
4225
|
* Returns the pool information for the provided asset.
|
|
4069
4226
|
* @param {string} asset
|
|
@@ -4085,6 +4242,21 @@ export declare const PoolsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4085
4242
|
* @export
|
|
4086
4243
|
*/
|
|
4087
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>>;
|
|
4088
4260
|
/**
|
|
4089
4261
|
* Returns the pool information for the provided asset.
|
|
4090
4262
|
* @param {string} asset
|
|
@@ -4106,6 +4278,21 @@ export declare const PoolsApiFp: (configuration?: Configuration) => {
|
|
|
4106
4278
|
* @export
|
|
4107
4279
|
*/
|
|
4108
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>;
|
|
4109
4296
|
/**
|
|
4110
4297
|
* Returns the pool information for the provided asset.
|
|
4111
4298
|
* @param {string} asset
|
|
@@ -4129,6 +4316,23 @@ export declare const PoolsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4129
4316
|
* @extends {BaseAPI}
|
|
4130
4317
|
*/
|
|
4131
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>>;
|
|
4132
4336
|
/**
|
|
4133
4337
|
* Returns the pool information for the provided asset.
|
|
4134
4338
|
* @param {string} asset
|
|
@@ -4297,21 +4501,21 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4297
4501
|
/**
|
|
4298
4502
|
* Provide a quote estimate for the provided loan close.
|
|
4299
4503
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4300
|
-
* @param {string} [
|
|
4504
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4301
4505
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4302
|
-
* @param {string} [
|
|
4506
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4303
4507
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4304
4508
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4305
4509
|
* @param {*} [options] Override http request option.
|
|
4306
4510
|
* @throws {RequiredError}
|
|
4307
4511
|
*/
|
|
4308
|
-
quoteloanclose: (height?: number,
|
|
4512
|
+
quoteloanclose: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4309
4513
|
/**
|
|
4310
4514
|
* Provide a quote estimate for the provided loan open.
|
|
4311
4515
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4312
|
-
* @param {string} [
|
|
4516
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4313
4517
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4314
|
-
* @param {string} [
|
|
4518
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4315
4519
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4316
4520
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4317
4521
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4319,7 +4523,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4319
4523
|
* @param {*} [options] Override http request option.
|
|
4320
4524
|
* @throws {RequiredError}
|
|
4321
4525
|
*/
|
|
4322
|
-
quoteloanopen: (height?: number,
|
|
4526
|
+
quoteloanopen: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4323
4527
|
/**
|
|
4324
4528
|
* Provide a quote estimate for the provided saver deposit.
|
|
4325
4529
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4365,21 +4569,21 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4365
4569
|
/**
|
|
4366
4570
|
* Provide a quote estimate for the provided loan close.
|
|
4367
4571
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4368
|
-
* @param {string} [
|
|
4572
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4369
4573
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4370
|
-
* @param {string} [
|
|
4574
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4371
4575
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4372
4576
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4373
4577
|
* @param {*} [options] Override http request option.
|
|
4374
4578
|
* @throws {RequiredError}
|
|
4375
4579
|
*/
|
|
4376
|
-
quoteloanclose(height?: number,
|
|
4580
|
+
quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
|
|
4377
4581
|
/**
|
|
4378
4582
|
* Provide a quote estimate for the provided loan open.
|
|
4379
4583
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4380
|
-
* @param {string} [
|
|
4584
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4381
4585
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4382
|
-
* @param {string} [
|
|
4586
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4383
4587
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4384
4588
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4385
4589
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4387,7 +4591,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4387
4591
|
* @param {*} [options] Override http request option.
|
|
4388
4592
|
* @throws {RequiredError}
|
|
4389
4593
|
*/
|
|
4390
|
-
quoteloanopen(height?: number,
|
|
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>>;
|
|
4391
4595
|
/**
|
|
4392
4596
|
* Provide a quote estimate for the provided saver deposit.
|
|
4393
4597
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4433,21 +4637,21 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4433
4637
|
/**
|
|
4434
4638
|
* Provide a quote estimate for the provided loan close.
|
|
4435
4639
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4436
|
-
* @param {string} [
|
|
4640
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4437
4641
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4438
|
-
* @param {string} [
|
|
4642
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4439
4643
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4440
4644
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4441
4645
|
* @param {*} [options] Override http request option.
|
|
4442
4646
|
* @throws {RequiredError}
|
|
4443
4647
|
*/
|
|
4444
|
-
quoteloanclose(height?: number,
|
|
4648
|
+
quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
|
|
4445
4649
|
/**
|
|
4446
4650
|
* Provide a quote estimate for the provided loan open.
|
|
4447
4651
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4448
|
-
* @param {string} [
|
|
4652
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4449
4653
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4450
|
-
* @param {string} [
|
|
4654
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4451
4655
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4452
4656
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4453
4657
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4455,7 +4659,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4455
4659
|
* @param {*} [options] Override http request option.
|
|
4456
4660
|
* @throws {RequiredError}
|
|
4457
4661
|
*/
|
|
4458
|
-
quoteloanopen(height?: number,
|
|
4662
|
+
quoteloanopen(height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteLoanOpenResponse>;
|
|
4459
4663
|
/**
|
|
4460
4664
|
* Provide a quote estimate for the provided saver deposit.
|
|
4461
4665
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4503,22 +4707,22 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4503
4707
|
/**
|
|
4504
4708
|
* Provide a quote estimate for the provided loan close.
|
|
4505
4709
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4506
|
-
* @param {string} [
|
|
4710
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4507
4711
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4508
|
-
* @param {string} [
|
|
4712
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4509
4713
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4510
4714
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4511
4715
|
* @param {*} [options] Override http request option.
|
|
4512
4716
|
* @throws {RequiredError}
|
|
4513
4717
|
* @memberof QuoteApi
|
|
4514
4718
|
*/
|
|
4515
|
-
quoteloanclose(height?: number,
|
|
4719
|
+
quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
|
|
4516
4720
|
/**
|
|
4517
4721
|
* Provide a quote estimate for the provided loan open.
|
|
4518
4722
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4519
|
-
* @param {string} [
|
|
4723
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4520
4724
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4521
|
-
* @param {string} [
|
|
4725
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4522
4726
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4523
4727
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4524
4728
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4527,7 +4731,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4527
4731
|
* @throws {RequiredError}
|
|
4528
4732
|
* @memberof QuoteApi
|
|
4529
4733
|
*/
|
|
4530
|
-
quoteloanopen(height?: number,
|
|
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>>;
|
|
4531
4735
|
/**
|
|
4532
4736
|
* Provide a quote estimate for the provided saver deposit.
|
|
4533
4737
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -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.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).
|
|
@@ -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.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).
|
|
@@ -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.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).
|
|
@@ -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.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).
|