@xchainjs/xchain-thornode 0.3.5 → 0.3.7
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 +281 -65
- 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.121.0
|
|
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
|
|
@@ -928,29 +978,41 @@ export interface NetworkResponse {
|
|
|
928
978
|
*/
|
|
929
979
|
'outbound_fee_multiplier'?: string;
|
|
930
980
|
/**
|
|
931
|
-
* the outbound transaction fee in rune, converted from the NativeOutboundFeeUSD mimir
|
|
981
|
+
* the outbound transaction fee in rune, converted from the NativeOutboundFeeUSD mimir (after USD fees are enabled)
|
|
932
982
|
* @type {string}
|
|
933
983
|
* @memberof NetworkResponse
|
|
934
984
|
*/
|
|
935
985
|
'native_outbound_fee_rune': string;
|
|
936
986
|
/**
|
|
937
|
-
* the native transaction fee in rune, converted from the NativeTransactionFeeUSD mimir
|
|
987
|
+
* the native transaction fee in rune, converted from the NativeTransactionFeeUSD mimir (after USD fees are enabled)
|
|
938
988
|
* @type {string}
|
|
939
989
|
* @memberof NetworkResponse
|
|
940
990
|
*/
|
|
941
991
|
'native_tx_fee_rune': string;
|
|
942
992
|
/**
|
|
943
|
-
* the thorname register fee in rune, converted from the TNSRegisterFeeUSD mimir
|
|
993
|
+
* the thorname register fee in rune, converted from the TNSRegisterFeeUSD mimir (after USD fees are enabled)
|
|
944
994
|
* @type {string}
|
|
945
995
|
* @memberof NetworkResponse
|
|
946
996
|
*/
|
|
947
997
|
'tns_register_fee_rune': string;
|
|
948
998
|
/**
|
|
949
|
-
* the thorname fee per block in rune, converted from the TNSFeePerBlockUSD mimir
|
|
999
|
+
* the thorname fee per block in rune, converted from the TNSFeePerBlockUSD mimir (after USD fees are enabled)
|
|
950
1000
|
* @type {string}
|
|
951
1001
|
* @memberof NetworkResponse
|
|
952
1002
|
*/
|
|
953
1003
|
'tns_fee_per_block_rune': string;
|
|
1004
|
+
/**
|
|
1005
|
+
* the rune price in tor
|
|
1006
|
+
* @type {string}
|
|
1007
|
+
* @memberof NetworkResponse
|
|
1008
|
+
*/
|
|
1009
|
+
'rune_price_in_tor': string;
|
|
1010
|
+
/**
|
|
1011
|
+
* the tor price in rune
|
|
1012
|
+
* @type {string}
|
|
1013
|
+
* @memberof NetworkResponse
|
|
1014
|
+
*/
|
|
1015
|
+
'tor_price_in_rune': string;
|
|
954
1016
|
}
|
|
955
1017
|
/**
|
|
956
1018
|
*
|
|
@@ -1378,6 +1440,12 @@ export interface Pool {
|
|
|
1378
1440
|
* @memberof Pool
|
|
1379
1441
|
*/
|
|
1380
1442
|
'asset': string;
|
|
1443
|
+
/**
|
|
1444
|
+
*
|
|
1445
|
+
* @type {string}
|
|
1446
|
+
* @memberof Pool
|
|
1447
|
+
*/
|
|
1448
|
+
'short_code'?: string;
|
|
1381
1449
|
/**
|
|
1382
1450
|
*
|
|
1383
1451
|
* @type {string}
|
|
@@ -1474,6 +1542,12 @@ export interface Pool {
|
|
|
1474
1542
|
* @memberof Pool
|
|
1475
1543
|
*/
|
|
1476
1544
|
'loan_cr': string;
|
|
1545
|
+
/**
|
|
1546
|
+
* the depth of the derived virtual pool relative to L1 pool (in basis points)
|
|
1547
|
+
* @type {string}
|
|
1548
|
+
* @memberof Pool
|
|
1549
|
+
*/
|
|
1550
|
+
'derived_depth_bps': string;
|
|
1477
1551
|
}
|
|
1478
1552
|
/**
|
|
1479
1553
|
*
|
|
@@ -1520,35 +1594,47 @@ export interface QueueResponse {
|
|
|
1520
1594
|
*/
|
|
1521
1595
|
export interface QuoteFees {
|
|
1522
1596
|
/**
|
|
1523
|
-
*
|
|
1597
|
+
* the target asset used for all fees
|
|
1524
1598
|
* @type {string}
|
|
1525
1599
|
* @memberof QuoteFees
|
|
1526
1600
|
*/
|
|
1527
1601
|
'asset': string;
|
|
1528
1602
|
/**
|
|
1529
|
-
*
|
|
1603
|
+
* affiliate fee in the target asset
|
|
1530
1604
|
* @type {string}
|
|
1531
1605
|
* @memberof QuoteFees
|
|
1532
1606
|
*/
|
|
1533
1607
|
'affiliate'?: string;
|
|
1534
1608
|
/**
|
|
1535
|
-
*
|
|
1609
|
+
* outbound fee in the target asset
|
|
1536
1610
|
* @type {string}
|
|
1537
1611
|
* @memberof QuoteFees
|
|
1538
1612
|
*/
|
|
1539
|
-
'outbound'
|
|
1613
|
+
'outbound'?: string;
|
|
1540
1614
|
/**
|
|
1541
|
-
* liquidity fees paid to pools
|
|
1615
|
+
* liquidity fees paid to pools in the target asset
|
|
1542
1616
|
* @type {string}
|
|
1543
1617
|
* @memberof QuoteFees
|
|
1544
1618
|
*/
|
|
1545
|
-
'liquidity'
|
|
1619
|
+
'liquidity': string;
|
|
1546
1620
|
/**
|
|
1547
|
-
* total
|
|
1621
|
+
* total fees in the target asset
|
|
1548
1622
|
* @type {string}
|
|
1549
1623
|
* @memberof QuoteFees
|
|
1550
1624
|
*/
|
|
1551
|
-
'
|
|
1625
|
+
'total': string;
|
|
1626
|
+
/**
|
|
1627
|
+
* the swap slippage in basis points
|
|
1628
|
+
* @type {number}
|
|
1629
|
+
* @memberof QuoteFees
|
|
1630
|
+
*/
|
|
1631
|
+
'slippage_bps': number;
|
|
1632
|
+
/**
|
|
1633
|
+
* total basis points in fees relative to amount out
|
|
1634
|
+
* @type {number}
|
|
1635
|
+
* @memberof QuoteFees
|
|
1636
|
+
*/
|
|
1637
|
+
'total_bps': number;
|
|
1552
1638
|
}
|
|
1553
1639
|
/**
|
|
1554
1640
|
*
|
|
@@ -1593,13 +1679,13 @@ export interface QuoteLoanCloseResponse {
|
|
|
1593
1679
|
*/
|
|
1594
1680
|
'fees': QuoteFees;
|
|
1595
1681
|
/**
|
|
1596
|
-
*
|
|
1682
|
+
* Deprecated - migrate to fees object.
|
|
1597
1683
|
* @type {number}
|
|
1598
1684
|
* @memberof QuoteLoanCloseResponse
|
|
1599
1685
|
*/
|
|
1600
1686
|
'slippage_bps'?: number;
|
|
1601
1687
|
/**
|
|
1602
|
-
*
|
|
1688
|
+
* Deprecated - migrate to fees object.
|
|
1603
1689
|
* @type {number}
|
|
1604
1690
|
* @memberof QuoteLoanCloseResponse
|
|
1605
1691
|
*/
|
|
@@ -1708,13 +1794,13 @@ export interface QuoteLoanOpenResponse {
|
|
|
1708
1794
|
*/
|
|
1709
1795
|
'fees': QuoteFees;
|
|
1710
1796
|
/**
|
|
1711
|
-
*
|
|
1797
|
+
* Deprecated - migrate to fees object.
|
|
1712
1798
|
* @type {number}
|
|
1713
1799
|
* @memberof QuoteLoanOpenResponse
|
|
1714
1800
|
*/
|
|
1715
1801
|
'slippage_bps'?: number;
|
|
1716
1802
|
/**
|
|
1717
|
-
*
|
|
1803
|
+
* Deprecated - migrate to fees object.
|
|
1718
1804
|
* @type {number}
|
|
1719
1805
|
* @memberof QuoteLoanOpenResponse
|
|
1720
1806
|
*/
|
|
@@ -1829,13 +1915,13 @@ export interface QuoteSaverDepositResponse {
|
|
|
1829
1915
|
*/
|
|
1830
1916
|
'fees': QuoteFees;
|
|
1831
1917
|
/**
|
|
1832
|
-
*
|
|
1918
|
+
* Deprecated - migrate to fees object.
|
|
1833
1919
|
* @type {number}
|
|
1834
1920
|
* @memberof QuoteSaverDepositResponse
|
|
1835
1921
|
*/
|
|
1836
1922
|
'slippage_bps': number;
|
|
1837
1923
|
/**
|
|
1838
|
-
*
|
|
1924
|
+
* Deprecated - migrate to fees object.
|
|
1839
1925
|
* @type {number}
|
|
1840
1926
|
* @memberof QuoteSaverDepositResponse
|
|
1841
1927
|
*/
|
|
@@ -1938,13 +2024,13 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1938
2024
|
*/
|
|
1939
2025
|
'fees': QuoteFees;
|
|
1940
2026
|
/**
|
|
1941
|
-
*
|
|
2027
|
+
* Deprecated - migrate to fees object.
|
|
1942
2028
|
* @type {number}
|
|
1943
2029
|
* @memberof QuoteSaverWithdrawResponse
|
|
1944
2030
|
*/
|
|
1945
2031
|
'slippage_bps': number;
|
|
1946
2032
|
/**
|
|
1947
|
-
*
|
|
2033
|
+
* Deprecated - migrate to fees object.
|
|
1948
2034
|
* @type {number}
|
|
1949
2035
|
* @memberof QuoteSaverWithdrawResponse
|
|
1950
2036
|
*/
|
|
@@ -2047,13 +2133,13 @@ export interface QuoteSwapResponse {
|
|
|
2047
2133
|
*/
|
|
2048
2134
|
'fees': QuoteFees;
|
|
2049
2135
|
/**
|
|
2050
|
-
*
|
|
2136
|
+
* Deprecated - migrate to fees object.
|
|
2051
2137
|
* @type {number}
|
|
2052
2138
|
* @memberof QuoteSwapResponse
|
|
2053
2139
|
*/
|
|
2054
2140
|
'slippage_bps': number;
|
|
2055
2141
|
/**
|
|
2056
|
-
*
|
|
2142
|
+
* Deprecated - migrate to fees object.
|
|
2057
2143
|
* @type {number}
|
|
2058
2144
|
* @memberof QuoteSwapResponse
|
|
2059
2145
|
*/
|
|
@@ -2107,7 +2193,7 @@ export interface QuoteSwapResponse {
|
|
|
2107
2193
|
*/
|
|
2108
2194
|
'expected_amount_out': string;
|
|
2109
2195
|
/**
|
|
2110
|
-
*
|
|
2196
|
+
* Deprecated - expected_amount_out is streaming amount if interval provided.
|
|
2111
2197
|
* @type {string}
|
|
2112
2198
|
* @memberof QuoteSwapResponse
|
|
2113
2199
|
*/
|
|
@@ -2467,12 +2553,6 @@ export interface TxDetailsResponse {
|
|
|
2467
2553
|
* @memberof TxDetailsResponse
|
|
2468
2554
|
*/
|
|
2469
2555
|
'tx': ObservedTx;
|
|
2470
|
-
/**
|
|
2471
|
-
*
|
|
2472
|
-
* @type {number}
|
|
2473
|
-
* @memberof TxDetailsResponse
|
|
2474
|
-
*/
|
|
2475
|
-
'height'?: number;
|
|
2476
2556
|
/**
|
|
2477
2557
|
*
|
|
2478
2558
|
* @type {Array<ObservedTx>}
|
|
@@ -2491,6 +2571,12 @@ export interface TxDetailsResponse {
|
|
|
2491
2571
|
* @memberof TxDetailsResponse
|
|
2492
2572
|
*/
|
|
2493
2573
|
'out_txs': Array<Tx>;
|
|
2574
|
+
/**
|
|
2575
|
+
* the thorchain height at which the inbound reached consensus
|
|
2576
|
+
* @type {number}
|
|
2577
|
+
* @memberof TxDetailsResponse
|
|
2578
|
+
*/
|
|
2579
|
+
'consensus_height'?: number;
|
|
2494
2580
|
/**
|
|
2495
2581
|
* the thorchain height at which the outbound was finalised
|
|
2496
2582
|
* @type {number}
|
|
@@ -2595,6 +2681,12 @@ export interface TxResponse {
|
|
|
2595
2681
|
* @memberof TxResponse
|
|
2596
2682
|
*/
|
|
2597
2683
|
'observed_tx'?: ObservedTx;
|
|
2684
|
+
/**
|
|
2685
|
+
* the thorchain height at which the inbound reached consensus
|
|
2686
|
+
* @type {number}
|
|
2687
|
+
* @memberof TxResponse
|
|
2688
|
+
*/
|
|
2689
|
+
'consensus_height'?: number;
|
|
2598
2690
|
/**
|
|
2599
2691
|
* the thorchain height at which the outbound was finalised
|
|
2600
2692
|
* @type {number}
|
|
@@ -2632,12 +2724,6 @@ export interface TxSignersResponse {
|
|
|
2632
2724
|
* @memberof TxSignersResponse
|
|
2633
2725
|
*/
|
|
2634
2726
|
'tx': ObservedTx;
|
|
2635
|
-
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @type {number}
|
|
2638
|
-
* @memberof TxSignersResponse
|
|
2639
|
-
*/
|
|
2640
|
-
'height'?: number;
|
|
2641
2727
|
/**
|
|
2642
2728
|
*
|
|
2643
2729
|
* @type {Array<ObservedTx>}
|
|
@@ -2656,6 +2742,12 @@ export interface TxSignersResponse {
|
|
|
2656
2742
|
* @memberof TxSignersResponse
|
|
2657
2743
|
*/
|
|
2658
2744
|
'out_txs': Array<Tx>;
|
|
2745
|
+
/**
|
|
2746
|
+
* the thorchain height at which the inbound reached consensus
|
|
2747
|
+
* @type {number}
|
|
2748
|
+
* @memberof TxSignersResponse
|
|
2749
|
+
*/
|
|
2750
|
+
'consensus_height'?: number;
|
|
2659
2751
|
/**
|
|
2660
2752
|
* the thorchain height at which the outbound was finalised
|
|
2661
2753
|
* @type {number}
|
|
@@ -2704,7 +2796,13 @@ export interface TxStagesResponse {
|
|
|
2704
2796
|
* @type {TxStagesResponseInboundFinalised}
|
|
2705
2797
|
* @memberof TxStagesResponse
|
|
2706
2798
|
*/
|
|
2707
|
-
'inbound_finalised'
|
|
2799
|
+
'inbound_finalised'?: TxStagesResponseInboundFinalised;
|
|
2800
|
+
/**
|
|
2801
|
+
*
|
|
2802
|
+
* @type {TxStagesResponseSwapStatus}
|
|
2803
|
+
* @memberof TxStagesResponse
|
|
2804
|
+
*/
|
|
2805
|
+
'swap_status'?: TxStagesResponseSwapStatus;
|
|
2708
2806
|
/**
|
|
2709
2807
|
*
|
|
2710
2808
|
* @type {TxStagesResponseSwapFinalised}
|
|
@@ -2787,11 +2885,23 @@ export interface TxStagesResponseInboundFinalised {
|
|
|
2787
2885
|
*/
|
|
2788
2886
|
export interface TxStagesResponseInboundObserved {
|
|
2789
2887
|
/**
|
|
2790
|
-
* returns true if any nodes have observed the transaction
|
|
2888
|
+
* returns true if any nodes have observed the transaction (to be deprecated in favour of counts)
|
|
2791
2889
|
* @type {boolean}
|
|
2792
2890
|
* @memberof TxStagesResponseInboundObserved
|
|
2793
2891
|
*/
|
|
2794
2892
|
'started'?: boolean;
|
|
2893
|
+
/**
|
|
2894
|
+
* number of signers for pre-confirmation-counting observations
|
|
2895
|
+
* @type {number}
|
|
2896
|
+
* @memberof TxStagesResponseInboundObserved
|
|
2897
|
+
*/
|
|
2898
|
+
'pre_confirmation_count'?: number;
|
|
2899
|
+
/**
|
|
2900
|
+
* number of signers for final observations, after any confirmation counting complete
|
|
2901
|
+
* @type {number}
|
|
2902
|
+
* @memberof TxStagesResponseInboundObserved
|
|
2903
|
+
*/
|
|
2904
|
+
'final_count'?: number;
|
|
2795
2905
|
/**
|
|
2796
2906
|
* returns true if no transaction observation remains to be done
|
|
2797
2907
|
* @type {boolean}
|
|
@@ -2856,12 +2966,56 @@ export interface TxStagesResponseOutboundSigned {
|
|
|
2856
2966
|
*/
|
|
2857
2967
|
export interface TxStagesResponseSwapFinalised {
|
|
2858
2968
|
/**
|
|
2859
|
-
* returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
|
|
2969
|
+
* (to be deprecated in favor of swap_status) returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
|
|
2860
2970
|
* @type {boolean}
|
|
2861
2971
|
* @memberof TxStagesResponseSwapFinalised
|
|
2862
2972
|
*/
|
|
2863
2973
|
'completed': boolean;
|
|
2864
2974
|
}
|
|
2975
|
+
/**
|
|
2976
|
+
*
|
|
2977
|
+
* @export
|
|
2978
|
+
* @interface TxStagesResponseSwapStatus
|
|
2979
|
+
*/
|
|
2980
|
+
export interface TxStagesResponseSwapStatus {
|
|
2981
|
+
/**
|
|
2982
|
+
* true when awaiting a swap
|
|
2983
|
+
* @type {boolean}
|
|
2984
|
+
* @memberof TxStagesResponseSwapStatus
|
|
2985
|
+
*/
|
|
2986
|
+
'pending': boolean;
|
|
2987
|
+
/**
|
|
2988
|
+
*
|
|
2989
|
+
* @type {TxStagesResponseSwapStatusStreaming}
|
|
2990
|
+
* @memberof TxStagesResponseSwapStatus
|
|
2991
|
+
*/
|
|
2992
|
+
'streaming'?: TxStagesResponseSwapStatusStreaming;
|
|
2993
|
+
}
|
|
2994
|
+
/**
|
|
2995
|
+
*
|
|
2996
|
+
* @export
|
|
2997
|
+
* @interface TxStagesResponseSwapStatusStreaming
|
|
2998
|
+
*/
|
|
2999
|
+
export interface TxStagesResponseSwapStatusStreaming {
|
|
3000
|
+
/**
|
|
3001
|
+
* how often each swap is made, in blocks
|
|
3002
|
+
* @type {number}
|
|
3003
|
+
* @memberof TxStagesResponseSwapStatusStreaming
|
|
3004
|
+
*/
|
|
3005
|
+
'interval': number;
|
|
3006
|
+
/**
|
|
3007
|
+
* the total number of swaps in a streaming swaps
|
|
3008
|
+
* @type {number}
|
|
3009
|
+
* @memberof TxStagesResponseSwapStatusStreaming
|
|
3010
|
+
*/
|
|
3011
|
+
'quantity': number;
|
|
3012
|
+
/**
|
|
3013
|
+
* the amount of swap attempts so far
|
|
3014
|
+
* @type {number}
|
|
3015
|
+
* @memberof TxStagesResponseSwapStatusStreaming
|
|
3016
|
+
*/
|
|
3017
|
+
'count': number;
|
|
3018
|
+
}
|
|
2865
3019
|
/**
|
|
2866
3020
|
*
|
|
2867
3021
|
* @export
|
|
@@ -4064,6 +4218,21 @@ export declare class POLApi extends BaseAPI {
|
|
|
4064
4218
|
* @export
|
|
4065
4219
|
*/
|
|
4066
4220
|
export declare const PoolsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4221
|
+
/**
|
|
4222
|
+
* Returns the pool information for the provided derived asset.
|
|
4223
|
+
* @param {string} asset
|
|
4224
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4225
|
+
* @param {*} [options] Override http request option.
|
|
4226
|
+
* @throws {RequiredError}
|
|
4227
|
+
*/
|
|
4228
|
+
dpool: (asset: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4229
|
+
/**
|
|
4230
|
+
* Returns the pool information for all derived assets.
|
|
4231
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4232
|
+
* @param {*} [options] Override http request option.
|
|
4233
|
+
* @throws {RequiredError}
|
|
4234
|
+
*/
|
|
4235
|
+
dpools: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4067
4236
|
/**
|
|
4068
4237
|
* Returns the pool information for the provided asset.
|
|
4069
4238
|
* @param {string} asset
|
|
@@ -4085,6 +4254,21 @@ export declare const PoolsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4085
4254
|
* @export
|
|
4086
4255
|
*/
|
|
4087
4256
|
export declare const PoolsApiFp: (configuration?: Configuration) => {
|
|
4257
|
+
/**
|
|
4258
|
+
* Returns the pool information for the provided derived asset.
|
|
4259
|
+
* @param {string} asset
|
|
4260
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4261
|
+
* @param {*} [options] Override http request option.
|
|
4262
|
+
* @throws {RequiredError}
|
|
4263
|
+
*/
|
|
4264
|
+
dpool(asset: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DerivedPool>>;
|
|
4265
|
+
/**
|
|
4266
|
+
* Returns the pool information for all derived assets.
|
|
4267
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4268
|
+
* @param {*} [options] Override http request option.
|
|
4269
|
+
* @throws {RequiredError}
|
|
4270
|
+
*/
|
|
4271
|
+
dpools(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DerivedPoolsResponse>>;
|
|
4088
4272
|
/**
|
|
4089
4273
|
* Returns the pool information for the provided asset.
|
|
4090
4274
|
* @param {string} asset
|
|
@@ -4106,6 +4290,21 @@ export declare const PoolsApiFp: (configuration?: Configuration) => {
|
|
|
4106
4290
|
* @export
|
|
4107
4291
|
*/
|
|
4108
4292
|
export declare const PoolsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4293
|
+
/**
|
|
4294
|
+
* Returns the pool information for the provided derived asset.
|
|
4295
|
+
* @param {string} asset
|
|
4296
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4297
|
+
* @param {*} [options] Override http request option.
|
|
4298
|
+
* @throws {RequiredError}
|
|
4299
|
+
*/
|
|
4300
|
+
dpool(asset: string, height?: number, options?: any): AxiosPromise<DerivedPool>;
|
|
4301
|
+
/**
|
|
4302
|
+
* Returns the pool information for all derived assets.
|
|
4303
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4304
|
+
* @param {*} [options] Override http request option.
|
|
4305
|
+
* @throws {RequiredError}
|
|
4306
|
+
*/
|
|
4307
|
+
dpools(height?: number, options?: any): AxiosPromise<DerivedPoolsResponse>;
|
|
4109
4308
|
/**
|
|
4110
4309
|
* Returns the pool information for the provided asset.
|
|
4111
4310
|
* @param {string} asset
|
|
@@ -4129,6 +4328,23 @@ export declare const PoolsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4129
4328
|
* @extends {BaseAPI}
|
|
4130
4329
|
*/
|
|
4131
4330
|
export declare class PoolsApi extends BaseAPI {
|
|
4331
|
+
/**
|
|
4332
|
+
* Returns the pool information for the provided derived asset.
|
|
4333
|
+
* @param {string} asset
|
|
4334
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4335
|
+
* @param {*} [options] Override http request option.
|
|
4336
|
+
* @throws {RequiredError}
|
|
4337
|
+
* @memberof PoolsApi
|
|
4338
|
+
*/
|
|
4339
|
+
dpool(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DerivedPool, any>>;
|
|
4340
|
+
/**
|
|
4341
|
+
* Returns the pool information for all derived assets.
|
|
4342
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4343
|
+
* @param {*} [options] Override http request option.
|
|
4344
|
+
* @throws {RequiredError}
|
|
4345
|
+
* @memberof PoolsApi
|
|
4346
|
+
*/
|
|
4347
|
+
dpools(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DerivedPoolsResponse, any>>;
|
|
4132
4348
|
/**
|
|
4133
4349
|
* Returns the pool information for the provided asset.
|
|
4134
4350
|
* @param {string} asset
|
|
@@ -4297,21 +4513,21 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4297
4513
|
/**
|
|
4298
4514
|
* Provide a quote estimate for the provided loan close.
|
|
4299
4515
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4300
|
-
* @param {string} [
|
|
4516
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4301
4517
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4302
|
-
* @param {string} [
|
|
4518
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4303
4519
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4304
4520
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4305
4521
|
* @param {*} [options] Override http request option.
|
|
4306
4522
|
* @throws {RequiredError}
|
|
4307
4523
|
*/
|
|
4308
|
-
quoteloanclose: (height?: number,
|
|
4524
|
+
quoteloanclose: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4309
4525
|
/**
|
|
4310
4526
|
* Provide a quote estimate for the provided loan open.
|
|
4311
4527
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4312
|
-
* @param {string} [
|
|
4528
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4313
4529
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4314
|
-
* @param {string} [
|
|
4530
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4315
4531
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4316
4532
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4317
4533
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4319,7 +4535,7 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4319
4535
|
* @param {*} [options] Override http request option.
|
|
4320
4536
|
* @throws {RequiredError}
|
|
4321
4537
|
*/
|
|
4322
|
-
quoteloanopen: (height?: number,
|
|
4538
|
+
quoteloanopen: (height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4323
4539
|
/**
|
|
4324
4540
|
* Provide a quote estimate for the provided saver deposit.
|
|
4325
4541
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4365,21 +4581,21 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4365
4581
|
/**
|
|
4366
4582
|
* Provide a quote estimate for the provided loan close.
|
|
4367
4583
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4368
|
-
* @param {string} [
|
|
4584
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4369
4585
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4370
|
-
* @param {string} [
|
|
4586
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4371
4587
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4372
4588
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4373
4589
|
* @param {*} [options] Override http request option.
|
|
4374
4590
|
* @throws {RequiredError}
|
|
4375
4591
|
*/
|
|
4376
|
-
quoteloanclose(height?: number,
|
|
4592
|
+
quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
|
|
4377
4593
|
/**
|
|
4378
4594
|
* Provide a quote estimate for the provided loan open.
|
|
4379
4595
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4380
|
-
* @param {string} [
|
|
4596
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4381
4597
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4382
|
-
* @param {string} [
|
|
4598
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4383
4599
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4384
4600
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4385
4601
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4387,7 +4603,7 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4387
4603
|
* @param {*} [options] Override http request option.
|
|
4388
4604
|
* @throws {RequiredError}
|
|
4389
4605
|
*/
|
|
4390
|
-
quoteloanopen(height?: number,
|
|
4606
|
+
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
4607
|
/**
|
|
4392
4608
|
* Provide a quote estimate for the provided saver deposit.
|
|
4393
4609
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4433,21 +4649,21 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4433
4649
|
/**
|
|
4434
4650
|
* Provide a quote estimate for the provided loan close.
|
|
4435
4651
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4436
|
-
* @param {string} [
|
|
4652
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4437
4653
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4438
|
-
* @param {string} [
|
|
4654
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4439
4655
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4440
4656
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4441
4657
|
* @param {*} [options] Override http request option.
|
|
4442
4658
|
* @throws {RequiredError}
|
|
4443
4659
|
*/
|
|
4444
|
-
quoteloanclose(height?: number,
|
|
4660
|
+
quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
|
|
4445
4661
|
/**
|
|
4446
4662
|
* Provide a quote estimate for the provided loan open.
|
|
4447
4663
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4448
|
-
* @param {string} [
|
|
4664
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4449
4665
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4450
|
-
* @param {string} [
|
|
4666
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4451
4667
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4452
4668
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4453
4669
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4455,7 +4671,7 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4455
4671
|
* @param {*} [options] Override http request option.
|
|
4456
4672
|
* @throws {RequiredError}
|
|
4457
4673
|
*/
|
|
4458
|
-
quoteloanopen(height?: number,
|
|
4674
|
+
quoteloanopen(height?: number, fromAsset?: string, amount?: number, toAsset?: string, destination?: string, minOut?: string, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteLoanOpenResponse>;
|
|
4459
4675
|
/**
|
|
4460
4676
|
* Provide a quote estimate for the provided saver deposit.
|
|
4461
4677
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4503,22 +4719,22 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4503
4719
|
/**
|
|
4504
4720
|
* Provide a quote estimate for the provided loan close.
|
|
4505
4721
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4506
|
-
* @param {string} [
|
|
4722
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
4507
4723
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4508
|
-
* @param {string} [
|
|
4724
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
4509
4725
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4510
4726
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4511
4727
|
* @param {*} [options] Override http request option.
|
|
4512
4728
|
* @throws {RequiredError}
|
|
4513
4729
|
* @memberof QuoteApi
|
|
4514
4730
|
*/
|
|
4515
|
-
quoteloanclose(height?: number,
|
|
4731
|
+
quoteloanclose(height?: number, fromAsset?: string, amount?: number, toAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
|
|
4516
4732
|
/**
|
|
4517
4733
|
* Provide a quote estimate for the provided loan open.
|
|
4518
4734
|
* @param {number} [height] optional block height, defaults to current tip
|
|
4519
|
-
* @param {string} [
|
|
4735
|
+
* @param {string} [fromAsset] the collateral asset
|
|
4520
4736
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4521
|
-
* @param {string} [
|
|
4737
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4522
4738
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4523
4739
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4524
4740
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -4527,7 +4743,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
4527
4743
|
* @throws {RequiredError}
|
|
4528
4744
|
* @memberof QuoteApi
|
|
4529
4745
|
*/
|
|
4530
|
-
quoteloanopen(height?: number,
|
|
4746
|
+
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
4747
|
/**
|
|
4532
4748
|
* Provide a quote estimate for the provided saver deposit.
|
|
4533
4749
|
* @param {number} [height] optional block height, defaults to current tip
|