@xchainjs/xchain-thornode 0.1.4 → 0.2.0
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/README.md +22 -0
- package/lib/generated/thornodeApi/api.d.ts +403 -13
- 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 +199 -1
- package/lib/index.js +199 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -53
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Request data from MimirApi
|
|
|
28
28
|
console.log(mimirResponse.data)
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
+
|
|
31
32
|
## Example - set custom header
|
|
32
33
|
|
|
33
34
|
Request data from MimirApi
|
|
@@ -49,3 +50,24 @@ Request data from MimirApi
|
|
|
49
50
|
## Documentation
|
|
50
51
|
|
|
51
52
|
[`Thornode NineRelms endpoint`](https://thornode.ninerealms.com/)
|
|
53
|
+
|
|
54
|
+
### Setting Headers for Nine Realms endpoints
|
|
55
|
+
|
|
56
|
+
If you plan on using the publically accessible endpoints provided by Nine Realms(listed below), ensure that you add a valid 'x-client-id' to all requests
|
|
57
|
+
|
|
58
|
+
- https://midgard.ninerealms.com
|
|
59
|
+
- https://haskoin.ninerealms.com (BTC/BCH/LTC)
|
|
60
|
+
- https://thornode.ninerealms.com
|
|
61
|
+
|
|
62
|
+
Example
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import cosmosclient from '@cosmos-client/core'
|
|
66
|
+
import axios from 'axios'
|
|
67
|
+
import { register9Rheader } from '@xchainjs/xchain-util'
|
|
68
|
+
|
|
69
|
+
register9Rheader(axios)
|
|
70
|
+
register9Rheader(cosmosclient.config.globalAxios)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
For a complete example please see this [test](https://github.com/xchainjs/xchainjs-lib/blob/master/packages/xchain-thorchain-amm/__e2e__/wallet.e2e.ts)
|
|
@@ -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.102.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1097,11 +1097,17 @@ export interface Pool {
|
|
|
1097
1097
|
*/
|
|
1098
1098
|
'savers_units': string;
|
|
1099
1099
|
/**
|
|
1100
|
-
* whether additional synths cannot be minted
|
|
1100
|
+
* whether additional synths cannot be minted (will be deprecated in v1.103)
|
|
1101
1101
|
* @type {boolean}
|
|
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
|
*
|
|
@@ -1389,9 +1395,9 @@ export interface Saver {
|
|
|
1389
1395
|
/**
|
|
1390
1396
|
*
|
|
1391
1397
|
* @export
|
|
1392
|
-
* @interface
|
|
1398
|
+
* @interface SaversResponse
|
|
1393
1399
|
*/
|
|
1394
|
-
export interface
|
|
1400
|
+
export interface SaversResponse extends Array<Saver> {
|
|
1395
1401
|
}
|
|
1396
1402
|
/**
|
|
1397
1403
|
*
|
|
@@ -1550,6 +1556,73 @@ export interface Tx {
|
|
|
1550
1556
|
*/
|
|
1551
1557
|
'memo'?: string;
|
|
1552
1558
|
}
|
|
1559
|
+
/**
|
|
1560
|
+
*
|
|
1561
|
+
* @export
|
|
1562
|
+
* @interface TxDetailsResponse
|
|
1563
|
+
*/
|
|
1564
|
+
export interface TxDetailsResponse {
|
|
1565
|
+
/**
|
|
1566
|
+
*
|
|
1567
|
+
* @type {string}
|
|
1568
|
+
* @memberof TxDetailsResponse
|
|
1569
|
+
*/
|
|
1570
|
+
'tx_id'?: string;
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
* @type {ObservedTx}
|
|
1574
|
+
* @memberof TxDetailsResponse
|
|
1575
|
+
*/
|
|
1576
|
+
'tx': ObservedTx;
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @type {number}
|
|
1580
|
+
* @memberof TxDetailsResponse
|
|
1581
|
+
*/
|
|
1582
|
+
'height'?: number;
|
|
1583
|
+
/**
|
|
1584
|
+
*
|
|
1585
|
+
* @type {Array<ObservedTx>}
|
|
1586
|
+
* @memberof TxDetailsResponse
|
|
1587
|
+
*/
|
|
1588
|
+
'txs': Array<ObservedTx>;
|
|
1589
|
+
/**
|
|
1590
|
+
*
|
|
1591
|
+
* @type {Array<TxOutItem>}
|
|
1592
|
+
* @memberof TxDetailsResponse
|
|
1593
|
+
*/
|
|
1594
|
+
'actions': Array<TxOutItem>;
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @type {Array<Tx>}
|
|
1598
|
+
* @memberof TxDetailsResponse
|
|
1599
|
+
*/
|
|
1600
|
+
'out_txs': Array<Tx>;
|
|
1601
|
+
/**
|
|
1602
|
+
* the thorchain height at which the outbound was finalised
|
|
1603
|
+
* @type {number}
|
|
1604
|
+
* @memberof TxDetailsResponse
|
|
1605
|
+
*/
|
|
1606
|
+
'finalised_height'?: number;
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* @type {boolean}
|
|
1610
|
+
* @memberof TxDetailsResponse
|
|
1611
|
+
*/
|
|
1612
|
+
'updated_vault'?: boolean;
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @type {boolean}
|
|
1616
|
+
* @memberof TxDetailsResponse
|
|
1617
|
+
*/
|
|
1618
|
+
'reverted'?: boolean;
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @type {number}
|
|
1622
|
+
* @memberof TxDetailsResponse
|
|
1623
|
+
*/
|
|
1624
|
+
'outbound_height'?: number;
|
|
1625
|
+
}
|
|
1553
1626
|
/**
|
|
1554
1627
|
*
|
|
1555
1628
|
* @export
|
|
@@ -1703,6 +1776,224 @@ export interface TxSignersResponse {
|
|
|
1703
1776
|
*/
|
|
1704
1777
|
'outbound_height'?: number;
|
|
1705
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
*
|
|
1781
|
+
* @export
|
|
1782
|
+
* @interface TxStagesResponse
|
|
1783
|
+
*/
|
|
1784
|
+
export interface TxStagesResponse {
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
* @type {TxStagesResponseInboundObserved}
|
|
1788
|
+
* @memberof TxStagesResponse
|
|
1789
|
+
*/
|
|
1790
|
+
'inbound_observed': TxStagesResponseInboundObserved;
|
|
1791
|
+
/**
|
|
1792
|
+
*
|
|
1793
|
+
* @type {TxStagesResponseInboundConfirmationCounted}
|
|
1794
|
+
* @memberof TxStagesResponse
|
|
1795
|
+
*/
|
|
1796
|
+
'inbound_confirmation_counted'?: TxStagesResponseInboundConfirmationCounted;
|
|
1797
|
+
/**
|
|
1798
|
+
*
|
|
1799
|
+
* @type {TxStagesResponseInboundFinalised}
|
|
1800
|
+
* @memberof TxStagesResponse
|
|
1801
|
+
*/
|
|
1802
|
+
'inbound_finalised': TxStagesResponseInboundFinalised;
|
|
1803
|
+
/**
|
|
1804
|
+
*
|
|
1805
|
+
* @type {TxStagesResponseOutboundDelay}
|
|
1806
|
+
* @memberof TxStagesResponse
|
|
1807
|
+
*/
|
|
1808
|
+
'outbound_delay'?: TxStagesResponseOutboundDelay;
|
|
1809
|
+
/**
|
|
1810
|
+
*
|
|
1811
|
+
* @type {TxStagesResponseOutboundSigned}
|
|
1812
|
+
* @memberof TxStagesResponse
|
|
1813
|
+
*/
|
|
1814
|
+
'outbound_signed'?: TxStagesResponseOutboundSigned;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
*
|
|
1818
|
+
* @export
|
|
1819
|
+
* @interface TxStagesResponseInboundConfirmationCounted
|
|
1820
|
+
*/
|
|
1821
|
+
export interface TxStagesResponseInboundConfirmationCounted {
|
|
1822
|
+
/**
|
|
1823
|
+
* the THORChain block height when confirmation counting began
|
|
1824
|
+
* @type {number}
|
|
1825
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1826
|
+
*/
|
|
1827
|
+
'counting_start_height'?: number;
|
|
1828
|
+
/**
|
|
1829
|
+
* the external source chain for which confirmation counting takes place
|
|
1830
|
+
* @type {string}
|
|
1831
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1832
|
+
*/
|
|
1833
|
+
'chain'?: string;
|
|
1834
|
+
/**
|
|
1835
|
+
* the block height on the external source chain when the transaction was observed
|
|
1836
|
+
* @type {number}
|
|
1837
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1838
|
+
*/
|
|
1839
|
+
'external_observed_height'?: number;
|
|
1840
|
+
/**
|
|
1841
|
+
* the block height on the external source chain when confirmation counting will be complete
|
|
1842
|
+
* @type {number}
|
|
1843
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1844
|
+
*/
|
|
1845
|
+
'external_confirmation_delay_height'?: number;
|
|
1846
|
+
/**
|
|
1847
|
+
* the estimated remaining seconds before confirmation counting completes
|
|
1848
|
+
* @type {number}
|
|
1849
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1850
|
+
*/
|
|
1851
|
+
'remaining_confirmation_seconds'?: number;
|
|
1852
|
+
/**
|
|
1853
|
+
* returns true if no transaction confirmation counting remains to be done
|
|
1854
|
+
* @type {boolean}
|
|
1855
|
+
* @memberof TxStagesResponseInboundConfirmationCounted
|
|
1856
|
+
*/
|
|
1857
|
+
'completed': boolean;
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
*
|
|
1861
|
+
* @export
|
|
1862
|
+
* @interface TxStagesResponseInboundFinalised
|
|
1863
|
+
*/
|
|
1864
|
+
export interface TxStagesResponseInboundFinalised {
|
|
1865
|
+
/**
|
|
1866
|
+
* returns true if the inbound transaction has been finalised (THORChain agreeing it exists)
|
|
1867
|
+
* @type {boolean}
|
|
1868
|
+
* @memberof TxStagesResponseInboundFinalised
|
|
1869
|
+
*/
|
|
1870
|
+
'completed': boolean;
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
*
|
|
1874
|
+
* @export
|
|
1875
|
+
* @interface TxStagesResponseInboundObserved
|
|
1876
|
+
*/
|
|
1877
|
+
export interface TxStagesResponseInboundObserved {
|
|
1878
|
+
/**
|
|
1879
|
+
* returns true if any nodes have observed the transaction
|
|
1880
|
+
* @type {boolean}
|
|
1881
|
+
* @memberof TxStagesResponseInboundObserved
|
|
1882
|
+
*/
|
|
1883
|
+
'started'?: boolean;
|
|
1884
|
+
/**
|
|
1885
|
+
* returns true if no transaction observation remains to be done
|
|
1886
|
+
* @type {boolean}
|
|
1887
|
+
* @memberof TxStagesResponseInboundObserved
|
|
1888
|
+
*/
|
|
1889
|
+
'completed': boolean;
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
*
|
|
1893
|
+
* @export
|
|
1894
|
+
* @interface TxStagesResponseOutboundDelay
|
|
1895
|
+
*/
|
|
1896
|
+
export interface TxStagesResponseOutboundDelay {
|
|
1897
|
+
/**
|
|
1898
|
+
* the number of remaining THORChain blocks the outbound will be delayed
|
|
1899
|
+
* @type {number}
|
|
1900
|
+
* @memberof TxStagesResponseOutboundDelay
|
|
1901
|
+
*/
|
|
1902
|
+
'remaining_delay_blocks'?: number;
|
|
1903
|
+
/**
|
|
1904
|
+
* the estimated remaining seconds of the outbound delay before it will be sent
|
|
1905
|
+
* @type {number}
|
|
1906
|
+
* @memberof TxStagesResponseOutboundDelay
|
|
1907
|
+
*/
|
|
1908
|
+
'remaining_delay_seconds'?: number;
|
|
1909
|
+
/**
|
|
1910
|
+
* returns true if no transaction outbound delay remains
|
|
1911
|
+
* @type {boolean}
|
|
1912
|
+
* @memberof TxStagesResponseOutboundDelay
|
|
1913
|
+
*/
|
|
1914
|
+
'completed': boolean;
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @export
|
|
1919
|
+
* @interface TxStagesResponseOutboundSigned
|
|
1920
|
+
*/
|
|
1921
|
+
export interface TxStagesResponseOutboundSigned {
|
|
1922
|
+
/**
|
|
1923
|
+
* THORChain height for which the external outbound is scheduled
|
|
1924
|
+
* @type {number}
|
|
1925
|
+
* @memberof TxStagesResponseOutboundSigned
|
|
1926
|
+
*/
|
|
1927
|
+
'scheduled_outbound_height'?: number;
|
|
1928
|
+
/**
|
|
1929
|
+
* THORChain blocks since the scheduled outbound height
|
|
1930
|
+
* @type {number}
|
|
1931
|
+
* @memberof TxStagesResponseOutboundSigned
|
|
1932
|
+
*/
|
|
1933
|
+
'blocks_since_scheduled'?: number;
|
|
1934
|
+
/**
|
|
1935
|
+
* returns true if an external transaction has been signed and broadcast (and observed in its mempool)
|
|
1936
|
+
* @type {boolean}
|
|
1937
|
+
* @memberof TxStagesResponseOutboundSigned
|
|
1938
|
+
*/
|
|
1939
|
+
'completed': boolean;
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
*
|
|
1943
|
+
* @export
|
|
1944
|
+
* @interface TxStatusResponse
|
|
1945
|
+
*/
|
|
1946
|
+
export interface TxStatusResponse {
|
|
1947
|
+
/**
|
|
1948
|
+
*
|
|
1949
|
+
* @type {Tx}
|
|
1950
|
+
* @memberof TxStatusResponse
|
|
1951
|
+
*/
|
|
1952
|
+
'tx'?: Tx;
|
|
1953
|
+
/**
|
|
1954
|
+
*
|
|
1955
|
+
* @type {Array<TxStatusResponsePlannedOutTxsInner>}
|
|
1956
|
+
* @memberof TxStatusResponse
|
|
1957
|
+
*/
|
|
1958
|
+
'planned_out_txs'?: Array<TxStatusResponsePlannedOutTxsInner>;
|
|
1959
|
+
/**
|
|
1960
|
+
*
|
|
1961
|
+
* @type {Array<Tx>}
|
|
1962
|
+
* @memberof TxStatusResponse
|
|
1963
|
+
*/
|
|
1964
|
+
'out_txs'?: Array<Tx>;
|
|
1965
|
+
/**
|
|
1966
|
+
*
|
|
1967
|
+
* @type {TxStagesResponse}
|
|
1968
|
+
* @memberof TxStatusResponse
|
|
1969
|
+
*/
|
|
1970
|
+
'stages': TxStagesResponse;
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
*
|
|
1974
|
+
* @export
|
|
1975
|
+
* @interface TxStatusResponsePlannedOutTxsInner
|
|
1976
|
+
*/
|
|
1977
|
+
export interface TxStatusResponsePlannedOutTxsInner {
|
|
1978
|
+
/**
|
|
1979
|
+
*
|
|
1980
|
+
* @type {string}
|
|
1981
|
+
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
1982
|
+
*/
|
|
1983
|
+
'chain': string;
|
|
1984
|
+
/**
|
|
1985
|
+
*
|
|
1986
|
+
* @type {string}
|
|
1987
|
+
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
1988
|
+
*/
|
|
1989
|
+
'to_address': string;
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @type {Coin}
|
|
1993
|
+
* @memberof TxStatusResponsePlannedOutTxsInner
|
|
1994
|
+
*/
|
|
1995
|
+
'coin': Coin;
|
|
1996
|
+
}
|
|
1706
1997
|
/**
|
|
1707
1998
|
*
|
|
1708
1999
|
* @export
|
|
@@ -3034,7 +3325,7 @@ export declare const SaversApiFp: (configuration?: Configuration | undefined) =>
|
|
|
3034
3325
|
* @param {*} [options] Override http request option.
|
|
3035
3326
|
* @throws {RequiredError}
|
|
3036
3327
|
*/
|
|
3037
|
-
saver(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
3328
|
+
saver(asset: string, address: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Saver>>;
|
|
3038
3329
|
/**
|
|
3039
3330
|
* Returns all savers for the savers pool.
|
|
3040
3331
|
* @param {string} asset
|
|
@@ -3042,7 +3333,7 @@ export declare const SaversApiFp: (configuration?: Configuration | undefined) =>
|
|
|
3042
3333
|
* @param {*} [options] Override http request option.
|
|
3043
3334
|
* @throws {RequiredError}
|
|
3044
3335
|
*/
|
|
3045
|
-
savers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
3336
|
+
savers(asset: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SaversResponse>>;
|
|
3046
3337
|
};
|
|
3047
3338
|
/**
|
|
3048
3339
|
* SaversApi - factory interface
|
|
@@ -3057,7 +3348,7 @@ export declare const SaversApiFactory: (configuration?: Configuration | undefine
|
|
|
3057
3348
|
* @param {*} [options] Override http request option.
|
|
3058
3349
|
* @throws {RequiredError}
|
|
3059
3350
|
*/
|
|
3060
|
-
saver(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
3351
|
+
saver(asset: string, address: string, height?: number | undefined, options?: any): AxiosPromise<Saver>;
|
|
3061
3352
|
/**
|
|
3062
3353
|
* Returns all savers for the savers pool.
|
|
3063
3354
|
* @param {string} asset
|
|
@@ -3065,7 +3356,7 @@ export declare const SaversApiFactory: (configuration?: Configuration | undefine
|
|
|
3065
3356
|
* @param {*} [options] Override http request option.
|
|
3066
3357
|
* @throws {RequiredError}
|
|
3067
3358
|
*/
|
|
3068
|
-
savers(asset: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
3359
|
+
savers(asset: string, height?: number | undefined, options?: any): AxiosPromise<SaversResponse>;
|
|
3069
3360
|
};
|
|
3070
3361
|
/**
|
|
3071
3362
|
* SaversApi - object-oriented interface
|
|
@@ -3083,7 +3374,7 @@ export declare class SaversApi extends BaseAPI {
|
|
|
3083
3374
|
* @throws {RequiredError}
|
|
3084
3375
|
* @memberof SaversApi
|
|
3085
3376
|
*/
|
|
3086
|
-
saver(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3377
|
+
saver(asset: string, address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Saver, any>>;
|
|
3087
3378
|
/**
|
|
3088
3379
|
* Returns all savers for the savers pool.
|
|
3089
3380
|
* @param {string} asset
|
|
@@ -3092,7 +3383,7 @@ export declare class SaversApi extends BaseAPI {
|
|
|
3092
3383
|
* @throws {RequiredError}
|
|
3093
3384
|
* @memberof SaversApi
|
|
3094
3385
|
*/
|
|
3095
|
-
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3386
|
+
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SaversResponse, any>>;
|
|
3096
3387
|
}
|
|
3097
3388
|
/**
|
|
3098
3389
|
* TSSApi - axios parameter creator
|
|
@@ -3324,6 +3615,30 @@ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configur
|
|
|
3324
3615
|
* @throws {RequiredError}
|
|
3325
3616
|
*/
|
|
3326
3617
|
txSigners: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3618
|
+
/**
|
|
3619
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3620
|
+
* @param {string} hash
|
|
3621
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3622
|
+
* @param {*} [options] Override http request option.
|
|
3623
|
+
* @throws {RequiredError}
|
|
3624
|
+
*/
|
|
3625
|
+
txSignersOld: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3626
|
+
/**
|
|
3627
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3628
|
+
* @param {string} hash
|
|
3629
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3630
|
+
* @param {*} [options] Override http request option.
|
|
3631
|
+
* @throws {RequiredError}
|
|
3632
|
+
*/
|
|
3633
|
+
txStages: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3634
|
+
/**
|
|
3635
|
+
* Returns the status of a provided inbound hash.
|
|
3636
|
+
* @param {string} hash
|
|
3637
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3638
|
+
* @param {*} [options] Override http request option.
|
|
3639
|
+
* @throws {RequiredError}
|
|
3640
|
+
*/
|
|
3641
|
+
txStatus: (hash: string, height?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3327
3642
|
};
|
|
3328
3643
|
/**
|
|
3329
3644
|
* TransactionsApi - functional programming interface
|
|
@@ -3345,7 +3660,31 @@ export declare const TransactionsApiFp: (configuration?: Configuration | undefin
|
|
|
3345
3660
|
* @param {*} [options] Override http request option.
|
|
3346
3661
|
* @throws {RequiredError}
|
|
3347
3662
|
*/
|
|
3348
|
-
txSigners(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
3663
|
+
txSigners(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxDetailsResponse>>;
|
|
3664
|
+
/**
|
|
3665
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3666
|
+
* @param {string} hash
|
|
3667
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3668
|
+
* @param {*} [options] Override http request option.
|
|
3669
|
+
* @throws {RequiredError}
|
|
3670
|
+
*/
|
|
3671
|
+
txSignersOld(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxSignersResponse>>;
|
|
3672
|
+
/**
|
|
3673
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3674
|
+
* @param {string} hash
|
|
3675
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3676
|
+
* @param {*} [options] Override http request option.
|
|
3677
|
+
* @throws {RequiredError}
|
|
3678
|
+
*/
|
|
3679
|
+
txStages(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxStagesResponse>>;
|
|
3680
|
+
/**
|
|
3681
|
+
* Returns the status of a provided inbound hash.
|
|
3682
|
+
* @param {string} hash
|
|
3683
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3684
|
+
* @param {*} [options] Override http request option.
|
|
3685
|
+
* @throws {RequiredError}
|
|
3686
|
+
*/
|
|
3687
|
+
txStatus(hash: string, height?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxStatusResponse>>;
|
|
3349
3688
|
};
|
|
3350
3689
|
/**
|
|
3351
3690
|
* TransactionsApi - factory interface
|
|
@@ -3367,7 +3706,31 @@ export declare const TransactionsApiFactory: (configuration?: Configuration | un
|
|
|
3367
3706
|
* @param {*} [options] Override http request option.
|
|
3368
3707
|
* @throws {RequiredError}
|
|
3369
3708
|
*/
|
|
3370
|
-
txSigners(hash: string, height?: number | undefined, options?: any): AxiosPromise<
|
|
3709
|
+
txSigners(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxDetailsResponse>;
|
|
3710
|
+
/**
|
|
3711
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3712
|
+
* @param {string} hash
|
|
3713
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3714
|
+
* @param {*} [options] Override http request option.
|
|
3715
|
+
* @throws {RequiredError}
|
|
3716
|
+
*/
|
|
3717
|
+
txSignersOld(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxSignersResponse>;
|
|
3718
|
+
/**
|
|
3719
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3720
|
+
* @param {string} hash
|
|
3721
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3722
|
+
* @param {*} [options] Override http request option.
|
|
3723
|
+
* @throws {RequiredError}
|
|
3724
|
+
*/
|
|
3725
|
+
txStages(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxStagesResponse>;
|
|
3726
|
+
/**
|
|
3727
|
+
* Returns the status of a provided inbound hash.
|
|
3728
|
+
* @param {string} hash
|
|
3729
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
*/
|
|
3733
|
+
txStatus(hash: string, height?: number | undefined, options?: any): AxiosPromise<TxStatusResponse>;
|
|
3371
3734
|
};
|
|
3372
3735
|
/**
|
|
3373
3736
|
* TransactionsApi - object-oriented interface
|
|
@@ -3393,7 +3756,34 @@ export declare class TransactionsApi extends BaseAPI {
|
|
|
3393
3756
|
* @throws {RequiredError}
|
|
3394
3757
|
* @memberof TransactionsApi
|
|
3395
3758
|
*/
|
|
3396
|
-
txSigners(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3759
|
+
txSigners(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxDetailsResponse, any>>;
|
|
3760
|
+
/**
|
|
3761
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3762
|
+
* @param {string} hash
|
|
3763
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3764
|
+
* @param {*} [options] Override http request option.
|
|
3765
|
+
* @throws {RequiredError}
|
|
3766
|
+
* @memberof TransactionsApi
|
|
3767
|
+
*/
|
|
3768
|
+
txSignersOld(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxSignersResponse, any>>;
|
|
3769
|
+
/**
|
|
3770
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3771
|
+
* @param {string} hash
|
|
3772
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3773
|
+
* @param {*} [options] Override http request option.
|
|
3774
|
+
* @throws {RequiredError}
|
|
3775
|
+
* @memberof TransactionsApi
|
|
3776
|
+
*/
|
|
3777
|
+
txStages(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxStagesResponse, any>>;
|
|
3778
|
+
/**
|
|
3779
|
+
* Returns the status of a provided inbound hash.
|
|
3780
|
+
* @param {string} hash
|
|
3781
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3782
|
+
* @param {*} [options] Override http request option.
|
|
3783
|
+
* @throws {RequiredError}
|
|
3784
|
+
* @memberof TransactionsApi
|
|
3785
|
+
*/
|
|
3786
|
+
txStatus(hash: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxStatusResponse, any>>;
|
|
3397
3787
|
}
|
|
3398
3788
|
/**
|
|
3399
3789
|
* VaultsApi - axios parameter creator
|
|
@@ -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.102.0
|
|
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.102.0
|
|
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.102.0
|
|
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.102.0
|
|
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
|
@@ -2776,6 +2776,38 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2776
2776
|
txSigners: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2777
2777
|
// verify required parameter 'hash' is not null or undefined
|
|
2778
2778
|
assertParamExists('txSigners', 'hash', hash);
|
|
2779
|
+
const localVarPath = `/thorchain/tx/details/{hash}`
|
|
2780
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2781
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2782
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2783
|
+
let baseOptions;
|
|
2784
|
+
if (configuration) {
|
|
2785
|
+
baseOptions = configuration.baseOptions;
|
|
2786
|
+
}
|
|
2787
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2788
|
+
const localVarHeaderParameter = {};
|
|
2789
|
+
const localVarQueryParameter = {};
|
|
2790
|
+
if (height !== undefined) {
|
|
2791
|
+
localVarQueryParameter['height'] = height;
|
|
2792
|
+
}
|
|
2793
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2795
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2796
|
+
return {
|
|
2797
|
+
url: toPathString(localVarUrlObj),
|
|
2798
|
+
options: localVarRequestOptions,
|
|
2799
|
+
};
|
|
2800
|
+
}),
|
|
2801
|
+
/**
|
|
2802
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2803
|
+
* @param {string} hash
|
|
2804
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2805
|
+
* @param {*} [options] Override http request option.
|
|
2806
|
+
* @throws {RequiredError}
|
|
2807
|
+
*/
|
|
2808
|
+
txSignersOld: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2809
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2810
|
+
assertParamExists('txSignersOld', 'hash', hash);
|
|
2779
2811
|
const localVarPath = `/thorchain/tx/{hash}/signers`
|
|
2780
2812
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2781
2813
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2798,6 +2830,70 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2798
2830
|
options: localVarRequestOptions,
|
|
2799
2831
|
};
|
|
2800
2832
|
}),
|
|
2833
|
+
/**
|
|
2834
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2835
|
+
* @param {string} hash
|
|
2836
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2837
|
+
* @param {*} [options] Override http request option.
|
|
2838
|
+
* @throws {RequiredError}
|
|
2839
|
+
*/
|
|
2840
|
+
txStages: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2841
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2842
|
+
assertParamExists('txStages', 'hash', hash);
|
|
2843
|
+
const localVarPath = `/thorchain/alpha/tx/stages/{hash}`
|
|
2844
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2845
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2847
|
+
let baseOptions;
|
|
2848
|
+
if (configuration) {
|
|
2849
|
+
baseOptions = configuration.baseOptions;
|
|
2850
|
+
}
|
|
2851
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2852
|
+
const localVarHeaderParameter = {};
|
|
2853
|
+
const localVarQueryParameter = {};
|
|
2854
|
+
if (height !== undefined) {
|
|
2855
|
+
localVarQueryParameter['height'] = height;
|
|
2856
|
+
}
|
|
2857
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2858
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2859
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2860
|
+
return {
|
|
2861
|
+
url: toPathString(localVarUrlObj),
|
|
2862
|
+
options: localVarRequestOptions,
|
|
2863
|
+
};
|
|
2864
|
+
}),
|
|
2865
|
+
/**
|
|
2866
|
+
* Returns the status of a provided inbound hash.
|
|
2867
|
+
* @param {string} hash
|
|
2868
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2869
|
+
* @param {*} [options] Override http request option.
|
|
2870
|
+
* @throws {RequiredError}
|
|
2871
|
+
*/
|
|
2872
|
+
txStatus: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2873
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2874
|
+
assertParamExists('txStatus', 'hash', hash);
|
|
2875
|
+
const localVarPath = `/thorchain/alpha/tx/status/{hash}`
|
|
2876
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2877
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2878
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2879
|
+
let baseOptions;
|
|
2880
|
+
if (configuration) {
|
|
2881
|
+
baseOptions = configuration.baseOptions;
|
|
2882
|
+
}
|
|
2883
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2884
|
+
const localVarHeaderParameter = {};
|
|
2885
|
+
const localVarQueryParameter = {};
|
|
2886
|
+
if (height !== undefined) {
|
|
2887
|
+
localVarQueryParameter['height'] = height;
|
|
2888
|
+
}
|
|
2889
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2891
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2892
|
+
return {
|
|
2893
|
+
url: toPathString(localVarUrlObj),
|
|
2894
|
+
options: localVarRequestOptions,
|
|
2895
|
+
};
|
|
2896
|
+
}),
|
|
2801
2897
|
};
|
|
2802
2898
|
};
|
|
2803
2899
|
/**
|
|
@@ -2833,6 +2929,45 @@ const TransactionsApiFp = function (configuration) {
|
|
|
2833
2929
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2834
2930
|
});
|
|
2835
2931
|
},
|
|
2932
|
+
/**
|
|
2933
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2934
|
+
* @param {string} hash
|
|
2935
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2936
|
+
* @param {*} [options] Override http request option.
|
|
2937
|
+
* @throws {RequiredError}
|
|
2938
|
+
*/
|
|
2939
|
+
txSignersOld(hash, height, options) {
|
|
2940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txSignersOld(hash, height, options);
|
|
2942
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2943
|
+
});
|
|
2944
|
+
},
|
|
2945
|
+
/**
|
|
2946
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2947
|
+
* @param {string} hash
|
|
2948
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2949
|
+
* @param {*} [options] Override http request option.
|
|
2950
|
+
* @throws {RequiredError}
|
|
2951
|
+
*/
|
|
2952
|
+
txStages(hash, height, options) {
|
|
2953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2954
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStages(hash, height, options);
|
|
2955
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2956
|
+
});
|
|
2957
|
+
},
|
|
2958
|
+
/**
|
|
2959
|
+
* Returns the status of a provided inbound hash.
|
|
2960
|
+
* @param {string} hash
|
|
2961
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2962
|
+
* @param {*} [options] Override http request option.
|
|
2963
|
+
* @throws {RequiredError}
|
|
2964
|
+
*/
|
|
2965
|
+
txStatus(hash, height, options) {
|
|
2966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2967
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStatus(hash, height, options);
|
|
2968
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2969
|
+
});
|
|
2970
|
+
},
|
|
2836
2971
|
};
|
|
2837
2972
|
};
|
|
2838
2973
|
/**
|
|
@@ -2862,6 +2997,36 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
2862
2997
|
txSigners(hash, height, options) {
|
|
2863
2998
|
return localVarFp.txSigners(hash, height, options).then((request) => request(axios, basePath));
|
|
2864
2999
|
},
|
|
3000
|
+
/**
|
|
3001
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3002
|
+
* @param {string} hash
|
|
3003
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3004
|
+
* @param {*} [options] Override http request option.
|
|
3005
|
+
* @throws {RequiredError}
|
|
3006
|
+
*/
|
|
3007
|
+
txSignersOld(hash, height, options) {
|
|
3008
|
+
return localVarFp.txSignersOld(hash, height, options).then((request) => request(axios, basePath));
|
|
3009
|
+
},
|
|
3010
|
+
/**
|
|
3011
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3012
|
+
* @param {string} hash
|
|
3013
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3014
|
+
* @param {*} [options] Override http request option.
|
|
3015
|
+
* @throws {RequiredError}
|
|
3016
|
+
*/
|
|
3017
|
+
txStages(hash, height, options) {
|
|
3018
|
+
return localVarFp.txStages(hash, height, options).then((request) => request(axios, basePath));
|
|
3019
|
+
},
|
|
3020
|
+
/**
|
|
3021
|
+
* Returns the status of a provided inbound hash.
|
|
3022
|
+
* @param {string} hash
|
|
3023
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3024
|
+
* @param {*} [options] Override http request option.
|
|
3025
|
+
* @throws {RequiredError}
|
|
3026
|
+
*/
|
|
3027
|
+
txStatus(hash, height, options) {
|
|
3028
|
+
return localVarFp.txStatus(hash, height, options).then((request) => request(axios, basePath));
|
|
3029
|
+
},
|
|
2865
3030
|
};
|
|
2866
3031
|
};
|
|
2867
3032
|
/**
|
|
@@ -2893,6 +3058,39 @@ class TransactionsApi extends BaseAPI {
|
|
|
2893
3058
|
txSigners(hash, height, options) {
|
|
2894
3059
|
return TransactionsApiFp(this.configuration).txSigners(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
2895
3060
|
}
|
|
3061
|
+
/**
|
|
3062
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3063
|
+
* @param {string} hash
|
|
3064
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3065
|
+
* @param {*} [options] Override http request option.
|
|
3066
|
+
* @throws {RequiredError}
|
|
3067
|
+
* @memberof TransactionsApi
|
|
3068
|
+
*/
|
|
3069
|
+
txSignersOld(hash, height, options) {
|
|
3070
|
+
return TransactionsApiFp(this.configuration).txSignersOld(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3071
|
+
}
|
|
3072
|
+
/**
|
|
3073
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3074
|
+
* @param {string} hash
|
|
3075
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3076
|
+
* @param {*} [options] Override http request option.
|
|
3077
|
+
* @throws {RequiredError}
|
|
3078
|
+
* @memberof TransactionsApi
|
|
3079
|
+
*/
|
|
3080
|
+
txStages(hash, height, options) {
|
|
3081
|
+
return TransactionsApiFp(this.configuration).txStages(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Returns the status of a provided inbound hash.
|
|
3085
|
+
* @param {string} hash
|
|
3086
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3087
|
+
* @param {*} [options] Override http request option.
|
|
3088
|
+
* @throws {RequiredError}
|
|
3089
|
+
* @memberof TransactionsApi
|
|
3090
|
+
*/
|
|
3091
|
+
txStatus(hash, height, options) {
|
|
3092
|
+
return TransactionsApiFp(this.configuration).txStatus(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3093
|
+
}
|
|
2896
3094
|
}
|
|
2897
3095
|
/**
|
|
2898
3096
|
* VaultsApi - axios parameter creator
|
|
@@ -3178,7 +3376,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3178
3376
|
* Thornode API
|
|
3179
3377
|
* Thornode REST API.
|
|
3180
3378
|
*
|
|
3181
|
-
* The version of the OpenAPI document: 1.
|
|
3379
|
+
* The version of the OpenAPI document: 1.102.0
|
|
3182
3380
|
* Contact: devs@thorchain.org
|
|
3183
3381
|
*
|
|
3184
3382
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.js
CHANGED
|
@@ -2784,6 +2784,38 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2784
2784
|
txSigners: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2785
2785
|
// verify required parameter 'hash' is not null or undefined
|
|
2786
2786
|
assertParamExists('txSigners', 'hash', hash);
|
|
2787
|
+
const localVarPath = `/thorchain/tx/details/{hash}`
|
|
2788
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2789
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2790
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2791
|
+
let baseOptions;
|
|
2792
|
+
if (configuration) {
|
|
2793
|
+
baseOptions = configuration.baseOptions;
|
|
2794
|
+
}
|
|
2795
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2796
|
+
const localVarHeaderParameter = {};
|
|
2797
|
+
const localVarQueryParameter = {};
|
|
2798
|
+
if (height !== undefined) {
|
|
2799
|
+
localVarQueryParameter['height'] = height;
|
|
2800
|
+
}
|
|
2801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2803
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2804
|
+
return {
|
|
2805
|
+
url: toPathString(localVarUrlObj),
|
|
2806
|
+
options: localVarRequestOptions,
|
|
2807
|
+
};
|
|
2808
|
+
}),
|
|
2809
|
+
/**
|
|
2810
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2811
|
+
* @param {string} hash
|
|
2812
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2813
|
+
* @param {*} [options] Override http request option.
|
|
2814
|
+
* @throws {RequiredError}
|
|
2815
|
+
*/
|
|
2816
|
+
txSignersOld: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2817
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2818
|
+
assertParamExists('txSignersOld', 'hash', hash);
|
|
2787
2819
|
const localVarPath = `/thorchain/tx/{hash}/signers`
|
|
2788
2820
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2789
2821
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2806,6 +2838,70 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2806
2838
|
options: localVarRequestOptions,
|
|
2807
2839
|
};
|
|
2808
2840
|
}),
|
|
2841
|
+
/**
|
|
2842
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2843
|
+
* @param {string} hash
|
|
2844
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2845
|
+
* @param {*} [options] Override http request option.
|
|
2846
|
+
* @throws {RequiredError}
|
|
2847
|
+
*/
|
|
2848
|
+
txStages: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2849
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2850
|
+
assertParamExists('txStages', 'hash', hash);
|
|
2851
|
+
const localVarPath = `/thorchain/alpha/tx/stages/{hash}`
|
|
2852
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2853
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2854
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2855
|
+
let baseOptions;
|
|
2856
|
+
if (configuration) {
|
|
2857
|
+
baseOptions = configuration.baseOptions;
|
|
2858
|
+
}
|
|
2859
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2860
|
+
const localVarHeaderParameter = {};
|
|
2861
|
+
const localVarQueryParameter = {};
|
|
2862
|
+
if (height !== undefined) {
|
|
2863
|
+
localVarQueryParameter['height'] = height;
|
|
2864
|
+
}
|
|
2865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2867
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2868
|
+
return {
|
|
2869
|
+
url: toPathString(localVarUrlObj),
|
|
2870
|
+
options: localVarRequestOptions,
|
|
2871
|
+
};
|
|
2872
|
+
}),
|
|
2873
|
+
/**
|
|
2874
|
+
* Returns the status of a provided inbound hash.
|
|
2875
|
+
* @param {string} hash
|
|
2876
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2877
|
+
* @param {*} [options] Override http request option.
|
|
2878
|
+
* @throws {RequiredError}
|
|
2879
|
+
*/
|
|
2880
|
+
txStatus: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2881
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2882
|
+
assertParamExists('txStatus', 'hash', hash);
|
|
2883
|
+
const localVarPath = `/thorchain/alpha/tx/status/{hash}`
|
|
2884
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2885
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2886
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2887
|
+
let baseOptions;
|
|
2888
|
+
if (configuration) {
|
|
2889
|
+
baseOptions = configuration.baseOptions;
|
|
2890
|
+
}
|
|
2891
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2892
|
+
const localVarHeaderParameter = {};
|
|
2893
|
+
const localVarQueryParameter = {};
|
|
2894
|
+
if (height !== undefined) {
|
|
2895
|
+
localVarQueryParameter['height'] = height;
|
|
2896
|
+
}
|
|
2897
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2898
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2899
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2900
|
+
return {
|
|
2901
|
+
url: toPathString(localVarUrlObj),
|
|
2902
|
+
options: localVarRequestOptions,
|
|
2903
|
+
};
|
|
2904
|
+
}),
|
|
2809
2905
|
};
|
|
2810
2906
|
};
|
|
2811
2907
|
/**
|
|
@@ -2841,6 +2937,45 @@ const TransactionsApiFp = function (configuration) {
|
|
|
2841
2937
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2842
2938
|
});
|
|
2843
2939
|
},
|
|
2940
|
+
/**
|
|
2941
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2942
|
+
* @param {string} hash
|
|
2943
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2944
|
+
* @param {*} [options] Override http request option.
|
|
2945
|
+
* @throws {RequiredError}
|
|
2946
|
+
*/
|
|
2947
|
+
txSignersOld(hash, height, options) {
|
|
2948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txSignersOld(hash, height, options);
|
|
2950
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2951
|
+
});
|
|
2952
|
+
},
|
|
2953
|
+
/**
|
|
2954
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2955
|
+
* @param {string} hash
|
|
2956
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2957
|
+
* @param {*} [options] Override http request option.
|
|
2958
|
+
* @throws {RequiredError}
|
|
2959
|
+
*/
|
|
2960
|
+
txStages(hash, height, options) {
|
|
2961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2962
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStages(hash, height, options);
|
|
2963
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2964
|
+
});
|
|
2965
|
+
},
|
|
2966
|
+
/**
|
|
2967
|
+
* Returns the status of a provided inbound hash.
|
|
2968
|
+
* @param {string} hash
|
|
2969
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
txStatus(hash, height, options) {
|
|
2974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStatus(hash, height, options);
|
|
2976
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2977
|
+
});
|
|
2978
|
+
},
|
|
2844
2979
|
};
|
|
2845
2980
|
};
|
|
2846
2981
|
/**
|
|
@@ -2870,6 +3005,36 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
2870
3005
|
txSigners(hash, height, options) {
|
|
2871
3006
|
return localVarFp.txSigners(hash, height, options).then((request) => request(axios, basePath));
|
|
2872
3007
|
},
|
|
3008
|
+
/**
|
|
3009
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3010
|
+
* @param {string} hash
|
|
3011
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3012
|
+
* @param {*} [options] Override http request option.
|
|
3013
|
+
* @throws {RequiredError}
|
|
3014
|
+
*/
|
|
3015
|
+
txSignersOld(hash, height, options) {
|
|
3016
|
+
return localVarFp.txSignersOld(hash, height, options).then((request) => request(axios, basePath));
|
|
3017
|
+
},
|
|
3018
|
+
/**
|
|
3019
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3020
|
+
* @param {string} hash
|
|
3021
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3022
|
+
* @param {*} [options] Override http request option.
|
|
3023
|
+
* @throws {RequiredError}
|
|
3024
|
+
*/
|
|
3025
|
+
txStages(hash, height, options) {
|
|
3026
|
+
return localVarFp.txStages(hash, height, options).then((request) => request(axios, basePath));
|
|
3027
|
+
},
|
|
3028
|
+
/**
|
|
3029
|
+
* Returns the status of a provided inbound hash.
|
|
3030
|
+
* @param {string} hash
|
|
3031
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3032
|
+
* @param {*} [options] Override http request option.
|
|
3033
|
+
* @throws {RequiredError}
|
|
3034
|
+
*/
|
|
3035
|
+
txStatus(hash, height, options) {
|
|
3036
|
+
return localVarFp.txStatus(hash, height, options).then((request) => request(axios, basePath));
|
|
3037
|
+
},
|
|
2873
3038
|
};
|
|
2874
3039
|
};
|
|
2875
3040
|
/**
|
|
@@ -2901,6 +3066,39 @@ class TransactionsApi extends BaseAPI {
|
|
|
2901
3066
|
txSigners(hash, height, options) {
|
|
2902
3067
|
return TransactionsApiFp(this.configuration).txSigners(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
2903
3068
|
}
|
|
3069
|
+
/**
|
|
3070
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3071
|
+
* @param {string} hash
|
|
3072
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3073
|
+
* @param {*} [options] Override http request option.
|
|
3074
|
+
* @throws {RequiredError}
|
|
3075
|
+
* @memberof TransactionsApi
|
|
3076
|
+
*/
|
|
3077
|
+
txSignersOld(hash, height, options) {
|
|
3078
|
+
return TransactionsApiFp(this.configuration).txSignersOld(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3079
|
+
}
|
|
3080
|
+
/**
|
|
3081
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3082
|
+
* @param {string} hash
|
|
3083
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3084
|
+
* @param {*} [options] Override http request option.
|
|
3085
|
+
* @throws {RequiredError}
|
|
3086
|
+
* @memberof TransactionsApi
|
|
3087
|
+
*/
|
|
3088
|
+
txStages(hash, height, options) {
|
|
3089
|
+
return TransactionsApiFp(this.configuration).txStages(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3090
|
+
}
|
|
3091
|
+
/**
|
|
3092
|
+
* Returns the status of a provided inbound hash.
|
|
3093
|
+
* @param {string} hash
|
|
3094
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3095
|
+
* @param {*} [options] Override http request option.
|
|
3096
|
+
* @throws {RequiredError}
|
|
3097
|
+
* @memberof TransactionsApi
|
|
3098
|
+
*/
|
|
3099
|
+
txStatus(hash, height, options) {
|
|
3100
|
+
return TransactionsApiFp(this.configuration).txStatus(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3101
|
+
}
|
|
2904
3102
|
}
|
|
2905
3103
|
/**
|
|
2906
3104
|
* VaultsApi - axios parameter creator
|
|
@@ -3186,7 +3384,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3186
3384
|
* Thornode API
|
|
3187
3385
|
* Thornode REST API.
|
|
3188
3386
|
*
|
|
3189
|
-
* The version of the OpenAPI document: 1.
|
|
3387
|
+
* The version of the OpenAPI document: 1.102.0
|
|
3190
3388
|
* Contact: devs@thorchain.org
|
|
3191
3389
|
*
|
|
3192
3390
|
* 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.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thornode module that exposes all thornode functions using openapi-generator-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
|
|
30
30
|
"prepublishOnly": "yarn run build",
|
|
31
31
|
"test": "jest --passWithNoTests",
|
|
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.
|
|
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.102.0/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": {
|
package/CHANGELOG.md
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# v0.1.4 (2022-12-08)
|
|
2
|
-
|
|
3
|
-
## Update
|
|
4
|
-
|
|
5
|
-
- Update to latest THORNode 1.101.0
|
|
6
|
-
|
|
7
|
-
# v0.1.3 (2022-12-07)
|
|
8
|
-
|
|
9
|
-
## Update
|
|
10
|
-
|
|
11
|
-
- Update to latest THORNode 1.100.0
|
|
12
|
-
- support custom headers
|
|
13
|
-
- set default 'x-client-id' in all calls
|
|
14
|
-
|
|
15
|
-
# v0.1.2 (2022-11-11)
|
|
16
|
-
|
|
17
|
-
## Update
|
|
18
|
-
|
|
19
|
-
- Update to latest THORNode 1.99.0
|
|
20
|
-
|
|
21
|
-
# v0.1.1 (2022-10-24)
|
|
22
|
-
|
|
23
|
-
## Update
|
|
24
|
-
|
|
25
|
-
- Update to latest THORNode 1.98.0
|
|
26
|
-
|
|
27
|
-
# v0.0.1.0 (2022-10-04)
|
|
28
|
-
|
|
29
|
-
## Update
|
|
30
|
-
|
|
31
|
-
- Update to latest THORNode 1.97.2
|
|
32
|
-
|
|
33
|
-
# v0.0.1.0-alpha4 (2022-08-20)
|
|
34
|
-
|
|
35
|
-
## Update
|
|
36
|
-
|
|
37
|
-
- Update to latest THORNode 1.95.0
|
|
38
|
-
- Generate files from `*.yaml` (to avoid extra step of convertion to `*.json`)
|
|
39
|
-
- Remove `yamljs`
|
|
40
|
-
|
|
41
|
-
# v0.0.1.0-alpha3 (2022-07-21)
|
|
42
|
-
|
|
43
|
-
???
|
|
44
|
-
|
|
45
|
-
# v0.0.1.0-alpha2 (2022-07-7)
|
|
46
|
-
|
|
47
|
-
## Fix
|
|
48
|
-
|
|
49
|
-
- Fix `OutboundProcess and ScheduledOutbound` exported interfaces, by preprocessing yaml->json (https://github.com/OpenAPITools/openapi-generator/issues/1593)
|
|
50
|
-
|
|
51
|
-
# v0.0.1.0-alpha (2022-07-4)
|
|
52
|
-
|
|
53
|
-
## Module Created
|