@xchainjs/xchain-thornode 0.2.2 → 0.2.3
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 +501 -38
- 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 +203 -1
- package/lib/index.js +203 -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.108.3
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,6 +37,85 @@ export interface BanResponse {
|
|
|
37
37
|
*/
|
|
38
38
|
'signers'?: Array<string>;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @export
|
|
43
|
+
* @interface BaseQuoteResponse
|
|
44
|
+
*/
|
|
45
|
+
export interface BaseQuoteResponse {
|
|
46
|
+
/**
|
|
47
|
+
* the inbound address for the transaction on the source chain
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BaseQuoteResponse
|
|
50
|
+
*/
|
|
51
|
+
'inbound_address'?: string;
|
|
52
|
+
/**
|
|
53
|
+
* the approximate number of source chain blocks required before processing
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof BaseQuoteResponse
|
|
56
|
+
*/
|
|
57
|
+
'inbound_confirmation_blocks'?: number;
|
|
58
|
+
/**
|
|
59
|
+
* the approximate seconds for block confirmations required before processing
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof BaseQuoteResponse
|
|
62
|
+
*/
|
|
63
|
+
'inbound_confirmation_seconds'?: number;
|
|
64
|
+
/**
|
|
65
|
+
* the number of thorchain blocks the outbound will be delayed
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof BaseQuoteResponse
|
|
68
|
+
*/
|
|
69
|
+
'outbound_delay_blocks'?: number;
|
|
70
|
+
/**
|
|
71
|
+
* the approximate seconds for the outbound delay before it will be sent
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof BaseQuoteResponse
|
|
74
|
+
*/
|
|
75
|
+
'outbound_delay_seconds'?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {QuoteFees}
|
|
79
|
+
* @memberof BaseQuoteResponse
|
|
80
|
+
*/
|
|
81
|
+
'fees'?: QuoteFees;
|
|
82
|
+
/**
|
|
83
|
+
* the total swap slippage in basis points
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof BaseQuoteResponse
|
|
86
|
+
*/
|
|
87
|
+
'slippage_bps'?: number;
|
|
88
|
+
/**
|
|
89
|
+
* the EVM chain router contract address
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof BaseQuoteResponse
|
|
92
|
+
*/
|
|
93
|
+
'router'?: string;
|
|
94
|
+
/**
|
|
95
|
+
* expiration timestamp in unix seconds
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof BaseQuoteResponse
|
|
98
|
+
*/
|
|
99
|
+
'expiry'?: number;
|
|
100
|
+
/**
|
|
101
|
+
* static warning message
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof BaseQuoteResponse
|
|
104
|
+
*/
|
|
105
|
+
'warning'?: string;
|
|
106
|
+
/**
|
|
107
|
+
* chain specific quote notes
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof BaseQuoteResponse
|
|
110
|
+
*/
|
|
111
|
+
'notes'?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_threshold are ignored.
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof BaseQuoteResponse
|
|
116
|
+
*/
|
|
117
|
+
'dust_threshold'?: string;
|
|
118
|
+
}
|
|
40
119
|
/**
|
|
41
120
|
*
|
|
42
121
|
* @export
|
|
@@ -788,6 +867,24 @@ export interface NetworkResponse {
|
|
|
788
867
|
* @memberof NetworkResponse
|
|
789
868
|
*/
|
|
790
869
|
'vaults_migrating': boolean;
|
|
870
|
+
/**
|
|
871
|
+
* Sum of the gas the network has spent to send outbounds
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof NetworkResponse
|
|
874
|
+
*/
|
|
875
|
+
'gas_spent_rune': string;
|
|
876
|
+
/**
|
|
877
|
+
* Sum of the gas withheld from users to cover outbound gas
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof NetworkResponse
|
|
880
|
+
*/
|
|
881
|
+
'gas_withheld_rune': string;
|
|
882
|
+
/**
|
|
883
|
+
* Current outbound fee multiplier, in basis points
|
|
884
|
+
* @type {string}
|
|
885
|
+
* @memberof NetworkResponse
|
|
886
|
+
*/
|
|
887
|
+
'outbound_fee_multiplier'?: string;
|
|
791
888
|
}
|
|
792
889
|
/**
|
|
793
890
|
*
|
|
@@ -1361,44 +1458,250 @@ export interface QuoteFees {
|
|
|
1361
1458
|
* @type {string}
|
|
1362
1459
|
* @memberof QuoteFees
|
|
1363
1460
|
*/
|
|
1364
|
-
'affiliate'
|
|
1461
|
+
'affiliate'?: string;
|
|
1365
1462
|
/**
|
|
1366
1463
|
*
|
|
1367
1464
|
* @type {string}
|
|
1368
1465
|
* @memberof QuoteFees
|
|
1369
1466
|
*/
|
|
1370
1467
|
'outbound': string;
|
|
1468
|
+
/**
|
|
1469
|
+
* liquidity fees paid to pools
|
|
1470
|
+
* @type {string}
|
|
1471
|
+
* @memberof QuoteFees
|
|
1472
|
+
*/
|
|
1473
|
+
'liquidity'?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
* total basis points in fees relative to amount out
|
|
1476
|
+
* @type {string}
|
|
1477
|
+
* @memberof QuoteFees
|
|
1478
|
+
*/
|
|
1479
|
+
'total_bps'?: string;
|
|
1371
1480
|
}
|
|
1372
1481
|
/**
|
|
1373
1482
|
*
|
|
1374
1483
|
* @export
|
|
1375
|
-
* @interface
|
|
1484
|
+
* @interface QuoteLoanCloseResponse
|
|
1376
1485
|
*/
|
|
1377
|
-
export interface
|
|
1486
|
+
export interface QuoteLoanCloseResponse {
|
|
1378
1487
|
/**
|
|
1379
1488
|
* the inbound address for the transaction on the source chain
|
|
1380
1489
|
* @type {string}
|
|
1381
|
-
* @memberof
|
|
1490
|
+
* @memberof QuoteLoanCloseResponse
|
|
1382
1491
|
*/
|
|
1383
1492
|
'inbound_address': string;
|
|
1384
1493
|
/**
|
|
1385
|
-
*
|
|
1494
|
+
* the approximate number of source chain blocks required before processing
|
|
1495
|
+
* @type {number}
|
|
1496
|
+
* @memberof QuoteLoanCloseResponse
|
|
1497
|
+
*/
|
|
1498
|
+
'inbound_confirmation_blocks'?: number;
|
|
1499
|
+
/**
|
|
1500
|
+
* the approximate seconds for block confirmations required before processing
|
|
1501
|
+
* @type {number}
|
|
1502
|
+
* @memberof QuoteLoanCloseResponse
|
|
1503
|
+
*/
|
|
1504
|
+
'inbound_confirmation_seconds'?: number;
|
|
1505
|
+
/**
|
|
1506
|
+
* the number of thorchain blocks the outbound will be delayed
|
|
1507
|
+
* @type {number}
|
|
1508
|
+
* @memberof QuoteLoanCloseResponse
|
|
1509
|
+
*/
|
|
1510
|
+
'outbound_delay_blocks': number;
|
|
1511
|
+
/**
|
|
1512
|
+
* the approximate seconds for the outbound delay before it will be sent
|
|
1513
|
+
* @type {number}
|
|
1514
|
+
* @memberof QuoteLoanCloseResponse
|
|
1515
|
+
*/
|
|
1516
|
+
'outbound_delay_seconds': number;
|
|
1517
|
+
/**
|
|
1518
|
+
*
|
|
1519
|
+
* @type {QuoteFees}
|
|
1520
|
+
* @memberof QuoteLoanCloseResponse
|
|
1521
|
+
*/
|
|
1522
|
+
'fees': QuoteFees;
|
|
1523
|
+
/**
|
|
1524
|
+
* the total swap slippage in basis points
|
|
1525
|
+
* @type {number}
|
|
1526
|
+
* @memberof QuoteLoanCloseResponse
|
|
1527
|
+
*/
|
|
1528
|
+
'slippage_bps'?: number;
|
|
1529
|
+
/**
|
|
1530
|
+
* the EVM chain router contract address
|
|
1386
1531
|
* @type {string}
|
|
1387
|
-
* @memberof
|
|
1532
|
+
* @memberof QuoteLoanCloseResponse
|
|
1533
|
+
*/
|
|
1534
|
+
'router'?: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* expiration timestamp in unix seconds
|
|
1537
|
+
* @type {number}
|
|
1538
|
+
* @memberof QuoteLoanCloseResponse
|
|
1539
|
+
*/
|
|
1540
|
+
'expiry': number;
|
|
1541
|
+
/**
|
|
1542
|
+
* static warning message
|
|
1543
|
+
* @type {string}
|
|
1544
|
+
* @memberof QuoteLoanCloseResponse
|
|
1545
|
+
*/
|
|
1546
|
+
'warning': string;
|
|
1547
|
+
/**
|
|
1548
|
+
* chain specific quote notes
|
|
1549
|
+
* @type {string}
|
|
1550
|
+
* @memberof QuoteLoanCloseResponse
|
|
1551
|
+
*/
|
|
1552
|
+
'notes': string;
|
|
1553
|
+
/**
|
|
1554
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_threshold are ignored.
|
|
1555
|
+
* @type {string}
|
|
1556
|
+
* @memberof QuoteLoanCloseResponse
|
|
1557
|
+
*/
|
|
1558
|
+
'dust_threshold'?: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* generated memo for the loan close
|
|
1561
|
+
* @type {string}
|
|
1562
|
+
* @memberof QuoteLoanCloseResponse
|
|
1388
1563
|
*/
|
|
1389
1564
|
'memo': string;
|
|
1390
1565
|
/**
|
|
1391
|
-
*
|
|
1566
|
+
* the amount of collateral asset the user can expect to receive after fees in 1e8 decimals
|
|
1392
1567
|
* @type {string}
|
|
1393
|
-
* @memberof
|
|
1568
|
+
* @memberof QuoteLoanCloseResponse
|
|
1394
1569
|
*/
|
|
1395
1570
|
'expected_amount_out': string;
|
|
1396
1571
|
/**
|
|
1397
|
-
* the
|
|
1572
|
+
* the expected amount of collateral decrease on the loan
|
|
1573
|
+
* @type {string}
|
|
1574
|
+
* @memberof QuoteLoanCloseResponse
|
|
1575
|
+
*/
|
|
1576
|
+
'expected_collateral_down': string;
|
|
1577
|
+
/**
|
|
1578
|
+
* the expected amount of TOR debt decrease on the loan
|
|
1579
|
+
* @type {string}
|
|
1580
|
+
* @memberof QuoteLoanCloseResponse
|
|
1581
|
+
*/
|
|
1582
|
+
'expected_debt_down': string;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
*
|
|
1586
|
+
* @export
|
|
1587
|
+
* @interface QuoteLoanOpenResponse
|
|
1588
|
+
*/
|
|
1589
|
+
export interface QuoteLoanOpenResponse {
|
|
1590
|
+
/**
|
|
1591
|
+
* the inbound address for the transaction on the source chain
|
|
1592
|
+
* @type {string}
|
|
1593
|
+
* @memberof QuoteLoanOpenResponse
|
|
1594
|
+
*/
|
|
1595
|
+
'inbound_address': string;
|
|
1596
|
+
/**
|
|
1597
|
+
* the approximate number of source chain blocks required before processing
|
|
1598
|
+
* @type {number}
|
|
1599
|
+
* @memberof QuoteLoanOpenResponse
|
|
1600
|
+
*/
|
|
1601
|
+
'inbound_confirmation_blocks'?: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* the approximate seconds for block confirmations required before processing
|
|
1604
|
+
* @type {number}
|
|
1605
|
+
* @memberof QuoteLoanOpenResponse
|
|
1606
|
+
*/
|
|
1607
|
+
'inbound_confirmation_seconds'?: number;
|
|
1608
|
+
/**
|
|
1609
|
+
* the number of thorchain blocks the outbound will be delayed
|
|
1610
|
+
* @type {number}
|
|
1611
|
+
* @memberof QuoteLoanOpenResponse
|
|
1612
|
+
*/
|
|
1613
|
+
'outbound_delay_blocks': number;
|
|
1614
|
+
/**
|
|
1615
|
+
* the approximate seconds for the outbound delay before it will be sent
|
|
1616
|
+
* @type {number}
|
|
1617
|
+
* @memberof QuoteLoanOpenResponse
|
|
1618
|
+
*/
|
|
1619
|
+
'outbound_delay_seconds': number;
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @type {QuoteFees}
|
|
1623
|
+
* @memberof QuoteLoanOpenResponse
|
|
1624
|
+
*/
|
|
1625
|
+
'fees': QuoteFees;
|
|
1626
|
+
/**
|
|
1627
|
+
* the total swap slippage in basis points
|
|
1628
|
+
* @type {number}
|
|
1629
|
+
* @memberof QuoteLoanOpenResponse
|
|
1630
|
+
*/
|
|
1631
|
+
'slippage_bps'?: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* the EVM chain router contract address
|
|
1634
|
+
* @type {string}
|
|
1635
|
+
* @memberof QuoteLoanOpenResponse
|
|
1636
|
+
*/
|
|
1637
|
+
'router'?: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* expiration timestamp in unix seconds
|
|
1640
|
+
* @type {number}
|
|
1641
|
+
* @memberof QuoteLoanOpenResponse
|
|
1642
|
+
*/
|
|
1643
|
+
'expiry': number;
|
|
1644
|
+
/**
|
|
1645
|
+
* static warning message
|
|
1646
|
+
* @type {string}
|
|
1647
|
+
* @memberof QuoteLoanOpenResponse
|
|
1648
|
+
*/
|
|
1649
|
+
'warning': string;
|
|
1650
|
+
/**
|
|
1651
|
+
* chain specific quote notes
|
|
1652
|
+
* @type {string}
|
|
1653
|
+
* @memberof QuoteLoanOpenResponse
|
|
1654
|
+
*/
|
|
1655
|
+
'notes': string;
|
|
1656
|
+
/**
|
|
1657
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_threshold are ignored.
|
|
1658
|
+
* @type {string}
|
|
1659
|
+
* @memberof QuoteLoanOpenResponse
|
|
1660
|
+
*/
|
|
1661
|
+
'dust_threshold'?: string;
|
|
1662
|
+
/**
|
|
1663
|
+
* generated memo for the loan open
|
|
1664
|
+
* @type {string}
|
|
1665
|
+
* @memberof QuoteLoanOpenResponse
|
|
1666
|
+
*/
|
|
1667
|
+
'memo'?: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* the amount of the target asset the user can expect to receive after fees in 1e8 decimals
|
|
1670
|
+
* @type {string}
|
|
1671
|
+
* @memberof QuoteLoanOpenResponse
|
|
1672
|
+
*/
|
|
1673
|
+
'expected_amount_out': string;
|
|
1674
|
+
/**
|
|
1675
|
+
* the expected collateralization ratio in basis points
|
|
1676
|
+
* @type {string}
|
|
1677
|
+
* @memberof QuoteLoanOpenResponse
|
|
1678
|
+
*/
|
|
1679
|
+
'expected_collateralization_ratio': string;
|
|
1680
|
+
/**
|
|
1681
|
+
* the expected amount of collateral increase on the loan
|
|
1682
|
+
* @type {string}
|
|
1683
|
+
* @memberof QuoteLoanOpenResponse
|
|
1684
|
+
*/
|
|
1685
|
+
'expected_collateral_up': string;
|
|
1686
|
+
/**
|
|
1687
|
+
* the expected amount of TOR debt increase on the loan
|
|
1688
|
+
* @type {string}
|
|
1689
|
+
* @memberof QuoteLoanOpenResponse
|
|
1690
|
+
*/
|
|
1691
|
+
'expected_debt_up': string;
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
*
|
|
1695
|
+
* @export
|
|
1696
|
+
* @interface QuoteSaverDepositResponse
|
|
1697
|
+
*/
|
|
1698
|
+
export interface QuoteSaverDepositResponse {
|
|
1699
|
+
/**
|
|
1700
|
+
* the inbound address for the transaction on the source chain
|
|
1398
1701
|
* @type {string}
|
|
1399
1702
|
* @memberof QuoteSaverDepositResponse
|
|
1400
1703
|
*/
|
|
1401
|
-
'
|
|
1704
|
+
'inbound_address': string;
|
|
1402
1705
|
/**
|
|
1403
1706
|
* the approximate number of source chain blocks required before processing
|
|
1404
1707
|
* @type {number}
|
|
@@ -1411,6 +1714,18 @@ export interface QuoteSaverDepositResponse {
|
|
|
1411
1714
|
* @memberof QuoteSaverDepositResponse
|
|
1412
1715
|
*/
|
|
1413
1716
|
'inbound_confirmation_seconds'?: number;
|
|
1717
|
+
/**
|
|
1718
|
+
* the number of thorchain blocks the outbound will be delayed
|
|
1719
|
+
* @type {number}
|
|
1720
|
+
* @memberof QuoteSaverDepositResponse
|
|
1721
|
+
*/
|
|
1722
|
+
'outbound_delay_blocks'?: number;
|
|
1723
|
+
/**
|
|
1724
|
+
* the approximate seconds for the outbound delay before it will be sent
|
|
1725
|
+
* @type {number}
|
|
1726
|
+
* @memberof QuoteSaverDepositResponse
|
|
1727
|
+
*/
|
|
1728
|
+
'outbound_delay_seconds'?: number;
|
|
1414
1729
|
/**
|
|
1415
1730
|
*
|
|
1416
1731
|
* @type {QuoteFees}
|
|
@@ -1418,11 +1733,17 @@ export interface QuoteSaverDepositResponse {
|
|
|
1418
1733
|
*/
|
|
1419
1734
|
'fees': QuoteFees;
|
|
1420
1735
|
/**
|
|
1421
|
-
* the swap slippage in basis points
|
|
1736
|
+
* the total swap slippage in basis points
|
|
1422
1737
|
* @type {number}
|
|
1423
1738
|
* @memberof QuoteSaverDepositResponse
|
|
1424
1739
|
*/
|
|
1425
1740
|
'slippage_bps': number;
|
|
1741
|
+
/**
|
|
1742
|
+
* the EVM chain router contract address
|
|
1743
|
+
* @type {string}
|
|
1744
|
+
* @memberof QuoteSaverDepositResponse
|
|
1745
|
+
*/
|
|
1746
|
+
'router'?: string;
|
|
1426
1747
|
/**
|
|
1427
1748
|
* expiration timestamp in unix seconds
|
|
1428
1749
|
* @type {number}
|
|
@@ -1447,6 +1768,24 @@ export interface QuoteSaverDepositResponse {
|
|
|
1447
1768
|
* @memberof QuoteSaverDepositResponse
|
|
1448
1769
|
*/
|
|
1449
1770
|
'dust_threshold'?: string;
|
|
1771
|
+
/**
|
|
1772
|
+
* generated memo for the deposit
|
|
1773
|
+
* @type {string}
|
|
1774
|
+
* @memberof QuoteSaverDepositResponse
|
|
1775
|
+
*/
|
|
1776
|
+
'memo': string;
|
|
1777
|
+
/**
|
|
1778
|
+
* migrate to expected_amount_deposit (will be deprecated in v1.104)
|
|
1779
|
+
* @type {string}
|
|
1780
|
+
* @memberof QuoteSaverDepositResponse
|
|
1781
|
+
*/
|
|
1782
|
+
'expected_amount_out': string;
|
|
1783
|
+
/**
|
|
1784
|
+
* the amount of the target asset the user can expect to deposit after fees
|
|
1785
|
+
* @type {string}
|
|
1786
|
+
* @memberof QuoteSaverDepositResponse
|
|
1787
|
+
*/
|
|
1788
|
+
'expected_amount_deposit'?: string;
|
|
1450
1789
|
}
|
|
1451
1790
|
/**
|
|
1452
1791
|
*
|
|
@@ -1461,23 +1800,17 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1461
1800
|
*/
|
|
1462
1801
|
'inbound_address': string;
|
|
1463
1802
|
/**
|
|
1464
|
-
*
|
|
1465
|
-
* @type {
|
|
1466
|
-
* @memberof QuoteSaverWithdrawResponse
|
|
1467
|
-
*/
|
|
1468
|
-
'memo': string;
|
|
1469
|
-
/**
|
|
1470
|
-
* the dust amount of the target asset the user should send to initialize the withdraw, the client can send this OR provide the memo
|
|
1471
|
-
* @type {string}
|
|
1803
|
+
* the approximate number of source chain blocks required before processing
|
|
1804
|
+
* @type {number}
|
|
1472
1805
|
* @memberof QuoteSaverWithdrawResponse
|
|
1473
1806
|
*/
|
|
1474
|
-
'
|
|
1807
|
+
'inbound_confirmation_blocks'?: number;
|
|
1475
1808
|
/**
|
|
1476
|
-
* the
|
|
1477
|
-
* @type {
|
|
1809
|
+
* the approximate seconds for block confirmations required before processing
|
|
1810
|
+
* @type {number}
|
|
1478
1811
|
* @memberof QuoteSaverWithdrawResponse
|
|
1479
1812
|
*/
|
|
1480
|
-
'
|
|
1813
|
+
'inbound_confirmation_seconds'?: number;
|
|
1481
1814
|
/**
|
|
1482
1815
|
* the number of thorchain blocks the outbound will be delayed
|
|
1483
1816
|
* @type {number}
|
|
@@ -1497,11 +1830,17 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1497
1830
|
*/
|
|
1498
1831
|
'fees': QuoteFees;
|
|
1499
1832
|
/**
|
|
1500
|
-
* the swap slippage in basis points
|
|
1833
|
+
* the total swap slippage in basis points
|
|
1501
1834
|
* @type {number}
|
|
1502
1835
|
* @memberof QuoteSaverWithdrawResponse
|
|
1503
1836
|
*/
|
|
1504
1837
|
'slippage_bps': number;
|
|
1838
|
+
/**
|
|
1839
|
+
* the EVM chain router contract address
|
|
1840
|
+
* @type {string}
|
|
1841
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1842
|
+
*/
|
|
1843
|
+
'router'?: string;
|
|
1505
1844
|
/**
|
|
1506
1845
|
* expiration timestamp in unix seconds
|
|
1507
1846
|
* @type {number}
|
|
@@ -1526,6 +1865,24 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1526
1865
|
* @memberof QuoteSaverWithdrawResponse
|
|
1527
1866
|
*/
|
|
1528
1867
|
'dust_threshold'?: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* generated memo for the withdraw, the client can use this OR send the dust amount
|
|
1870
|
+
* @type {string}
|
|
1871
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1872
|
+
*/
|
|
1873
|
+
'memo': string;
|
|
1874
|
+
/**
|
|
1875
|
+
* the dust amount of the target asset the user should send to initialize the withdraw, the client can send this OR provide the memo
|
|
1876
|
+
* @type {string}
|
|
1877
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1878
|
+
*/
|
|
1879
|
+
'dust_amount': string;
|
|
1880
|
+
/**
|
|
1881
|
+
* the amount of the target asset the user can expect to withdraw after fees in 1e8 decimals
|
|
1882
|
+
* @type {string}
|
|
1883
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1884
|
+
*/
|
|
1885
|
+
'expected_amount_out': string;
|
|
1529
1886
|
}
|
|
1530
1887
|
/**
|
|
1531
1888
|
*
|
|
@@ -1539,18 +1896,6 @@ export interface QuoteSwapResponse {
|
|
|
1539
1896
|
* @memberof QuoteSwapResponse
|
|
1540
1897
|
*/
|
|
1541
1898
|
'inbound_address': string;
|
|
1542
|
-
/**
|
|
1543
|
-
* generated memo for the swap
|
|
1544
|
-
* @type {string}
|
|
1545
|
-
* @memberof QuoteSwapResponse
|
|
1546
|
-
*/
|
|
1547
|
-
'memo'?: string;
|
|
1548
|
-
/**
|
|
1549
|
-
* the minimum amount of the target asset the user can expect to receive after fees
|
|
1550
|
-
* @type {string}
|
|
1551
|
-
* @memberof QuoteSwapResponse
|
|
1552
|
-
*/
|
|
1553
|
-
'expected_amount_out': string;
|
|
1554
1899
|
/**
|
|
1555
1900
|
* the approximate number of source chain blocks required before processing
|
|
1556
1901
|
* @type {number}
|
|
@@ -1582,7 +1927,7 @@ export interface QuoteSwapResponse {
|
|
|
1582
1927
|
*/
|
|
1583
1928
|
'fees': QuoteFees;
|
|
1584
1929
|
/**
|
|
1585
|
-
* the swap slippage in basis points
|
|
1930
|
+
* the total swap slippage in basis points
|
|
1586
1931
|
* @type {number}
|
|
1587
1932
|
* @memberof QuoteSwapResponse
|
|
1588
1933
|
*/
|
|
@@ -1617,6 +1962,18 @@ export interface QuoteSwapResponse {
|
|
|
1617
1962
|
* @memberof QuoteSwapResponse
|
|
1618
1963
|
*/
|
|
1619
1964
|
'dust_threshold'?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* generated memo for the swap
|
|
1967
|
+
* @type {string}
|
|
1968
|
+
* @memberof QuoteSwapResponse
|
|
1969
|
+
*/
|
|
1970
|
+
'memo'?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* the amount of the target asset the user can expect to receive after fees
|
|
1973
|
+
* @type {string}
|
|
1974
|
+
* @memberof QuoteSwapResponse
|
|
1975
|
+
*/
|
|
1976
|
+
'expected_amount_out': string;
|
|
1620
1977
|
}
|
|
1621
1978
|
/**
|
|
1622
1979
|
*
|
|
@@ -3671,6 +4028,32 @@ export declare class QueueApi extends BaseAPI {
|
|
|
3671
4028
|
* @export
|
|
3672
4029
|
*/
|
|
3673
4030
|
export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
|
|
4031
|
+
/**
|
|
4032
|
+
* Provide a quote estimate for the provided loan close.
|
|
4033
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4034
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
4035
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4036
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
4037
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4038
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4039
|
+
* @param {*} [options] Override http request option.
|
|
4040
|
+
* @throws {RequiredError}
|
|
4041
|
+
*/
|
|
4042
|
+
quoteloanclose: (height?: number | undefined, asset?: string | undefined, amount?: number | undefined, loanAsset?: string | undefined, loanOwner?: string | undefined, minOut?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4043
|
+
/**
|
|
4044
|
+
* Provide a quote estimate for the provided loan open.
|
|
4045
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4046
|
+
* @param {string} [asset] the collateral asset
|
|
4047
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4048
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4049
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
4050
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4051
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4052
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4053
|
+
* @param {*} [options] Override http request option.
|
|
4054
|
+
* @throws {RequiredError}
|
|
4055
|
+
*/
|
|
4056
|
+
quoteloanopen: (height?: number | undefined, asset?: string | undefined, amount?: number | undefined, targetAsset?: string | undefined, destination?: string | undefined, minOut?: string | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3674
4057
|
/**
|
|
3675
4058
|
* Provide a quote estimate for the provided saver deposit.
|
|
3676
4059
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -3711,6 +4094,32 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration |
|
|
|
3711
4094
|
* @export
|
|
3712
4095
|
*/
|
|
3713
4096
|
export declare const QuoteApiFp: (configuration?: Configuration | undefined) => {
|
|
4097
|
+
/**
|
|
4098
|
+
* Provide a quote estimate for the provided loan close.
|
|
4099
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4100
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
4101
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4102
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
4103
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4104
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4105
|
+
* @param {*} [options] Override http request option.
|
|
4106
|
+
* @throws {RequiredError}
|
|
4107
|
+
*/
|
|
4108
|
+
quoteloanclose(height?: number | undefined, asset?: string | undefined, amount?: number | undefined, loanAsset?: string | undefined, loanOwner?: string | undefined, minOut?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteLoanCloseResponse>>;
|
|
4109
|
+
/**
|
|
4110
|
+
* Provide a quote estimate for the provided loan open.
|
|
4111
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4112
|
+
* @param {string} [asset] the collateral asset
|
|
4113
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4114
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4115
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
4116
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4117
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4118
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4119
|
+
* @param {*} [options] Override http request option.
|
|
4120
|
+
* @throws {RequiredError}
|
|
4121
|
+
*/
|
|
4122
|
+
quoteloanopen(height?: number | undefined, asset?: string | undefined, amount?: number | undefined, targetAsset?: string | undefined, destination?: string | undefined, minOut?: string | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteLoanOpenResponse>>;
|
|
3714
4123
|
/**
|
|
3715
4124
|
* Provide a quote estimate for the provided saver deposit.
|
|
3716
4125
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -3751,6 +4160,32 @@ export declare const QuoteApiFp: (configuration?: Configuration | undefined) =>
|
|
|
3751
4160
|
* @export
|
|
3752
4161
|
*/
|
|
3753
4162
|
export declare const QuoteApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
|
|
4163
|
+
/**
|
|
4164
|
+
* Provide a quote estimate for the provided loan close.
|
|
4165
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4166
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
4167
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4168
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
4169
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4170
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4171
|
+
* @param {*} [options] Override http request option.
|
|
4172
|
+
* @throws {RequiredError}
|
|
4173
|
+
*/
|
|
4174
|
+
quoteloanclose(height?: number | undefined, asset?: string | undefined, amount?: number | undefined, loanAsset?: string | undefined, loanOwner?: string | undefined, minOut?: string | undefined, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
|
|
4175
|
+
/**
|
|
4176
|
+
* Provide a quote estimate for the provided loan open.
|
|
4177
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4178
|
+
* @param {string} [asset] the collateral asset
|
|
4179
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4180
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4181
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
4182
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4183
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4184
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4185
|
+
* @param {*} [options] Override http request option.
|
|
4186
|
+
* @throws {RequiredError}
|
|
4187
|
+
*/
|
|
4188
|
+
quoteloanopen(height?: number | undefined, asset?: string | undefined, amount?: number | undefined, targetAsset?: string | undefined, destination?: string | undefined, minOut?: string | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteLoanOpenResponse>;
|
|
3754
4189
|
/**
|
|
3755
4190
|
* Provide a quote estimate for the provided saver deposit.
|
|
3756
4191
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -3793,6 +4228,34 @@ export declare const QuoteApiFactory: (configuration?: Configuration | undefined
|
|
|
3793
4228
|
* @extends {BaseAPI}
|
|
3794
4229
|
*/
|
|
3795
4230
|
export declare class QuoteApi extends BaseAPI {
|
|
4231
|
+
/**
|
|
4232
|
+
* Provide a quote estimate for the provided loan close.
|
|
4233
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4234
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
4235
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
4236
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
4237
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
4238
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4239
|
+
* @param {*} [options] Override http request option.
|
|
4240
|
+
* @throws {RequiredError}
|
|
4241
|
+
* @memberof QuoteApi
|
|
4242
|
+
*/
|
|
4243
|
+
quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
|
|
4244
|
+
/**
|
|
4245
|
+
* Provide a quote estimate for the provided loan open.
|
|
4246
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4247
|
+
* @param {string} [asset] the collateral asset
|
|
4248
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
4249
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
4250
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
4251
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
4252
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4253
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4254
|
+
* @param {*} [options] Override http request option.
|
|
4255
|
+
* @throws {RequiredError}
|
|
4256
|
+
* @memberof QuoteApi
|
|
4257
|
+
*/
|
|
4258
|
+
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>>;
|
|
3796
4259
|
/**
|
|
3797
4260
|
* Provide a quote estimate for the provided saver deposit.
|
|
3798
4261
|
* @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.108.3
|
|
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.108.3
|
|
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.108.3
|
|
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.108.3
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.esm.js
CHANGED
|
@@ -2273,6 +2273,110 @@ class QueueApi extends BaseAPI {
|
|
|
2273
2273
|
*/
|
|
2274
2274
|
const QuoteApiAxiosParamCreator = function (configuration) {
|
|
2275
2275
|
return {
|
|
2276
|
+
/**
|
|
2277
|
+
* Provide a quote estimate for the provided loan close.
|
|
2278
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2279
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2280
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2281
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2282
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2283
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2284
|
+
* @param {*} [options] Override http request option.
|
|
2285
|
+
* @throws {RequiredError}
|
|
2286
|
+
*/
|
|
2287
|
+
quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2288
|
+
const localVarPath = `/thorchain/quote/loan/close`;
|
|
2289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2291
|
+
let baseOptions;
|
|
2292
|
+
if (configuration) {
|
|
2293
|
+
baseOptions = configuration.baseOptions;
|
|
2294
|
+
}
|
|
2295
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2296
|
+
const localVarHeaderParameter = {};
|
|
2297
|
+
const localVarQueryParameter = {};
|
|
2298
|
+
if (height !== undefined) {
|
|
2299
|
+
localVarQueryParameter['height'] = height;
|
|
2300
|
+
}
|
|
2301
|
+
if (asset !== undefined) {
|
|
2302
|
+
localVarQueryParameter['asset'] = asset;
|
|
2303
|
+
}
|
|
2304
|
+
if (amount !== undefined) {
|
|
2305
|
+
localVarQueryParameter['amount'] = amount;
|
|
2306
|
+
}
|
|
2307
|
+
if (loanAsset !== undefined) {
|
|
2308
|
+
localVarQueryParameter['loan_asset'] = loanAsset;
|
|
2309
|
+
}
|
|
2310
|
+
if (loanOwner !== undefined) {
|
|
2311
|
+
localVarQueryParameter['loan_owner'] = loanOwner;
|
|
2312
|
+
}
|
|
2313
|
+
if (minOut !== undefined) {
|
|
2314
|
+
localVarQueryParameter['min_out'] = minOut;
|
|
2315
|
+
}
|
|
2316
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2317
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2318
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2319
|
+
return {
|
|
2320
|
+
url: toPathString(localVarUrlObj),
|
|
2321
|
+
options: localVarRequestOptions,
|
|
2322
|
+
};
|
|
2323
|
+
}),
|
|
2324
|
+
/**
|
|
2325
|
+
* Provide a quote estimate for the provided loan open.
|
|
2326
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2327
|
+
* @param {string} [asset] the collateral asset
|
|
2328
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2329
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2330
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2331
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2332
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2333
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2334
|
+
* @param {*} [options] Override http request option.
|
|
2335
|
+
* @throws {RequiredError}
|
|
2336
|
+
*/
|
|
2337
|
+
quoteloanopen: (height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2338
|
+
const localVarPath = `/thorchain/quote/loan/open`;
|
|
2339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2341
|
+
let baseOptions;
|
|
2342
|
+
if (configuration) {
|
|
2343
|
+
baseOptions = configuration.baseOptions;
|
|
2344
|
+
}
|
|
2345
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2346
|
+
const localVarHeaderParameter = {};
|
|
2347
|
+
const localVarQueryParameter = {};
|
|
2348
|
+
if (height !== undefined) {
|
|
2349
|
+
localVarQueryParameter['height'] = height;
|
|
2350
|
+
}
|
|
2351
|
+
if (asset !== undefined) {
|
|
2352
|
+
localVarQueryParameter['asset'] = asset;
|
|
2353
|
+
}
|
|
2354
|
+
if (amount !== undefined) {
|
|
2355
|
+
localVarQueryParameter['amount'] = amount;
|
|
2356
|
+
}
|
|
2357
|
+
if (targetAsset !== undefined) {
|
|
2358
|
+
localVarQueryParameter['target_asset'] = targetAsset;
|
|
2359
|
+
}
|
|
2360
|
+
if (destination !== undefined) {
|
|
2361
|
+
localVarQueryParameter['destination'] = destination;
|
|
2362
|
+
}
|
|
2363
|
+
if (minOut !== undefined) {
|
|
2364
|
+
localVarQueryParameter['min_out'] = minOut;
|
|
2365
|
+
}
|
|
2366
|
+
if (affiliateBps !== undefined) {
|
|
2367
|
+
localVarQueryParameter['affiliate_bps'] = affiliateBps;
|
|
2368
|
+
}
|
|
2369
|
+
if (affiliate !== undefined) {
|
|
2370
|
+
localVarQueryParameter['affiliate'] = affiliate;
|
|
2371
|
+
}
|
|
2372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2374
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2375
|
+
return {
|
|
2376
|
+
url: toPathString(localVarUrlObj),
|
|
2377
|
+
options: localVarRequestOptions,
|
|
2378
|
+
};
|
|
2379
|
+
}),
|
|
2276
2380
|
/**
|
|
2277
2381
|
* Provide a quote estimate for the provided saver deposit.
|
|
2278
2382
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2418,6 +2522,42 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2418
2522
|
const QuoteApiFp = function (configuration) {
|
|
2419
2523
|
const localVarAxiosParamCreator = QuoteApiAxiosParamCreator(configuration);
|
|
2420
2524
|
return {
|
|
2525
|
+
/**
|
|
2526
|
+
* Provide a quote estimate for the provided loan close.
|
|
2527
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2528
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2529
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2530
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2531
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2532
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
*/
|
|
2536
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
|
|
2539
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2540
|
+
});
|
|
2541
|
+
},
|
|
2542
|
+
/**
|
|
2543
|
+
* Provide a quote estimate for the provided loan open.
|
|
2544
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2545
|
+
* @param {string} [asset] the collateral asset
|
|
2546
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2547
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2548
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2549
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2550
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2551
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2552
|
+
* @param {*} [options] Override http request option.
|
|
2553
|
+
* @throws {RequiredError}
|
|
2554
|
+
*/
|
|
2555
|
+
quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2556
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2557
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options);
|
|
2558
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2559
|
+
});
|
|
2560
|
+
},
|
|
2421
2561
|
/**
|
|
2422
2562
|
* Provide a quote estimate for the provided saver deposit.
|
|
2423
2563
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2476,6 +2616,36 @@ const QuoteApiFp = function (configuration) {
|
|
|
2476
2616
|
const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
2477
2617
|
const localVarFp = QuoteApiFp(configuration);
|
|
2478
2618
|
return {
|
|
2619
|
+
/**
|
|
2620
|
+
* Provide a quote estimate for the provided loan close.
|
|
2621
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2622
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2623
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2624
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2625
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2626
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2627
|
+
* @param {*} [options] Override http request option.
|
|
2628
|
+
* @throws {RequiredError}
|
|
2629
|
+
*/
|
|
2630
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2631
|
+
return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2632
|
+
},
|
|
2633
|
+
/**
|
|
2634
|
+
* Provide a quote estimate for the provided loan open.
|
|
2635
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2636
|
+
* @param {string} [asset] the collateral asset
|
|
2637
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2638
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2639
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2640
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2641
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2642
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
*/
|
|
2646
|
+
quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2647
|
+
return localVarFp.quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2648
|
+
},
|
|
2479
2649
|
/**
|
|
2480
2650
|
* Provide a quote estimate for the provided saver deposit.
|
|
2481
2651
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2525,6 +2695,38 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2525
2695
|
* @extends {BaseAPI}
|
|
2526
2696
|
*/
|
|
2527
2697
|
class QuoteApi extends BaseAPI {
|
|
2698
|
+
/**
|
|
2699
|
+
* Provide a quote estimate for the provided loan close.
|
|
2700
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2701
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2702
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2703
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2704
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2705
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2706
|
+
* @param {*} [options] Override http request option.
|
|
2707
|
+
* @throws {RequiredError}
|
|
2708
|
+
* @memberof QuoteApi
|
|
2709
|
+
*/
|
|
2710
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2711
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* Provide a quote estimate for the provided loan open.
|
|
2715
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2716
|
+
* @param {string} [asset] the collateral asset
|
|
2717
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2718
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2719
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2720
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2721
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2722
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2723
|
+
* @param {*} [options] Override http request option.
|
|
2724
|
+
* @throws {RequiredError}
|
|
2725
|
+
* @memberof QuoteApi
|
|
2726
|
+
*/
|
|
2727
|
+
quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2728
|
+
return QuoteApiFp(this.configuration).quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2729
|
+
}
|
|
2528
2730
|
/**
|
|
2529
2731
|
* Provide a quote estimate for the provided saver deposit.
|
|
2530
2732
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -3774,7 +3976,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3774
3976
|
* Thornode API
|
|
3775
3977
|
* Thornode REST API.
|
|
3776
3978
|
*
|
|
3777
|
-
* The version of the OpenAPI document: 1.
|
|
3979
|
+
* The version of the OpenAPI document: 1.108.3
|
|
3778
3980
|
* Contact: devs@thorchain.org
|
|
3779
3981
|
*
|
|
3780
3982
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.js
CHANGED
|
@@ -2281,6 +2281,110 @@ class QueueApi extends BaseAPI {
|
|
|
2281
2281
|
*/
|
|
2282
2282
|
const QuoteApiAxiosParamCreator = function (configuration) {
|
|
2283
2283
|
return {
|
|
2284
|
+
/**
|
|
2285
|
+
* Provide a quote estimate for the provided loan close.
|
|
2286
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2287
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2288
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2289
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2290
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2291
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2292
|
+
* @param {*} [options] Override http request option.
|
|
2293
|
+
* @throws {RequiredError}
|
|
2294
|
+
*/
|
|
2295
|
+
quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2296
|
+
const localVarPath = `/thorchain/quote/loan/close`;
|
|
2297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2299
|
+
let baseOptions;
|
|
2300
|
+
if (configuration) {
|
|
2301
|
+
baseOptions = configuration.baseOptions;
|
|
2302
|
+
}
|
|
2303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2304
|
+
const localVarHeaderParameter = {};
|
|
2305
|
+
const localVarQueryParameter = {};
|
|
2306
|
+
if (height !== undefined) {
|
|
2307
|
+
localVarQueryParameter['height'] = height;
|
|
2308
|
+
}
|
|
2309
|
+
if (asset !== undefined) {
|
|
2310
|
+
localVarQueryParameter['asset'] = asset;
|
|
2311
|
+
}
|
|
2312
|
+
if (amount !== undefined) {
|
|
2313
|
+
localVarQueryParameter['amount'] = amount;
|
|
2314
|
+
}
|
|
2315
|
+
if (loanAsset !== undefined) {
|
|
2316
|
+
localVarQueryParameter['loan_asset'] = loanAsset;
|
|
2317
|
+
}
|
|
2318
|
+
if (loanOwner !== undefined) {
|
|
2319
|
+
localVarQueryParameter['loan_owner'] = loanOwner;
|
|
2320
|
+
}
|
|
2321
|
+
if (minOut !== undefined) {
|
|
2322
|
+
localVarQueryParameter['min_out'] = minOut;
|
|
2323
|
+
}
|
|
2324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2326
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2327
|
+
return {
|
|
2328
|
+
url: toPathString(localVarUrlObj),
|
|
2329
|
+
options: localVarRequestOptions,
|
|
2330
|
+
};
|
|
2331
|
+
}),
|
|
2332
|
+
/**
|
|
2333
|
+
* Provide a quote estimate for the provided loan open.
|
|
2334
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2335
|
+
* @param {string} [asset] the collateral asset
|
|
2336
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2337
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2338
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2339
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2340
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2341
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2342
|
+
* @param {*} [options] Override http request option.
|
|
2343
|
+
* @throws {RequiredError}
|
|
2344
|
+
*/
|
|
2345
|
+
quoteloanopen: (height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2346
|
+
const localVarPath = `/thorchain/quote/loan/open`;
|
|
2347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2348
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2349
|
+
let baseOptions;
|
|
2350
|
+
if (configuration) {
|
|
2351
|
+
baseOptions = configuration.baseOptions;
|
|
2352
|
+
}
|
|
2353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2354
|
+
const localVarHeaderParameter = {};
|
|
2355
|
+
const localVarQueryParameter = {};
|
|
2356
|
+
if (height !== undefined) {
|
|
2357
|
+
localVarQueryParameter['height'] = height;
|
|
2358
|
+
}
|
|
2359
|
+
if (asset !== undefined) {
|
|
2360
|
+
localVarQueryParameter['asset'] = asset;
|
|
2361
|
+
}
|
|
2362
|
+
if (amount !== undefined) {
|
|
2363
|
+
localVarQueryParameter['amount'] = amount;
|
|
2364
|
+
}
|
|
2365
|
+
if (targetAsset !== undefined) {
|
|
2366
|
+
localVarQueryParameter['target_asset'] = targetAsset;
|
|
2367
|
+
}
|
|
2368
|
+
if (destination !== undefined) {
|
|
2369
|
+
localVarQueryParameter['destination'] = destination;
|
|
2370
|
+
}
|
|
2371
|
+
if (minOut !== undefined) {
|
|
2372
|
+
localVarQueryParameter['min_out'] = minOut;
|
|
2373
|
+
}
|
|
2374
|
+
if (affiliateBps !== undefined) {
|
|
2375
|
+
localVarQueryParameter['affiliate_bps'] = affiliateBps;
|
|
2376
|
+
}
|
|
2377
|
+
if (affiliate !== undefined) {
|
|
2378
|
+
localVarQueryParameter['affiliate'] = affiliate;
|
|
2379
|
+
}
|
|
2380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2382
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2383
|
+
return {
|
|
2384
|
+
url: toPathString(localVarUrlObj),
|
|
2385
|
+
options: localVarRequestOptions,
|
|
2386
|
+
};
|
|
2387
|
+
}),
|
|
2284
2388
|
/**
|
|
2285
2389
|
* Provide a quote estimate for the provided saver deposit.
|
|
2286
2390
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2426,6 +2530,42 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2426
2530
|
const QuoteApiFp = function (configuration) {
|
|
2427
2531
|
const localVarAxiosParamCreator = QuoteApiAxiosParamCreator(configuration);
|
|
2428
2532
|
return {
|
|
2533
|
+
/**
|
|
2534
|
+
* Provide a quote estimate for the provided loan close.
|
|
2535
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2536
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2537
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2538
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2539
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2540
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2541
|
+
* @param {*} [options] Override http request option.
|
|
2542
|
+
* @throws {RequiredError}
|
|
2543
|
+
*/
|
|
2544
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2546
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
|
|
2547
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2548
|
+
});
|
|
2549
|
+
},
|
|
2550
|
+
/**
|
|
2551
|
+
* Provide a quote estimate for the provided loan open.
|
|
2552
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2553
|
+
* @param {string} [asset] the collateral asset
|
|
2554
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2555
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2556
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2557
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2558
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2559
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2560
|
+
* @param {*} [options] Override http request option.
|
|
2561
|
+
* @throws {RequiredError}
|
|
2562
|
+
*/
|
|
2563
|
+
quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2565
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options);
|
|
2566
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2567
|
+
});
|
|
2568
|
+
},
|
|
2429
2569
|
/**
|
|
2430
2570
|
* Provide a quote estimate for the provided saver deposit.
|
|
2431
2571
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2484,6 +2624,36 @@ const QuoteApiFp = function (configuration) {
|
|
|
2484
2624
|
const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
2485
2625
|
const localVarFp = QuoteApiFp(configuration);
|
|
2486
2626
|
return {
|
|
2627
|
+
/**
|
|
2628
|
+
* Provide a quote estimate for the provided loan close.
|
|
2629
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2630
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2631
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2632
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2633
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2634
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2635
|
+
* @param {*} [options] Override http request option.
|
|
2636
|
+
* @throws {RequiredError}
|
|
2637
|
+
*/
|
|
2638
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2639
|
+
return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2640
|
+
},
|
|
2641
|
+
/**
|
|
2642
|
+
* Provide a quote estimate for the provided loan open.
|
|
2643
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2644
|
+
* @param {string} [asset] the collateral asset
|
|
2645
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2646
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2647
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2648
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2649
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2650
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2651
|
+
* @param {*} [options] Override http request option.
|
|
2652
|
+
* @throws {RequiredError}
|
|
2653
|
+
*/
|
|
2654
|
+
quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2655
|
+
return localVarFp.quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2656
|
+
},
|
|
2487
2657
|
/**
|
|
2488
2658
|
* Provide a quote estimate for the provided saver deposit.
|
|
2489
2659
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2533,6 +2703,38 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2533
2703
|
* @extends {BaseAPI}
|
|
2534
2704
|
*/
|
|
2535
2705
|
class QuoteApi extends BaseAPI {
|
|
2706
|
+
/**
|
|
2707
|
+
* Provide a quote estimate for the provided loan close.
|
|
2708
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2709
|
+
* @param {string} [asset] the asset used to repay the loan
|
|
2710
|
+
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2711
|
+
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2712
|
+
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2713
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2714
|
+
* @param {*} [options] Override http request option.
|
|
2715
|
+
* @throws {RequiredError}
|
|
2716
|
+
* @memberof QuoteApi
|
|
2717
|
+
*/
|
|
2718
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2719
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2720
|
+
}
|
|
2721
|
+
/**
|
|
2722
|
+
* Provide a quote estimate for the provided loan open.
|
|
2723
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2724
|
+
* @param {string} [asset] the collateral asset
|
|
2725
|
+
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2726
|
+
* @param {string} [targetAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2727
|
+
* @param {string} [destination] the destination address, required to generate memo
|
|
2728
|
+
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2729
|
+
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2730
|
+
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2731
|
+
* @param {*} [options] Override http request option.
|
|
2732
|
+
* @throws {RequiredError}
|
|
2733
|
+
* @memberof QuoteApi
|
|
2734
|
+
*/
|
|
2735
|
+
quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2736
|
+
return QuoteApiFp(this.configuration).quoteloanopen(height, asset, amount, targetAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2737
|
+
}
|
|
2536
2738
|
/**
|
|
2537
2739
|
* Provide a quote estimate for the provided saver deposit.
|
|
2538
2740
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -3782,7 +3984,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3782
3984
|
* Thornode API
|
|
3783
3985
|
* Thornode REST API.
|
|
3784
3986
|
*
|
|
3785
|
-
* The version of the OpenAPI document: 1.
|
|
3987
|
+
* The version of the OpenAPI document: 1.108.3
|
|
3786
3988
|
* Contact: devs@thorchain.org
|
|
3787
3989
|
*
|
|
3788
3990
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thornode",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thornode module that exposes all thornode functions using openapi-generator-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublishOnly": "yarn run build",
|
|
31
31
|
"test": "jest --passWithNoTests",
|
|
32
32
|
"generate:types": "yarn clean:types:thornode && yarn generate:types:thornode",
|
|
33
|
-
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.
|
|
33
|
+
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.108.3/openapi/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec --generate-alias-as-model",
|
|
34
34
|
"clean:types:thornode": "rimraf ./src/generated/thornodeApi"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|