@ember-finance/sdk 1.0.15 → 1.0.16
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/dist/src/vaults/api/apis/vaults-api.d.ts +30 -0
- package/dist/src/vaults/api/apis/vaults-api.js +64 -0
- package/dist/src/vaults/api/models/index.d.ts +1 -0
- package/dist/src/vaults/api/models/index.js +1 -0
- package/dist/src/vaults/api/models/vault-detail.d.ts +12 -0
- package/dist/src/vaults/api/models/vaults-stats.d.ts +42 -0
- package/dist/src/vaults/api/models/vaults-stats.js +15 -0
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ import type { Strategy } from "../models";
|
|
|
25
25
|
import type { TvlHistory } from "../models";
|
|
26
26
|
import type { UpdateVaultStrategies } from "../models";
|
|
27
27
|
import type { VaultDetail } from "../models";
|
|
28
|
+
import type { VaultsStats } from "../models";
|
|
28
29
|
/**
|
|
29
30
|
* VaultsApi - axios parameter creator
|
|
30
31
|
* @export
|
|
@@ -139,6 +140,13 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
139
140
|
* @throws {RequiredError}
|
|
140
141
|
*/
|
|
141
142
|
getVaultsProtocolInfo: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @summary Get stats for all vaults or a specific vault
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
getVaultsStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
142
150
|
/**
|
|
143
151
|
*
|
|
144
152
|
* @summary Update the strategy of the vault
|
|
@@ -262,6 +270,13 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
262
270
|
* @throws {RequiredError}
|
|
263
271
|
*/
|
|
264
272
|
getVaultsProtocolInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProtocolInfo>>;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary Get stats for all vaults or a specific vault
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
getVaultsStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultsStats>>;
|
|
265
280
|
/**
|
|
266
281
|
*
|
|
267
282
|
* @summary Update the strategy of the vault
|
|
@@ -385,6 +400,13 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
385
400
|
* @throws {RequiredError}
|
|
386
401
|
*/
|
|
387
402
|
getVaultsProtocolInfo(options?: RawAxiosRequestConfig): AxiosPromise<ProtocolInfo>;
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @summary Get stats for all vaults or a specific vault
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
getVaultsStats(options?: RawAxiosRequestConfig): AxiosPromise<VaultsStats>;
|
|
388
410
|
/**
|
|
389
411
|
*
|
|
390
412
|
* @summary Update the strategy of the vault
|
|
@@ -522,6 +544,14 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
522
544
|
* @memberof VaultsApi
|
|
523
545
|
*/
|
|
524
546
|
getVaultsProtocolInfo(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProtocolInfo, any, {}>>;
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @summary Get stats for all vaults or a specific vault
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
* @memberof VaultsApi
|
|
553
|
+
*/
|
|
554
|
+
getVaultsStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultsStats, any, {}>>;
|
|
525
555
|
/**
|
|
526
556
|
*
|
|
527
557
|
* @summary Update the strategy of the vault
|
|
@@ -473,6 +473,35 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
473
473
|
options: localVarRequestOptions
|
|
474
474
|
};
|
|
475
475
|
},
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @summary Get stats for all vaults or a specific vault
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
getVaultsStats: async (options = {}) => {
|
|
483
|
+
const localVarPath = `/api/v1/vaults/stats`;
|
|
484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
485
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
486
|
+
let baseOptions;
|
|
487
|
+
if (configuration) {
|
|
488
|
+
baseOptions = configuration.baseOptions;
|
|
489
|
+
}
|
|
490
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
491
|
+
const localVarHeaderParameter = {};
|
|
492
|
+
const localVarQueryParameter = {};
|
|
493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
495
|
+
localVarRequestOptions.headers = {
|
|
496
|
+
...localVarHeaderParameter,
|
|
497
|
+
...headersFromBaseOptions,
|
|
498
|
+
...options.headers
|
|
499
|
+
};
|
|
500
|
+
return {
|
|
501
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
502
|
+
options: localVarRequestOptions
|
|
503
|
+
};
|
|
504
|
+
},
|
|
476
505
|
/**
|
|
477
506
|
*
|
|
478
507
|
* @summary Update the strategy of the vault
|
|
@@ -687,6 +716,18 @@ const VaultsApiFp = function (configuration) {
|
|
|
687
716
|
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
|
|
688
717
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
689
718
|
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @summary Get stats for all vaults or a specific vault
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
async getVaultsStats(options) {
|
|
726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(options);
|
|
727
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
728
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
|
|
729
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
730
|
+
},
|
|
690
731
|
/**
|
|
691
732
|
*
|
|
692
733
|
* @summary Update the strategy of the vault
|
|
@@ -867,6 +908,17 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
867
908
|
.getVaultsProtocolInfo(options)
|
|
868
909
|
.then(request => request(axios, basePath));
|
|
869
910
|
},
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @summary Get stats for all vaults or a specific vault
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
getVaultsStats(options) {
|
|
918
|
+
return localVarFp
|
|
919
|
+
.getVaultsStats(options)
|
|
920
|
+
.then(request => request(axios, basePath));
|
|
921
|
+
},
|
|
870
922
|
/**
|
|
871
923
|
*
|
|
872
924
|
* @summary Update the strategy of the vault
|
|
@@ -1058,6 +1110,18 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1058
1110
|
.getVaultsProtocolInfo(options)
|
|
1059
1111
|
.then(request => request(this.axios, this.basePath));
|
|
1060
1112
|
}
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @summary Get stats for all vaults or a specific vault
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
* @memberof VaultsApi
|
|
1119
|
+
*/
|
|
1120
|
+
getVaultsStats(options) {
|
|
1121
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1122
|
+
.getVaultsStats(options)
|
|
1123
|
+
.then(request => request(this.axios, this.basePath));
|
|
1124
|
+
}
|
|
1061
1125
|
/**
|
|
1062
1126
|
*
|
|
1063
1127
|
* @summary Update the strategy of the vault
|
|
@@ -60,4 +60,5 @@ export * from "./vault-rate-updated-event";
|
|
|
60
60
|
export * from "./vault-slice";
|
|
61
61
|
export * from "./vault-sub-account-updated-event";
|
|
62
62
|
export * from "./vault-withdrawal-without-redeeming-shares-event";
|
|
63
|
+
export * from "./vaults-stats";
|
|
63
64
|
export * from "./yield-aggregate-value";
|
|
@@ -76,4 +76,5 @@ __exportStar(require("./vault-rate-updated-event"), exports);
|
|
|
76
76
|
__exportStar(require("./vault-slice"), exports);
|
|
77
77
|
__exportStar(require("./vault-sub-account-updated-event"), exports);
|
|
78
78
|
__exportStar(require("./vault-withdrawal-without-redeeming-shares-event"), exports);
|
|
79
|
+
__exportStar(require("./vaults-stats"), exports);
|
|
79
80
|
__exportStar(require("./yield-aggregate-value"), exports);
|
|
@@ -75,6 +75,18 @@ export interface VaultDetail {
|
|
|
75
75
|
* @memberof VaultDetail
|
|
76
76
|
*/
|
|
77
77
|
internalType?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The total number of depositors of the vault
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof VaultDetail
|
|
82
|
+
*/
|
|
83
|
+
totalDepositorsCount: string;
|
|
84
|
+
/**
|
|
85
|
+
* The number of active depositors of the vault
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof VaultDetail
|
|
88
|
+
*/
|
|
89
|
+
activeDepositorsCount: string;
|
|
78
90
|
/**
|
|
79
91
|
*
|
|
80
92
|
* @type {Asset}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ember Protocol Vaults API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VaultsStats
|
|
16
|
+
*/
|
|
17
|
+
export interface VaultsStats {
|
|
18
|
+
/**
|
|
19
|
+
* The total number of depositors of the vault
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VaultsStats
|
|
22
|
+
*/
|
|
23
|
+
totalDepositorsCount: string;
|
|
24
|
+
/**
|
|
25
|
+
* The number of active depositors of the vault
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VaultsStats
|
|
28
|
+
*/
|
|
29
|
+
activeDepositorsCount: string;
|
|
30
|
+
/**
|
|
31
|
+
* The total TVL of the vault in e9
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VaultsStats
|
|
34
|
+
*/
|
|
35
|
+
tvlE9: string;
|
|
36
|
+
/**
|
|
37
|
+
* The total PNL of the vault in e9
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VaultsStats
|
|
40
|
+
*/
|
|
41
|
+
totalPnlE9: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ember Protocol Vaults API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|