@xchainjs/xchain-thornode 0.1.0-alpha → 0.1.0-alpha4
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/CHANGELOG.md +21 -0
- package/README.md +5 -4
- package/lib/generated/thornodeApi/api.d.ts +597 -427
- package/lib/index.esm.js +253 -126
- package/lib/index.js +260 -125
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1256,6 +1256,258 @@ class NetworkApi extends BaseAPI {
|
|
|
1256
1256
|
return NetworkApiFp(this.configuration).version(height, options).then((request) => request(this.axios, this.basePath));
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
+
/**
|
|
1260
|
+
* NodesApi - axios parameter creator
|
|
1261
|
+
* @export
|
|
1262
|
+
*/
|
|
1263
|
+
const NodesApiAxiosParamCreator = function (configuration) {
|
|
1264
|
+
return {
|
|
1265
|
+
/**
|
|
1266
|
+
* Returns node information for the provided node address.
|
|
1267
|
+
* @param {string} address
|
|
1268
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1269
|
+
* @param {*} [options] Override http request option.
|
|
1270
|
+
* @throws {RequiredError}
|
|
1271
|
+
*/
|
|
1272
|
+
node: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1273
|
+
// verify required parameter 'address' is not null or undefined
|
|
1274
|
+
assertParamExists('node', 'address', address);
|
|
1275
|
+
const localVarPath = `/thorchain/node/{address}`
|
|
1276
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
1277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1278
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1279
|
+
let baseOptions;
|
|
1280
|
+
if (configuration) {
|
|
1281
|
+
baseOptions = configuration.baseOptions;
|
|
1282
|
+
}
|
|
1283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1284
|
+
const localVarHeaderParameter = {};
|
|
1285
|
+
const localVarQueryParameter = {};
|
|
1286
|
+
if (height !== undefined) {
|
|
1287
|
+
localVarQueryParameter['height'] = height;
|
|
1288
|
+
}
|
|
1289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1291
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1292
|
+
return {
|
|
1293
|
+
url: toPathString(localVarUrlObj),
|
|
1294
|
+
options: localVarRequestOptions,
|
|
1295
|
+
};
|
|
1296
|
+
}),
|
|
1297
|
+
/**
|
|
1298
|
+
* Returns node information for all registered validators.
|
|
1299
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
nodes: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1304
|
+
const localVarPath = `/thorchain/nodes`;
|
|
1305
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1306
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1307
|
+
let baseOptions;
|
|
1308
|
+
if (configuration) {
|
|
1309
|
+
baseOptions = configuration.baseOptions;
|
|
1310
|
+
}
|
|
1311
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1312
|
+
const localVarHeaderParameter = {};
|
|
1313
|
+
const localVarQueryParameter = {};
|
|
1314
|
+
if (height !== undefined) {
|
|
1315
|
+
localVarQueryParameter['height'] = height;
|
|
1316
|
+
}
|
|
1317
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1319
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1320
|
+
return {
|
|
1321
|
+
url: toPathString(localVarUrlObj),
|
|
1322
|
+
options: localVarRequestOptions,
|
|
1323
|
+
};
|
|
1324
|
+
}),
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
/**
|
|
1328
|
+
* NodesApi - functional programming interface
|
|
1329
|
+
* @export
|
|
1330
|
+
*/
|
|
1331
|
+
const NodesApiFp = function (configuration) {
|
|
1332
|
+
const localVarAxiosParamCreator = NodesApiAxiosParamCreator(configuration);
|
|
1333
|
+
return {
|
|
1334
|
+
/**
|
|
1335
|
+
* Returns node information for the provided node address.
|
|
1336
|
+
* @param {string} address
|
|
1337
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
*/
|
|
1341
|
+
node(address, height, options) {
|
|
1342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1343
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.node(address, height, options);
|
|
1344
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
1345
|
+
});
|
|
1346
|
+
},
|
|
1347
|
+
/**
|
|
1348
|
+
* Returns node information for all registered validators.
|
|
1349
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1350
|
+
* @param {*} [options] Override http request option.
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
*/
|
|
1353
|
+
nodes(height, options) {
|
|
1354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.nodes(height, options);
|
|
1356
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
1357
|
+
});
|
|
1358
|
+
},
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* NodesApi - factory interface
|
|
1363
|
+
* @export
|
|
1364
|
+
*/
|
|
1365
|
+
const NodesApiFactory = function (configuration, basePath, axios) {
|
|
1366
|
+
const localVarFp = NodesApiFp(configuration);
|
|
1367
|
+
return {
|
|
1368
|
+
/**
|
|
1369
|
+
* Returns node information for the provided node address.
|
|
1370
|
+
* @param {string} address
|
|
1371
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1372
|
+
* @param {*} [options] Override http request option.
|
|
1373
|
+
* @throws {RequiredError}
|
|
1374
|
+
*/
|
|
1375
|
+
node(address, height, options) {
|
|
1376
|
+
return localVarFp.node(address, height, options).then((request) => request(axios, basePath));
|
|
1377
|
+
},
|
|
1378
|
+
/**
|
|
1379
|
+
* Returns node information for all registered validators.
|
|
1380
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1381
|
+
* @param {*} [options] Override http request option.
|
|
1382
|
+
* @throws {RequiredError}
|
|
1383
|
+
*/
|
|
1384
|
+
nodes(height, options) {
|
|
1385
|
+
return localVarFp.nodes(height, options).then((request) => request(axios, basePath));
|
|
1386
|
+
},
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
/**
|
|
1390
|
+
* NodesApi - object-oriented interface
|
|
1391
|
+
* @export
|
|
1392
|
+
* @class NodesApi
|
|
1393
|
+
* @extends {BaseAPI}
|
|
1394
|
+
*/
|
|
1395
|
+
class NodesApi extends BaseAPI {
|
|
1396
|
+
/**
|
|
1397
|
+
* Returns node information for the provided node address.
|
|
1398
|
+
* @param {string} address
|
|
1399
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1400
|
+
* @param {*} [options] Override http request option.
|
|
1401
|
+
* @throws {RequiredError}
|
|
1402
|
+
* @memberof NodesApi
|
|
1403
|
+
*/
|
|
1404
|
+
node(address, height, options) {
|
|
1405
|
+
return NodesApiFp(this.configuration).node(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Returns node information for all registered validators.
|
|
1409
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1410
|
+
* @param {*} [options] Override http request option.
|
|
1411
|
+
* @throws {RequiredError}
|
|
1412
|
+
* @memberof NodesApi
|
|
1413
|
+
*/
|
|
1414
|
+
nodes(height, options) {
|
|
1415
|
+
return NodesApiFp(this.configuration).nodes(height, options).then((request) => request(this.axios, this.basePath));
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* POLApi - axios parameter creator
|
|
1420
|
+
* @export
|
|
1421
|
+
*/
|
|
1422
|
+
const POLApiAxiosParamCreator = function (configuration) {
|
|
1423
|
+
return {
|
|
1424
|
+
/**
|
|
1425
|
+
* Returns protocol owned liquidity overview statistics.
|
|
1426
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1427
|
+
* @param {*} [options] Override http request option.
|
|
1428
|
+
* @throws {RequiredError}
|
|
1429
|
+
*/
|
|
1430
|
+
pol: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1431
|
+
const localVarPath = `/thorchain/pol`;
|
|
1432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1433
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1434
|
+
let baseOptions;
|
|
1435
|
+
if (configuration) {
|
|
1436
|
+
baseOptions = configuration.baseOptions;
|
|
1437
|
+
}
|
|
1438
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1439
|
+
const localVarHeaderParameter = {};
|
|
1440
|
+
const localVarQueryParameter = {};
|
|
1441
|
+
if (height !== undefined) {
|
|
1442
|
+
localVarQueryParameter['height'] = height;
|
|
1443
|
+
}
|
|
1444
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1445
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1446
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1447
|
+
return {
|
|
1448
|
+
url: toPathString(localVarUrlObj),
|
|
1449
|
+
options: localVarRequestOptions,
|
|
1450
|
+
};
|
|
1451
|
+
}),
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
/**
|
|
1455
|
+
* POLApi - functional programming interface
|
|
1456
|
+
* @export
|
|
1457
|
+
*/
|
|
1458
|
+
const POLApiFp = function (configuration) {
|
|
1459
|
+
const localVarAxiosParamCreator = POLApiAxiosParamCreator(configuration);
|
|
1460
|
+
return {
|
|
1461
|
+
/**
|
|
1462
|
+
* Returns protocol owned liquidity overview statistics.
|
|
1463
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
pol(height, options) {
|
|
1468
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1469
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pol(height, options);
|
|
1470
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
1471
|
+
});
|
|
1472
|
+
},
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
/**
|
|
1476
|
+
* POLApi - factory interface
|
|
1477
|
+
* @export
|
|
1478
|
+
*/
|
|
1479
|
+
const POLApiFactory = function (configuration, basePath, axios) {
|
|
1480
|
+
const localVarFp = POLApiFp(configuration);
|
|
1481
|
+
return {
|
|
1482
|
+
/**
|
|
1483
|
+
* Returns protocol owned liquidity overview statistics.
|
|
1484
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1485
|
+
* @param {*} [options] Override http request option.
|
|
1486
|
+
* @throws {RequiredError}
|
|
1487
|
+
*/
|
|
1488
|
+
pol(height, options) {
|
|
1489
|
+
return localVarFp.pol(height, options).then((request) => request(axios, basePath));
|
|
1490
|
+
},
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
/**
|
|
1494
|
+
* POLApi - object-oriented interface
|
|
1495
|
+
* @export
|
|
1496
|
+
* @class POLApi
|
|
1497
|
+
* @extends {BaseAPI}
|
|
1498
|
+
*/
|
|
1499
|
+
class POLApi extends BaseAPI {
|
|
1500
|
+
/**
|
|
1501
|
+
* Returns protocol owned liquidity overview statistics.
|
|
1502
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
* @memberof POLApi
|
|
1506
|
+
*/
|
|
1507
|
+
pol(height, options) {
|
|
1508
|
+
return POLApiFp(this.configuration).pol(height, options).then((request) => request(this.axios, this.basePath));
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1259
1511
|
/**
|
|
1260
1512
|
* PoolsApi - axios parameter creator
|
|
1261
1513
|
* @export
|
|
@@ -2016,66 +2268,6 @@ class ThornamesApi extends BaseAPI {
|
|
|
2016
2268
|
*/
|
|
2017
2269
|
const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
2018
2270
|
return {
|
|
2019
|
-
/**
|
|
2020
|
-
* Returns node information for the provided node address.
|
|
2021
|
-
* @param {string} address
|
|
2022
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2023
|
-
* @param {*} [options] Override http request option.
|
|
2024
|
-
* @throws {RequiredError}
|
|
2025
|
-
*/
|
|
2026
|
-
node: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
-
// verify required parameter 'address' is not null or undefined
|
|
2028
|
-
assertParamExists('node', 'address', address);
|
|
2029
|
-
const localVarPath = `/thorchain/node/{address}`
|
|
2030
|
-
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
2031
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2032
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2033
|
-
let baseOptions;
|
|
2034
|
-
if (configuration) {
|
|
2035
|
-
baseOptions = configuration.baseOptions;
|
|
2036
|
-
}
|
|
2037
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2038
|
-
const localVarHeaderParameter = {};
|
|
2039
|
-
const localVarQueryParameter = {};
|
|
2040
|
-
if (height !== undefined) {
|
|
2041
|
-
localVarQueryParameter['height'] = height;
|
|
2042
|
-
}
|
|
2043
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2044
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2045
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2046
|
-
return {
|
|
2047
|
-
url: toPathString(localVarUrlObj),
|
|
2048
|
-
options: localVarRequestOptions,
|
|
2049
|
-
};
|
|
2050
|
-
}),
|
|
2051
|
-
/**
|
|
2052
|
-
* Returns node information for all registered validators.
|
|
2053
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2054
|
-
* @param {*} [options] Override http request option.
|
|
2055
|
-
* @throws {RequiredError}
|
|
2056
|
-
*/
|
|
2057
|
-
nodes: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2058
|
-
const localVarPath = `/thorchain/nodes`;
|
|
2059
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2060
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2061
|
-
let baseOptions;
|
|
2062
|
-
if (configuration) {
|
|
2063
|
-
baseOptions = configuration.baseOptions;
|
|
2064
|
-
}
|
|
2065
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2066
|
-
const localVarHeaderParameter = {};
|
|
2067
|
-
const localVarQueryParameter = {};
|
|
2068
|
-
if (height !== undefined) {
|
|
2069
|
-
localVarQueryParameter['height'] = height;
|
|
2070
|
-
}
|
|
2071
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2072
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2073
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2074
|
-
return {
|
|
2075
|
-
url: toPathString(localVarUrlObj),
|
|
2076
|
-
options: localVarRequestOptions,
|
|
2077
|
-
};
|
|
2078
|
-
}),
|
|
2079
2271
|
/**
|
|
2080
2272
|
* Returns the observed transaction for a provided inbound or outbound hash.
|
|
2081
2273
|
* @param {string} hash
|
|
@@ -2149,31 +2341,6 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
2149
2341
|
const TransactionsApiFp = function (configuration) {
|
|
2150
2342
|
const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration);
|
|
2151
2343
|
return {
|
|
2152
|
-
/**
|
|
2153
|
-
* Returns node information for the provided node address.
|
|
2154
|
-
* @param {string} address
|
|
2155
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2156
|
-
* @param {*} [options] Override http request option.
|
|
2157
|
-
* @throws {RequiredError}
|
|
2158
|
-
*/
|
|
2159
|
-
node(address, height, options) {
|
|
2160
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2161
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.node(address, height, options);
|
|
2162
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2163
|
-
});
|
|
2164
|
-
},
|
|
2165
|
-
/**
|
|
2166
|
-
* Returns node information for all registered validators.
|
|
2167
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2168
|
-
* @param {*} [options] Override http request option.
|
|
2169
|
-
* @throws {RequiredError}
|
|
2170
|
-
*/
|
|
2171
|
-
nodes(height, options) {
|
|
2172
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2173
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.nodes(height, options);
|
|
2174
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
|
|
2175
|
-
});
|
|
2176
|
-
},
|
|
2177
2344
|
/**
|
|
2178
2345
|
* Returns the observed transaction for a provided inbound or outbound hash.
|
|
2179
2346
|
* @param {string} hash
|
|
@@ -2209,25 +2376,6 @@ const TransactionsApiFp = function (configuration) {
|
|
|
2209
2376
|
const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
2210
2377
|
const localVarFp = TransactionsApiFp(configuration);
|
|
2211
2378
|
return {
|
|
2212
|
-
/**
|
|
2213
|
-
* Returns node information for the provided node address.
|
|
2214
|
-
* @param {string} address
|
|
2215
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2216
|
-
* @param {*} [options] Override http request option.
|
|
2217
|
-
* @throws {RequiredError}
|
|
2218
|
-
*/
|
|
2219
|
-
node(address, height, options) {
|
|
2220
|
-
return localVarFp.node(address, height, options).then((request) => request(axios, basePath));
|
|
2221
|
-
},
|
|
2222
|
-
/**
|
|
2223
|
-
* Returns node information for all registered validators.
|
|
2224
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2225
|
-
* @param {*} [options] Override http request option.
|
|
2226
|
-
* @throws {RequiredError}
|
|
2227
|
-
*/
|
|
2228
|
-
nodes(height, options) {
|
|
2229
|
-
return localVarFp.nodes(height, options).then((request) => request(axios, basePath));
|
|
2230
|
-
},
|
|
2231
2379
|
/**
|
|
2232
2380
|
* Returns the observed transaction for a provided inbound or outbound hash.
|
|
2233
2381
|
* @param {string} hash
|
|
@@ -2257,27 +2405,6 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
2257
2405
|
* @extends {BaseAPI}
|
|
2258
2406
|
*/
|
|
2259
2407
|
class TransactionsApi extends BaseAPI {
|
|
2260
|
-
/**
|
|
2261
|
-
* Returns node information for the provided node address.
|
|
2262
|
-
* @param {string} address
|
|
2263
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2264
|
-
* @param {*} [options] Override http request option.
|
|
2265
|
-
* @throws {RequiredError}
|
|
2266
|
-
* @memberof TransactionsApi
|
|
2267
|
-
*/
|
|
2268
|
-
node(address, height, options) {
|
|
2269
|
-
return TransactionsApiFp(this.configuration).node(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
2270
|
-
}
|
|
2271
|
-
/**
|
|
2272
|
-
* Returns node information for all registered validators.
|
|
2273
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2274
|
-
* @param {*} [options] Override http request option.
|
|
2275
|
-
* @throws {RequiredError}
|
|
2276
|
-
* @memberof TransactionsApi
|
|
2277
|
-
*/
|
|
2278
|
-
nodes(height, options) {
|
|
2279
|
-
return TransactionsApiFp(this.configuration).nodes(height, options).then((request) => request(this.axios, this.basePath));
|
|
2280
|
-
}
|
|
2281
2408
|
/**
|
|
2282
2409
|
* Returns the observed transaction for a provided inbound or outbound hash.
|
|
2283
2410
|
* @param {string} hash
|
|
@@ -2638,7 +2765,15 @@ exports.NetworkApiAxiosParamCreator = NetworkApiAxiosParamCreator;
|
|
|
2638
2765
|
exports.NetworkApiFactory = NetworkApiFactory;
|
|
2639
2766
|
exports.NetworkApiFp = NetworkApiFp;
|
|
2640
2767
|
exports.NodeStatusEnum = NodeStatusEnum;
|
|
2768
|
+
exports.NodesApi = NodesApi;
|
|
2769
|
+
exports.NodesApiAxiosParamCreator = NodesApiAxiosParamCreator;
|
|
2770
|
+
exports.NodesApiFactory = NodesApiFactory;
|
|
2771
|
+
exports.NodesApiFp = NodesApiFp;
|
|
2641
2772
|
exports.ObservedTxStatusEnum = ObservedTxStatusEnum;
|
|
2773
|
+
exports.POLApi = POLApi;
|
|
2774
|
+
exports.POLApiAxiosParamCreator = POLApiAxiosParamCreator;
|
|
2775
|
+
exports.POLApiFactory = POLApiFactory;
|
|
2776
|
+
exports.POLApiFp = POLApiFp;
|
|
2642
2777
|
exports.PoolsApi = PoolsApi;
|
|
2643
2778
|
exports.PoolsApiAxiosParamCreator = PoolsApiAxiosParamCreator;
|
|
2644
2779
|
exports.PoolsApiFactory = PoolsApiFactory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thornode",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-alpha4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thornode module that exposes all thornode functions using openapi-generator-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublishOnly": "yarn run build",
|
|
31
31
|
"test": "jest --passWithNoTests",
|
|
32
32
|
"generate:types": "yarn clean:types:thornode && yarn generate:types:thornode",
|
|
33
|
-
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://
|
|
33
|
+
"generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.95.0/openapi/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec",
|
|
34
34
|
"clean:types:thornode": "rimraf ./src/generated/thornodeApi"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|