@xchainjs/xchain-thornode 0.3.2 → 0.3.4
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 +335 -19
- 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 +189 -23
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +192 -22
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -2286,14 +2286,13 @@ 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
|
|
2290
2289
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2291
2290
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2292
2291
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2293
2292
|
* @param {*} [options] Override http request option.
|
|
2294
2293
|
* @throws {RequiredError}
|
|
2295
2294
|
*/
|
|
2296
|
-
quoteloanclose: (height, asset, amount,
|
|
2295
|
+
quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2297
2296
|
const localVarPath = `/thorchain/quote/loan/close`;
|
|
2298
2297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2299
2298
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2313,9 +2312,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2313
2312
|
if (amount !== undefined) {
|
|
2314
2313
|
localVarQueryParameter['amount'] = amount;
|
|
2315
2314
|
}
|
|
2316
|
-
if (fromAddress !== undefined) {
|
|
2317
|
-
localVarQueryParameter['from_address'] = fromAddress;
|
|
2318
|
-
}
|
|
2319
2315
|
if (loanAsset !== undefined) {
|
|
2320
2316
|
localVarQueryParameter['loan_asset'] = loanAsset;
|
|
2321
2317
|
}
|
|
@@ -2472,6 +2468,8 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2472
2468
|
* @param {string} [toAsset] the target asset
|
|
2473
2469
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2474
2470
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2471
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2472
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2475
2473
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2476
2474
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2477
2475
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2479,7 +2477,7 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2479
2477
|
* @param {*} [options] Override http request option.
|
|
2480
2478
|
* @throws {RequiredError}
|
|
2481
2479
|
*/
|
|
2482
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2480
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2483
2481
|
const localVarPath = `/thorchain/quote/swap`;
|
|
2484
2482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2485
2483
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2505,6 +2503,12 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2505
2503
|
if (destination !== undefined) {
|
|
2506
2504
|
localVarQueryParameter['destination'] = destination;
|
|
2507
2505
|
}
|
|
2506
|
+
if (streamingInterval !== undefined) {
|
|
2507
|
+
localVarQueryParameter['streaming_interval'] = streamingInterval;
|
|
2508
|
+
}
|
|
2509
|
+
if (streamingQuantity !== undefined) {
|
|
2510
|
+
localVarQueryParameter['streaming_quantity'] = streamingQuantity;
|
|
2511
|
+
}
|
|
2508
2512
|
if (fromAddress !== undefined) {
|
|
2509
2513
|
localVarQueryParameter['from_address'] = fromAddress;
|
|
2510
2514
|
}
|
|
@@ -2539,16 +2543,15 @@ const QuoteApiFp = function (configuration) {
|
|
|
2539
2543
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2540
2544
|
* @param {string} [asset] the asset used to repay the loan
|
|
2541
2545
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2542
|
-
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2543
2546
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2544
2547
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2545
2548
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2546
2549
|
* @param {*} [options] Override http request option.
|
|
2547
2550
|
* @throws {RequiredError}
|
|
2548
2551
|
*/
|
|
2549
|
-
quoteloanclose(height, asset, amount,
|
|
2552
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2550
2553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2551
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount,
|
|
2554
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
|
|
2552
2555
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2553
2556
|
});
|
|
2554
2557
|
},
|
|
@@ -2607,6 +2610,8 @@ const QuoteApiFp = function (configuration) {
|
|
|
2607
2610
|
* @param {string} [toAsset] the target asset
|
|
2608
2611
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2609
2612
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2613
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2614
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2610
2615
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2611
2616
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2612
2617
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2614,9 +2619,9 @@ const QuoteApiFp = function (configuration) {
|
|
|
2614
2619
|
* @param {*} [options] Override http request option.
|
|
2615
2620
|
* @throws {RequiredError}
|
|
2616
2621
|
*/
|
|
2617
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2622
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2618
2623
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2619
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options);
|
|
2624
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options);
|
|
2620
2625
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
2621
2626
|
});
|
|
2622
2627
|
},
|
|
@@ -2634,15 +2639,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2634
2639
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2635
2640
|
* @param {string} [asset] the asset used to repay the loan
|
|
2636
2641
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2637
|
-
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2638
2642
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2639
2643
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2640
2644
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2641
2645
|
* @param {*} [options] Override http request option.
|
|
2642
2646
|
* @throws {RequiredError}
|
|
2643
2647
|
*/
|
|
2644
|
-
quoteloanclose(height, asset, amount,
|
|
2645
|
-
return localVarFp.quoteloanclose(height, asset, amount,
|
|
2648
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2649
|
+
return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2646
2650
|
},
|
|
2647
2651
|
/**
|
|
2648
2652
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2690,6 +2694,8 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2690
2694
|
* @param {string} [toAsset] the target asset
|
|
2691
2695
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2692
2696
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2697
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2698
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2693
2699
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2694
2700
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2695
2701
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2697,8 +2703,8 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2697
2703
|
* @param {*} [options] Override http request option.
|
|
2698
2704
|
* @throws {RequiredError}
|
|
2699
2705
|
*/
|
|
2700
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2701
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2706
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2707
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2702
2708
|
},
|
|
2703
2709
|
};
|
|
2704
2710
|
};
|
|
@@ -2714,7 +2720,6 @@ class QuoteApi extends BaseAPI {
|
|
|
2714
2720
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2715
2721
|
* @param {string} [asset] the asset used to repay the loan
|
|
2716
2722
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2717
|
-
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2718
2723
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2719
2724
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2720
2725
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
@@ -2722,8 +2727,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2722
2727
|
* @throws {RequiredError}
|
|
2723
2728
|
* @memberof QuoteApi
|
|
2724
2729
|
*/
|
|
2725
|
-
quoteloanclose(height, asset, amount,
|
|
2726
|
-
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount,
|
|
2730
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2731
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2727
2732
|
}
|
|
2728
2733
|
/**
|
|
2729
2734
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2774,6 +2779,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2774
2779
|
* @param {string} [toAsset] the target asset
|
|
2775
2780
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2776
2781
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2782
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2783
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2777
2784
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2778
2785
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2779
2786
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2782,8 +2789,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2782
2789
|
* @throws {RequiredError}
|
|
2783
2790
|
* @memberof QuoteApi
|
|
2784
2791
|
*/
|
|
2785
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2786
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2792
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2793
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2787
2794
|
}
|
|
2788
2795
|
}
|
|
2789
2796
|
/**
|
|
@@ -2959,6 +2966,165 @@ class SaversApi extends BaseAPI {
|
|
|
2959
2966
|
return SaversApiFp(this.configuration).savers(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
2960
2967
|
}
|
|
2961
2968
|
}
|
|
2969
|
+
/**
|
|
2970
|
+
* StreamingSwapApi - axios parameter creator
|
|
2971
|
+
* @export
|
|
2972
|
+
*/
|
|
2973
|
+
const StreamingSwapApiAxiosParamCreator = function (configuration) {
|
|
2974
|
+
return {
|
|
2975
|
+
/**
|
|
2976
|
+
* Returns the state of a streaming swap
|
|
2977
|
+
* @param {string} hash
|
|
2978
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2979
|
+
* @param {*} [options] Override http request option.
|
|
2980
|
+
* @throws {RequiredError}
|
|
2981
|
+
*/
|
|
2982
|
+
streamSwap: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2983
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2984
|
+
assertParamExists('streamSwap', 'hash', hash);
|
|
2985
|
+
const localVarPath = `/thorchain/swap/streaming/{hash}`
|
|
2986
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2987
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2988
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2989
|
+
let baseOptions;
|
|
2990
|
+
if (configuration) {
|
|
2991
|
+
baseOptions = configuration.baseOptions;
|
|
2992
|
+
}
|
|
2993
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2994
|
+
const localVarHeaderParameter = {};
|
|
2995
|
+
const localVarQueryParameter = {};
|
|
2996
|
+
if (height !== undefined) {
|
|
2997
|
+
localVarQueryParameter['height'] = height;
|
|
2998
|
+
}
|
|
2999
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3000
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3001
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3002
|
+
return {
|
|
3003
|
+
url: toPathString(localVarUrlObj),
|
|
3004
|
+
options: localVarRequestOptions,
|
|
3005
|
+
};
|
|
3006
|
+
}),
|
|
3007
|
+
/**
|
|
3008
|
+
* Returns the state of all streaming swaps
|
|
3009
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3010
|
+
* @param {*} [options] Override http request option.
|
|
3011
|
+
* @throws {RequiredError}
|
|
3012
|
+
*/
|
|
3013
|
+
streamSwaps: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3014
|
+
const localVarPath = `/thorchain/swaps/streaming`;
|
|
3015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3016
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3017
|
+
let baseOptions;
|
|
3018
|
+
if (configuration) {
|
|
3019
|
+
baseOptions = configuration.baseOptions;
|
|
3020
|
+
}
|
|
3021
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3022
|
+
const localVarHeaderParameter = {};
|
|
3023
|
+
const localVarQueryParameter = {};
|
|
3024
|
+
if (height !== undefined) {
|
|
3025
|
+
localVarQueryParameter['height'] = height;
|
|
3026
|
+
}
|
|
3027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3029
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3030
|
+
return {
|
|
3031
|
+
url: toPathString(localVarUrlObj),
|
|
3032
|
+
options: localVarRequestOptions,
|
|
3033
|
+
};
|
|
3034
|
+
}),
|
|
3035
|
+
};
|
|
3036
|
+
};
|
|
3037
|
+
/**
|
|
3038
|
+
* StreamingSwapApi - functional programming interface
|
|
3039
|
+
* @export
|
|
3040
|
+
*/
|
|
3041
|
+
const StreamingSwapApiFp = function (configuration) {
|
|
3042
|
+
const localVarAxiosParamCreator = StreamingSwapApiAxiosParamCreator(configuration);
|
|
3043
|
+
return {
|
|
3044
|
+
/**
|
|
3045
|
+
* Returns the state of a streaming swap
|
|
3046
|
+
* @param {string} hash
|
|
3047
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3048
|
+
* @param {*} [options] Override http request option.
|
|
3049
|
+
* @throws {RequiredError}
|
|
3050
|
+
*/
|
|
3051
|
+
streamSwap(hash, height, options) {
|
|
3052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3053
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.streamSwap(hash, height, options);
|
|
3054
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
3055
|
+
});
|
|
3056
|
+
},
|
|
3057
|
+
/**
|
|
3058
|
+
* Returns the state of all streaming swaps
|
|
3059
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3060
|
+
* @param {*} [options] Override http request option.
|
|
3061
|
+
* @throws {RequiredError}
|
|
3062
|
+
*/
|
|
3063
|
+
streamSwaps(height, options) {
|
|
3064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.streamSwaps(height, options);
|
|
3066
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default["default"], BASE_PATH, configuration);
|
|
3067
|
+
});
|
|
3068
|
+
},
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
/**
|
|
3072
|
+
* StreamingSwapApi - factory interface
|
|
3073
|
+
* @export
|
|
3074
|
+
*/
|
|
3075
|
+
const StreamingSwapApiFactory = function (configuration, basePath, axios) {
|
|
3076
|
+
const localVarFp = StreamingSwapApiFp(configuration);
|
|
3077
|
+
return {
|
|
3078
|
+
/**
|
|
3079
|
+
* Returns the state of a streaming swap
|
|
3080
|
+
* @param {string} hash
|
|
3081
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3082
|
+
* @param {*} [options] Override http request option.
|
|
3083
|
+
* @throws {RequiredError}
|
|
3084
|
+
*/
|
|
3085
|
+
streamSwap(hash, height, options) {
|
|
3086
|
+
return localVarFp.streamSwap(hash, height, options).then((request) => request(axios, basePath));
|
|
3087
|
+
},
|
|
3088
|
+
/**
|
|
3089
|
+
* Returns the state of all streaming swaps
|
|
3090
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3091
|
+
* @param {*} [options] Override http request option.
|
|
3092
|
+
* @throws {RequiredError}
|
|
3093
|
+
*/
|
|
3094
|
+
streamSwaps(height, options) {
|
|
3095
|
+
return localVarFp.streamSwaps(height, options).then((request) => request(axios, basePath));
|
|
3096
|
+
},
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
/**
|
|
3100
|
+
* StreamingSwapApi - object-oriented interface
|
|
3101
|
+
* @export
|
|
3102
|
+
* @class StreamingSwapApi
|
|
3103
|
+
* @extends {BaseAPI}
|
|
3104
|
+
*/
|
|
3105
|
+
class StreamingSwapApi extends BaseAPI {
|
|
3106
|
+
/**
|
|
3107
|
+
* Returns the state of a streaming swap
|
|
3108
|
+
* @param {string} hash
|
|
3109
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3110
|
+
* @param {*} [options] Override http request option.
|
|
3111
|
+
* @throws {RequiredError}
|
|
3112
|
+
* @memberof StreamingSwapApi
|
|
3113
|
+
*/
|
|
3114
|
+
streamSwap(hash, height, options) {
|
|
3115
|
+
return StreamingSwapApiFp(this.configuration).streamSwap(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* Returns the state of all streaming swaps
|
|
3119
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3120
|
+
* @param {*} [options] Override http request option.
|
|
3121
|
+
* @throws {RequiredError}
|
|
3122
|
+
* @memberof StreamingSwapApi
|
|
3123
|
+
*/
|
|
3124
|
+
streamSwaps(height, options) {
|
|
3125
|
+
return StreamingSwapApiFp(this.configuration).streamSwaps(height, options).then((request) => request(this.axios, this.basePath));
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
2962
3128
|
/**
|
|
2963
3129
|
* TSSApi - axios parameter creator
|
|
2964
3130
|
* @export
|
|
@@ -3991,7 +4157,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3991
4157
|
* Thornode API
|
|
3992
4158
|
* Thornode REST API.
|
|
3993
4159
|
*
|
|
3994
|
-
* The version of the OpenAPI document: 1.
|
|
4160
|
+
* The version of the OpenAPI document: 1.116.0
|
|
3995
4161
|
* Contact: devs@thorchain.org
|
|
3996
4162
|
*
|
|
3997
4163
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4077,6 +4243,10 @@ exports.SaversApi = SaversApi;
|
|
|
4077
4243
|
exports.SaversApiAxiosParamCreator = SaversApiAxiosParamCreator;
|
|
4078
4244
|
exports.SaversApiFactory = SaversApiFactory;
|
|
4079
4245
|
exports.SaversApiFp = SaversApiFp;
|
|
4246
|
+
exports.StreamingSwapApi = StreamingSwapApi;
|
|
4247
|
+
exports.StreamingSwapApiAxiosParamCreator = StreamingSwapApiAxiosParamCreator;
|
|
4248
|
+
exports.StreamingSwapApiFactory = StreamingSwapApiFactory;
|
|
4249
|
+
exports.StreamingSwapApiFp = StreamingSwapApiFp;
|
|
4080
4250
|
exports.THORNODE_API_9R_URL = THORNODE_API_9R_URL;
|
|
4081
4251
|
exports.TSSApi = TSSApi;
|
|
4082
4252
|
exports.TSSApiAxiosParamCreator = TSSApiAxiosParamCreator;
|