@xchainjs/xchain-thornode 0.3.0 → 0.3.2

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.108.3
5
+ * The version of the OpenAPI document: 1.110.0
6
6
  * Contact: devs@thorchain.org
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1311,67 +1311,67 @@ export interface Pool {
1311
1311
  * @type {string}
1312
1312
  * @memberof Pool
1313
1313
  */
1314
- 'balance_rune': string;
1314
+ 'asset': string;
1315
1315
  /**
1316
1316
  *
1317
1317
  * @type {string}
1318
1318
  * @memberof Pool
1319
1319
  */
1320
- 'balance_asset': string;
1320
+ 'status': string;
1321
1321
  /**
1322
1322
  *
1323
- * @type {string}
1323
+ * @type {number}
1324
1324
  * @memberof Pool
1325
1325
  */
1326
- 'asset': string;
1326
+ 'decimals'?: number;
1327
1327
  /**
1328
- * the total pool liquidity provider units
1328
+ *
1329
1329
  * @type {string}
1330
1330
  * @memberof Pool
1331
1331
  */
1332
- 'LP_units': string;
1332
+ 'pending_inbound_asset': string;
1333
1333
  /**
1334
- * the total pool units, this is the sum of LP and synth units
1334
+ *
1335
1335
  * @type {string}
1336
1336
  * @memberof Pool
1337
1337
  */
1338
- 'pool_units': string;
1338
+ 'pending_inbound_rune': string;
1339
1339
  /**
1340
1340
  *
1341
1341
  * @type {string}
1342
1342
  * @memberof Pool
1343
1343
  */
1344
- 'status': string;
1344
+ 'balance_asset': string;
1345
1345
  /**
1346
1346
  *
1347
- * @type {number}
1347
+ * @type {string}
1348
1348
  * @memberof Pool
1349
1349
  */
1350
- 'decimals'?: number;
1350
+ 'balance_rune': string;
1351
1351
  /**
1352
- * the total synth units in the pool
1352
+ * the total pool units, this is the sum of LP and synth units
1353
1353
  * @type {string}
1354
1354
  * @memberof Pool
1355
1355
  */
1356
- 'synth_units': string;
1356
+ 'pool_units': string;
1357
1357
  /**
1358
- * the total supply of synths for the asset
1358
+ * the total pool liquidity provider units
1359
1359
  * @type {string}
1360
1360
  * @memberof Pool
1361
1361
  */
1362
- 'synth_supply': string;
1362
+ 'LP_units': string;
1363
1363
  /**
1364
- *
1364
+ * the total synth units in the pool
1365
1365
  * @type {string}
1366
1366
  * @memberof Pool
1367
1367
  */
1368
- 'pending_inbound_rune': string;
1368
+ 'synth_units': string;
1369
1369
  /**
1370
- *
1370
+ * the total supply of synths for the asset
1371
1371
  * @type {string}
1372
1372
  * @memberof Pool
1373
1373
  */
1374
- 'pending_inbound_asset': string;
1374
+ 'synth_supply': string;
1375
1375
  /**
1376
1376
  * the balance of L1 asset deposited into the Savers Vault
1377
1377
  * @type {string}
@@ -2760,6 +2760,12 @@ export interface Vault {
2760
2760
  * @memberof Vault
2761
2761
  */
2762
2762
  'addresses': Array<VaultAddress>;
2763
+ /**
2764
+ *
2765
+ * @type {Array<string>}
2766
+ * @memberof Vault
2767
+ */
2768
+ 'frozen'?: Array<string>;
2763
2769
  }
2764
2770
  export declare const VaultTypeEnum: {
2765
2771
  readonly AsgardVault: "AsgardVault";
@@ -2862,11 +2868,17 @@ export interface VersionResponse {
2862
2868
  */
2863
2869
  'current': string;
2864
2870
  /**
2865
- * next version
2871
+ * next version (minimum version for a node to become Active)
2866
2872
  * @type {string}
2867
2873
  * @memberof VersionResponse
2868
2874
  */
2869
2875
  'next': string;
2876
+ /**
2877
+ * height at which the minimum joining version last changed
2878
+ * @type {number}
2879
+ * @memberof VersionResponse
2880
+ */
2881
+ 'next_since_height'?: number;
2870
2882
  /**
2871
2883
  * querier version
2872
2884
  * @type {string}
@@ -4033,13 +4045,14 @@ export declare const QuoteApiAxiosParamCreator: (configuration?: Configuration)
4033
4045
  * @param {number} [height] optional block height, defaults to current tip
4034
4046
  * @param {string} [asset] the asset used to repay the loan
4035
4047
  * @param {number} [amount] the asset amount in 1e8 decimals
4048
+ * @param {string} [fromAddress] the address that is paying off the loan
4036
4049
  * @param {string} [loanAsset] the collateral asset of the loan
4037
4050
  * @param {string} [loanOwner] the owner of the loan collateral
4038
4051
  * @param {string} [minOut] the minimum amount of the target asset to accept
4039
4052
  * @param {*} [options] Override http request option.
4040
4053
  * @throws {RequiredError}
4041
4054
  */
4042
- quoteloanclose: (height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4055
+ quoteloanclose: (height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4043
4056
  /**
4044
4057
  * Provide a quote estimate for the provided loan open.
4045
4058
  * @param {number} [height] optional block height, defaults to current tip
@@ -4099,13 +4112,14 @@ export declare const QuoteApiFp: (configuration?: Configuration) => {
4099
4112
  * @param {number} [height] optional block height, defaults to current tip
4100
4113
  * @param {string} [asset] the asset used to repay the loan
4101
4114
  * @param {number} [amount] the asset amount in 1e8 decimals
4115
+ * @param {string} [fromAddress] the address that is paying off the loan
4102
4116
  * @param {string} [loanAsset] the collateral asset of the loan
4103
4117
  * @param {string} [loanOwner] the owner of the loan collateral
4104
4118
  * @param {string} [minOut] the minimum amount of the target asset to accept
4105
4119
  * @param {*} [options] Override http request option.
4106
4120
  * @throws {RequiredError}
4107
4121
  */
4108
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4122
+ quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuoteLoanCloseResponse>>;
4109
4123
  /**
4110
4124
  * Provide a quote estimate for the provided loan open.
4111
4125
  * @param {number} [height] optional block height, defaults to current tip
@@ -4165,13 +4179,14 @@ export declare const QuoteApiFactory: (configuration?: Configuration, basePath?:
4165
4179
  * @param {number} [height] optional block height, defaults to current tip
4166
4180
  * @param {string} [asset] the asset used to repay the loan
4167
4181
  * @param {number} [amount] the asset amount in 1e8 decimals
4182
+ * @param {string} [fromAddress] the address that is paying off the loan
4168
4183
  * @param {string} [loanAsset] the collateral asset of the loan
4169
4184
  * @param {string} [loanOwner] the owner of the loan collateral
4170
4185
  * @param {string} [minOut] the minimum amount of the target asset to accept
4171
4186
  * @param {*} [options] Override http request option.
4172
4187
  * @throws {RequiredError}
4173
4188
  */
4174
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4189
+ quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: any): AxiosPromise<QuoteLoanCloseResponse>;
4175
4190
  /**
4176
4191
  * Provide a quote estimate for the provided loan open.
4177
4192
  * @param {number} [height] optional block height, defaults to current tip
@@ -4233,6 +4248,7 @@ export declare class QuoteApi extends BaseAPI {
4233
4248
  * @param {number} [height] optional block height, defaults to current tip
4234
4249
  * @param {string} [asset] the asset used to repay the loan
4235
4250
  * @param {number} [amount] the asset amount in 1e8 decimals
4251
+ * @param {string} [fromAddress] the address that is paying off the loan
4236
4252
  * @param {string} [loanAsset] the collateral asset of the loan
4237
4253
  * @param {string} [loanOwner] the owner of the loan collateral
4238
4254
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -4240,7 +4256,7 @@ export declare class QuoteApi extends BaseAPI {
4240
4256
  * @throws {RequiredError}
4241
4257
  * @memberof QuoteApi
4242
4258
  */
4243
- quoteloanclose(height?: number, asset?: string, amount?: number, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4259
+ quoteloanclose(height?: number, asset?: string, amount?: number, fromAddress?: string, loanAsset?: string, loanOwner?: string, minOut?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<QuoteLoanCloseResponse, any>>;
4244
4260
  /**
4245
4261
  * Provide a quote estimate for the provided loan open.
4246
4262
  * @param {number} [height] optional block height, defaults to current tip
@@ -2,7 +2,7 @@
2
2
  * Thornode API
3
3
  * Thornode REST API.
4
4
  *
5
- * The version of the OpenAPI document: 1.108.3
5
+ * The version of the OpenAPI document: 1.110.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.108.3
5
+ * The version of the OpenAPI document: 1.110.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.108.3
5
+ * The version of the OpenAPI document: 1.110.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.108.3
5
+ * The version of the OpenAPI document: 1.110.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
@@ -2278,13 +2278,14 @@ 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
2281
2282
  * @param {string} [loanAsset] the collateral asset of the loan
2282
2283
  * @param {string} [loanOwner] the owner of the loan collateral
2283
2284
  * @param {string} [minOut] the minimum amount of the target asset to accept
2284
2285
  * @param {*} [options] Override http request option.
2285
2286
  * @throws {RequiredError}
2286
2287
  */
2287
- quoteloanclose: (height, asset, amount, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2288
+ quoteloanclose: (height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options = {}) => __awaiter(this, void 0, void 0, function* () {
2288
2289
  const localVarPath = `/thorchain/quote/loan/close`;
2289
2290
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2290
2291
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2304,6 +2305,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
2304
2305
  if (amount !== undefined) {
2305
2306
  localVarQueryParameter['amount'] = amount;
2306
2307
  }
2308
+ if (fromAddress !== undefined) {
2309
+ localVarQueryParameter['from_address'] = fromAddress;
2310
+ }
2307
2311
  if (loanAsset !== undefined) {
2308
2312
  localVarQueryParameter['loan_asset'] = loanAsset;
2309
2313
  }
@@ -2527,15 +2531,16 @@ const QuoteApiFp = function (configuration) {
2527
2531
  * @param {number} [height] optional block height, defaults to current tip
2528
2532
  * @param {string} [asset] the asset used to repay the loan
2529
2533
  * @param {number} [amount] the asset amount in 1e8 decimals
2534
+ * @param {string} [fromAddress] the address that is paying off the loan
2530
2535
  * @param {string} [loanAsset] the collateral asset of the loan
2531
2536
  * @param {string} [loanOwner] the owner of the loan collateral
2532
2537
  * @param {string} [minOut] the minimum amount of the target asset to accept
2533
2538
  * @param {*} [options] Override http request option.
2534
2539
  * @throws {RequiredError}
2535
2540
  */
2536
- quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2541
+ quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2537
2542
  return __awaiter(this, void 0, void 0, function* () {
2538
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options);
2543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options);
2539
2544
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2540
2545
  });
2541
2546
  },
@@ -2621,14 +2626,15 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
2621
2626
  * @param {number} [height] optional block height, defaults to current tip
2622
2627
  * @param {string} [asset] the asset used to repay the loan
2623
2628
  * @param {number} [amount] the asset amount in 1e8 decimals
2629
+ * @param {string} [fromAddress] the address that is paying off the loan
2624
2630
  * @param {string} [loanAsset] the collateral asset of the loan
2625
2631
  * @param {string} [loanOwner] the owner of the loan collateral
2626
2632
  * @param {string} [minOut] the minimum amount of the target asset to accept
2627
2633
  * @param {*} [options] Override http request option.
2628
2634
  * @throws {RequiredError}
2629
2635
  */
2630
- quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2631
- return localVarFp.quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
2636
+ quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2637
+ return localVarFp.quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
2632
2638
  },
2633
2639
  /**
2634
2640
  * Provide a quote estimate for the provided loan open.
@@ -2700,6 +2706,7 @@ class QuoteApi extends BaseAPI {
2700
2706
  * @param {number} [height] optional block height, defaults to current tip
2701
2707
  * @param {string} [asset] the asset used to repay the loan
2702
2708
  * @param {number} [amount] the asset amount in 1e8 decimals
2709
+ * @param {string} [fromAddress] the address that is paying off the loan
2703
2710
  * @param {string} [loanAsset] the collateral asset of the loan
2704
2711
  * @param {string} [loanOwner] the owner of the loan collateral
2705
2712
  * @param {string} [minOut] the minimum amount of the target asset to accept
@@ -2707,8 +2714,8 @@ class QuoteApi extends BaseAPI {
2707
2714
  * @throws {RequiredError}
2708
2715
  * @memberof QuoteApi
2709
2716
  */
2710
- quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options) {
2711
- return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
2717
+ quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options) {
2718
+ return QuoteApiFp(this.configuration).quoteloanclose(height, asset, amount, fromAddress, loanAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
2712
2719
  }
2713
2720
  /**
2714
2721
  * Provide a quote estimate for the provided loan open.
@@ -3976,7 +3983,7 @@ class VaultsApi extends BaseAPI {
3976
3983
  * Thornode API
3977
3984
  * Thornode REST API.
3978
3985
  *
3979
- * The version of the OpenAPI document: 1.108.3
3986
+ * The version of the OpenAPI document: 1.110.0
3980
3987
  * Contact: devs@thorchain.org
3981
3988
  *
3982
3989
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).