@ember-finance/sdk 1.4.4 → 1.4.6
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/api/v2/apis/vaults-api.d.ts +38 -0
- package/dist/src/api/v2/apis/vaults-api.js +78 -0
- package/dist/src/api/v2/models/index.d.ts +1 -0
- package/dist/src/api/v2/models/index.js +1 -0
- package/dist/src/api/v2/models/vault-deposit-eligibility.d.ts +24 -0
- package/dist/src/api/v2/models/vault-deposit-eligibility.js +15 -0
- package/dist/src/api/v2/models/vault-detail.d.ts +12 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ import type { ProtocolTvlHistory } from "../models";
|
|
|
26
26
|
import type { SharePriceHistory } from "../models";
|
|
27
27
|
import type { Tag } from "../models";
|
|
28
28
|
import type { TvlHistory } from "../models";
|
|
29
|
+
import type { VaultDepositEligibility } from "../models";
|
|
29
30
|
import type { VaultDetail } from "../models";
|
|
30
31
|
import type { VaultsDeploymentConfig } from "../models";
|
|
31
32
|
import type { VaultsStats } from "../models";
|
|
@@ -103,6 +104,15 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
103
104
|
* @throws {RequiredError}
|
|
104
105
|
*/
|
|
105
106
|
getVaultApyHistory: (vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
110
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
111
|
+
* @param {string} accountAddress The account address to check
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getVaultDepositEligibility: (vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
106
116
|
/**
|
|
107
117
|
*
|
|
108
118
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -241,6 +251,15 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
241
251
|
* @throws {RequiredError}
|
|
242
252
|
*/
|
|
243
253
|
getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApyHistoryResponse>>;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
257
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
258
|
+
* @param {string} accountAddress The account address to check
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
getVaultDepositEligibility(vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultDepositEligibility>>;
|
|
244
263
|
/**
|
|
245
264
|
*
|
|
246
265
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -379,6 +398,15 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
379
398
|
* @throws {RequiredError}
|
|
380
399
|
*/
|
|
381
400
|
getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<ApyHistoryResponse>;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
404
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
405
|
+
* @param {string} accountAddress The account address to check
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
getVaultDepositEligibility(vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<VaultDepositEligibility>;
|
|
382
410
|
/**
|
|
383
411
|
*
|
|
384
412
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -527,6 +555,16 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
527
555
|
* @memberof VaultsApi
|
|
528
556
|
*/
|
|
529
557
|
getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApyHistoryResponse, any, {}>>;
|
|
558
|
+
/**
|
|
559
|
+
*
|
|
560
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
561
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
562
|
+
* @param {string} accountAddress The account address to check
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
* @memberof VaultsApi
|
|
566
|
+
*/
|
|
567
|
+
getVaultDepositEligibility(vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultDepositEligibility, any, {}>>;
|
|
530
568
|
/**
|
|
531
569
|
*
|
|
532
570
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -319,6 +319,43 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
319
319
|
options: localVarRequestOptions
|
|
320
320
|
};
|
|
321
321
|
},
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
325
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
326
|
+
* @param {string} accountAddress The account address to check
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
getVaultDepositEligibility: async (vaultId, accountAddress, options = {}) => {
|
|
331
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
332
|
+
(0, common_1.assertParamExists)("getVaultDepositEligibility", "vaultId", vaultId);
|
|
333
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
334
|
+
(0, common_1.assertParamExists)("getVaultDepositEligibility", "accountAddress", accountAddress);
|
|
335
|
+
const localVarPath = `/api/v2/vaults/{vaultId}/deposit-eligibility/{accountAddress}`
|
|
336
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)))
|
|
337
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
338
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
339
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
340
|
+
let baseOptions;
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
}
|
|
344
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
345
|
+
const localVarHeaderParameter = {};
|
|
346
|
+
const localVarQueryParameter = {};
|
|
347
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
349
|
+
localVarRequestOptions.headers = {
|
|
350
|
+
...localVarHeaderParameter,
|
|
351
|
+
...headersFromBaseOptions,
|
|
352
|
+
...options.headers
|
|
353
|
+
};
|
|
354
|
+
return {
|
|
355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions
|
|
357
|
+
};
|
|
358
|
+
},
|
|
322
359
|
/**
|
|
323
360
|
*
|
|
324
361
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -695,6 +732,20 @@ const VaultsApiFp = function (configuration) {
|
|
|
695
732
|
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
|
|
696
733
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
697
734
|
},
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
738
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
739
|
+
* @param {string} accountAddress The account address to check
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
async getVaultDepositEligibility(vaultId, accountAddress, options) {
|
|
744
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultDepositEligibility(vaultId, accountAddress, options);
|
|
745
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
746
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultDepositEligibility"]?.[localVarOperationServerIndex]?.url;
|
|
747
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
748
|
+
},
|
|
698
749
|
/**
|
|
699
750
|
*
|
|
700
751
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -905,6 +956,19 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
905
956
|
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
906
957
|
.then(request => request(axios, basePath));
|
|
907
958
|
},
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
962
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
963
|
+
* @param {string} accountAddress The account address to check
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
getVaultDepositEligibility(vaultId, accountAddress, options) {
|
|
968
|
+
return localVarFp
|
|
969
|
+
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
970
|
+
.then(request => request(axios, basePath));
|
|
971
|
+
},
|
|
908
972
|
/**
|
|
909
973
|
*
|
|
910
974
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -1115,6 +1179,20 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1115
1179
|
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
1116
1180
|
.then(request => request(this.axios, this.basePath));
|
|
1117
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
*
|
|
1184
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
1185
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
1186
|
+
* @param {string} accountAddress The account address to check
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
* @memberof VaultsApi
|
|
1190
|
+
*/
|
|
1191
|
+
getVaultDepositEligibility(vaultId, accountAddress, options) {
|
|
1192
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1193
|
+
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
1194
|
+
.then(request => request(this.axios, this.basePath));
|
|
1195
|
+
}
|
|
1118
1196
|
/**
|
|
1119
1197
|
*
|
|
1120
1198
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -77,6 +77,7 @@ export * from "./ultra-coin-info";
|
|
|
77
77
|
export * from "./update-vault-strategies";
|
|
78
78
|
export * from "./vault-admin-changed-event";
|
|
79
79
|
export * from "./vault-created-event";
|
|
80
|
+
export * from "./vault-deposit-eligibility";
|
|
80
81
|
export * from "./vault-deposit-event";
|
|
81
82
|
export * from "./vault-deposit-without-minting-shares-event";
|
|
82
83
|
export * from "./vault-detail";
|
|
@@ -93,6 +93,7 @@ __exportStar(require("./ultra-coin-info"), exports);
|
|
|
93
93
|
__exportStar(require("./update-vault-strategies"), exports);
|
|
94
94
|
__exportStar(require("./vault-admin-changed-event"), exports);
|
|
95
95
|
__exportStar(require("./vault-created-event"), exports);
|
|
96
|
+
__exportStar(require("./vault-deposit-eligibility"), exports);
|
|
96
97
|
__exportStar(require("./vault-deposit-event"), exports);
|
|
97
98
|
__exportStar(require("./vault-deposit-without-minting-shares-event"), exports);
|
|
98
99
|
__exportStar(require("./vault-detail"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
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: 2.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 VaultDepositEligibility
|
|
16
|
+
*/
|
|
17
|
+
export interface VaultDepositEligibility {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the account is allowed to deposit in the vault
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof VaultDepositEligibility
|
|
22
|
+
*/
|
|
23
|
+
isAllowed: boolean;
|
|
24
|
+
}
|
|
@@ -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: 2.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 });
|
|
@@ -211,6 +211,18 @@ export interface VaultDetail {
|
|
|
211
211
|
* @memberof VaultDetail
|
|
212
212
|
*/
|
|
213
213
|
apyAverages: ApyAverages;
|
|
214
|
+
/**
|
|
215
|
+
* Whether the vault is private
|
|
216
|
+
* @type {boolean}
|
|
217
|
+
* @memberof VaultDetail
|
|
218
|
+
*/
|
|
219
|
+
isPrivate: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* The redemption price of the vault in e9 form
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof VaultDetail
|
|
224
|
+
*/
|
|
225
|
+
redemptionPriceE9?: string;
|
|
214
226
|
}
|
|
215
227
|
export declare const VaultDetailStatusEnum: {
|
|
216
228
|
readonly Active: "active";
|