@ember-finance/sdk 2.1.3 → 2.2.0-rc.0
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/abis/EmberDepositParkingLot.json +899 -0
- package/dist/src/abis/EmberProtocolConfig.json +20 -2
- package/dist/src/abis/EmberVault.json +143 -2
- package/dist/src/api/v2/apis/accounts-api.d.ts +110 -0
- package/dist/src/api/v2/apis/accounts-api.js +207 -0
- package/dist/src/api/v2/apis/vaults-api.d.ts +34 -0
- package/dist/src/api/v2/apis/vaults-api.js +70 -0
- package/dist/src/api/v2/models/account-parking-lot-claimable.d.ts +36 -0
- package/dist/src/api/v2/models/account-parking-lot-claimable.js +14 -0
- package/dist/src/api/v2/models/account-pending-deposit.d.ts +111 -0
- package/dist/src/api/v2/models/account-pending-deposit.js +19 -0
- package/dist/src/api/v2/models/chain-vault-details.d.ts +6 -0
- package/dist/src/api/v2/models/evm-contracts.d.ts +25 -0
- package/dist/src/api/v2/models/evm-deposit-parking-lot.d.ts +66 -0
- package/dist/src/api/v2/models/evm-deposit-parking-lot.js +14 -0
- package/dist/src/api/v2/models/evm-timelock.d.ts +60 -0
- package/dist/src/api/v2/models/evm-timelock.js +14 -0
- package/dist/src/api/v2/models/evm-vault-validator.d.ts +60 -0
- package/dist/src/api/v2/models/evm-vault-validator.js +14 -0
- package/dist/src/api/v2/models/evm-vault.d.ts +6 -0
- package/dist/src/api/v2/models/index.d.ts +6 -0
- package/dist/src/api/v2/models/index.js +6 -0
- package/dist/src/api/v2/models/vault-detail.d.ts +6 -0
- package/dist/src/api/v2/models/vault-parking-lot-info.d.ts +60 -0
- package/dist/src/api/v2/models/vault-parking-lot-info.js +14 -0
- package/dist/src/evm-vaults/interfaces/index.d.ts +35 -0
- package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +9 -0
- package/dist/src/evm-vaults/on-chain-calls/operator.js +13 -0
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +58 -0
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +122 -0
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +14 -0
- package/dist/src/evm-vaults/on-chain-calls/user.js +30 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +28 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +42 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +25 -1
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +53 -0
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +16 -0
- package/dist/src/evm-vaults/utils/deployment-parser.js +27 -0
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import type { Configuration } from "../configuration.js";
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
14
|
import { type RequestArgs, BaseAPI } from "../base.js";
|
|
15
|
+
import type { AccountParkingLotClaimable } from "../models/index.js";
|
|
16
|
+
import type { AccountPendingDeposit } from "../models/index.js";
|
|
15
17
|
import type { AccountTransaction } from "../models/index.js";
|
|
16
18
|
import type { AccountVaultPositionHistory } from "../models/index.js";
|
|
17
19
|
import type { AccountWithdrawalRequest } from "../models/index.js";
|
|
@@ -39,6 +41,30 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
39
41
|
* @throws {RequiredError}
|
|
40
42
|
*/
|
|
41
43
|
getAccountHistory: (accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
47
|
+
* @param {string} accountAddress The address of the account
|
|
48
|
+
* @param {string} [chain] Chain identifier
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
getAccountParkingLotClaimables: (accountAddress: string, chain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
56
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
57
|
+
* @param {number} startTimeInMs The start time of the events
|
|
58
|
+
* @param {string} [chain] Chain identifier
|
|
59
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
60
|
+
* @param {number} [limit] The limit of the events
|
|
61
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
62
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
63
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
getAccountPendingDeposits: (accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountPendingDepositsStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
68
|
/**
|
|
43
69
|
*
|
|
44
70
|
* @summary Get the positions history of the account
|
|
@@ -114,6 +140,30 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
114
140
|
* @throws {RequiredError}
|
|
115
141
|
*/
|
|
116
142
|
getAccountHistory(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountTransaction>>>;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
146
|
+
* @param {string} accountAddress The address of the account
|
|
147
|
+
* @param {string} [chain] Chain identifier
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
getAccountParkingLotClaimables(accountAddress: string, chain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountParkingLotClaimable>>>;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
155
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
156
|
+
* @param {number} startTimeInMs The start time of the events
|
|
157
|
+
* @param {string} [chain] Chain identifier
|
|
158
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
159
|
+
* @param {number} [limit] The limit of the events
|
|
160
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
161
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
162
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
getAccountPendingDeposits(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountPendingDepositsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountPendingDeposit>>>;
|
|
117
167
|
/**
|
|
118
168
|
*
|
|
119
169
|
* @summary Get the positions history of the account
|
|
@@ -189,6 +239,30 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
189
239
|
* @throws {RequiredError}
|
|
190
240
|
*/
|
|
191
241
|
getAccountHistory(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
245
|
+
* @param {string} accountAddress The address of the account
|
|
246
|
+
* @param {string} [chain] Chain identifier
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
getAccountParkingLotClaimables(accountAddress: string, chain?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountParkingLotClaimable>>;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
254
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
255
|
+
* @param {number} startTimeInMs The start time of the events
|
|
256
|
+
* @param {string} [chain] Chain identifier
|
|
257
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
258
|
+
* @param {number} [limit] The limit of the events
|
|
259
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
260
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
261
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
getAccountPendingDeposits(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountPendingDepositsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountPendingDeposit>>;
|
|
192
266
|
/**
|
|
193
267
|
*
|
|
194
268
|
* @summary Get the positions history of the account
|
|
@@ -267,6 +341,32 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
267
341
|
* @memberof AccountsApi
|
|
268
342
|
*/
|
|
269
343
|
getAccountHistory(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountTransaction[], any, {}>>;
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
347
|
+
* @param {string} accountAddress The address of the account
|
|
348
|
+
* @param {string} [chain] Chain identifier
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
* @memberof AccountsApi
|
|
352
|
+
*/
|
|
353
|
+
getAccountParkingLotClaimables(accountAddress: string, chain?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountParkingLotClaimable[], any, {}>>;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
357
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
358
|
+
* @param {number} startTimeInMs The start time of the events
|
|
359
|
+
* @param {string} [chain] Chain identifier
|
|
360
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
361
|
+
* @param {number} [limit] The limit of the events
|
|
362
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
363
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
364
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
* @memberof AccountsApi
|
|
368
|
+
*/
|
|
369
|
+
getAccountPendingDeposits(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountPendingDepositsStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountPendingDeposit[], any, {}>>;
|
|
270
370
|
/**
|
|
271
371
|
*
|
|
272
372
|
* @summary Get the positions history of the account
|
|
@@ -338,6 +438,16 @@ export declare const GetAccountHistoryTypeEnum: {
|
|
|
338
438
|
readonly RedeemRequestCancelled: "RedeemRequestCancelled";
|
|
339
439
|
};
|
|
340
440
|
export type GetAccountHistoryTypeEnum = (typeof GetAccountHistoryTypeEnum)[keyof typeof GetAccountHistoryTypeEnum];
|
|
441
|
+
/**
|
|
442
|
+
* @export
|
|
443
|
+
*/
|
|
444
|
+
export declare const GetAccountPendingDepositsStatusEnum: {
|
|
445
|
+
readonly Pending: "Pending";
|
|
446
|
+
readonly Cancelled: "Cancelled";
|
|
447
|
+
readonly Forwarded: "Forwarded";
|
|
448
|
+
readonly Skipped: "Skipped";
|
|
449
|
+
};
|
|
450
|
+
export type GetAccountPendingDepositsStatusEnum = (typeof GetAccountPendingDepositsStatusEnum)[keyof typeof GetAccountPendingDepositsStatusEnum];
|
|
341
451
|
/**
|
|
342
452
|
* @export
|
|
343
453
|
*/
|
|
@@ -85,6 +85,104 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
85
85
|
options: localVarRequestOptions
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
91
|
+
* @param {string} accountAddress The address of the account
|
|
92
|
+
* @param {string} [chain] Chain identifier
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
getAccountParkingLotClaimables: async (accountAddress, chain, options = {}) => {
|
|
97
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
98
|
+
assertParamExists("getAccountParkingLotClaimables", "accountAddress", accountAddress);
|
|
99
|
+
const localVarPath = `/api/v2/vaults/parking-lot-claimables/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102
|
+
let baseOptions;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
}
|
|
106
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
107
|
+
const localVarHeaderParameter = {};
|
|
108
|
+
const localVarQueryParameter = {};
|
|
109
|
+
if (chain !== undefined) {
|
|
110
|
+
localVarQueryParameter["chain"] = chain;
|
|
111
|
+
}
|
|
112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
114
|
+
localVarRequestOptions.headers = {
|
|
115
|
+
...localVarHeaderParameter,
|
|
116
|
+
...headersFromBaseOptions,
|
|
117
|
+
...options.headers
|
|
118
|
+
};
|
|
119
|
+
return {
|
|
120
|
+
url: toPathString(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
127
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
128
|
+
* @param {number} startTimeInMs The start time of the events
|
|
129
|
+
* @param {string} [chain] Chain identifier
|
|
130
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
131
|
+
* @param {number} [limit] The limit of the events
|
|
132
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
133
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
134
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
getAccountPendingDeposits: async (accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
139
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
140
|
+
assertParamExists("getAccountPendingDeposits", "accountAddress", accountAddress);
|
|
141
|
+
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
142
|
+
assertParamExists("getAccountPendingDeposits", "startTimeInMs", startTimeInMs);
|
|
143
|
+
const localVarPath = `/api/v2/vaults/pending-deposits/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146
|
+
let baseOptions;
|
|
147
|
+
if (configuration) {
|
|
148
|
+
baseOptions = configuration.baseOptions;
|
|
149
|
+
}
|
|
150
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
151
|
+
const localVarHeaderParameter = {};
|
|
152
|
+
const localVarQueryParameter = {};
|
|
153
|
+
if (chain !== undefined) {
|
|
154
|
+
localVarQueryParameter["chain"] = chain;
|
|
155
|
+
}
|
|
156
|
+
if (startTimeInMs !== undefined) {
|
|
157
|
+
localVarQueryParameter["startTimeInMs"] = startTimeInMs;
|
|
158
|
+
}
|
|
159
|
+
if (endTimeInMs !== undefined) {
|
|
160
|
+
localVarQueryParameter["endTimeInMs"] = endTimeInMs;
|
|
161
|
+
}
|
|
162
|
+
if (limit !== undefined) {
|
|
163
|
+
localVarQueryParameter["limit"] = limit;
|
|
164
|
+
}
|
|
165
|
+
if (page !== undefined) {
|
|
166
|
+
localVarQueryParameter["page"] = page;
|
|
167
|
+
}
|
|
168
|
+
if (vaultId !== undefined) {
|
|
169
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
170
|
+
}
|
|
171
|
+
if (status !== undefined) {
|
|
172
|
+
localVarQueryParameter["status"] = status;
|
|
173
|
+
}
|
|
174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = {
|
|
177
|
+
...localVarHeaderParameter,
|
|
178
|
+
...headersFromBaseOptions,
|
|
179
|
+
...options.headers
|
|
180
|
+
};
|
|
181
|
+
return {
|
|
182
|
+
url: toPathString(localVarUrlObj),
|
|
183
|
+
options: localVarRequestOptions
|
|
184
|
+
};
|
|
185
|
+
},
|
|
88
186
|
/**
|
|
89
187
|
*
|
|
90
188
|
* @summary Get the positions history of the account
|
|
@@ -334,6 +432,40 @@ export const AccountsApiFp = function (configuration) {
|
|
|
334
432
|
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
335
433
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
336
434
|
},
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
438
|
+
* @param {string} accountAddress The address of the account
|
|
439
|
+
* @param {string} [chain] Chain identifier
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
async getAccountParkingLotClaimables(accountAddress, chain, options) {
|
|
444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountParkingLotClaimables(accountAddress, chain, options);
|
|
445
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
446
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountParkingLotClaimables"]?.[localVarOperationServerIndex]?.url;
|
|
447
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
452
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
453
|
+
* @param {number} startTimeInMs The start time of the events
|
|
454
|
+
* @param {string} [chain] Chain identifier
|
|
455
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
456
|
+
* @param {number} [limit] The limit of the events
|
|
457
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
458
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
459
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
async getAccountPendingDeposits(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
464
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPendingDeposits(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options);
|
|
465
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
466
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountPendingDeposits"]?.[localVarOperationServerIndex]?.url;
|
|
467
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
468
|
+
},
|
|
337
469
|
/**
|
|
338
470
|
*
|
|
339
471
|
* @summary Get the positions history of the account
|
|
@@ -441,6 +573,38 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
441
573
|
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
442
574
|
.then(request => request(axios, basePath));
|
|
443
575
|
},
|
|
576
|
+
/**
|
|
577
|
+
*
|
|
578
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
579
|
+
* @param {string} accountAddress The address of the account
|
|
580
|
+
* @param {string} [chain] Chain identifier
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
getAccountParkingLotClaimables(accountAddress, chain, options) {
|
|
585
|
+
return localVarFp
|
|
586
|
+
.getAccountParkingLotClaimables(accountAddress, chain, options)
|
|
587
|
+
.then(request => request(axios, basePath));
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
592
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
593
|
+
* @param {number} startTimeInMs The start time of the events
|
|
594
|
+
* @param {string} [chain] Chain identifier
|
|
595
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
596
|
+
* @param {number} [limit] The limit of the events
|
|
597
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
598
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
599
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
getAccountPendingDeposits(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
604
|
+
return localVarFp
|
|
605
|
+
.getAccountPendingDeposits(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
606
|
+
.then(request => request(axios, basePath));
|
|
607
|
+
},
|
|
444
608
|
/**
|
|
445
609
|
*
|
|
446
610
|
* @summary Get the positions history of the account
|
|
@@ -544,6 +708,40 @@ export class AccountsApi extends BaseAPI {
|
|
|
544
708
|
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
545
709
|
.then(request => request(this.axios, this.basePath));
|
|
546
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
*
|
|
713
|
+
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
714
|
+
* @param {string} accountAddress The address of the account
|
|
715
|
+
* @param {string} [chain] Chain identifier
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
* @memberof AccountsApi
|
|
719
|
+
*/
|
|
720
|
+
getAccountParkingLotClaimables(accountAddress, chain, options) {
|
|
721
|
+
return AccountsApiFp(this.configuration)
|
|
722
|
+
.getAccountParkingLotClaimables(accountAddress, chain, options)
|
|
723
|
+
.then(request => request(this.axios, this.basePath));
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @summary Get parking-lot (async) deposit requests of the account
|
|
728
|
+
* @param {string} accountAddress The address of the account that parked the deposits
|
|
729
|
+
* @param {number} startTimeInMs The start time of the events
|
|
730
|
+
* @param {string} [chain] Chain identifier
|
|
731
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
732
|
+
* @param {number} [limit] The limit of the events
|
|
733
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
734
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
735
|
+
* @param {GetAccountPendingDepositsStatusEnum} [status] The status of the deposit requests
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
* @memberof AccountsApi
|
|
739
|
+
*/
|
|
740
|
+
getAccountPendingDeposits(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
741
|
+
return AccountsApiFp(this.configuration)
|
|
742
|
+
.getAccountPendingDeposits(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
743
|
+
.then(request => request(this.axios, this.basePath));
|
|
744
|
+
}
|
|
547
745
|
/**
|
|
548
746
|
*
|
|
549
747
|
* @summary Get the positions history of the account
|
|
@@ -634,6 +832,15 @@ export const GetAccountHistoryTypeEnum = {
|
|
|
634
832
|
RedeemRequestSkipped: "RedeemRequestSkipped",
|
|
635
833
|
RedeemRequestCancelled: "RedeemRequestCancelled"
|
|
636
834
|
};
|
|
835
|
+
/**
|
|
836
|
+
* @export
|
|
837
|
+
*/
|
|
838
|
+
export const GetAccountPendingDepositsStatusEnum = {
|
|
839
|
+
Pending: "Pending",
|
|
840
|
+
Cancelled: "Cancelled",
|
|
841
|
+
Forwarded: "Forwarded",
|
|
842
|
+
Skipped: "Skipped"
|
|
843
|
+
};
|
|
637
844
|
/**
|
|
638
845
|
* @export
|
|
639
846
|
*/
|
|
@@ -28,6 +28,7 @@ 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";
|
|
31
32
|
import type { VaultsDeploymentConfig } from "../models/index.js";
|
|
32
33
|
import type { VaultsStats } from "../models/index.js";
|
|
33
34
|
/**
|
|
@@ -113,6 +114,14 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
113
114
|
* @throws {RequiredError}
|
|
114
115
|
*/
|
|
115
116
|
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>;
|
|
116
125
|
/**
|
|
117
126
|
*
|
|
118
127
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -260,6 +269,14 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
260
269
|
* @throws {RequiredError}
|
|
261
270
|
*/
|
|
262
271
|
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>>;
|
|
263
280
|
/**
|
|
264
281
|
*
|
|
265
282
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -407,6 +424,14 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
407
424
|
* @throws {RequiredError}
|
|
408
425
|
*/
|
|
409
426
|
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>;
|
|
410
435
|
/**
|
|
411
436
|
*
|
|
412
437
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -565,6 +590,15 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
565
590
|
* @memberof VaultsApi
|
|
566
591
|
*/
|
|
567
592
|
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, {}>>;
|
|
568
602
|
/**
|
|
569
603
|
*
|
|
570
604
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -350,6 +350,38 @@ 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
|
+
},
|
|
353
385
|
/**
|
|
354
386
|
*
|
|
355
387
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -739,6 +771,19 @@ export const VaultsApiFp = function (configuration) {
|
|
|
739
771
|
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultDepositEligibility"]?.[localVarOperationServerIndex]?.url;
|
|
740
772
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
741
773
|
},
|
|
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
|
+
},
|
|
742
787
|
/**
|
|
743
788
|
*
|
|
744
789
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -961,6 +1006,18 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
961
1006
|
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
962
1007
|
.then(request => request(axios, basePath));
|
|
963
1008
|
},
|
|
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
|
+
},
|
|
964
1021
|
/**
|
|
965
1022
|
*
|
|
966
1023
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -1184,6 +1241,19 @@ export class VaultsApi extends BaseAPI {
|
|
|
1184
1241
|
.getVaultDepositEligibility(vaultId, accountAddress, options)
|
|
1185
1242
|
.then(request => request(this.axios, this.basePath));
|
|
1186
1243
|
}
|
|
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
|
+
}
|
|
1187
1257
|
/**
|
|
1188
1258
|
*
|
|
1189
1259
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -0,0 +1,36 @@
|
|
|
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 AccountParkingLotClaimable
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountParkingLotClaimable {
|
|
18
|
+
/**
|
|
19
|
+
* The on-chain id of the vault the parking lot serves
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountParkingLotClaimable
|
|
22
|
+
*/
|
|
23
|
+
vaultId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The address of the parking lot contract holding the claimable balance
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountParkingLotClaimable
|
|
28
|
+
*/
|
|
29
|
+
parkingLotAddress: string;
|
|
30
|
+
/**
|
|
31
|
+
* The collateral amount claimable by the account via claim()
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountParkingLotClaimable
|
|
34
|
+
*/
|
|
35
|
+
claimableAmount: string;
|
|
36
|
+
}
|
|
@@ -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 {};
|