@xchainjs/xchain-thornode 0.3.17 → 0.3.18
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 +298 -244
- 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 +220 -213
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +223 -216
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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.134.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.134.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
|
@@ -1074,62 +1074,6 @@ const MimirApiAxiosParamCreator = function (configuration) {
|
|
|
1074
1074
|
options: localVarRequestOptions,
|
|
1075
1075
|
};
|
|
1076
1076
|
}),
|
|
1077
|
-
/**
|
|
1078
|
-
* Returns current mimir V2 configuration.
|
|
1079
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1080
|
-
* @param {*} [options] Override http request option.
|
|
1081
|
-
* @throws {RequiredError}
|
|
1082
|
-
*/
|
|
1083
|
-
mimirV2: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1084
|
-
const localVarPath = `/thorchain/mimirV2`;
|
|
1085
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1086
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1087
|
-
let baseOptions;
|
|
1088
|
-
if (configuration) {
|
|
1089
|
-
baseOptions = configuration.baseOptions;
|
|
1090
|
-
}
|
|
1091
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1092
|
-
const localVarHeaderParameter = {};
|
|
1093
|
-
const localVarQueryParameter = {};
|
|
1094
|
-
if (height !== undefined) {
|
|
1095
|
-
localVarQueryParameter['height'] = height;
|
|
1096
|
-
}
|
|
1097
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1098
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1099
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1100
|
-
return {
|
|
1101
|
-
url: toPathString(localVarUrlObj),
|
|
1102
|
-
options: localVarRequestOptions,
|
|
1103
|
-
};
|
|
1104
|
-
}),
|
|
1105
|
-
/**
|
|
1106
|
-
* Returns mapping of mimir V2 IDs to name.
|
|
1107
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1108
|
-
* @param {*} [options] Override http request option.
|
|
1109
|
-
* @throws {RequiredError}
|
|
1110
|
-
*/
|
|
1111
|
-
mimirV2IDs: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1112
|
-
const localVarPath = `/thorchain/mimirV2/ids`;
|
|
1113
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1114
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1115
|
-
let baseOptions;
|
|
1116
|
-
if (configuration) {
|
|
1117
|
-
baseOptions = configuration.baseOptions;
|
|
1118
|
-
}
|
|
1119
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1120
|
-
const localVarHeaderParameter = {};
|
|
1121
|
-
const localVarQueryParameter = {};
|
|
1122
|
-
if (height !== undefined) {
|
|
1123
|
-
localVarQueryParameter['height'] = height;
|
|
1124
|
-
}
|
|
1125
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1126
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1127
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1128
|
-
return {
|
|
1129
|
-
url: toPathString(localVarUrlObj),
|
|
1130
|
-
options: localVarRequestOptions,
|
|
1131
|
-
};
|
|
1132
|
-
}),
|
|
1133
1077
|
};
|
|
1134
1078
|
};
|
|
1135
1079
|
/**
|
|
@@ -1201,30 +1145,6 @@ const MimirApiFp = function (configuration) {
|
|
|
1201
1145
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1202
1146
|
});
|
|
1203
1147
|
},
|
|
1204
|
-
/**
|
|
1205
|
-
* Returns current mimir V2 configuration.
|
|
1206
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1207
|
-
* @param {*} [options] Override http request option.
|
|
1208
|
-
* @throws {RequiredError}
|
|
1209
|
-
*/
|
|
1210
|
-
mimirV2(height, options) {
|
|
1211
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2(height, options);
|
|
1213
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1214
|
-
});
|
|
1215
|
-
},
|
|
1216
|
-
/**
|
|
1217
|
-
* Returns mapping of mimir V2 IDs to name.
|
|
1218
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1219
|
-
* @param {*} [options] Override http request option.
|
|
1220
|
-
* @throws {RequiredError}
|
|
1221
|
-
*/
|
|
1222
|
-
mimirV2IDs(height, options) {
|
|
1223
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1224
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2IDs(height, options);
|
|
1225
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1226
|
-
});
|
|
1227
|
-
},
|
|
1228
1148
|
};
|
|
1229
1149
|
};
|
|
1230
1150
|
/**
|
|
@@ -1281,24 +1201,6 @@ const MimirApiFactory = function (configuration, basePath, axios) {
|
|
|
1281
1201
|
mimirNodes(height, options) {
|
|
1282
1202
|
return localVarFp.mimirNodes(height, options).then((request) => request(axios, basePath));
|
|
1283
1203
|
},
|
|
1284
|
-
/**
|
|
1285
|
-
* Returns current mimir V2 configuration.
|
|
1286
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1287
|
-
* @param {*} [options] Override http request option.
|
|
1288
|
-
* @throws {RequiredError}
|
|
1289
|
-
*/
|
|
1290
|
-
mimirV2(height, options) {
|
|
1291
|
-
return localVarFp.mimirV2(height, options).then((request) => request(axios, basePath));
|
|
1292
|
-
},
|
|
1293
|
-
/**
|
|
1294
|
-
* Returns mapping of mimir V2 IDs to name.
|
|
1295
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1296
|
-
* @param {*} [options] Override http request option.
|
|
1297
|
-
* @throws {RequiredError}
|
|
1298
|
-
*/
|
|
1299
|
-
mimirV2IDs(height, options) {
|
|
1300
|
-
return localVarFp.mimirV2IDs(height, options).then((request) => request(axios, basePath));
|
|
1301
|
-
},
|
|
1302
1204
|
};
|
|
1303
1205
|
};
|
|
1304
1206
|
/**
|
|
@@ -1360,26 +1262,6 @@ class MimirApi extends BaseAPI {
|
|
|
1360
1262
|
mimirNodes(height, options) {
|
|
1361
1263
|
return MimirApiFp(this.configuration).mimirNodes(height, options).then((request) => request(this.axios, this.basePath));
|
|
1362
1264
|
}
|
|
1363
|
-
/**
|
|
1364
|
-
* Returns current mimir V2 configuration.
|
|
1365
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1366
|
-
* @param {*} [options] Override http request option.
|
|
1367
|
-
* @throws {RequiredError}
|
|
1368
|
-
* @memberof MimirApi
|
|
1369
|
-
*/
|
|
1370
|
-
mimirV2(height, options) {
|
|
1371
|
-
return MimirApiFp(this.configuration).mimirV2(height, options).then((request) => request(this.axios, this.basePath));
|
|
1372
|
-
}
|
|
1373
|
-
/**
|
|
1374
|
-
* Returns mapping of mimir V2 IDs to name.
|
|
1375
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
1376
|
-
* @param {*} [options] Override http request option.
|
|
1377
|
-
* @throws {RequiredError}
|
|
1378
|
-
* @memberof MimirApi
|
|
1379
|
-
*/
|
|
1380
|
-
mimirV2IDs(height, options) {
|
|
1381
|
-
return MimirApiFp(this.configuration).mimirV2IDs(height, options).then((request) => request(this.axios, this.basePath));
|
|
1382
|
-
}
|
|
1383
1265
|
}
|
|
1384
1266
|
/**
|
|
1385
1267
|
* NetworkApi - axios parameter creator
|
|
@@ -2185,99 +2067,6 @@ class NodesApi extends BaseAPI {
|
|
|
2185
2067
|
return NodesApiFp(this.configuration).nodes(height, options).then((request) => request(this.axios, this.basePath));
|
|
2186
2068
|
}
|
|
2187
2069
|
}
|
|
2188
|
-
/**
|
|
2189
|
-
* POLApi - axios parameter creator
|
|
2190
|
-
* @export
|
|
2191
|
-
*/
|
|
2192
|
-
const POLApiAxiosParamCreator = function (configuration) {
|
|
2193
|
-
return {
|
|
2194
|
-
/**
|
|
2195
|
-
* Returns protocol owned liquidity overview statistics.
|
|
2196
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2197
|
-
* @param {*} [options] Override http request option.
|
|
2198
|
-
* @throws {RequiredError}
|
|
2199
|
-
*/
|
|
2200
|
-
pol: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2201
|
-
const localVarPath = `/thorchain/pol`;
|
|
2202
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2203
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2204
|
-
let baseOptions;
|
|
2205
|
-
if (configuration) {
|
|
2206
|
-
baseOptions = configuration.baseOptions;
|
|
2207
|
-
}
|
|
2208
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2209
|
-
const localVarHeaderParameter = {};
|
|
2210
|
-
const localVarQueryParameter = {};
|
|
2211
|
-
if (height !== undefined) {
|
|
2212
|
-
localVarQueryParameter['height'] = height;
|
|
2213
|
-
}
|
|
2214
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2215
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2216
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2217
|
-
return {
|
|
2218
|
-
url: toPathString(localVarUrlObj),
|
|
2219
|
-
options: localVarRequestOptions,
|
|
2220
|
-
};
|
|
2221
|
-
}),
|
|
2222
|
-
};
|
|
2223
|
-
};
|
|
2224
|
-
/**
|
|
2225
|
-
* POLApi - functional programming interface
|
|
2226
|
-
* @export
|
|
2227
|
-
*/
|
|
2228
|
-
const POLApiFp = function (configuration) {
|
|
2229
|
-
const localVarAxiosParamCreator = POLApiAxiosParamCreator(configuration);
|
|
2230
|
-
return {
|
|
2231
|
-
/**
|
|
2232
|
-
* Returns protocol owned liquidity overview statistics.
|
|
2233
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2234
|
-
* @param {*} [options] Override http request option.
|
|
2235
|
-
* @throws {RequiredError}
|
|
2236
|
-
*/
|
|
2237
|
-
pol(height, options) {
|
|
2238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2239
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.pol(height, options);
|
|
2240
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2241
|
-
});
|
|
2242
|
-
},
|
|
2243
|
-
};
|
|
2244
|
-
};
|
|
2245
|
-
/**
|
|
2246
|
-
* POLApi - factory interface
|
|
2247
|
-
* @export
|
|
2248
|
-
*/
|
|
2249
|
-
const POLApiFactory = function (configuration, basePath, axios) {
|
|
2250
|
-
const localVarFp = POLApiFp(configuration);
|
|
2251
|
-
return {
|
|
2252
|
-
/**
|
|
2253
|
-
* Returns protocol owned liquidity overview statistics.
|
|
2254
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2255
|
-
* @param {*} [options] Override http request option.
|
|
2256
|
-
* @throws {RequiredError}
|
|
2257
|
-
*/
|
|
2258
|
-
pol(height, options) {
|
|
2259
|
-
return localVarFp.pol(height, options).then((request) => request(axios, basePath));
|
|
2260
|
-
},
|
|
2261
|
-
};
|
|
2262
|
-
};
|
|
2263
|
-
/**
|
|
2264
|
-
* POLApi - object-oriented interface
|
|
2265
|
-
* @export
|
|
2266
|
-
* @class POLApi
|
|
2267
|
-
* @extends {BaseAPI}
|
|
2268
|
-
*/
|
|
2269
|
-
class POLApi extends BaseAPI {
|
|
2270
|
-
/**
|
|
2271
|
-
* Returns protocol owned liquidity overview statistics.
|
|
2272
|
-
* @param {number} [height] optional block height, defaults to current tip
|
|
2273
|
-
* @param {*} [options] Override http request option.
|
|
2274
|
-
* @throws {RequiredError}
|
|
2275
|
-
* @memberof POLApi
|
|
2276
|
-
*/
|
|
2277
|
-
pol(height, options) {
|
|
2278
|
-
return POLApiFp(this.configuration).pol(height, options).then((request) => request(this.axios, this.basePath));
|
|
2279
|
-
}
|
|
2280
|
-
}
|
|
2281
2070
|
/**
|
|
2282
2071
|
* PoolSlipApi - axios parameter creator
|
|
2283
2072
|
* @export
|
|
@@ -3509,6 +3298,224 @@ class QuoteApi extends BaseAPI {
|
|
|
3509
3298
|
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
3510
3299
|
}
|
|
3511
3300
|
}
|
|
3301
|
+
/**
|
|
3302
|
+
* RUNEPoolApi - axios parameter creator
|
|
3303
|
+
* @export
|
|
3304
|
+
*/
|
|
3305
|
+
const RUNEPoolApiAxiosParamCreator = function (configuration) {
|
|
3306
|
+
return {
|
|
3307
|
+
/**
|
|
3308
|
+
* Returns the pool information for the RUNE pool.
|
|
3309
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3310
|
+
* @param {*} [options] Override http request option.
|
|
3311
|
+
* @throws {RequiredError}
|
|
3312
|
+
*/
|
|
3313
|
+
runePool: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3314
|
+
const localVarPath = `/thorchain/runepool`;
|
|
3315
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3316
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3317
|
+
let baseOptions;
|
|
3318
|
+
if (configuration) {
|
|
3319
|
+
baseOptions = configuration.baseOptions;
|
|
3320
|
+
}
|
|
3321
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3322
|
+
const localVarHeaderParameter = {};
|
|
3323
|
+
const localVarQueryParameter = {};
|
|
3324
|
+
if (height !== undefined) {
|
|
3325
|
+
localVarQueryParameter['height'] = height;
|
|
3326
|
+
}
|
|
3327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3329
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3330
|
+
return {
|
|
3331
|
+
url: toPathString(localVarUrlObj),
|
|
3332
|
+
options: localVarRequestOptions,
|
|
3333
|
+
};
|
|
3334
|
+
}),
|
|
3335
|
+
/**
|
|
3336
|
+
* Returns the RUNE Provider information for an address.
|
|
3337
|
+
* @param {string} address
|
|
3338
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3339
|
+
* @param {*} [options] Override http request option.
|
|
3340
|
+
* @throws {RequiredError}
|
|
3341
|
+
*/
|
|
3342
|
+
runeProvider: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3343
|
+
// verify required parameter 'address' is not null or undefined
|
|
3344
|
+
assertParamExists('runeProvider', 'address', address);
|
|
3345
|
+
const localVarPath = `/thorchain/rune_provider/{address}`
|
|
3346
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
3347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3348
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3349
|
+
let baseOptions;
|
|
3350
|
+
if (configuration) {
|
|
3351
|
+
baseOptions = configuration.baseOptions;
|
|
3352
|
+
}
|
|
3353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3354
|
+
const localVarHeaderParameter = {};
|
|
3355
|
+
const localVarQueryParameter = {};
|
|
3356
|
+
if (height !== undefined) {
|
|
3357
|
+
localVarQueryParameter['height'] = height;
|
|
3358
|
+
}
|
|
3359
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3362
|
+
return {
|
|
3363
|
+
url: toPathString(localVarUrlObj),
|
|
3364
|
+
options: localVarRequestOptions,
|
|
3365
|
+
};
|
|
3366
|
+
}),
|
|
3367
|
+
/**
|
|
3368
|
+
* Returns all RUNE Providers.
|
|
3369
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3370
|
+
* @param {*} [options] Override http request option.
|
|
3371
|
+
* @throws {RequiredError}
|
|
3372
|
+
*/
|
|
3373
|
+
runeProviders: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3374
|
+
const localVarPath = `/thorchain/rune_providers`;
|
|
3375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3376
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3377
|
+
let baseOptions;
|
|
3378
|
+
if (configuration) {
|
|
3379
|
+
baseOptions = configuration.baseOptions;
|
|
3380
|
+
}
|
|
3381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3382
|
+
const localVarHeaderParameter = {};
|
|
3383
|
+
const localVarQueryParameter = {};
|
|
3384
|
+
if (height !== undefined) {
|
|
3385
|
+
localVarQueryParameter['height'] = height;
|
|
3386
|
+
}
|
|
3387
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3389
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3390
|
+
return {
|
|
3391
|
+
url: toPathString(localVarUrlObj),
|
|
3392
|
+
options: localVarRequestOptions,
|
|
3393
|
+
};
|
|
3394
|
+
}),
|
|
3395
|
+
};
|
|
3396
|
+
};
|
|
3397
|
+
/**
|
|
3398
|
+
* RUNEPoolApi - functional programming interface
|
|
3399
|
+
* @export
|
|
3400
|
+
*/
|
|
3401
|
+
const RUNEPoolApiFp = function (configuration) {
|
|
3402
|
+
const localVarAxiosParamCreator = RUNEPoolApiAxiosParamCreator(configuration);
|
|
3403
|
+
return {
|
|
3404
|
+
/**
|
|
3405
|
+
* Returns the pool information for the RUNE pool.
|
|
3406
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3407
|
+
* @param {*} [options] Override http request option.
|
|
3408
|
+
* @throws {RequiredError}
|
|
3409
|
+
*/
|
|
3410
|
+
runePool(height, options) {
|
|
3411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3412
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runePool(height, options);
|
|
3413
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3414
|
+
});
|
|
3415
|
+
},
|
|
3416
|
+
/**
|
|
3417
|
+
* Returns the RUNE Provider information for an address.
|
|
3418
|
+
* @param {string} address
|
|
3419
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3420
|
+
* @param {*} [options] Override http request option.
|
|
3421
|
+
* @throws {RequiredError}
|
|
3422
|
+
*/
|
|
3423
|
+
runeProvider(address, height, options) {
|
|
3424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3425
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProvider(address, height, options);
|
|
3426
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3427
|
+
});
|
|
3428
|
+
},
|
|
3429
|
+
/**
|
|
3430
|
+
* Returns all RUNE Providers.
|
|
3431
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3432
|
+
* @param {*} [options] Override http request option.
|
|
3433
|
+
* @throws {RequiredError}
|
|
3434
|
+
*/
|
|
3435
|
+
runeProviders(height, options) {
|
|
3436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3437
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProviders(height, options);
|
|
3438
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3439
|
+
});
|
|
3440
|
+
},
|
|
3441
|
+
};
|
|
3442
|
+
};
|
|
3443
|
+
/**
|
|
3444
|
+
* RUNEPoolApi - factory interface
|
|
3445
|
+
* @export
|
|
3446
|
+
*/
|
|
3447
|
+
const RUNEPoolApiFactory = function (configuration, basePath, axios) {
|
|
3448
|
+
const localVarFp = RUNEPoolApiFp(configuration);
|
|
3449
|
+
return {
|
|
3450
|
+
/**
|
|
3451
|
+
* Returns the pool information for the RUNE pool.
|
|
3452
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3453
|
+
* @param {*} [options] Override http request option.
|
|
3454
|
+
* @throws {RequiredError}
|
|
3455
|
+
*/
|
|
3456
|
+
runePool(height, options) {
|
|
3457
|
+
return localVarFp.runePool(height, options).then((request) => request(axios, basePath));
|
|
3458
|
+
},
|
|
3459
|
+
/**
|
|
3460
|
+
* Returns the RUNE Provider information for an address.
|
|
3461
|
+
* @param {string} address
|
|
3462
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3463
|
+
* @param {*} [options] Override http request option.
|
|
3464
|
+
* @throws {RequiredError}
|
|
3465
|
+
*/
|
|
3466
|
+
runeProvider(address, height, options) {
|
|
3467
|
+
return localVarFp.runeProvider(address, height, options).then((request) => request(axios, basePath));
|
|
3468
|
+
},
|
|
3469
|
+
/**
|
|
3470
|
+
* Returns all RUNE Providers.
|
|
3471
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3472
|
+
* @param {*} [options] Override http request option.
|
|
3473
|
+
* @throws {RequiredError}
|
|
3474
|
+
*/
|
|
3475
|
+
runeProviders(height, options) {
|
|
3476
|
+
return localVarFp.runeProviders(height, options).then((request) => request(axios, basePath));
|
|
3477
|
+
},
|
|
3478
|
+
};
|
|
3479
|
+
};
|
|
3480
|
+
/**
|
|
3481
|
+
* RUNEPoolApi - object-oriented interface
|
|
3482
|
+
* @export
|
|
3483
|
+
* @class RUNEPoolApi
|
|
3484
|
+
* @extends {BaseAPI}
|
|
3485
|
+
*/
|
|
3486
|
+
class RUNEPoolApi extends BaseAPI {
|
|
3487
|
+
/**
|
|
3488
|
+
* Returns the pool information for the RUNE pool.
|
|
3489
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3490
|
+
* @param {*} [options] Override http request option.
|
|
3491
|
+
* @throws {RequiredError}
|
|
3492
|
+
* @memberof RUNEPoolApi
|
|
3493
|
+
*/
|
|
3494
|
+
runePool(height, options) {
|
|
3495
|
+
return RUNEPoolApiFp(this.configuration).runePool(height, options).then((request) => request(this.axios, this.basePath));
|
|
3496
|
+
}
|
|
3497
|
+
/**
|
|
3498
|
+
* Returns the RUNE Provider information for an address.
|
|
3499
|
+
* @param {string} address
|
|
3500
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3501
|
+
* @param {*} [options] Override http request option.
|
|
3502
|
+
* @throws {RequiredError}
|
|
3503
|
+
* @memberof RUNEPoolApi
|
|
3504
|
+
*/
|
|
3505
|
+
runeProvider(address, height, options) {
|
|
3506
|
+
return RUNEPoolApiFp(this.configuration).runeProvider(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
3507
|
+
}
|
|
3508
|
+
/**
|
|
3509
|
+
* Returns all RUNE Providers.
|
|
3510
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3511
|
+
* @param {*} [options] Override http request option.
|
|
3512
|
+
* @throws {RequiredError}
|
|
3513
|
+
* @memberof RUNEPoolApi
|
|
3514
|
+
*/
|
|
3515
|
+
runeProviders(height, options) {
|
|
3516
|
+
return RUNEPoolApiFp(this.configuration).runeProviders(height, options).then((request) => request(this.axios, this.basePath));
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3512
3519
|
/**
|
|
3513
3520
|
* SaversApi - axios parameter creator
|
|
3514
3521
|
* @export
|
|
@@ -5332,7 +5339,7 @@ class VaultsApi extends BaseAPI {
|
|
|
5332
5339
|
* Thornode API
|
|
5333
5340
|
* Thornode REST API.
|
|
5334
5341
|
*
|
|
5335
|
-
* The version of the OpenAPI document: 1.
|
|
5342
|
+
* The version of the OpenAPI document: 1.134.0
|
|
5336
5343
|
* Contact: devs@thorchain.org
|
|
5337
5344
|
*
|
|
5338
5345
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5370,5 +5377,5 @@ class Configuration {
|
|
|
5370
5377
|
*/
|
|
5371
5378
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
5372
5379
|
|
|
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,
|
|
5380
|
+
export { BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, CloutApi, CloutApiAxiosParamCreator, CloutApiFactory, CloutApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, PoolSlipApi, PoolSlipApiAxiosParamCreator, PoolSlipApiFactory, PoolSlipApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, RUNEPoolApi, RUNEPoolApiAxiosParamCreator, RUNEPoolApiFactory, RUNEPoolApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TradeAccountApi, TradeAccountApiAxiosParamCreator, TradeAccountApiFactory, TradeAccountApiFp, TradeAccountsApi, TradeAccountsApiAxiosParamCreator, TradeAccountsApiFactory, TradeAccountsApiFp, TradeUnitApi, TradeUnitApiAxiosParamCreator, TradeUnitApiFactory, TradeUnitApiFp, TradeUnitsApi, TradeUnitsApiAxiosParamCreator, TradeUnitsApiFactory, TradeUnitsApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp, YggdrasilVaultTypeEnum };
|
|
5374
5381
|
//# sourceMappingURL=index.esm.js.map
|