@ember-finance/sdk 2.5.0 → 2.6.0-pre.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/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 +75 -0
- package/dist/src/api/v2/apis/accounts-api.js +134 -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-holdback.d.ts +103 -0
- package/dist/src/api/v2/models/account-holdback.js +17 -0
- 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 +10 -0
- package/dist/src/api/v2/models/index.js +10 -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
|
@@ -545,10 +545,11 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
545
545
|
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
546
546
|
* @param {string} [chain] The identifier of the chain
|
|
547
547
|
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
548
|
+
* @param {GetVaultsVaultTypeEnum} [vaultType] Filter vaults by flavor. When omitted, all vaults are returned (tokenized + atomic). Pass ATOMIC to return only atomic (atomic-liquidity) vaults, or TOKENIZED for only tokenized vaults.
|
|
548
549
|
* @param {*} [options] Override http request option.
|
|
549
550
|
* @throws {RequiredError}
|
|
550
551
|
*/
|
|
551
|
-
getVaults: async (vaultId, receiptCoinSymbol, chain, includeHidden, options = {}) => {
|
|
552
|
+
getVaults: async (vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options = {}) => {
|
|
552
553
|
const localVarPath = `/api/v2/vaults`;
|
|
553
554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
554
555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -571,6 +572,9 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
571
572
|
if (includeHidden !== undefined) {
|
|
572
573
|
localVarQueryParameter["includeHidden"] = includeHidden;
|
|
573
574
|
}
|
|
575
|
+
if (vaultType !== undefined) {
|
|
576
|
+
localVarQueryParameter["vaultType"] = vaultType;
|
|
577
|
+
}
|
|
574
578
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
579
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
580
|
localVarRequestOptions.headers = {
|
|
@@ -854,11 +858,12 @@ export const VaultsApiFp = function (configuration) {
|
|
|
854
858
|
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
855
859
|
* @param {string} [chain] The identifier of the chain
|
|
856
860
|
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
861
|
+
* @param {GetVaultsVaultTypeEnum} [vaultType] Filter vaults by flavor. When omitted, all vaults are returned (tokenized + atomic). Pass ATOMIC to return only atomic (atomic-liquidity) vaults, or TOKENIZED for only tokenized vaults.
|
|
857
862
|
* @param {*} [options] Override http request option.
|
|
858
863
|
* @throws {RequiredError}
|
|
859
864
|
*/
|
|
860
|
-
async getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
861
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options);
|
|
865
|
+
async getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options) {
|
|
866
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options);
|
|
862
867
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
863
868
|
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
|
|
864
869
|
?.url;
|
|
@@ -1085,12 +1090,13 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
1085
1090
|
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
1086
1091
|
* @param {string} [chain] The identifier of the chain
|
|
1087
1092
|
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
1093
|
+
* @param {GetVaultsVaultTypeEnum} [vaultType] Filter vaults by flavor. When omitted, all vaults are returned (tokenized + atomic). Pass ATOMIC to return only atomic (atomic-liquidity) vaults, or TOKENIZED for only tokenized vaults.
|
|
1088
1094
|
* @param {*} [options] Override http request option.
|
|
1089
1095
|
* @throws {RequiredError}
|
|
1090
1096
|
*/
|
|
1091
|
-
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
1097
|
+
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options) {
|
|
1092
1098
|
return localVarFp
|
|
1093
|
-
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options)
|
|
1099
|
+
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options)
|
|
1094
1100
|
.then(request => request(axios, basePath));
|
|
1095
1101
|
},
|
|
1096
1102
|
/**
|
|
@@ -1326,13 +1332,14 @@ export class VaultsApi extends BaseAPI {
|
|
|
1326
1332
|
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
1327
1333
|
* @param {string} [chain] The identifier of the chain
|
|
1328
1334
|
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
1335
|
+
* @param {GetVaultsVaultTypeEnum} [vaultType] Filter vaults by flavor. When omitted, all vaults are returned (tokenized + atomic). Pass ATOMIC to return only atomic (atomic-liquidity) vaults, or TOKENIZED for only tokenized vaults.
|
|
1329
1336
|
* @param {*} [options] Override http request option.
|
|
1330
1337
|
* @throws {RequiredError}
|
|
1331
1338
|
* @memberof VaultsApi
|
|
1332
1339
|
*/
|
|
1333
|
-
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
1340
|
+
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options) {
|
|
1334
1341
|
return VaultsApiFp(this.configuration)
|
|
1335
|
-
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options)
|
|
1342
|
+
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, vaultType, options)
|
|
1336
1343
|
.then(request => request(this.axios, this.basePath));
|
|
1337
1344
|
}
|
|
1338
1345
|
/**
|
|
@@ -1360,3 +1367,10 @@ export class VaultsApi extends BaseAPI {
|
|
|
1360
1367
|
.then(request => request(this.axios, this.basePath));
|
|
1361
1368
|
}
|
|
1362
1369
|
}
|
|
1370
|
+
/**
|
|
1371
|
+
* @export
|
|
1372
|
+
*/
|
|
1373
|
+
export const GetVaultsVaultTypeEnum = {
|
|
1374
|
+
Tokenized: "TOKENIZED",
|
|
1375
|
+
Atomic: "ATOMIC"
|
|
1376
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
* One holdback entry: the portion of a swap\'s collateral withheld at swap time and paid out later by the operator. Created by an ember-share swap and keyed by that swap\'s sequence number, which is the FIFO key a release batch settles against.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AccountHoldback
|
|
18
|
+
*/
|
|
19
|
+
export interface AccountHoldback {
|
|
20
|
+
/**
|
|
21
|
+
* Pending while the entry is still queued awaiting the operator\'s holdback release; Released once a release batch has settled it.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AccountHoldback
|
|
24
|
+
*/
|
|
25
|
+
status: AccountHoldbackStatusEnum;
|
|
26
|
+
/**
|
|
27
|
+
* The collateral withheld at swap time, in the collateral asset\'s base units. Note this is the amount WITHHELD, not the amount finally paid: the per-entry payout is not emitted on-chain, so for a Released entry the settled figure is this amount scaled by releasedUnwindingPercentageE18.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AccountHoldback
|
|
30
|
+
*/
|
|
31
|
+
holdbackAmount: string;
|
|
32
|
+
/**
|
|
33
|
+
* The account whose shares were swapped and whose holdback this is
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AccountHoldback
|
|
36
|
+
*/
|
|
37
|
+
accountAddress: string;
|
|
38
|
+
/**
|
|
39
|
+
* On-chain address of the source (ember) vault whose shares were swapped
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountHoldback
|
|
42
|
+
*/
|
|
43
|
+
sourceVaultId: string;
|
|
44
|
+
/**
|
|
45
|
+
* Off-chain id of the source vault\'s PARENT (matches a vault\'s root `id`) — use to resolve the source vault for name/logo. Null when not indexed by us.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountHoldback
|
|
48
|
+
*/
|
|
49
|
+
sourceVaultParentId?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Off-chain id of the source vault\'s chain-level record (matches a vault\'s detailsByChain[*].id). Null when not indexed by us.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AccountHoldback
|
|
54
|
+
*/
|
|
55
|
+
sourceVaultOffchainId?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Sequence number of the swap that created this entry. This is the FIFO key the operator\'s release range is matched against, not a queue array index.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AccountHoldback
|
|
60
|
+
*/
|
|
61
|
+
swapSequenceNumber: string;
|
|
62
|
+
/**
|
|
63
|
+
* Timestamp in ms the swap queued this holdback
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AccountHoldback
|
|
66
|
+
*/
|
|
67
|
+
submittedAt: number;
|
|
68
|
+
/**
|
|
69
|
+
* Unwinding percentage (1e18 fixed-point, 1e18 = 100%) recorded by the release batch that settled this entry. Null while still Pending.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AccountHoldback
|
|
72
|
+
*/
|
|
73
|
+
releasedUnwindingPercentageE18?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Tx hash of the release that settled this entry. Null while still Pending.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AccountHoldback
|
|
78
|
+
*/
|
|
79
|
+
releasedTxHash?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Tx hash of the swap that queued this holdback
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AccountHoldback
|
|
84
|
+
*/
|
|
85
|
+
txHash: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Asset}
|
|
89
|
+
* @memberof AccountHoldback
|
|
90
|
+
*/
|
|
91
|
+
collateralCoin?: Asset;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {VaultSlice}
|
|
95
|
+
* @memberof AccountHoldback
|
|
96
|
+
*/
|
|
97
|
+
vault: VaultSlice;
|
|
98
|
+
}
|
|
99
|
+
export declare const AccountHoldbackStatusEnum: {
|
|
100
|
+
readonly Pending: "Pending";
|
|
101
|
+
readonly Released: "Released";
|
|
102
|
+
};
|
|
103
|
+
export type AccountHoldbackStatusEnum = (typeof AccountHoldbackStatusEnum)[keyof typeof AccountHoldbackStatusEnum];
|
|
@@ -0,0 +1,17 @@
|
|
|
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 AccountHoldbackStatusEnum = {
|
|
15
|
+
Pending: "Pending",
|
|
16
|
+
Released: "Released"
|
|
17
|
+
};
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DepositTransaction } from "./deposit-transaction.js";
|
|
13
|
+
import type { EscrowClaimTransaction } from "./escrow-claim-transaction.js";
|
|
14
|
+
import type { HoldbackReleaseTransaction } from "./holdback-release-transaction.js";
|
|
15
|
+
import type { InstantWithdrawTransaction } from "./instant-withdraw-transaction.js";
|
|
16
|
+
import type { InstantWithdrawViaSwapTransaction } from "./instant-withdraw-via-swap-transaction.js";
|
|
13
17
|
import type { ParkingLotDepositTransaction } from "./parking-lot-deposit-transaction.js";
|
|
14
18
|
import type { RedeemRequestCancelledTransaction } from "./redeem-request-cancelled-transaction.js";
|
|
15
19
|
import type { RedeemRequestProcessedTransaction } from "./redeem-request-processed-transaction.js";
|
|
@@ -20,4 +24,4 @@ import type { RedeemRequestTransaction } from "./redeem-request-transaction.js";
|
|
|
20
24
|
* The data of the transaction
|
|
21
25
|
* @export
|
|
22
26
|
*/
|
|
23
|
-
export type AccountTransactionTransactionData = DepositTransaction | ParkingLotDepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
|
|
27
|
+
export type AccountTransactionTransactionData = DepositTransaction | EscrowClaimTransaction | HoldbackReleaseTransaction | InstantWithdrawTransaction | InstantWithdrawViaSwapTransaction | ParkingLotDepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
|
|
@@ -46,5 +46,10 @@ export declare const AccountTransactionTransactionTypeEnum: {
|
|
|
46
46
|
readonly RedeemRequestProcessed: "RedeemRequestProcessed";
|
|
47
47
|
readonly RedeemRequestSkipped: "RedeemRequestSkipped";
|
|
48
48
|
readonly RedeemRequestCancelled: "RedeemRequestCancelled";
|
|
49
|
+
readonly InstantWithdraw: "InstantWithdraw";
|
|
50
|
+
readonly InstantWithdrawViaSwap: "InstantWithdrawViaSwap";
|
|
51
|
+
readonly InstantWithdrawSwapHoldbackRelease: "InstantWithdrawSwapHoldbackRelease";
|
|
52
|
+
readonly HoldbackClaimed: "HoldbackClaimed";
|
|
53
|
+
readonly WithdrawalClaimed: "WithdrawalClaimed";
|
|
49
54
|
};
|
|
50
55
|
export type AccountTransactionTransactionTypeEnum = (typeof AccountTransactionTransactionTypeEnum)[keyof typeof AccountTransactionTransactionTypeEnum];
|
|
@@ -21,5 +21,10 @@ export const AccountTransactionTransactionTypeEnum = {
|
|
|
21
21
|
RedeemRequest: "RedeemRequest",
|
|
22
22
|
RedeemRequestProcessed: "RedeemRequestProcessed",
|
|
23
23
|
RedeemRequestSkipped: "RedeemRequestSkipped",
|
|
24
|
-
RedeemRequestCancelled: "RedeemRequestCancelled"
|
|
24
|
+
RedeemRequestCancelled: "RedeemRequestCancelled",
|
|
25
|
+
InstantWithdraw: "InstantWithdraw",
|
|
26
|
+
InstantWithdrawViaSwap: "InstantWithdrawViaSwap",
|
|
27
|
+
InstantWithdrawSwapHoldbackRelease: "InstantWithdrawSwapHoldbackRelease",
|
|
28
|
+
HoldbackClaimed: "HoldbackClaimed",
|
|
29
|
+
WithdrawalClaimed: "WithdrawalClaimed"
|
|
25
30
|
};
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset.js";
|
|
13
|
+
import type { InstantWithdrawConfig } from "./instant-withdraw-config.js";
|
|
13
14
|
import type { SubAccount } from "./sub-account.js";
|
|
15
|
+
import type { SupportedEmberVault } from "./supported-ember-vault.js";
|
|
14
16
|
import type { VaultParkingLotInfo } from "./vault-parking-lot-info.js";
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
@@ -42,6 +44,18 @@ export interface ChainVaultDetails {
|
|
|
42
44
|
* @memberof ChainVaultDetails
|
|
43
45
|
*/
|
|
44
46
|
baseDepositCoin: Asset;
|
|
47
|
+
/**
|
|
48
|
+
* For EMBER/source vaults that an atomic facility supports: the instant-withdraw (swap-with-holdback) terms offered for this vault\'s shares, one entry per atomic facility. Omitted for vaults with no instant-withdraw offering (incl. atomic vaults themselves).
|
|
49
|
+
* @type {Array<InstantWithdrawConfig>}
|
|
50
|
+
* @memberof ChainVaultDetails
|
|
51
|
+
*/
|
|
52
|
+
instantWithdrawConfig?: Array<InstantWithdrawConfig>;
|
|
53
|
+
/**
|
|
54
|
+
* For ATOMIC vaults: the ember/source vaults this facility supports for instant withdrawal (minimal refs; the terms live on each ember vault\'s instantWithdrawConfig). Omitted for non-atomic vaults.
|
|
55
|
+
* @type {Array<SupportedEmberVault>}
|
|
56
|
+
* @memberof ChainVaultDetails
|
|
57
|
+
*/
|
|
58
|
+
supportedEmberVaults?: Array<SupportedEmberVault>;
|
|
45
59
|
/**
|
|
46
60
|
*
|
|
47
61
|
* @type {Asset}
|
|
@@ -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
|
+
* Escrow-claim delivery of deferred collateral (HoldbackClaimed / WithdrawalClaimed). No shares move; amount is the delivered collateral.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface EscrowClaimTransaction
|
|
18
|
+
*/
|
|
19
|
+
export interface EscrowClaimTransaction {
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp of the event
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof EscrowClaimTransaction
|
|
24
|
+
*/
|
|
25
|
+
timestamp?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The collateral amount delivered
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof EscrowClaimTransaction
|
|
30
|
+
*/
|
|
31
|
+
amount?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Asset}
|
|
35
|
+
* @memberof EscrowClaimTransaction
|
|
36
|
+
*/
|
|
37
|
+
coin?: Asset;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {VaultSlice}
|
|
41
|
+
* @memberof EscrowClaimTransaction
|
|
42
|
+
*/
|
|
43
|
+
vault?: VaultSlice;
|
|
44
|
+
/**
|
|
45
|
+
* The tx digest of the transaction
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof EscrowClaimTransaction
|
|
48
|
+
*/
|
|
49
|
+
txDigest?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The sequence number of the transaction
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof EscrowClaimTransaction
|
|
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 {};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* The one-per-network AtomicLiquidityLib external library linked into AtomicLiquidity proxies
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EvmAtomicLiquidityLib
|
|
16
|
+
*/
|
|
17
|
+
export interface EvmAtomicLiquidityLib {
|
|
18
|
+
/**
|
|
19
|
+
* The deployed library address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EvmAtomicLiquidityLib
|
|
22
|
+
*/
|
|
23
|
+
address?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The address that deployed the library
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EvmAtomicLiquidityLib
|
|
28
|
+
*/
|
|
29
|
+
deployerAddress?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The deployment timestamp
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EvmAtomicLiquidityLib
|
|
34
|
+
*/
|
|
35
|
+
deployedAt?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The block number at which the library was deployed
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof EvmAtomicLiquidityLib
|
|
40
|
+
*/
|
|
41
|
+
deploymentBlockNumber?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The deployed bytecode size in bytes
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof EvmAtomicLiquidityLib
|
|
46
|
+
*/
|
|
47
|
+
bytecodeSize?: number;
|
|
48
|
+
}
|
|
@@ -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 {};
|