@xchainjs/xchain-thornode 0.3.1 → 0.3.2

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.
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.109.0
5
+ * The version of the OpenAPI document: 1.110.0
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2868,11 +2868,17 @@ export interface VersionResponse {
2868
2868
  */
2869
2869
  'current': string;
2870
2870
  /**
2871
- * next version
2871
+ * next version (minimum version for a node to become Active)
2872
2872
  * @type {string}
2873
2873
  * @memberof VersionResponse
2874
2874
  */
2875
2875
  'next': string;
2876
+ /**
2877
+ * height at which the minimum joining version last changed
2878
+ * @type {number}
2879
+ * @memberof VersionResponse
2880
+ */
2881
+ 'next_since_height'?: number;
2876
2882
  /**
2877
2883
  * querier version
2878
2884
  * @type {string}
@@ -4039,13 +4045,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4039
4045
  * @param {number} [height] optional block height, defaults to current tip
4040
4046
  * @param {string} [asset] the asset used to repay the loan
4041
4047
  * @param {number} [amount] the asset amount in 1e8 decimals
4048
+ * @param {string} [fromAddress] the address that is paying off the loan
4042
4049
  * @param {string} [loanAsset] the collateral asset of the loan
4043
4050
  * @param {string} [loanOwner] the owner of the loan collateral
4044
4051
  * @param {string} [minOut] the minimum amount of the target asset to accept
4045
4052
  * @param {*} [options] Override http request option.
4046
4053
  * @throws {RequiredError}
4047
4054
  */
4048
- quoteloanclose: (height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4055
+ quoteloanclose: (height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4049
4056
  /**
4050
4057
  * Provide a quote estimate for the provided loan open.
4051
4058
  * @param {number} [height] optional block height, defaults to current tip
@@ -4105,13 +4112,14 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4105
4112
  * @param {number} [height] optional block height, defaults to current tip
4106
4113
  * @param {string} [asset] the asset used to repay the loan
4107
4114
  * @param {number} [amount] the asset amount in 1e8 decimals
4115
+ * @param {string} [fromAddress] the address that is paying off the loan
4108
4116
  * @param {string} [loanAsset] the collateral asset of the loan
4109
4117
  * @param {string} [loanOwner] the owner of the loan collateral
4110
4118
  * @param {string} [minOut] the minimum amount of the target asset to accept
4111
4119
  * @param {*} [options] Override http request option.
4112
4120
  * @throws {RequiredError}
4113
4121
  */
4114
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4122
+ quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4115
4123
  /**
4116
4124
  * Provide a quote estimate for the provided loan open.
4117
4125
  * @param {number} [height] optional block height, defaults to current tip
@@ -4171,13 +4179,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4171
4179
  * @param {number} [height] optional block height, defaults to current tip
4172
4180
  * @param {string} [asset] the asset used to repay the loan
4173
4181
  * @param {number} [amount] the asset amount in 1e8 decimals
4182
+ * @param {string} [fromAddress] the address that is paying off the loan
4174
4183
  * @param {string} [loanAsset] the collateral asset of the loan
4175
4184
  * @param {string} [loanOwner] the owner of the loan collateral
4176
4185
  * @param {string} [minOut] the minimum amount of the target asset to accept
4177
4186
  * @param {*} [options] Override http request option.
4178
4187
  * @throws {RequiredError}
4179
4188
  */
4180
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4189
+ quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4181
4190
  /**
4182
4191
  * Provide a quote estimate for the provided loan open.
4183
4192
  * @param {number} [height] optional block height, defaults to current tip
@@ -4239,6 +4248,7 @@ export declare class QuoteApi extends BaseAPI {
4239
4248
  * @param {number} [height] optional block height, defaults to current tip
4240
4249
  * @param {string} [asset] the asset used to repay the loan
4241
4250
  * @param {number} [amount] the asset amount in 1e8 decimals
4251
+ * @param {string} [fromAddress] the address that is paying off the loan
4242
4252
  * @param {string} [loanAsset] the collateral asset of the loan
4243
4253
  * @param {string} [loanOwner] the owner of the loan collateral
4244
4254
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -4246,7 +4256,7 @@ export declare class QuoteApi extends BaseAPI {
4246
4256
  * @throws {RequiredError}
4247
4257
  * @memberof QuoteApi
4248
4258
  */
4249
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4259
+ quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4250
4260
  /**
4251
4261
  * Provide a quote estimate for the provided loan open.
4252
4262
  * @param {number} [height] optional block height, defaults to current tip
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.109.0
5
+ * The version of the OpenAPI document: 1.110.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.109.0
5
+ * The version of the OpenAPI document: 1.110.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.109.0
5
+ * The version of the OpenAPI document: 1.110.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.109.0
5
+ * The version of the OpenAPI document: 1.110.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
@@ -2278,13 +2278,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2278
2278
  * @param {number} [height] optional block height, defaults to current tip
2279
2279
  * @param {string} [asset] the asset used to repay the loan
2280
2280
  * @param {number} [amount] the asset amount in 1e8 decimals
2281
+ * @param {string} [fromAddress] the address that is paying off the loan
2281
2282
  * @param {string} [loanAsset] the collateral asset of the loan
2282
2283
  * @param {string} [loanOwner] the owner of the loan collateral
2283
2284
  * @param {string} [minOut] the minimum amount of the target asset to accept
2284
2285
  * @param {*} [options] Override http request option.
2285
2286
  * @throws {RequiredError}
2286
2287
  */
2287
- quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2288
+ quoteloanclose: (height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2288
2289
  const localVarPath = `/thorchain/quote/loan/close`;
2289
2290
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2290
2291
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2304,6 +2305,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2304
2305
  if (amount !== undefined) {
2305
2306
  localVarQueryParameter['amount'] = amount;
2306
2307
  }
2308
+ if (fromAddress !== undefined) {
2309
+ localVarQueryParameter['from_address'] = fromAddress;
2310
+ }
2307
2311
  if (loanAsset !== undefined) {
2308
2312
  localVarQueryParameter['loan_asset'] = loanAsset;
2309
2313
  }
@@ -2527,15 +2531,16 @@ const QuoteApiFp = function (configuration) {
2527
2531
  * @param {number} [height] optional block height, defaults to current tip
2528
2532
  * @param {string} [asset] the asset used to repay the loan
2529
2533
  * @param {number} [amount] the asset amount in 1e8 decimals
2534
+ * @param {string} [fromAddress] the address that is paying off the loan
2530
2535
  * @param {string} [loanAsset] the collateral asset of the loan
2531
2536
  * @param {string} [loanOwner] the owner of the loan collateral
2532
2537
  * @param {string} [minOut] the minimum amount of the target asset to accept
2533
2538
  * @param {*} [options] Override http request option.
2534
2539
  * @throws {RequiredError}
2535
2540
  */
2536
- quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2541
+ quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2537
2542
  return __awaiter(this, void 0, void 0, function* () {
2538
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
2543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options);
2539
2544
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2540
2545
  });
2541
2546
  },
@@ -2621,14 +2626,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2621
2626
  * @param {number} [height] optional block height, defaults to current tip
2622
2627
  * @param {string} [asset] the asset used to repay the loan
2623
2628
  * @param {number} [amount] the asset amount in 1e8 decimals
2629
+ * @param {string} [fromAddress] the address that is paying off the loan
2624
2630
  * @param {string} [loanAsset] the collateral asset of the loan
2625
2631
  * @param {string} [loanOwner] the owner of the loan collateral
2626
2632
  * @param {string} [minOut] the minimum amount of the target asset to accept
2627
2633
  * @param {*} [options] Override http request option.
2628
2634
  * @throws {RequiredError}
2629
2635
  */
2630
- quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2631
- return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
2636
+ quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2637
+ return localVarFp.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
2632
2638
  },
2633
2639
  /**
2634
2640
  * Provide a quote estimate for the provided loan open.
@@ -2700,6 +2706,7 @@ class QuoteApi extends BaseAPI {
2700
2706
  * @param {number} [height] optional block height, defaults to current tip
2701
2707
  * @param {string} [asset] the asset used to repay the loan
2702
2708
  * @param {number} [amount] the asset amount in 1e8 decimals
2709
+ * @param {string} [fromAddress] the address that is paying off the loan
2703
2710
  * @param {string} [loanAsset] the collateral asset of the loan
2704
2711
  * @param {string} [loanOwner] the owner of the loan collateral
2705
2712
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -2707,8 +2714,8 @@ class QuoteApi extends BaseAPI {
2707
2714
  * @throws {RequiredError}
2708
2715
  * @memberof QuoteApi
2709
2716
  */
2710
- quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2711
- return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
2717
+ quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2718
+ return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
2712
2719
  }
2713
2720
  /**
2714
2721
  * Provide a quote estimate for the provided loan open.
@@ -3976,7 +3983,7 @@ class VaultsApi extends BaseAPI {
3976
3983
  * Thornode API
3977
3984
  * Thornode REST API.
3978
3985
  *
3979
- * The version of the OpenAPI document: 1.109.0
3986
+ * The version of the OpenAPI document: 1.110.0
3980
3987
  * Contact: devs@thorchain.org
3981
3988
  *
3982
3989
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).