@xchainjs/xchain-thornode 0.3.8 → 0.3.9
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 +34 -9
- 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 +67 -15
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +67 -15
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.124.0
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3976,6 +3976,13 @@ export declare const MimirApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3976
3976
|
* @throws {RequiredError}
|
|
3977
3977
|
*/
|
|
3978
3978
|
mimirNodes: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3979
|
+
/**
|
|
3980
|
+
* Returns current mimir V2 configuration.
|
|
3981
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
mimirV2: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3979
3986
|
};
|
|
3980
3987
|
/**
|
|
3981
3988
|
* MimirApi - functional programming interface
|
|
@@ -4019,6 +4026,13 @@ export declare const MimirApiFp: (configuration?: Configuration) => {
|
|
|
4019
4026
|
* @throws {RequiredError}
|
|
4020
4027
|
*/
|
|
4021
4028
|
mimirNodes(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirNodesResponse>>;
|
|
4029
|
+
/**
|
|
4030
|
+
* Returns current mimir V2 configuration.
|
|
4031
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4032
|
+
* @param {*} [options] Override http request option.
|
|
4033
|
+
* @throws {RequiredError}
|
|
4034
|
+
*/
|
|
4035
|
+
mimirV2(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MimirResponse>>;
|
|
4022
4036
|
};
|
|
4023
4037
|
/**
|
|
4024
4038
|
* MimirApi - factory interface
|
|
@@ -4062,6 +4076,13 @@ export declare const MimirApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4062
4076
|
* @throws {RequiredError}
|
|
4063
4077
|
*/
|
|
4064
4078
|
mimirNodes(height?: number, options?: any): AxiosPromise<MimirNodesResponse>;
|
|
4079
|
+
/**
|
|
4080
|
+
* Returns current mimir V2 configuration.
|
|
4081
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4082
|
+
* @param {*} [options] Override http request option.
|
|
4083
|
+
* @throws {RequiredError}
|
|
4084
|
+
*/
|
|
4085
|
+
mimirV2(height?: number, options?: any): AxiosPromise<MimirResponse>;
|
|
4065
4086
|
};
|
|
4066
4087
|
/**
|
|
4067
4088
|
* MimirApi - object-oriented interface
|
|
@@ -4112,6 +4133,14 @@ export declare class MimirApi extends BaseAPI {
|
|
|
4112
4133
|
* @memberof MimirApi
|
|
4113
4134
|
*/
|
|
4114
4135
|
mimirNodes(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirNodesResponse, any>>;
|
|
4136
|
+
/**
|
|
4137
|
+
* Returns current mimir V2 configuration.
|
|
4138
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4139
|
+
* @param {*} [options] Override http request option.
|
|
4140
|
+
* @throws {RequiredError}
|
|
4141
|
+
* @memberof MimirApi
|
|
4142
|
+
*/
|
|
4143
|
+
mimirV2(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MimirResponse, any>>;
|
|
4115
4144
|
}
|
|
4116
4145
|
/**
|
|
4117
4146
|
* NetworkApi - axios parameter creator
|
|
@@ -4873,14 +4902,13 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4873
4902
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4874
4903
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4875
4904
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4876
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4877
4905
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4878
4906
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4879
4907
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4880
4908
|
* @param {*} [options] Override http request option.
|
|
4881
4909
|
* @throws {RequiredError}
|
|
4882
4910
|
*/
|
|
4883
|
-
quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
4911
|
+
quoteswap: (height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4884
4912
|
};
|
|
4885
4913
|
/**
|
|
4886
4914
|
* QuoteApi - functional programming interface
|
|
@@ -4941,14 +4969,13 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
|
|
|
4941
4969
|
* @param {string} [destination] the destination address, required to generate memo
|
|
4942
4970
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
4943
4971
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
4944
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
4945
4972
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
4946
4973
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
4947
4974
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
4948
4975
|
* @param {*} [options] Override http request option.
|
|
4949
4976
|
* @throws {RequiredError}
|
|
4950
4977
|
*/
|
|
4951
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
4978
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteSwapResponse>>;
|
|
4952
4979
|
};
|
|
4953
4980
|
/**
|
|
4954
4981
|
* QuoteApi - factory interface
|
|
@@ -5009,14 +5036,13 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
|
|
|
5009
5036
|
* @param {string} [destination] the destination address, required to generate memo
|
|
5010
5037
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
5011
5038
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
5012
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
5013
5039
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
5014
5040
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
5015
5041
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
5016
5042
|
* @param {*} [options] Override http request option.
|
|
5017
5043
|
* @throws {RequiredError}
|
|
5018
5044
|
*/
|
|
5019
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
5045
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: any): AxiosPromise<QuoteSwapResponse>;
|
|
5020
5046
|
};
|
|
5021
5047
|
/**
|
|
5022
5048
|
* QuoteApi - object-oriented interface
|
|
@@ -5083,7 +5109,6 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
5083
5109
|
* @param {string} [destination] the destination address, required to generate memo
|
|
5084
5110
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
5085
5111
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
5086
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
5087
5112
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
5088
5113
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
5089
5114
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -5091,7 +5116,7 @@ export declare class QuoteApi extends BaseAPI {
|
|
|
5091
5116
|
* @throws {RequiredError}
|
|
5092
5117
|
* @memberof QuoteApi
|
|
5093
5118
|
*/
|
|
5094
|
-
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number,
|
|
5119
|
+
quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, streamingInterval?: number, streamingQuantity?: number, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
|
|
5095
5120
|
}
|
|
5096
5121
|
/**
|
|
5097
5122
|
* SaversApi - axios parameter creator
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.124.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.124.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.124.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.124.0
|
|
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
|
@@ -970,6 +970,34 @@ const MimirApiAxiosParamCreator = function (configuration) {
|
|
|
970
970
|
options: localVarRequestOptions,
|
|
971
971
|
};
|
|
972
972
|
}),
|
|
973
|
+
/**
|
|
974
|
+
* Returns current mimir V2 configuration.
|
|
975
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
mimirV2: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
980
|
+
const localVarPath = `/thorchain/mimirV2`;
|
|
981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
983
|
+
let baseOptions;
|
|
984
|
+
if (configuration) {
|
|
985
|
+
baseOptions = configuration.baseOptions;
|
|
986
|
+
}
|
|
987
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
988
|
+
const localVarHeaderParameter = {};
|
|
989
|
+
const localVarQueryParameter = {};
|
|
990
|
+
if (height !== undefined) {
|
|
991
|
+
localVarQueryParameter['height'] = height;
|
|
992
|
+
}
|
|
993
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
994
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
995
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
996
|
+
return {
|
|
997
|
+
url: toPathString(localVarUrlObj),
|
|
998
|
+
options: localVarRequestOptions,
|
|
999
|
+
};
|
|
1000
|
+
}),
|
|
973
1001
|
};
|
|
974
1002
|
};
|
|
975
1003
|
/**
|
|
@@ -1041,6 +1069,18 @@ const MimirApiFp = function (configuration) {
|
|
|
1041
1069
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1042
1070
|
});
|
|
1043
1071
|
},
|
|
1072
|
+
/**
|
|
1073
|
+
* Returns current mimir V2 configuration.
|
|
1074
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
mimirV2(height, options) {
|
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1080
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mimirV2(height, options);
|
|
1081
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1082
|
+
});
|
|
1083
|
+
},
|
|
1044
1084
|
};
|
|
1045
1085
|
};
|
|
1046
1086
|
/**
|
|
@@ -1097,6 +1137,15 @@ const MimirApiFactory = function (configuration, basePath, axios) {
|
|
|
1097
1137
|
mimirNodes(height, options) {
|
|
1098
1138
|
return localVarFp.mimirNodes(height, options).then((request) => request(axios, basePath));
|
|
1099
1139
|
},
|
|
1140
|
+
/**
|
|
1141
|
+
* Returns current mimir V2 configuration.
|
|
1142
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1143
|
+
* @param {*} [options] Override http request option.
|
|
1144
|
+
* @throws {RequiredError}
|
|
1145
|
+
*/
|
|
1146
|
+
mimirV2(height, options) {
|
|
1147
|
+
return localVarFp.mimirV2(height, options).then((request) => request(axios, basePath));
|
|
1148
|
+
},
|
|
1100
1149
|
};
|
|
1101
1150
|
};
|
|
1102
1151
|
/**
|
|
@@ -1158,6 +1207,16 @@ class MimirApi extends BaseAPI {
|
|
|
1158
1207
|
mimirNodes(height, options) {
|
|
1159
1208
|
return MimirApiFp(this.configuration).mimirNodes(height, options).then((request) => request(this.axios, this.basePath));
|
|
1160
1209
|
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Returns current mimir V2 configuration.
|
|
1212
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @throws {RequiredError}
|
|
1215
|
+
* @memberof MimirApi
|
|
1216
|
+
*/
|
|
1217
|
+
mimirV2(height, options) {
|
|
1218
|
+
return MimirApiFp(this.configuration).mimirV2(height, options).then((request) => request(this.axios, this.basePath));
|
|
1219
|
+
}
|
|
1161
1220
|
}
|
|
1162
1221
|
/**
|
|
1163
1222
|
* NetworkApi - axios parameter creator
|
|
@@ -2680,14 +2739,13 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2680
2739
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2681
2740
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2682
2741
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2683
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2684
2742
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2685
2743
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2686
2744
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2687
2745
|
* @param {*} [options] Override http request option.
|
|
2688
2746
|
* @throws {RequiredError}
|
|
2689
2747
|
*/
|
|
2690
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2748
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2691
2749
|
const localVarPath = `/thorchain/quote/swap`;
|
|
2692
2750
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2693
2751
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2719,9 +2777,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
2719
2777
|
if (streamingQuantity !== undefined) {
|
|
2720
2778
|
localVarQueryParameter['streaming_quantity'] = streamingQuantity;
|
|
2721
2779
|
}
|
|
2722
|
-
if (fromAddress !== undefined) {
|
|
2723
|
-
localVarQueryParameter['from_address'] = fromAddress;
|
|
2724
|
-
}
|
|
2725
2780
|
if (toleranceBps !== undefined) {
|
|
2726
2781
|
localVarQueryParameter['tolerance_bps'] = toleranceBps;
|
|
2727
2782
|
}
|
|
@@ -2822,16 +2877,15 @@ const QuoteApiFp = function (configuration) {
|
|
|
2822
2877
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2823
2878
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2824
2879
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2825
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2826
2880
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2827
2881
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2828
2882
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2829
2883
|
* @param {*} [options] Override http request option.
|
|
2830
2884
|
* @throws {RequiredError}
|
|
2831
2885
|
*/
|
|
2832
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2886
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
2833
2887
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2834
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2888
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options);
|
|
2835
2889
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2836
2890
|
});
|
|
2837
2891
|
},
|
|
@@ -2906,15 +2960,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
2906
2960
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2907
2961
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2908
2962
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2909
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2910
2963
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2911
2964
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2912
2965
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
2913
2966
|
* @param {*} [options] Override http request option.
|
|
2914
2967
|
* @throws {RequiredError}
|
|
2915
2968
|
*/
|
|
2916
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2917
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
2969
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
2970
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
2918
2971
|
},
|
|
2919
2972
|
};
|
|
2920
2973
|
};
|
|
@@ -2991,7 +3044,6 @@ class QuoteApi extends BaseAPI {
|
|
|
2991
3044
|
* @param {string} [destination] the destination address, required to generate memo
|
|
2992
3045
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
2993
3046
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
2994
|
-
* @param {string} [fromAddress] the from address, required if the from asset is a synth
|
|
2995
3047
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
2996
3048
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
2997
3049
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
@@ -2999,8 +3051,8 @@ class QuoteApi extends BaseAPI {
|
|
|
2999
3051
|
* @throws {RequiredError}
|
|
3000
3052
|
* @memberof QuoteApi
|
|
3001
3053
|
*/
|
|
3002
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3003
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity,
|
|
3054
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3055
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
3004
3056
|
}
|
|
3005
3057
|
}
|
|
3006
3058
|
/**
|
|
@@ -4367,7 +4419,7 @@ class VaultsApi extends BaseAPI {
|
|
|
4367
4419
|
* Thornode API
|
|
4368
4420
|
* Thornode REST API.
|
|
4369
4421
|
*
|
|
4370
|
-
* The version of the OpenAPI document: 1.
|
|
4422
|
+
* The version of the OpenAPI document: 1.124.0
|
|
4371
4423
|
* Contact: devs@thorchain.org
|
|
4372
4424
|
*
|
|
4373
4425
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|