@xchainjs/xchain-thornode 0.3.14 → 0.3.16
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 +806 -271
- 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 +356 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +360 -1
- package/lib/index.js.map +1 -1
- package/package.json +6 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.132.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.132.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.132.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.132.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/lib/index.esm.js
CHANGED
|
@@ -132,6 +132,10 @@ const VaultTypeEnum = {
|
|
|
132
132
|
AsgardVault: 'AsgardVault',
|
|
133
133
|
YggdrasilVault: 'YggdrasilVault'
|
|
134
134
|
};
|
|
135
|
+
const YggdrasilVaultTypeEnum = {
|
|
136
|
+
AsgardVault: 'AsgardVault',
|
|
137
|
+
YggdrasilVault: 'YggdrasilVault'
|
|
138
|
+
};
|
|
135
139
|
/**
|
|
136
140
|
* BlockApi - axios parameter creator
|
|
137
141
|
* @export
|
|
@@ -1559,6 +1563,66 @@ const NetworkApiAxiosParamCreator = function (configuration) {
|
|
|
1559
1563
|
options: localVarRequestOptions,
|
|
1560
1564
|
};
|
|
1561
1565
|
}),
|
|
1566
|
+
/**
|
|
1567
|
+
* Returns the outbound fee information for the provided asset.
|
|
1568
|
+
* @param {string} asset
|
|
1569
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
outboundFeeAsset: (asset, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1574
|
+
// verify required parameter 'asset' is not null or undefined
|
|
1575
|
+
assertParamExists('outboundFeeAsset', 'asset', asset);
|
|
1576
|
+
const localVarPath = `/thorchain/outbound_fee/{asset}`
|
|
1577
|
+
.replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
|
|
1578
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1579
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1580
|
+
let baseOptions;
|
|
1581
|
+
if (configuration) {
|
|
1582
|
+
baseOptions = configuration.baseOptions;
|
|
1583
|
+
}
|
|
1584
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1585
|
+
const localVarHeaderParameter = {};
|
|
1586
|
+
const localVarQueryParameter = {};
|
|
1587
|
+
if (height !== undefined) {
|
|
1588
|
+
localVarQueryParameter['height'] = height;
|
|
1589
|
+
}
|
|
1590
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1592
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1593
|
+
return {
|
|
1594
|
+
url: toPathString(localVarUrlObj),
|
|
1595
|
+
options: localVarRequestOptions,
|
|
1596
|
+
};
|
|
1597
|
+
}),
|
|
1598
|
+
/**
|
|
1599
|
+
* Returns the last block information for all chains.
|
|
1600
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1601
|
+
* @param {*} [options] Override http request option.
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
*/
|
|
1604
|
+
outboundFees: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1605
|
+
const localVarPath = `/thorchain/outbound_fees`;
|
|
1606
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1607
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1608
|
+
let baseOptions;
|
|
1609
|
+
if (configuration) {
|
|
1610
|
+
baseOptions = configuration.baseOptions;
|
|
1611
|
+
}
|
|
1612
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1613
|
+
const localVarHeaderParameter = {};
|
|
1614
|
+
const localVarQueryParameter = {};
|
|
1615
|
+
if (height !== undefined) {
|
|
1616
|
+
localVarQueryParameter['height'] = height;
|
|
1617
|
+
}
|
|
1618
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1619
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1620
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1621
|
+
return {
|
|
1622
|
+
url: toPathString(localVarUrlObj),
|
|
1623
|
+
options: localVarRequestOptions,
|
|
1624
|
+
};
|
|
1625
|
+
}),
|
|
1562
1626
|
/**
|
|
1563
1627
|
* Returns a boolean indicating whether the chain is in ragnarok.
|
|
1564
1628
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -1698,6 +1762,31 @@ const NetworkApiFp = function (configuration) {
|
|
|
1698
1762
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1699
1763
|
});
|
|
1700
1764
|
},
|
|
1765
|
+
/**
|
|
1766
|
+
* Returns the outbound fee information for the provided asset.
|
|
1767
|
+
* @param {string} asset
|
|
1768
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1769
|
+
* @param {*} [options] Override http request option.
|
|
1770
|
+
* @throws {RequiredError}
|
|
1771
|
+
*/
|
|
1772
|
+
outboundFeeAsset(asset, height, options) {
|
|
1773
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1774
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.outboundFeeAsset(asset, height, options);
|
|
1775
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1776
|
+
});
|
|
1777
|
+
},
|
|
1778
|
+
/**
|
|
1779
|
+
* Returns the last block information for all chains.
|
|
1780
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
*/
|
|
1784
|
+
outboundFees(height, options) {
|
|
1785
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1786
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.outboundFees(height, options);
|
|
1787
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1788
|
+
});
|
|
1789
|
+
},
|
|
1701
1790
|
/**
|
|
1702
1791
|
* Returns a boolean indicating whether the chain is in ragnarok.
|
|
1703
1792
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -1787,6 +1876,25 @@ const NetworkApiFactory = function (configuration, basePath, axios) {
|
|
|
1787
1876
|
network(height, options) {
|
|
1788
1877
|
return localVarFp.network(height, options).then((request) => request(axios, basePath));
|
|
1789
1878
|
},
|
|
1879
|
+
/**
|
|
1880
|
+
* Returns the outbound fee information for the provided asset.
|
|
1881
|
+
* @param {string} asset
|
|
1882
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1883
|
+
* @param {*} [options] Override http request option.
|
|
1884
|
+
* @throws {RequiredError}
|
|
1885
|
+
*/
|
|
1886
|
+
outboundFeeAsset(asset, height, options) {
|
|
1887
|
+
return localVarFp.outboundFeeAsset(asset, height, options).then((request) => request(axios, basePath));
|
|
1888
|
+
},
|
|
1889
|
+
/**
|
|
1890
|
+
* Returns the last block information for all chains.
|
|
1891
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
outboundFees(height, options) {
|
|
1896
|
+
return localVarFp.outboundFees(height, options).then((request) => request(axios, basePath));
|
|
1897
|
+
},
|
|
1790
1898
|
/**
|
|
1791
1899
|
* Returns a boolean indicating whether the chain is in ragnarok.
|
|
1792
1900
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -1876,6 +1984,27 @@ class NetworkApi extends BaseAPI {
|
|
|
1876
1984
|
network(height, options) {
|
|
1877
1985
|
return NetworkApiFp(this.configuration).network(height, options).then((request) => request(this.axios, this.basePath));
|
|
1878
1986
|
}
|
|
1987
|
+
/**
|
|
1988
|
+
* Returns the outbound fee information for the provided asset.
|
|
1989
|
+
* @param {string} asset
|
|
1990
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1991
|
+
* @param {*} [options] Override http request option.
|
|
1992
|
+
* @throws {RequiredError}
|
|
1993
|
+
* @memberof NetworkApi
|
|
1994
|
+
*/
|
|
1995
|
+
outboundFeeAsset(asset, height, options) {
|
|
1996
|
+
return NetworkApiFp(this.configuration).outboundFeeAsset(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Returns the last block information for all chains.
|
|
2000
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2001
|
+
* @param {*} [options] Override http request option.
|
|
2002
|
+
* @throws {RequiredError}
|
|
2003
|
+
* @memberof NetworkApi
|
|
2004
|
+
*/
|
|
2005
|
+
outboundFees(height, options) {
|
|
2006
|
+
return NetworkApiFp(this.configuration).outboundFees(height, options).then((request) => request(this.axios, this.basePath));
|
|
2007
|
+
}
|
|
1879
2008
|
/**
|
|
1880
2009
|
* Returns a boolean indicating whether the chain is in ragnarok.
|
|
1881
2010
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -2149,6 +2278,165 @@ class POLApi extends BaseAPI {
|
|
|
2149
2278
|
return POLApiFp(this.configuration).pol(height, options).then((request) => request(this.axios, this.basePath));
|
|
2150
2279
|
}
|
|
2151
2280
|
}
|
|
2281
|
+
/**
|
|
2282
|
+
* PoolSlipApi - axios parameter creator
|
|
2283
|
+
* @export
|
|
2284
|
+
*/
|
|
2285
|
+
const PoolSlipApiAxiosParamCreator = function (configuration) {
|
|
2286
|
+
return {
|
|
2287
|
+
/**
|
|
2288
|
+
* Returns the pool slip information for the provided asset.
|
|
2289
|
+
* @param {string} asset
|
|
2290
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2291
|
+
* @param {*} [options] Override http request option.
|
|
2292
|
+
* @throws {RequiredError}
|
|
2293
|
+
*/
|
|
2294
|
+
poolslip: (asset, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2295
|
+
// verify required parameter 'asset' is not null or undefined
|
|
2296
|
+
assertParamExists('poolslip', 'asset', asset);
|
|
2297
|
+
const localVarPath = `/thorchain/slip/{asset}`
|
|
2298
|
+
.replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
|
|
2299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2301
|
+
let baseOptions;
|
|
2302
|
+
if (configuration) {
|
|
2303
|
+
baseOptions = configuration.baseOptions;
|
|
2304
|
+
}
|
|
2305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2306
|
+
const localVarHeaderParameter = {};
|
|
2307
|
+
const localVarQueryParameter = {};
|
|
2308
|
+
if (height !== undefined) {
|
|
2309
|
+
localVarQueryParameter['height'] = height;
|
|
2310
|
+
}
|
|
2311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2313
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2314
|
+
return {
|
|
2315
|
+
url: toPathString(localVarUrlObj),
|
|
2316
|
+
options: localVarRequestOptions,
|
|
2317
|
+
};
|
|
2318
|
+
}),
|
|
2319
|
+
/**
|
|
2320
|
+
* Returns the pool slip information for all Available Layer 1 pool assets.
|
|
2321
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2322
|
+
* @param {*} [options] Override http request option.
|
|
2323
|
+
* @throws {RequiredError}
|
|
2324
|
+
*/
|
|
2325
|
+
poolslips: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2326
|
+
const localVarPath = `/thorchain/slips`;
|
|
2327
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2328
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2329
|
+
let baseOptions;
|
|
2330
|
+
if (configuration) {
|
|
2331
|
+
baseOptions = configuration.baseOptions;
|
|
2332
|
+
}
|
|
2333
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2334
|
+
const localVarHeaderParameter = {};
|
|
2335
|
+
const localVarQueryParameter = {};
|
|
2336
|
+
if (height !== undefined) {
|
|
2337
|
+
localVarQueryParameter['height'] = height;
|
|
2338
|
+
}
|
|
2339
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2341
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2342
|
+
return {
|
|
2343
|
+
url: toPathString(localVarUrlObj),
|
|
2344
|
+
options: localVarRequestOptions,
|
|
2345
|
+
};
|
|
2346
|
+
}),
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2349
|
+
/**
|
|
2350
|
+
* PoolSlipApi - functional programming interface
|
|
2351
|
+
* @export
|
|
2352
|
+
*/
|
|
2353
|
+
const PoolSlipApiFp = function (configuration) {
|
|
2354
|
+
const localVarAxiosParamCreator = PoolSlipApiAxiosParamCreator(configuration);
|
|
2355
|
+
return {
|
|
2356
|
+
/**
|
|
2357
|
+
* Returns the pool slip information for the provided asset.
|
|
2358
|
+
* @param {string} asset
|
|
2359
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2360
|
+
* @param {*} [options] Override http request option.
|
|
2361
|
+
* @throws {RequiredError}
|
|
2362
|
+
*/
|
|
2363
|
+
poolslip(asset, height, options) {
|
|
2364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.poolslip(asset, height, options);
|
|
2366
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2367
|
+
});
|
|
2368
|
+
},
|
|
2369
|
+
/**
|
|
2370
|
+
* Returns the pool slip information for all Available Layer 1 pool assets.
|
|
2371
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
poolslips(height, options) {
|
|
2376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2377
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.poolslips(height, options);
|
|
2378
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2379
|
+
});
|
|
2380
|
+
},
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
/**
|
|
2384
|
+
* PoolSlipApi - factory interface
|
|
2385
|
+
* @export
|
|
2386
|
+
*/
|
|
2387
|
+
const PoolSlipApiFactory = function (configuration, basePath, axios) {
|
|
2388
|
+
const localVarFp = PoolSlipApiFp(configuration);
|
|
2389
|
+
return {
|
|
2390
|
+
/**
|
|
2391
|
+
* Returns the pool slip information for the provided asset.
|
|
2392
|
+
* @param {string} asset
|
|
2393
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2394
|
+
* @param {*} [options] Override http request option.
|
|
2395
|
+
* @throws {RequiredError}
|
|
2396
|
+
*/
|
|
2397
|
+
poolslip(asset, height, options) {
|
|
2398
|
+
return localVarFp.poolslip(asset, height, options).then((request) => request(axios, basePath));
|
|
2399
|
+
},
|
|
2400
|
+
/**
|
|
2401
|
+
* Returns the pool slip information for all Available Layer 1 pool assets.
|
|
2402
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2403
|
+
* @param {*} [options] Override http request option.
|
|
2404
|
+
* @throws {RequiredError}
|
|
2405
|
+
*/
|
|
2406
|
+
poolslips(height, options) {
|
|
2407
|
+
return localVarFp.poolslips(height, options).then((request) => request(axios, basePath));
|
|
2408
|
+
},
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
/**
|
|
2412
|
+
* PoolSlipApi - object-oriented interface
|
|
2413
|
+
* @export
|
|
2414
|
+
* @class PoolSlipApi
|
|
2415
|
+
* @extends {BaseAPI}
|
|
2416
|
+
*/
|
|
2417
|
+
class PoolSlipApi extends BaseAPI {
|
|
2418
|
+
/**
|
|
2419
|
+
* Returns the pool slip information for the provided asset.
|
|
2420
|
+
* @param {string} asset
|
|
2421
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2422
|
+
* @param {*} [options] Override http request option.
|
|
2423
|
+
* @throws {RequiredError}
|
|
2424
|
+
* @memberof PoolSlipApi
|
|
2425
|
+
*/
|
|
2426
|
+
poolslip(asset, height, options) {
|
|
2427
|
+
return PoolSlipApiFp(this.configuration).poolslip(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
2428
|
+
}
|
|
2429
|
+
/**
|
|
2430
|
+
* Returns the pool slip information for all Available Layer 1 pool assets.
|
|
2431
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2432
|
+
* @param {*} [options] Override http request option.
|
|
2433
|
+
* @throws {RequiredError}
|
|
2434
|
+
* @memberof PoolSlipApi
|
|
2435
|
+
*/
|
|
2436
|
+
poolslips(height, options) {
|
|
2437
|
+
return PoolSlipApiFp(this.configuration).poolslips(height, options).then((request) => request(this.axios, this.basePath));
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2152
2440
|
/**
|
|
2153
2441
|
* PoolsApi - axios parameter creator
|
|
2154
2442
|
* @export
|
|
@@ -3559,6 +3847,38 @@ class StreamingSwapApi extends BaseAPI {
|
|
|
3559
3847
|
*/
|
|
3560
3848
|
const TSSApiAxiosParamCreator = function (configuration) {
|
|
3561
3849
|
return {
|
|
3850
|
+
/**
|
|
3851
|
+
* Returns keygen information for the provided height and pubkey - the pubkey being of one of the members of a keygen block for that height
|
|
3852
|
+
* @param {number} height
|
|
3853
|
+
* @param {string} pubkey
|
|
3854
|
+
* @param {*} [options] Override http request option.
|
|
3855
|
+
* @throws {RequiredError}
|
|
3856
|
+
*/
|
|
3857
|
+
keygenPubkey: (height, pubkey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3858
|
+
// verify required parameter 'height' is not null or undefined
|
|
3859
|
+
assertParamExists('keygenPubkey', 'height', height);
|
|
3860
|
+
// verify required parameter 'pubkey' is not null or undefined
|
|
3861
|
+
assertParamExists('keygenPubkey', 'pubkey', pubkey);
|
|
3862
|
+
const localVarPath = `/thorchain/keygen/{height}/{pubkey}`
|
|
3863
|
+
.replace(`{${"height"}}`, encodeURIComponent(String(height)))
|
|
3864
|
+
.replace(`{${"pubkey"}}`, encodeURIComponent(String(pubkey)));
|
|
3865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3866
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3867
|
+
let baseOptions;
|
|
3868
|
+
if (configuration) {
|
|
3869
|
+
baseOptions = configuration.baseOptions;
|
|
3870
|
+
}
|
|
3871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3872
|
+
const localVarHeaderParameter = {};
|
|
3873
|
+
const localVarQueryParameter = {};
|
|
3874
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3876
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3877
|
+
return {
|
|
3878
|
+
url: toPathString(localVarUrlObj),
|
|
3879
|
+
options: localVarRequestOptions,
|
|
3880
|
+
};
|
|
3881
|
+
}),
|
|
3562
3882
|
/**
|
|
3563
3883
|
* Returns keysign information for the provided height - the height being the first block a tx out item appears in the signed-but-unobserved outbound queue.
|
|
3564
3884
|
* @param {number} height
|
|
@@ -3688,6 +4008,19 @@ const TSSApiAxiosParamCreator = function (configuration) {
|
|
|
3688
4008
|
const TSSApiFp = function (configuration) {
|
|
3689
4009
|
const localVarAxiosParamCreator = TSSApiAxiosParamCreator(configuration);
|
|
3690
4010
|
return {
|
|
4011
|
+
/**
|
|
4012
|
+
* Returns keygen information for the provided height and pubkey - the pubkey being of one of the members of a keygen block for that height
|
|
4013
|
+
* @param {number} height
|
|
4014
|
+
* @param {string} pubkey
|
|
4015
|
+
* @param {*} [options] Override http request option.
|
|
4016
|
+
* @throws {RequiredError}
|
|
4017
|
+
*/
|
|
4018
|
+
keygenPubkey(height, pubkey, options) {
|
|
4019
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4020
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.keygenPubkey(height, pubkey, options);
|
|
4021
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4022
|
+
});
|
|
4023
|
+
},
|
|
3691
4024
|
/**
|
|
3692
4025
|
* Returns keysign information for the provided height - the height being the first block a tx out item appears in the signed-but-unobserved outbound queue.
|
|
3693
4026
|
* @param {number} height
|
|
@@ -3747,6 +4080,16 @@ const TSSApiFp = function (configuration) {
|
|
|
3747
4080
|
const TSSApiFactory = function (configuration, basePath, axios) {
|
|
3748
4081
|
const localVarFp = TSSApiFp(configuration);
|
|
3749
4082
|
return {
|
|
4083
|
+
/**
|
|
4084
|
+
* Returns keygen information for the provided height and pubkey - the pubkey being of one of the members of a keygen block for that height
|
|
4085
|
+
* @param {number} height
|
|
4086
|
+
* @param {string} pubkey
|
|
4087
|
+
* @param {*} [options] Override http request option.
|
|
4088
|
+
* @throws {RequiredError}
|
|
4089
|
+
*/
|
|
4090
|
+
keygenPubkey(height, pubkey, options) {
|
|
4091
|
+
return localVarFp.keygenPubkey(height, pubkey, options).then((request) => request(axios, basePath));
|
|
4092
|
+
},
|
|
3750
4093
|
/**
|
|
3751
4094
|
* Returns keysign information for the provided height - the height being the first block a tx out item appears in the signed-but-unobserved outbound queue.
|
|
3752
4095
|
* @param {number} height
|
|
@@ -3794,6 +4137,17 @@ const TSSApiFactory = function (configuration, basePath, axios) {
|
|
|
3794
4137
|
* @extends {BaseAPI}
|
|
3795
4138
|
*/
|
|
3796
4139
|
class TSSApi extends BaseAPI {
|
|
4140
|
+
/**
|
|
4141
|
+
* Returns keygen information for the provided height and pubkey - the pubkey being of one of the members of a keygen block for that height
|
|
4142
|
+
* @param {number} height
|
|
4143
|
+
* @param {string} pubkey
|
|
4144
|
+
* @param {*} [options] Override http request option.
|
|
4145
|
+
* @throws {RequiredError}
|
|
4146
|
+
* @memberof TSSApi
|
|
4147
|
+
*/
|
|
4148
|
+
keygenPubkey(height, pubkey, options) {
|
|
4149
|
+
return TSSApiFp(this.configuration).keygenPubkey(height, pubkey, options).then((request) => request(this.axios, this.basePath));
|
|
4150
|
+
}
|
|
3797
4151
|
/**
|
|
3798
4152
|
* Returns keysign information for the provided height - the height being the first block a tx out item appears in the signed-but-unobserved outbound queue.
|
|
3799
4153
|
* @param {number} height
|
|
@@ -4978,7 +5332,7 @@ class VaultsApi extends BaseAPI {
|
|
|
4978
5332
|
* Thornode API
|
|
4979
5333
|
* Thornode REST API.
|
|
4980
5334
|
*
|
|
4981
|
-
* The version of the OpenAPI document: 1.
|
|
5335
|
+
* The version of the OpenAPI document: 1.132.0
|
|
4982
5336
|
* Contact: devs@thorchain.org
|
|
4983
5337
|
*
|
|
4984
5338
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5016,5 +5370,5 @@ class Configuration {
|
|
|
5016
5370
|
*/
|
|
5017
5371
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
5018
5372
|
|
|
5019
|
-
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, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, 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 };
|
|
5373
|
+
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, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolSlipApi, PoolSlipApiAxiosParamCreator, PoolSlipApiFactory, PoolSlipApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, 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 };
|
|
5020
5374
|
//# sourceMappingURL=index.esm.js.map
|