@xchainjs/xchain-thornode 0.3.21 → 1.0.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/lib/index.esm.js CHANGED
@@ -38,7 +38,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
38
38
  * Thornode API
39
39
  * Thornode REST API.
40
40
  *
41
- * The version of the OpenAPI document: 1.134.0
41
+ * The version of the OpenAPI document: 3.1.1
42
42
  * Contact: devs@thorchain.org
43
43
  *
44
44
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -83,7 +83,7 @@ class RequiredError extends Error {
83
83
  * Thornode API
84
84
  * Thornode REST API.
85
85
  *
86
- * The version of the OpenAPI document: 1.134.0
86
+ * The version of the OpenAPI document: 3.1.1
87
87
  * Contact: devs@thorchain.org
88
88
  *
89
89
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -156,7 +156,7 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
156
156
  * Thornode API
157
157
  * Thornode REST API.
158
158
  *
159
- * The version of the OpenAPI document: 1.134.0
159
+ * The version of the OpenAPI document: 3.1.1
160
160
  * Contact: devs@thorchain.org
161
161
  *
162
162
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -173,6 +173,10 @@ const ObservedTxStatusEnum = {
173
173
  Done: 'done',
174
174
  Incomplete: 'incomplete'
175
175
  };
176
+ const UpgradeVoteVoteEnum = {
177
+ Approve: 'approve',
178
+ Reject: 'reject'
179
+ };
176
180
  const VaultTypeEnum = {
177
181
  AsgardVault: 'AsgardVault',
178
182
  YggdrasilVault: 'YggdrasilVault'
@@ -181,6 +185,206 @@ const YggdrasilVaultTypeEnum = {
181
185
  AsgardVault: 'AsgardVault',
182
186
  YggdrasilVault: 'YggdrasilVault'
183
187
  };
188
+ /**
189
+ * AuthApi - axios parameter creator
190
+ * @export
191
+ */
192
+ const AuthApiAxiosParamCreator = function (configuration) {
193
+ return {
194
+ /**
195
+ * Returns account information for the provided address.
196
+ * @param {string} address
197
+ * @param {number} [height] optional block height, defaults to current tip
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ account: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
202
+ // verify required parameter 'address' is not null or undefined
203
+ assertParamExists('account', 'address', address);
204
+ const localVarPath = `/auth/accounts/{address}`
205
+ .replace(`{${"address"}}`, encodeURIComponent(String(address)));
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ }
212
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
213
+ const localVarHeaderParameter = {};
214
+ const localVarQueryParameter = {};
215
+ if (height !== undefined) {
216
+ localVarQueryParameter['height'] = height;
217
+ }
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ return {
222
+ url: toPathString(localVarUrlObj),
223
+ options: localVarRequestOptions,
224
+ };
225
+ }),
226
+ };
227
+ };
228
+ /**
229
+ * AuthApi - functional programming interface
230
+ * @export
231
+ */
232
+ const AuthApiFp = function (configuration) {
233
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
234
+ return {
235
+ /**
236
+ * Returns account information for the provided address.
237
+ * @param {string} address
238
+ * @param {number} [height] optional block height, defaults to current tip
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ account(address, height, options) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.account(address, height, options);
245
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
246
+ });
247
+ },
248
+ };
249
+ };
250
+ /**
251
+ * AuthApi - factory interface
252
+ * @export
253
+ */
254
+ const AuthApiFactory = function (configuration, basePath, axios) {
255
+ const localVarFp = AuthApiFp(configuration);
256
+ return {
257
+ /**
258
+ * Returns account information for the provided address.
259
+ * @param {string} address
260
+ * @param {number} [height] optional block height, defaults to current tip
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ account(address, height, options) {
265
+ return localVarFp.account(address, height, options).then((request) => request(axios, basePath));
266
+ },
267
+ };
268
+ };
269
+ /**
270
+ * AuthApi - object-oriented interface
271
+ * @export
272
+ * @class AuthApi
273
+ * @extends {BaseAPI}
274
+ */
275
+ class AuthApi extends BaseAPI {
276
+ /**
277
+ * Returns account information for the provided address.
278
+ * @param {string} address
279
+ * @param {number} [height] optional block height, defaults to current tip
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ * @memberof AuthApi
283
+ */
284
+ account(address, height, options) {
285
+ return AuthApiFp(this.configuration).account(address, height, options).then((request) => request(this.axios, this.basePath));
286
+ }
287
+ }
288
+ /**
289
+ * BankApi - axios parameter creator
290
+ * @export
291
+ */
292
+ const BankApiAxiosParamCreator = function (configuration) {
293
+ return {
294
+ /**
295
+ * Returns balances for the provided address.
296
+ * @param {string} address
297
+ * @param {number} [height] optional block height, defaults to current tip
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ balances: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
302
+ // verify required parameter 'address' is not null or undefined
303
+ assertParamExists('balances', 'address', address);
304
+ const localVarPath = `/bank/balances/{address}`
305
+ .replace(`{${"address"}}`, encodeURIComponent(String(address)));
306
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
307
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
308
+ let baseOptions;
309
+ if (configuration) {
310
+ baseOptions = configuration.baseOptions;
311
+ }
312
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
313
+ const localVarHeaderParameter = {};
314
+ const localVarQueryParameter = {};
315
+ if (height !== undefined) {
316
+ localVarQueryParameter['height'] = height;
317
+ }
318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
320
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
321
+ return {
322
+ url: toPathString(localVarUrlObj),
323
+ options: localVarRequestOptions,
324
+ };
325
+ }),
326
+ };
327
+ };
328
+ /**
329
+ * BankApi - functional programming interface
330
+ * @export
331
+ */
332
+ const BankApiFp = function (configuration) {
333
+ const localVarAxiosParamCreator = BankApiAxiosParamCreator(configuration);
334
+ return {
335
+ /**
336
+ * Returns balances for the provided address.
337
+ * @param {string} address
338
+ * @param {number} [height] optional block height, defaults to current tip
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ balances(address, height, options) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.balances(address, height, options);
345
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
346
+ });
347
+ },
348
+ };
349
+ };
350
+ /**
351
+ * BankApi - factory interface
352
+ * @export
353
+ */
354
+ const BankApiFactory = function (configuration, basePath, axios) {
355
+ const localVarFp = BankApiFp(configuration);
356
+ return {
357
+ /**
358
+ * Returns balances for the provided address.
359
+ * @param {string} address
360
+ * @param {number} [height] optional block height, defaults to current tip
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ balances(address, height, options) {
365
+ return localVarFp.balances(address, height, options).then((request) => request(axios, basePath));
366
+ },
367
+ };
368
+ };
369
+ /**
370
+ * BankApi - object-oriented interface
371
+ * @export
372
+ * @class BankApi
373
+ * @extends {BaseAPI}
374
+ */
375
+ class BankApi extends BaseAPI {
376
+ /**
377
+ * Returns balances for the provided address.
378
+ * @param {string} address
379
+ * @param {number} [height] optional block height, defaults to current tip
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof BankApi
383
+ */
384
+ balances(address, height, options) {
385
+ return BankApiFp(this.configuration).balances(address, height, options).then((request) => request(this.axios, this.basePath));
386
+ }
387
+ }
184
388
  /**
185
389
  * BlockApi - axios parameter creator
186
390
  * @export
@@ -547,6 +751,92 @@ class CloutApi extends BaseAPI {
547
751
  return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
548
752
  }
549
753
  }
754
+ /**
755
+ * ExportApi - axios parameter creator
756
+ * @export
757
+ */
758
+ const ExportApiAxiosParamCreator = function (configuration) {
759
+ return {
760
+ /**
761
+ * Returns genesis export
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ _export: (options = {}) => __awaiter(this, void 0, void 0, function* () {
766
+ const localVarPath = `/thorchain/export`;
767
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
769
+ let baseOptions;
770
+ if (configuration) {
771
+ baseOptions = configuration.baseOptions;
772
+ }
773
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
774
+ const localVarHeaderParameter = {};
775
+ const localVarQueryParameter = {};
776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
778
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
779
+ return {
780
+ url: toPathString(localVarUrlObj),
781
+ options: localVarRequestOptions,
782
+ };
783
+ }),
784
+ };
785
+ };
786
+ /**
787
+ * ExportApi - functional programming interface
788
+ * @export
789
+ */
790
+ const ExportApiFp = function (configuration) {
791
+ const localVarAxiosParamCreator = ExportApiAxiosParamCreator(configuration);
792
+ return {
793
+ /**
794
+ * Returns genesis export
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ _export(options) {
799
+ return __awaiter(this, void 0, void 0, function* () {
800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator._export(options);
801
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
802
+ });
803
+ },
804
+ };
805
+ };
806
+ /**
807
+ * ExportApi - factory interface
808
+ * @export
809
+ */
810
+ const ExportApiFactory = function (configuration, basePath, axios) {
811
+ const localVarFp = ExportApiFp(configuration);
812
+ return {
813
+ /**
814
+ * Returns genesis export
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ _export(options) {
819
+ return localVarFp._export(options).then((request) => request(axios, basePath));
820
+ },
821
+ };
822
+ };
823
+ /**
824
+ * ExportApi - object-oriented interface
825
+ * @export
826
+ * @class ExportApi
827
+ * @extends {BaseAPI}
828
+ */
829
+ class ExportApi extends BaseAPI {
830
+ /**
831
+ * Returns genesis export
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ * @memberof ExportApi
835
+ */
836
+ _export(options) {
837
+ return ExportApiFp(this.configuration)._export(options).then((request) => request(this.axios, this.basePath));
838
+ }
839
+ }
550
840
  /**
551
841
  * HealthApi - axios parameter creator
552
842
  * @export
@@ -1578,6 +1868,98 @@ const NetworkApiAxiosParamCreator = function (configuration) {
1578
1868
  options: localVarRequestOptions,
1579
1869
  };
1580
1870
  }),
1871
+ /**
1872
+ * Returns the upgrade proposal for the provided name.
1873
+ * @param {string} name
1874
+ * @param {number} [height] optional block height, defaults to current tip
1875
+ * @param {*} [options] Override http request option.
1876
+ * @throws {RequiredError}
1877
+ */
1878
+ upgradeProposal: (name, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1879
+ // verify required parameter 'name' is not null or undefined
1880
+ assertParamExists('upgradeProposal', 'name', name);
1881
+ const localVarPath = `/thorchain/upgrade_proposal/{name}`
1882
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
1883
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1884
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1885
+ let baseOptions;
1886
+ if (configuration) {
1887
+ baseOptions = configuration.baseOptions;
1888
+ }
1889
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1890
+ const localVarHeaderParameter = {};
1891
+ const localVarQueryParameter = {};
1892
+ if (height !== undefined) {
1893
+ localVarQueryParameter['height'] = height;
1894
+ }
1895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1897
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1898
+ return {
1899
+ url: toPathString(localVarUrlObj),
1900
+ options: localVarRequestOptions,
1901
+ };
1902
+ }),
1903
+ /**
1904
+ * Returns the current upgrade proposals.
1905
+ * @param {number} [height] optional block height, defaults to current tip
1906
+ * @param {*} [options] Override http request option.
1907
+ * @throws {RequiredError}
1908
+ */
1909
+ upgradeProposals: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1910
+ const localVarPath = `/thorchain/upgrade_proposals`;
1911
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1912
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1913
+ let baseOptions;
1914
+ if (configuration) {
1915
+ baseOptions = configuration.baseOptions;
1916
+ }
1917
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1918
+ const localVarHeaderParameter = {};
1919
+ const localVarQueryParameter = {};
1920
+ if (height !== undefined) {
1921
+ localVarQueryParameter['height'] = height;
1922
+ }
1923
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1924
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1925
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1926
+ return {
1927
+ url: toPathString(localVarUrlObj),
1928
+ options: localVarRequestOptions,
1929
+ };
1930
+ }),
1931
+ /**
1932
+ * Returns the upgrade votes for the provided name.
1933
+ * @param {string} name
1934
+ * @param {number} [height] optional block height, defaults to current tip
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ */
1938
+ upgradeVotes: (name, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1939
+ // verify required parameter 'name' is not null or undefined
1940
+ assertParamExists('upgradeVotes', 'name', name);
1941
+ const localVarPath = `/thorchain/upgrade_votes/{name}`
1942
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
1943
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1944
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1945
+ let baseOptions;
1946
+ if (configuration) {
1947
+ baseOptions = configuration.baseOptions;
1948
+ }
1949
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1950
+ const localVarHeaderParameter = {};
1951
+ const localVarQueryParameter = {};
1952
+ if (height !== undefined) {
1953
+ localVarQueryParameter['height'] = height;
1954
+ }
1955
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1956
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1957
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1958
+ return {
1959
+ url: toPathString(localVarUrlObj),
1960
+ options: localVarRequestOptions,
1961
+ };
1962
+ }),
1581
1963
  /**
1582
1964
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1583
1965
  * @param {number} [height] optional block height, defaults to current tip
@@ -1726,6 +2108,44 @@ const NetworkApiFp = function (configuration) {
1726
2108
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1727
2109
  });
1728
2110
  },
2111
+ /**
2112
+ * Returns the upgrade proposal for the provided name.
2113
+ * @param {string} name
2114
+ * @param {number} [height] optional block height, defaults to current tip
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ */
2118
+ upgradeProposal(name, height, options) {
2119
+ return __awaiter(this, void 0, void 0, function* () {
2120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeProposal(name, height, options);
2121
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2122
+ });
2123
+ },
2124
+ /**
2125
+ * Returns the current upgrade proposals.
2126
+ * @param {number} [height] optional block height, defaults to current tip
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ */
2130
+ upgradeProposals(height, options) {
2131
+ return __awaiter(this, void 0, void 0, function* () {
2132
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeProposals(height, options);
2133
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2134
+ });
2135
+ },
2136
+ /**
2137
+ * Returns the upgrade votes for the provided name.
2138
+ * @param {string} name
2139
+ * @param {number} [height] optional block height, defaults to current tip
2140
+ * @param {*} [options] Override http request option.
2141
+ * @throws {RequiredError}
2142
+ */
2143
+ upgradeVotes(name, height, options) {
2144
+ return __awaiter(this, void 0, void 0, function* () {
2145
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeVotes(name, height, options);
2146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2147
+ });
2148
+ },
1729
2149
  /**
1730
2150
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1731
2151
  * @param {number} [height] optional block height, defaults to current tip
@@ -1831,6 +2251,35 @@ const NetworkApiFactory = function (configuration, basePath, axios) {
1831
2251
  ragnarok(height, options) {
1832
2252
  return localVarFp.ragnarok(height, options).then((request) => request(axios, basePath));
1833
2253
  },
2254
+ /**
2255
+ * Returns the upgrade proposal for the provided name.
2256
+ * @param {string} name
2257
+ * @param {number} [height] optional block height, defaults to current tip
2258
+ * @param {*} [options] Override http request option.
2259
+ * @throws {RequiredError}
2260
+ */
2261
+ upgradeProposal(name, height, options) {
2262
+ return localVarFp.upgradeProposal(name, height, options).then((request) => request(axios, basePath));
2263
+ },
2264
+ /**
2265
+ * Returns the current upgrade proposals.
2266
+ * @param {number} [height] optional block height, defaults to current tip
2267
+ * @param {*} [options] Override http request option.
2268
+ * @throws {RequiredError}
2269
+ */
2270
+ upgradeProposals(height, options) {
2271
+ return localVarFp.upgradeProposals(height, options).then((request) => request(axios, basePath));
2272
+ },
2273
+ /**
2274
+ * Returns the upgrade votes for the provided name.
2275
+ * @param {string} name
2276
+ * @param {number} [height] optional block height, defaults to current tip
2277
+ * @param {*} [options] Override http request option.
2278
+ * @throws {RequiredError}
2279
+ */
2280
+ upgradeVotes(name, height, options) {
2281
+ return localVarFp.upgradeVotes(name, height, options).then((request) => request(axios, basePath));
2282
+ },
1834
2283
  /**
1835
2284
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1836
2285
  * @param {number} [height] optional block height, defaults to current tip
@@ -1942,6 +2391,38 @@ class NetworkApi extends BaseAPI {
1942
2391
  ragnarok(height, options) {
1943
2392
  return NetworkApiFp(this.configuration).ragnarok(height, options).then((request) => request(this.axios, this.basePath));
1944
2393
  }
2394
+ /**
2395
+ * Returns the upgrade proposal for the provided name.
2396
+ * @param {string} name
2397
+ * @param {number} [height] optional block height, defaults to current tip
2398
+ * @param {*} [options] Override http request option.
2399
+ * @throws {RequiredError}
2400
+ * @memberof NetworkApi
2401
+ */
2402
+ upgradeProposal(name, height, options) {
2403
+ return NetworkApiFp(this.configuration).upgradeProposal(name, height, options).then((request) => request(this.axios, this.basePath));
2404
+ }
2405
+ /**
2406
+ * Returns the current upgrade proposals.
2407
+ * @param {number} [height] optional block height, defaults to current tip
2408
+ * @param {*} [options] Override http request option.
2409
+ * @throws {RequiredError}
2410
+ * @memberof NetworkApi
2411
+ */
2412
+ upgradeProposals(height, options) {
2413
+ return NetworkApiFp(this.configuration).upgradeProposals(height, options).then((request) => request(this.axios, this.basePath));
2414
+ }
2415
+ /**
2416
+ * Returns the upgrade votes for the provided name.
2417
+ * @param {string} name
2418
+ * @param {number} [height] optional block height, defaults to current tip
2419
+ * @param {*} [options] Override http request option.
2420
+ * @throws {RequiredError}
2421
+ * @memberof NetworkApi
2422
+ */
2423
+ upgradeVotes(name, height, options) {
2424
+ return NetworkApiFp(this.configuration).upgradeVotes(name, height, options).then((request) => request(this.axios, this.basePath));
2425
+ }
1945
2426
  /**
1946
2427
  * Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
1947
2428
  * @param {number} [height] optional block height, defaults to current tip
@@ -3734,6 +4215,199 @@ class SaversApi extends BaseAPI {
3734
4215
  return SaversApiFp(this.configuration).savers(asset, height, options).then((request) => request(this.axios, this.basePath));
3735
4216
  }
3736
4217
  }
4218
+ /**
4219
+ * SecuredAssetApi - axios parameter creator
4220
+ * @export
4221
+ */
4222
+ const SecuredAssetApiAxiosParamCreator = function (configuration) {
4223
+ return {
4224
+ /**
4225
+ * Returns the total size and ratio of a secured asset
4226
+ * @param {string} asset
4227
+ * @param {number} [height] optional block height, defaults to current tip
4228
+ * @param {*} [options] Override http request option.
4229
+ * @throws {RequiredError}
4230
+ */
4231
+ securedAsset: (asset, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
4232
+ // verify required parameter 'asset' is not null or undefined
4233
+ assertParamExists('securedAsset', 'asset', asset);
4234
+ const localVarPath = `/thorchain/securedasset/{asset}`
4235
+ .replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
4236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4237
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4238
+ let baseOptions;
4239
+ if (configuration) {
4240
+ baseOptions = configuration.baseOptions;
4241
+ }
4242
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4243
+ const localVarHeaderParameter = {};
4244
+ const localVarQueryParameter = {};
4245
+ if (height !== undefined) {
4246
+ localVarQueryParameter['height'] = height;
4247
+ }
4248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4250
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4251
+ return {
4252
+ url: toPathString(localVarUrlObj),
4253
+ options: localVarRequestOptions,
4254
+ };
4255
+ }),
4256
+ };
4257
+ };
4258
+ /**
4259
+ * SecuredAssetApi - functional programming interface
4260
+ * @export
4261
+ */
4262
+ const SecuredAssetApiFp = function (configuration) {
4263
+ const localVarAxiosParamCreator = SecuredAssetApiAxiosParamCreator(configuration);
4264
+ return {
4265
+ /**
4266
+ * Returns the total size and ratio of a secured asset
4267
+ * @param {string} asset
4268
+ * @param {number} [height] optional block height, defaults to current tip
4269
+ * @param {*} [options] Override http request option.
4270
+ * @throws {RequiredError}
4271
+ */
4272
+ securedAsset(asset, height, options) {
4273
+ return __awaiter(this, void 0, void 0, function* () {
4274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.securedAsset(asset, height, options);
4275
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4276
+ });
4277
+ },
4278
+ };
4279
+ };
4280
+ /**
4281
+ * SecuredAssetApi - factory interface
4282
+ * @export
4283
+ */
4284
+ const SecuredAssetApiFactory = function (configuration, basePath, axios) {
4285
+ const localVarFp = SecuredAssetApiFp(configuration);
4286
+ return {
4287
+ /**
4288
+ * Returns the total size and ratio of a secured asset
4289
+ * @param {string} asset
4290
+ * @param {number} [height] optional block height, defaults to current tip
4291
+ * @param {*} [options] Override http request option.
4292
+ * @throws {RequiredError}
4293
+ */
4294
+ securedAsset(asset, height, options) {
4295
+ return localVarFp.securedAsset(asset, height, options).then((request) => request(axios, basePath));
4296
+ },
4297
+ };
4298
+ };
4299
+ /**
4300
+ * SecuredAssetApi - object-oriented interface
4301
+ * @export
4302
+ * @class SecuredAssetApi
4303
+ * @extends {BaseAPI}
4304
+ */
4305
+ class SecuredAssetApi extends BaseAPI {
4306
+ /**
4307
+ * Returns the total size and ratio of a secured asset
4308
+ * @param {string} asset
4309
+ * @param {number} [height] optional block height, defaults to current tip
4310
+ * @param {*} [options] Override http request option.
4311
+ * @throws {RequiredError}
4312
+ * @memberof SecuredAssetApi
4313
+ */
4314
+ securedAsset(asset, height, options) {
4315
+ return SecuredAssetApiFp(this.configuration).securedAsset(asset, height, options).then((request) => request(this.axios, this.basePath));
4316
+ }
4317
+ }
4318
+ /**
4319
+ * SecuredAssetsApi - axios parameter creator
4320
+ * @export
4321
+ */
4322
+ const SecuredAssetsApiAxiosParamCreator = function (configuration) {
4323
+ return {
4324
+ /**
4325
+ * Returns the total size and ratio of all secured asset
4326
+ * @param {number} [height] optional block height, defaults to current tip
4327
+ * @param {*} [options] Override http request option.
4328
+ * @throws {RequiredError}
4329
+ */
4330
+ securedAssets: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
4331
+ const localVarPath = `/thorchain/securedassets`;
4332
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4334
+ let baseOptions;
4335
+ if (configuration) {
4336
+ baseOptions = configuration.baseOptions;
4337
+ }
4338
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4339
+ const localVarHeaderParameter = {};
4340
+ const localVarQueryParameter = {};
4341
+ if (height !== undefined) {
4342
+ localVarQueryParameter['height'] = height;
4343
+ }
4344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4346
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4347
+ return {
4348
+ url: toPathString(localVarUrlObj),
4349
+ options: localVarRequestOptions,
4350
+ };
4351
+ }),
4352
+ };
4353
+ };
4354
+ /**
4355
+ * SecuredAssetsApi - functional programming interface
4356
+ * @export
4357
+ */
4358
+ const SecuredAssetsApiFp = function (configuration) {
4359
+ const localVarAxiosParamCreator = SecuredAssetsApiAxiosParamCreator(configuration);
4360
+ return {
4361
+ /**
4362
+ * Returns the total size and ratio of all secured asset
4363
+ * @param {number} [height] optional block height, defaults to current tip
4364
+ * @param {*} [options] Override http request option.
4365
+ * @throws {RequiredError}
4366
+ */
4367
+ securedAssets(height, options) {
4368
+ return __awaiter(this, void 0, void 0, function* () {
4369
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.securedAssets(height, options);
4370
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4371
+ });
4372
+ },
4373
+ };
4374
+ };
4375
+ /**
4376
+ * SecuredAssetsApi - factory interface
4377
+ * @export
4378
+ */
4379
+ const SecuredAssetsApiFactory = function (configuration, basePath, axios) {
4380
+ const localVarFp = SecuredAssetsApiFp(configuration);
4381
+ return {
4382
+ /**
4383
+ * Returns the total size and ratio of all secured asset
4384
+ * @param {number} [height] optional block height, defaults to current tip
4385
+ * @param {*} [options] Override http request option.
4386
+ * @throws {RequiredError}
4387
+ */
4388
+ securedAssets(height, options) {
4389
+ return localVarFp.securedAssets(height, options).then((request) => request(axios, basePath));
4390
+ },
4391
+ };
4392
+ };
4393
+ /**
4394
+ * SecuredAssetsApi - object-oriented interface
4395
+ * @export
4396
+ * @class SecuredAssetsApi
4397
+ * @extends {BaseAPI}
4398
+ */
4399
+ class SecuredAssetsApi extends BaseAPI {
4400
+ /**
4401
+ * Returns the total size and ratio of all secured asset
4402
+ * @param {number} [height] optional block height, defaults to current tip
4403
+ * @param {*} [options] Override http request option.
4404
+ * @throws {RequiredError}
4405
+ * @memberof SecuredAssetsApi
4406
+ */
4407
+ securedAssets(height, options) {
4408
+ return SecuredAssetsApiFp(this.configuration).securedAssets(height, options).then((request) => request(this.axios, this.basePath));
4409
+ }
4410
+ }
3737
4411
  /**
3738
4412
  * StreamingSwapApi - axios parameter creator
3739
4413
  * @export
@@ -5384,7 +6058,7 @@ class VaultsApi extends BaseAPI {
5384
6058
  * Thornode API
5385
6059
  * Thornode REST API.
5386
6060
  *
5387
- * The version of the OpenAPI document: 1.134.0
6061
+ * The version of the OpenAPI document: 3.1.1
5388
6062
  * Contact: devs@thorchain.org
5389
6063
  *
5390
6064
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5422,5 +6096,4 @@ class Configuration {
5422
6096
  */
5423
6097
  const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
5424
6098
 
5425
- export { BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, CloutApi, CloutApiAxiosParamCreator, CloutApiFactory, CloutApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, PoolSlipApi, PoolSlipApiAxiosParamCreator, PoolSlipApiFactory, PoolSlipApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, RUNEPoolApi, RUNEPoolApiAxiosParamCreator, RUNEPoolApiFactory, RUNEPoolApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TradeAccountApi, TradeAccountApiAxiosParamCreator, TradeAccountApiFactory, TradeAccountApiFp, TradeAccountsApi, TradeAccountsApiAxiosParamCreator, TradeAccountsApiFactory, TradeAccountsApiFp, TradeUnitApi, TradeUnitApiAxiosParamCreator, TradeUnitApiFactory, TradeUnitApiFp, TradeUnitsApi, TradeUnitsApiAxiosParamCreator, TradeUnitsApiFactory, TradeUnitsApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp, YggdrasilVaultTypeEnum };
5426
- //# sourceMappingURL=index.esm.js.map
6099
+ export { AuthApi, AuthApiAxiosParamCreator, AuthApiFactory, AuthApiFp, BankApi, BankApiAxiosParamCreator, BankApiFactory, BankApiFp, BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, CloutApi, CloutApiAxiosParamCreator, CloutApiFactory, CloutApiFp, Configuration, ExportApi, ExportApiAxiosParamCreator, ExportApiFactory, ExportApiFp, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, PoolSlipApi, PoolSlipApiAxiosParamCreator, PoolSlipApiFactory, PoolSlipApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, RUNEPoolApi, RUNEPoolApiAxiosParamCreator, RUNEPoolApiFactory, RUNEPoolApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, SecuredAssetApi, SecuredAssetApiAxiosParamCreator, SecuredAssetApiFactory, SecuredAssetApiFp, SecuredAssetsApi, SecuredAssetsApiAxiosParamCreator, SecuredAssetsApiFactory, SecuredAssetsApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TradeAccountApi, TradeAccountApiAxiosParamCreator, TradeAccountApiFactory, TradeAccountApiFp, TradeAccountsApi, TradeAccountsApiAxiosParamCreator, TradeAccountsApiFactory, TradeAccountsApiFp, TradeUnitApi, TradeUnitApiAxiosParamCreator, TradeUnitApiFactory, TradeUnitApiFp, TradeUnitsApi, TradeUnitsApiAxiosParamCreator, TradeUnitsApiFactory, TradeUnitsApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, UpgradeVoteVoteEnum, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp, YggdrasilVaultTypeEnum };