@ember-finance/sdk 2.2.0-rc.1 → 2.2.0-rc.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.
|
@@ -28,7 +28,6 @@ import type { Tag } from "../models/index.js";
|
|
|
28
28
|
import type { TvlHistory } from "../models/index.js";
|
|
29
29
|
import type { VaultDepositEligibility } from "../models/index.js";
|
|
30
30
|
import type { VaultDetail } from "../models/index.js";
|
|
31
|
-
import type { VaultParkingLotInfo } from "../models/index.js";
|
|
32
31
|
import type { VaultsDeploymentConfig } from "../models/index.js";
|
|
33
32
|
import type { VaultsStats } from "../models/index.js";
|
|
34
33
|
/**
|
|
@@ -114,14 +113,6 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
114
113
|
* @throws {RequiredError}
|
|
115
114
|
*/
|
|
116
115
|
getVaultDepositEligibility: (vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
120
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
121
|
-
* @param {*} [options] Override http request option.
|
|
122
|
-
* @throws {RequiredError}
|
|
123
|
-
*/
|
|
124
|
-
getVaultParkingLotInfo: (vaultId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
125
116
|
/**
|
|
126
117
|
*
|
|
127
118
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -269,14 +260,6 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
269
260
|
* @throws {RequiredError}
|
|
270
261
|
*/
|
|
271
262
|
getVaultDepositEligibility(vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultDepositEligibility>>;
|
|
272
|
-
/**
|
|
273
|
-
*
|
|
274
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
275
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
276
|
-
* @param {*} [options] Override http request option.
|
|
277
|
-
* @throws {RequiredError}
|
|
278
|
-
*/
|
|
279
|
-
getVaultParkingLotInfo(vaultId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultParkingLotInfo>>;
|
|
280
263
|
/**
|
|
281
264
|
*
|
|
282
265
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -424,14 +407,6 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
424
407
|
* @throws {RequiredError}
|
|
425
408
|
*/
|
|
426
409
|
getVaultDepositEligibility(vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<VaultDepositEligibility>;
|
|
427
|
-
/**
|
|
428
|
-
*
|
|
429
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
430
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
431
|
-
* @param {*} [options] Override http request option.
|
|
432
|
-
* @throws {RequiredError}
|
|
433
|
-
*/
|
|
434
|
-
getVaultParkingLotInfo(vaultId: string, options?: RawAxiosRequestConfig): AxiosPromise<VaultParkingLotInfo>;
|
|
435
410
|
/**
|
|
436
411
|
*
|
|
437
412
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -590,15 +565,6 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
590
565
|
* @memberof VaultsApi
|
|
591
566
|
*/
|
|
592
567
|
getVaultDepositEligibility(vaultId: string, accountAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultDepositEligibility, any, {}>>;
|
|
593
|
-
/**
|
|
594
|
-
*
|
|
595
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
596
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
597
|
-
* @param {*} [options] Override http request option.
|
|
598
|
-
* @throws {RequiredError}
|
|
599
|
-
* @memberof VaultsApi
|
|
600
|
-
*/
|
|
601
|
-
getVaultParkingLotInfo(vaultId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultParkingLotInfo, any, {}>>;
|
|
602
568
|
/**
|
|
603
569
|
*
|
|
604
570
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -350,38 +350,6 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
350
350
|
options: localVarRequestOptions
|
|
351
351
|
};
|
|
352
352
|
},
|
|
353
|
-
/**
|
|
354
|
-
*
|
|
355
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
356
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
357
|
-
* @param {*} [options] Override http request option.
|
|
358
|
-
* @throws {RequiredError}
|
|
359
|
-
*/
|
|
360
|
-
getVaultParkingLotInfo: async (vaultId, options = {}) => {
|
|
361
|
-
// verify required parameter 'vaultId' is not null or undefined
|
|
362
|
-
assertParamExists("getVaultParkingLotInfo", "vaultId", vaultId);
|
|
363
|
-
const localVarPath = `/api/v2/vaults/parking-lot/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
364
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
365
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
366
|
-
let baseOptions;
|
|
367
|
-
if (configuration) {
|
|
368
|
-
baseOptions = configuration.baseOptions;
|
|
369
|
-
}
|
|
370
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
371
|
-
const localVarHeaderParameter = {};
|
|
372
|
-
const localVarQueryParameter = {};
|
|
373
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
374
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
-
localVarRequestOptions.headers = {
|
|
376
|
-
...localVarHeaderParameter,
|
|
377
|
-
...headersFromBaseOptions,
|
|
378
|
-
...options.headers
|
|
379
|
-
};
|
|
380
|
-
return {
|
|
381
|
-
url: toPathString(localVarUrlObj),
|
|
382
|
-
options: localVarRequestOptions
|
|
383
|
-
};
|
|
384
|
-
},
|
|
385
353
|
/**
|
|
386
354
|
*
|
|
387
355
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -771,19 +739,6 @@ export const VaultsApiFp = function (configuration) {
|
|
|
771
739
|
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultDepositEligibility"]?.[localVarOperationServerIndex]?.url;
|
|
772
740
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
773
741
|
},
|
|
774
|
-
/**
|
|
775
|
-
*
|
|
776
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
777
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
778
|
-
* @param {*} [options] Override http request option.
|
|
779
|
-
* @throws {RequiredError}
|
|
780
|
-
*/
|
|
781
|
-
async getVaultParkingLotInfo(vaultId, options) {
|
|
782
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultParkingLotInfo(vaultId, options);
|
|
783
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
784
|
-
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultParkingLotInfo"]?.[localVarOperationServerIndex]?.url;
|
|
785
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
786
|
-
},
|
|
787
742
|
/**
|
|
788
743
|
*
|
|
789
744
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -1006,18 +961,6 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
1006
961
|
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
1007
962
|
.then(request => request(axios, basePath));
|
|
1008
963
|
},
|
|
1009
|
-
/**
|
|
1010
|
-
*
|
|
1011
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
1012
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
1013
|
-
* @param {*} [options] Override http request option.
|
|
1014
|
-
* @throws {RequiredError}
|
|
1015
|
-
*/
|
|
1016
|
-
getVaultParkingLotInfo(vaultId, options) {
|
|
1017
|
-
return localVarFp
|
|
1018
|
-
.getVaultParkingLotInfo(vaultId, options)
|
|
1019
|
-
.then(request => request(axios, basePath));
|
|
1020
|
-
},
|
|
1021
964
|
/**
|
|
1022
965
|
*
|
|
1023
966
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -1241,19 +1184,6 @@ export class VaultsApi extends BaseAPI {
|
|
|
1241
1184
|
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
1242
1185
|
.then(request => request(this.axios, this.basePath));
|
|
1243
1186
|
}
|
|
1244
|
-
/**
|
|
1245
|
-
*
|
|
1246
|
-
* @summary Get the deposit parking-lot configuration and queue summary of the vault
|
|
1247
|
-
* @param {string} vaultId The on-chain id of the vault
|
|
1248
|
-
* @param {*} [options] Override http request option.
|
|
1249
|
-
* @throws {RequiredError}
|
|
1250
|
-
* @memberof VaultsApi
|
|
1251
|
-
*/
|
|
1252
|
-
getVaultParkingLotInfo(vaultId, options) {
|
|
1253
|
-
return VaultsApiFp(this.configuration)
|
|
1254
|
-
.getVaultParkingLotInfo(vaultId, options)
|
|
1255
|
-
.then(request => request(this.axios, this.basePath));
|
|
1256
|
-
}
|
|
1257
1187
|
/**
|
|
1258
1188
|
*
|
|
1259
1189
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset.js";
|
|
13
13
|
import type { SubAccount } from "./sub-account.js";
|
|
14
|
+
import type { VaultParkingLotInfo } from "./vault-parking-lot-info.js";
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -90,9 +91,15 @@ export interface ChainVaultDetails {
|
|
|
90
91
|
*/
|
|
91
92
|
maxDepositsAllowed: string;
|
|
92
93
|
/**
|
|
93
|
-
* True if this on-chain vault gates deposits through a parking lot (async deposits)
|
|
94
|
+
* True if this on-chain vault gates deposits through a parking lot (async deposits) — i.e. it has an active deposit parking lot. Only set for EVM vaults; always false/absent for Sui. Convenience flag equivalent to `parkingLot != null`.
|
|
94
95
|
* @type {boolean}
|
|
95
96
|
* @memberof ChainVaultDetails
|
|
96
97
|
*/
|
|
97
98
|
hasAsyncDeposits?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {VaultParkingLotInfo}
|
|
102
|
+
* @memberof ChainVaultDetails
|
|
103
|
+
*/
|
|
104
|
+
parkingLot?: VaultParkingLotInfo;
|
|
98
105
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Deposit parking-lot (async deposits) configuration for an on-chain EVM vault. Embedded as the optional `parkingLot` object on each `detailsByChain` entry; present only when the vault has an active parking lot (never for Sui).
|
|
14
14
|
* @export
|
|
15
15
|
* @interface VaultParkingLotInfo
|
|
16
16
|
*/
|
|
@@ -45,16 +45,4 @@ export interface VaultParkingLotInfo {
|
|
|
45
45
|
* @memberof VaultParkingLotInfo
|
|
46
46
|
*/
|
|
47
47
|
nextProcessingAt?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Total collateral currently escrowed across pending deposit requests
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof VaultParkingLotInfo
|
|
52
|
-
*/
|
|
53
|
-
totalPendingAssets: string;
|
|
54
|
-
/**
|
|
55
|
-
* Number of pending deposit requests in the queue
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof VaultParkingLotInfo
|
|
58
|
-
*/
|
|
59
|
-
totalPendingCount: string;
|
|
60
48
|
}
|