@xchainjs/xchain-thornode 0.3.5 → 0.3.6
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 +265 -61
- 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 +166 -41
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +166 -41
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1852,6 +1852,66 @@ class POLApi extends BaseAPI {
|
|
|
1852
1852
|
*/
|
|
1853
1853
|
const PoolsApiAxiosParamCreator = function (configuration) {
|
|
1854
1854
|
return {
|
|
1855
|
+
/**
|
|
1856
|
+
* Returns the pool information for the provided derived asset.
|
|
1857
|
+
* @param {string} asset
|
|
1858
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1859
|
+
* @param {*} [options] Override http request option.
|
|
1860
|
+
* @throws {RequiredError}
|
|
1861
|
+
*/
|
|
1862
|
+
dpool: (asset, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1863
|
+
// verify required parameter 'asset' is not null or undefined
|
|
1864
|
+
assertParamExists('dpool', 'asset', asset);
|
|
1865
|
+
const localVarPath = `/thorchain/dpool/{asset}`
|
|
1866
|
+
.replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
|
|
1867
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1868
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1869
|
+
let baseOptions;
|
|
1870
|
+
if (configuration) {
|
|
1871
|
+
baseOptions = configuration.baseOptions;
|
|
1872
|
+
}
|
|
1873
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1874
|
+
const localVarHeaderParameter = {};
|
|
1875
|
+
const localVarQueryParameter = {};
|
|
1876
|
+
if (height !== undefined) {
|
|
1877
|
+
localVarQueryParameter['height'] = height;
|
|
1878
|
+
}
|
|
1879
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1880
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1881
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1882
|
+
return {
|
|
1883
|
+
url: toPathString(localVarUrlObj),
|
|
1884
|
+
options: localVarRequestOptions,
|
|
1885
|
+
};
|
|
1886
|
+
}),
|
|
1887
|
+
/**
|
|
1888
|
+
* Returns the pool information for all derived assets.
|
|
1889
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1890
|
+
* @param {*} [options] Override http request option.
|
|
1891
|
+
* @throws {RequiredError}
|
|
1892
|
+
*/
|
|
1893
|
+
dpools: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1894
|
+
const localVarPath = `/thorchain/dpools`;
|
|
1895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1896
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1897
|
+
let baseOptions;
|
|
1898
|
+
if (configuration) {
|
|
1899
|
+
baseOptions = configuration.baseOptions;
|
|
1900
|
+
}
|
|
1901
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1902
|
+
const localVarHeaderParameter = {};
|
|
1903
|
+
const localVarQueryParameter = {};
|
|
1904
|
+
if (height !== undefined) {
|
|
1905
|
+
localVarQueryParameter['height'] = height;
|
|
1906
|
+
}
|
|
1907
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1909
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1910
|
+
return {
|
|
1911
|
+
url: toPathString(localVarUrlObj),
|
|
1912
|
+
options: localVarRequestOptions,
|
|
1913
|
+
};
|
|
1914
|
+
}),
|
|
1855
1915
|
/**
|
|
1856
1916
|
* Returns the pool information for the provided asset.
|
|
1857
1917
|
* @param {string} asset
|
|
@@ -1921,6 +1981,31 @@ const PoolsApiAxiosParamCreator = function (configuration) {
|
|
|
1921
1981
|
const PoolsApiFp = function (configuration) {
|
|
1922
1982
|
const localVarAxiosParamCreator = PoolsApiAxiosParamCreator(configuration);
|
|
1923
1983
|
return {
|
|
1984
|
+
/**
|
|
1985
|
+
* Returns the pool information for the provided derived asset.
|
|
1986
|
+
* @param {string} asset
|
|
1987
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
dpool(asset, height, options) {
|
|
1992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1993
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dpool(asset, height, options);
|
|
1994
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
1995
|
+
});
|
|
1996
|
+
},
|
|
1997
|
+
/**
|
|
1998
|
+
* Returns the pool information for all derived assets.
|
|
1999
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
dpools(height, options) {
|
|
2004
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dpools(height, options);
|
|
2006
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2007
|
+
});
|
|
2008
|
+
},
|
|
1924
2009
|
/**
|
|
1925
2010
|
* Returns the pool information for the provided asset.
|
|
1926
2011
|
* @param {string} asset
|
|
@@ -1955,6 +2040,25 @@ const PoolsApiFp = function (configuration) {
|
|
|
1955
2040
|
const PoolsApiFactory = function (configuration, basePath, axios) {
|
|
1956
2041
|
const localVarFp = PoolsApiFp(configuration);
|
|
1957
2042
|
return {
|
|
2043
|
+
/**
|
|
2044
|
+
* Returns the pool information for the provided derived asset.
|
|
2045
|
+
* @param {string} asset
|
|
2046
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
*/
|
|
2050
|
+
dpool(asset, height, options) {
|
|
2051
|
+
return localVarFp.dpool(asset, height, options).then((request) => request(axios, basePath));
|
|
2052
|
+
},
|
|
2053
|
+
/**
|
|
2054
|
+
* Returns the pool information for all derived assets.
|
|
2055
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2056
|
+
* @param {*} [options] Override http request option.
|
|
2057
|
+
* @throws {RequiredError}
|
|
2058
|
+
*/
|
|
2059
|
+
dpools(height, options) {
|
|
2060
|
+
return localVarFp.dpools(height, options).then((request) => request(axios, basePath));
|
|
2061
|
+
},
|
|
1958
2062
|
/**
|
|
1959
2063
|
* Returns the pool information for the provided asset.
|
|
1960
2064
|
* @param {string} asset
|
|
@@ -1983,6 +2087,27 @@ const PoolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1983
2087
|
* @extends {BaseAPI}
|
|
1984
2088
|
*/
|
|
1985
2089
|
class PoolsApi extends BaseAPI {
|
|
2090
|
+
/**
|
|
2091
|
+
* Returns the pool information for the provided derived asset.
|
|
2092
|
+
* @param {string} asset
|
|
2093
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2094
|
+
* @param {*} [options] Override http request option.
|
|
2095
|
+
* @throws {RequiredError}
|
|
2096
|
+
* @memberof PoolsApi
|
|
2097
|
+
*/
|
|
2098
|
+
dpool(asset, height, options) {
|
|
2099
|
+
return PoolsApiFp(this.configuration).dpool(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Returns the pool information for all derived assets.
|
|
2103
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2104
|
+
* @param {*} [options] Override http request option.
|
|
2105
|
+
* @throws {RequiredError}
|
|
2106
|
+
* @memberof PoolsApi
|
|
2107
|
+
*/
|
|
2108
|
+
dpools(height, options) {
|
|
2109
|
+
return PoolsApiFp(this.configuration).dpools(height, options).then((request) => request(this.axios, this.basePath));
|
|
2110
|
+
}
|
|
1986
2111
|
/**
|
|
1987
2112
|
* Returns the pool information for the provided asset.
|
|
1988
2113
|
* @param {string} asset
|
|
@@ -2284,15 +2409,15 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2284
2409
|
/**
|
|
2285
2410
|
* Provide a quote estimate for the provided loan close.
|
|
2286
2411
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2287
|
-
* @param {string} [
|
|
2412
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2288
2413
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2289
|
-
* @param {string} [
|
|
2414
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
2290
2415
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2291
2416
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2292
2417
|
* @param {*} [options] Override http request option.
|
|
2293
2418
|
* @throws {RequiredError}
|
|
2294
2419
|
*/
|
|
2295
|
-
quoteloanclose: (height,
|
|
2420
|
+
quoteloanclose: (height, fromAsset, amount, toAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2296
2421
|
const localVarPath = `/thorchain/quote/loan/close`;
|
|
2297
2422
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2298
2423
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2306,14 +2431,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2306
2431
|
if (height !== undefined) {
|
|
2307
2432
|
localVarQueryParameter['height'] = height;
|
|
2308
2433
|
}
|
|
2309
|
-
if (
|
|
2310
|
-
localVarQueryParameter['
|
|
2434
|
+
if (fromAsset !== undefined) {
|
|
2435
|
+
localVarQueryParameter['from_asset'] = fromAsset;
|
|
2311
2436
|
}
|
|
2312
2437
|
if (amount !== undefined) {
|
|
2313
2438
|
localVarQueryParameter['amount'] = amount;
|
|
2314
2439
|
}
|
|
2315
|
-
if (
|
|
2316
|
-
localVarQueryParameter['
|
|
2440
|
+
if (toAsset !== undefined) {
|
|
2441
|
+
localVarQueryParameter['to_asset'] = toAsset;
|
|
2317
2442
|
}
|
|
2318
2443
|
if (loanOwner !== undefined) {
|
|
2319
2444
|
localVarQueryParameter['loan_owner'] = loanOwner;
|
|
@@ -2332,9 +2457,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2332
2457
|
/**
|
|
2333
2458
|
* Provide a quote estimate for the provided loan open.
|
|
2334
2459
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2335
|
-
* @param {string} [
|
|
2460
|
+
* @param {string} [fromAsset] the collateral asset
|
|
2336
2461
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2337
|
-
* @param {string} [
|
|
2462
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2338
2463
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2339
2464
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2340
2465
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2342,7 +2467,7 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2342
2467
|
* @param {*} [options] Override http request option.
|
|
2343
2468
|
* @throws {RequiredError}
|
|
2344
2469
|
*/
|
|
2345
|
-
quoteloanopen: (height,
|
|
2470
|
+
quoteloanopen: (height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2346
2471
|
const localVarPath = `/thorchain/quote/loan/open`;
|
|
2347
2472
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2348
2473
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2356,14 +2481,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2356
2481
|
if (height !== undefined) {
|
|
2357
2482
|
localVarQueryParameter['height'] = height;
|
|
2358
2483
|
}
|
|
2359
|
-
if (
|
|
2360
|
-
localVarQueryParameter['
|
|
2484
|
+
if (fromAsset !== undefined) {
|
|
2485
|
+
localVarQueryParameter['from_asset'] = fromAsset;
|
|
2361
2486
|
}
|
|
2362
2487
|
if (amount !== undefined) {
|
|
2363
2488
|
localVarQueryParameter['amount'] = amount;
|
|
2364
2489
|
}
|
|
2365
|
-
if (
|
|
2366
|
-
localVarQueryParameter['
|
|
2490
|
+
if (toAsset !== undefined) {
|
|
2491
|
+
localVarQueryParameter['to_asset'] = toAsset;
|
|
2367
2492
|
}
|
|
2368
2493
|
if (destination !== undefined) {
|
|
2369
2494
|
localVarQueryParameter['destination'] = destination;
|
|
@@ -2541,26 +2666,26 @@ const QuoteApiFp = function (configuration) {
|
|
|
2541
2666
|
/**
|
|
2542
2667
|
* Provide a quote estimate for the provided loan close.
|
|
2543
2668
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2544
|
-
* @param {string} [
|
|
2669
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2545
2670
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2546
|
-
* @param {string} [
|
|
2671
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
2547
2672
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2548
2673
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2549
2674
|
* @param {*} [options] Override http request option.
|
|
2550
2675
|
* @throws {RequiredError}
|
|
2551
2676
|
*/
|
|
2552
|
-
quoteloanclose(height,
|
|
2677
|
+
quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options) {
|
|
2553
2678
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2554
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height,
|
|
2679
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options);
|
|
2555
2680
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2556
2681
|
});
|
|
2557
2682
|
},
|
|
2558
2683
|
/**
|
|
2559
2684
|
* Provide a quote estimate for the provided loan open.
|
|
2560
2685
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2561
|
-
* @param {string} [
|
|
2686
|
+
* @param {string} [fromAsset] the collateral asset
|
|
2562
2687
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2563
|
-
* @param {string} [
|
|
2688
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2564
2689
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2565
2690
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2566
2691
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2568,9 +2693,9 @@ const QuoteApiFp = function (configuration) {
|
|
|
2568
2693
|
* @param {*} [options] Override http request option.
|
|
2569
2694
|
* @throws {RequiredError}
|
|
2570
2695
|
*/
|
|
2571
|
-
quoteloanopen(height,
|
|
2696
|
+
quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2572
2697
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanopen(height,
|
|
2698
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options);
|
|
2574
2699
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2575
2700
|
});
|
|
2576
2701
|
},
|
|
@@ -2637,23 +2762,23 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2637
2762
|
/**
|
|
2638
2763
|
* Provide a quote estimate for the provided loan close.
|
|
2639
2764
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2640
|
-
* @param {string} [
|
|
2765
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2641
2766
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2642
|
-
* @param {string} [
|
|
2767
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
2643
2768
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2644
2769
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2645
2770
|
* @param {*} [options] Override http request option.
|
|
2646
2771
|
* @throws {RequiredError}
|
|
2647
2772
|
*/
|
|
2648
|
-
quoteloanclose(height,
|
|
2649
|
-
return localVarFp.quoteloanclose(height,
|
|
2773
|
+
quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options) {
|
|
2774
|
+
return localVarFp.quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2650
2775
|
},
|
|
2651
2776
|
/**
|
|
2652
2777
|
* Provide a quote estimate for the provided loan open.
|
|
2653
2778
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2654
|
-
* @param {string} [
|
|
2779
|
+
* @param {string} [fromAsset] the collateral asset
|
|
2655
2780
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2656
|
-
* @param {string} [
|
|
2781
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2657
2782
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2658
2783
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2659
2784
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2661,8 +2786,8 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2661
2786
|
* @param {*} [options] Override http request option.
|
|
2662
2787
|
* @throws {RequiredError}
|
|
2663
2788
|
*/
|
|
2664
|
-
quoteloanopen(height,
|
|
2665
|
-
return localVarFp.quoteloanopen(height,
|
|
2789
|
+
quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2790
|
+
return localVarFp.quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2666
2791
|
},
|
|
2667
2792
|
/**
|
|
2668
2793
|
* Provide a quote estimate for the provided saver deposit.
|
|
@@ -2718,24 +2843,24 @@ class QuoteApi extends BaseAPI {
|
|
|
2718
2843
|
/**
|
|
2719
2844
|
* Provide a quote estimate for the provided loan close.
|
|
2720
2845
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2721
|
-
* @param {string} [
|
|
2846
|
+
* @param {string} [fromAsset] the asset used to repay the loan
|
|
2722
2847
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2723
|
-
* @param {string} [
|
|
2848
|
+
* @param {string} [toAsset] the collateral asset of the loan
|
|
2724
2849
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2725
2850
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2726
2851
|
* @param {*} [options] Override http request option.
|
|
2727
2852
|
* @throws {RequiredError}
|
|
2728
2853
|
* @memberof QuoteApi
|
|
2729
2854
|
*/
|
|
2730
|
-
quoteloanclose(height,
|
|
2731
|
-
return QuoteApiFp(this.configuration).quoteloanclose(height,
|
|
2855
|
+
quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options) {
|
|
2856
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, fromAsset, amount, toAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2732
2857
|
}
|
|
2733
2858
|
/**
|
|
2734
2859
|
* Provide a quote estimate for the provided loan open.
|
|
2735
2860
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2736
|
-
* @param {string} [
|
|
2861
|
+
* @param {string} [fromAsset] the collateral asset
|
|
2737
2862
|
* @param {number} [amount] the collateral asset amount in 1e8 decimals
|
|
2738
|
-
* @param {string} [
|
|
2863
|
+
* @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
|
|
2739
2864
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2740
2865
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2741
2866
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2744,8 +2869,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2744
2869
|
* @throws {RequiredError}
|
|
2745
2870
|
* @memberof QuoteApi
|
|
2746
2871
|
*/
|
|
2747
|
-
quoteloanopen(height,
|
|
2748
|
-
return QuoteApiFp(this.configuration).quoteloanopen(height,
|
|
2872
|
+
quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
|
|
2873
|
+
return QuoteApiFp(this.configuration).quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2749
2874
|
}
|
|
2750
2875
|
/**
|
|
2751
2876
|
* Provide a quote estimate for the provided saver deposit.
|
|
@@ -3621,7 +3746,7 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
3621
3746
|
txStages: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3622
3747
|
// verify required parameter 'hash' is not null or undefined
|
|
3623
3748
|
assertParamExists('txStages', 'hash', hash);
|
|
3624
|
-
const localVarPath = `/thorchain/
|
|
3749
|
+
const localVarPath = `/thorchain/tx/stages/{hash}`
|
|
3625
3750
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
3626
3751
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3627
3752
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3653,7 +3778,7 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
3653
3778
|
txStatus: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3654
3779
|
// verify required parameter 'hash' is not null or undefined
|
|
3655
3780
|
assertParamExists('txStatus', 'hash', hash);
|
|
3656
|
-
const localVarPath = `/thorchain/
|
|
3781
|
+
const localVarPath = `/thorchain/tx/status/{hash}`
|
|
3657
3782
|
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
3658
3783
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3659
3784
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4157,7 +4282,7 @@ class VaultsApi extends BaseAPI {
|
|
|
4157
4282
|
* Thornode API
|
|
4158
4283
|
* Thornode REST API.
|
|
4159
4284
|
*
|
|
4160
|
-
* The version of the OpenAPI document: 1.
|
|
4285
|
+
* The version of the OpenAPI document: 1.120.1
|
|
4161
4286
|
* Contact: devs@thorchain.org
|
|
4162
4287
|
*
|
|
4163
4288
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|