@ember-finance/sdk 1.0.9 → 1.0.10
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/src/common/types.d.ts +0 -1
- package/dist/src/common/types.js +0 -1
- package/dist/src/vaults/api/api.d.ts +2 -2
- package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -31
- package/dist/src/vaults/api/apis/accounts-api.js +98 -112
- package/dist/src/vaults/api/apis/vaults-api.d.ts +186 -31
- package/dist/src/vaults/api/apis/vaults-api.js +140 -220
- package/dist/src/vaults/api/base.d.ts +26 -2
- package/dist/src/vaults/api/base.js +21 -1
- package/dist/src/vaults/api/common.d.ts +38 -1
- package/dist/src/vaults/api/common.js +47 -17
- package/dist/src/vaults/api/configuration.d.ts +17 -0
- package/dist/src/vaults/api/configuration.js +4 -5
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
- package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
- package/dist/src/vaults/api/models/account-transaction.js +12 -7
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
- package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
- package/dist/src/vaults/api/models/apy-history.d.ts +17 -4
- package/dist/src/vaults/api/models/asset.d.ts +26 -7
- package/dist/src/vaults/api/models/borrowed.d.ts +21 -5
- package/dist/src/vaults/api/models/coin-price.d.ts +11 -2
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +38 -13
- package/dist/src/vaults/api/models/exposure.d.ts +16 -5
- package/dist/src/vaults/api/models/fee.d.ts +18 -4
- package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
- package/dist/src/vaults/api/models/history-interval.js +12 -6
- package/dist/src/vaults/api/models/index.d.ts +60 -60
- package/dist/src/vaults/api/models/lp.d.ts +44 -13
- package/dist/src/vaults/api/models/manager.d.ts +26 -4
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/perps.d.ts +12 -3
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +10 -6
- package/dist/src/vaults/api/models/pnl-history-interval.js +11 -5
- package/dist/src/vaults/api/models/pnl-history.d.ts +14 -3
- package/dist/src/vaults/api/models/position-value.d.ts +23 -6
- package/dist/src/vaults/api/models/position.d.ts +17 -4
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +35 -10
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +26 -7
- package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
- package/dist/src/vaults/api/models/protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +18 -17
- package/dist/src/vaults/api/models/raw-event.d.ts +44 -25
- package/dist/src/vaults/api/models/raw-event.js +24 -19
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
- package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
- package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
- package/dist/src/vaults/api/models/reward.d.ts +18 -4
- package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
- package/dist/src/vaults/api/models/strategy.d.ts +26 -7
- package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
- package/dist/src/vaults/api/models/supplied.d.ts +21 -5
- package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
- package/dist/src/vaults/api/models/vault-detail.js +11 -6
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +17 -4
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/common/types.js
CHANGED
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from
|
|
13
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
19
|
-
import type {
|
|
20
|
-
import type { YieldAggregateValue } from "../models";
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AccountTransaction } from '../models';
|
|
16
|
+
import type { AccountWithdrawalRequest } from '../models';
|
|
17
|
+
import type { Exposure } from '../models';
|
|
18
|
+
import type { PositionValue } from '../models';
|
|
19
|
+
import type { YieldAggregateValue } from '../models';
|
|
21
20
|
/**
|
|
22
21
|
* AccountsApi - axios parameter creator
|
|
22
|
+
* @export
|
|
23
23
|
*/
|
|
24
24
|
export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
25
|
/**
|
|
@@ -78,6 +78,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* AccountsApi - functional programming interface
|
|
81
|
+
* @export
|
|
81
82
|
*/
|
|
82
83
|
export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
83
84
|
/**
|
|
@@ -136,6 +137,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
136
137
|
};
|
|
137
138
|
/**
|
|
138
139
|
* AccountsApi - factory interface
|
|
140
|
+
* @export
|
|
139
141
|
*/
|
|
140
142
|
export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
141
143
|
/**
|
|
@@ -192,18 +194,87 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
192
194
|
*/
|
|
193
195
|
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<YieldAggregateValue>;
|
|
194
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* AccountsApi - interface
|
|
199
|
+
* @export
|
|
200
|
+
* @interface AccountsApi
|
|
201
|
+
*/
|
|
202
|
+
export interface AccountsApiInterface {
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Get the exposure of the account
|
|
206
|
+
* @param {string} accountAddress The address of the account
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
* @memberof AccountsApiInterface
|
|
210
|
+
*/
|
|
211
|
+
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<Exposure>;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @summary Get history of the account
|
|
215
|
+
* @param {string} accountAddress The address of the account
|
|
216
|
+
* @param {number} startTimeInMs The start time of the events
|
|
217
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
218
|
+
* @param {number} [limit] The limit of the events
|
|
219
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
220
|
+
* @param {string} [vaultId] The id of the vault
|
|
221
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof AccountsApiInterface
|
|
225
|
+
*/
|
|
226
|
+
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary Get the positions value of the account
|
|
230
|
+
* @param {string} accountAddress The address of the account
|
|
231
|
+
* @param {string} [vaultId] The id of the vault
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
* @memberof AccountsApiInterface
|
|
235
|
+
*/
|
|
236
|
+
getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionValue>>;
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @summary Get withdrawal requests of the account
|
|
240
|
+
* @param {string} accountAddress The address of the account
|
|
241
|
+
* @param {number} startTimeInMs The start time of the events
|
|
242
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
243
|
+
* @param {number} [limit] The limit of the events
|
|
244
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
245
|
+
* @param {string} [vaultId] The id of the vault
|
|
246
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
* @memberof AccountsApiInterface
|
|
250
|
+
*/
|
|
251
|
+
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountWithdrawalRequest>>;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @summary Get the yield value of the account
|
|
255
|
+
* @param {string} accountAddress The address of the account
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
* @memberof AccountsApiInterface
|
|
259
|
+
*/
|
|
260
|
+
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<YieldAggregateValue>;
|
|
261
|
+
}
|
|
195
262
|
/**
|
|
196
263
|
* AccountsApi - object-oriented interface
|
|
264
|
+
* @export
|
|
265
|
+
* @class AccountsApi
|
|
266
|
+
* @extends {BaseAPI}
|
|
197
267
|
*/
|
|
198
|
-
export declare class AccountsApi extends BaseAPI {
|
|
268
|
+
export declare class AccountsApi extends BaseAPI implements AccountsApiInterface {
|
|
199
269
|
/**
|
|
200
270
|
*
|
|
201
271
|
* @summary Get the exposure of the account
|
|
202
272
|
* @param {string} accountAddress The address of the account
|
|
203
273
|
* @param {*} [options] Override http request option.
|
|
204
274
|
* @throws {RequiredError}
|
|
275
|
+
* @memberof AccountsApi
|
|
205
276
|
*/
|
|
206
|
-
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): Promise<
|
|
277
|
+
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Exposure, any, {}>>;
|
|
207
278
|
/**
|
|
208
279
|
*
|
|
209
280
|
* @summary Get history of the account
|
|
@@ -216,8 +287,9 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
216
287
|
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
217
288
|
* @param {*} [options] Override http request option.
|
|
218
289
|
* @throws {RequiredError}
|
|
290
|
+
* @memberof AccountsApi
|
|
219
291
|
*/
|
|
220
|
-
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<
|
|
292
|
+
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountTransaction[], any, {}>>;
|
|
221
293
|
/**
|
|
222
294
|
*
|
|
223
295
|
* @summary Get the positions value of the account
|
|
@@ -225,8 +297,9 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
225
297
|
* @param {string} [vaultId] The id of the vault
|
|
226
298
|
* @param {*} [options] Override http request option.
|
|
227
299
|
* @throws {RequiredError}
|
|
300
|
+
* @memberof AccountsApi
|
|
228
301
|
*/
|
|
229
|
-
getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): Promise<
|
|
302
|
+
getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionValue[], any, {}>>;
|
|
230
303
|
/**
|
|
231
304
|
*
|
|
232
305
|
* @summary Get withdrawal requests of the account
|
|
@@ -239,30 +312,38 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
239
312
|
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
240
313
|
* @param {*} [options] Override http request option.
|
|
241
314
|
* @throws {RequiredError}
|
|
315
|
+
* @memberof AccountsApi
|
|
242
316
|
*/
|
|
243
|
-
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<
|
|
317
|
+
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountWithdrawalRequest[], any, {}>>;
|
|
244
318
|
/**
|
|
245
319
|
*
|
|
246
320
|
* @summary Get the yield value of the account
|
|
247
321
|
* @param {string} accountAddress The address of the account
|
|
248
322
|
* @param {*} [options] Override http request option.
|
|
249
323
|
* @throws {RequiredError}
|
|
324
|
+
* @memberof AccountsApi
|
|
250
325
|
*/
|
|
251
|
-
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<
|
|
326
|
+
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<YieldAggregateValue, any, {}>>;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @export
|
|
330
|
+
* @enum {string}
|
|
331
|
+
*/
|
|
332
|
+
export declare enum GetAccountHistoryTypeEnum {
|
|
333
|
+
Deposit = "Deposit",
|
|
334
|
+
RedeemRequest = "RedeemRequest",
|
|
335
|
+
RedeemRequestProcessed = "RedeemRequestProcessed",
|
|
336
|
+
RedeemRequestSkipped = "RedeemRequestSkipped",
|
|
337
|
+
RedeemRequestCancelled = "RedeemRequestCancelled"
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @export
|
|
341
|
+
* @enum {string}
|
|
342
|
+
*/
|
|
343
|
+
export declare enum GetAccountWithdrawalRequestsStatusEnum {
|
|
344
|
+
Pending = "Pending",
|
|
345
|
+
PendingCancelling = "PendingCancelling",
|
|
346
|
+
Cancelled = "Cancelled",
|
|
347
|
+
Skipped = "Skipped",
|
|
348
|
+
Processed = "Processed"
|
|
252
349
|
}
|
|
253
|
-
export declare const GetAccountHistoryTypeEnum: {
|
|
254
|
-
readonly Deposit: "Deposit";
|
|
255
|
-
readonly RedeemRequest: "RedeemRequest";
|
|
256
|
-
readonly RedeemRequestProcessed: "RedeemRequestProcessed";
|
|
257
|
-
readonly RedeemRequestSkipped: "RedeemRequestSkipped";
|
|
258
|
-
readonly RedeemRequestCancelled: "RedeemRequestCancelled";
|
|
259
|
-
};
|
|
260
|
-
export type GetAccountHistoryTypeEnum = (typeof GetAccountHistoryTypeEnum)[keyof typeof GetAccountHistoryTypeEnum];
|
|
261
|
-
export declare const GetAccountWithdrawalRequestsStatusEnum: {
|
|
262
|
-
readonly Pending: "Pending";
|
|
263
|
-
readonly PendingCancelling: "PendingCancelling";
|
|
264
|
-
readonly Cancelled: "Cancelled";
|
|
265
|
-
readonly Skipped: "Skipped";
|
|
266
|
-
readonly Processed: "Processed";
|
|
267
|
-
};
|
|
268
|
-
export type GetAccountWithdrawalRequestsStatusEnum = (typeof GetAccountWithdrawalRequestsStatusEnum)[keyof typeof GetAccountWithdrawalRequestsStatusEnum];
|