@ember-finance/sdk 1.0.28 → 1.0.29

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.
@@ -153,11 +153,10 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
153
153
  /**
154
154
  *
155
155
  * @summary Get stats for all vaults or a specific vault
156
- * @param {string} [chain] The identifier of the chain
157
156
  * @param {*} [options] Override http request option.
158
157
  * @throws {RequiredError}
159
158
  */
160
- getVaultsStats: (chain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
159
+ getVaultsStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
161
160
  };
162
161
  /**
163
162
  * VaultsApi - functional programming interface
@@ -284,11 +283,10 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
284
283
  /**
285
284
  *
286
285
  * @summary Get stats for all vaults or a specific vault
287
- * @param {string} [chain] The identifier of the chain
288
286
  * @param {*} [options] Override http request option.
289
287
  * @throws {RequiredError}
290
288
  */
291
- getVaultsStats(chain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultsStats>>;
289
+ getVaultsStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultsStats>>;
292
290
  };
293
291
  /**
294
292
  * VaultsApi - factory interface
@@ -415,11 +413,10 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
415
413
  /**
416
414
  *
417
415
  * @summary Get stats for all vaults or a specific vault
418
- * @param {string} [chain] The identifier of the chain
419
416
  * @param {*} [options] Override http request option.
420
417
  * @throws {RequiredError}
421
418
  */
422
- getVaultsStats(chain?: string, options?: RawAxiosRequestConfig): AxiosPromise<VaultsStats>;
419
+ getVaultsStats(options?: RawAxiosRequestConfig): AxiosPromise<VaultsStats>;
423
420
  };
424
421
  /**
425
422
  * VaultsApi - object-oriented interface
@@ -561,10 +558,9 @@ export declare class VaultsApi extends BaseAPI {
561
558
  /**
562
559
  *
563
560
  * @summary Get stats for all vaults or a specific vault
564
- * @param {string} [chain] The identifier of the chain
565
561
  * @param {*} [options] Override http request option.
566
562
  * @throws {RequiredError}
567
563
  * @memberof VaultsApi
568
564
  */
569
- getVaultsStats(chain?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultsStats, any, {}>>;
565
+ getVaultsStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultsStats, any, {}>>;
570
566
  }
@@ -512,11 +512,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
512
512
  /**
513
513
  *
514
514
  * @summary Get stats for all vaults or a specific vault
515
- * @param {string} [chain] The identifier of the chain
516
515
  * @param {*} [options] Override http request option.
517
516
  * @throws {RequiredError}
518
517
  */
519
- getVaultsStats: async (chain, options = {}) => {
518
+ getVaultsStats: async (options = {}) => {
520
519
  const localVarPath = `/api/v2/vaults/stats`;
521
520
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
522
521
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -527,9 +526,6 @@ const VaultsApiAxiosParamCreator = function (configuration) {
527
526
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
528
527
  const localVarHeaderParameter = {};
529
528
  const localVarQueryParameter = {};
530
- if (chain !== undefined) {
531
- localVarQueryParameter["chain"] = chain;
532
- }
533
529
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
534
530
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
531
  localVarRequestOptions.headers = {
@@ -740,12 +736,11 @@ const VaultsApiFp = function (configuration) {
740
736
  /**
741
737
  *
742
738
  * @summary Get stats for all vaults or a specific vault
743
- * @param {string} [chain] The identifier of the chain
744
739
  * @param {*} [options] Override http request option.
745
740
  * @throws {RequiredError}
746
741
  */
747
- async getVaultsStats(chain, options) {
748
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(chain, options);
742
+ async getVaultsStats(options) {
743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(options);
749
744
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
750
745
  const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
751
746
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -932,13 +927,12 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
932
927
  /**
933
928
  *
934
929
  * @summary Get stats for all vaults or a specific vault
935
- * @param {string} [chain] The identifier of the chain
936
930
  * @param {*} [options] Override http request option.
937
931
  * @throws {RequiredError}
938
932
  */
939
- getVaultsStats(chain, options) {
933
+ getVaultsStats(options) {
940
934
  return localVarFp
941
- .getVaultsStats(chain, options)
935
+ .getVaultsStats(options)
942
936
  .then(request => request(axios, basePath));
943
937
  }
944
938
  };
@@ -1136,14 +1130,13 @@ class VaultsApi extends base_1.BaseAPI {
1136
1130
  /**
1137
1131
  *
1138
1132
  * @summary Get stats for all vaults or a specific vault
1139
- * @param {string} [chain] The identifier of the chain
1140
1133
  * @param {*} [options] Override http request option.
1141
1134
  * @throws {RequiredError}
1142
1135
  * @memberof VaultsApi
1143
1136
  */
1144
- getVaultsStats(chain, options) {
1137
+ getVaultsStats(options) {
1145
1138
  return (0, exports.VaultsApiFp)(this.configuration)
1146
- .getVaultsStats(chain, options)
1139
+ .getVaultsStats(options)
1147
1140
  .then(request => request(this.axios, this.basePath));
1148
1141
  }
1149
1142
  }
@@ -39,4 +39,10 @@ export interface ApyHistory {
39
39
  * @memberof ApyHistory
40
40
  */
41
41
  lendingApyE9: string;
42
+ /**
43
+ * The reward apy of the event
44
+ * @type {string}
45
+ * @memberof ApyHistory
46
+ */
47
+ rewardApyE9: string;
42
48
  }
@@ -17,6 +17,18 @@ import type { SubAccount } from "./sub-account";
17
17
  * @interface ChainVaultDetails
18
18
  */
19
19
  export interface ChainVaultDetails {
20
+ /**
21
+ * The offchain id of the vault
22
+ * @type {string}
23
+ * @memberof ChainVaultDetails
24
+ */
25
+ id: string;
26
+ /**
27
+ * The chain identifier of the vault
28
+ * @type {string}
29
+ * @memberof ChainVaultDetails
30
+ */
31
+ chainIdentifier: string;
20
32
  /**
21
33
  * The address of the vault
22
34
  * @type {string}
@@ -39,4 +39,10 @@ export interface ReportedApy {
39
39
  * @memberof ReportedApy
40
40
  */
41
41
  updatedAt: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ReportedApy
46
+ */
47
+ rewardApyE9: string;
42
48
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "1.0.28",
4
+ "version": "1.0.29",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",