@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.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,
|
|
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
|
}
|
|
@@ -2464,6 +2460,8 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2464
2460
|
* @param {string} [toAsset] the target asset
|
|
2465
2461
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2466
2462
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2463
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2464
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2467
2465
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2468
2466
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2469
2467
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2471,7 +2469,7 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2471
2469
|
* @param {*} [options] Override http request option.
|
|
2472
2470
|
* @throws {RequiredError}
|
|
2473
2471
|
*/
|
|
2474
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2472
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2475
2473
|
const localVarPath = `/thorchain/quote/swap`;
|
|
2476
2474
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2477
2475
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2497,6 +2495,12 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2497
2495
|
if (destination !== undefined) {
|
|
2498
2496
|
localVarQueryParameter['destination'] = destination;
|
|
2499
2497
|
}
|
|
2498
|
+
if (streamingInterval !== undefined) {
|
|
2499
|
+
localVarQueryParameter['streaming_interval'] = streamingInterval;
|
|
2500
|
+
}
|
|
2501
|
+
if (streamingQuantity !== undefined) {
|
|
2502
|
+
localVarQueryParameter['streaming_quantity'] = streamingQuantity;
|
|
2503
|
+
}
|
|
2500
2504
|
if (fromAddress !== undefined) {
|
|
2501
2505
|
localVarQueryParameter['from_address'] = fromAddress;
|
|
2502
2506
|
}
|
|
@@ -2531,16 +2535,15 @@ const QuoteApiFp = function (configuration) {
|
|
|
2531
2535
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2532
2536
|
* @param {string} [asset] the asset used to repay the loan
|
|
2533
2537
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2534
|
-
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2535
2538
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2536
2539
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2537
2540
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2538
2541
|
* @param {*} [options] Override http request option.
|
|
2539
2542
|
* @throws {RequiredError}
|
|
2540
2543
|
*/
|
|
2541
|
-
quoteloanclose(height, asset, amount,
|
|
2544
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2542
2545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2543
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount,
|
|
2546
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
|
|
2544
2547
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2545
2548
|
});
|
|
2546
2549
|
},
|
|
@@ -2599,6 +2602,8 @@ const QuoteApiFp = function (configuration) {
|
|
|
2599
2602
|
* @param {string} [toAsset] the target asset
|
|
2600
2603
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2601
2604
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2605
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2606
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2602
2607
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2603
2608
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2604
2609
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2606,9 +2611,9 @@ const QuoteApiFp = function (configuration) {
|
|
|
2606
2611
|
* @param {*} [options] Override http request option.
|
|
2607
2612
|
* @throws {RequiredError}
|
|
2608
2613
|
*/
|
|
2609
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2614
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2610
2615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2611
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options);
|
|
2616
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options);
|
|
2612
2617
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2613
2618
|
});
|
|
2614
2619
|
},
|
|
@@ -2626,15 +2631,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2626
2631
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2627
2632
|
* @param {string} [asset] the asset used to repay the loan
|
|
2628
2633
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2629
|
-
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2630
2634
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2631
2635
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2632
2636
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
2633
2637
|
* @param {*} [options] Override http request option.
|
|
2634
2638
|
* @throws {RequiredError}
|
|
2635
2639
|
*/
|
|
2636
|
-
quoteloanclose(height, asset, amount,
|
|
2637
|
-
return localVarFp.quoteloanclose(height, asset, amount,
|
|
2640
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2641
|
+
return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
|
|
2638
2642
|
},
|
|
2639
2643
|
/**
|
|
2640
2644
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2682,6 +2686,8 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2682
2686
|
* @param {string} [toAsset] the target asset
|
|
2683
2687
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2684
2688
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2689
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2690
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2685
2691
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2686
2692
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2687
2693
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2689,8 +2695,8 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2689
2695
|
* @param {*} [options] Override http request option.
|
|
2690
2696
|
* @throws {RequiredError}
|
|
2691
2697
|
*/
|
|
2692
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2693
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2698
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2699
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2694
2700
|
},
|
|
2695
2701
|
};
|
|
2696
2702
|
};
|
|
@@ -2706,7 +2712,6 @@ class QuoteApi extends BaseAPI {
|
|
|
2706
2712
|
* @param {number} [height] optional block height, defaults to current tip
|
|
2707
2713
|
* @param {string} [asset] the asset used to repay the loan
|
|
2708
2714
|
* @param {number} [amount] the asset amount in 1e8 decimals
|
|
2709
|
-
* @param {string} [fromAddress] the address that is paying off the loan
|
|
2710
2715
|
* @param {string} [loanAsset] the collateral asset of the loan
|
|
2711
2716
|
* @param {string} [loanOwner] the owner of the loan collateral
|
|
2712
2717
|
* @param {string} [minOut] the minimum amount of the target asset to accept
|
|
@@ -2714,8 +2719,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2714
2719
|
* @throws {RequiredError}
|
|
2715
2720
|
* @memberof QuoteApi
|
|
2716
2721
|
*/
|
|
2717
|
-
quoteloanclose(height, asset, amount,
|
|
2718
|
-
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount,
|
|
2722
|
+
quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
|
|
2723
|
+
return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
|
|
2719
2724
|
}
|
|
2720
2725
|
/**
|
|
2721
2726
|
* Provide a quote estimate for the provided loan open.
|
|
@@ -2766,6 +2771,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2766
2771
|
* @param {string} [toAsset] the target asset
|
|
2767
2772
|
* @param {number} [amount] the source asset amount in 1e8 decimals
|
|
2768
2773
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2774
|
+
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2775
|
+
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2769
2776
|
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2770
2777
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2771
2778
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
@@ -2774,8 +2781,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2774
2781
|
* @throws {RequiredError}
|
|
2775
2782
|
* @memberof QuoteApi
|
|
2776
2783
|
*/
|
|
2777
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2778
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2784
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
|
|
2785
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
2779
2786
|
}
|
|
2780
2787
|
}
|
|
2781
2788
|
/**
|
|
@@ -2951,6 +2958,165 @@ class SaversApi extends BaseAPI {
|
|
|
2951
2958
|
return SaversApiFp(this.configuration).savers(asset, height, options).then((request) => request(this.axios, this.basePath));
|
|
2952
2959
|
}
|
|
2953
2960
|
}
|
|
2961
|
+
/**
|
|
2962
|
+
* StreamingSwapApi - axios parameter creator
|
|
2963
|
+
* @export
|
|
2964
|
+
*/
|
|
2965
|
+
const StreamingSwapApiAxiosParamCreator = function (configuration) {
|
|
2966
|
+
return {
|
|
2967
|
+
/**
|
|
2968
|
+
* Returns the state of a streaming swap
|
|
2969
|
+
* @param {string} hash
|
|
2970
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
2971
|
+
* @param {*} [options] Override http request option.
|
|
2972
|
+
* @throws {RequiredError}
|
|
2973
|
+
*/
|
|
2974
|
+
streamSwap: (hash, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
// verify required parameter 'hash' is not null or undefined
|
|
2976
|
+
assertParamExists('streamSwap', 'hash', hash);
|
|
2977
|
+
const localVarPath = `/thorchain/swap/streaming/{hash}`
|
|
2978
|
+
.replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
|
|
2979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2981
|
+
let baseOptions;
|
|
2982
|
+
if (configuration) {
|
|
2983
|
+
baseOptions = configuration.baseOptions;
|
|
2984
|
+
}
|
|
2985
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2986
|
+
const localVarHeaderParameter = {};
|
|
2987
|
+
const localVarQueryParameter = {};
|
|
2988
|
+
if (height !== undefined) {
|
|
2989
|
+
localVarQueryParameter['height'] = height;
|
|
2990
|
+
}
|
|
2991
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2992
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2993
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2994
|
+
return {
|
|
2995
|
+
url: toPathString(localVarUrlObj),
|
|
2996
|
+
options: localVarRequestOptions,
|
|
2997
|
+
};
|
|
2998
|
+
}),
|
|
2999
|
+
/**
|
|
3000
|
+
* Returns the state of all streaming swaps
|
|
3001
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3002
|
+
* @param {*} [options] Override http request option.
|
|
3003
|
+
* @throws {RequiredError}
|
|
3004
|
+
*/
|
|
3005
|
+
streamSwaps: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3006
|
+
const localVarPath = `/thorchain/swaps/streaming`;
|
|
3007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3008
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3009
|
+
let baseOptions;
|
|
3010
|
+
if (configuration) {
|
|
3011
|
+
baseOptions = configuration.baseOptions;
|
|
3012
|
+
}
|
|
3013
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3014
|
+
const localVarHeaderParameter = {};
|
|
3015
|
+
const localVarQueryParameter = {};
|
|
3016
|
+
if (height !== undefined) {
|
|
3017
|
+
localVarQueryParameter['height'] = height;
|
|
3018
|
+
}
|
|
3019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3021
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3022
|
+
return {
|
|
3023
|
+
url: toPathString(localVarUrlObj),
|
|
3024
|
+
options: localVarRequestOptions,
|
|
3025
|
+
};
|
|
3026
|
+
}),
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
/**
|
|
3030
|
+
* StreamingSwapApi - functional programming interface
|
|
3031
|
+
* @export
|
|
3032
|
+
*/
|
|
3033
|
+
const StreamingSwapApiFp = function (configuration) {
|
|
3034
|
+
const localVarAxiosParamCreator = StreamingSwapApiAxiosParamCreator(configuration);
|
|
3035
|
+
return {
|
|
3036
|
+
/**
|
|
3037
|
+
* Returns the state of a streaming swap
|
|
3038
|
+
* @param {string} hash
|
|
3039
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
streamSwap(hash, height, options) {
|
|
3044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3045
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.streamSwap(hash, height, options);
|
|
3046
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3047
|
+
});
|
|
3048
|
+
},
|
|
3049
|
+
/**
|
|
3050
|
+
* Returns the state of all streaming swaps
|
|
3051
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3052
|
+
* @param {*} [options] Override http request option.
|
|
3053
|
+
* @throws {RequiredError}
|
|
3054
|
+
*/
|
|
3055
|
+
streamSwaps(height, options) {
|
|
3056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3057
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.streamSwaps(height, options);
|
|
3058
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3059
|
+
});
|
|
3060
|
+
},
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
/**
|
|
3064
|
+
* StreamingSwapApi - factory interface
|
|
3065
|
+
* @export
|
|
3066
|
+
*/
|
|
3067
|
+
const StreamingSwapApiFactory = function (configuration, basePath, axios) {
|
|
3068
|
+
const localVarFp = StreamingSwapApiFp(configuration);
|
|
3069
|
+
return {
|
|
3070
|
+
/**
|
|
3071
|
+
* Returns the state of a streaming swap
|
|
3072
|
+
* @param {string} hash
|
|
3073
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3074
|
+
* @param {*} [options] Override http request option.
|
|
3075
|
+
* @throws {RequiredError}
|
|
3076
|
+
*/
|
|
3077
|
+
streamSwap(hash, height, options) {
|
|
3078
|
+
return localVarFp.streamSwap(hash, height, options).then((request) => request(axios, basePath));
|
|
3079
|
+
},
|
|
3080
|
+
/**
|
|
3081
|
+
* Returns the state of all streaming swaps
|
|
3082
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3083
|
+
* @param {*} [options] Override http request option.
|
|
3084
|
+
* @throws {RequiredError}
|
|
3085
|
+
*/
|
|
3086
|
+
streamSwaps(height, options) {
|
|
3087
|
+
return localVarFp.streamSwaps(height, options).then((request) => request(axios, basePath));
|
|
3088
|
+
},
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
/**
|
|
3092
|
+
* StreamingSwapApi - object-oriented interface
|
|
3093
|
+
* @export
|
|
3094
|
+
* @class StreamingSwapApi
|
|
3095
|
+
* @extends {BaseAPI}
|
|
3096
|
+
*/
|
|
3097
|
+
class StreamingSwapApi extends BaseAPI {
|
|
3098
|
+
/**
|
|
3099
|
+
* Returns the state of a streaming swap
|
|
3100
|
+
* @param {string} hash
|
|
3101
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3102
|
+
* @param {*} [options] Override http request option.
|
|
3103
|
+
* @throws {RequiredError}
|
|
3104
|
+
* @memberof StreamingSwapApi
|
|
3105
|
+
*/
|
|
3106
|
+
streamSwap(hash, height, options) {
|
|
3107
|
+
return StreamingSwapApiFp(this.configuration).streamSwap(hash, height, options).then((request) => request(this.axios, this.basePath));
|
|
3108
|
+
}
|
|
3109
|
+
/**
|
|
3110
|
+
* Returns the state of all streaming swaps
|
|
3111
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3112
|
+
* @param {*} [options] Override http request option.
|
|
3113
|
+
* @throws {RequiredError}
|
|
3114
|
+
* @memberof StreamingSwapApi
|
|
3115
|
+
*/
|
|
3116
|
+
streamSwaps(height, options) {
|
|
3117
|
+
return StreamingSwapApiFp(this.configuration).streamSwaps(height, options).then((request) => request(this.axios, this.basePath));
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
2954
3120
|
/**
|
|
2955
3121
|
* TSSApi - axios parameter creator
|
|
2956
3122
|
* @export
|
|
@@ -3983,7 +4149,7 @@ class VaultsApi extends BaseAPI {
|
|
|
3983
4149
|
* Thornode API
|
|
3984
4150
|
* Thornode REST API.
|
|
3985
4151
|
*
|
|
3986
|
-
* The version of the OpenAPI document: 1.
|
|
4152
|
+
* The version of the OpenAPI document: 1.116.0
|
|
3987
4153
|
* Contact: devs@thorchain.org
|
|
3988
4154
|
*
|
|
3989
4155
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4018,5 +4184,5 @@ class Configuration {
|
|
|
4018
4184
|
|
|
4019
4185
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
4020
4186
|
|
|
4021
|
-
export { BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
|
|
4187
|
+
export { BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, Configuration, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, POLApi, POLApiAxiosParamCreator, POLApiFactory, POLApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp };
|
|
4022
4188
|
//# sourceMappingURL=index.esm.js.map
|