@ember-finance/sdk 2.1.3 → 2.2.0-rc.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/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 +114 -0
- package/dist/src/api/v2/apis/accounts-api.js +211 -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/account-transaction-transaction-data.d.ts +2 -1
- package/dist/src/api/v2/models/account-transaction.d.ts +4 -0
- package/dist/src/api/v2/models/account-transaction.js +4 -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 +7 -0
- package/dist/src/api/v2/models/index.js +7 -0
- package/dist/src/api/v2/models/parking-lot-deposit-transaction.d.ts +68 -0
- package/dist/src/api/v2/models/parking-lot-deposit-transaction.js +14 -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
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AccountPendingDeposit
|
|
18
|
+
*/
|
|
19
|
+
export interface AccountPendingDeposit {
|
|
20
|
+
/**
|
|
21
|
+
* The status of the deposit request
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AccountPendingDeposit
|
|
24
|
+
*/
|
|
25
|
+
status: AccountPendingDepositStatusEnum;
|
|
26
|
+
/**
|
|
27
|
+
* The escrowed collateral amount of the deposit request
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AccountPendingDeposit
|
|
30
|
+
*/
|
|
31
|
+
amount: string;
|
|
32
|
+
/**
|
|
33
|
+
* The vault shares minted to the receiver (set once forwarded)
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AccountPendingDeposit
|
|
36
|
+
*/
|
|
37
|
+
sharesMinted?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The address that parked the deposit (receives refunds on cancel/skip)
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountPendingDeposit
|
|
42
|
+
*/
|
|
43
|
+
depositorAddress: string;
|
|
44
|
+
/**
|
|
45
|
+
* The address that receives the minted vault shares when processed
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountPendingDeposit
|
|
48
|
+
*/
|
|
49
|
+
receiverAddress: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Asset}
|
|
53
|
+
* @memberof AccountPendingDeposit
|
|
54
|
+
*/
|
|
55
|
+
depositCoin: Asset;
|
|
56
|
+
/**
|
|
57
|
+
* The timestamp in ms the deposit was parked on-chain
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof AccountPendingDeposit
|
|
60
|
+
*/
|
|
61
|
+
submittedAt: number;
|
|
62
|
+
/**
|
|
63
|
+
* The timestamp in ms the deposit was forwarded, cancelled, or skipped
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AccountPendingDeposit
|
|
66
|
+
*/
|
|
67
|
+
settledAt?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The parking lot FIFO sequence number of the deposit request
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AccountPendingDeposit
|
|
72
|
+
*/
|
|
73
|
+
sequenceNumber: string;
|
|
74
|
+
/**
|
|
75
|
+
* The address of the parking lot contract holding the escrow
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AccountPendingDeposit
|
|
78
|
+
*/
|
|
79
|
+
parkingLotAddress: string;
|
|
80
|
+
/**
|
|
81
|
+
* The tx digest of the deposit request
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AccountPendingDeposit
|
|
84
|
+
*/
|
|
85
|
+
txDigest?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The tx digest of the forward/cancel/skip settlement
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof AccountPendingDeposit
|
|
90
|
+
*/
|
|
91
|
+
settledTxDigest?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {VaultSlice}
|
|
95
|
+
* @memberof AccountPendingDeposit
|
|
96
|
+
*/
|
|
97
|
+
vault: VaultSlice;
|
|
98
|
+
/**
|
|
99
|
+
* Chain identifier
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof AccountPendingDeposit
|
|
102
|
+
*/
|
|
103
|
+
chain?: string;
|
|
104
|
+
}
|
|
105
|
+
export declare const AccountPendingDepositStatusEnum: {
|
|
106
|
+
readonly Pending: "Pending";
|
|
107
|
+
readonly Cancelled: "Cancelled";
|
|
108
|
+
readonly Forwarded: "Forwarded";
|
|
109
|
+
readonly Skipped: "Skipped";
|
|
110
|
+
};
|
|
111
|
+
export type AccountPendingDepositStatusEnum = (typeof AccountPendingDepositStatusEnum)[keyof typeof AccountPendingDepositStatusEnum];
|
|
@@ -0,0 +1,19 @@
|
|
|
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 const AccountPendingDepositStatusEnum = {
|
|
15
|
+
Pending: "Pending",
|
|
16
|
+
Cancelled: "Cancelled",
|
|
17
|
+
Forwarded: "Forwarded",
|
|
18
|
+
Skipped: "Skipped"
|
|
19
|
+
};
|
|
@@ -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",
|
|
@@ -89,4 +89,10 @@ export interface ChainVaultDetails {
|
|
|
89
89
|
* @memberof ChainVaultDetails
|
|
90
90
|
*/
|
|
91
91
|
maxDepositsAllowed: string;
|
|
92
|
+
/**
|
|
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
|
+
* @type {boolean}
|
|
95
|
+
* @memberof ChainVaultDetails
|
|
96
|
+
*/
|
|
97
|
+
hasAsyncDeposits?: boolean;
|
|
92
98
|
}
|
|
@@ -9,12 +9,15 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { EvmDepositParkingLot } from "./evm-deposit-parking-lot.js";
|
|
12
13
|
import type { EvmDepositToken } from "./evm-deposit-token.js";
|
|
13
14
|
import type { EvmOFTAdapter } from "./evm-oftadapter.js";
|
|
14
15
|
import type { EvmPriceFeed } from "./evm-price-feed.js";
|
|
15
16
|
import type { EvmProtocolConfig } from "./evm-protocol-config.js";
|
|
16
17
|
import type { EvmReceiptToken } from "./evm-receipt-token.js";
|
|
18
|
+
import type { EvmTimelock } from "./evm-timelock.js";
|
|
17
19
|
import type { EvmVault } from "./evm-vault.js";
|
|
20
|
+
import type { EvmVaultValidator } from "./evm-vault-validator.js";
|
|
18
21
|
/**
|
|
19
22
|
*
|
|
20
23
|
* @export
|
|
@@ -59,6 +62,14 @@ export interface EvmContracts {
|
|
|
59
62
|
vaults?: {
|
|
60
63
|
[key: string]: EvmVault;
|
|
61
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Map of deposit parking lots (async deposits) by key; each entry names the vault it serves
|
|
67
|
+
* @type {{ [key: string]: EvmDepositParkingLot; }}
|
|
68
|
+
* @memberof EvmContracts
|
|
69
|
+
*/
|
|
70
|
+
depositParkingLots?: {
|
|
71
|
+
[key: string]: EvmDepositParkingLot;
|
|
72
|
+
};
|
|
62
73
|
/**
|
|
63
74
|
* Map of OFT adapters by name
|
|
64
75
|
* @type {{ [key: string]: EvmOFTAdapter; }}
|
|
@@ -67,4 +78,18 @@ export interface EvmContracts {
|
|
|
67
78
|
oftAdapters?: {
|
|
68
79
|
[key: string]: EvmOFTAdapter;
|
|
69
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {EvmVaultValidator}
|
|
84
|
+
* @memberof EvmContracts
|
|
85
|
+
*/
|
|
86
|
+
vaultValidator?: EvmVaultValidator;
|
|
87
|
+
/**
|
|
88
|
+
* Map of timelocks by role (owner, admin)
|
|
89
|
+
* @type {{ [key: string]: EvmTimelock; }}
|
|
90
|
+
* @memberof EvmContracts
|
|
91
|
+
*/
|
|
92
|
+
timelocks?: {
|
|
93
|
+
[key: string]: EvmTimelock;
|
|
94
|
+
};
|
|
70
95
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 EvmDepositParkingLot
|
|
16
|
+
*/
|
|
17
|
+
export interface EvmDepositParkingLot {
|
|
18
|
+
/**
|
|
19
|
+
* The parking lot proxy contract address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EvmDepositParkingLot
|
|
22
|
+
*/
|
|
23
|
+
proxyAddress?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The implementation contract address
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EvmDepositParkingLot
|
|
28
|
+
*/
|
|
29
|
+
implementationAddress?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The owner address
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EvmDepositParkingLot
|
|
34
|
+
*/
|
|
35
|
+
ownerAddress?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The vault address this parking lot serves
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EvmDepositParkingLot
|
|
40
|
+
*/
|
|
41
|
+
vault?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The operator authorised to process the deposit queue
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EvmDepositParkingLot
|
|
46
|
+
*/
|
|
47
|
+
operator?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The protocol config address
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EvmDepositParkingLot
|
|
52
|
+
*/
|
|
53
|
+
protocolConfig?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The deployment timestamp
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EvmDepositParkingLot
|
|
58
|
+
*/
|
|
59
|
+
deployedAt?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The block number at which the contract was deployed
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof EvmDepositParkingLot
|
|
64
|
+
*/
|
|
65
|
+
deploymentBlockNumber?: number;
|
|
66
|
+
}
|
|
@@ -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 {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 EvmTimelock
|
|
16
|
+
*/
|
|
17
|
+
export interface EvmTimelock {
|
|
18
|
+
/**
|
|
19
|
+
* The TimelockController contract address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EvmTimelock
|
|
22
|
+
*/
|
|
23
|
+
address?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The minimum delay (in seconds) before a scheduled operation can execute
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EvmTimelock
|
|
28
|
+
*/
|
|
29
|
+
minDelay?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Addresses holding the PROPOSER (and CANCELLER) role
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof EvmTimelock
|
|
34
|
+
*/
|
|
35
|
+
proposers?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Addresses holding the EXECUTOR role (zero address means open execution)
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof EvmTimelock
|
|
40
|
+
*/
|
|
41
|
+
executors?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The optional admin address (zero address when self-administered)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EvmTimelock
|
|
46
|
+
*/
|
|
47
|
+
admin?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The deployment timestamp
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EvmTimelock
|
|
52
|
+
*/
|
|
53
|
+
deployedAt?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The block number at which the contract was deployed
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof EvmTimelock
|
|
58
|
+
*/
|
|
59
|
+
deploymentBlockNumber?: number;
|
|
60
|
+
}
|
|
@@ -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 {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 EvmVaultValidator
|
|
16
|
+
*/
|
|
17
|
+
export interface EvmVaultValidator {
|
|
18
|
+
/**
|
|
19
|
+
* The proxy contract address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EvmVaultValidator
|
|
22
|
+
*/
|
|
23
|
+
proxyAddress?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The implementation contract address
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EvmVaultValidator
|
|
28
|
+
*/
|
|
29
|
+
implementationAddress?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The protocol config contract address
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EvmVaultValidator
|
|
34
|
+
*/
|
|
35
|
+
protocolConfigAddress?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The owner address
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EvmVaultValidator
|
|
40
|
+
*/
|
|
41
|
+
ownerAddress?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The contract version
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EvmVaultValidator
|
|
46
|
+
*/
|
|
47
|
+
version?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The deployment timestamp
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EvmVaultValidator
|
|
52
|
+
*/
|
|
53
|
+
deployedAt?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The block number at which the contract was deployed
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof EvmVaultValidator
|
|
58
|
+
*/
|
|
59
|
+
deploymentBlockNumber?: number;
|
|
60
|
+
}
|
|
@@ -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 {};
|
|
@@ -135,4 +135,10 @@ export interface EvmVault {
|
|
|
135
135
|
* @memberof EvmVault
|
|
136
136
|
*/
|
|
137
137
|
bridgeAdapterUpdatedAt?: string;
|
|
138
|
+
/**
|
|
139
|
+
* The vault validator contract address for this vault
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof EvmVault
|
|
142
|
+
*/
|
|
143
|
+
validatorAddress?: string;
|
|
138
144
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./account-parking-lot-claimable.js";
|
|
2
|
+
export * from "./account-pending-deposit.js";
|
|
1
3
|
export * from "./account-transaction.js";
|
|
2
4
|
export * from "./account-transaction-transaction-data.js";
|
|
3
5
|
export * from "./account-vault-position-history.js";
|
|
@@ -17,6 +19,7 @@ export * from "./defi-integration.js";
|
|
|
17
19
|
export * from "./deposit-transaction.js";
|
|
18
20
|
export * from "./ember-position.js";
|
|
19
21
|
export * from "./evm-contracts.js";
|
|
22
|
+
export * from "./evm-deposit-parking-lot.js";
|
|
20
23
|
export * from "./evm-deposit-token.js";
|
|
21
24
|
export * from "./evm-oftadapter.js";
|
|
22
25
|
export * from "./evm-oftpeer.js";
|
|
@@ -24,7 +27,9 @@ export * from "./evm-price-feed.js";
|
|
|
24
27
|
export * from "./evm-protocol-config.js";
|
|
25
28
|
export * from "./evm-protocol-info.js";
|
|
26
29
|
export * from "./evm-receipt-token.js";
|
|
30
|
+
export * from "./evm-timelock.js";
|
|
27
31
|
export * from "./evm-vault.js";
|
|
32
|
+
export * from "./evm-vault-validator.js";
|
|
28
33
|
export * from "./exposure.js";
|
|
29
34
|
export * from "./exposure-coin.js";
|
|
30
35
|
export * from "./exposure-protocol.js";
|
|
@@ -34,6 +39,7 @@ export * from "./history-interval.js";
|
|
|
34
39
|
export * from "./lp.js";
|
|
35
40
|
export * from "./manager.js";
|
|
36
41
|
export * from "./min-withdrawal-shares-updated-event.js";
|
|
42
|
+
export * from "./parking-lot-deposit-transaction.js";
|
|
37
43
|
export * from "./perps.js";
|
|
38
44
|
export * from "./pnl-by-chain.js";
|
|
39
45
|
export * from "./pnl-history.js";
|
|
@@ -88,6 +94,7 @@ export * from "./vault-fee-percentage-updated-event.js";
|
|
|
88
94
|
export * from "./vault-info.js";
|
|
89
95
|
export * from "./vault-max-tvl-updated-event.js";
|
|
90
96
|
export * from "./vault-operator-changed-event.js";
|
|
97
|
+
export * from "./vault-parking-lot-info.js";
|
|
91
98
|
export * from "./vault-paused-status-updated-event.js";
|
|
92
99
|
export * from "./vault-platform-fee-charged-event.js";
|
|
93
100
|
export * from "./vault-proof-of-capital-summary.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./account-parking-lot-claimable.js";
|
|
2
|
+
export * from "./account-pending-deposit.js";
|
|
1
3
|
export * from "./account-transaction.js";
|
|
2
4
|
export * from "./account-transaction-transaction-data.js";
|
|
3
5
|
export * from "./account-vault-position-history.js";
|
|
@@ -17,6 +19,7 @@ export * from "./defi-integration.js";
|
|
|
17
19
|
export * from "./deposit-transaction.js";
|
|
18
20
|
export * from "./ember-position.js";
|
|
19
21
|
export * from "./evm-contracts.js";
|
|
22
|
+
export * from "./evm-deposit-parking-lot.js";
|
|
20
23
|
export * from "./evm-deposit-token.js";
|
|
21
24
|
export * from "./evm-oftadapter.js";
|
|
22
25
|
export * from "./evm-oftpeer.js";
|
|
@@ -24,7 +27,9 @@ export * from "./evm-price-feed.js";
|
|
|
24
27
|
export * from "./evm-protocol-config.js";
|
|
25
28
|
export * from "./evm-protocol-info.js";
|
|
26
29
|
export * from "./evm-receipt-token.js";
|
|
30
|
+
export * from "./evm-timelock.js";
|
|
27
31
|
export * from "./evm-vault.js";
|
|
32
|
+
export * from "./evm-vault-validator.js";
|
|
28
33
|
export * from "./exposure.js";
|
|
29
34
|
export * from "./exposure-coin.js";
|
|
30
35
|
export * from "./exposure-protocol.js";
|
|
@@ -34,6 +39,7 @@ export * from "./history-interval.js";
|
|
|
34
39
|
export * from "./lp.js";
|
|
35
40
|
export * from "./manager.js";
|
|
36
41
|
export * from "./min-withdrawal-shares-updated-event.js";
|
|
42
|
+
export * from "./parking-lot-deposit-transaction.js";
|
|
37
43
|
export * from "./perps.js";
|
|
38
44
|
export * from "./pnl-by-chain.js";
|
|
39
45
|
export * from "./pnl-history.js";
|
|
@@ -88,6 +94,7 @@ export * from "./vault-fee-percentage-updated-event.js";
|
|
|
88
94
|
export * from "./vault-info.js";
|
|
89
95
|
export * from "./vault-max-tvl-updated-event.js";
|
|
90
96
|
export * from "./vault-operator-changed-event.js";
|
|
97
|
+
export * from "./vault-parking-lot-info.js";
|
|
91
98
|
export * from "./vault-paused-status-updated-event.js";
|
|
92
99
|
export * from "./vault-platform-fee-charged-event.js";
|
|
93
100
|
export * from "./vault-proof-of-capital-summary.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 {};
|
|
@@ -206,6 +206,12 @@ export interface VaultDetail {
|
|
|
206
206
|
* @memberof VaultDetail
|
|
207
207
|
*/
|
|
208
208
|
pocEnabled: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the vault\'s receipt tokens can be bridged across supported chains
|
|
211
|
+
* @type {boolean}
|
|
212
|
+
* @memberof VaultDetail
|
|
213
|
+
*/
|
|
214
|
+
isBridgeable: boolean;
|
|
209
215
|
/**
|
|
210
216
|
*
|
|
211
217
|
* @type {ApyAverages}
|