@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,14 +2,14 @@
|
|
|
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).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Configuration } from
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
13
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
@@ -50,6 +50,6 @@ export declare class BaseAPI {
|
|
|
50
50
|
*/
|
|
51
51
|
export declare class RequiredError extends Error {
|
|
52
52
|
field: string;
|
|
53
|
-
name:
|
|
53
|
+
name: "RequiredError";
|
|
54
54
|
constructor(field: string, msg?: string);
|
|
55
55
|
}
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
package/lib/index.esm.js
CHANGED
|
@@ -26,7 +26,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* tslint:disable */
|
|
29
|
-
const BASE_PATH =
|
|
29
|
+
const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @export
|
|
@@ -52,7 +52,7 @@ class RequiredError extends Error {
|
|
|
52
52
|
constructor(field, msg) {
|
|
53
53
|
super(msg);
|
|
54
54
|
this.field = field;
|
|
55
|
-
this.name =
|
|
55
|
+
this.name = "RequiredError";
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -1965,13 +1965,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
1965
1965
|
* @param {string} [toAsset] the target asset
|
|
1966
1966
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
1967
1967
|
* @param {string} [destination] the destination address, required to generate memo
|
|
1968
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
1968
1969
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
1969
1970
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
1970
1971
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
1971
1972
|
* @param {*} [options] Override http request option.
|
|
1972
1973
|
* @throws {RequiredError}
|
|
1973
1974
|
*/
|
|
1974
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1975
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1975
1976
|
const localVarPath = `/thorchain/quote/swap`;
|
|
1976
1977
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1977
1978
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1997,6 +1998,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
1997
1998
|
if (destination !== undefined) {
|
|
1998
1999
|
localVarQueryParameter['destination'] = destination;
|
|
1999
2000
|
}
|
|
2001
|
+
if (fromAddress !== undefined) {
|
|
2002
|
+
localVarQueryParameter['from_address'] = fromAddress;
|
|
2003
|
+
}
|
|
2000
2004
|
if (toleranceBps !== undefined) {
|
|
2001
2005
|
localVarQueryParameter['tolerance_bps'] = toleranceBps;
|
|
2002
2006
|
}
|
|
@@ -2059,15 +2063,16 @@ const QuoteApiFp = function (configuration) {
|
|
|
2059
2063
|
* @param {string} [toAsset] the target asset
|
|
2060
2064
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2061
2065
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2066
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2062
2067
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2063
2068
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2064
2069
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2065
2070
|
* @param {*} [options] Override http request option.
|
|
2066
2071
|
* @throws {RequiredError}
|
|
2067
2072
|
*/
|
|
2068
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
|
|
2073
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2069
2074
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2070
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options);
|
|
2075
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options);
|
|
2071
2076
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2072
2077
|
});
|
|
2073
2078
|
},
|
|
@@ -2110,14 +2115,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2110
2115
|
* @param {string} [toAsset] the target asset
|
|
2111
2116
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2112
2117
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2118
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2113
2119
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2114
2120
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2115
2121
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2116
2122
|
* @param {*} [options] Override http request option.
|
|
2117
2123
|
* @throws {RequiredError}
|
|
2118
2124
|
*/
|
|
2119
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
|
|
2120
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2125
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2126
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2121
2127
|
},
|
|
2122
2128
|
};
|
|
2123
2129
|
};
|
|
@@ -2160,6 +2166,7 @@ class QuoteApi extends BaseAPI {
|
|
|
2160
2166
|
* @param {string} [toAsset] the target asset
|
|
2161
2167
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2162
2168
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2169
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2163
2170
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2164
2171
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2165
2172
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -2167,8 +2174,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2167
2174
|
* @throws {RequiredError}
|
|
2168
2175
|
* @memberof QuoteApi
|
|
2169
2176
|
*/
|
|
2170
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
|
|
2171
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2177
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2178
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2172
2179
|
}
|
|
2173
2180
|
}
|
|
2174
2181
|
/**
|
|
@@ -2776,6 +2783,38 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2776
2783
|
txSigners: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2777
2784
|
// verify required parameter 'hash' is not null or undefined
|
|
2778
2785
|
assertParamExists('txSigners', 'hash', hash);
|
|
2786
|
+
const localVarPath = `/thorchain/tx/details/{hash}`
|
|
2787
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2790
|
+
let baseOptions;
|
|
2791
|
+
if (configuration) {
|
|
2792
|
+
baseOptions = configuration.baseOptions;
|
|
2793
|
+
}
|
|
2794
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2795
|
+
const localVarHeaderParameter = {};
|
|
2796
|
+
const localVarQueryParameter = {};
|
|
2797
|
+
if (height !== undefined) {
|
|
2798
|
+
localVarQueryParameter['height'] = height;
|
|
2799
|
+
}
|
|
2800
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2801
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2802
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2803
|
+
return {
|
|
2804
|
+
url: toPathString(localVarUrlObj),
|
|
2805
|
+
options: localVarRequestOptions,
|
|
2806
|
+
};
|
|
2807
|
+
}),
|
|
2808
|
+
/**
|
|
2809
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2810
|
+
* @param {string} hash
|
|
2811
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2812
|
+
* @param {*} [options] Override http request option.
|
|
2813
|
+
* @throws {RequiredError}
|
|
2814
|
+
*/
|
|
2815
|
+
txSignersOld: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2816
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2817
|
+
assertParamExists('txSignersOld', 'hash', hash);
|
|
2779
2818
|
const localVarPath = `/thorchain/tx/{hash}/signers`
|
|
2780
2819
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2781
2820
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2798,6 +2837,70 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2798
2837
|
options: localVarRequestOptions,
|
|
2799
2838
|
};
|
|
2800
2839
|
}),
|
|
2840
|
+
/**
|
|
2841
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2842
|
+
* @param {string} hash
|
|
2843
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2844
|
+
* @param {*} [options] Override http request option.
|
|
2845
|
+
* @throws {RequiredError}
|
|
2846
|
+
*/
|
|
2847
|
+
txStages: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2848
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2849
|
+
assertParamExists('txStages', 'hash', hash);
|
|
2850
|
+
const localVarPath = `/thorchain/alpha/tx/stages/{hash}`
|
|
2851
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2852
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2853
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2854
|
+
let baseOptions;
|
|
2855
|
+
if (configuration) {
|
|
2856
|
+
baseOptions = configuration.baseOptions;
|
|
2857
|
+
}
|
|
2858
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2859
|
+
const localVarHeaderParameter = {};
|
|
2860
|
+
const localVarQueryParameter = {};
|
|
2861
|
+
if (height !== undefined) {
|
|
2862
|
+
localVarQueryParameter['height'] = height;
|
|
2863
|
+
}
|
|
2864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2866
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2867
|
+
return {
|
|
2868
|
+
url: toPathString(localVarUrlObj),
|
|
2869
|
+
options: localVarRequestOptions,
|
|
2870
|
+
};
|
|
2871
|
+
}),
|
|
2872
|
+
/**
|
|
2873
|
+
* Returns the status of a provided inbound hash.
|
|
2874
|
+
* @param {string} hash
|
|
2875
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2876
|
+
* @param {*} [options] Override http request option.
|
|
2877
|
+
* @throws {RequiredError}
|
|
2878
|
+
*/
|
|
2879
|
+
txStatus: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2880
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2881
|
+
assertParamExists('txStatus', 'hash', hash);
|
|
2882
|
+
const localVarPath = `/thorchain/alpha/tx/status/{hash}`
|
|
2883
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2885
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2886
|
+
let baseOptions;
|
|
2887
|
+
if (configuration) {
|
|
2888
|
+
baseOptions = configuration.baseOptions;
|
|
2889
|
+
}
|
|
2890
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2891
|
+
const localVarHeaderParameter = {};
|
|
2892
|
+
const localVarQueryParameter = {};
|
|
2893
|
+
if (height !== undefined) {
|
|
2894
|
+
localVarQueryParameter['height'] = height;
|
|
2895
|
+
}
|
|
2896
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2898
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2899
|
+
return {
|
|
2900
|
+
url: toPathString(localVarUrlObj),
|
|
2901
|
+
options: localVarRequestOptions,
|
|
2902
|
+
};
|
|
2903
|
+
}),
|
|
2801
2904
|
};
|
|
2802
2905
|
};
|
|
2803
2906
|
/**
|
|
@@ -2833,6 +2936,45 @@ const TransactionsApiFp = function (configuration) {
|
|
|
2833
2936
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2834
2937
|
});
|
|
2835
2938
|
},
|
|
2939
|
+
/**
|
|
2940
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2941
|
+
* @param {string} hash
|
|
2942
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2943
|
+
* @param {*} [options] Override http request option.
|
|
2944
|
+
* @throws {RequiredError}
|
|
2945
|
+
*/
|
|
2946
|
+
txSignersOld(hash, height, options) {
|
|
2947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2948
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txSignersOld(hash, height, options);
|
|
2949
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2950
|
+
});
|
|
2951
|
+
},
|
|
2952
|
+
/**
|
|
2953
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2954
|
+
* @param {string} hash
|
|
2955
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2956
|
+
* @param {*} [options] Override http request option.
|
|
2957
|
+
* @throws {RequiredError}
|
|
2958
|
+
*/
|
|
2959
|
+
txStages(hash, height, options) {
|
|
2960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStages(hash, height, options);
|
|
2962
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2963
|
+
});
|
|
2964
|
+
},
|
|
2965
|
+
/**
|
|
2966
|
+
* Returns the status of a provided inbound hash.
|
|
2967
|
+
* @param {string} hash
|
|
2968
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2969
|
+
* @param {*} [options] Override http request option.
|
|
2970
|
+
* @throws {RequiredError}
|
|
2971
|
+
*/
|
|
2972
|
+
txStatus(hash, height, options) {
|
|
2973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStatus(hash, height, options);
|
|
2975
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2976
|
+
});
|
|
2977
|
+
},
|
|
2836
2978
|
};
|
|
2837
2979
|
};
|
|
2838
2980
|
/**
|
|
@@ -2862,6 +3004,36 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
2862
3004
|
txSigners(hash, height, options) {
|
|
2863
3005
|
return localVarFp.txSigners(hash, height, options).then((request) => request(axios, basePath));
|
|
2864
3006
|
},
|
|
3007
|
+
/**
|
|
3008
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3009
|
+
* @param {string} hash
|
|
3010
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
*/
|
|
3014
|
+
txSignersOld(hash, height, options) {
|
|
3015
|
+
return localVarFp.txSignersOld(hash, height, options).then((request) => request(axios, basePath));
|
|
3016
|
+
},
|
|
3017
|
+
/**
|
|
3018
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3019
|
+
* @param {string} hash
|
|
3020
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3021
|
+
* @param {*} [options] Override http request option.
|
|
3022
|
+
* @throws {RequiredError}
|
|
3023
|
+
*/
|
|
3024
|
+
txStages(hash, height, options) {
|
|
3025
|
+
return localVarFp.txStages(hash, height, options).then((request) => request(axios, basePath));
|
|
3026
|
+
},
|
|
3027
|
+
/**
|
|
3028
|
+
* Returns the status of a provided inbound hash.
|
|
3029
|
+
* @param {string} hash
|
|
3030
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3031
|
+
* @param {*} [options] Override http request option.
|
|
3032
|
+
* @throws {RequiredError}
|
|
3033
|
+
*/
|
|
3034
|
+
txStatus(hash, height, options) {
|
|
3035
|
+
return localVarFp.txStatus(hash, height, options).then((request) => request(axios, basePath));
|
|
3036
|
+
},
|
|
2865
3037
|
};
|
|
2866
3038
|
};
|
|
2867
3039
|
/**
|
|
@@ -2893,6 +3065,39 @@ class TransactionsApi extends BaseAPI {
|
|
|
2893
3065
|
txSigners(hash, height, options) {
|
|
2894
3066
|
return TransactionsApiFp(this.configuration).txSigners(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
2895
3067
|
}
|
|
3068
|
+
/**
|
|
3069
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3070
|
+
* @param {string} hash
|
|
3071
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3072
|
+
* @param {*} [options] Override http request option.
|
|
3073
|
+
* @throws {RequiredError}
|
|
3074
|
+
* @memberof TransactionsApi
|
|
3075
|
+
*/
|
|
3076
|
+
txSignersOld(hash, height, options) {
|
|
3077
|
+
return TransactionsApiFp(this.configuration).txSignersOld(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3078
|
+
}
|
|
3079
|
+
/**
|
|
3080
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3081
|
+
* @param {string} hash
|
|
3082
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3083
|
+
* @param {*} [options] Override http request option.
|
|
3084
|
+
* @throws {RequiredError}
|
|
3085
|
+
* @memberof TransactionsApi
|
|
3086
|
+
*/
|
|
3087
|
+
txStages(hash, height, options) {
|
|
3088
|
+
return TransactionsApiFp(this.configuration).txStages(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3089
|
+
}
|
|
3090
|
+
/**
|
|
3091
|
+
* Returns the status of a provided inbound hash.
|
|
3092
|
+
* @param {string} hash
|
|
3093
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3094
|
+
* @param {*} [options] Override http request option.
|
|
3095
|
+
* @throws {RequiredError}
|
|
3096
|
+
* @memberof TransactionsApi
|
|
3097
|
+
*/
|
|
3098
|
+
txStatus(hash, height, options) {
|
|
3099
|
+
return TransactionsApiFp(this.configuration).txStatus(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3100
|
+
}
|
|
2896
3101
|
}
|
|
2897
3102
|
/**
|
|
2898
3103
|
* VaultsApi - axios parameter creator
|
|
@@ -3178,7 +3383,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3178
3383
|
* Thornode API
|
|
3179
3384
|
* Thornode REST API.
|
|
3180
3385
|
*
|
|
3181
|
-
* The version of the OpenAPI document: 1.
|
|
3386
|
+
* The version of the OpenAPI document: 1.105.0
|
|
3182
3387
|
* Contact: devs@thorchain.org
|
|
3183
3388
|
*
|
|
3184
3389
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|