@xchainjs/xchain-thornode 0.3.2 → 0.3.3

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.110.0
5
+ * The version of the OpenAPI document: 1.113.1
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -115,6 +115,12 @@ export interface BaseQuoteResponse {
115
115
  * @memberof BaseQuoteResponse
116
116
  */
117
117
  'dust_threshold'?: string;
118
+ /**
119
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
120
+ * @type {string}
121
+ * @memberof BaseQuoteResponse
122
+ */
123
+ 'recommended_min_amount_in'?: string;
118
124
  }
119
125
  /**
120
126
  *
@@ -1489,7 +1495,7 @@ export interface QuoteLoanCloseResponse {
1489
1495
  * @type {string}
1490
1496
  * @memberof QuoteLoanCloseResponse
1491
1497
  */
1492
- 'inbound_address': string;
1498
+ 'inbound_address'?: string;
1493
1499
  /**
1494
1500
  * the approximate number of source chain blocks required before processing
1495
1501
  * @type {number}
@@ -1556,6 +1562,12 @@ export interface QuoteLoanCloseResponse {
1556
1562
  * @memberof QuoteLoanCloseResponse
1557
1563
  */
1558
1564
  'dust_threshold'?: string;
1565
+ /**
1566
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1567
+ * @type {string}
1568
+ * @memberof QuoteLoanCloseResponse
1569
+ */
1570
+ 'recommended_min_amount_in'?: string;
1559
1571
  /**
1560
1572
  * generated memo for the loan close
1561
1573
  * @type {string}
@@ -1592,7 +1604,7 @@ export interface QuoteLoanOpenResponse {
1592
1604
  * @type {string}
1593
1605
  * @memberof QuoteLoanOpenResponse
1594
1606
  */
1595
- 'inbound_address': string;
1607
+ 'inbound_address'?: string;
1596
1608
  /**
1597
1609
  * the approximate number of source chain blocks required before processing
1598
1610
  * @type {number}
@@ -1659,6 +1671,12 @@ export interface QuoteLoanOpenResponse {
1659
1671
  * @memberof QuoteLoanOpenResponse
1660
1672
  */
1661
1673
  'dust_threshold'?: string;
1674
+ /**
1675
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1676
+ * @type {string}
1677
+ * @memberof QuoteLoanOpenResponse
1678
+ */
1679
+ 'recommended_min_amount_in'?: string;
1662
1680
  /**
1663
1681
  * generated memo for the loan open
1664
1682
  * @type {string}
@@ -1768,6 +1786,12 @@ export interface QuoteSaverDepositResponse {
1768
1786
  * @memberof QuoteSaverDepositResponse
1769
1787
  */
1770
1788
  'dust_threshold'?: string;
1789
+ /**
1790
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1791
+ * @type {string}
1792
+ * @memberof QuoteSaverDepositResponse
1793
+ */
1794
+ 'recommended_min_amount_in'?: string;
1771
1795
  /**
1772
1796
  * generated memo for the deposit
1773
1797
  * @type {string}
@@ -1775,17 +1799,17 @@ export interface QuoteSaverDepositResponse {
1775
1799
  */
1776
1800
  'memo': string;
1777
1801
  /**
1778
- * migrate to expected_amount_deposit (will be deprecated in v1.104)
1802
+ * same as expected_amount_deposit, to be deprecated in favour of expected_amount_deposit
1779
1803
  * @type {string}
1780
1804
  * @memberof QuoteSaverDepositResponse
1781
1805
  */
1782
- 'expected_amount_out': string;
1806
+ 'expected_amount_out'?: string;
1783
1807
  /**
1784
1808
  * the amount of the target asset the user can expect to deposit after fees
1785
1809
  * @type {string}
1786
1810
  * @memberof QuoteSaverDepositResponse
1787
1811
  */
1788
- 'expected_amount_deposit'?: string;
1812
+ 'expected_amount_deposit': string;
1789
1813
  }
1790
1814
  /**
1791
1815
  *
@@ -1865,6 +1889,12 @@ export interface QuoteSaverWithdrawResponse {
1865
1889
  * @memberof QuoteSaverWithdrawResponse
1866
1890
  */
1867
1891
  'dust_threshold'?: string;
1892
+ /**
1893
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1894
+ * @type {string}
1895
+ * @memberof QuoteSaverWithdrawResponse
1896
+ */
1897
+ 'recommended_min_amount_in'?: string;
1868
1898
  /**
1869
1899
  * generated memo for the withdraw, the client can use this OR send the dust amount
1870
1900
  * @type {string}
@@ -1895,7 +1925,7 @@ export interface QuoteSwapResponse {
1895
1925
  * @type {string}
1896
1926
  * @memberof QuoteSwapResponse
1897
1927
  */
1898
- 'inbound_address': string;
1928
+ 'inbound_address'?: string;
1899
1929
  /**
1900
1930
  * the approximate number of source chain blocks required before processing
1901
1931
  * @type {number}
@@ -1962,6 +1992,12 @@ export interface QuoteSwapResponse {
1962
1992
  * @memberof QuoteSwapResponse
1963
1993
  */
1964
1994
  'dust_threshold'?: string;
1995
+ /**
1996
+ * The recommended minimum inbound amount for this transaction type & inbound asset. Sending less than this amount could result in failed refunds.
1997
+ * @type {string}
1998
+ * @memberof QuoteSwapResponse
1999
+ */
2000
+ 'recommended_min_amount_in'?: string;
1965
2001
  /**
1966
2002
  * generated memo for the swap
1967
2003
  * @type {string}
@@ -2828,6 +2864,12 @@ export interface VaultPubkeysResponse {
2828
2864
  * @memberof VaultPubkeysResponse
2829
2865
  */
2830
2866
  'yggdrasil': Array<VaultInfo>;
2867
+ /**
2868
+ *
2869
+ * @type {Array<VaultInfo>}
2870
+ * @memberof VaultPubkeysResponse
2871
+ */
2872
+ 'inactive': Array<VaultInfo>;
2831
2873
  }
2832
2874
  /**
2833
2875
  *
@@ -4045,14 +4087,13 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4045
4087
  * @param {number} [height] optional block height, defaults to current tip
4046
4088
  * @param {string} [asset] the asset used to repay the loan
4047
4089
  * @param {number} [amount] the asset amount in 1e8 decimals
4048
- * @param {string} [fromAddress] the address that is paying off the loan
4049
4090
  * @param {string} [loanAsset] the collateral asset of the loan
4050
4091
  * @param {string} [loanOwner] the owner of the loan collateral
4051
4092
  * @param {string} [minOut] the minimum amount of the target asset to accept
4052
4093
  * @param {*} [options] Override http request option.
4053
4094
  * @throws {RequiredError}
4054
4095
  */
4055
- quoteloanclose: (height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4096
+ quoteloanclose: (height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4056
4097
  /**
4057
4098
  * Provide a quote estimate for the provided loan open.
4058
4099
  * @param {number} [height] optional block height, defaults to current tip
@@ -4112,14 +4153,13 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4112
4153
  * @param {number} [height] optional block height, defaults to current tip
4113
4154
  * @param {string} [asset] the asset used to repay the loan
4114
4155
  * @param {number} [amount] the asset amount in 1e8 decimals
4115
- * @param {string} [fromAddress] the address that is paying off the loan
4116
4156
  * @param {string} [loanAsset] the collateral asset of the loan
4117
4157
  * @param {string} [loanOwner] the owner of the loan collateral
4118
4158
  * @param {string} [minOut] the minimum amount of the target asset to accept
4119
4159
  * @param {*} [options] Override http request option.
4120
4160
  * @throws {RequiredError}
4121
4161
  */
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>>;
4162
+ quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4123
4163
  /**
4124
4164
  * Provide a quote estimate for the provided loan open.
4125
4165
  * @param {number} [height] optional block height, defaults to current tip
@@ -4179,14 +4219,13 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4179
4219
  * @param {number} [height] optional block height, defaults to current tip
4180
4220
  * @param {string} [asset] the asset used to repay the loan
4181
4221
  * @param {number} [amount] the asset amount in 1e8 decimals
4182
- * @param {string} [fromAddress] the address that is paying off the loan
4183
4222
  * @param {string} [loanAsset] the collateral asset of the loan
4184
4223
  * @param {string} [loanOwner] the owner of the loan collateral
4185
4224
  * @param {string} [minOut] the minimum amount of the target asset to accept
4186
4225
  * @param {*} [options] Override http request option.
4187
4226
  * @throws {RequiredError}
4188
4227
  */
4189
- quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4228
+ quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4190
4229
  /**
4191
4230
  * Provide a quote estimate for the provided loan open.
4192
4231
  * @param {number} [height] optional block height, defaults to current tip
@@ -4248,7 +4287,6 @@ export declare class QuoteApi extends BaseAPI {
4248
4287
  * @param {number} [height] optional block height, defaults to current tip
4249
4288
  * @param {string} [asset] the asset used to repay the loan
4250
4289
  * @param {number} [amount] the asset amount in 1e8 decimals
4251
- * @param {string} [fromAddress] the address that is paying off the loan
4252
4290
  * @param {string} [loanAsset] the collateral asset of the loan
4253
4291
  * @param {string} [loanOwner] the owner of the loan collateral
4254
4292
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -4256,7 +4294,7 @@ export declare class QuoteApi extends BaseAPI {
4256
4294
  * @throws {RequiredError}
4257
4295
  * @memberof QuoteApi
4258
4296
  */
4259
- quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4297
+ quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4260
4298
  /**
4261
4299
  * Provide a quote estimate for the provided loan open.
4262
4300
  * @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.110.0
5
+ * The version of the OpenAPI document: 1.113.1
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.110.0
5
+ * The version of the OpenAPI document: 1.113.1
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.110.0
5
+ * The version of the OpenAPI document: 1.113.1
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.110.0
5
+ * The version of the OpenAPI document: 1.113.1
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,14 +2278,13 @@ 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
2282
2281
  * @param {string} [loanAsset] the collateral asset of the loan
2283
2282
  * @param {string} [loanOwner] the owner of the loan collateral
2284
2283
  * @param {string} [minOut] the minimum amount of the target asset to accept
2285
2284
  * @param {*} [options] Override http request option.
2286
2285
  * @throws {RequiredError}
2287
2286
  */
2288
- quoteloanclose: (height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2287
+ quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2289
2288
  const localVarPath = `/thorchain/quote/loan/close`;
2290
2289
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2291
2290
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2305,9 +2304,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2305
2304
  if (amount !== undefined) {
2306
2305
  localVarQueryParameter['amount'] = amount;
2307
2306
  }
2308
- if (fromAddress !== undefined) {
2309
- localVarQueryParameter['from_address'] = fromAddress;
2310
- }
2311
2307
  if (loanAsset !== undefined) {
2312
2308
  localVarQueryParameter['loan_asset'] = loanAsset;
2313
2309
  }
@@ -2531,16 +2527,15 @@ const QuoteApiFp = function (configuration) {
2531
2527
  * @param {number} [height] optional block height, defaults to current tip
2532
2528
  * @param {string} [asset] the asset used to repay the loan
2533
2529
  * @param {number} [amount] the asset amount in 1e8 decimals
2534
- * @param {string} [fromAddress] the address that is paying off the loan
2535
2530
  * @param {string} [loanAsset] the collateral asset of the loan
2536
2531
  * @param {string} [loanOwner] the owner of the loan collateral
2537
2532
  * @param {string} [minOut] the minimum amount of the target asset to accept
2538
2533
  * @param {*} [options] Override http request option.
2539
2534
  * @throws {RequiredError}
2540
2535
  */
2541
- quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2536
+ quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2542
2537
  return __awaiter(this, void 0, void 0, function* () {
2543
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options);
2538
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
2544
2539
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2545
2540
  });
2546
2541
  },
@@ -2626,15 +2621,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2626
2621
  * @param {number} [height] optional block height, defaults to current tip
2627
2622
  * @param {string} [asset] the asset used to repay the loan
2628
2623
  * @param {number} [amount] the asset amount in 1e8 decimals
2629
- * @param {string} [fromAddress] the address that is paying off the loan
2630
2624
  * @param {string} [loanAsset] the collateral asset of the loan
2631
2625
  * @param {string} [loanOwner] the owner of the loan collateral
2632
2626
  * @param {string} [minOut] the minimum amount of the target asset to accept
2633
2627
  * @param {*} [options] Override http request option.
2634
2628
  * @throws {RequiredError}
2635
2629
  */
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));
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));
2638
2632
  },
2639
2633
  /**
2640
2634
  * Provide a quote estimate for the provided loan open.
@@ -2706,7 +2700,6 @@ class QuoteApi extends BaseAPI {
2706
2700
  * @param {number} [height] optional block height, defaults to current tip
2707
2701
  * @param {string} [asset] the asset used to repay the loan
2708
2702
  * @param {number} [amount] the asset amount in 1e8 decimals
2709
- * @param {string} [fromAddress] the address that is paying off the loan
2710
2703
  * @param {string} [loanAsset] the collateral asset of the loan
2711
2704
  * @param {string} [loanOwner] the owner of the loan collateral
2712
2705
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -2714,8 +2707,8 @@ class QuoteApi extends BaseAPI {
2714
2707
  * @throws {RequiredError}
2715
2708
  * @memberof QuoteApi
2716
2709
  */
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));
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));
2719
2712
  }
2720
2713
  /**
2721
2714
  * Provide a quote estimate for the provided loan open.
@@ -3983,7 +3976,7 @@ class VaultsApi extends BaseAPI {
3983
3976
  * Thornode API
3984
3977
  * Thornode REST API.
3985
3978
  *
3986
- * The version of the OpenAPI document: 1.110.0
3979
+ * The version of the OpenAPI document: 1.113.1
3987
3980
  * Contact: devs@thorchain.org
3988
3981
  *
3989
3982
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).