@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/index.esm.js CHANGED
@@ -398,6 +398,106 @@ class BorrowersApi extends BaseAPI {
398
398
  return BorrowersApiFp(this.configuration).borrowers(asset, height, options).then((request) => request(this.axios, this.basePath));
399
399
  }
400
400
  }
401
+ /**
402
+ * CloutApi - axios parameter creator
403
+ * @export
404
+ */
405
+ const CloutApiAxiosParamCreator = function (configuration) {
406
+ return {
407
+ /**
408
+ * Returns the clout score of an address
409
+ * @param {string} address
410
+ * @param {number} [height] optional block height, defaults to current tip
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ swapperClout: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
415
+ // verify required parameter 'address' is not null or undefined
416
+ assertParamExists('swapperClout', 'address', address);
417
+ const localVarPath = `/thorchain/clout/swap/{address}`
418
+ .replace(`{${"address"}}`, encodeURIComponent(String(address)));
419
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
420
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
421
+ let baseOptions;
422
+ if (configuration) {
423
+ baseOptions = configuration.baseOptions;
424
+ }
425
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
426
+ const localVarHeaderParameter = {};
427
+ const localVarQueryParameter = {};
428
+ if (height !== undefined) {
429
+ localVarQueryParameter['height'] = height;
430
+ }
431
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
432
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
433
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
434
+ return {
435
+ url: toPathString(localVarUrlObj),
436
+ options: localVarRequestOptions,
437
+ };
438
+ }),
439
+ };
440
+ };
441
+ /**
442
+ * CloutApi - functional programming interface
443
+ * @export
444
+ */
445
+ const CloutApiFp = function (configuration) {
446
+ const localVarAxiosParamCreator = CloutApiAxiosParamCreator(configuration);
447
+ return {
448
+ /**
449
+ * Returns the clout score of an address
450
+ * @param {string} address
451
+ * @param {number} [height] optional block height, defaults to current tip
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ swapperClout(address, height, options) {
456
+ return __awaiter(this, void 0, void 0, function* () {
457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.swapperClout(address, height, options);
458
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
459
+ });
460
+ },
461
+ };
462
+ };
463
+ /**
464
+ * CloutApi - factory interface
465
+ * @export
466
+ */
467
+ const CloutApiFactory = function (configuration, basePath, axios) {
468
+ const localVarFp = CloutApiFp(configuration);
469
+ return {
470
+ /**
471
+ * Returns the clout score of an address
472
+ * @param {string} address
473
+ * @param {number} [height] optional block height, defaults to current tip
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ swapperClout(address, height, options) {
478
+ return localVarFp.swapperClout(address, height, options).then((request) => request(axios, basePath));
479
+ },
480
+ };
481
+ };
482
+ /**
483
+ * CloutApi - object-oriented interface
484
+ * @export
485
+ * @class CloutApi
486
+ * @extends {BaseAPI}
487
+ */
488
+ class CloutApi extends BaseAPI {
489
+ /**
490
+ * Returns the clout score of an address
491
+ * @param {string} address
492
+ * @param {number} [height] optional block height, defaults to current tip
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ * @memberof CloutApi
496
+ */
497
+ swapperClout(address, height, options) {
498
+ return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
499
+ }
500
+ }
401
501
  /**
402
502
  * HealthApi - axios parameter creator
403
503
  * @export
@@ -970,6 +1070,62 @@ const MimirApiAxiosParamCreator = function (configuration) {
970
1070
  options: localVarRequestOptions,
971
1071
  };
972
1072
  }),
1073
+ /**
1074
+ * Returns current mimir V2 configuration.
1075
+ * @param {number} [height] optional block height, defaults to current tip
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ */
1079
+ mimirV2: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1080
+ const localVarPath = `/thorchain/mimirV2`;
1081
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1082
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1083
+ let baseOptions;
1084
+ if (configuration) {
1085
+ baseOptions = configuration.baseOptions;
1086
+ }
1087
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1088
+ const localVarHeaderParameter = {};
1089
+ const localVarQueryParameter = {};
1090
+ if (height !== undefined) {
1091
+ localVarQueryParameter['height'] = height;
1092
+ }
1093
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1094
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1095
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1096
+ return {
1097
+ url: toPathString(localVarUrlObj),
1098
+ options: localVarRequestOptions,
1099
+ };
1100
+ }),
1101
+ /**
1102
+ * Returns mapping of mimir V2 IDs to name.
1103
+ * @param {number} [height] optional block height, defaults to current tip
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ mimirV2IDs: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
1108
+ const localVarPath = `/thorchain/mimirV2/ids`;
1109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1111
+ let baseOptions;
1112
+ if (configuration) {
1113
+ baseOptions = configuration.baseOptions;
1114
+ }
1115
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1116
+ const localVarHeaderParameter = {};
1117
+ const localVarQueryParameter = {};
1118
+ if (height !== undefined) {
1119
+ localVarQueryParameter['height'] = height;
1120
+ }
1121
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1122
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1123
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1124
+ return {
1125
+ url: toPathString(localVarUrlObj),
1126
+ options: localVarRequestOptions,
1127
+ };
1128
+ }),
973
1129
  };
974
1130
  };
975
1131
  /**
@@ -1041,6 +1197,30 @@ const MimirApiFp = function (configuration) {
1041
1197
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1042
1198
  });
1043
1199
  },
1200
+ /**
1201
+ * Returns current mimir V2 configuration.
1202
+ * @param {number} [height] optional block height, defaults to current tip
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ */
1206
+ mimirV2(height, options) {
1207
+ return __awaiter(this, void 0, void 0, function* () {
1208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2(height, options);
1209
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1210
+ });
1211
+ },
1212
+ /**
1213
+ * Returns mapping of mimir V2 IDs to name.
1214
+ * @param {number} [height] optional block height, defaults to current tip
1215
+ * @param {*} [options] Override http request option.
1216
+ * @throws {RequiredError}
1217
+ */
1218
+ mimirV2IDs(height, options) {
1219
+ return __awaiter(this, void 0, void 0, function* () {
1220
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2IDs(height, options);
1221
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1222
+ });
1223
+ },
1044
1224
  };
1045
1225
  };
1046
1226
  /**
@@ -1097,6 +1277,24 @@ const MimirApiFactory = function (configuration, basePath, axios) {
1097
1277
  mimirNodes(height, options) {
1098
1278
  return localVarFp.mimirNodes(height, options).then((request) => request(axios, basePath));
1099
1279
  },
1280
+ /**
1281
+ * Returns current mimir V2 configuration.
1282
+ * @param {number} [height] optional block height, defaults to current tip
1283
+ * @param {*} [options] Override http request option.
1284
+ * @throws {RequiredError}
1285
+ */
1286
+ mimirV2(height, options) {
1287
+ return localVarFp.mimirV2(height, options).then((request) => request(axios, basePath));
1288
+ },
1289
+ /**
1290
+ * Returns mapping of mimir V2 IDs to name.
1291
+ * @param {number} [height] optional block height, defaults to current tip
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ */
1295
+ mimirV2IDs(height, options) {
1296
+ return localVarFp.mimirV2IDs(height, options).then((request) => request(axios, basePath));
1297
+ },
1100
1298
  };
1101
1299
  };
1102
1300
  /**
@@ -1158,6 +1356,26 @@ class MimirApi extends BaseAPI {
1158
1356
  mimirNodes(height, options) {
1159
1357
  return MimirApiFp(this.configuration).mimirNodes(height, options).then((request) => request(this.axios, this.basePath));
1160
1358
  }
1359
+ /**
1360
+ * Returns current mimir V2 configuration.
1361
+ * @param {number} [height] optional block height, defaults to current tip
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ * @memberof MimirApi
1365
+ */
1366
+ mimirV2(height, options) {
1367
+ return MimirApiFp(this.configuration).mimirV2(height, options).then((request) => request(this.axios, this.basePath));
1368
+ }
1369
+ /**
1370
+ * Returns mapping of mimir V2 IDs to name.
1371
+ * @param {number} [height] optional block height, defaults to current tip
1372
+ * @param {*} [options] Override http request option.
1373
+ * @throws {RequiredError}
1374
+ * @memberof MimirApi
1375
+ */
1376
+ mimirV2IDs(height, options) {
1377
+ return MimirApiFp(this.configuration).mimirV2IDs(height, options).then((request) => request(this.axios, this.basePath));
1378
+ }
1161
1379
  }
1162
1380
  /**
1163
1381
  * NetworkApi - axios parameter creator
@@ -2495,14 +2713,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2495
2713
  * Provide a quote estimate for the provided loan close.
2496
2714
  * @param {number} [height] optional block height, defaults to current tip
2497
2715
  * @param {string} [fromAsset] the asset used to repay the loan
2498
- * @param {number} [amount] the asset amount in 1e8 decimals
2716
+ * @param {number} [repayBps] the basis points of the existing position to repay
2499
2717
  * @param {string} [toAsset] the collateral asset of the loan
2500
2718
  * @param {string} [loanOwner] the owner of the loan collateral
2501
2719
  * @param {string} [minOut] the minimum amount of the target asset to accept
2502
2720
  * @param {*} [options] Override http request option.
2503
2721
  * @throws {RequiredError}
2504
2722
  */
2505
- quoteloanclose: (height, fromAsset, amount, toAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2723
+ quoteloanclose: (height, fromAsset, repayBps, toAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2506
2724
  const localVarPath = `/thorchain/quote/loan/close`;
2507
2725
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2508
2726
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2519,8 +2737,8 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2519
2737
  if (fromAsset !== undefined) {
2520
2738
  localVarQueryParameter['from_asset'] = fromAsset;
2521
2739
  }
2522
- if (amount !== undefined) {
2523
- localVarQueryParameter['amount'] = amount;
2740
+ if (repayBps !== undefined) {
2741
+ localVarQueryParameter['repay_bps'] = repayBps;
2524
2742
  }
2525
2743
  if (toAsset !== undefined) {
2526
2744
  localVarQueryParameter['to_asset'] = toAsset;
@@ -2680,14 +2898,13 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2680
2898
  * @param {string} [destination] the destination address, required to generate memo
2681
2899
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
2682
2900
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
2683
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
2684
2901
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2685
2902
  * @param {number} [affiliateBps] the affiliate fee in basis points
2686
2903
  * @param {string} [affiliate] the affiliate (address or thorname)
2687
2904
  * @param {*} [options] Override http request option.
2688
2905
  * @throws {RequiredError}
2689
2906
  */
2690
- quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
2907
+ quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
2691
2908
  const localVarPath = `/thorchain/quote/swap`;
2692
2909
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2693
2910
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2719,9 +2936,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2719
2936
  if (streamingQuantity !== undefined) {
2720
2937
  localVarQueryParameter['streaming_quantity'] = streamingQuantity;
2721
2938
  }
2722
- if (fromAddress !== undefined) {
2723
- localVarQueryParameter['from_address'] = fromAddress;
2724
- }
2725
2939
  if (toleranceBps !== undefined) {
2726
2940
  localVarQueryParameter['tolerance_bps'] = toleranceBps;
2727
2941
  }
@@ -2752,16 +2966,16 @@ const QuoteApiFp = function (configuration) {
2752
2966
  * Provide a quote estimate for the provided loan close.
2753
2967
  * @param {number} [height] optional block height, defaults to current tip
2754
2968
  * @param {string} [fromAsset] the asset used to repay the loan
2755
- * @param {number} [amount] the asset amount in 1e8 decimals
2969
+ * @param {number} [repayBps] the basis points of the existing position to repay
2756
2970
  * @param {string} [toAsset] the collateral asset of the loan
2757
2971
  * @param {string} [loanOwner] the owner of the loan collateral
2758
2972
  * @param {string} [minOut] the minimum amount of the target asset to accept
2759
2973
  * @param {*} [options] Override http request option.
2760
2974
  * @throws {RequiredError}
2761
2975
  */
2762
- quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options) {
2976
+ quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
2763
2977
  return __awaiter(this, void 0, void 0, function* () {
2764
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options);
2978
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options);
2765
2979
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2766
2980
  });
2767
2981
  },
@@ -2822,16 +3036,15 @@ const QuoteApiFp = function (configuration) {
2822
3036
  * @param {string} [destination] the destination address, required to generate memo
2823
3037
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
2824
3038
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
2825
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
2826
3039
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2827
3040
  * @param {number} [affiliateBps] the affiliate fee in basis points
2828
3041
  * @param {string} [affiliate] the affiliate (address or thorname)
2829
3042
  * @param {*} [options] Override http request option.
2830
3043
  * @throws {RequiredError}
2831
3044
  */
2832
- quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
3045
+ quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
2833
3046
  return __awaiter(this, void 0, void 0, function* () {
2834
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options);
3047
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options);
2835
3048
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2836
3049
  });
2837
3050
  },
@@ -2848,15 +3061,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2848
3061
  * Provide a quote estimate for the provided loan close.
2849
3062
  * @param {number} [height] optional block height, defaults to current tip
2850
3063
  * @param {string} [fromAsset] the asset used to repay the loan
2851
- * @param {number} [amount] the asset amount in 1e8 decimals
3064
+ * @param {number} [repayBps] the basis points of the existing position to repay
2852
3065
  * @param {string} [toAsset] the collateral asset of the loan
2853
3066
  * @param {string} [loanOwner] the owner of the loan collateral
2854
3067
  * @param {string} [minOut] the minimum amount of the target asset to accept
2855
3068
  * @param {*} [options] Override http request option.
2856
3069
  * @throws {RequiredError}
2857
3070
  */
2858
- quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options) {
2859
- return localVarFp.quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
3071
+ quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
3072
+ return localVarFp.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
2860
3073
  },
2861
3074
  /**
2862
3075
  * Provide a quote estimate for the provided loan open.
@@ -2906,15 +3119,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2906
3119
  * @param {string} [destination] the destination address, required to generate memo
2907
3120
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
2908
3121
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
2909
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
2910
3122
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2911
3123
  * @param {number} [affiliateBps] the affiliate fee in basis points
2912
3124
  * @param {string} [affiliate] the affiliate (address or thorname)
2913
3125
  * @param {*} [options] Override http request option.
2914
3126
  * @throws {RequiredError}
2915
3127
  */
2916
- quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2917
- return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
3128
+ quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
3129
+ return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
2918
3130
  },
2919
3131
  };
2920
3132
  };
@@ -2929,7 +3141,7 @@ class QuoteApi extends BaseAPI {
2929
3141
  * Provide a quote estimate for the provided loan close.
2930
3142
  * @param {number} [height] optional block height, defaults to current tip
2931
3143
  * @param {string} [fromAsset] the asset used to repay the loan
2932
- * @param {number} [amount] the asset amount in 1e8 decimals
3144
+ * @param {number} [repayBps] the basis points of the existing position to repay
2933
3145
  * @param {string} [toAsset] the collateral asset of the loan
2934
3146
  * @param {string} [loanOwner] the owner of the loan collateral
2935
3147
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -2937,8 +3149,8 @@ class QuoteApi extends BaseAPI {
2937
3149
  * @throws {RequiredError}
2938
3150
  * @memberof QuoteApi
2939
3151
  */
2940
- quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options) {
2941
- return QuoteApiFp(this.configuration).quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
3152
+ quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
3153
+ return QuoteApiFp(this.configuration).quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
2942
3154
  }
2943
3155
  /**
2944
3156
  * Provide a quote estimate for the provided loan open.
@@ -2991,7 +3203,6 @@ class QuoteApi extends BaseAPI {
2991
3203
  * @param {string} [destination] the destination address, required to generate memo
2992
3204
  * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
2993
3205
  * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
2994
- * @param {string} [fromAddress] the from address, required if the from asset is a synth
2995
3206
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2996
3207
  * @param {number} [affiliateBps] the affiliate fee in basis points
2997
3208
  * @param {string} [affiliate] the affiliate (address or thorname)
@@ -2999,8 +3210,8 @@ class QuoteApi extends BaseAPI {
2999
3210
  * @throws {RequiredError}
3000
3211
  * @memberof QuoteApi
3001
3212
  */
3002
- quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
3003
- return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
3213
+ quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
3214
+ return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
3004
3215
  }
3005
3216
  }
3006
3217
  /**
@@ -4367,7 +4578,7 @@ class VaultsApi extends BaseAPI {
4367
4578
  * Thornode API
4368
4579
  * Thornode REST API.
4369
4580
  *
4370
- * The version of the OpenAPI document: 1.122.0
4581
+ * The version of the OpenAPI document: 1.126.0
4371
4582
  * Contact: devs@thorchain.org
4372
4583
  *
4373
4584
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4402,5 +4613,5 @@ class Configuration {
4402
4613
 
4403
4614
  const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
4404
4615
 
4405
- export { BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, 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, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
4616
+ 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, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
4406
4617
  //# sourceMappingURL=index.esm.js.map