@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
package/lib/index.js
CHANGED
|
@@ -34,7 +34,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* tslint:disable */
|
|
37
|
-
const BASE_PATH =
|
|
37
|
+
const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @export
|
|
@@ -60,7 +60,7 @@ class RequiredError extends Error {
|
|
|
60
60
|
constructor(field, msg) {
|
|
61
61
|
super(msg);
|
|
62
62
|
this.field = field;
|
|
63
|
-
this.name =
|
|
63
|
+
this.name = "RequiredError";
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -1973,13 +1973,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
1973
1973
|
* @param {string} [toAsset] the target asset
|
|
1974
1974
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
1975
1975
|
* @param {string} [destination] the destination address, required to generate memo
|
|
1976
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
1976
1977
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
1977
1978
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
1978
1979
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
1979
1980
|
* @param {*} [options] Override http request option.
|
|
1980
1981
|
* @throws {RequiredError}
|
|
1981
1982
|
*/
|
|
1982
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1983
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1983
1984
|
const localVarPath = `/thorchain/quote/swap`;
|
|
1984
1985
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1985
1986
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2005,6 +2006,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2005
2006
|
if (destination !== undefined) {
|
|
2006
2007
|
localVarQueryParameter['destination'] = destination;
|
|
2007
2008
|
}
|
|
2009
|
+
if (fromAddress !== undefined) {
|
|
2010
|
+
localVarQueryParameter['from_address'] = fromAddress;
|
|
2011
|
+
}
|
|
2008
2012
|
if (toleranceBps !== undefined) {
|
|
2009
2013
|
localVarQueryParameter['tolerance_bps'] = toleranceBps;
|
|
2010
2014
|
}
|
|
@@ -2067,15 +2071,16 @@ const QuoteApiFp = function (configuration) {
|
|
|
2067
2071
|
* @param {string} [toAsset] the target asset
|
|
2068
2072
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2069
2073
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2074
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2070
2075
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2071
2076
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2072
2077
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2073
2078
|
* @param {*} [options] Override http request option.
|
|
2074
2079
|
* @throws {RequiredError}
|
|
2075
2080
|
*/
|
|
2076
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
|
|
2081
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2077
2082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2078
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options);
|
|
2083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options);
|
|
2079
2084
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2080
2085
|
});
|
|
2081
2086
|
},
|
|
@@ -2118,14 +2123,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2118
2123
|
* @param {string} [toAsset] the target asset
|
|
2119
2124
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2120
2125
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2126
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2121
2127
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2122
2128
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2123
2129
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2124
2130
|
* @param {*} [options] Override http request option.
|
|
2125
2131
|
* @throws {RequiredError}
|
|
2126
2132
|
*/
|
|
2127
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
|
|
2128
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2133
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2134
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2129
2135
|
},
|
|
2130
2136
|
};
|
|
2131
2137
|
};
|
|
@@ -2168,6 +2174,7 @@ class QuoteApi extends BaseAPI {
|
|
|
2168
2174
|
* @param {string} [toAsset] the target asset
|
|
2169
2175
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2170
2176
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2177
|
+
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2171
2178
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2172
2179
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2173
2180
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -2175,8 +2182,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2175
2182
|
* @throws {RequiredError}
|
|
2176
2183
|
* @memberof QuoteApi
|
|
2177
2184
|
*/
|
|
2178
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
|
|
2179
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2185
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2186
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2180
2187
|
}
|
|
2181
2188
|
}
|
|
2182
2189
|
/**
|
|
@@ -2784,6 +2791,38 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2784
2791
|
txSigners: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2785
2792
|
// verify required parameter 'hash' is not null or undefined
|
|
2786
2793
|
assertParamExists('txSigners', 'hash', hash);
|
|
2794
|
+
const localVarPath = `/thorchain/tx/details/{hash}`
|
|
2795
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2796
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2797
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2798
|
+
let baseOptions;
|
|
2799
|
+
if (configuration) {
|
|
2800
|
+
baseOptions = configuration.baseOptions;
|
|
2801
|
+
}
|
|
2802
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2803
|
+
const localVarHeaderParameter = {};
|
|
2804
|
+
const localVarQueryParameter = {};
|
|
2805
|
+
if (height !== undefined) {
|
|
2806
|
+
localVarQueryParameter['height'] = height;
|
|
2807
|
+
}
|
|
2808
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2809
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2810
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2811
|
+
return {
|
|
2812
|
+
url: toPathString(localVarUrlObj),
|
|
2813
|
+
options: localVarRequestOptions,
|
|
2814
|
+
};
|
|
2815
|
+
}),
|
|
2816
|
+
/**
|
|
2817
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2818
|
+
* @param {string} hash
|
|
2819
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
*/
|
|
2823
|
+
txSignersOld: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2824
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2825
|
+
assertParamExists('txSignersOld', 'hash', hash);
|
|
2787
2826
|
const localVarPath = `/thorchain/tx/{hash}/signers`
|
|
2788
2827
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2789
2828
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2806,6 +2845,70 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2806
2845
|
options: localVarRequestOptions,
|
|
2807
2846
|
};
|
|
2808
2847
|
}),
|
|
2848
|
+
/**
|
|
2849
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2850
|
+
* @param {string} hash
|
|
2851
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2852
|
+
* @param {*} [options] Override http request option.
|
|
2853
|
+
* @throws {RequiredError}
|
|
2854
|
+
*/
|
|
2855
|
+
txStages: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2856
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2857
|
+
assertParamExists('txStages', 'hash', hash);
|
|
2858
|
+
const localVarPath = `/thorchain/alpha/tx/stages/{hash}`
|
|
2859
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2862
|
+
let baseOptions;
|
|
2863
|
+
if (configuration) {
|
|
2864
|
+
baseOptions = configuration.baseOptions;
|
|
2865
|
+
}
|
|
2866
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2867
|
+
const localVarHeaderParameter = {};
|
|
2868
|
+
const localVarQueryParameter = {};
|
|
2869
|
+
if (height !== undefined) {
|
|
2870
|
+
localVarQueryParameter['height'] = height;
|
|
2871
|
+
}
|
|
2872
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2873
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2874
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2875
|
+
return {
|
|
2876
|
+
url: toPathString(localVarUrlObj),
|
|
2877
|
+
options: localVarRequestOptions,
|
|
2878
|
+
};
|
|
2879
|
+
}),
|
|
2880
|
+
/**
|
|
2881
|
+
* Returns the status of a provided inbound hash.
|
|
2882
|
+
* @param {string} hash
|
|
2883
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2884
|
+
* @param {*} [options] Override http request option.
|
|
2885
|
+
* @throws {RequiredError}
|
|
2886
|
+
*/
|
|
2887
|
+
txStatus: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2888
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2889
|
+
assertParamExists('txStatus', 'hash', hash);
|
|
2890
|
+
const localVarPath = `/thorchain/alpha/tx/status/{hash}`
|
|
2891
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2892
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2893
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2894
|
+
let baseOptions;
|
|
2895
|
+
if (configuration) {
|
|
2896
|
+
baseOptions = configuration.baseOptions;
|
|
2897
|
+
}
|
|
2898
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2899
|
+
const localVarHeaderParameter = {};
|
|
2900
|
+
const localVarQueryParameter = {};
|
|
2901
|
+
if (height !== undefined) {
|
|
2902
|
+
localVarQueryParameter['height'] = height;
|
|
2903
|
+
}
|
|
2904
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2906
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2907
|
+
return {
|
|
2908
|
+
url: toPathString(localVarUrlObj),
|
|
2909
|
+
options: localVarRequestOptions,
|
|
2910
|
+
};
|
|
2911
|
+
}),
|
|
2809
2912
|
};
|
|
2810
2913
|
};
|
|
2811
2914
|
/**
|
|
@@ -2841,6 +2944,45 @@ const TransactionsApiFp = function (configuration) {
|
|
|
2841
2944
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2842
2945
|
});
|
|
2843
2946
|
},
|
|
2947
|
+
/**
|
|
2948
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
2949
|
+
* @param {string} hash
|
|
2950
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2951
|
+
* @param {*} [options] Override http request option.
|
|
2952
|
+
* @throws {RequiredError}
|
|
2953
|
+
*/
|
|
2954
|
+
txSignersOld(hash, height, options) {
|
|
2955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txSignersOld(hash, height, options);
|
|
2957
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2958
|
+
});
|
|
2959
|
+
},
|
|
2960
|
+
/**
|
|
2961
|
+
* Returns the processing stages of a provided inbound hash.
|
|
2962
|
+
* @param {string} hash
|
|
2963
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2964
|
+
* @param {*} [options] Override http request option.
|
|
2965
|
+
* @throws {RequiredError}
|
|
2966
|
+
*/
|
|
2967
|
+
txStages(hash, height, options) {
|
|
2968
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2969
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStages(hash, height, options);
|
|
2970
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2971
|
+
});
|
|
2972
|
+
},
|
|
2973
|
+
/**
|
|
2974
|
+
* Returns the status of a provided inbound hash.
|
|
2975
|
+
* @param {string} hash
|
|
2976
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
*/
|
|
2980
|
+
txStatus(hash, height, options) {
|
|
2981
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2982
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStatus(hash, height, options);
|
|
2983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2984
|
+
});
|
|
2985
|
+
},
|
|
2844
2986
|
};
|
|
2845
2987
|
};
|
|
2846
2988
|
/**
|
|
@@ -2870,6 +3012,36 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
2870
3012
|
txSigners(hash, height, options) {
|
|
2871
3013
|
return localVarFp.txSigners(hash, height, options).then((request) => request(axios, basePath));
|
|
2872
3014
|
},
|
|
3015
|
+
/**
|
|
3016
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3017
|
+
* @param {string} hash
|
|
3018
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
*/
|
|
3022
|
+
txSignersOld(hash, height, options) {
|
|
3023
|
+
return localVarFp.txSignersOld(hash, height, options).then((request) => request(axios, basePath));
|
|
3024
|
+
},
|
|
3025
|
+
/**
|
|
3026
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3027
|
+
* @param {string} hash
|
|
3028
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3029
|
+
* @param {*} [options] Override http request option.
|
|
3030
|
+
* @throws {RequiredError}
|
|
3031
|
+
*/
|
|
3032
|
+
txStages(hash, height, options) {
|
|
3033
|
+
return localVarFp.txStages(hash, height, options).then((request) => request(axios, basePath));
|
|
3034
|
+
},
|
|
3035
|
+
/**
|
|
3036
|
+
* Returns the status of a provided inbound hash.
|
|
3037
|
+
* @param {string} hash
|
|
3038
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3039
|
+
* @param {*} [options] Override http request option.
|
|
3040
|
+
* @throws {RequiredError}
|
|
3041
|
+
*/
|
|
3042
|
+
txStatus(hash, height, options) {
|
|
3043
|
+
return localVarFp.txStatus(hash, height, options).then((request) => request(axios, basePath));
|
|
3044
|
+
},
|
|
2873
3045
|
};
|
|
2874
3046
|
};
|
|
2875
3047
|
/**
|
|
@@ -2901,6 +3073,39 @@ class TransactionsApi extends BaseAPI {
|
|
|
2901
3073
|
txSigners(hash, height, options) {
|
|
2902
3074
|
return TransactionsApiFp(this.configuration).txSigners(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
2903
3075
|
}
|
|
3076
|
+
/**
|
|
3077
|
+
* Deprecated - migrate to /thorchain/tx/details.
|
|
3078
|
+
* @param {string} hash
|
|
3079
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3080
|
+
* @param {*} [options] Override http request option.
|
|
3081
|
+
* @throws {RequiredError}
|
|
3082
|
+
* @memberof TransactionsApi
|
|
3083
|
+
*/
|
|
3084
|
+
txSignersOld(hash, height, options) {
|
|
3085
|
+
return TransactionsApiFp(this.configuration).txSignersOld(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3086
|
+
}
|
|
3087
|
+
/**
|
|
3088
|
+
* Returns the processing stages of a provided inbound hash.
|
|
3089
|
+
* @param {string} hash
|
|
3090
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3091
|
+
* @param {*} [options] Override http request option.
|
|
3092
|
+
* @throws {RequiredError}
|
|
3093
|
+
* @memberof TransactionsApi
|
|
3094
|
+
*/
|
|
3095
|
+
txStages(hash, height, options) {
|
|
3096
|
+
return TransactionsApiFp(this.configuration).txStages(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* Returns the status of a provided inbound hash.
|
|
3100
|
+
* @param {string} hash
|
|
3101
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3102
|
+
* @param {*} [options] Override http request option.
|
|
3103
|
+
* @throws {RequiredError}
|
|
3104
|
+
* @memberof TransactionsApi
|
|
3105
|
+
*/
|
|
3106
|
+
txStatus(hash, height, options) {
|
|
3107
|
+
return TransactionsApiFp(this.configuration).txStatus(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3108
|
+
}
|
|
2904
3109
|
}
|
|
2905
3110
|
/**
|
|
2906
3111
|
* VaultsApi - axios parameter creator
|
|
@@ -3186,7 +3391,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3186
3391
|
* Thornode API
|
|
3187
3392
|
* Thornode REST API.
|
|
3188
3393
|
*
|
|
3189
|
-
* The version of the OpenAPI document: 1.
|
|
3394
|
+
* The version of the OpenAPI document: 1.105.0
|
|
3190
3395
|
* Contact: devs@thorchain.org
|
|
3191
3396
|
*
|
|
3192
3397
|
* 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.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thornode module that exposes all thornode functions using openapi-generator-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublishOnly": "yarn run build",
|
|
31
31
|
"test": "jest --passWithNoTests",
|
|
32
32
|
"generate:types": "yarn clean:types:thornode && yarn generate:types:thornode",
|
|
33
|
-
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.
|
|
33
|
+
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.105.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": {
|