@xchainjs/xchain-thornode 0.2.1 → 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.
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.105.0
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,147 @@ 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
+ }
119
+ /**
120
+ *
121
+ * @export
122
+ * @interface Borrower
123
+ */
124
+ export interface Borrower {
125
+ /**
126
+ *
127
+ * @type {string}
128
+ * @memberof Borrower
129
+ */
130
+ 'owner': string;
131
+ /**
132
+ *
133
+ * @type {string}
134
+ * @memberof Borrower
135
+ */
136
+ 'asset': string;
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof Borrower
141
+ */
142
+ 'debt_up': string;
143
+ /**
144
+ *
145
+ * @type {string}
146
+ * @memberof Borrower
147
+ */
148
+ 'debt_down': string;
149
+ /**
150
+ *
151
+ * @type {string}
152
+ * @memberof Borrower
153
+ */
154
+ 'collateral_up': string;
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof Borrower
159
+ */
160
+ 'collateral_down': string;
161
+ /**
162
+ *
163
+ * @type {number}
164
+ * @memberof Borrower
165
+ */
166
+ 'last_open_height': number;
167
+ /**
168
+ *
169
+ * @type {number}
170
+ * @memberof Borrower
171
+ */
172
+ 'last_repay_height': number;
173
+ }
174
+ /**
175
+ *
176
+ * @export
177
+ * @interface BorrowersResponse
178
+ */
179
+ export interface BorrowersResponse extends Array<Borrower> {
180
+ }
40
181
  /**
41
182
  *
42
183
  * @export
@@ -204,6 +345,44 @@ export interface InboundAddress {
204
345
  */
205
346
  export interface InboundAddressesResponse extends Array<InboundAddress> {
206
347
  }
348
+ /**
349
+ *
350
+ * @export
351
+ * @interface InvariantResponse
352
+ */
353
+ export interface InvariantResponse {
354
+ /**
355
+ * The name of the invariant.
356
+ * @type {string}
357
+ * @memberof InvariantResponse
358
+ */
359
+ 'invariant': string;
360
+ /**
361
+ * Returns true if the invariant is broken.
362
+ * @type {boolean}
363
+ * @memberof InvariantResponse
364
+ */
365
+ 'broken': boolean;
366
+ /**
367
+ * Informative message about the invariant result.
368
+ * @type {string}
369
+ * @memberof InvariantResponse
370
+ */
371
+ 'msg': string;
372
+ }
373
+ /**
374
+ *
375
+ * @export
376
+ * @interface InvariantsResponse
377
+ */
378
+ export interface InvariantsResponse {
379
+ /**
380
+ *
381
+ * @type {Array<string>}
382
+ * @memberof InvariantsResponse
383
+ */
384
+ 'invariants'?: Array<string>;
385
+ }
207
386
  /**
208
387
  *
209
388
  * @export
@@ -573,6 +752,79 @@ export interface MimirVote {
573
752
  */
574
753
  'signer'?: string;
575
754
  }
755
+ /**
756
+ *
757
+ * @export
758
+ * @interface MsgSwap
759
+ */
760
+ export interface MsgSwap {
761
+ /**
762
+ *
763
+ * @type {Tx}
764
+ * @memberof MsgSwap
765
+ */
766
+ 'tx': Tx;
767
+ /**
768
+ * the asset to be swapped to
769
+ * @type {string}
770
+ * @memberof MsgSwap
771
+ */
772
+ 'target_asset': string;
773
+ /**
774
+ * the destination address to receive the swap output
775
+ * @type {string}
776
+ * @memberof MsgSwap
777
+ */
778
+ 'destination'?: string;
779
+ /**
780
+ * the minimum amount of output asset to receive (else cancelling and refunding the swap)
781
+ * @type {string}
782
+ * @memberof MsgSwap
783
+ */
784
+ 'trade_target': string;
785
+ /**
786
+ * the affiliate address which will receive any affiliate fee
787
+ * @type {string}
788
+ * @memberof MsgSwap
789
+ */
790
+ 'affiliate_address'?: string;
791
+ /**
792
+ * the affiliate fee in basis points
793
+ * @type {string}
794
+ * @memberof MsgSwap
795
+ */
796
+ 'affiliate_basis_points': string;
797
+ /**
798
+ * the signer (sender) of the transaction
799
+ * @type {string}
800
+ * @memberof MsgSwap
801
+ */
802
+ 'signer'?: string;
803
+ /**
804
+ * the contract address if an aggregator is specified for a non-THORChain SwapOut
805
+ * @type {string}
806
+ * @memberof MsgSwap
807
+ */
808
+ 'aggregator'?: string;
809
+ /**
810
+ * the desired output asset of the aggregator SwapOut
811
+ * @type {string}
812
+ * @memberof MsgSwap
813
+ */
814
+ 'aggregator_target_address'?: string;
815
+ /**
816
+ * the minimum amount of SwapOut asset to receive (else cancelling the SwapOut and receiving THORChain\'s output)
817
+ * @type {string}
818
+ * @memberof MsgSwap
819
+ */
820
+ 'aggregator_target_limit'?: string;
821
+ /**
822
+ * 0 if a market order (immediately completed or refunded), 1 if a limit order (held until fulfillable)
823
+ * @type {number}
824
+ * @memberof MsgSwap
825
+ */
826
+ 'order_type'?: number;
827
+ }
576
828
  /**
577
829
  *
578
830
  * @export
@@ -615,6 +867,24 @@ export interface NetworkResponse {
615
867
  * @memberof NetworkResponse
616
868
  */
617
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;
618
888
  }
619
889
  /**
620
890
  *
@@ -646,6 +916,12 @@ export interface Node {
646
916
  * @memberof Node
647
917
  */
648
918
  'validator_cons_pub_key': string;
919
+ /**
920
+ * the P2PID (:6040/p2pid endpoint) of the node
921
+ * @type {string}
922
+ * @memberof Node
923
+ */
924
+ 'peer_id': string;
649
925
  /**
650
926
  * the block height at which the node became active
651
927
  * @type {number}
@@ -902,11 +1178,17 @@ export interface ObservedTx {
902
1178
  */
903
1179
  'out_hashes'?: Array<string>;
904
1180
  /**
905
- * the block height of the observed transaction on the source chain, not provided if chain is THOR
1181
+ * same as external_observed_height, to be deprecated in favour of external_observed_height
906
1182
  * @type {number}
907
1183
  * @memberof ObservedTx
908
1184
  */
909
1185
  'block_height'?: number;
1186
+ /**
1187
+ * the block height on the external source chain when the transaction was observed, not provided if chain is THOR
1188
+ * @type {number}
1189
+ * @memberof ObservedTx
1190
+ */
1191
+ 'external_observed_height'?: number;
910
1192
  /**
911
1193
  *
912
1194
  * @type {Array<string>}
@@ -926,11 +1208,17 @@ export interface ObservedTx {
926
1208
  */
927
1209
  'keysign_ms'?: number;
928
1210
  /**
929
- * the finalised height of the observed transaction on the source chain, not provided if chain is THOR
1211
+ * same as external_confirmation_delay_height, to be deprecated in favour of external_confirmation_delay_height
930
1212
  * @type {number}
931
1213
  * @memberof ObservedTx
932
1214
  */
933
1215
  'finalise_height'?: number;
1216
+ /**
1217
+ * the block height on the external source chain when confirmation counting will be complete, not provided if chain is THOR
1218
+ * @type {number}
1219
+ * @memberof ObservedTx
1220
+ */
1221
+ 'external_confirmation_delay_height'?: number;
934
1222
  /**
935
1223
  * the outbound aggregator to use, will also match a suffix
936
1224
  * @type {string}
@@ -1108,6 +1396,12 @@ export interface Pool {
1108
1396
  * @memberof Pool
1109
1397
  */
1110
1398
  'synth_supply_remaining': string;
1399
+ /**
1400
+ * the amount of collateral collects for loans
1401
+ * @type {string}
1402
+ * @memberof Pool
1403
+ */
1404
+ 'loan_collateral': string;
1111
1405
  }
1112
1406
  /**
1113
1407
  *
@@ -1164,44 +1458,250 @@ export interface QuoteFees {
1164
1458
  * @type {string}
1165
1459
  * @memberof QuoteFees
1166
1460
  */
1167
- 'affiliate': string;
1461
+ 'affiliate'?: string;
1168
1462
  /**
1169
1463
  *
1170
1464
  * @type {string}
1171
1465
  * @memberof QuoteFees
1172
1466
  */
1173
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;
1174
1480
  }
1175
1481
  /**
1176
1482
  *
1177
1483
  * @export
1178
- * @interface QuoteSaverDepositResponse
1484
+ * @interface QuoteLoanCloseResponse
1179
1485
  */
1180
- export interface QuoteSaverDepositResponse {
1486
+ export interface QuoteLoanCloseResponse {
1181
1487
  /**
1182
1488
  * the inbound address for the transaction on the source chain
1183
1489
  * @type {string}
1184
- * @memberof QuoteSaverDepositResponse
1490
+ * @memberof QuoteLoanCloseResponse
1185
1491
  */
1186
1492
  'inbound_address': string;
1187
1493
  /**
1188
- * generated memo for the deposit
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
1189
1531
  * @type {string}
1190
- * @memberof QuoteSaverDepositResponse
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
1191
1563
  */
1192
1564
  'memo': string;
1193
1565
  /**
1194
- * migrate to expected_amount_deposit (will be deprecated in v1.104)
1566
+ * the amount of collateral asset the user can expect to receive after fees in 1e8 decimals
1195
1567
  * @type {string}
1196
- * @memberof QuoteSaverDepositResponse
1568
+ * @memberof QuoteLoanCloseResponse
1569
+ */
1570
+ 'expected_amount_out': string;
1571
+ /**
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
1197
1672
  */
1198
1673
  'expected_amount_out': string;
1199
1674
  /**
1200
- * the minimum amount of the target asset the user can expect to deposit after fees
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
1201
1701
  * @type {string}
1202
1702
  * @memberof QuoteSaverDepositResponse
1203
1703
  */
1204
- 'expected_amount_deposit'?: string;
1704
+ 'inbound_address': string;
1205
1705
  /**
1206
1706
  * the approximate number of source chain blocks required before processing
1207
1707
  * @type {number}
@@ -1214,6 +1714,18 @@ export interface QuoteSaverDepositResponse {
1214
1714
  * @memberof QuoteSaverDepositResponse
1215
1715
  */
1216
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;
1217
1729
  /**
1218
1730
  *
1219
1731
  * @type {QuoteFees}
@@ -1221,11 +1733,17 @@ export interface QuoteSaverDepositResponse {
1221
1733
  */
1222
1734
  'fees': QuoteFees;
1223
1735
  /**
1224
- * the swap slippage in basis points
1736
+ * the total swap slippage in basis points
1225
1737
  * @type {number}
1226
1738
  * @memberof QuoteSaverDepositResponse
1227
1739
  */
1228
1740
  'slippage_bps': number;
1741
+ /**
1742
+ * the EVM chain router contract address
1743
+ * @type {string}
1744
+ * @memberof QuoteSaverDepositResponse
1745
+ */
1746
+ 'router'?: string;
1229
1747
  /**
1230
1748
  * expiration timestamp in unix seconds
1231
1749
  * @type {number}
@@ -1250,6 +1768,24 @@ export interface QuoteSaverDepositResponse {
1250
1768
  * @memberof QuoteSaverDepositResponse
1251
1769
  */
1252
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;
1253
1789
  }
1254
1790
  /**
1255
1791
  *
@@ -1264,23 +1800,17 @@ export interface QuoteSaverWithdrawResponse {
1264
1800
  */
1265
1801
  'inbound_address': string;
1266
1802
  /**
1267
- * generated memo for the withdraw, the client can use this OR send the dust amount
1268
- * @type {string}
1269
- * @memberof QuoteSaverWithdrawResponse
1270
- */
1271
- 'memo': string;
1272
- /**
1273
- * the dust amount of the target asset the user should send to initialize the withdraw, the client can send this OR provide the memo
1274
- * @type {string}
1803
+ * the approximate number of source chain blocks required before processing
1804
+ * @type {number}
1275
1805
  * @memberof QuoteSaverWithdrawResponse
1276
1806
  */
1277
- 'dust_amount': string;
1807
+ 'inbound_confirmation_blocks'?: number;
1278
1808
  /**
1279
- * the minimum amount of the target asset the user can expect to withdraw after fees in 1e8 decimals
1280
- * @type {string}
1809
+ * the approximate seconds for block confirmations required before processing
1810
+ * @type {number}
1281
1811
  * @memberof QuoteSaverWithdrawResponse
1282
1812
  */
1283
- 'expected_amount_out': string;
1813
+ 'inbound_confirmation_seconds'?: number;
1284
1814
  /**
1285
1815
  * the number of thorchain blocks the outbound will be delayed
1286
1816
  * @type {number}
@@ -1300,11 +1830,17 @@ export interface QuoteSaverWithdrawResponse {
1300
1830
  */
1301
1831
  'fees': QuoteFees;
1302
1832
  /**
1303
- * the swap slippage in basis points
1833
+ * the total swap slippage in basis points
1304
1834
  * @type {number}
1305
1835
  * @memberof QuoteSaverWithdrawResponse
1306
1836
  */
1307
1837
  'slippage_bps': number;
1838
+ /**
1839
+ * the EVM chain router contract address
1840
+ * @type {string}
1841
+ * @memberof QuoteSaverWithdrawResponse
1842
+ */
1843
+ 'router'?: string;
1308
1844
  /**
1309
1845
  * expiration timestamp in unix seconds
1310
1846
  * @type {number}
@@ -1312,23 +1848,41 @@ export interface QuoteSaverWithdrawResponse {
1312
1848
  */
1313
1849
  'expiry': number;
1314
1850
  /**
1315
- * static warning message
1851
+ * static warning message
1852
+ * @type {string}
1853
+ * @memberof QuoteSaverWithdrawResponse
1854
+ */
1855
+ 'warning': string;
1856
+ /**
1857
+ * chain specific quote notes
1858
+ * @type {string}
1859
+ * @memberof QuoteSaverWithdrawResponse
1860
+ */
1861
+ 'notes': string;
1862
+ /**
1863
+ * 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.
1864
+ * @type {string}
1865
+ * @memberof QuoteSaverWithdrawResponse
1866
+ */
1867
+ 'dust_threshold'?: string;
1868
+ /**
1869
+ * generated memo for the withdraw, the client can use this OR send the dust amount
1316
1870
  * @type {string}
1317
1871
  * @memberof QuoteSaverWithdrawResponse
1318
1872
  */
1319
- 'warning': string;
1873
+ 'memo': string;
1320
1874
  /**
1321
- * chain specific quote notes
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
1322
1876
  * @type {string}
1323
1877
  * @memberof QuoteSaverWithdrawResponse
1324
1878
  */
1325
- 'notes': string;
1879
+ 'dust_amount': string;
1326
1880
  /**
1327
- * 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.
1881
+ * the amount of the target asset the user can expect to withdraw after fees in 1e8 decimals
1328
1882
  * @type {string}
1329
1883
  * @memberof QuoteSaverWithdrawResponse
1330
1884
  */
1331
- 'dust_threshold'?: string;
1885
+ 'expected_amount_out': string;
1332
1886
  }
1333
1887
  /**
1334
1888
  *
@@ -1342,18 +1896,6 @@ export interface QuoteSwapResponse {
1342
1896
  * @memberof QuoteSwapResponse
1343
1897
  */
1344
1898
  'inbound_address': string;
1345
- /**
1346
- * generated memo for the swap
1347
- * @type {string}
1348
- * @memberof QuoteSwapResponse
1349
- */
1350
- 'memo'?: string;
1351
- /**
1352
- * the minimum amount of the target asset the user can expect to receive after fees
1353
- * @type {string}
1354
- * @memberof QuoteSwapResponse
1355
- */
1356
- 'expected_amount_out': string;
1357
1899
  /**
1358
1900
  * the approximate number of source chain blocks required before processing
1359
1901
  * @type {number}
@@ -1385,7 +1927,7 @@ export interface QuoteSwapResponse {
1385
1927
  */
1386
1928
  'fees': QuoteFees;
1387
1929
  /**
1388
- * the swap slippage in basis points
1930
+ * the total swap slippage in basis points
1389
1931
  * @type {number}
1390
1932
  * @memberof QuoteSwapResponse
1391
1933
  */
@@ -1420,6 +1962,18 @@ export interface QuoteSwapResponse {
1420
1962
  * @memberof QuoteSwapResponse
1421
1963
  */
1422
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;
1423
1977
  }
1424
1978
  /**
1425
1979
  *
@@ -1490,6 +2044,13 @@ export interface SaversResponse extends Array<Saver> {
1490
2044
  */
1491
2045
  export interface ScheduledResponse extends Array<TxOutItem> {
1492
2046
  }
2047
+ /**
2048
+ *
2049
+ * @export
2050
+ * @interface SwapQueueResponse
2051
+ */
2052
+ export interface SwapQueueResponse extends Array<MsgSwap> {
2053
+ }
1493
2054
  /**
1494
2055
  *
1495
2056
  * @export
@@ -1701,7 +2262,7 @@ export interface TxDetailsResponse {
1701
2262
  */
1702
2263
  'reverted'?: boolean;
1703
2264
  /**
1704
- *
2265
+ * the thorchain height for which the outbound was scheduled
1705
2266
  * @type {number}
1706
2267
  * @memberof TxDetailsResponse
1707
2268
  */
@@ -1786,6 +2347,18 @@ export interface TxResponse {
1786
2347
  * @memberof TxResponse
1787
2348
  */
1788
2349
  'observed_tx'?: ObservedTx;
2350
+ /**
2351
+ * the thorchain height at which the outbound was finalised
2352
+ * @type {number}
2353
+ * @memberof TxResponse
2354
+ */
2355
+ 'finalised_height'?: number;
2356
+ /**
2357
+ * the thorchain height for which the outbound was scheduled
2358
+ * @type {number}
2359
+ * @memberof TxResponse
2360
+ */
2361
+ 'outbound_height'?: number;
1789
2362
  /**
1790
2363
  *
1791
2364
  * @type {TssKeysignMetric}
@@ -1854,7 +2427,7 @@ export interface TxSignersResponse {
1854
2427
  */
1855
2428
  'reverted'?: boolean;
1856
2429
  /**
1857
- *
2430
+ * the thorchain height for which the outbound was scheduled
1858
2431
  * @type {number}
1859
2432
  * @memberof TxSignersResponse
1860
2433
  */
@@ -2096,6 +2669,12 @@ export interface TxStatusResponsePlannedOutTxsInner {
2096
2669
  * @memberof TxStatusResponsePlannedOutTxsInner
2097
2670
  */
2098
2671
  'coin': Coin;
2672
+ /**
2673
+ * returns true if the planned transaction has a refund memo
2674
+ * @type {boolean}
2675
+ * @memberof TxStatusResponsePlannedOutTxsInner
2676
+ */
2677
+ 'refund': boolean;
2099
2678
  }
2100
2679
  /**
2101
2680
  *
@@ -2295,6 +2874,102 @@ export interface VersionResponse {
2295
2874
  */
2296
2875
  'querier': string;
2297
2876
  }
2877
+ /**
2878
+ * BorrowersApi - axios parameter creator
2879
+ * @export
2880
+ */
2881
+ export declare const BorrowersApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
2882
+ /**
2883
+ * Returns the borrower position given the pool and address.
2884
+ * @param {string} asset
2885
+ * @param {string} address
2886
+ * @param {number} [height] optional block height, defaults to current tip
2887
+ * @param {*} [options] Override http request option.
2888
+ * @throws {RequiredError}
2889
+ */
2890
+ borrower: (asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2891
+ /**
2892
+ * Returns all borrowers for the given pool.
2893
+ * @param {string} asset
2894
+ * @param {number} [height] optional block height, defaults to current tip
2895
+ * @param {*} [options] Override http request option.
2896
+ * @throws {RequiredError}
2897
+ */
2898
+ borrowers: (asset: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2899
+ };
2900
+ /**
2901
+ * BorrowersApi - functional programming interface
2902
+ * @export
2903
+ */
2904
+ export declare const BorrowersApiFp: (configuration?: Configuration | undefined) => {
2905
+ /**
2906
+ * Returns the borrower position given the pool and address.
2907
+ * @param {string} asset
2908
+ * @param {string} address
2909
+ * @param {number} [height] optional block height, defaults to current tip
2910
+ * @param {*} [options] Override http request option.
2911
+ * @throws {RequiredError}
2912
+ */
2913
+ borrower(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Borrower>>;
2914
+ /**
2915
+ * Returns all borrowers for the given pool.
2916
+ * @param {string} asset
2917
+ * @param {number} [height] optional block height, defaults to current tip
2918
+ * @param {*} [options] Override http request option.
2919
+ * @throws {RequiredError}
2920
+ */
2921
+ borrowers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BorrowersResponse>>;
2922
+ };
2923
+ /**
2924
+ * BorrowersApi - factory interface
2925
+ * @export
2926
+ */
2927
+ export declare const BorrowersApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
2928
+ /**
2929
+ * Returns the borrower position given the pool and address.
2930
+ * @param {string} asset
2931
+ * @param {string} address
2932
+ * @param {number} [height] optional block height, defaults to current tip
2933
+ * @param {*} [options] Override http request option.
2934
+ * @throws {RequiredError}
2935
+ */
2936
+ borrower(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<Borrower>;
2937
+ /**
2938
+ * Returns all borrowers for the given pool.
2939
+ * @param {string} asset
2940
+ * @param {number} [height] optional block height, defaults to current tip
2941
+ * @param {*} [options] Override http request option.
2942
+ * @throws {RequiredError}
2943
+ */
2944
+ borrowers(asset: string, height?: number | undefined, options?: any): AxiosPromise<BorrowersResponse>;
2945
+ };
2946
+ /**
2947
+ * BorrowersApi - object-oriented interface
2948
+ * @export
2949
+ * @class BorrowersApi
2950
+ * @extends {BaseAPI}
2951
+ */
2952
+ export declare class BorrowersApi extends BaseAPI {
2953
+ /**
2954
+ * Returns the borrower position given the pool and address.
2955
+ * @param {string} asset
2956
+ * @param {string} address
2957
+ * @param {number} [height] optional block height, defaults to current tip
2958
+ * @param {*} [options] Override http request option.
2959
+ * @throws {RequiredError}
2960
+ * @memberof BorrowersApi
2961
+ */
2962
+ borrower(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Borrower, any>>;
2963
+ /**
2964
+ * Returns all borrowers for the given pool.
2965
+ * @param {string} asset
2966
+ * @param {number} [height] optional block height, defaults to current tip
2967
+ * @param {*} [options] Override http request option.
2968
+ * @throws {RequiredError}
2969
+ * @memberof BorrowersApi
2970
+ */
2971
+ borrowers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BorrowersResponse, any>>;
2972
+ }
2298
2973
  /**
2299
2974
  * HealthApi - axios parameter creator
2300
2975
  * @export
@@ -2346,6 +3021,94 @@ export declare class HealthApi extends BaseAPI {
2346
3021
  */
2347
3022
  ping(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Ping, any>>;
2348
3023
  }
3024
+ /**
3025
+ * InvariantsApi - axios parameter creator
3026
+ * @export
3027
+ */
3028
+ export declare const InvariantsApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
3029
+ /**
3030
+ * Returns result of running the given invariant.
3031
+ * @param {string} invariant
3032
+ * @param {number} [height] optional block height, defaults to current tip
3033
+ * @param {*} [options] Override http request option.
3034
+ * @throws {RequiredError}
3035
+ */
3036
+ invariant: (invariant: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3037
+ /**
3038
+ * Returns a list of available invariants.
3039
+ * @param {number} [height] optional block height, defaults to current tip
3040
+ * @param {*} [options] Override http request option.
3041
+ * @throws {RequiredError}
3042
+ */
3043
+ invariants: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3044
+ };
3045
+ /**
3046
+ * InvariantsApi - functional programming interface
3047
+ * @export
3048
+ */
3049
+ export declare const InvariantsApiFp: (configuration?: Configuration | undefined) => {
3050
+ /**
3051
+ * Returns result of running the given invariant.
3052
+ * @param {string} invariant
3053
+ * @param {number} [height] optional block height, defaults to current tip
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ */
3057
+ invariant(invariant: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<InvariantResponse>>;
3058
+ /**
3059
+ * Returns a list of available invariants.
3060
+ * @param {number} [height] optional block height, defaults to current tip
3061
+ * @param {*} [options] Override http request option.
3062
+ * @throws {RequiredError}
3063
+ */
3064
+ invariants(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<InvariantsResponse>>;
3065
+ };
3066
+ /**
3067
+ * InvariantsApi - factory interface
3068
+ * @export
3069
+ */
3070
+ export declare const InvariantsApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
3071
+ /**
3072
+ * Returns result of running the given invariant.
3073
+ * @param {string} invariant
3074
+ * @param {number} [height] optional block height, defaults to current tip
3075
+ * @param {*} [options] Override http request option.
3076
+ * @throws {RequiredError}
3077
+ */
3078
+ invariant(invariant: string, height?: number | undefined, options?: any): AxiosPromise<InvariantResponse>;
3079
+ /**
3080
+ * Returns a list of available invariants.
3081
+ * @param {number} [height] optional block height, defaults to current tip
3082
+ * @param {*} [options] Override http request option.
3083
+ * @throws {RequiredError}
3084
+ */
3085
+ invariants(height?: number | undefined, options?: any): AxiosPromise<InvariantsResponse>;
3086
+ };
3087
+ /**
3088
+ * InvariantsApi - object-oriented interface
3089
+ * @export
3090
+ * @class InvariantsApi
3091
+ * @extends {BaseAPI}
3092
+ */
3093
+ export declare class InvariantsApi extends BaseAPI {
3094
+ /**
3095
+ * Returns result of running the given invariant.
3096
+ * @param {string} invariant
3097
+ * @param {number} [height] optional block height, defaults to current tip
3098
+ * @param {*} [options] Override http request option.
3099
+ * @throws {RequiredError}
3100
+ * @memberof InvariantsApi
3101
+ */
3102
+ invariant(invariant: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InvariantResponse, any>>;
3103
+ /**
3104
+ * Returns a list of available invariants.
3105
+ * @param {number} [height] optional block height, defaults to current tip
3106
+ * @param {*} [options] Override http request option.
3107
+ * @throws {RequiredError}
3108
+ * @memberof InvariantsApi
3109
+ */
3110
+ invariants(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InvariantsResponse, any>>;
3111
+ }
2349
3112
  /**
2350
3113
  * LiquidityProvidersApi - axios parameter creator
2351
3114
  * @export
@@ -3144,6 +3907,13 @@ export declare const QueueApiAxiosParamCreator: (configuration?: Configuration |
3144
3907
  * @throws {RequiredError}
3145
3908
  */
3146
3909
  queueScheduled: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3910
+ /**
3911
+ * Returns the swap queue.
3912
+ * @param {number} [height] optional block height, defaults to current tip
3913
+ * @param {*} [options] Override http request option.
3914
+ * @throws {RequiredError}
3915
+ */
3916
+ queueSwap: (height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3147
3917
  };
3148
3918
  /**
3149
3919
  * QueueApi - functional programming interface
@@ -3171,6 +3941,13 @@ export declare const QueueApiFp: (configuration?: Configuration | undefined) =>
3171
3941
  * @throws {RequiredError}
3172
3942
  */
3173
3943
  queueScheduled(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ScheduledResponse>>;
3944
+ /**
3945
+ * Returns the swap queue.
3946
+ * @param {number} [height] optional block height, defaults to current tip
3947
+ * @param {*} [options] Override http request option.
3948
+ * @throws {RequiredError}
3949
+ */
3950
+ queueSwap(height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SwapQueueResponse>>;
3174
3951
  };
3175
3952
  /**
3176
3953
  * QueueApi - factory interface
@@ -3198,6 +3975,13 @@ export declare const QueueApiFactory: (configuration?: Configuration | undefined
3198
3975
  * @throws {RequiredError}
3199
3976
  */
3200
3977
  queueScheduled(height?: number | undefined, options?: any): AxiosPromise<ScheduledResponse>;
3978
+ /**
3979
+ * Returns the swap queue.
3980
+ * @param {number} [height] optional block height, defaults to current tip
3981
+ * @param {*} [options] Override http request option.
3982
+ * @throws {RequiredError}
3983
+ */
3984
+ queueSwap(height?: number | undefined, options?: any): AxiosPromise<SwapQueueResponse>;
3201
3985
  };
3202
3986
  /**
3203
3987
  * QueueApi - object-oriented interface
@@ -3230,12 +4014,46 @@ export declare class QueueApi extends BaseAPI {
3230
4014
  * @memberof QueueApi
3231
4015
  */
3232
4016
  queueScheduled(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScheduledResponse, any>>;
4017
+ /**
4018
+ * Returns the swap queue.
4019
+ * @param {number} [height] optional block height, defaults to current tip
4020
+ * @param {*} [options] Override http request option.
4021
+ * @throws {RequiredError}
4022
+ * @memberof QueueApi
4023
+ */
4024
+ queueSwap(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwapQueueResponse, any>>;
3233
4025
  }
3234
4026
  /**
3235
4027
  * QuoteApi - axios parameter creator
3236
4028
  * @export
3237
4029
  */
3238
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>;
3239
4057
  /**
3240
4058
  * Provide a quote estimate for the provided saver deposit.
3241
4059
  * @param {number} [height] optional block height, defaults to current tip
@@ -3276,6 +4094,32 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration |
3276
4094
  * @export
3277
4095
  */
3278
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>>;
3279
4123
  /**
3280
4124
  * Provide a quote estimate for the provided saver deposit.
3281
4125
  * @param {number} [height] optional block height, defaults to current tip
@@ -3316,6 +4160,32 @@ export declare const QuoteApiFp: (configuration?: Configuration | undefined) =>
3316
4160
  * @export
3317
4161
  */
3318
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>;
3319
4189
  /**
3320
4190
  * Provide a quote estimate for the provided saver deposit.
3321
4191
  * @param {number} [height] optional block height, defaults to current tip
@@ -3358,6 +4228,34 @@ export declare const QuoteApiFactory: (configuration?: Configuration | undefined
3358
4228
  * @extends {BaseAPI}
3359
4229
  */
3360
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>>;
3361
4259
  /**
3362
4260
  * Provide a quote estimate for the provided saver deposit.
3363
4261
  * @param {number} [height] optional block height, defaults to current tip