@xchainjs/xchain-thornode 0.3.20 → 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/generated/thornodeApi/api.d.ts +587 -13
- package/lib/generated/thornodeApi/base.d.ts +1 -1
- package/lib/generated/thornodeApi/common.d.ts +1 -1
- package/lib/generated/thornodeApi/configuration.d.ts +1 -1
- package/lib/generated/thornodeApi/index.d.ts +1 -1
- package/lib/index.esm.js +680 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +772 -73
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var globalAxios = require('axios');
|
|
4
4
|
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var globalAxios__default = /*#__PURE__*/_interopDefault(globalAxios);
|
|
8
|
+
|
|
5
9
|
/******************************************************************************
|
|
6
10
|
Copyright (c) Microsoft Corporation.
|
|
7
11
|
|
|
@@ -16,7 +20,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
16
20
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
21
|
PERFORMANCE OF THIS SOFTWARE.
|
|
18
22
|
***************************************************************************** */
|
|
19
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
23
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
20
24
|
|
|
21
25
|
|
|
22
26
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
@@ -40,7 +44,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
40
44
|
* Thornode API
|
|
41
45
|
* Thornode REST API.
|
|
42
46
|
*
|
|
43
|
-
* The version of the OpenAPI document: 1.
|
|
47
|
+
* The version of the OpenAPI document: 3.1.1
|
|
44
48
|
* Contact: devs@thorchain.org
|
|
45
49
|
*
|
|
46
50
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -56,7 +60,7 @@ const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
|
56
60
|
* @class BaseAPI
|
|
57
61
|
*/
|
|
58
62
|
class BaseAPI {
|
|
59
|
-
constructor(configuration, basePath = BASE_PATH, axios =
|
|
63
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios__default.default) {
|
|
60
64
|
this.basePath = basePath;
|
|
61
65
|
this.axios = axios;
|
|
62
66
|
if (configuration) {
|
|
@@ -85,7 +89,7 @@ class RequiredError extends Error {
|
|
|
85
89
|
* Thornode API
|
|
86
90
|
* Thornode REST API.
|
|
87
91
|
*
|
|
88
|
-
* The version of the OpenAPI document: 1.
|
|
92
|
+
* The version of the OpenAPI document: 3.1.1
|
|
89
93
|
* Contact: devs@thorchain.org
|
|
90
94
|
*
|
|
91
95
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -158,7 +162,7 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
|
|
|
158
162
|
* Thornode API
|
|
159
163
|
* Thornode REST API.
|
|
160
164
|
*
|
|
161
|
-
* The version of the OpenAPI document: 1.
|
|
165
|
+
* The version of the OpenAPI document: 3.1.1
|
|
162
166
|
* Contact: devs@thorchain.org
|
|
163
167
|
*
|
|
164
168
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -175,6 +179,10 @@ const ObservedTxStatusEnum = {
|
|
|
175
179
|
Done: 'done',
|
|
176
180
|
Incomplete: 'incomplete'
|
|
177
181
|
};
|
|
182
|
+
const UpgradeVoteVoteEnum = {
|
|
183
|
+
Approve: 'approve',
|
|
184
|
+
Reject: 'reject'
|
|
185
|
+
};
|
|
178
186
|
const VaultTypeEnum = {
|
|
179
187
|
AsgardVault: 'AsgardVault',
|
|
180
188
|
YggdrasilVault: 'YggdrasilVault'
|
|
@@ -183,6 +191,206 @@ const YggdrasilVaultTypeEnum = {
|
|
|
183
191
|
AsgardVault: 'AsgardVault',
|
|
184
192
|
YggdrasilVault: 'YggdrasilVault'
|
|
185
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
|
+
}
|
|
186
394
|
/**
|
|
187
395
|
* BlockApi - axios parameter creator
|
|
188
396
|
* @export
|
|
@@ -235,7 +443,7 @@ const BlockApiFp = function (configuration) {
|
|
|
235
443
|
block(height, options) {
|
|
236
444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
445
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.block(height, options);
|
|
238
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
239
447
|
});
|
|
240
448
|
},
|
|
241
449
|
};
|
|
@@ -370,7 +578,7 @@ const BorrowersApiFp = function (configuration) {
|
|
|
370
578
|
borrower(asset, address, height, options) {
|
|
371
579
|
return __awaiter(this, void 0, void 0, function* () {
|
|
372
580
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.borrower(asset, address, height, options);
|
|
373
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
581
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
374
582
|
});
|
|
375
583
|
},
|
|
376
584
|
/**
|
|
@@ -383,7 +591,7 @@ const BorrowersApiFp = function (configuration) {
|
|
|
383
591
|
borrowers(asset, height, options) {
|
|
384
592
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
593
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.borrowers(asset, height, options);
|
|
386
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
594
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
387
595
|
});
|
|
388
596
|
},
|
|
389
597
|
};
|
|
@@ -506,7 +714,7 @@ const CloutApiFp = function (configuration) {
|
|
|
506
714
|
swapperClout(address, height, options) {
|
|
507
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
508
716
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.swapperClout(address, height, options);
|
|
509
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
717
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
510
718
|
});
|
|
511
719
|
},
|
|
512
720
|
};
|
|
@@ -549,6 +757,92 @@ class CloutApi extends BaseAPI {
|
|
|
549
757
|
return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
550
758
|
}
|
|
551
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
|
+
}
|
|
552
846
|
/**
|
|
553
847
|
* HealthApi - axios parameter creator
|
|
554
848
|
* @export
|
|
@@ -596,7 +890,7 @@ const HealthApiFp = function (configuration) {
|
|
|
596
890
|
ping(options) {
|
|
597
891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
598
892
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.ping(options);
|
|
599
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
893
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
600
894
|
});
|
|
601
895
|
},
|
|
602
896
|
};
|
|
@@ -720,7 +1014,7 @@ const InvariantsApiFp = function (configuration) {
|
|
|
720
1014
|
invariant(invariant, height, options) {
|
|
721
1015
|
return __awaiter(this, void 0, void 0, function* () {
|
|
722
1016
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.invariant(invariant, height, options);
|
|
723
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1017
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
724
1018
|
});
|
|
725
1019
|
},
|
|
726
1020
|
/**
|
|
@@ -732,7 +1026,7 @@ const InvariantsApiFp = function (configuration) {
|
|
|
732
1026
|
invariants(height, options) {
|
|
733
1027
|
return __awaiter(this, void 0, void 0, function* () {
|
|
734
1028
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.invariants(height, options);
|
|
735
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1029
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
736
1030
|
});
|
|
737
1031
|
},
|
|
738
1032
|
};
|
|
@@ -888,7 +1182,7 @@ const LiquidityProvidersApiFp = function (configuration) {
|
|
|
888
1182
|
liquidityProvider(asset, address, height, options) {
|
|
889
1183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
890
1184
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.liquidityProvider(asset, address, height, options);
|
|
891
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1185
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
892
1186
|
});
|
|
893
1187
|
},
|
|
894
1188
|
/**
|
|
@@ -901,7 +1195,7 @@ const LiquidityProvidersApiFp = function (configuration) {
|
|
|
901
1195
|
liquidityProviders(asset, height, options) {
|
|
902
1196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
903
1197
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.liquidityProviders(asset, height, options);
|
|
904
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1198
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
905
1199
|
});
|
|
906
1200
|
},
|
|
907
1201
|
};
|
|
@@ -1139,7 +1433,7 @@ const MimirApiFp = function (configuration) {
|
|
|
1139
1433
|
mimir(height, options) {
|
|
1140
1434
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1141
1435
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimir(height, options);
|
|
1142
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1436
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1143
1437
|
});
|
|
1144
1438
|
},
|
|
1145
1439
|
/**
|
|
@@ -1151,7 +1445,7 @@ const MimirApiFp = function (configuration) {
|
|
|
1151
1445
|
mimirAdmin(height, options) {
|
|
1152
1446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1153
1447
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirAdmin(height, options);
|
|
1154
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1448
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1155
1449
|
});
|
|
1156
1450
|
},
|
|
1157
1451
|
/**
|
|
@@ -1164,7 +1458,7 @@ const MimirApiFp = function (configuration) {
|
|
|
1164
1458
|
mimirKey(key, height, options) {
|
|
1165
1459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1166
1460
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirKey(key, height, options);
|
|
1167
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1461
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1168
1462
|
});
|
|
1169
1463
|
},
|
|
1170
1464
|
/**
|
|
@@ -1177,7 +1471,7 @@ const MimirApiFp = function (configuration) {
|
|
|
1177
1471
|
mimirNode(address, height, options) {
|
|
1178
1472
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1179
1473
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirNode(address, height, options);
|
|
1180
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1474
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1181
1475
|
});
|
|
1182
1476
|
},
|
|
1183
1477
|
/**
|
|
@@ -1189,7 +1483,7 @@ const MimirApiFp = function (configuration) {
|
|
|
1189
1483
|
mimirNodes(height, options) {
|
|
1190
1484
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1191
1485
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirNodes(height, options);
|
|
1192
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
1486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1193
1487
|
});
|
|
1194
1488
|
},
|
|
1195
1489
|
};
|
|
@@ -1580,6 +1874,98 @@ const NetworkApiAxiosParamCreator = function (configuration) {
|
|
|
1580
1874
|
options: localVarRequestOptions,
|
|
1581
1875
|
};
|
|
1582
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
|
+
}),
|
|
1583
1969
|
/**
|
|
1584
1970
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
1585
1971
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -1627,7 +2013,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1627
2013
|
ban(address, height, options) {
|
|
1628
2014
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1629
2015
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.ban(address, height, options);
|
|
1630
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2016
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1631
2017
|
});
|
|
1632
2018
|
},
|
|
1633
2019
|
/**
|
|
@@ -1639,7 +2025,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1639
2025
|
constants(height, options) {
|
|
1640
2026
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1641
2027
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.constants(height, options);
|
|
1642
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2028
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1643
2029
|
});
|
|
1644
2030
|
},
|
|
1645
2031
|
/**
|
|
@@ -1651,7 +2037,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1651
2037
|
inboundAddresses(height, options) {
|
|
1652
2038
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1653
2039
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.inboundAddresses(height, options);
|
|
1654
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2040
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1655
2041
|
});
|
|
1656
2042
|
},
|
|
1657
2043
|
/**
|
|
@@ -1663,7 +2049,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1663
2049
|
lastblock(height, options) {
|
|
1664
2050
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1665
2051
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.lastblock(height, options);
|
|
1666
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2052
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1667
2053
|
});
|
|
1668
2054
|
},
|
|
1669
2055
|
/**
|
|
@@ -1676,7 +2062,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1676
2062
|
lastblockChain(chain, height, options) {
|
|
1677
2063
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1678
2064
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.lastblockChain(chain, height, options);
|
|
1679
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2065
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1680
2066
|
});
|
|
1681
2067
|
},
|
|
1682
2068
|
/**
|
|
@@ -1688,7 +2074,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1688
2074
|
network(height, options) {
|
|
1689
2075
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1690
2076
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.network(height, options);
|
|
1691
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2077
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1692
2078
|
});
|
|
1693
2079
|
},
|
|
1694
2080
|
/**
|
|
@@ -1701,7 +2087,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1701
2087
|
outboundFeeAsset(asset, height, options) {
|
|
1702
2088
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1703
2089
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.outboundFeeAsset(asset, height, options);
|
|
1704
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2090
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1705
2091
|
});
|
|
1706
2092
|
},
|
|
1707
2093
|
/**
|
|
@@ -1713,7 +2099,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1713
2099
|
outboundFees(height, options) {
|
|
1714
2100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1715
2101
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.outboundFees(height, options);
|
|
1716
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2102
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1717
2103
|
});
|
|
1718
2104
|
},
|
|
1719
2105
|
/**
|
|
@@ -1725,7 +2111,45 @@ const NetworkApiFp = function (configuration) {
|
|
|
1725
2111
|
ragnarok(height, options) {
|
|
1726
2112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1727
2113
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.ragnarok(height, options);
|
|
1728
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2114
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2115
|
+
});
|
|
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);
|
|
1729
2153
|
});
|
|
1730
2154
|
},
|
|
1731
2155
|
/**
|
|
@@ -1737,7 +2161,7 @@ const NetworkApiFp = function (configuration) {
|
|
|
1737
2161
|
version(height, options) {
|
|
1738
2162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1739
2163
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.version(height, options);
|
|
1740
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
1741
2165
|
});
|
|
1742
2166
|
},
|
|
1743
2167
|
};
|
|
@@ -1833,6 +2257,35 @@ const NetworkApiFactory = function (configuration, basePath, axios) {
|
|
|
1833
2257
|
ragnarok(height, options) {
|
|
1834
2258
|
return localVarFp.ragnarok(height, options).then((request) => request(axios, basePath));
|
|
1835
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
|
+
},
|
|
1836
2289
|
/**
|
|
1837
2290
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
1838
2291
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -1944,6 +2397,38 @@ class NetworkApi extends BaseAPI {
|
|
|
1944
2397
|
ragnarok(height, options) {
|
|
1945
2398
|
return NetworkApiFp(this.configuration).ragnarok(height, options).then((request) => request(this.axios, this.basePath));
|
|
1946
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
|
+
}
|
|
1947
2432
|
/**
|
|
1948
2433
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
1949
2434
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2040,7 +2525,7 @@ const NodesApiFp = function (configuration) {
|
|
|
2040
2525
|
node(address, height, options) {
|
|
2041
2526
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2042
2527
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.node(address, height, options);
|
|
2043
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2528
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2044
2529
|
});
|
|
2045
2530
|
},
|
|
2046
2531
|
/**
|
|
@@ -2052,7 +2537,7 @@ const NodesApiFp = function (configuration) {
|
|
|
2052
2537
|
nodes(height, options) {
|
|
2053
2538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2054
2539
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.nodes(height, options);
|
|
2055
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2540
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2056
2541
|
});
|
|
2057
2542
|
},
|
|
2058
2543
|
};
|
|
@@ -2199,7 +2684,7 @@ const PoolSlipApiFp = function (configuration) {
|
|
|
2199
2684
|
poolslip(asset, height, options) {
|
|
2200
2685
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2201
2686
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.poolslip(asset, height, options);
|
|
2202
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2687
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2203
2688
|
});
|
|
2204
2689
|
},
|
|
2205
2690
|
/**
|
|
@@ -2211,7 +2696,7 @@ const PoolSlipApiFp = function (configuration) {
|
|
|
2211
2696
|
poolslips(height, options) {
|
|
2212
2697
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2213
2698
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.poolslips(height, options);
|
|
2214
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2699
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2215
2700
|
});
|
|
2216
2701
|
},
|
|
2217
2702
|
};
|
|
@@ -2418,7 +2903,7 @@ const PoolsApiFp = function (configuration) {
|
|
|
2418
2903
|
dpool(asset, height, options) {
|
|
2419
2904
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2420
2905
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.dpool(asset, height, options);
|
|
2421
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2906
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2422
2907
|
});
|
|
2423
2908
|
},
|
|
2424
2909
|
/**
|
|
@@ -2430,7 +2915,7 @@ const PoolsApiFp = function (configuration) {
|
|
|
2430
2915
|
dpools(height, options) {
|
|
2431
2916
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2432
2917
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.dpools(height, options);
|
|
2433
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2918
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2434
2919
|
});
|
|
2435
2920
|
},
|
|
2436
2921
|
/**
|
|
@@ -2443,7 +2928,7 @@ const PoolsApiFp = function (configuration) {
|
|
|
2443
2928
|
pool(asset, height, options) {
|
|
2444
2929
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2445
2930
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.pool(asset, height, options);
|
|
2446
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2931
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2447
2932
|
});
|
|
2448
2933
|
},
|
|
2449
2934
|
/**
|
|
@@ -2455,7 +2940,7 @@ const PoolsApiFp = function (configuration) {
|
|
|
2455
2940
|
pools(height, options) {
|
|
2456
2941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2457
2942
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.pools(height, options);
|
|
2458
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
2943
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2459
2944
|
});
|
|
2460
2945
|
},
|
|
2461
2946
|
};
|
|
@@ -2693,7 +3178,7 @@ const QueueApiFp = function (configuration) {
|
|
|
2693
3178
|
queue(height, options) {
|
|
2694
3179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2695
3180
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.queue(height, options);
|
|
2696
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3181
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2697
3182
|
});
|
|
2698
3183
|
},
|
|
2699
3184
|
/**
|
|
@@ -2705,7 +3190,7 @@ const QueueApiFp = function (configuration) {
|
|
|
2705
3190
|
queueOutbound(height, options) {
|
|
2706
3191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2707
3192
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.queueOutbound(height, options);
|
|
2708
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3193
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2709
3194
|
});
|
|
2710
3195
|
},
|
|
2711
3196
|
/**
|
|
@@ -2717,7 +3202,7 @@ const QueueApiFp = function (configuration) {
|
|
|
2717
3202
|
queueScheduled(height, options) {
|
|
2718
3203
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2719
3204
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.queueScheduled(height, options);
|
|
2720
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3205
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2721
3206
|
});
|
|
2722
3207
|
},
|
|
2723
3208
|
/**
|
|
@@ -2729,7 +3214,7 @@ const QueueApiFp = function (configuration) {
|
|
|
2729
3214
|
queueSwap(height, options) {
|
|
2730
3215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2731
3216
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.queueSwap(height, options);
|
|
2732
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3217
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
2733
3218
|
});
|
|
2734
3219
|
},
|
|
2735
3220
|
};
|
|
@@ -3104,7 +3589,7 @@ const QuoteApiFp = function (configuration) {
|
|
|
3104
3589
|
quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
|
|
3105
3590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3106
3591
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options);
|
|
3107
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3592
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3108
3593
|
});
|
|
3109
3594
|
},
|
|
3110
3595
|
/**
|
|
@@ -3123,7 +3608,7 @@ const QuoteApiFp = function (configuration) {
|
|
|
3123
3608
|
quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
3124
3609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3125
3610
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options);
|
|
3126
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3611
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3127
3612
|
});
|
|
3128
3613
|
},
|
|
3129
3614
|
/**
|
|
@@ -3137,7 +3622,7 @@ const QuoteApiFp = function (configuration) {
|
|
|
3137
3622
|
quotesaverdeposit(height, asset, amount, options) {
|
|
3138
3623
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3139
3624
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.quotesaverdeposit(height, asset, amount, options);
|
|
3140
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3625
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3141
3626
|
});
|
|
3142
3627
|
},
|
|
3143
3628
|
/**
|
|
@@ -3152,7 +3637,7 @@ const QuoteApiFp = function (configuration) {
|
|
|
3152
3637
|
quotesaverwithdraw(height, asset, address, withdrawBps, options) {
|
|
3153
3638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3154
3639
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.quotesaverwithdraw(height, asset, address, withdrawBps, options);
|
|
3155
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3640
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3156
3641
|
});
|
|
3157
3642
|
},
|
|
3158
3643
|
/**
|
|
@@ -3174,7 +3659,7 @@ const QuoteApiFp = function (configuration) {
|
|
|
3174
3659
|
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3175
3660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3176
3661
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options);
|
|
3177
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3662
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3178
3663
|
});
|
|
3179
3664
|
},
|
|
3180
3665
|
};
|
|
@@ -3457,7 +3942,7 @@ const RUNEPoolApiFp = function (configuration) {
|
|
|
3457
3942
|
runePool(height, options) {
|
|
3458
3943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3459
3944
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.runePool(height, options);
|
|
3460
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3945
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3461
3946
|
});
|
|
3462
3947
|
},
|
|
3463
3948
|
/**
|
|
@@ -3470,7 +3955,7 @@ const RUNEPoolApiFp = function (configuration) {
|
|
|
3470
3955
|
runeProvider(address, height, options) {
|
|
3471
3956
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3472
3957
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProvider(address, height, options);
|
|
3473
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3958
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3474
3959
|
});
|
|
3475
3960
|
},
|
|
3476
3961
|
/**
|
|
@@ -3482,7 +3967,7 @@ const RUNEPoolApiFp = function (configuration) {
|
|
|
3482
3967
|
runeProviders(height, options) {
|
|
3483
3968
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3484
3969
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProviders(height, options);
|
|
3485
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
3970
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3486
3971
|
});
|
|
3487
3972
|
},
|
|
3488
3973
|
};
|
|
@@ -3657,7 +4142,7 @@ const SaversApiFp = function (configuration) {
|
|
|
3657
4142
|
saver(asset, address, height, options) {
|
|
3658
4143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3659
4144
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.saver(asset, address, height, options);
|
|
3660
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4145
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3661
4146
|
});
|
|
3662
4147
|
},
|
|
3663
4148
|
/**
|
|
@@ -3670,7 +4155,7 @@ const SaversApiFp = function (configuration) {
|
|
|
3670
4155
|
savers(asset, height, options) {
|
|
3671
4156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3672
4157
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.savers(asset, height, options);
|
|
3673
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4158
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3674
4159
|
});
|
|
3675
4160
|
},
|
|
3676
4161
|
};
|
|
@@ -3736,6 +4221,199 @@ class SaversApi extends BaseAPI {
|
|
|
3736
4221
|
return SaversApiFp(this.configuration).savers(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
3737
4222
|
}
|
|
3738
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
|
+
}
|
|
3739
4417
|
/**
|
|
3740
4418
|
* StreamingSwapApi - axios parameter creator
|
|
3741
4419
|
* @export
|
|
@@ -3821,7 +4499,7 @@ const StreamingSwapApiFp = function (configuration) {
|
|
|
3821
4499
|
streamSwap(hash, height, options) {
|
|
3822
4500
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3823
4501
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.streamSwap(hash, height, options);
|
|
3824
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4502
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3825
4503
|
});
|
|
3826
4504
|
},
|
|
3827
4505
|
/**
|
|
@@ -3833,7 +4511,7 @@ const StreamingSwapApiFp = function (configuration) {
|
|
|
3833
4511
|
streamSwaps(height, options) {
|
|
3834
4512
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3835
4513
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.streamSwaps(height, options);
|
|
3836
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4514
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
3837
4515
|
});
|
|
3838
4516
|
},
|
|
3839
4517
|
};
|
|
@@ -4072,7 +4750,7 @@ const TSSApiFp = function (configuration) {
|
|
|
4072
4750
|
keygenPubkey(height, pubkey, options) {
|
|
4073
4751
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4074
4752
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.keygenPubkey(height, pubkey, options);
|
|
4075
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4753
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4076
4754
|
});
|
|
4077
4755
|
},
|
|
4078
4756
|
/**
|
|
@@ -4084,7 +4762,7 @@ const TSSApiFp = function (configuration) {
|
|
|
4084
4762
|
keysign(height, options) {
|
|
4085
4763
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4086
4764
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.keysign(height, options);
|
|
4087
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4765
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4088
4766
|
});
|
|
4089
4767
|
},
|
|
4090
4768
|
/**
|
|
@@ -4097,7 +4775,7 @@ const TSSApiFp = function (configuration) {
|
|
|
4097
4775
|
keysignPubkey(height, pubkey, options) {
|
|
4098
4776
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4099
4777
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.keysignPubkey(height, pubkey, options);
|
|
4100
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4778
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4101
4779
|
});
|
|
4102
4780
|
},
|
|
4103
4781
|
/**
|
|
@@ -4109,7 +4787,7 @@ const TSSApiFp = function (configuration) {
|
|
|
4109
4787
|
metrics(height, options) {
|
|
4110
4788
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4111
4789
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metrics(height, options);
|
|
4112
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4790
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4113
4791
|
});
|
|
4114
4792
|
},
|
|
4115
4793
|
/**
|
|
@@ -4122,7 +4800,7 @@ const TSSApiFp = function (configuration) {
|
|
|
4122
4800
|
metricsKeygen(pubkey, height, options) {
|
|
4123
4801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4124
4802
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metricsKeygen(pubkey, height, options);
|
|
4125
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4803
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4126
4804
|
});
|
|
4127
4805
|
},
|
|
4128
4806
|
};
|
|
@@ -4302,7 +4980,7 @@ const ThornamesApiFp = function (configuration) {
|
|
|
4302
4980
|
thorname(name, height, options) {
|
|
4303
4981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4304
4982
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.thorname(name, height, options);
|
|
4305
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
4983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4306
4984
|
});
|
|
4307
4985
|
},
|
|
4308
4986
|
};
|
|
@@ -4402,7 +5080,7 @@ const TradeAccountApiFp = function (configuration) {
|
|
|
4402
5080
|
tradeAccount(address, height, options) {
|
|
4403
5081
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4404
5082
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.tradeAccount(address, height, options);
|
|
4405
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5083
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4406
5084
|
});
|
|
4407
5085
|
},
|
|
4408
5086
|
};
|
|
@@ -4502,7 +5180,7 @@ const TradeAccountsApiFp = function (configuration) {
|
|
|
4502
5180
|
tradeAccounts(asset, height, options) {
|
|
4503
5181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4504
5182
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.tradeAccounts(asset, height, options);
|
|
4505
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5183
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4506
5184
|
});
|
|
4507
5185
|
},
|
|
4508
5186
|
};
|
|
@@ -4602,7 +5280,7 @@ const TradeUnitApiFp = function (configuration) {
|
|
|
4602
5280
|
tradeUnit(asset, height, options) {
|
|
4603
5281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4604
5282
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.tradeUnit(asset, height, options);
|
|
4605
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5283
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4606
5284
|
});
|
|
4607
5285
|
},
|
|
4608
5286
|
};
|
|
@@ -4697,7 +5375,7 @@ const TradeUnitsApiFp = function (configuration) {
|
|
|
4697
5375
|
tradeUnits(height, options) {
|
|
4698
5376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4699
5377
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.tradeUnits(height, options);
|
|
4700
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5378
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4701
5379
|
});
|
|
4702
5380
|
},
|
|
4703
5381
|
};
|
|
@@ -4923,7 +5601,7 @@ const TransactionsApiFp = function (configuration) {
|
|
|
4923
5601
|
tx(hash, height, options) {
|
|
4924
5602
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4925
5603
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.tx(hash, height, options);
|
|
4926
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5604
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4927
5605
|
});
|
|
4928
5606
|
},
|
|
4929
5607
|
/**
|
|
@@ -4936,7 +5614,7 @@ const TransactionsApiFp = function (configuration) {
|
|
|
4936
5614
|
txSigners(hash, height, options) {
|
|
4937
5615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4938
5616
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.txSigners(hash, height, options);
|
|
4939
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5617
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4940
5618
|
});
|
|
4941
5619
|
},
|
|
4942
5620
|
/**
|
|
@@ -4949,7 +5627,7 @@ const TransactionsApiFp = function (configuration) {
|
|
|
4949
5627
|
txSignersOld(hash, height, options) {
|
|
4950
5628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4951
5629
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.txSignersOld(hash, height, options);
|
|
4952
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5630
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4953
5631
|
});
|
|
4954
5632
|
},
|
|
4955
5633
|
/**
|
|
@@ -4962,7 +5640,7 @@ const TransactionsApiFp = function (configuration) {
|
|
|
4962
5640
|
txStages(hash, height, options) {
|
|
4963
5641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4964
5642
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStages(hash, height, options);
|
|
4965
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5643
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4966
5644
|
});
|
|
4967
5645
|
},
|
|
4968
5646
|
/**
|
|
@@ -4975,7 +5653,7 @@ const TransactionsApiFp = function (configuration) {
|
|
|
4975
5653
|
txStatus(hash, height, options) {
|
|
4976
5654
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4977
5655
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.txStatus(hash, height, options);
|
|
4978
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5656
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
4979
5657
|
});
|
|
4980
5658
|
},
|
|
4981
5659
|
};
|
|
@@ -5242,7 +5920,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
5242
5920
|
asgard(height, options) {
|
|
5243
5921
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5244
5922
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.asgard(height, options);
|
|
5245
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5923
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
5246
5924
|
});
|
|
5247
5925
|
},
|
|
5248
5926
|
/**
|
|
@@ -5255,7 +5933,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
5255
5933
|
vault(pubkey, height, options) {
|
|
5256
5934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5257
5935
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.vault(pubkey, height, options);
|
|
5258
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5936
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
5259
5937
|
});
|
|
5260
5938
|
},
|
|
5261
5939
|
/**
|
|
@@ -5267,7 +5945,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
5267
5945
|
vaultPubkeys(height, options) {
|
|
5268
5946
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5269
5947
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.vaultPubkeys(height, options);
|
|
5270
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5948
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
5271
5949
|
});
|
|
5272
5950
|
},
|
|
5273
5951
|
/**
|
|
@@ -5279,7 +5957,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
5279
5957
|
yggdrasil(height, options) {
|
|
5280
5958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5281
5959
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.yggdrasil(height, options);
|
|
5282
|
-
return createRequestFunction(localVarAxiosArgs,
|
|
5960
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
|
|
5283
5961
|
});
|
|
5284
5962
|
},
|
|
5285
5963
|
};
|
|
@@ -5386,7 +6064,7 @@ class VaultsApi extends BaseAPI {
|
|
|
5386
6064
|
* Thornode API
|
|
5387
6065
|
* Thornode REST API.
|
|
5388
6066
|
*
|
|
5389
|
-
* The version of the OpenAPI document: 1.
|
|
6067
|
+
* The version of the OpenAPI document: 3.1.1
|
|
5390
6068
|
* Contact: devs@thorchain.org
|
|
5391
6069
|
*
|
|
5392
6070
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5424,6 +6102,14 @@ class Configuration {
|
|
|
5424
6102
|
*/
|
|
5425
6103
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
5426
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;
|
|
5427
6113
|
exports.BlockApi = BlockApi;
|
|
5428
6114
|
exports.BlockApiAxiosParamCreator = BlockApiAxiosParamCreator;
|
|
5429
6115
|
exports.BlockApiFactory = BlockApiFactory;
|
|
@@ -5437,6 +6123,10 @@ exports.CloutApiAxiosParamCreator = CloutApiAxiosParamCreator;
|
|
|
5437
6123
|
exports.CloutApiFactory = CloutApiFactory;
|
|
5438
6124
|
exports.CloutApiFp = CloutApiFp;
|
|
5439
6125
|
exports.Configuration = Configuration;
|
|
6126
|
+
exports.ExportApi = ExportApi;
|
|
6127
|
+
exports.ExportApiAxiosParamCreator = ExportApiAxiosParamCreator;
|
|
6128
|
+
exports.ExportApiFactory = ExportApiFactory;
|
|
6129
|
+
exports.ExportApiFp = ExportApiFp;
|
|
5440
6130
|
exports.HealthApi = HealthApi;
|
|
5441
6131
|
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
5442
6132
|
exports.HealthApiFactory = HealthApiFactory;
|
|
@@ -5487,6 +6177,14 @@ exports.SaversApi = SaversApi;
|
|
|
5487
6177
|
exports.SaversApiAxiosParamCreator = SaversApiAxiosParamCreator;
|
|
5488
6178
|
exports.SaversApiFactory = SaversApiFactory;
|
|
5489
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;
|
|
5490
6188
|
exports.StreamingSwapApi = StreamingSwapApi;
|
|
5491
6189
|
exports.StreamingSwapApiAxiosParamCreator = StreamingSwapApiAxiosParamCreator;
|
|
5492
6190
|
exports.StreamingSwapApiFactory = StreamingSwapApiFactory;
|
|
@@ -5520,6 +6218,7 @@ exports.TransactionsApi = TransactionsApi;
|
|
|
5520
6218
|
exports.TransactionsApiAxiosParamCreator = TransactionsApiAxiosParamCreator;
|
|
5521
6219
|
exports.TransactionsApiFactory = TransactionsApiFactory;
|
|
5522
6220
|
exports.TransactionsApiFp = TransactionsApiFp;
|
|
6221
|
+
exports.UpgradeVoteVoteEnum = UpgradeVoteVoteEnum;
|
|
5523
6222
|
exports.VaultTypeEnum = VaultTypeEnum;
|
|
5524
6223
|
exports.VaultsApi = VaultsApi;
|
|
5525
6224
|
exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
|