@ember-finance/sdk 2.5.0 → 2.6.0-pre.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/AtomicLiquidity.json +4050 -0
- package/dist/src/abis/ERC20Token.json +2 -2
- package/dist/src/abis/EmberETHVault.json +279 -5
- package/dist/src/abis/EmberProtocolConfig.json +170 -2
- package/dist/src/abis/EmberVault.json +2 -2
- package/dist/src/abis/EmberVaultMintBurnOFTAdapter.json +43 -2
- package/dist/src/api/v2/apis/accounts-api.d.ts +5 -0
- package/dist/src/api/v2/apis/accounts-api.js +6 -1
- package/dist/src/api/v2/apis/vaults-api.d.ts +16 -4
- package/dist/src/api/v2/apis/vaults-api.js +21 -7
- package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +5 -1
- package/dist/src/api/v2/models/account-transaction.d.ts +5 -0
- package/dist/src/api/v2/models/account-transaction.js +6 -1
- package/dist/src/api/v2/models/chain-vault-details.d.ts +14 -0
- package/dist/src/api/v2/models/escrow-claim-transaction.d.ts +56 -0
- package/dist/src/api/v2/models/escrow-claim-transaction.js +14 -0
- package/dist/src/api/v2/models/evm-atomic-liquidity-lib.d.ts +48 -0
- package/dist/src/api/v2/models/evm-atomic-liquidity-lib.js +14 -0
- package/dist/src/api/v2/models/evm-atomic-vault.d.ts +102 -0
- package/dist/src/api/v2/models/evm-atomic-vault.js +14 -0
- package/dist/src/api/v2/models/evm-contracts.d.ts +16 -0
- package/dist/src/api/v2/models/fee-multiplier-tier.d.ts +30 -0
- package/dist/src/api/v2/models/fee-multiplier-tier.js +14 -0
- package/dist/src/api/v2/models/holdback-release-transaction.d.ts +56 -0
- package/dist/src/api/v2/models/holdback-release-transaction.js +14 -0
- package/dist/src/api/v2/models/index.d.ts +9 -0
- package/dist/src/api/v2/models/index.js +9 -0
- package/dist/src/api/v2/models/instant-withdraw-config.d.ts +109 -0
- package/dist/src/api/v2/models/instant-withdraw-config.js +14 -0
- package/dist/src/api/v2/models/instant-withdraw-transaction.d.ts +74 -0
- package/dist/src/api/v2/models/instant-withdraw-transaction.js +14 -0
- package/dist/src/api/v2/models/instant-withdraw-via-swap-transaction.d.ts +74 -0
- package/dist/src/api/v2/models/instant-withdraw-via-swap-transaction.js +14 -0
- package/dist/src/api/v2/models/supported-ember-vault.d.ts +42 -0
- package/dist/src/api/v2/models/supported-ember-vault.js +14 -0
- package/dist/src/api/v2/models/vault-detail.d.ts +11 -0
- package/dist/src/api/v2/models/vault-detail.js +4 -0
- package/dist/src/atomic/instant-withdraw.d.ts +125 -0
- package/dist/src/atomic/instant-withdraw.js +122 -0
- package/dist/src/ember-vaults.d.ts +2 -1
- package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.d.ts +98 -0
- package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.js +212 -0
- package/dist/src/evm-vaults/on-chain-calls/index.d.ts +1 -0
- package/dist/src/evm-vaults/on-chain-calls/index.js +1 -0
- package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +10 -0
- package/dist/src/evm-vaults/on-chain-calls/operator.js +28 -0
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +109 -0
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +281 -0
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +50 -0
- package/dist/src/evm-vaults/on-chain-calls/user.js +75 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +55 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +122 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +6 -0
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +9 -0
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +8 -0
- package/dist/src/evm-vaults/utils/deployment-parser.js +11 -0
- package/dist/src/sui-vaults/interfaces/index.d.ts +15 -0
- package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +37 -1
- package/dist/src/sui-vaults/on-chain-calls/admin.js +56 -0
- package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.d.ts +62 -0
- package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.js +174 -0
- package/dist/src/sui-vaults/on-chain-calls/index.d.ts +1 -0
- package/dist/src/sui-vaults/on-chain-calls/index.js +1 -0
- package/dist/src/sui-vaults/on-chain-calls/onchain-calls.d.ts +2 -1
- package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +129 -1
- package/dist/src/sui-vaults/on-chain-calls/operator.js +210 -0
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +482 -0
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +1430 -0
- package/dist/src/sui-vaults/on-chain-calls/user.d.ts +107 -1
- package/dist/src/sui-vaults/on-chain-calls/user.js +190 -0
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +229 -1
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +391 -0
- package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +2 -1
- package/dist/src/sui-vaults/utils/common.d.ts +2 -1
- package/dist/src/sui-vaults/utils/deployment-parser.d.ts +12 -0
- package/dist/src/sui-vaults/utils/deployment-parser.js +24 -0
- package/package.json +3 -2
|
@@ -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,102 @@
|
|
|
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
|
+
* An Atomic Liquidity Vault (no receipt token; linked to AtomicLiquidityLib)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EvmAtomicVault
|
|
16
|
+
*/
|
|
17
|
+
export interface EvmAtomicVault {
|
|
18
|
+
/**
|
|
19
|
+
* The proxy contract address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EvmAtomicVault
|
|
22
|
+
*/
|
|
23
|
+
proxyAddress?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The implementation contract address
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EvmAtomicVault
|
|
28
|
+
*/
|
|
29
|
+
implementationAddress?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The AtomicLiquidityLib address the proxy is linked against
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EvmAtomicVault
|
|
34
|
+
*/
|
|
35
|
+
libraryAddress?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The owner address
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EvmAtomicVault
|
|
40
|
+
*/
|
|
41
|
+
ownerAddress?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The vault name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EvmAtomicVault
|
|
46
|
+
*/
|
|
47
|
+
name?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The collateral token address
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EvmAtomicVault
|
|
52
|
+
*/
|
|
53
|
+
collateralToken?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The admin address
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EvmAtomicVault
|
|
58
|
+
*/
|
|
59
|
+
admin?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The operator address
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof EvmAtomicVault
|
|
64
|
+
*/
|
|
65
|
+
operator?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The rate manager address
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof EvmAtomicVault
|
|
70
|
+
*/
|
|
71
|
+
rateManager?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The protocol config address
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof EvmAtomicVault
|
|
76
|
+
*/
|
|
77
|
+
protocolConfig?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum TVL allowed
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof EvmAtomicVault
|
|
82
|
+
*/
|
|
83
|
+
maxTVL?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The contract version
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof EvmAtomicVault
|
|
88
|
+
*/
|
|
89
|
+
version?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The deployment timestamp
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof EvmAtomicVault
|
|
94
|
+
*/
|
|
95
|
+
deployedAt?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The block number at which the contract was deployed
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof EvmAtomicVault
|
|
100
|
+
*/
|
|
101
|
+
deploymentBlockNumber?: number;
|
|
102
|
+
}
|
|
@@ -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 {};
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { EvmAtomicLiquidityLib } from "./evm-atomic-liquidity-lib.js";
|
|
13
|
+
import type { EvmAtomicVault } from "./evm-atomic-vault.js";
|
|
12
14
|
import type { EvmDepositParkingLot } from "./evm-deposit-parking-lot.js";
|
|
13
15
|
import type { EvmDepositToken } from "./evm-deposit-token.js";
|
|
14
16
|
import type { EvmOFTAdapter } from "./evm-oftadapter.js";
|
|
@@ -92,4 +94,18 @@ export interface EvmContracts {
|
|
|
92
94
|
timelocks?: {
|
|
93
95
|
[key: string]: EvmTimelock;
|
|
94
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {EvmAtomicLiquidityLib}
|
|
100
|
+
* @memberof EvmContracts
|
|
101
|
+
*/
|
|
102
|
+
atomicLiquidityLib?: EvmAtomicLiquidityLib;
|
|
103
|
+
/**
|
|
104
|
+
* Map of Atomic Liquidity Vaults by name
|
|
105
|
+
* @type {{ [key: string]: EvmAtomicVault; }}
|
|
106
|
+
* @memberof EvmContracts
|
|
107
|
+
*/
|
|
108
|
+
atomicLiquidityVaults?: {
|
|
109
|
+
[key: string]: EvmAtomicVault;
|
|
110
|
+
};
|
|
95
111
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 FeeMultiplierTier
|
|
16
|
+
*/
|
|
17
|
+
export interface FeeMultiplierTier {
|
|
18
|
+
/**
|
|
19
|
+
* Utilization threshold (fixed-point, 1e18 EVM / 1e9 Sui)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FeeMultiplierTier
|
|
22
|
+
*/
|
|
23
|
+
threshold: string;
|
|
24
|
+
/**
|
|
25
|
+
* Fee multiplier at/above the threshold (fixed-point, 1x = scale)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FeeMultiplierTier
|
|
28
|
+
*/
|
|
29
|
+
multiplier: string;
|
|
30
|
+
}
|
|
@@ -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,56 @@
|
|
|
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
|
+
* Release of previously held-back collateral on the atomic vault (InstantWithdrawSwapHoldbackRelease). No shares move.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HoldbackReleaseTransaction
|
|
18
|
+
*/
|
|
19
|
+
export interface HoldbackReleaseTransaction {
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp of the event
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof HoldbackReleaseTransaction
|
|
24
|
+
*/
|
|
25
|
+
timestamp?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The collateral amount released
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof HoldbackReleaseTransaction
|
|
30
|
+
*/
|
|
31
|
+
amount?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Asset}
|
|
35
|
+
* @memberof HoldbackReleaseTransaction
|
|
36
|
+
*/
|
|
37
|
+
coin?: Asset;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {VaultSlice}
|
|
41
|
+
* @memberof HoldbackReleaseTransaction
|
|
42
|
+
*/
|
|
43
|
+
vault?: VaultSlice;
|
|
44
|
+
/**
|
|
45
|
+
* The tx digest of the transaction
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof HoldbackReleaseTransaction
|
|
48
|
+
*/
|
|
49
|
+
txDigest?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The sequence number of the transaction
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof HoldbackReleaseTransaction
|
|
54
|
+
*/
|
|
55
|
+
sequenceNumber?: string;
|
|
56
|
+
}
|
|
@@ -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 {};
|
|
@@ -18,6 +18,9 @@ export * from "./coin-price.js";
|
|
|
18
18
|
export * from "./defi-integration.js";
|
|
19
19
|
export * from "./deposit-transaction.js";
|
|
20
20
|
export * from "./ember-position.js";
|
|
21
|
+
export * from "./escrow-claim-transaction.js";
|
|
22
|
+
export * from "./evm-atomic-liquidity-lib.js";
|
|
23
|
+
export * from "./evm-atomic-vault.js";
|
|
21
24
|
export * from "./evm-contracts.js";
|
|
22
25
|
export * from "./evm-deposit-parking-lot.js";
|
|
23
26
|
export * from "./evm-deposit-token.js";
|
|
@@ -34,8 +37,13 @@ export * from "./exposure.js";
|
|
|
34
37
|
export * from "./exposure-coin.js";
|
|
35
38
|
export * from "./exposure-protocol.js";
|
|
36
39
|
export * from "./fee.js";
|
|
40
|
+
export * from "./fee-multiplier-tier.js";
|
|
37
41
|
export * from "./fees.js";
|
|
38
42
|
export * from "./history-interval.js";
|
|
43
|
+
export * from "./holdback-release-transaction.js";
|
|
44
|
+
export * from "./instant-withdraw-config.js";
|
|
45
|
+
export * from "./instant-withdraw-transaction.js";
|
|
46
|
+
export * from "./instant-withdraw-via-swap-transaction.js";
|
|
39
47
|
export * from "./lp.js";
|
|
40
48
|
export * from "./manager.js";
|
|
41
49
|
export * from "./min-withdrawal-shares-updated-event.js";
|
|
@@ -79,6 +87,7 @@ export * from "./strategy-account.js";
|
|
|
79
87
|
export * from "./sub-account.js";
|
|
80
88
|
export * from "./sui-protocol-info.js";
|
|
81
89
|
export * from "./supplied.js";
|
|
90
|
+
export * from "./supported-ember-vault.js";
|
|
82
91
|
export * from "./tag.js";
|
|
83
92
|
export * from "./transparency-group.js";
|
|
84
93
|
export * from "./transparency-row.js";
|
|
@@ -18,6 +18,9 @@ export * from "./coin-price.js";
|
|
|
18
18
|
export * from "./defi-integration.js";
|
|
19
19
|
export * from "./deposit-transaction.js";
|
|
20
20
|
export * from "./ember-position.js";
|
|
21
|
+
export * from "./escrow-claim-transaction.js";
|
|
22
|
+
export * from "./evm-atomic-liquidity-lib.js";
|
|
23
|
+
export * from "./evm-atomic-vault.js";
|
|
21
24
|
export * from "./evm-contracts.js";
|
|
22
25
|
export * from "./evm-deposit-parking-lot.js";
|
|
23
26
|
export * from "./evm-deposit-token.js";
|
|
@@ -34,8 +37,13 @@ export * from "./exposure.js";
|
|
|
34
37
|
export * from "./exposure-coin.js";
|
|
35
38
|
export * from "./exposure-protocol.js";
|
|
36
39
|
export * from "./fee.js";
|
|
40
|
+
export * from "./fee-multiplier-tier.js";
|
|
37
41
|
export * from "./fees.js";
|
|
38
42
|
export * from "./history-interval.js";
|
|
43
|
+
export * from "./holdback-release-transaction.js";
|
|
44
|
+
export * from "./instant-withdraw-config.js";
|
|
45
|
+
export * from "./instant-withdraw-transaction.js";
|
|
46
|
+
export * from "./instant-withdraw-via-swap-transaction.js";
|
|
39
47
|
export * from "./lp.js";
|
|
40
48
|
export * from "./manager.js";
|
|
41
49
|
export * from "./min-withdrawal-shares-updated-event.js";
|
|
@@ -79,6 +87,7 @@ export * from "./strategy-account.js";
|
|
|
79
87
|
export * from "./sub-account.js";
|
|
80
88
|
export * from "./sui-protocol-info.js";
|
|
81
89
|
export * from "./supplied.js";
|
|
90
|
+
export * from "./supported-ember-vault.js";
|
|
82
91
|
export * from "./tag.js";
|
|
83
92
|
export * from "./transparency-group.js";
|
|
84
93
|
export * from "./transparency-row.js";
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { FeeMultiplierTier } from "./fee-multiplier-tier.js";
|
|
13
|
+
/**
|
|
14
|
+
* Instant-withdraw (swap-with-holdback) terms offered for THIS (ember/source) vault\'s shares through an Atomic Liquidity Vault facility. Present on the ember/source vault; each entry names the atomic vault providing it. An ember vault may be offered by more than one atomic facility, hence an array. The asset and settlement (withdrawalPeriodDays) are this vault\'s own root fields.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InstantWithdrawConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface InstantWithdrawConfig {
|
|
19
|
+
/**
|
|
20
|
+
* On-chain id of the atomic vault providing this facility
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof InstantWithdrawConfig
|
|
23
|
+
*/
|
|
24
|
+
atomicVaultId: string;
|
|
25
|
+
/**
|
|
26
|
+
* On-chain address of the atomic vault on this chain
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof InstantWithdrawConfig
|
|
29
|
+
*/
|
|
30
|
+
atomicVaultAddress?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Off-chain id of the atomic vault\'s PARENT (matches a vault\'s root `id`) — use to resolve the atomic vault for name/logo and navigation. Null when not indexed by us.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof InstantWithdrawConfig
|
|
35
|
+
*/
|
|
36
|
+
atomicVaultParentId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Off-chain id of the atomic vault\'s chain-level record (matches a vault\'s detailsByChain[*].id). Null when not indexed by us.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof InstantWithdrawConfig
|
|
41
|
+
*/
|
|
42
|
+
atomicVaultOffchainId?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof InstantWithdrawConfig
|
|
47
|
+
*/
|
|
48
|
+
whitelisted: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Base instant-withdraw fee (1e18 fixed-point)
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof InstantWithdrawConfig
|
|
53
|
+
*/
|
|
54
|
+
feePercentageE18: string;
|
|
55
|
+
/**
|
|
56
|
+
* Portion held back and released later (1e18 fixed-point)
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof InstantWithdrawConfig
|
|
59
|
+
*/
|
|
60
|
+
holdbackPercentageE18: string;
|
|
61
|
+
/**
|
|
62
|
+
* Max swap capacity per epoch as a % of source vault TVL (1e18 fixed-point)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof InstantWithdrawConfig
|
|
65
|
+
*/
|
|
66
|
+
maxCapacityPercentageE18: string;
|
|
67
|
+
/**
|
|
68
|
+
* Post-swap concentration cap (1e18 fixed-point)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof InstantWithdrawConfig
|
|
71
|
+
*/
|
|
72
|
+
maxUtilizationPercentageE18: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<FeeMultiplierTier>}
|
|
76
|
+
* @memberof InstantWithdrawConfig
|
|
77
|
+
*/
|
|
78
|
+
feeMultiplierCurve: Array<FeeMultiplierTier>;
|
|
79
|
+
/**
|
|
80
|
+
* Current effective instant-withdraw fee = base feePercentage × fee-multiplier at the current utilization (1e18 fixed-point). Refreshed out-of-band from chain state; null until the first refresh.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof InstantWithdrawConfig
|
|
83
|
+
*/
|
|
84
|
+
effectiveFeePercentageE18?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Current swap utilization (held share value / ALV total assets), 1e18 fixed-point. Drives the fee multiplier. Null until the first refresh.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof InstantWithdrawConfig
|
|
89
|
+
*/
|
|
90
|
+
currentUtilizationE18?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Currently swappable capacity in USD (1e9 fixed-point) — min(epoch remaining capacity, ALV available liquidity). Null until the first refresh.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof InstantWithdrawConfig
|
|
95
|
+
*/
|
|
96
|
+
availableCapacityE9?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Currently swappable capacity in collateral units — min(epoch remaining capacity, ALV available liquidity). Null until the first refresh.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof InstantWithdrawConfig
|
|
101
|
+
*/
|
|
102
|
+
availableCapacity?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Timestamp (ms) the dynamic fields (effectiveFee/utilization/capacity) were last refreshed from chain state. Null until the first refresh.
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof InstantWithdrawConfig
|
|
107
|
+
*/
|
|
108
|
+
dynamicStatsComputedAt?: number | null;
|
|
109
|
+
}
|
|
@@ -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,74 @@
|
|
|
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
|
+
* Atomic Liquidity Vault instant withdraw: shares burned on the atomic vault for a net collateral payout (fee excluded from amount).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface InstantWithdrawTransaction
|
|
18
|
+
*/
|
|
19
|
+
export interface InstantWithdrawTransaction {
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp of the event
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof InstantWithdrawTransaction
|
|
24
|
+
*/
|
|
25
|
+
timestamp?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The amount of shares burned
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InstantWithdrawTransaction
|
|
30
|
+
*/
|
|
31
|
+
sharesAmount?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Asset}
|
|
35
|
+
* @memberof InstantWithdrawTransaction
|
|
36
|
+
*/
|
|
37
|
+
sharesCoin?: Asset;
|
|
38
|
+
/**
|
|
39
|
+
* The net collateral amount delivered (fee excluded)
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof InstantWithdrawTransaction
|
|
42
|
+
*/
|
|
43
|
+
amount?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Asset}
|
|
47
|
+
* @memberof InstantWithdrawTransaction
|
|
48
|
+
*/
|
|
49
|
+
coin?: Asset;
|
|
50
|
+
/**
|
|
51
|
+
* The platform/withdraw fee charged, excluded from amount
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof InstantWithdrawTransaction
|
|
54
|
+
*/
|
|
55
|
+
fees?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {VaultSlice}
|
|
59
|
+
* @memberof InstantWithdrawTransaction
|
|
60
|
+
*/
|
|
61
|
+
vault?: VaultSlice;
|
|
62
|
+
/**
|
|
63
|
+
* The tx digest of the transaction
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof InstantWithdrawTransaction
|
|
66
|
+
*/
|
|
67
|
+
txDigest?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The sequence number of the transaction
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof InstantWithdrawTransaction
|
|
72
|
+
*/
|
|
73
|
+
sequenceNumber?: string;
|
|
74
|
+
}
|
|
@@ -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,74 @@
|
|
|
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
|
+
* Instant withdraw settled through an ember-share swap, mirrored on the source vault. amount is the full collateral realized now (net + holdback); holdbackAmount is the portion held back for later release.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface InstantWithdrawViaSwapTransaction
|
|
18
|
+
*/
|
|
19
|
+
export interface InstantWithdrawViaSwapTransaction {
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp of the event
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
24
|
+
*/
|
|
25
|
+
timestamp?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The amount of source-vault shares withdrawn
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
30
|
+
*/
|
|
31
|
+
sharesAmount?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Asset}
|
|
35
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
36
|
+
*/
|
|
37
|
+
sharesCoin?: Asset;
|
|
38
|
+
/**
|
|
39
|
+
* The full collateral realized now (net + holdback)
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
42
|
+
*/
|
|
43
|
+
amount?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Asset}
|
|
47
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
48
|
+
*/
|
|
49
|
+
coin?: Asset;
|
|
50
|
+
/**
|
|
51
|
+
* The platform/withdraw fee charged, excluded from amount
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
54
|
+
*/
|
|
55
|
+
fees?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The collateral held back at swap time for later release
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
60
|
+
*/
|
|
61
|
+
holdbackAmount?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {VaultSlice}
|
|
65
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
66
|
+
*/
|
|
67
|
+
vault?: VaultSlice;
|
|
68
|
+
/**
|
|
69
|
+
* The tx digest of the transaction
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof InstantWithdrawViaSwapTransaction
|
|
72
|
+
*/
|
|
73
|
+
txDigest?: string;
|
|
74
|
+
}
|
|
@@ -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 {};
|