@xchainjs/xchain-thornode 0.1.5 → 0.2.1
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 +515 -18
- package/lib/generated/thornodeApi/base.d.ts +3 -3
- 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 +215 -10
- package/lib/index.js +215 -10
- 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.105.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -191,7 +191,7 @@ export interface InboundAddress {
|
|
|
191
191
|
*/
|
|
192
192
|
'outbound_fee'?: string;
|
|
193
193
|
/**
|
|
194
|
-
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom).
|
|
194
|
+
* Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
|
|
195
195
|
* @type {string}
|
|
196
196
|
* @memberof InboundAddress
|
|
197
197
|
*/
|
|
@@ -1102,6 +1102,12 @@ export interface Pool {
|
|
|
1102
1102
|
* @memberof Pool
|
|
1103
1103
|
*/
|
|
1104
1104
|
'synth_mint_paused': boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* the amount of synth supply remaining before the current max supply is reached
|
|
1107
|
+
* @type {string}
|
|
1108
|
+
* @memberof Pool
|
|
1109
|
+
*/
|
|
1110
|
+
'synth_supply_remaining': string;
|
|
1105
1111
|
}
|
|
1106
1112
|
/**
|
|
1107
1113
|
*
|
|
@@ -1185,11 +1191,17 @@ export interface QuoteSaverDepositResponse {
|
|
|
1185
1191
|
*/
|
|
1186
1192
|
'memo': string;
|
|
1187
1193
|
/**
|
|
1188
|
-
*
|
|
1194
|
+
* migrate to expected_amount_deposit (will be deprecated in v1.104)
|
|
1189
1195
|
* @type {string}
|
|
1190
1196
|
* @memberof QuoteSaverDepositResponse
|
|
1191
1197
|
*/
|
|
1192
1198
|
'expected_amount_out': string;
|
|
1199
|
+
/**
|
|
1200
|
+
* the minimum amount of the target asset the user can expect to deposit after fees
|
|
1201
|
+
* @type {string}
|
|
1202
|
+
* @memberof QuoteSaverDepositResponse
|
|
1203
|
+
*/
|
|
1204
|
+
'expected_amount_deposit'?: string;
|
|
1193
1205
|
/**
|
|
1194
1206
|
* the approximate number of source chain blocks required before processing
|
|
1195
1207
|
* @type {number}
|
|
@@ -1214,6 +1226,30 @@ export interface QuoteSaverDepositResponse {
|
|
|
1214
1226
|
* @memberof QuoteSaverDepositResponse
|
|
1215
1227
|
*/
|
|
1216
1228
|
'slippage_bps': number;
|
|
1229
|
+
/**
|
|
1230
|
+
* expiration timestamp in unix seconds
|
|
1231
|
+
* @type {number}
|
|
1232
|
+
* @memberof QuoteSaverDepositResponse
|
|
1233
|
+
*/
|
|
1234
|
+
'expiry': number;
|
|
1235
|
+
/**
|
|
1236
|
+
* static warning message
|
|
1237
|
+
* @type {string}
|
|
1238
|
+
* @memberof QuoteSaverDepositResponse
|
|
1239
|
+
*/
|
|
1240
|
+
'warning': string;
|
|
1241
|
+
/**
|
|
1242
|
+
* chain specific quote notes
|
|
1243
|
+
* @type {string}
|
|
1244
|
+
* @memberof QuoteSaverDepositResponse
|
|
1245
|
+
*/
|
|
1246
|
+
'notes': string;
|
|
1247
|
+
/**
|
|
1248
|
+
* 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.
|
|
1249
|
+
* @type {string}
|
|
1250
|
+
* @memberof QuoteSaverDepositResponse
|
|
1251
|
+
*/
|
|
1252
|
+
'dust_threshold'?: string;
|
|
1217
1253
|
}
|
|
1218
1254
|
/**
|
|
1219
1255
|
*
|
|
@@ -1269,6 +1305,30 @@ export interface QuoteSaverWithdrawResponse {
|
|
|
1269
1305
|
* @memberof QuoteSaverWithdrawResponse
|
|
1270
1306
|
*/
|
|
1271
1307
|
'slippage_bps': number;
|
|
1308
|
+
/**
|
|
1309
|
+
* expiration timestamp in unix seconds
|
|
1310
|
+
* @type {number}
|
|
1311
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1312
|
+
*/
|
|
1313
|
+
'expiry': number;
|
|
1314
|
+
/**
|
|
1315
|
+
* static warning message
|
|
1316
|
+
* @type {string}
|
|
1317
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1318
|
+
*/
|
|
1319
|
+
'warning': string;
|
|
1320
|
+
/**
|
|
1321
|
+
* chain specific quote notes
|
|
1322
|
+
* @type {string}
|
|
1323
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1324
|
+
*/
|
|
1325
|
+
'notes': string;
|
|
1326
|
+
/**
|
|
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.
|
|
1328
|
+
* @type {string}
|
|
1329
|
+
* @memberof QuoteSaverWithdrawResponse
|
|
1330
|
+
*/
|
|
1331
|
+
'dust_threshold'?: string;
|
|
1272
1332
|
}
|
|
1273
1333
|
/**
|
|
1274
1334
|
*
|
|
@@ -1330,6 +1390,36 @@ export interface QuoteSwapResponse {
|
|
|
1330
1390
|
* @memberof QuoteSwapResponse
|
|
1331
1391
|
*/
|
|
1332
1392
|
'slippage_bps': number;
|
|
1393
|
+
/**
|
|
1394
|
+
* the EVM chain router contract address
|
|
1395
|
+
* @type {string}
|
|
1396
|
+
* @memberof QuoteSwapResponse
|
|
1397
|
+
*/
|
|
1398
|
+
'router'?: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* expiration timestamp in unix seconds
|
|
1401
|
+
* @type {number}
|
|
1402
|
+
* @memberof QuoteSwapResponse
|
|
1403
|
+
*/
|
|
1404
|
+
'expiry': number;
|
|
1405
|
+
/**
|
|
1406
|
+
* static warning message
|
|
1407
|
+
* @type {string}
|
|
1408
|
+
* @memberof QuoteSwapResponse
|
|
1409
|
+
*/
|
|
1410
|
+
'warning': string;
|
|
1411
|
+
/**
|
|
1412
|
+
* chain specific quote notes
|
|
1413
|
+
* @type {string}
|
|
1414
|
+
* @memberof QuoteSwapResponse
|
|
1415
|
+
*/
|
|
1416
|
+
'notes': string;
|
|
1417
|
+
/**
|
|
1418
|
+
* 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.
|
|
1419
|
+
* @type {string}
|
|
1420
|
+
* @memberof QuoteSwapResponse
|
|
1421
|
+
*/
|
|
1422
|
+
'dust_threshold'?: string;
|
|
1333
1423
|
}
|
|
1334
1424
|
/**
|
|
1335
1425
|
*
|
|
@@ -1389,9 +1479,9 @@ export interface Saver {
|
|
|
1389
1479
|
/**
|
|
1390
1480
|
*
|
|
1391
1481
|
* @export
|
|
1392
|
-
* @interface
|
|
1482
|
+
* @interface SaversResponse
|
|
1393
1483
|
*/
|
|
1394
|
-
export interface
|
|
1484
|
+
export interface SaversResponse extends Array<Saver> {
|
|
1395
1485
|
}
|
|
1396
1486
|
/**
|
|
1397
1487
|
*
|
|
@@ -1550,6 +1640,73 @@ export interface Tx {
|
|
|
1550
1640
|
*/
|
|
1551
1641
|
'memo'?: string;
|
|
1552
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
*
|
|
1645
|
+
* @export
|
|
1646
|
+
* @interface TxDetailsResponse
|
|
1647
|
+
*/
|
|
1648
|
+
export interface TxDetailsResponse {
|
|
1649
|
+
/**
|
|
1650
|
+
*
|
|
1651
|
+
* @type {string}
|
|
1652
|
+
* @memberof TxDetailsResponse
|
|
1653
|
+
*/
|
|
1654
|
+
'tx_id'?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
*
|
|
1657
|
+
* @type {ObservedTx}
|
|
1658
|
+
* @memberof TxDetailsResponse
|
|
1659
|
+
*/
|
|
1660
|
+
'tx': ObservedTx;
|
|
1661
|
+
/**
|
|
1662
|
+
*
|
|
1663
|
+
* @type {number}
|
|
1664
|
+
* @memberof TxDetailsResponse
|
|
1665
|
+
*/
|
|
1666
|
+
'height'?: number;
|
|
1667
|
+
/**
|
|
1668
|
+
*
|
|
1669
|
+
* @type {Array<ObservedTx>}
|
|
1670
|
+
* @memberof TxDetailsResponse
|
|
1671
|
+
*/
|
|
1672
|
+
'txs': Array<ObservedTx>;
|
|
1673
|
+
/**
|
|
1674
|
+
*
|
|
1675
|
+
* @type {Array<TxOutItem>}
|
|
1676
|
+
* @memberof TxDetailsResponse
|
|
1677
|
+
*/
|
|
1678
|
+
'actions': Array<TxOutItem>;
|
|
1679
|
+
/**
|
|
1680
|
+
*
|
|
1681
|
+
* @type {Array<Tx>}
|
|
1682
|
+
* @memberof TxDetailsResponse
|
|
1683
|
+
*/
|
|
1684
|
+
'out_txs': Array<Tx>;
|
|
1685
|
+
/**
|
|
1686
|
+
* the thorchain height at which the outbound was finalised
|
|
1687
|
+
* @type {number}
|
|
1688
|
+
* @memberof TxDetailsResponse
|
|
1689
|
+
*/
|
|
1690
|
+
'finalised_height'?: number;
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @type {boolean}
|
|
1694
|
+
* @memberof TxDetailsResponse
|
|
1695
|
+
*/
|
|
1696
|
+
'updated_vault'?: boolean;
|
|
1697
|
+
/**
|
|
1698
|
+
*
|
|
1699
|
+
* @type {boolean}
|
|
1700
|
+
* @memberof TxDetailsResponse
|
|
1701
|
+
*/
|
|
1702
|
+
'reverted'?: boolean;
|
|
1703
|
+
/**
|
|
1704
|
+
*
|
|
1705
|
+
* @type {number}
|
|
1706
|
+
* @memberof TxDetailsResponse
|
|
1707
|
+
*/
|
|
1708
|
+
'outbound_height'?: number;
|
|
1709
|
+
}
|
|
1553
1710
|
/**
|
|
1554
1711
|
*
|
|
1555
1712
|
* @export
|
|
@@ -1703,6 +1860,243 @@ export interface TxSignersResponse {
|
|
|
1703
1860
|
*/
|
|
1704
1861
|
'outbound_height'?: number;
|
|
1705
1862
|
}
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @export
|
|
1866
|
+
* @interface TxStagesResponse
|
|
1867
|
+
*/
|
|
1868
|
+
export interface TxStagesResponse {
|
|
1869
|
+
/**
|
|
1870
|
+
*
|
|
1871
|
+
* @type {TxStagesResponseInboundObserved}
|
|
1872
|
+
* @memberof TxStagesResponse
|
|
1873
|
+
*/
|
|
1874
|
+
'inbound_observed': TxStagesResponseInboundObserved;
|
|
1875
|
+
/**
|
|
1876
|
+
*
|
|
1877
|
+
* @type {TxStagesResponseInboundConfirmationCounted}
|
|
1878
|
+
* @memberof TxStagesResponse
|
|
1879
|
+
*/
|
|
1880
|
+
'inbound_confirmation_counted'?: TxStagesResponseInboundConfirmationCounted;
|
|
1881
|
+
/**
|
|
1882
|
+
*
|
|
1883
|
+
* @type {TxStagesResponseInboundFinalised}
|
|
1884
|
+
* @memberof TxStagesResponse
|
|
1885
|
+
*/
|
|
1886
|
+
'inbound_finalised': TxStagesResponseInboundFinalised;
|
|
1887
|
+
/**
|
|
1888
|
+
*
|
|
1889
|
+
* @type {TxStagesResponseSwapFinalised}
|
|
1890
|
+
* @memberof TxStagesResponse
|
|
1891
|
+
*/
|
|
1892
|
+
'swap_finalised'?: TxStagesResponseSwapFinalised;
|
|
1893
|
+
/**
|
|
1894
|
+
*
|
|
1895
|
+
* @type {TxStagesResponseOutboundDelay}
|
|
1896
|
+
* @memberof TxStagesResponse
|
|
1897
|
+
*/
|
|
1898
|
+
'outbound_delay'?: TxStagesResponseOutboundDelay;
|
|
1899
|
+
/**
|
|
1900
|
+
*
|
|
1901
|
+
* @type {TxStagesResponseOutboundSigned}
|
|
1902
|
+
* @memberof TxStagesResponse
|
|
1903
|
+
*/
|
|
1904
|
+
'outbound_signed'?: TxStagesResponseOutboundSigned;
|
|
1905
|
+
}
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @export
|
|
1909
|
+
* @interface TxStagesResponseInboundConfirmationCounted
|
|
1910
|
+
*/
|
|
1911
|
+
export interface TxStagesResponseInboundConfirmationCounted {
|
|
1912
|
+
/**
|
|
1913
|
+
* the THORChain block height when confirmation counting began
|
|
1914
|
+
* @type {number}
|
|
1915
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1916
|
+
*/
|
|
1917
|
+
'counting_start_height'?: number;
|
|
1918
|
+
/**
|
|
1919
|
+
* the external source chain for which confirmation counting takes place
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1922
|
+
*/
|
|
1923
|
+
'chain'?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* the block height on the external source chain when the transaction was observed
|
|
1926
|
+
* @type {number}
|
|
1927
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1928
|
+
*/
|
|
1929
|
+
'external_observed_height'?: number;
|
|
1930
|
+
/**
|
|
1931
|
+
* the block height on the external source chain when confirmation counting will be complete
|
|
1932
|
+
* @type {number}
|
|
1933
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1934
|
+
*/
|
|
1935
|
+
'external_confirmation_delay_height'?: number;
|
|
1936
|
+
/**
|
|
1937
|
+
* the estimated remaining seconds before confirmation counting completes
|
|
1938
|
+
* @type {number}
|
|
1939
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1940
|
+
*/
|
|
1941
|
+
'remaining_confirmation_seconds'?: number;
|
|
1942
|
+
/**
|
|
1943
|
+
* returns true if no transaction confirmation counting remains to be done
|
|
1944
|
+
* @type {boolean}
|
|
1945
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1946
|
+
*/
|
|
1947
|
+
'completed': boolean;
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
*
|
|
1951
|
+
* @export
|
|
1952
|
+
* @interface TxStagesResponseInboundFinalised
|
|
1953
|
+
*/
|
|
1954
|
+
export interface TxStagesResponseInboundFinalised {
|
|
1955
|
+
/**
|
|
1956
|
+
* returns true if the inbound transaction has been finalised (THORChain agreeing it exists)
|
|
1957
|
+
* @type {boolean}
|
|
1958
|
+
* @memberof TxStagesResponseInboundFinalised
|
|
1959
|
+
*/
|
|
1960
|
+
'completed': boolean;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
*
|
|
1964
|
+
* @export
|
|
1965
|
+
* @interface TxStagesResponseInboundObserved
|
|
1966
|
+
*/
|
|
1967
|
+
export interface TxStagesResponseInboundObserved {
|
|
1968
|
+
/**
|
|
1969
|
+
* returns true if any nodes have observed the transaction
|
|
1970
|
+
* @type {boolean}
|
|
1971
|
+
* @memberof TxStagesResponseInboundObserved
|
|
1972
|
+
*/
|
|
1973
|
+
'started'?: boolean;
|
|
1974
|
+
/**
|
|
1975
|
+
* returns true if no transaction observation remains to be done
|
|
1976
|
+
* @type {boolean}
|
|
1977
|
+
* @memberof TxStagesResponseInboundObserved
|
|
1978
|
+
*/
|
|
1979
|
+
'completed': boolean;
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
*
|
|
1983
|
+
* @export
|
|
1984
|
+
* @interface TxStagesResponseOutboundDelay
|
|
1985
|
+
*/
|
|
1986
|
+
export interface TxStagesResponseOutboundDelay {
|
|
1987
|
+
/**
|
|
1988
|
+
* the number of remaining THORChain blocks the outbound will be delayed
|
|
1989
|
+
* @type {number}
|
|
1990
|
+
* @memberof TxStagesResponseOutboundDelay
|
|
1991
|
+
*/
|
|
1992
|
+
'remaining_delay_blocks'?: number;
|
|
1993
|
+
/**
|
|
1994
|
+
* the estimated remaining seconds of the outbound delay before it will be sent
|
|
1995
|
+
* @type {number}
|
|
1996
|
+
* @memberof TxStagesResponseOutboundDelay
|
|
1997
|
+
*/
|
|
1998
|
+
'remaining_delay_seconds'?: number;
|
|
1999
|
+
/**
|
|
2000
|
+
* returns true if no transaction outbound delay remains
|
|
2001
|
+
* @type {boolean}
|
|
2002
|
+
* @memberof TxStagesResponseOutboundDelay
|
|
2003
|
+
*/
|
|
2004
|
+
'completed': boolean;
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
*
|
|
2008
|
+
* @export
|
|
2009
|
+
* @interface TxStagesResponseOutboundSigned
|
|
2010
|
+
*/
|
|
2011
|
+
export interface TxStagesResponseOutboundSigned {
|
|
2012
|
+
/**
|
|
2013
|
+
* THORChain height for which the external outbound is scheduled
|
|
2014
|
+
* @type {number}
|
|
2015
|
+
* @memberof TxStagesResponseOutboundSigned
|
|
2016
|
+
*/
|
|
2017
|
+
'scheduled_outbound_height'?: number;
|
|
2018
|
+
/**
|
|
2019
|
+
* THORChain blocks since the scheduled outbound height
|
|
2020
|
+
* @type {number}
|
|
2021
|
+
* @memberof TxStagesResponseOutboundSigned
|
|
2022
|
+
*/
|
|
2023
|
+
'blocks_since_scheduled'?: number;
|
|
2024
|
+
/**
|
|
2025
|
+
* returns true if an external transaction has been signed and broadcast (and observed in its mempool)
|
|
2026
|
+
* @type {boolean}
|
|
2027
|
+
* @memberof TxStagesResponseOutboundSigned
|
|
2028
|
+
*/
|
|
2029
|
+
'completed': boolean;
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
* @export
|
|
2034
|
+
* @interface TxStagesResponseSwapFinalised
|
|
2035
|
+
*/
|
|
2036
|
+
export interface TxStagesResponseSwapFinalised {
|
|
2037
|
+
/**
|
|
2038
|
+
* returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
|
|
2039
|
+
* @type {boolean}
|
|
2040
|
+
* @memberof TxStagesResponseSwapFinalised
|
|
2041
|
+
*/
|
|
2042
|
+
'completed': boolean;
|
|
2043
|
+
}
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @export
|
|
2047
|
+
* @interface TxStatusResponse
|
|
2048
|
+
*/
|
|
2049
|
+
export interface TxStatusResponse {
|
|
2050
|
+
/**
|
|
2051
|
+
*
|
|
2052
|
+
* @type {Tx}
|
|
2053
|
+
* @memberof TxStatusResponse
|
|
2054
|
+
*/
|
|
2055
|
+
'tx'?: Tx;
|
|
2056
|
+
/**
|
|
2057
|
+
*
|
|
2058
|
+
* @type {Array<TxStatusResponsePlannedOutTxsInner>}
|
|
2059
|
+
* @memberof TxStatusResponse
|
|
2060
|
+
*/
|
|
2061
|
+
'planned_out_txs'?: Array<TxStatusResponsePlannedOutTxsInner>;
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @type {Array<Tx>}
|
|
2065
|
+
* @memberof TxStatusResponse
|
|
2066
|
+
*/
|
|
2067
|
+
'out_txs'?: Array<Tx>;
|
|
2068
|
+
/**
|
|
2069
|
+
*
|
|
2070
|
+
* @type {TxStagesResponse}
|
|
2071
|
+
* @memberof TxStatusResponse
|
|
2072
|
+
*/
|
|
2073
|
+
'stages': TxStagesResponse;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
*
|
|
2077
|
+
* @export
|
|
2078
|
+
* @interface TxStatusResponsePlannedOutTxsInner
|
|
2079
|
+
*/
|
|
2080
|
+
export interface TxStatusResponsePlannedOutTxsInner {
|
|
2081
|
+
/**
|
|
2082
|
+
*
|
|
2083
|
+
* @type {string}
|
|
2084
|
+
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
2085
|
+
*/
|
|
2086
|
+
'chain': string;
|
|
2087
|
+
/**
|
|
2088
|
+
*
|
|
2089
|
+
* @type {string}
|
|
2090
|
+
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
2091
|
+
*/
|
|
2092
|
+
'to_address': string;
|
|
2093
|
+
/**
|
|
2094
|
+
*
|
|
2095
|
+
* @type {Coin}
|
|
2096
|
+
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
2097
|
+
*/
|
|
2098
|
+
'coin': Coin;
|
|
2099
|
+
}
|
|
1706
2100
|
/**
|
|
1707
2101
|
*
|
|
1708
2102
|
* @export
|
|
@@ -2868,13 +3262,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration |
|
|
|
2868
3262
|
* @param {string} [toAsset] the target asset
|
|
2869
3263
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2870
3264
|
* @param {string} [destination] the destination address, required to generate memo
|
|
3265
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2871
3266
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2872
3267
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2873
3268
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2874
3269
|
* @param {*} [options] Override http request option.
|
|
2875
3270
|
* @throws {RequiredError}
|
|
2876
3271
|
*/
|
|
2877
|
-
quoteswap: (height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3272
|
+
quoteswap: (height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2878
3273
|
};
|
|
2879
3274
|
/**
|
|
2880
3275
|
* QuoteApi - functional programming interface
|
|
@@ -2907,13 +3302,14 @@ export declare const QuoteApiFp: (configuration?: Configuration | undefined) =>
|
|
|
2907
3302
|
* @param {string} [toAsset] the target asset
|
|
2908
3303
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2909
3304
|
* @param {string} [destination] the destination address, required to generate memo
|
|
3305
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2910
3306
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2911
3307
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2912
3308
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2913
3309
|
* @param {*} [options] Override http request option.
|
|
2914
3310
|
* @throws {RequiredError}
|
|
2915
3311
|
*/
|
|
2916
|
-
quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSwapResponse>>;
|
|
3312
|
+
quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSwapResponse>>;
|
|
2917
3313
|
};
|
|
2918
3314
|
/**
|
|
2919
3315
|
* QuoteApi - factory interface
|
|
@@ -2946,13 +3342,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration | undefined
|
|
|
2946
3342
|
* @param {string} [toAsset] the target asset
|
|
2947
3343
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2948
3344
|
* @param {string} [destination] the destination address, required to generate memo
|
|
3345
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2949
3346
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2950
3347
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2951
3348
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2952
3349
|
* @param {*} [options] Override http request option.
|
|
2953
3350
|
* @throws {RequiredError}
|
|
2954
3351
|
*/
|
|
2955
|
-
quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteSwapResponse>;
|
|
3352
|
+
quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteSwapResponse>;
|
|
2956
3353
|
};
|
|
2957
3354
|
/**
|
|
2958
3355
|
* QuoteApi - object-oriented interface
|
|
@@ -2989,6 +3386,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
2989
3386
|
* @param {string} [toAsset] the target asset
|
|
2990
3387
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2991
3388
|
* @param {string} [destination] the destination address, required to generate memo
|
|
3389
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2992
3390
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2993
3391
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2994
3392
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -2996,7 +3394,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
2996
3394
|
* @throws {RequiredError}
|
|
2997
3395
|
* @memberof QuoteApi
|
|
2998
3396
|
*/
|
|
2999
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
|
|
3397
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
|
|
3000
3398
|
}
|
|
3001
3399
|
/**
|
|
3002
3400
|
* SaversApi - axios parameter creator
|
|
@@ -3034,7 +3432,7 @@ export declare const SaversApiFp: (configuration?: Configuration | undefined) =>
|
|
|
3034
3432
|
* @param {*} [options] Override http request option.
|
|
3035
3433
|
* @throws {RequiredError}
|
|
3036
3434
|
*/
|
|
3037
|
-
saver(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
3435
|
+
saver(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Saver>>;
|
|
3038
3436
|
/**
|
|
3039
3437
|
* Returns all savers for the savers pool.
|
|
3040
3438
|
* @param {string} asset
|
|
@@ -3042,7 +3440,7 @@ export declare const SaversApiFp: (configuration?: Configuration | undefined) =>
|
|
|
3042
3440
|
* @param {*} [options] Override http request option.
|
|
3043
3441
|
* @throws {RequiredError}
|
|
3044
3442
|
*/
|
|
3045
|
-
savers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
3443
|
+
savers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SaversResponse>>;
|
|
3046
3444
|
};
|
|
3047
3445
|
/**
|
|
3048
3446
|
* SaversApi - factory interface
|
|
@@ -3057,7 +3455,7 @@ export declare const SaversApiFactory: (configuration?: Configuration | undefine
|
|
|
3057
3455
|
* @param {*} [options] Override http request option.
|
|
3058
3456
|
* @throws {RequiredError}
|
|
3059
3457
|
*/
|
|
3060
|
-
saver(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
3458
|
+
saver(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<Saver>;
|
|
3061
3459
|
/**
|
|
3062
3460
|
* Returns all savers for the savers pool.
|
|
3063
3461
|
* @param {string} asset
|
|
@@ -3065,7 +3463,7 @@ export declare const SaversApiFactory: (configuration?: Configuration | undefine
|
|
|
3065
3463
|
* @param {*} [options] Override http request option.
|
|
3066
3464
|
* @throws {RequiredError}
|
|
3067
3465
|
*/
|
|
3068
|
-
savers(asset: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
3466
|
+
savers(asset: string, height?: number | undefined, options?: any): AxiosPromise<SaversResponse>;
|
|
3069
3467
|
};
|
|
3070
3468
|
/**
|
|
3071
3469
|
* SaversApi - object-oriented interface
|
|
@@ -3083,7 +3481,7 @@ export declare class SaversApi extends BaseAPI {
|
|
|
3083
3481
|
* @throws {RequiredError}
|
|
3084
3482
|
* @memberof SaversApi
|
|
3085
3483
|
*/
|
|
3086
|
-
saver(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3484
|
+
saver(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Saver, any>>;
|
|
3087
3485
|
/**
|
|
3088
3486
|
* Returns all savers for the savers pool.
|
|
3089
3487
|
* @param {string} asset
|
|
@@ -3092,7 +3490,7 @@ export declare class SaversApi extends BaseAPI {
|
|
|
3092
3490
|
* @throws {RequiredError}
|
|
3093
3491
|
* @memberof SaversApi
|
|
3094
3492
|
*/
|
|
3095
|
-
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3493
|
+
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SaversResponse, any>>;
|
|
3096
3494
|
}
|
|
3097
3495
|
/**
|
|
3098
3496
|
* TSSApi - axios parameter creator
|
|
@@ -3324,6 +3722,30 @@ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configur
|
|
|
3324
3722
|
* @throws {RequiredError}
|
|
3325
3723
|
*/
|
|
3326
3724
|
txSigners: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3725
|
+
/**
|
|
3726
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3727
|
+
* @param {string} hash
|
|
3728
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3729
|
+
* @param {*} [options] Override http request option.
|
|
3730
|
+
* @throws {RequiredError}
|
|
3731
|
+
*/
|
|
3732
|
+
txSignersOld: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3733
|
+
/**
|
|
3734
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3735
|
+
* @param {string} hash
|
|
3736
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3737
|
+
* @param {*} [options] Override http request option.
|
|
3738
|
+
* @throws {RequiredError}
|
|
3739
|
+
*/
|
|
3740
|
+
txStages: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3741
|
+
/**
|
|
3742
|
+
* Returns the status of a provided inbound hash.
|
|
3743
|
+
* @param {string} hash
|
|
3744
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3745
|
+
* @param {*} [options] Override http request option.
|
|
3746
|
+
* @throws {RequiredError}
|
|
3747
|
+
*/
|
|
3748
|
+
txStatus: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3327
3749
|
};
|
|
3328
3750
|
/**
|
|
3329
3751
|
* TransactionsApi - functional programming interface
|
|
@@ -3345,7 +3767,31 @@ export declare const TransactionsApiFp: (configuration?: Configuration | undefin
|
|
|
3345
3767
|
* @param {*} [options] Override http request option.
|
|
3346
3768
|
* @throws {RequiredError}
|
|
3347
3769
|
*/
|
|
3348
|
-
txSigners(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
3770
|
+
txSigners(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxDetailsResponse>>;
|
|
3771
|
+
/**
|
|
3772
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3773
|
+
* @param {string} hash
|
|
3774
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3775
|
+
* @param {*} [options] Override http request option.
|
|
3776
|
+
* @throws {RequiredError}
|
|
3777
|
+
*/
|
|
3778
|
+
txSignersOld(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxSignersResponse>>;
|
|
3779
|
+
/**
|
|
3780
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3781
|
+
* @param {string} hash
|
|
3782
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3783
|
+
* @param {*} [options] Override http request option.
|
|
3784
|
+
* @throws {RequiredError}
|
|
3785
|
+
*/
|
|
3786
|
+
txStages(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxStagesResponse>>;
|
|
3787
|
+
/**
|
|
3788
|
+
* Returns the status of a provided inbound hash.
|
|
3789
|
+
* @param {string} hash
|
|
3790
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3791
|
+
* @param {*} [options] Override http request option.
|
|
3792
|
+
* @throws {RequiredError}
|
|
3793
|
+
*/
|
|
3794
|
+
txStatus(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxStatusResponse>>;
|
|
3349
3795
|
};
|
|
3350
3796
|
/**
|
|
3351
3797
|
* TransactionsApi - factory interface
|
|
@@ -3367,7 +3813,31 @@ export declare const TransactionsApiFactory: (configuration?: Configuration | un
|
|
|
3367
3813
|
* @param {*} [options] Override http request option.
|
|
3368
3814
|
* @throws {RequiredError}
|
|
3369
3815
|
*/
|
|
3370
|
-
txSigners(hash: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
3816
|
+
txSigners(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxDetailsResponse>;
|
|
3817
|
+
/**
|
|
3818
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3819
|
+
* @param {string} hash
|
|
3820
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3821
|
+
* @param {*} [options] Override http request option.
|
|
3822
|
+
* @throws {RequiredError}
|
|
3823
|
+
*/
|
|
3824
|
+
txSignersOld(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxSignersResponse>;
|
|
3825
|
+
/**
|
|
3826
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3827
|
+
* @param {string} hash
|
|
3828
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3829
|
+
* @param {*} [options] Override http request option.
|
|
3830
|
+
* @throws {RequiredError}
|
|
3831
|
+
*/
|
|
3832
|
+
txStages(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxStagesResponse>;
|
|
3833
|
+
/**
|
|
3834
|
+
* Returns the status of a provided inbound hash.
|
|
3835
|
+
* @param {string} hash
|
|
3836
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3837
|
+
* @param {*} [options] Override http request option.
|
|
3838
|
+
* @throws {RequiredError}
|
|
3839
|
+
*/
|
|
3840
|
+
txStatus(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxStatusResponse>;
|
|
3371
3841
|
};
|
|
3372
3842
|
/**
|
|
3373
3843
|
* TransactionsApi - object-oriented interface
|
|
@@ -3393,7 +3863,34 @@ export declare class TransactionsApi extends BaseAPI {
|
|
|
3393
3863
|
* @throws {RequiredError}
|
|
3394
3864
|
* @memberof TransactionsApi
|
|
3395
3865
|
*/
|
|
3396
|
-
txSigners(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3866
|
+
txSigners(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxDetailsResponse, any>>;
|
|
3867
|
+
/**
|
|
3868
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3869
|
+
* @param {string} hash
|
|
3870
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3871
|
+
* @param {*} [options] Override http request option.
|
|
3872
|
+
* @throws {RequiredError}
|
|
3873
|
+
* @memberof TransactionsApi
|
|
3874
|
+
*/
|
|
3875
|
+
txSignersOld(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxSignersResponse, any>>;
|
|
3876
|
+
/**
|
|
3877
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3878
|
+
* @param {string} hash
|
|
3879
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
* @memberof TransactionsApi
|
|
3883
|
+
*/
|
|
3884
|
+
txStages(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxStagesResponse, any>>;
|
|
3885
|
+
/**
|
|
3886
|
+
* Returns the status of a provided inbound hash.
|
|
3887
|
+
* @param {string} hash
|
|
3888
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3889
|
+
* @param {*} [options] Override http request option.
|
|
3890
|
+
* @throws {RequiredError}
|
|
3891
|
+
* @memberof TransactionsApi
|
|
3892
|
+
*/
|
|
3893
|
+
txStatus(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxStatusResponse, any>>;
|
|
3397
3894
|
}
|
|
3398
3895
|
/**
|
|
3399
3896
|
* VaultsApi - axios parameter creator
|