@ember-finance/sdk 2.2.0-rc.0 → 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.
@@ -432,6 +432,10 @@ export declare class AccountsApi extends BaseAPI {
432
432
  */
433
433
  export declare const GetAccountHistoryTypeEnum: {
434
434
  readonly Deposit: "Deposit";
435
+ readonly DepositRequest: "DepositRequest";
436
+ readonly DepositRequestCancelled: "DepositRequestCancelled";
437
+ readonly DepositRefundCredited: "DepositRefundCredited";
438
+ readonly DepositRefundClaimed: "DepositRefundClaimed";
435
439
  readonly RedeemRequest: "RedeemRequest";
436
440
  readonly RedeemRequestProcessed: "RedeemRequestProcessed";
437
441
  readonly RedeemRequestSkipped: "RedeemRequestSkipped";
@@ -827,6 +827,10 @@ export class AccountsApi extends BaseAPI {
827
827
  */
828
828
  export const GetAccountHistoryTypeEnum = {
829
829
  Deposit: "Deposit",
830
+ DepositRequest: "DepositRequest",
831
+ DepositRequestCancelled: "DepositRequestCancelled",
832
+ DepositRefundCredited: "DepositRefundCredited",
833
+ DepositRefundClaimed: "DepositRefundClaimed",
830
834
  RedeemRequest: "RedeemRequest",
831
835
  RedeemRequestProcessed: "RedeemRequestProcessed",
832
836
  RedeemRequestSkipped: "RedeemRequestSkipped",
@@ -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
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { DepositTransaction } from "./deposit-transaction.js";
13
+ import type { ParkingLotDepositTransaction } from "./parking-lot-deposit-transaction.js";
13
14
  import type { RedeemRequestCancelledTransaction } from "./redeem-request-cancelled-transaction.js";
14
15
  import type { RedeemRequestProcessedTransaction } from "./redeem-request-processed-transaction.js";
15
16
  import type { RedeemRequestSkippedTransaction } from "./redeem-request-skipped-transaction.js";
@@ -19,4 +20,4 @@ import type { RedeemRequestTransaction } from "./redeem-request-transaction.js";
19
20
  * The data of the transaction
20
21
  * @export
21
22
  */
22
- export type AccountTransactionTransactionData = DepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
23
+ export type AccountTransactionTransactionData = DepositTransaction | ParkingLotDepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
@@ -37,6 +37,10 @@ export interface AccountTransaction {
37
37
  }
38
38
  export declare const AccountTransactionTransactionTypeEnum: {
39
39
  readonly Deposit: "Deposit";
40
+ readonly DepositRequest: "DepositRequest";
41
+ readonly DepositRequestCancelled: "DepositRequestCancelled";
42
+ readonly DepositRefundCredited: "DepositRefundCredited";
43
+ readonly DepositRefundClaimed: "DepositRefundClaimed";
40
44
  readonly RedeemRequest: "RedeemRequest";
41
45
  readonly RedeemRequestProcessed: "RedeemRequestProcessed";
42
46
  readonly RedeemRequestSkipped: "RedeemRequestSkipped";
@@ -13,6 +13,10 @@
13
13
  */
14
14
  export const AccountTransactionTransactionTypeEnum = {
15
15
  Deposit: "Deposit",
16
+ DepositRequest: "DepositRequest",
17
+ DepositRequestCancelled: "DepositRequestCancelled",
18
+ DepositRefundCredited: "DepositRefundCredited",
19
+ DepositRefundClaimed: "DepositRefundClaimed",
16
20
  RedeemRequest: "RedeemRequest",
17
21
  RedeemRequestProcessed: "RedeemRequestProcessed",
18
22
  RedeemRequestSkipped: "RedeemRequestSkipped",
@@ -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). When true the frontend should route deposits via the parking lot and call the parking-lot info endpoint. Only set for EVM vaults; always false/absent for Sui.
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
  }
@@ -39,6 +39,7 @@ export * from "./history-interval.js";
39
39
  export * from "./lp.js";
40
40
  export * from "./manager.js";
41
41
  export * from "./min-withdrawal-shares-updated-event.js";
42
+ export * from "./parking-lot-deposit-transaction.js";
42
43
  export * from "./perps.js";
43
44
  export * from "./pnl-by-chain.js";
44
45
  export * from "./pnl-history.js";
@@ -39,6 +39,7 @@ export * from "./history-interval.js";
39
39
  export * from "./lp.js";
40
40
  export * from "./manager.js";
41
41
  export * from "./min-withdrawal-shares-updated-event.js";
42
+ export * from "./parking-lot-deposit-transaction.js";
42
43
  export * from "./perps.js";
43
44
  export * from "./pnl-by-chain.js";
44
45
  export * from "./pnl-history.js";
@@ -0,0 +1,68 @@
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
+ import type { Asset } from "./asset.js";
13
+ import type { VaultSlice } from "./vault-slice.js";
14
+ /**
15
+ * Async-deposit (parking lot) lifecycle entry. Used by DepositRequest and DepositRequestCancelled (request/cancel, attributed to the shares receiver) and by DepositRefundCredited and DepositRefundClaimed (undeliverable-refund credit / claim, attributed to the depositor).
16
+ * @export
17
+ * @interface ParkingLotDepositTransaction
18
+ */
19
+ export interface ParkingLotDepositTransaction {
20
+ /**
21
+ * The timestamp of the event
22
+ * @type {number}
23
+ * @memberof ParkingLotDepositTransaction
24
+ */
25
+ timestamp?: number;
26
+ /**
27
+ * The requested, refunded, or claimed collateral amount
28
+ * @type {string}
29
+ * @memberof ParkingLotDepositTransaction
30
+ */
31
+ amount?: string;
32
+ /**
33
+ *
34
+ * @type {Asset}
35
+ * @memberof ParkingLotDepositTransaction
36
+ */
37
+ depositCoin?: Asset;
38
+ /**
39
+ * The address that parked the deposit (and receives refunds)
40
+ * @type {string}
41
+ * @memberof ParkingLotDepositTransaction
42
+ */
43
+ depositorAddress?: string;
44
+ /**
45
+ * The shares receiver (set for request/cancel; empty for refund/claim)
46
+ * @type {string}
47
+ * @memberof ParkingLotDepositTransaction
48
+ */
49
+ receiverAddress?: string;
50
+ /**
51
+ * The parking lot FIFO sequence number (set for request/cancel)
52
+ * @type {string}
53
+ * @memberof ParkingLotDepositTransaction
54
+ */
55
+ sequenceNumber?: string;
56
+ /**
57
+ * The tx digest of the event
58
+ * @type {string}
59
+ * @memberof ParkingLotDepositTransaction
60
+ */
61
+ txDigest?: string;
62
+ /**
63
+ *
64
+ * @type {VaultSlice}
65
+ * @memberof ParkingLotDepositTransaction
66
+ */
67
+ vault?: VaultSlice;
68
+ }
@@ -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 {};
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "2.2.0-rc.0",
4
+ "version": "2.2.0-rc.2",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",