@xchainjs/xchain-thornode 0.2.0 → 0.2.1

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.
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.102.0
5
+ * The version of the OpenAPI document: 1.105.0
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -191,7 +191,7 @@ export interface InboundAddress {
191
191
  */
192
192
  'outbound_fee'?: string;
193
193
  /**
194
- * Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_thresold are ignored.
194
+ * Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transactions with asset amounts lower than the dust_threshold are ignored.
195
195
  * @type {string}
196
196
  * @memberof InboundAddress
197
197
  */
@@ -1097,7 +1097,7 @@ export interface Pool {
1097
1097
  */
1098
1098
  'savers_units': string;
1099
1099
  /**
1100
- * whether additional synths cannot be minted (will be deprecated in v1.103)
1100
+ * whether additional synths cannot be minted
1101
1101
  * @type {boolean}
1102
1102
  * @memberof Pool
1103
1103
  */
@@ -1191,11 +1191,17 @@ export interface QuoteSaverDepositResponse {
1191
1191
  */
1192
1192
  'memo': string;
1193
1193
  /**
1194
- * the minimum amount of the target asset the user can expect to deposit after fees
1194
+ * migrate to expected_amount_deposit (will be deprecated in v1.104)
1195
1195
  * @type {string}
1196
1196
  * @memberof QuoteSaverDepositResponse
1197
1197
  */
1198
1198
  'expected_amount_out': string;
1199
+ /**
1200
+ * the minimum amount of the target asset the user can expect to deposit after fees
1201
+ * @type {string}
1202
+ * @memberof QuoteSaverDepositResponse
1203
+ */
1204
+ 'expected_amount_deposit'?: string;
1199
1205
  /**
1200
1206
  * the approximate number of source chain blocks required before processing
1201
1207
  * @type {number}
@@ -1220,6 +1226,30 @@ export interface QuoteSaverDepositResponse {
1220
1226
  * @memberof QuoteSaverDepositResponse
1221
1227
  */
1222
1228
  'slippage_bps': number;
1229
+ /**
1230
+ * expiration timestamp in unix seconds
1231
+ * @type {number}
1232
+ * @memberof QuoteSaverDepositResponse
1233
+ */
1234
+ 'expiry': number;
1235
+ /**
1236
+ * static warning message
1237
+ * @type {string}
1238
+ * @memberof QuoteSaverDepositResponse
1239
+ */
1240
+ 'warning': string;
1241
+ /**
1242
+ * chain specific quote notes
1243
+ * @type {string}
1244
+ * @memberof QuoteSaverDepositResponse
1245
+ */
1246
+ 'notes': string;
1247
+ /**
1248
+ * Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_threshold are ignored.
1249
+ * @type {string}
1250
+ * @memberof QuoteSaverDepositResponse
1251
+ */
1252
+ 'dust_threshold'?: string;
1223
1253
  }
1224
1254
  /**
1225
1255
  *
@@ -1275,6 +1305,30 @@ export interface QuoteSaverWithdrawResponse {
1275
1305
  * @memberof QuoteSaverWithdrawResponse
1276
1306
  */
1277
1307
  'slippage_bps': number;
1308
+ /**
1309
+ * expiration timestamp in unix seconds
1310
+ * @type {number}
1311
+ * @memberof QuoteSaverWithdrawResponse
1312
+ */
1313
+ 'expiry': number;
1314
+ /**
1315
+ * static warning message
1316
+ * @type {string}
1317
+ * @memberof QuoteSaverWithdrawResponse
1318
+ */
1319
+ 'warning': string;
1320
+ /**
1321
+ * chain specific quote notes
1322
+ * @type {string}
1323
+ * @memberof QuoteSaverWithdrawResponse
1324
+ */
1325
+ 'notes': string;
1326
+ /**
1327
+ * Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_threshold are ignored.
1328
+ * @type {string}
1329
+ * @memberof QuoteSaverWithdrawResponse
1330
+ */
1331
+ 'dust_threshold'?: string;
1278
1332
  }
1279
1333
  /**
1280
1334
  *
@@ -1336,6 +1390,36 @@ export interface QuoteSwapResponse {
1336
1390
  * @memberof QuoteSwapResponse
1337
1391
  */
1338
1392
  'slippage_bps': number;
1393
+ /**
1394
+ * the EVM chain router contract address
1395
+ * @type {string}
1396
+ * @memberof QuoteSwapResponse
1397
+ */
1398
+ 'router'?: string;
1399
+ /**
1400
+ * expiration timestamp in unix seconds
1401
+ * @type {number}
1402
+ * @memberof QuoteSwapResponse
1403
+ */
1404
+ 'expiry': number;
1405
+ /**
1406
+ * static warning message
1407
+ * @type {string}
1408
+ * @memberof QuoteSwapResponse
1409
+ */
1410
+ 'warning': string;
1411
+ /**
1412
+ * chain specific quote notes
1413
+ * @type {string}
1414
+ * @memberof QuoteSwapResponse
1415
+ */
1416
+ 'notes': string;
1417
+ /**
1418
+ * Defines the minimum transaction size for the chain in base units (sats, wei, uatom). Transctions with asset amounts lower than the dust_threshold are ignored.
1419
+ * @type {string}
1420
+ * @memberof QuoteSwapResponse
1421
+ */
1422
+ 'dust_threshold'?: string;
1339
1423
  }
1340
1424
  /**
1341
1425
  *
@@ -1800,6 +1884,12 @@ export interface TxStagesResponse {
1800
1884
  * @memberof TxStagesResponse
1801
1885
  */
1802
1886
  'inbound_finalised': TxStagesResponseInboundFinalised;
1887
+ /**
1888
+ *
1889
+ * @type {TxStagesResponseSwapFinalised}
1890
+ * @memberof TxStagesResponse
1891
+ */
1892
+ 'swap_finalised'?: TxStagesResponseSwapFinalised;
1803
1893
  /**
1804
1894
  *
1805
1895
  * @type {TxStagesResponseOutboundDelay}
@@ -1938,6 +2028,19 @@ export interface TxStagesResponseOutboundSigned {
1938
2028
  */
1939
2029
  'completed': boolean;
1940
2030
  }
2031
+ /**
2032
+ *
2033
+ * @export
2034
+ * @interface TxStagesResponseSwapFinalised
2035
+ */
2036
+ export interface TxStagesResponseSwapFinalised {
2037
+ /**
2038
+ * returns true if an inbound transaction\'s swap (successful or refunded) is no longer pending
2039
+ * @type {boolean}
2040
+ * @memberof TxStagesResponseSwapFinalised
2041
+ */
2042
+ 'completed': boolean;
2043
+ }
1941
2044
  /**
1942
2045
  *
1943
2046
  * @export
@@ -3159,13 +3262,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration |
3159
3262
  * @param {string} [toAsset] the target asset
3160
3263
  * @param {number} [amount] the source asset amount in 1e8 decimals
3161
3264
  * @param {string} [destination] the destination address, required to generate memo
3265
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3162
3266
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3163
3267
  * @param {number} [affiliateBps] the affiliate fee in basis points
3164
3268
  * @param {string} [affiliate] the affiliate (address or thorname)
3165
3269
  * @param {*} [options] Override http request option.
3166
3270
  * @throws {RequiredError}
3167
3271
  */
3168
- quoteswap: (height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3272
+ quoteswap: (height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3169
3273
  };
3170
3274
  /**
3171
3275
  * QuoteApi - functional programming interface
@@ -3198,13 +3302,14 @@ export declare const QuoteApiFp: (configuration?: Configuration | undefined) =>
3198
3302
  * @param {string} [toAsset] the target asset
3199
3303
  * @param {number} [amount] the source asset amount in 1e8 decimals
3200
3304
  * @param {string} [destination] the destination address, required to generate memo
3305
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3201
3306
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3202
3307
  * @param {number} [affiliateBps] the affiliate fee in basis points
3203
3308
  * @param {string} [affiliate] the affiliate (address or thorname)
3204
3309
  * @param {*} [options] Override http request option.
3205
3310
  * @throws {RequiredError}
3206
3311
  */
3207
- quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSwapResponse>>;
3312
+ quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<QuoteSwapResponse>>;
3208
3313
  };
3209
3314
  /**
3210
3315
  * QuoteApi - factory interface
@@ -3237,13 +3342,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration | undefined
3237
3342
  * @param {string} [toAsset] the target asset
3238
3343
  * @param {number} [amount] the source asset amount in 1e8 decimals
3239
3344
  * @param {string} [destination] the destination address, required to generate memo
3345
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3240
3346
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3241
3347
  * @param {number} [affiliateBps] the affiliate fee in basis points
3242
3348
  * @param {string} [affiliate] the affiliate (address or thorname)
3243
3349
  * @param {*} [options] Override http request option.
3244
3350
  * @throws {RequiredError}
3245
3351
  */
3246
- quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteSwapResponse>;
3352
+ quoteswap(height?: number | undefined, fromAsset?: string | undefined, toAsset?: string | undefined, amount?: number | undefined, destination?: string | undefined, fromAddress?: string | undefined, toleranceBps?: number | undefined, affiliateBps?: number | undefined, affiliate?: string | undefined, options?: any): AxiosPromise<QuoteSwapResponse>;
3247
3353
  };
3248
3354
  /**
3249
3355
  * QuoteApi - object-oriented interface
@@ -3280,6 +3386,7 @@ export declare class QuoteApi extends BaseAPI {
3280
3386
  * @param {string} [toAsset] the target asset
3281
3387
  * @param {number} [amount] the source asset amount in 1e8 decimals
3282
3388
  * @param {string} [destination] the destination address, required to generate memo
3389
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
3283
3390
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3284
3391
  * @param {number} [affiliateBps] the affiliate fee in basis points
3285
3392
  * @param {string} [affiliate] the affiliate (address or thorname)
@@ -3287,7 +3394,7 @@ export declare class QuoteApi extends BaseAPI {
3287
3394
  * @throws {RequiredError}
3288
3395
  * @memberof QuoteApi
3289
3396
  */
3290
- quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
3397
+ quoteswap(height?: number, fromAsset?: string, toAsset?: string, amount?: number, destination?: string, fromAddress?: string, toleranceBps?: number, affiliateBps?: number, affiliate?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteSwapResponse, any>>;
3291
3398
  }
3292
3399
  /**
3293
3400
  * 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.102.0
5
+ * The version of the OpenAPI document: 1.105.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.102.0
5
+ * The version of the OpenAPI document: 1.105.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.102.0
5
+ * The version of the OpenAPI document: 1.105.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.102.0
5
+ * The version of the OpenAPI document: 1.105.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
@@ -1965,13 +1965,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
1965
1965
  * @param {string} [toAsset] the target asset
1966
1966
  * @param {number} [amount] the source asset amount in 1e8 decimals
1967
1967
  * @param {string} [destination] the destination address, required to generate memo
1968
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
1968
1969
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
1969
1970
  * @param {number} [affiliateBps] the affiliate fee in basis points
1970
1971
  * @param {string} [affiliate] the affiliate (address or thorname)
1971
1972
  * @param {*} [options] Override http request option.
1972
1973
  * @throws {RequiredError}
1973
1974
  */
1974
- quoteswap: (height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
1975
+ quoteswap: (height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
1975
1976
  const localVarPath = `/thorchain/quote/swap`;
1976
1977
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
1978
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1997,6 +1998,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
1997
1998
  if (destination !== undefined) {
1998
1999
  localVarQueryParameter['destination'] = destination;
1999
2000
  }
2001
+ if (fromAddress !== undefined) {
2002
+ localVarQueryParameter['from_address'] = fromAddress;
2003
+ }
2000
2004
  if (toleranceBps !== undefined) {
2001
2005
  localVarQueryParameter['tolerance_bps'] = toleranceBps;
2002
2006
  }
@@ -2059,15 +2063,16 @@ const QuoteApiFp = function (configuration) {
2059
2063
  * @param {string} [toAsset] the target asset
2060
2064
  * @param {number} [amount] the source asset amount in 1e8 decimals
2061
2065
  * @param {string} [destination] the destination address, required to generate memo
2066
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
2062
2067
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2063
2068
  * @param {number} [affiliateBps] the affiliate fee in basis points
2064
2069
  * @param {string} [affiliate] the affiliate (address or thorname)
2065
2070
  * @param {*} [options] Override http request option.
2066
2071
  * @throws {RequiredError}
2067
2072
  */
2068
- quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
2073
+ quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2069
2074
  return __awaiter(this, void 0, void 0, function* () {
2070
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options);
2075
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options);
2071
2076
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2072
2077
  });
2073
2078
  },
@@ -2110,14 +2115,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2110
2115
  * @param {string} [toAsset] the target asset
2111
2116
  * @param {number} [amount] the source asset amount in 1e8 decimals
2112
2117
  * @param {string} [destination] the destination address, required to generate memo
2118
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
2113
2119
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2114
2120
  * @param {number} [affiliateBps] the affiliate fee in basis points
2115
2121
  * @param {string} [affiliate] the affiliate (address or thorname)
2116
2122
  * @param {*} [options] Override http request option.
2117
2123
  * @throws {RequiredError}
2118
2124
  */
2119
- quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
2120
- return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
2125
+ quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2126
+ return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
2121
2127
  },
2122
2128
  };
2123
2129
  };
@@ -2160,6 +2166,7 @@ class QuoteApi extends BaseAPI {
2160
2166
  * @param {string} [toAsset] the target asset
2161
2167
  * @param {number} [amount] the source asset amount in 1e8 decimals
2162
2168
  * @param {string} [destination] the destination address, required to generate memo
2169
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
2163
2170
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2164
2171
  * @param {number} [affiliateBps] the affiliate fee in basis points
2165
2172
  * @param {string} [affiliate] the affiliate (address or thorname)
@@ -2167,8 +2174,8 @@ class QuoteApi extends BaseAPI {
2167
2174
  * @throws {RequiredError}
2168
2175
  * @memberof QuoteApi
2169
2176
  */
2170
- quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
2171
- return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
2177
+ quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2178
+ return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
2172
2179
  }
2173
2180
  }
2174
2181
  /**
@@ -3376,7 +3383,7 @@ class VaultsApi extends BaseAPI {
3376
3383
  * Thornode API
3377
3384
  * Thornode REST API.
3378
3385
  *
3379
- * The version of the OpenAPI document: 1.102.0
3386
+ * The version of the OpenAPI document: 1.105.0
3380
3387
  * Contact: devs@thorchain.org
3381
3388
  *
3382
3389
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/lib/index.js CHANGED
@@ -1973,13 +1973,14 @@ const QuoteApiAxiosParamCreator = function (configuration) {
1973
1973
  * @param {string} [toAsset] the target asset
1974
1974
  * @param {number} [amount] the source asset amount in 1e8 decimals
1975
1975
  * @param {string} [destination] the destination address, required to generate memo
1976
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
1976
1977
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
1977
1978
  * @param {number} [affiliateBps] the affiliate fee in basis points
1978
1979
  * @param {string} [affiliate] the affiliate (address or thorname)
1979
1980
  * @param {*} [options] Override http request option.
1980
1981
  * @throws {RequiredError}
1981
1982
  */
1982
- quoteswap: (height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
1983
+ quoteswap: (height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
1983
1984
  const localVarPath = `/thorchain/quote/swap`;
1984
1985
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1985
1986
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2005,6 +2006,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2005
2006
  if (destination !== undefined) {
2006
2007
  localVarQueryParameter['destination'] = destination;
2007
2008
  }
2009
+ if (fromAddress !== undefined) {
2010
+ localVarQueryParameter['from_address'] = fromAddress;
2011
+ }
2008
2012
  if (toleranceBps !== undefined) {
2009
2013
  localVarQueryParameter['tolerance_bps'] = toleranceBps;
2010
2014
  }
@@ -2067,15 +2071,16 @@ const QuoteApiFp = function (configuration) {
2067
2071
  * @param {string} [toAsset] the target asset
2068
2072
  * @param {number} [amount] the source asset amount in 1e8 decimals
2069
2073
  * @param {string} [destination] the destination address, required to generate memo
2074
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
2070
2075
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2071
2076
  * @param {number} [affiliateBps] the affiliate fee in basis points
2072
2077
  * @param {string} [affiliate] the affiliate (address or thorname)
2073
2078
  * @param {*} [options] Override http request option.
2074
2079
  * @throws {RequiredError}
2075
2080
  */
2076
- quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
2081
+ quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2077
2082
  return __awaiter(this, void 0, void 0, function* () {
2078
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options);
2083
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options);
2079
2084
  return createRequestFunction(localVarAxiosArgs, globalAxios__default['default'], BASE_PATH, configuration);
2080
2085
  });
2081
2086
  },
@@ -2118,14 +2123,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2118
2123
  * @param {string} [toAsset] the target asset
2119
2124
  * @param {number} [amount] the source asset amount in 1e8 decimals
2120
2125
  * @param {string} [destination] the destination address, required to generate memo
2126
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
2121
2127
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2122
2128
  * @param {number} [affiliateBps] the affiliate fee in basis points
2123
2129
  * @param {string} [affiliate] the affiliate (address or thorname)
2124
2130
  * @param {*} [options] Override http request option.
2125
2131
  * @throws {RequiredError}
2126
2132
  */
2127
- quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
2128
- return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
2133
+ quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2134
+ return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
2129
2135
  },
2130
2136
  };
2131
2137
  };
@@ -2168,6 +2174,7 @@ class QuoteApi extends BaseAPI {
2168
2174
  * @param {string} [toAsset] the target asset
2169
2175
  * @param {number} [amount] the source asset amount in 1e8 decimals
2170
2176
  * @param {string} [destination] the destination address, required to generate memo
2177
+ * @param {string} [fromAddress] the from address, required if the from asset is a synth
2171
2178
  * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
2172
2179
  * @param {number} [affiliateBps] the affiliate fee in basis points
2173
2180
  * @param {string} [affiliate] the affiliate (address or thorname)
@@ -2175,8 +2182,8 @@ class QuoteApi extends BaseAPI {
2175
2182
  * @throws {RequiredError}
2176
2183
  * @memberof QuoteApi
2177
2184
  */
2178
- quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options) {
2179
- return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
2185
+ quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options) {
2186
+ return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, fromAddress, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
2180
2187
  }
2181
2188
  }
2182
2189
  /**
@@ -3384,7 +3391,7 @@ class VaultsApi extends BaseAPI {
3384
3391
  * Thornode API
3385
3392
  * Thornode REST API.
3386
3393
  *
3387
- * The version of the OpenAPI document: 1.102.0
3394
+ * The version of the OpenAPI document: 1.105.0
3388
3395
  * Contact: devs@thorchain.org
3389
3396
  *
3390
3397
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-thornode",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "description": "Thornode module that exposes all thornode functions using openapi-generator-cli",
6
6
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "prepublishOnly": "yarn run build",
31
31
  "test": "jest --passWithNoTests",
32
32
  "generate:types": "yarn clean:types:thornode && yarn generate:types:thornode",
33
- "generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.102.0/openapi/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec --generate-alias-as-model",
33
+ "generate:types:thornode": "TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i https://gitlab.com/thorchain/thornode/-/raw/release-1.105.0/openapi/openapi.yaml -g typescript-axios -o ./src/generated/thornodeApi --skip-validate-spec --generate-alias-as-model",
34
34
  "clean:types:thornode": "rimraf ./src/generated/thornodeApi"
35
35
  },
36
36
  "devDependencies": {