@xchainjs/xchain-thornode 0.3.8 → 0.3.10
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 +294 -29
- 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 +240 -29
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +243 -28
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -406,6 +406,106 @@ class BorrowersApi extends BaseAPI {
|
|
|
406
406
|
return BorrowersApiFp(this.configuration).borrowers(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
* CloutApi - axios parameter creator
|
|
411
|
+
* @export
|
|
412
|
+
*/
|
|
413
|
+
const CloutApiAxiosParamCreator = function (configuration) {
|
|
414
|
+
return {
|
|
415
|
+
/**
|
|
416
|
+
* Returns the clout score of an address
|
|
417
|
+
* @param {string} address
|
|
418
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
swapperClout: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
// verify required parameter 'address' is not null or undefined
|
|
424
|
+
assertParamExists('swapperClout', 'address', address);
|
|
425
|
+
const localVarPath = `/thorchain/clout/swap/{address}`
|
|
426
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
429
|
+
let baseOptions;
|
|
430
|
+
if (configuration) {
|
|
431
|
+
baseOptions = configuration.baseOptions;
|
|
432
|
+
}
|
|
433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
434
|
+
const localVarHeaderParameter = {};
|
|
435
|
+
const localVarQueryParameter = {};
|
|
436
|
+
if (height !== undefined) {
|
|
437
|
+
localVarQueryParameter['height'] = height;
|
|
438
|
+
}
|
|
439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
441
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
442
|
+
return {
|
|
443
|
+
url: toPathString(localVarUrlObj),
|
|
444
|
+
options: localVarRequestOptions,
|
|
445
|
+
};
|
|
446
|
+
}),
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* CloutApi - functional programming interface
|
|
451
|
+
* @export
|
|
452
|
+
*/
|
|
453
|
+
const CloutApiFp = function (configuration) {
|
|
454
|
+
const localVarAxiosParamCreator = CloutApiAxiosParamCreator(configuration);
|
|
455
|
+
return {
|
|
456
|
+
/**
|
|
457
|
+
* Returns the clout score of an address
|
|
458
|
+
* @param {string} address
|
|
459
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
swapperClout(address, height, options) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.swapperClout(address, height, options);
|
|
466
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
/**
|
|
472
|
+
* CloutApi - factory interface
|
|
473
|
+
* @export
|
|
474
|
+
*/
|
|
475
|
+
const CloutApiFactory = function (configuration, basePath, axios) {
|
|
476
|
+
const localVarFp = CloutApiFp(configuration);
|
|
477
|
+
return {
|
|
478
|
+
/**
|
|
479
|
+
* Returns the clout score of an address
|
|
480
|
+
* @param {string} address
|
|
481
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
swapperClout(address, height, options) {
|
|
486
|
+
return localVarFp.swapperClout(address, height, options).then((request) => request(axios, basePath));
|
|
487
|
+
},
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* CloutApi - object-oriented interface
|
|
492
|
+
* @export
|
|
493
|
+
* @class CloutApi
|
|
494
|
+
* @extends {BaseAPI}
|
|
495
|
+
*/
|
|
496
|
+
class CloutApi extends BaseAPI {
|
|
497
|
+
/**
|
|
498
|
+
* Returns the clout score of an address
|
|
499
|
+
* @param {string} address
|
|
500
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
* @memberof CloutApi
|
|
504
|
+
*/
|
|
505
|
+
swapperClout(address, height, options) {
|
|
506
|
+
return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
507
|
+
}
|
|
508
|
+
}
|
|
409
509
|
/**
|
|
410
510
|
* HealthApi - axios parameter creator
|
|
411
511
|
* @export
|
|
@@ -978,6 +1078,62 @@ const MimirApiAxiosParamCreator = function (configuration) {
|
|
|
978
1078
|
options: localVarRequestOptions,
|
|
979
1079
|
};
|
|
980
1080
|
}),
|
|
1081
|
+
/**
|
|
1082
|
+
* Returns current mimir V2 configuration.
|
|
1083
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
mimirV2: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1088
|
+
const localVarPath = `/thorchain/mimirV2`;
|
|
1089
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1090
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1091
|
+
let baseOptions;
|
|
1092
|
+
if (configuration) {
|
|
1093
|
+
baseOptions = configuration.baseOptions;
|
|
1094
|
+
}
|
|
1095
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1096
|
+
const localVarHeaderParameter = {};
|
|
1097
|
+
const localVarQueryParameter = {};
|
|
1098
|
+
if (height !== undefined) {
|
|
1099
|
+
localVarQueryParameter['height'] = height;
|
|
1100
|
+
}
|
|
1101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1103
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1104
|
+
return {
|
|
1105
|
+
url: toPathString(localVarUrlObj),
|
|
1106
|
+
options: localVarRequestOptions,
|
|
1107
|
+
};
|
|
1108
|
+
}),
|
|
1109
|
+
/**
|
|
1110
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
1111
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1112
|
+
* @param {*} [options] Override http request option.
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
*/
|
|
1115
|
+
mimirV2IDs: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1116
|
+
const localVarPath = `/thorchain/mimirV2/ids`;
|
|
1117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1119
|
+
let baseOptions;
|
|
1120
|
+
if (configuration) {
|
|
1121
|
+
baseOptions = configuration.baseOptions;
|
|
1122
|
+
}
|
|
1123
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1124
|
+
const localVarHeaderParameter = {};
|
|
1125
|
+
const localVarQueryParameter = {};
|
|
1126
|
+
if (height !== undefined) {
|
|
1127
|
+
localVarQueryParameter['height'] = height;
|
|
1128
|
+
}
|
|
1129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1131
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1132
|
+
return {
|
|
1133
|
+
url: toPathString(localVarUrlObj),
|
|
1134
|
+
options: localVarRequestOptions,
|
|
1135
|
+
};
|
|
1136
|
+
}),
|
|
981
1137
|
};
|
|
982
1138
|
};
|
|
983
1139
|
/**
|
|
@@ -1049,6 +1205,30 @@ const MimirApiFp = function (configuration) {
|
|
|
1049
1205
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
1050
1206
|
});
|
|
1051
1207
|
},
|
|
1208
|
+
/**
|
|
1209
|
+
* Returns current mimir V2 configuration.
|
|
1210
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1211
|
+
* @param {*} [options] Override http request option.
|
|
1212
|
+
* @throws {RequiredError}
|
|
1213
|
+
*/
|
|
1214
|
+
mimirV2(height, options) {
|
|
1215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1216
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2(height, options);
|
|
1217
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
1218
|
+
});
|
|
1219
|
+
},
|
|
1220
|
+
/**
|
|
1221
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
1222
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1223
|
+
* @param {*} [options] Override http request option.
|
|
1224
|
+
* @throws {RequiredError}
|
|
1225
|
+
*/
|
|
1226
|
+
mimirV2IDs(height, options) {
|
|
1227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1228
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2IDs(height, options);
|
|
1229
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
1230
|
+
});
|
|
1231
|
+
},
|
|
1052
1232
|
};
|
|
1053
1233
|
};
|
|
1054
1234
|
/**
|
|
@@ -1105,6 +1285,24 @@ const MimirApiFactory = function (configuration, basePath, axios) {
|
|
|
1105
1285
|
mimirNodes(height, options) {
|
|
1106
1286
|
return localVarFp.mimirNodes(height, options).then((request) => request(axios, basePath));
|
|
1107
1287
|
},
|
|
1288
|
+
/**
|
|
1289
|
+
* Returns current mimir V2 configuration.
|
|
1290
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1291
|
+
* @param {*} [options] Override http request option.
|
|
1292
|
+
* @throws {RequiredError}
|
|
1293
|
+
*/
|
|
1294
|
+
mimirV2(height, options) {
|
|
1295
|
+
return localVarFp.mimirV2(height, options).then((request) => request(axios, basePath));
|
|
1296
|
+
},
|
|
1297
|
+
/**
|
|
1298
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
1299
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
mimirV2IDs(height, options) {
|
|
1304
|
+
return localVarFp.mimirV2IDs(height, options).then((request) => request(axios, basePath));
|
|
1305
|
+
},
|
|
1108
1306
|
};
|
|
1109
1307
|
};
|
|
1110
1308
|
/**
|
|
@@ -1166,6 +1364,26 @@ class MimirApi extends BaseAPI {
|
|
|
1166
1364
|
mimirNodes(height, options) {
|
|
1167
1365
|
return MimirApiFp(this.configuration).mimirNodes(height, options).then((request) => request(this.axios, this.basePath));
|
|
1168
1366
|
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Returns current mimir V2 configuration.
|
|
1369
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1370
|
+
* @param {*} [options] Override http request option.
|
|
1371
|
+
* @throws {RequiredError}
|
|
1372
|
+
* @memberof MimirApi
|
|
1373
|
+
*/
|
|
1374
|
+
mimirV2(height, options) {
|
|
1375
|
+
return MimirApiFp(this.configuration).mimirV2(height, options).then((request) => request(this.axios, this.basePath));
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Returns mapping of mimir V2 IDs to name.
|
|
1379
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
* @memberof MimirApi
|
|
1383
|
+
*/
|
|
1384
|
+
mimirV2IDs(height, options) {
|
|
1385
|
+
return MimirApiFp(this.configuration).mimirV2IDs(height, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
+
}
|
|
1169
1387
|
}
|
|
1170
1388
|
/**
|
|
1171
1389
|
* NetworkApi - axios parameter creator
|
|
@@ -2503,14 +2721,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2503
2721
|
* Provide a quote estimate for the provided loan close.
|
|
2504
2722
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2505
2723
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2506
|
-
* @param {number} [
|
|
2724
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
2507
2725
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
2508
2726
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2509
2727
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2510
2728
|
* @param {*} [options] Override http request option.
|
|
2511
2729
|
* @throws {RequiredError}
|
|
2512
2730
|
*/
|
|
2513
|
-
quoteloanclose: (height, fromAsset,
|
|
2731
|
+
quoteloanclose: (height, fromAsset, repayBps, toAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2514
2732
|
const localVarPath = `/thorchain/quote/loan/close`;
|
|
2515
2733
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2516
2734
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2527,8 +2745,8 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2527
2745
|
if (fromAsset !== undefined) {
|
|
2528
2746
|
localVarQueryParameter['from_asset'] = fromAsset;
|
|
2529
2747
|
}
|
|
2530
|
-
if (
|
|
2531
|
-
localVarQueryParameter['
|
|
2748
|
+
if (repayBps !== undefined) {
|
|
2749
|
+
localVarQueryParameter['repay_bps'] = repayBps;
|
|
2532
2750
|
}
|
|
2533
2751
|
if (toAsset !== undefined) {
|
|
2534
2752
|
localVarQueryParameter['to_asset'] = toAsset;
|
|
@@ -2688,14 +2906,13 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2688
2906
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2689
2907
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2690
2908
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2691
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2692
2909
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2693
2910
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2694
2911
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2695
2912
|
* @param {*} [options] Override http request option.
|
|
2696
2913
|
* @throws {RequiredError}
|
|
2697
2914
|
*/
|
|
2698
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2915
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2699
2916
|
const localVarPath = `/thorchain/quote/swap`;
|
|
2700
2917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2701
2918
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2727,9 +2944,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2727
2944
|
if (streamingQuantity !== undefined) {
|
|
2728
2945
|
localVarQueryParameter['streaming_quantity'] = streamingQuantity;
|
|
2729
2946
|
}
|
|
2730
|
-
if (fromAddress !== undefined) {
|
|
2731
|
-
localVarQueryParameter['from_address'] = fromAddress;
|
|
2732
|
-
}
|
|
2733
2947
|
if (toleranceBps !== undefined) {
|
|
2734
2948
|
localVarQueryParameter['tolerance_bps'] = toleranceBps;
|
|
2735
2949
|
}
|
|
@@ -2760,16 +2974,16 @@ const QuoteApiFp = function (configuration) {
|
|
|
2760
2974
|
* Provide a quote estimate for the provided loan close.
|
|
2761
2975
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2762
2976
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2763
|
-
* @param {number} [
|
|
2977
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
2764
2978
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
2765
2979
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2766
2980
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2767
2981
|
* @param {*} [options] Override http request option.
|
|
2768
2982
|
* @throws {RequiredError}
|
|
2769
2983
|
*/
|
|
2770
|
-
quoteloanclose(height, fromAsset,
|
|
2984
|
+
quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
|
|
2771
2985
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2772
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset,
|
|
2986
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options);
|
|
2773
2987
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2774
2988
|
});
|
|
2775
2989
|
},
|
|
@@ -2830,16 +3044,15 @@ const QuoteApiFp = function (configuration) {
|
|
|
2830
3044
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2831
3045
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2832
3046
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2833
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2834
3047
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2835
3048
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2836
3049
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2837
3050
|
* @param {*} [options] Override http request option.
|
|
2838
3051
|
* @throws {RequiredError}
|
|
2839
3052
|
*/
|
|
2840
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3053
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
2841
3054
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2842
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3055
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options);
|
|
2843
3056
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2844
3057
|
});
|
|
2845
3058
|
},
|
|
@@ -2856,15 +3069,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2856
3069
|
* Provide a quote estimate for the provided loan close.
|
|
2857
3070
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2858
3071
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2859
|
-
* @param {number} [
|
|
3072
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
2860
3073
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
2861
3074
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2862
3075
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2863
3076
|
* @param {*} [options] Override http request option.
|
|
2864
3077
|
* @throws {RequiredError}
|
|
2865
3078
|
*/
|
|
2866
|
-
quoteloanclose(height, fromAsset,
|
|
2867
|
-
return localVarFp.quoteloanclose(height, fromAsset,
|
|
3079
|
+
quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
|
|
3080
|
+
return localVarFp.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2868
3081
|
},
|
|
2869
3082
|
/**
|
|
2870
3083
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2914,15 +3127,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2914
3127
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2915
3128
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2916
3129
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2917
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2918
3130
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2919
3131
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2920
3132
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2921
3133
|
* @param {*} [options] Override http request option.
|
|
2922
3134
|
* @throws {RequiredError}
|
|
2923
3135
|
*/
|
|
2924
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2925
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3136
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3137
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2926
3138
|
},
|
|
2927
3139
|
};
|
|
2928
3140
|
};
|
|
@@ -2937,7 +3149,7 @@ class QuoteApi extends BaseAPI {
|
|
|
2937
3149
|
* Provide a quote estimate for the provided loan close.
|
|
2938
3150
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2939
3151
|
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2940
|
-
* @param {number} [
|
|
3152
|
+
* @param {number} [repayBps] the basis points of the existing position to repay
|
|
2941
3153
|
* @param {string} [toAsset] the collateral asset of the loan
|
|
2942
3154
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2943
3155
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
@@ -2945,8 +3157,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2945
3157
|
* @throws {RequiredError}
|
|
2946
3158
|
* @memberof QuoteApi
|
|
2947
3159
|
*/
|
|
2948
|
-
quoteloanclose(height, fromAsset,
|
|
2949
|
-
return QuoteApiFp(this.configuration).quoteloanclose(height, fromAsset,
|
|
3160
|
+
quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
|
|
3161
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2950
3162
|
}
|
|
2951
3163
|
/**
|
|
2952
3164
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2999,7 +3211,6 @@ class QuoteApi extends BaseAPI {
|
|
|
2999
3211
|
* @param {string} [destination] the destination address, required to generate memo
|
|
3000
3212
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
3001
3213
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
3002
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
3003
3214
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
3004
3215
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
3005
3216
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -3007,8 +3218,8 @@ class QuoteApi extends BaseAPI {
|
|
|
3007
3218
|
* @throws {RequiredError}
|
|
3008
3219
|
* @memberof QuoteApi
|
|
3009
3220
|
*/
|
|
3010
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3011
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3221
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3222
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
3012
3223
|
}
|
|
3013
3224
|
}
|
|
3014
3225
|
/**
|
|
@@ -4375,7 +4586,7 @@ class VaultsApi extends BaseAPI {
|
|
|
4375
4586
|
* Thornode API
|
|
4376
4587
|
* Thornode REST API.
|
|
4377
4588
|
*
|
|
4378
|
-
* The version of the OpenAPI document: 1.
|
|
4589
|
+
* The version of the OpenAPI document: 1.126.0
|
|
4379
4590
|
* Contact: devs@thorchain.org
|
|
4380
4591
|
*
|
|
4381
4592
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4418,6 +4629,10 @@ exports.BorrowersApi = BorrowersApi;
|
|
|
4418
4629
|
exports.BorrowersApiAxiosParamCreator = BorrowersApiAxiosParamCreator;
|
|
4419
4630
|
exports.BorrowersApiFactory = BorrowersApiFactory;
|
|
4420
4631
|
exports.BorrowersApiFp = BorrowersApiFp;
|
|
4632
|
+
exports.CloutApi = CloutApi;
|
|
4633
|
+
exports.CloutApiAxiosParamCreator = CloutApiAxiosParamCreator;
|
|
4634
|
+
exports.CloutApiFactory = CloutApiFactory;
|
|
4635
|
+
exports.CloutApiFp = CloutApiFp;
|
|
4421
4636
|
exports.Configuration = Configuration;
|
|
4422
4637
|
exports.HealthApi = HealthApi;
|
|
4423
4638
|
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|