@ember-finance/sdk 2.0.0-beta.0 → 2.0.0-beta.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.
- 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 +14 -0
- package/dist/src/api/v2/models/vault-detail.d.ts +6 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ import type { ProtocolTvlHistory } from "../models/index.js";
|
|
|
26
26
|
import type { SharePriceHistory } from "../models/index.js";
|
|
27
27
|
import type { Tag } from "../models/index.js";
|
|
28
28
|
import type { TvlHistory } from "../models/index.js";
|
|
29
|
+
import type { VaultDepositEligibility } from "../models/index.js";
|
|
29
30
|
import type { VaultDetail } from "../models/index.js";
|
|
30
31
|
import type { VaultsDeploymentConfig } from "../models/index.js";
|
|
31
32
|
import type { VaultsStats } from "../models/index.js";
|
|
@@ -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
|
|
@@ -313,6 +313,43 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
313
313
|
options: localVarRequestOptions
|
|
314
314
|
};
|
|
315
315
|
},
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
319
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
320
|
+
* @param {string} accountAddress The account address to check
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
getVaultDepositEligibility: async (vaultId, accountAddress, options = {}) => {
|
|
325
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
326
|
+
assertParamExists("getVaultDepositEligibility", "vaultId", vaultId);
|
|
327
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
328
|
+
assertParamExists("getVaultDepositEligibility", "accountAddress", accountAddress);
|
|
329
|
+
const localVarPath = `/api/v2/vaults/{vaultId}/deposit-eligibility/{accountAddress}`
|
|
330
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)))
|
|
331
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
332
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
333
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
334
|
+
let baseOptions;
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
}
|
|
338
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
339
|
+
const localVarHeaderParameter = {};
|
|
340
|
+
const localVarQueryParameter = {};
|
|
341
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
342
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
+
localVarRequestOptions.headers = {
|
|
344
|
+
...localVarHeaderParameter,
|
|
345
|
+
...headersFromBaseOptions,
|
|
346
|
+
...options.headers
|
|
347
|
+
};
|
|
348
|
+
return {
|
|
349
|
+
url: toPathString(localVarUrlObj),
|
|
350
|
+
options: localVarRequestOptions
|
|
351
|
+
};
|
|
352
|
+
},
|
|
316
353
|
/**
|
|
317
354
|
*
|
|
318
355
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -688,6 +725,20 @@ export const VaultsApiFp = function (configuration) {
|
|
|
688
725
|
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
|
|
689
726
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
690
727
|
},
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
731
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
732
|
+
* @param {string} accountAddress The account address to check
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
async getVaultDepositEligibility(vaultId, accountAddress, options) {
|
|
737
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultDepositEligibility(vaultId, accountAddress, options);
|
|
738
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
739
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultDepositEligibility"]?.[localVarOperationServerIndex]?.url;
|
|
740
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
741
|
+
},
|
|
691
742
|
/**
|
|
692
743
|
*
|
|
693
744
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -897,6 +948,19 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
897
948
|
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
898
949
|
.then(request => request(axios, basePath));
|
|
899
950
|
},
|
|
951
|
+
/**
|
|
952
|
+
*
|
|
953
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
954
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
955
|
+
* @param {string} accountAddress The account address to check
|
|
956
|
+
* @param {*} [options] Override http request option.
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
getVaultDepositEligibility(vaultId, accountAddress, options) {
|
|
960
|
+
return localVarFp
|
|
961
|
+
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
962
|
+
.then(request => request(axios, basePath));
|
|
963
|
+
},
|
|
900
964
|
/**
|
|
901
965
|
*
|
|
902
966
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -1106,6 +1170,20 @@ export class VaultsApi extends BaseAPI {
|
|
|
1106
1170
|
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
1107
1171
|
.then(request => request(this.axios, this.basePath));
|
|
1108
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
* @summary Get whether an account is allowed to deposit in a vault
|
|
1176
|
+
* @param {string} vaultId The offchain id of the parent vault
|
|
1177
|
+
* @param {string} accountAddress The account address to check
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
* @memberof VaultsApi
|
|
1181
|
+
*/
|
|
1182
|
+
getVaultDepositEligibility(vaultId, accountAddress, options) {
|
|
1183
|
+
return VaultsApiFp(this.configuration)
|
|
1184
|
+
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
1185
|
+
.then(request => request(this.axios, this.basePath));
|
|
1186
|
+
}
|
|
1109
1187
|
/**
|
|
1110
1188
|
*
|
|
1111
1189
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -77,6 +77,7 @@ export * from "./ultra-coin-info.js";
|
|
|
77
77
|
export * from "./update-vault-strategies.js";
|
|
78
78
|
export * from "./vault-admin-changed-event.js";
|
|
79
79
|
export * from "./vault-created-event.js";
|
|
80
|
+
export * from "./vault-deposit-eligibility.js";
|
|
80
81
|
export * from "./vault-deposit-event.js";
|
|
81
82
|
export * from "./vault-deposit-without-minting-shares-event.js";
|
|
82
83
|
export * from "./vault-detail.js";
|
|
@@ -77,6 +77,7 @@ export * from "./ultra-coin-info.js";
|
|
|
77
77
|
export * from "./update-vault-strategies.js";
|
|
78
78
|
export * from "./vault-admin-changed-event.js";
|
|
79
79
|
export * from "./vault-created-event.js";
|
|
80
|
+
export * from "./vault-deposit-eligibility.js";
|
|
80
81
|
export * from "./vault-deposit-event.js";
|
|
81
82
|
export * from "./vault-deposit-without-minting-shares-event.js";
|
|
82
83
|
export * from "./vault-detail.js";
|
|
@@ -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,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Ember Protocol Vaults API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -211,6 +211,12 @@ 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;
|
|
214
220
|
}
|
|
215
221
|
export declare const VaultDetailStatusEnum: {
|
|
216
222
|
readonly Active: "active";
|