@xchainjs/xchain-thornode 0.3.0 → 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.
- package/lib/generated/thornodeApi/api.d.ts +41 -25
- 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 +15 -8
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +15 -8
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -2286,13 +2286,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2286
2286
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2287
2287
|
* @param {string} [asset] the asset used to repay the loan
|
|
2288
2288
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2289
|
+
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2289
2290
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2290
2291
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2291
2292
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2292
2293
|
* @param {*} [options] Override http request option.
|
|
2293
2294
|
* @throws {RequiredError}
|
|
2294
2295
|
*/
|
|
2295
|
-
quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2296
|
+
quoteloanclose: (height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2296
2297
|
const localVarPath = `/thorchain/quote/loan/close`;
|
|
2297
2298
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2298
2299
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2312,6 +2313,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2312
2313
|
if (amount !== undefined) {
|
|
2313
2314
|
localVarQueryParameter['amount'] = amount;
|
|
2314
2315
|
}
|
|
2316
|
+
if (fromAddress !== undefined) {
|
|
2317
|
+
localVarQueryParameter['from_address'] = fromAddress;
|
|
2318
|
+
}
|
|
2315
2319
|
if (loanAsset !== undefined) {
|
|
2316
2320
|
localVarQueryParameter['loan_asset'] = loanAsset;
|
|
2317
2321
|
}
|
|
@@ -2535,15 +2539,16 @@ const QuoteApiFp = function (configuration) {
|
|
|
2535
2539
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2536
2540
|
* @param {string} [asset] the asset used to repay the loan
|
|
2537
2541
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2542
|
+
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2538
2543
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2539
2544
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2540
2545
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2541
2546
|
* @param {*} [options] Override http request option.
|
|
2542
2547
|
* @throws {RequiredError}
|
|
2543
2548
|
*/
|
|
2544
|
-
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2549
|
+
quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
|
|
2545
2550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2546
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
|
|
2551
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options);
|
|
2547
2552
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2548
2553
|
});
|
|
2549
2554
|
},
|
|
@@ -2629,14 +2634,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2629
2634
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2630
2635
|
* @param {string} [asset] the asset used to repay the loan
|
|
2631
2636
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2637
|
+
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2632
2638
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2633
2639
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2634
2640
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2635
2641
|
* @param {*} [options] Override http request option.
|
|
2636
2642
|
* @throws {RequiredError}
|
|
2637
2643
|
*/
|
|
2638
|
-
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2639
|
-
return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2644
|
+
quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
|
|
2645
|
+
return localVarFp.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2640
2646
|
},
|
|
2641
2647
|
/**
|
|
2642
2648
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2708,6 +2714,7 @@ class QuoteApi extends BaseAPI {
|
|
|
2708
2714
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2709
2715
|
* @param {string} [asset] the asset used to repay the loan
|
|
2710
2716
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2717
|
+
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2711
2718
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2712
2719
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2713
2720
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
@@ -2715,8 +2722,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2715
2722
|
* @throws {RequiredError}
|
|
2716
2723
|
* @memberof QuoteApi
|
|
2717
2724
|
*/
|
|
2718
|
-
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2719
|
-
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2725
|
+
quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
|
|
2726
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2720
2727
|
}
|
|
2721
2728
|
/**
|
|
2722
2729
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -3984,7 +3991,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3984
3991
|
* Thornode API
|
|
3985
3992
|
* Thornode REST API.
|
|
3986
3993
|
*
|
|
3987
|
-
* The version of the OpenAPI document: 1.
|
|
3994
|
+
* The version of the OpenAPI document: 1.110.0
|
|
3988
3995
|
* Contact: devs@thorchain.org
|
|
3989
3996
|
*
|
|
3990
3997
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|