@xchainjs/xchain-thornode 0.3.21 → 0.3.22

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/index.js CHANGED
@@ -44,7 +44,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
44
44
  * Thornode API
45
45
  * Thornode REST API.
46
46
  *
47
- * The version of the OpenAPI document: 1.134.0
47
+ * The version of the OpenAPI document: 3.1.1
48
48
  * Contact: devs@thorchain.org
49
49
  *
50
50
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -89,7 +89,7 @@ class RequiredError extends Error {
89
89
  * Thornode API
90
90
  * Thornode REST API.
91
91
  *
92
- * The version of the OpenAPI document: 1.134.0
92
+ * The version of the OpenAPI document: 3.1.1
93
93
  * Contact: devs@thorchain.org
94
94
  *
95
95
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -162,7 +162,7 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
162
162
  * Thornode API
163
163
  * Thornode REST API.
164
164
  *
165
- * The version of the OpenAPI document: 1.134.0
165
+ * The version of the OpenAPI document: 3.1.1
166
166
  * Contact: devs@thorchain.org
167
167
  *
168
168
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -179,6 +179,10 @@ const ObservedTxStatusEnum = {
179
179
  Done: 'done',
180
180
  Incomplete: 'incomplete'
181
181
  };
182
+ const UpgradeVoteVoteEnum = {
183
+ Approve: 'approve',
184
+ Reject: 'reject'
185
+ };
182
186
  const VaultTypeEnum = {
183
187
  AsgardVault: 'AsgardVault',
184
188
  YggdrasilVault: 'YggdrasilVault'
@@ -187,6 +191,206 @@ const YggdrasilVaultTypeEnum = {
187
191
  AsgardVault: 'AsgardVault',
188
192
  YggdrasilVault: 'YggdrasilVault'
189
193
  };
194
+ /**
195
+ * AuthApi - axios parameter creator
196
+ * @export
197
+ */
198
+ const AuthApiAxiosParamCreator = function (configuration) {
199
+ return {
200
+ /**
201
+ * Returns account information for the provided address.
202
+ * @param {string} address
203
+ * @param {number} [height] optional block height, defaults to current tip
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ account: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
208
+ // verify required parameter 'address' is not null or undefined
209
+ assertParamExists('account', 'address', address);
210
+ const localVarPath = `/auth/accounts/{address}`
211
+ .replace(`{${"address"}}`, encodeURIComponent(String(address)));
212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
213
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
214
+ let baseOptions;
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ }
218
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
219
+ const localVarHeaderParameter = {};
220
+ const localVarQueryParameter = {};
221
+ if (height !== undefined) {
222
+ localVarQueryParameter['height'] = height;
223
+ }
224
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return {
228
+ url: toPathString(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ }),
232
+ };
233
+ };
234
+ /**
235
+ * AuthApi - functional programming interface
236
+ * @export
237
+ */
238
+ const AuthApiFp = function (configuration) {
239
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
240
+ return {
241
+ /**
242
+ * Returns account information for the provided address.
243
+ * @param {string} address
244
+ * @param {number} [height] optional block height, defaults to current tip
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ account(address, height, options) {
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.account(address, height, options);
251
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
252
+ });
253
+ },
254
+ };
255
+ };
256
+ /**
257
+ * AuthApi - factory interface
258
+ * @export
259
+ */
260
+ const AuthApiFactory = function (configuration, basePath, axios) {
261
+ const localVarFp = AuthApiFp(configuration);
262
+ return {
263
+ /**
264
+ * Returns account information for the provided address.
265
+ * @param {string} address
266
+ * @param {number} [height] optional block height, defaults to current tip
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ account(address, height, options) {
271
+ return localVarFp.account(address, height, options).then((request) => request(axios, basePath));
272
+ },
273
+ };
274
+ };
275
+ /**
276
+ * AuthApi - object-oriented interface
277
+ * @export
278
+ * @class AuthApi
279
+ * @extends {BaseAPI}
280
+ */
281
+ class AuthApi extends BaseAPI {
282
+ /**
283
+ * Returns account information for the provided address.
284
+ * @param {string} address
285
+ * @param {number} [height] optional block height, defaults to current tip
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ * @memberof AuthApi
289
+ */
290
+ account(address, height, options) {
291
+ return AuthApiFp(this.configuration).account(address, height, options).then((request) => request(this.axios, this.basePath));
292
+ }
293
+ }
294
+ /**
295
+ * BankApi - axios parameter creator
296
+ * @export
297
+ */
298
+ const BankApiAxiosParamCreator = function (configuration) {
299
+ return {
300
+ /**
301
+ * Returns balances for the provided address.
302
+ * @param {string} address
303
+ * @param {number} [height] optional block height, defaults to current tip
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ balances: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
308
+ // verify required parameter 'address' is not null or undefined
309
+ assertParamExists('balances', 'address', address);
310
+ const localVarPath = `/bank/balances/{address}`
311
+ .replace(`{${"address"}}`, encodeURIComponent(String(address)));
312
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
313
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
314
+ let baseOptions;
315
+ if (configuration) {
316
+ baseOptions = configuration.baseOptions;
317
+ }
318
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
319
+ const localVarHeaderParameter = {};
320
+ const localVarQueryParameter = {};
321
+ if (height !== undefined) {
322
+ localVarQueryParameter['height'] = height;
323
+ }
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
+ return {
328
+ url: toPathString(localVarUrlObj),
329
+ options: localVarRequestOptions,
330
+ };
331
+ }),
332
+ };
333
+ };
334
+ /**
335
+ * BankApi - functional programming interface
336
+ * @export
337
+ */
338
+ const BankApiFp = function (configuration) {
339
+ const localVarAxiosParamCreator = BankApiAxiosParamCreator(configuration);
340
+ return {
341
+ /**
342
+ * Returns balances for the provided address.
343
+ * @param {string} address
344
+ * @param {number} [height] optional block height, defaults to current tip
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ balances(address, height, options) {
349
+ return __awaiter(this, void 0, void 0, function* () {
350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.balances(address, height, options);
351
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
352
+ });
353
+ },
354
+ };
355
+ };
356
+ /**
357
+ * BankApi - factory interface
358
+ * @export
359
+ */
360
+ const BankApiFactory = function (configuration, basePath, axios) {
361
+ const localVarFp = BankApiFp(configuration);
362
+ return {
363
+ /**
364
+ * Returns balances for the provided address.
365
+ * @param {string} address
366
+ * @param {number} [height] optional block height, defaults to current tip
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ balances(address, height, options) {
371
+ return localVarFp.balances(address, height, options).then((request) => request(axios, basePath));
372
+ },
373
+ };
374
+ };
375
+ /**
376
+ * BankApi - object-oriented interface
377
+ * @export
378
+ * @class BankApi
379
+ * @extends {BaseAPI}
380
+ */
381
+ class BankApi extends BaseAPI {
382
+ /**
383
+ * Returns balances for the provided address.
384
+ * @param {string} address
385
+ * @param {number} [height] optional block height, defaults to current tip
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ * @memberof BankApi
389
+ */
390
+ balances(address, height, options) {
391
+ return BankApiFp(this.configuration).balances(address, height, options).then((request) => request(this.axios, this.basePath));
392
+ }
393
+ }
190
394
  /**
191
395
  * BlockApi - axios parameter creator
192
396
  * @export
@@ -553,6 +757,92 @@ class CloutApi extends BaseAPI {
553
757
  return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
554
758
  }
555
759
  }
760
+ /**
761
+ * ExportApi - axios parameter creator
762
+ * @export
763
+ */
764
+ const ExportApiAxiosParamCreator = function (configuration) {
765
+ return {
766
+ /**
767
+ * Returns genesis export
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ _export: (options = {}) => __awaiter(this, void 0, void 0, function* () {
772
+ const localVarPath = `/thorchain/export`;
773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
775
+ let baseOptions;
776
+ if (configuration) {
777
+ baseOptions = configuration.baseOptions;
778
+ }
779
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
780
+ const localVarHeaderParameter = {};
781
+ const localVarQueryParameter = {};
782
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
783
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
784
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
785
+ return {
786
+ url: toPathString(localVarUrlObj),
787
+ options: localVarRequestOptions,
788
+ };
789
+ }),
790
+ };
791
+ };
792
+ /**
793
+ * ExportApi - functional programming interface
794
+ * @export
795
+ */
796
+ const ExportApiFp = function (configuration) {
797
+ const localVarAxiosParamCreator = ExportApiAxiosParamCreator(configuration);
798
+ return {
799
+ /**
800
+ * Returns genesis export
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ */
804
+ _export(options) {
805
+ return __awaiter(this, void 0, void 0, function* () {
806
+ const localVarAxiosArgs = yield localVarAxiosParamCreator._export(options);
807
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
808
+ });
809
+ },
810
+ };
811
+ };
812
+ /**
813
+ * ExportApi - factory interface
814
+ * @export
815
+ */
816
+ const ExportApiFactory = function (configuration, basePath, axios) {
817
+ const localVarFp = ExportApiFp(configuration);
818
+ return {
819
+ /**
820
+ * Returns genesis export
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ _export(options) {
825
+ return localVarFp._export(options).then((request) => request(axios, basePath));
826
+ },
827
+ };
828
+ };
829
+ /**
830
+ * ExportApi - object-oriented interface
831
+ * @export
832
+ * @class ExportApi
833
+ * @extends {BaseAPI}
834
+ */
835
+ class ExportApi extends BaseAPI {
836
+ /**
837
+ * Returns genesis export
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ * @memberof ExportApi
841
+ */
842
+ _export(options) {
843
+ return ExportApiFp(this.configuration)._export(options).then((request) => request(this.axios, this.basePath));
844
+ }
845
+ }
556
846
  /**
557
847
  * HealthApi - axios parameter creator
558
848
  * @export
@@ -1584,6 +1874,98 @@ const NetworkApiAxiosParamCreator = function (configuration) {
1584
1874
  options: localVarRequestOptions,
1585
1875
  };
1586
1876
  }),
1877
+ /**
1878
+ * Returns the upgrade proposal for the provided name.
1879
+ * @param {string} name
1880
+ * @param {number} [height] optional block height, defaults to current tip
1881
+ * @param {*} [options] Override http request option.
1882
+ * @throws {RequiredError}
1883
+ */
1884
+ upgradeProposal: (name, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1885
+ // verify required parameter 'name' is not null or undefined
1886
+ assertParamExists('upgradeProposal', 'name', name);
1887
+ const localVarPath = `/thorchain/upgrade_proposal/{name}`
1888
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
1889
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1890
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1891
+ let baseOptions;
1892
+ if (configuration) {
1893
+ baseOptions = configuration.baseOptions;
1894
+ }
1895
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1896
+ const localVarHeaderParameter = {};
1897
+ const localVarQueryParameter = {};
1898
+ if (height !== undefined) {
1899
+ localVarQueryParameter['height'] = height;
1900
+ }
1901
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1902
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1903
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1904
+ return {
1905
+ url: toPathString(localVarUrlObj),
1906
+ options: localVarRequestOptions,
1907
+ };
1908
+ }),
1909
+ /**
1910
+ * Returns the current upgrade proposals.
1911
+ * @param {number} [height] optional block height, defaults to current tip
1912
+ * @param {*} [options] Override http request option.
1913
+ * @throws {RequiredError}
1914
+ */
1915
+ upgradeProposals: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1916
+ const localVarPath = `/thorchain/upgrade_proposals`;
1917
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1918
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1919
+ let baseOptions;
1920
+ if (configuration) {
1921
+ baseOptions = configuration.baseOptions;
1922
+ }
1923
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1924
+ const localVarHeaderParameter = {};
1925
+ const localVarQueryParameter = {};
1926
+ if (height !== undefined) {
1927
+ localVarQueryParameter['height'] = height;
1928
+ }
1929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1931
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1932
+ return {
1933
+ url: toPathString(localVarUrlObj),
1934
+ options: localVarRequestOptions,
1935
+ };
1936
+ }),
1937
+ /**
1938
+ * Returns the upgrade votes for the provided name.
1939
+ * @param {string} name
1940
+ * @param {number} [height] optional block height, defaults to current tip
1941
+ * @param {*} [options] Override http request option.
1942
+ * @throws {RequiredError}
1943
+ */
1944
+ upgradeVotes: (name, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1945
+ // verify required parameter 'name' is not null or undefined
1946
+ assertParamExists('upgradeVotes', 'name', name);
1947
+ const localVarPath = `/thorchain/upgrade_votes/{name}`
1948
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
1949
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1950
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1951
+ let baseOptions;
1952
+ if (configuration) {
1953
+ baseOptions = configuration.baseOptions;
1954
+ }
1955
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1956
+ const localVarHeaderParameter = {};
1957
+ const localVarQueryParameter = {};
1958
+ if (height !== undefined) {
1959
+ localVarQueryParameter['height'] = height;
1960
+ }
1961
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1962
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1963
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1964
+ return {
1965
+ url: toPathString(localVarUrlObj),
1966
+ options: localVarRequestOptions,
1967
+ };
1968
+ }),
1587
1969
  /**
1588
1970
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1589
1971
  * @param {number} [height] optional block height, defaults to current tip
@@ -1732,6 +2114,44 @@ const NetworkApiFp = function (configuration) {
1732
2114
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
1733
2115
  });
1734
2116
  },
2117
+ /**
2118
+ * Returns the upgrade proposal for the provided name.
2119
+ * @param {string} name
2120
+ * @param {number} [height] optional block height, defaults to current tip
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ */
2124
+ upgradeProposal(name, height, options) {
2125
+ return __awaiter(this, void 0, void 0, function* () {
2126
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeProposal(name, height, options);
2127
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
2128
+ });
2129
+ },
2130
+ /**
2131
+ * Returns the current upgrade proposals.
2132
+ * @param {number} [height] optional block height, defaults to current tip
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ */
2136
+ upgradeProposals(height, options) {
2137
+ return __awaiter(this, void 0, void 0, function* () {
2138
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeProposals(height, options);
2139
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
2140
+ });
2141
+ },
2142
+ /**
2143
+ * Returns the upgrade votes for the provided name.
2144
+ * @param {string} name
2145
+ * @param {number} [height] optional block height, defaults to current tip
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ */
2149
+ upgradeVotes(name, height, options) {
2150
+ return __awaiter(this, void 0, void 0, function* () {
2151
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeVotes(name, height, options);
2152
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
2153
+ });
2154
+ },
1735
2155
  /**
1736
2156
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1737
2157
  * @param {number} [height] optional block height, defaults to current tip
@@ -1837,6 +2257,35 @@ const NetworkApiFactory = function (configuration, basePath, axios) {
1837
2257
  ragnarok(height, options) {
1838
2258
  return localVarFp.ragnarok(height, options).then((request) => request(axios, basePath));
1839
2259
  },
2260
+ /**
2261
+ * Returns the upgrade proposal for the provided name.
2262
+ * @param {string} name
2263
+ * @param {number} [height] optional block height, defaults to current tip
2264
+ * @param {*} [options] Override http request option.
2265
+ * @throws {RequiredError}
2266
+ */
2267
+ upgradeProposal(name, height, options) {
2268
+ return localVarFp.upgradeProposal(name, height, options).then((request) => request(axios, basePath));
2269
+ },
2270
+ /**
2271
+ * Returns the current upgrade proposals.
2272
+ * @param {number} [height] optional block height, defaults to current tip
2273
+ * @param {*} [options] Override http request option.
2274
+ * @throws {RequiredError}
2275
+ */
2276
+ upgradeProposals(height, options) {
2277
+ return localVarFp.upgradeProposals(height, options).then((request) => request(axios, basePath));
2278
+ },
2279
+ /**
2280
+ * Returns the upgrade votes for the provided name.
2281
+ * @param {string} name
2282
+ * @param {number} [height] optional block height, defaults to current tip
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ */
2286
+ upgradeVotes(name, height, options) {
2287
+ return localVarFp.upgradeVotes(name, height, options).then((request) => request(axios, basePath));
2288
+ },
1840
2289
  /**
1841
2290
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1842
2291
  * @param {number} [height] optional block height, defaults to current tip
@@ -1948,6 +2397,38 @@ class NetworkApi extends BaseAPI {
1948
2397
  ragnarok(height, options) {
1949
2398
  return NetworkApiFp(this.configuration).ragnarok(height, options).then((request) => request(this.axios, this.basePath));
1950
2399
  }
2400
+ /**
2401
+ * Returns the upgrade proposal for the provided name.
2402
+ * @param {string} name
2403
+ * @param {number} [height] optional block height, defaults to current tip
2404
+ * @param {*} [options] Override http request option.
2405
+ * @throws {RequiredError}
2406
+ * @memberof NetworkApi
2407
+ */
2408
+ upgradeProposal(name, height, options) {
2409
+ return NetworkApiFp(this.configuration).upgradeProposal(name, height, options).then((request) => request(this.axios, this.basePath));
2410
+ }
2411
+ /**
2412
+ * Returns the current upgrade proposals.
2413
+ * @param {number} [height] optional block height, defaults to current tip
2414
+ * @param {*} [options] Override http request option.
2415
+ * @throws {RequiredError}
2416
+ * @memberof NetworkApi
2417
+ */
2418
+ upgradeProposals(height, options) {
2419
+ return NetworkApiFp(this.configuration).upgradeProposals(height, options).then((request) => request(this.axios, this.basePath));
2420
+ }
2421
+ /**
2422
+ * Returns the upgrade votes for the provided name.
2423
+ * @param {string} name
2424
+ * @param {number} [height] optional block height, defaults to current tip
2425
+ * @param {*} [options] Override http request option.
2426
+ * @throws {RequiredError}
2427
+ * @memberof NetworkApi
2428
+ */
2429
+ upgradeVotes(name, height, options) {
2430
+ return NetworkApiFp(this.configuration).upgradeVotes(name, height, options).then((request) => request(this.axios, this.basePath));
2431
+ }
1951
2432
  /**
1952
2433
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1953
2434
  * @param {number} [height] optional block height, defaults to current tip
@@ -3740,6 +4221,199 @@ class SaversApi extends BaseAPI {
3740
4221
  return SaversApiFp(this.configuration).savers(asset, height, options).then((request) => request(this.axios, this.basePath));
3741
4222
  }
3742
4223
  }
4224
+ /**
4225
+ * SecuredAssetApi - axios parameter creator
4226
+ * @export
4227
+ */
4228
+ const SecuredAssetApiAxiosParamCreator = function (configuration) {
4229
+ return {
4230
+ /**
4231
+ * Returns the total size and ratio of a secured asset
4232
+ * @param {string} asset
4233
+ * @param {number} [height] optional block height, defaults to current tip
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ */
4237
+ securedAsset: (asset, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
4238
+ // verify required parameter 'asset' is not null or undefined
4239
+ assertParamExists('securedAsset', 'asset', asset);
4240
+ const localVarPath = `/thorchain/securedasset/{asset}`
4241
+ .replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
4242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4244
+ let baseOptions;
4245
+ if (configuration) {
4246
+ baseOptions = configuration.baseOptions;
4247
+ }
4248
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4249
+ const localVarHeaderParameter = {};
4250
+ const localVarQueryParameter = {};
4251
+ if (height !== undefined) {
4252
+ localVarQueryParameter['height'] = height;
4253
+ }
4254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4256
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4257
+ return {
4258
+ url: toPathString(localVarUrlObj),
4259
+ options: localVarRequestOptions,
4260
+ };
4261
+ }),
4262
+ };
4263
+ };
4264
+ /**
4265
+ * SecuredAssetApi - functional programming interface
4266
+ * @export
4267
+ */
4268
+ const SecuredAssetApiFp = function (configuration) {
4269
+ const localVarAxiosParamCreator = SecuredAssetApiAxiosParamCreator(configuration);
4270
+ return {
4271
+ /**
4272
+ * Returns the total size and ratio of a secured asset
4273
+ * @param {string} asset
4274
+ * @param {number} [height] optional block height, defaults to current tip
4275
+ * @param {*} [options] Override http request option.
4276
+ * @throws {RequiredError}
4277
+ */
4278
+ securedAsset(asset, height, options) {
4279
+ return __awaiter(this, void 0, void 0, function* () {
4280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.securedAsset(asset, height, options);
4281
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
4282
+ });
4283
+ },
4284
+ };
4285
+ };
4286
+ /**
4287
+ * SecuredAssetApi - factory interface
4288
+ * @export
4289
+ */
4290
+ const SecuredAssetApiFactory = function (configuration, basePath, axios) {
4291
+ const localVarFp = SecuredAssetApiFp(configuration);
4292
+ return {
4293
+ /**
4294
+ * Returns the total size and ratio of a secured asset
4295
+ * @param {string} asset
4296
+ * @param {number} [height] optional block height, defaults to current tip
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ securedAsset(asset, height, options) {
4301
+ return localVarFp.securedAsset(asset, height, options).then((request) => request(axios, basePath));
4302
+ },
4303
+ };
4304
+ };
4305
+ /**
4306
+ * SecuredAssetApi - object-oriented interface
4307
+ * @export
4308
+ * @class SecuredAssetApi
4309
+ * @extends {BaseAPI}
4310
+ */
4311
+ class SecuredAssetApi extends BaseAPI {
4312
+ /**
4313
+ * Returns the total size and ratio of a secured asset
4314
+ * @param {string} asset
4315
+ * @param {number} [height] optional block height, defaults to current tip
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ * @memberof SecuredAssetApi
4319
+ */
4320
+ securedAsset(asset, height, options) {
4321
+ return SecuredAssetApiFp(this.configuration).securedAsset(asset, height, options).then((request) => request(this.axios, this.basePath));
4322
+ }
4323
+ }
4324
+ /**
4325
+ * SecuredAssetsApi - axios parameter creator
4326
+ * @export
4327
+ */
4328
+ const SecuredAssetsApiAxiosParamCreator = function (configuration) {
4329
+ return {
4330
+ /**
4331
+ * Returns the total size and ratio of all secured asset
4332
+ * @param {number} [height] optional block height, defaults to current tip
4333
+ * @param {*} [options] Override http request option.
4334
+ * @throws {RequiredError}
4335
+ */
4336
+ securedAssets: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
4337
+ const localVarPath = `/thorchain/securedassets`;
4338
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4339
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4340
+ let baseOptions;
4341
+ if (configuration) {
4342
+ baseOptions = configuration.baseOptions;
4343
+ }
4344
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4345
+ const localVarHeaderParameter = {};
4346
+ const localVarQueryParameter = {};
4347
+ if (height !== undefined) {
4348
+ localVarQueryParameter['height'] = height;
4349
+ }
4350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4352
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4353
+ return {
4354
+ url: toPathString(localVarUrlObj),
4355
+ options: localVarRequestOptions,
4356
+ };
4357
+ }),
4358
+ };
4359
+ };
4360
+ /**
4361
+ * SecuredAssetsApi - functional programming interface
4362
+ * @export
4363
+ */
4364
+ const SecuredAssetsApiFp = function (configuration) {
4365
+ const localVarAxiosParamCreator = SecuredAssetsApiAxiosParamCreator(configuration);
4366
+ return {
4367
+ /**
4368
+ * Returns the total size and ratio of all secured asset
4369
+ * @param {number} [height] optional block height, defaults to current tip
4370
+ * @param {*} [options] Override http request option.
4371
+ * @throws {RequiredError}
4372
+ */
4373
+ securedAssets(height, options) {
4374
+ return __awaiter(this, void 0, void 0, function* () {
4375
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.securedAssets(height, options);
4376
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
4377
+ });
4378
+ },
4379
+ };
4380
+ };
4381
+ /**
4382
+ * SecuredAssetsApi - factory interface
4383
+ * @export
4384
+ */
4385
+ const SecuredAssetsApiFactory = function (configuration, basePath, axios) {
4386
+ const localVarFp = SecuredAssetsApiFp(configuration);
4387
+ return {
4388
+ /**
4389
+ * Returns the total size and ratio of all secured asset
4390
+ * @param {number} [height] optional block height, defaults to current tip
4391
+ * @param {*} [options] Override http request option.
4392
+ * @throws {RequiredError}
4393
+ */
4394
+ securedAssets(height, options) {
4395
+ return localVarFp.securedAssets(height, options).then((request) => request(axios, basePath));
4396
+ },
4397
+ };
4398
+ };
4399
+ /**
4400
+ * SecuredAssetsApi - object-oriented interface
4401
+ * @export
4402
+ * @class SecuredAssetsApi
4403
+ * @extends {BaseAPI}
4404
+ */
4405
+ class SecuredAssetsApi extends BaseAPI {
4406
+ /**
4407
+ * Returns the total size and ratio of all secured asset
4408
+ * @param {number} [height] optional block height, defaults to current tip
4409
+ * @param {*} [options] Override http request option.
4410
+ * @throws {RequiredError}
4411
+ * @memberof SecuredAssetsApi
4412
+ */
4413
+ securedAssets(height, options) {
4414
+ return SecuredAssetsApiFp(this.configuration).securedAssets(height, options).then((request) => request(this.axios, this.basePath));
4415
+ }
4416
+ }
3743
4417
  /**
3744
4418
  * StreamingSwapApi - axios parameter creator
3745
4419
  * @export
@@ -5390,7 +6064,7 @@ class VaultsApi extends BaseAPI {
5390
6064
  * Thornode API
5391
6065
  * Thornode REST API.
5392
6066
  *
5393
- * The version of the OpenAPI document: 1.134.0
6067
+ * The version of the OpenAPI document: 3.1.1
5394
6068
  * Contact: devs@thorchain.org
5395
6069
  *
5396
6070
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5428,6 +6102,14 @@ class Configuration {
5428
6102
  */
5429
6103
  const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
5430
6104
 
6105
+ exports.AuthApi = AuthApi;
6106
+ exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
6107
+ exports.AuthApiFactory = AuthApiFactory;
6108
+ exports.AuthApiFp = AuthApiFp;
6109
+ exports.BankApi = BankApi;
6110
+ exports.BankApiAxiosParamCreator = BankApiAxiosParamCreator;
6111
+ exports.BankApiFactory = BankApiFactory;
6112
+ exports.BankApiFp = BankApiFp;
5431
6113
  exports.BlockApi = BlockApi;
5432
6114
  exports.BlockApiAxiosParamCreator = BlockApiAxiosParamCreator;
5433
6115
  exports.BlockApiFactory = BlockApiFactory;
@@ -5441,6 +6123,10 @@ exports.CloutApiAxiosParamCreator = CloutApiAxiosParamCreator;
5441
6123
  exports.CloutApiFactory = CloutApiFactory;
5442
6124
  exports.CloutApiFp = CloutApiFp;
5443
6125
  exports.Configuration = Configuration;
6126
+ exports.ExportApi = ExportApi;
6127
+ exports.ExportApiAxiosParamCreator = ExportApiAxiosParamCreator;
6128
+ exports.ExportApiFactory = ExportApiFactory;
6129
+ exports.ExportApiFp = ExportApiFp;
5444
6130
  exports.HealthApi = HealthApi;
5445
6131
  exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
5446
6132
  exports.HealthApiFactory = HealthApiFactory;
@@ -5491,6 +6177,14 @@ exports.SaversApi = SaversApi;
5491
6177
  exports.SaversApiAxiosParamCreator = SaversApiAxiosParamCreator;
5492
6178
  exports.SaversApiFactory = SaversApiFactory;
5493
6179
  exports.SaversApiFp = SaversApiFp;
6180
+ exports.SecuredAssetApi = SecuredAssetApi;
6181
+ exports.SecuredAssetApiAxiosParamCreator = SecuredAssetApiAxiosParamCreator;
6182
+ exports.SecuredAssetApiFactory = SecuredAssetApiFactory;
6183
+ exports.SecuredAssetApiFp = SecuredAssetApiFp;
6184
+ exports.SecuredAssetsApi = SecuredAssetsApi;
6185
+ exports.SecuredAssetsApiAxiosParamCreator = SecuredAssetsApiAxiosParamCreator;
6186
+ exports.SecuredAssetsApiFactory = SecuredAssetsApiFactory;
6187
+ exports.SecuredAssetsApiFp = SecuredAssetsApiFp;
5494
6188
  exports.StreamingSwapApi = StreamingSwapApi;
5495
6189
  exports.StreamingSwapApiAxiosParamCreator = StreamingSwapApiAxiosParamCreator;
5496
6190
  exports.StreamingSwapApiFactory = StreamingSwapApiFactory;
@@ -5524,6 +6218,7 @@ exports.TransactionsApi = TransactionsApi;
5524
6218
  exports.TransactionsApiAxiosParamCreator = TransactionsApiAxiosParamCreator;
5525
6219
  exports.TransactionsApiFactory = TransactionsApiFactory;
5526
6220
  exports.TransactionsApiFp = TransactionsApiFp;
6221
+ exports.UpgradeVoteVoteEnum = UpgradeVoteVoteEnum;
5527
6222
  exports.VaultTypeEnum = VaultTypeEnum;
5528
6223
  exports.VaultsApi = VaultsApi;
5529
6224
  exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;