@ember-finance/sdk 2.5.0-pre.9 → 2.5.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/ERC20Token.json +2 -2
- package/dist/src/abis/EmberETHVault.json +5 -279
- package/dist/src/abis/EmberProtocolConfig.json +2 -170
- package/dist/src/abis/EmberVault.json +2 -2
- package/dist/src/abis/EmberVaultMintBurnOFTAdapter.json +2 -43
- package/dist/src/api/models/poc-report-asset.d.ts +6 -0
- package/dist/src/api/models/poc-report-protocol.d.ts +30 -0
- package/dist/src/api/models/poc-report-token.d.ts +36 -0
- package/dist/src/api/models/poc-report-wallet.d.ts +10 -4
- package/dist/src/api/v2/apis/accounts-api.d.ts +0 -5
- package/dist/src/api/v2/apis/accounts-api.js +1 -6
- package/dist/src/api/v2/apis/vaults-api.d.ts +43 -16
- package/dist/src/api/v2/apis/vaults-api.js +84 -21
- package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +1 -5
- package/dist/src/api/v2/models/account-transaction.d.ts +0 -5
- package/dist/src/api/v2/models/account-transaction.js +1 -6
- package/dist/src/api/v2/models/chain-vault-details.d.ts +13 -14
- package/dist/src/api/v2/models/chain-vault-details.js +6 -1
- package/dist/src/api/v2/models/evm-contracts.d.ts +0 -16
- package/dist/src/api/v2/models/index.d.ts +4 -9
- package/dist/src/api/v2/models/index.js +4 -9
- package/dist/src/api/v2/models/poc-report-asset.d.ts +6 -0
- package/dist/src/api/v2/models/poc-report-protocol.d.ts +30 -0
- package/dist/src/api/v2/models/poc-report-token.d.ts +36 -0
- package/dist/src/api/v2/models/poc-report-wallet.d.ts +10 -4
- package/dist/src/api/v2/models/transparency-group.d.ts +67 -0
- package/dist/src/api/v2/models/transparency-row.d.ts +138 -0
- package/dist/src/api/v2/models/{fee-multiplier-tier.js → transparency-row.js} +10 -1
- package/dist/src/api/v2/models/transparency-view.d.ts +22 -0
- package/dist/src/api/v2/models/{evm-atomic-vault.js → transparency-view.js} +10 -1
- package/dist/src/api/v2/models/vault-detail.d.ts +0 -11
- package/dist/src/api/v2/models/vault-detail.js +0 -4
- package/dist/src/api/v2/models/vault-transparency-report.d.ts +82 -0
- package/dist/src/ember-vaults.d.ts +1 -2
- package/dist/src/evm-vaults/on-chain-calls/index.d.ts +0 -1
- package/dist/src/evm-vaults/on-chain-calls/index.js +0 -1
- package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +0 -10
- package/dist/src/evm-vaults/on-chain-calls/operator.js +0 -28
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +0 -109
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +0 -281
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +0 -50
- package/dist/src/evm-vaults/on-chain-calls/user.js +0 -75
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +0 -55
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +0 -122
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +0 -6
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +0 -9
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +0 -8
- package/dist/src/evm-vaults/utils/deployment-parser.js +0 -11
- package/dist/src/sui-vaults/interfaces/index.d.ts +0 -15
- package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +1 -37
- package/dist/src/sui-vaults/on-chain-calls/admin.js +0 -56
- package/dist/src/sui-vaults/on-chain-calls/index.d.ts +0 -1
- package/dist/src/sui-vaults/on-chain-calls/index.js +0 -1
- package/dist/src/sui-vaults/on-chain-calls/onchain-calls.d.ts +1 -2
- package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +1 -129
- package/dist/src/sui-vaults/on-chain-calls/operator.js +0 -210
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +0 -482
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +0 -1430
- package/dist/src/sui-vaults/on-chain-calls/user.d.ts +1 -107
- package/dist/src/sui-vaults/on-chain-calls/user.js +0 -190
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +1 -229
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +0 -391
- package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +1 -2
- package/dist/src/sui-vaults/utils/common.d.ts +1 -2
- package/dist/src/sui-vaults/utils/deployment-parser.d.ts +0 -12
- package/dist/src/sui-vaults/utils/deployment-parser.js +0 -24
- package/package.json +2 -3
- package/dist/src/abis/AtomicLiquidity.json +0 -4050
- package/dist/src/api/v2/models/escrow-claim-transaction.d.ts +0 -56
- package/dist/src/api/v2/models/evm-atomic-liquidity-lib.d.ts +0 -48
- package/dist/src/api/v2/models/evm-atomic-vault.d.ts +0 -102
- package/dist/src/api/v2/models/fee-multiplier-tier.d.ts +0 -30
- package/dist/src/api/v2/models/holdback-release-transaction.d.ts +0 -56
- package/dist/src/api/v2/models/holdback-release-transaction.js +0 -14
- package/dist/src/api/v2/models/instant-withdraw-config.d.ts +0 -109
- package/dist/src/api/v2/models/instant-withdraw-config.js +0 -14
- package/dist/src/api/v2/models/instant-withdraw-transaction.d.ts +0 -74
- package/dist/src/api/v2/models/instant-withdraw-transaction.js +0 -14
- package/dist/src/api/v2/models/instant-withdraw-via-swap-transaction.d.ts +0 -74
- package/dist/src/api/v2/models/instant-withdraw-via-swap-transaction.js +0 -14
- package/dist/src/api/v2/models/supported-ember-vault.d.ts +0 -42
- package/dist/src/api/v2/models/supported-ember-vault.js +0 -14
- package/dist/src/atomic/instant-withdraw.d.ts +0 -125
- package/dist/src/atomic/instant-withdraw.js +0 -122
- package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.d.ts +0 -98
- package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.js +0 -212
- package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.d.ts +0 -62
- package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.js +0 -174
- /package/dist/src/api/v2/models/{escrow-claim-transaction.js → transparency-group.js} +0 -0
- /package/dist/src/api/v2/models/{evm-atomic-liquidity-lib.js → vault-transparency-report.js} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
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 TransparencyRow
|
|
16
|
+
*/
|
|
17
|
+
export interface TransparencyRow {
|
|
18
|
+
/**
|
|
19
|
+
* Which section of the report this row came from
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TransparencyRow
|
|
22
|
+
*/
|
|
23
|
+
category: TransparencyRowCategoryEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the row is a protocol position or a plain token holding. Token rows under a wallet are what the UI labels \"Wallet\".
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransparencyRow
|
|
28
|
+
*/
|
|
29
|
+
positionType: TransparencyRowPositionTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* The chain identifier (e.g. ethereum, sui-mainnet). Absent for exchange rows.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TransparencyRow
|
|
34
|
+
*/
|
|
35
|
+
chain?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The human-readable chain name (e.g. Ethereum, SUI)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TransparencyRow
|
|
40
|
+
*/
|
|
41
|
+
chainName?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The chain type (e.g. EVM, SUI, SOLANA), or OTHER when it cannot be resolved
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TransparencyRow
|
|
46
|
+
*/
|
|
47
|
+
chainType?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The custodian/wallet name shown as the row\'s source (e.g. Fordefi 1)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TransparencyRow
|
|
52
|
+
*/
|
|
53
|
+
walletName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The wallet address this position belongs to
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TransparencyRow
|
|
58
|
+
*/
|
|
59
|
+
walletAddress?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the blockchain explorer
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TransparencyRow
|
|
64
|
+
*/
|
|
65
|
+
explorerName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* URL to view the wallet on a blockchain explorer
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof TransparencyRow
|
|
70
|
+
*/
|
|
71
|
+
explorerUrl?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The protocol the capital is deployed in, or the exchange name for exchange rows. Absent for plain token holdings.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof TransparencyRow
|
|
76
|
+
*/
|
|
77
|
+
protocol?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The asset symbol/name. Absent for protocol positions, which the upstream providers report as a single value without an asset breakdown.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof TransparencyRow
|
|
82
|
+
*/
|
|
83
|
+
asset?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The asset contract address, when known
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof TransparencyRow
|
|
88
|
+
*/
|
|
89
|
+
assetAddress?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Icon for the chain, resolved from the chains catalogue
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof TransparencyRow
|
|
94
|
+
*/
|
|
95
|
+
chainLogoUrl?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Icon for the protocol. Taken from the report when the data provider supplied one, otherwise resolved from the protocol catalogue by name.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof TransparencyRow
|
|
100
|
+
*/
|
|
101
|
+
protocolLogoUrl?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Protocol website, resolved the same way as its icon
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof TransparencyRow
|
|
106
|
+
*/
|
|
107
|
+
protocolWebsiteUrl?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Icon for the asset, when the report carries one
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof TransparencyRow
|
|
112
|
+
*/
|
|
113
|
+
assetLogoUrl?: string;
|
|
114
|
+
/**
|
|
115
|
+
* The value of this position in e9 USD
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof TransparencyRow
|
|
118
|
+
*/
|
|
119
|
+
capitalUsdE9: string;
|
|
120
|
+
/**
|
|
121
|
+
* Share of total exposure in e9 (e.g. 45300000 = 4.53%)
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof TransparencyRow
|
|
124
|
+
*/
|
|
125
|
+
percentageOfNavE9: string;
|
|
126
|
+
}
|
|
127
|
+
export declare const TransparencyRowCategoryEnum: {
|
|
128
|
+
readonly Wallet: "wallet";
|
|
129
|
+
readonly Exchange: "exchange";
|
|
130
|
+
readonly AwaitingDeployment: "awaitingDeployment";
|
|
131
|
+
readonly LiquidityBuffer: "liquidityBuffer";
|
|
132
|
+
};
|
|
133
|
+
export type TransparencyRowCategoryEnum = (typeof TransparencyRowCategoryEnum)[keyof typeof TransparencyRowCategoryEnum];
|
|
134
|
+
export declare const TransparencyRowPositionTypeEnum: {
|
|
135
|
+
readonly Protocol: "protocol";
|
|
136
|
+
readonly Token: "token";
|
|
137
|
+
};
|
|
138
|
+
export type TransparencyRowPositionTypeEnum = (typeof TransparencyRowPositionTypeEnum)[keyof typeof TransparencyRowPositionTypeEnum];
|
|
@@ -11,4 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
export {
|
|
14
|
+
export const TransparencyRowCategoryEnum = {
|
|
15
|
+
Wallet: "wallet",
|
|
16
|
+
Exchange: "exchange",
|
|
17
|
+
AwaitingDeployment: "awaitingDeployment",
|
|
18
|
+
LiquidityBuffer: "liquidityBuffer"
|
|
19
|
+
};
|
|
20
|
+
export const TransparencyRowPositionTypeEnum = {
|
|
21
|
+
Protocol: "protocol",
|
|
22
|
+
Token: "token"
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* How positions are grouped in the `groups` array: by chain (the exposure snapshot), by holding wallet, or by asset.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const TransparencyView: {
|
|
18
|
+
readonly Chains: "chains";
|
|
19
|
+
readonly Wallets: "wallets";
|
|
20
|
+
readonly Assets: "assets";
|
|
21
|
+
};
|
|
22
|
+
export type TransparencyView = (typeof TransparencyView)[keyof typeof TransparencyView];
|
|
@@ -11,4 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* How positions are grouped in the `groups` array: by chain (the exposure snapshot), by holding wallet, or by asset.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
export const TransparencyView = {
|
|
20
|
+
Chains: "chains",
|
|
21
|
+
Wallets: "wallets",
|
|
22
|
+
Assets: "assets"
|
|
23
|
+
};
|
|
@@ -30,12 +30,6 @@ export interface VaultDetail {
|
|
|
30
30
|
* @memberof VaultDetail
|
|
31
31
|
*/
|
|
32
32
|
id: string;
|
|
33
|
-
/**
|
|
34
|
-
* Vault flavor at the parent (root) level. TOKENIZED vaults mint a transferable receipt token. ATOMIC (atomic-liquidity) vaults use non-transferable internal shares and have no real receipt token. Defaults to TOKENIZED for backward compatibility.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof VaultDetail
|
|
37
|
-
*/
|
|
38
|
-
vaultType?: VaultDetailVaultTypeEnum;
|
|
39
33
|
/**
|
|
40
34
|
* Short name/symbol of the vault
|
|
41
35
|
* @type {string}
|
|
@@ -243,11 +237,6 @@ export interface VaultDetail {
|
|
|
243
237
|
*/
|
|
244
238
|
defiIntegrations: Array<DefiIntegration>;
|
|
245
239
|
}
|
|
246
|
-
export declare const VaultDetailVaultTypeEnum: {
|
|
247
|
-
readonly Tokenized: "TOKENIZED";
|
|
248
|
-
readonly Atomic: "ATOMIC";
|
|
249
|
-
};
|
|
250
|
-
export type VaultDetailVaultTypeEnum = (typeof VaultDetailVaultTypeEnum)[keyof typeof VaultDetailVaultTypeEnum];
|
|
251
240
|
export declare const VaultDetailStatusEnum: {
|
|
252
241
|
readonly Active: "active";
|
|
253
242
|
readonly Paused: "paused";
|
|
@@ -11,10 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
export const VaultDetailVaultTypeEnum = {
|
|
15
|
-
Tokenized: "TOKENIZED",
|
|
16
|
-
Atomic: "ATOMIC"
|
|
17
|
-
};
|
|
18
14
|
export const VaultDetailStatusEnum = {
|
|
19
15
|
Active: "active",
|
|
20
16
|
Paused: "paused",
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { ProofOfCapitalReportStatus } from "./proof-of-capital-report-status.js";
|
|
13
|
+
import type { TransparencyGroup } from "./transparency-group.js";
|
|
14
|
+
import type { TransparencyRow } from "./transparency-row.js";
|
|
15
|
+
import type { TransparencyView } from "./transparency-view.js";
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VaultTransparencyReport
|
|
20
|
+
*/
|
|
21
|
+
export interface VaultTransparencyReport {
|
|
22
|
+
/**
|
|
23
|
+
* The id of the underlying proof of capital report
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VaultTransparencyReport
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The timestamp of the report in milliseconds
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof VaultTransparencyReport
|
|
32
|
+
*/
|
|
33
|
+
generatedAt: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ProofOfCapitalReportStatus}
|
|
37
|
+
* @memberof VaultTransparencyReport
|
|
38
|
+
*/
|
|
39
|
+
status: ProofOfCapitalReportStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Notes/remarks added during review
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VaultTransparencyReport
|
|
44
|
+
*/
|
|
45
|
+
notes?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Total exposure (system NAV) in e9 USD; the denominator for percentageOfNavE9
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VaultTransparencyReport
|
|
50
|
+
*/
|
|
51
|
+
totalExposureUsdE9: string;
|
|
52
|
+
/**
|
|
53
|
+
* Total user deposits (withdrawable) in e9 USD
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof VaultTransparencyReport
|
|
56
|
+
*/
|
|
57
|
+
userDepositsUsdE9: string;
|
|
58
|
+
/**
|
|
59
|
+
* Total exposure divided by user deposits
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof VaultTransparencyReport
|
|
62
|
+
*/
|
|
63
|
+
healthRatio: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {TransparencyView}
|
|
67
|
+
* @memberof VaultTransparencyReport
|
|
68
|
+
*/
|
|
69
|
+
view: TransparencyView;
|
|
70
|
+
/**
|
|
71
|
+
* Every position as a flat row, with all grouping dimensions attached. Returned regardless of `view` so a client can pivot it differently (e.g. by chainType for the summary donut) without another request.
|
|
72
|
+
* @type {Array<TransparencyRow>}
|
|
73
|
+
* @memberof VaultTransparencyReport
|
|
74
|
+
*/
|
|
75
|
+
rows: Array<TransparencyRow>;
|
|
76
|
+
/**
|
|
77
|
+
* The same positions arranged for the requested `view`: one group per chain, wallet or asset, each carrying its own subtotal and the rows beneath it. Ordered by value, largest first.
|
|
78
|
+
* @type {Array<TransparencyGroup>}
|
|
79
|
+
* @memberof VaultTransparencyReport
|
|
80
|
+
*/
|
|
81
|
+
groups: Array<TransparencyGroup>;
|
|
82
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Signer as SuiSigner } from "@firefly-exchange/library-sui";
|
|
2
|
-
import { BaseClient as SuiClient } from "@mysten/sui/client";
|
|
1
|
+
import { Signer as SuiSigner, SuiClient } from "@firefly-exchange/library-sui";
|
|
3
2
|
import { Signer as EvmSigner, Provider as EvmProvider } from "ethers";
|
|
4
3
|
import { ISuiDeployment } from "./sui-vaults/interfaces/index.js";
|
|
5
4
|
import { TxBuilder as SuiTxBuilder } from "./sui-vaults/on-chain-calls/index.js";
|
|
@@ -99,14 +99,4 @@ export declare class EVMOperatorCalls extends EVMOnChainCalls {
|
|
|
99
99
|
* @returns EvmOnChainCallResponse
|
|
100
100
|
*/
|
|
101
101
|
setDepositAllowList(vaultAddress: string, user: string, status: boolean, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
102
|
-
/** Atomic vault: supply `assets` of idle collateral into the external ERC-4626 strategy. */
|
|
103
|
-
supplyToStrategy(vaultAddress: string, assets: NumStr, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
104
|
-
/** Atomic vault: withdraw `assets` of collateral back from the strategy into the vault. */
|
|
105
|
-
withdrawFromStrategy(vaultAddress: string, assets: NumStr, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
106
|
-
/** Atomic vault: submit `amount` of collected source `share` for redemption on the source vault. */
|
|
107
|
-
redeemCollectedEmberShares(vaultAddress: string, share: string, amount: NumStr, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
108
|
-
/** Atomic vault: release the holdback FIFO for `share` at `unwindingPercentage` (1e18=100%), up to `maxEntries`. */
|
|
109
|
-
releaseUsersHoldback(vaultAddress: string, share: string, unwindingPercentage: NumStr, maxEntries: NumStr, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
110
|
-
/** Atomic vault: move `amount` of collateral to a registered sub-account. */
|
|
111
|
-
supplyToSubAccount(vaultAddress: string, subAccount: string, amount: NumStr, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
112
102
|
}
|
|
@@ -136,32 +136,4 @@ export class EVMOperatorCalls extends EVMOnChainCalls {
|
|
|
136
136
|
const txCall = this.txBuilder.setVaultDepositAllowList(vaultAddress, user, status);
|
|
137
137
|
return this.execCall(txCall, options);
|
|
138
138
|
}
|
|
139
|
-
// ============================================
|
|
140
|
-
// Atomic Liquidity Vault — operator actions (BFE-817/818)
|
|
141
|
-
// ============================================
|
|
142
|
-
/** Atomic vault: supply `assets` of idle collateral into the external ERC-4626 strategy. */
|
|
143
|
-
async supplyToStrategy(vaultAddress, assets, options) {
|
|
144
|
-
const txCall = this.txBuilder.atomicSupplyToStrategy(vaultAddress, assets);
|
|
145
|
-
return this.execCall(txCall, options);
|
|
146
|
-
}
|
|
147
|
-
/** Atomic vault: withdraw `assets` of collateral back from the strategy into the vault. */
|
|
148
|
-
async withdrawFromStrategy(vaultAddress, assets, options) {
|
|
149
|
-
const txCall = this.txBuilder.atomicWithdrawFromStrategy(vaultAddress, assets);
|
|
150
|
-
return this.execCall(txCall, options);
|
|
151
|
-
}
|
|
152
|
-
/** Atomic vault: submit `amount` of collected source `share` for redemption on the source vault. */
|
|
153
|
-
async redeemCollectedEmberShares(vaultAddress, share, amount, options) {
|
|
154
|
-
const txCall = this.txBuilder.atomicRedeemCollectedEmberShares(vaultAddress, share, amount);
|
|
155
|
-
return this.execCall(txCall, options);
|
|
156
|
-
}
|
|
157
|
-
/** Atomic vault: release the holdback FIFO for `share` at `unwindingPercentage` (1e18=100%), up to `maxEntries`. */
|
|
158
|
-
async releaseUsersHoldback(vaultAddress, share, unwindingPercentage, maxEntries, options) {
|
|
159
|
-
const txCall = this.txBuilder.atomicReleaseUsersHoldback(vaultAddress, share, unwindingPercentage, maxEntries);
|
|
160
|
-
return this.execCall(txCall, options);
|
|
161
|
-
}
|
|
162
|
-
/** Atomic vault: move `amount` of collateral to a registered sub-account. */
|
|
163
|
-
async supplyToSubAccount(vaultAddress, subAccount, amount, options) {
|
|
164
|
-
const txCall = this.txBuilder.atomicSupplyToSubAccount(vaultAddress, subAccount, amount);
|
|
165
|
-
return this.execCall(txCall, options);
|
|
166
|
-
}
|
|
167
139
|
}
|
|
@@ -280,27 +280,6 @@ export declare class EVMTxBuilder {
|
|
|
280
280
|
* @returns Transaction call object
|
|
281
281
|
*/
|
|
282
282
|
collectPlatformFee(vaultAddress: string, isETHVault?: boolean): ITransactionCall;
|
|
283
|
-
/**
|
|
284
|
-
* EmberETHVault: claim the caller's own escrowed (deferred) ETH withdrawal — accrued
|
|
285
|
-
* when a withdrawal couldn't be sent (receiver rejected the transfer). EmberETHVault only.
|
|
286
|
-
*/
|
|
287
|
-
claimWithdrawal(vaultAddress: string): ITransactionCall;
|
|
288
|
-
/**
|
|
289
|
-
* EmberETHVault: deliver `receiver`'s escrowed ETH withdrawal on their behalf
|
|
290
|
-
* (permissionless — funds can only go to `receiver`). EmberETHVault only.
|
|
291
|
-
*/
|
|
292
|
-
claimWithdrawalFor(vaultAddress: string, receiver: string): ITransactionCall;
|
|
293
|
-
/**
|
|
294
|
-
* EmberETHVault: redirect the CALLER's own escrowed ETH withdrawal to `to`. For a
|
|
295
|
-
* receiver that can transact but can no longer receive ETH; delivers only the
|
|
296
|
-
* caller's own escrow. EmberETHVault only.
|
|
297
|
-
*/
|
|
298
|
-
claimWithdrawalTo(vaultAddress: string, to: string): ITransactionCall;
|
|
299
|
-
/**
|
|
300
|
-
* EmberETHVault: owner recovery of `receiver`'s escrowed ETH to `to` (a permanently
|
|
301
|
-
* unpayable receiver). Owner-only (called directly on the vault). EmberETHVault only.
|
|
302
|
-
*/
|
|
303
|
-
recoverUnclaimedWithdrawal(vaultAddress: string, receiver: string, to: string): ITransactionCall;
|
|
304
283
|
/**
|
|
305
284
|
* Withdraws assets from the vault without redeeming shares (operator only)
|
|
306
285
|
* Used by operators to move funds to sub-accounts for strategy execution
|
|
@@ -522,92 +501,4 @@ export declare class EVMTxBuilder {
|
|
|
522
501
|
* @returns Transaction call object
|
|
523
502
|
*/
|
|
524
503
|
bridgeSend(adapterAddress: string, sendParam: IOFTSendParam, fee: IOFTMessagingFee, refundAddress: string): ITransactionCall;
|
|
525
|
-
private atomicCall;
|
|
526
|
-
/** Claim the caller's own escrowed (deferred) holdback collateral. */
|
|
527
|
-
atomicClaimHoldback(vaultAddress: string): ITransactionCall;
|
|
528
|
-
/** Deliver `recipient`'s escrowed holdback on their behalf (permissionless). */
|
|
529
|
-
atomicClaimHoldbackFor(vaultAddress: string, recipient: string): ITransactionCall;
|
|
530
|
-
/**
|
|
531
|
-
* Redirect the CALLER's own escrowed holdback to `to`. For a recipient that can
|
|
532
|
-
* transact but can no longer receive the collateral token (e.g. token blacklist);
|
|
533
|
-
* moves only the caller's own escrow.
|
|
534
|
-
*/
|
|
535
|
-
atomicClaimHoldbackTo(vaultAddress: string, to: string): ITransactionCall;
|
|
536
|
-
/**
|
|
537
|
-
* Owner recovery of `recipient`'s escrowed holdback to `to` (a permanently unpayable
|
|
538
|
-
* recipient). Owner-only, called directly on the vault (not via protocol config).
|
|
539
|
-
*/
|
|
540
|
-
atomicRecoverUnclaimedHoldback(vaultAddress: string, recipient: string, to: string): ITransactionCall;
|
|
541
|
-
/**
|
|
542
|
-
* Builds an atomic-vault ADMIN call routed through the vault's protocol config. Atomic admin
|
|
543
|
-
* setters are `onlyProtocolConfig`, so they must be invoked on the EmberProtocolConfig (which
|
|
544
|
-
* forwards msg.sender as `caller`) — never on the vault directly. Targets the vault's OWN
|
|
545
|
-
* protocol config (atomic vaults may use a config distinct from the global one). Each config
|
|
546
|
-
* forwarder takes the vault address as its first argument and derives `caller` from msg.sender.
|
|
547
|
-
*/
|
|
548
|
-
private atomicConfigCall;
|
|
549
|
-
/** Instant (capped, fee'd) withdraw of `shares` to `receiver`; auto-pulls from strategy. */
|
|
550
|
-
atomicInstantWithdraw(vaultAddress: string, shares: NumStr, receiver: string): ITransactionCall;
|
|
551
|
-
/** Swap `shareAmount` of a whitelisted source EmberShare into this vault's collateral. */
|
|
552
|
-
atomicSwapEmberShares(vaultAddress: string, share: string, shareAmount: NumStr, receiver: string): ITransactionCall;
|
|
553
|
-
/** Supply `assets` of idle collateral into the external ERC-4626 strategy. */
|
|
554
|
-
atomicSupplyToStrategy(vaultAddress: string, assets: NumStr): ITransactionCall;
|
|
555
|
-
/** Withdraw `assets` of collateral back from the strategy into the vault. */
|
|
556
|
-
atomicWithdrawFromStrategy(vaultAddress: string, assets: NumStr): ITransactionCall;
|
|
557
|
-
/** Submit `amount` of collected source `share` for redemption on the source EmberVault. */
|
|
558
|
-
atomicRedeemCollectedEmberShares(vaultAddress: string, share: string, amount: NumStr): ITransactionCall;
|
|
559
|
-
/** Release the holdback FIFO for `share` at `unwindingPercentage` (1e18 = 100%), up to `maxEntries`. */
|
|
560
|
-
atomicReleaseUsersHoldback(vaultAddress: string, share: string, unwindingPercentage: NumStr, maxEntries: NumStr): ITransactionCall;
|
|
561
|
-
/** Set the external ERC-4626 strategy (address(0) to disable). Drain the old strategy first. */
|
|
562
|
-
atomicSetStrategy(vaultAddress: string, _caller: string, newStrategy: string): ITransactionCall;
|
|
563
|
-
/**
|
|
564
|
-
* Whitelist (or update) a source EmberShare with fee / capacity / holdback / utilization
|
|
565
|
-
* percentages, a per-swap minimum gross floor (`minSwapGross`, 0 disables), and a
|
|
566
|
-
* TVL-independent absolute held-value cap (`maxHeldValueAbsolute`, 0 disables).
|
|
567
|
-
*/
|
|
568
|
-
atomicSetEmberShareWhitelist(vaultAddress: string, _caller: string, share: string, whitelisted: boolean, feePercentage: NumStr, maxCapacityPercentage: NumStr, holdbackPercentage: NumStr, maxUtilizationPercentage: NumStr, minSwapGross: NumStr, maxHeldValueAbsolute: NumStr): ITransactionCall;
|
|
569
|
-
/** Set per-account swap waivers (fee and/or holdback); (false,false) removes them. */
|
|
570
|
-
atomicSetSwapWaiver(vaultAddress: string, _caller: string, account: string, feeWaived: boolean, holdbackWaived: boolean): ITransactionCall;
|
|
571
|
-
/**
|
|
572
|
-
* Add/update (remove=false) or remove (remove=true) a fee-multiplier curve
|
|
573
|
-
* tier for an EmberShare. threshold is a utilization percentage (1e18 = 100%);
|
|
574
|
-
* multiplier is a fee multiplier (1e18 = 1x, must be >= 1e18 on upsert).
|
|
575
|
-
*/
|
|
576
|
-
atomicUpdateEmberShareFeeMultiplierTier(vaultAddress: string, _caller: string, share: string, threshold: NumStr, multiplier: NumStr, remove: boolean): ITransactionCall;
|
|
577
|
-
/** Set the cumulative instant-withdraw cap (in shares). */
|
|
578
|
-
atomicSetMaxInstantWithdrawShares(vaultAddress: string, _caller: string, newMax: NumStr): ITransactionCall;
|
|
579
|
-
/** Set the instant-withdraw fee percentage. */
|
|
580
|
-
atomicSetInstantWithdrawFeePercentage(vaultAddress: string, _caller: string, newFeePercentage: NumStr): ITransactionCall;
|
|
581
|
-
/** Set the platform fee percentage. */
|
|
582
|
-
atomicSetFeePercentage(vaultAddress: string, _caller: string, newFeePercentage: NumStr): ITransactionCall;
|
|
583
|
-
/** Set the maximum TVL. */
|
|
584
|
-
atomicSetMaxTVL(vaultAddress: string, _caller: string, newMaxTVL: NumStr): ITransactionCall;
|
|
585
|
-
/** Set the minimum withdrawable shares. */
|
|
586
|
-
atomicSetMinWithdrawableShares(vaultAddress: string, _caller: string, newMinWithdrawableShares: NumStr): ITransactionCall;
|
|
587
|
-
/** Set the max rate change per update bound. */
|
|
588
|
-
atomicSetMaxRateChangePerUpdate(vaultAddress: string, _caller: string, newMaxRateChangePerUpdate: NumStr): ITransactionCall;
|
|
589
|
-
/** Set the minimum interval between rate updates (ms). */
|
|
590
|
-
atomicSetRateUpdateInterval(vaultAddress: string, _caller: string, newInterval: NumStr): ITransactionCall;
|
|
591
|
-
/** Rename the vault. */
|
|
592
|
-
atomicSetVaultName(vaultAddress: string, _caller: string, newName: string): ITransactionCall;
|
|
593
|
-
/** Set the vault validator contract. */
|
|
594
|
-
atomicSetVaultValidator(vaultAddress: string, _caller: string, validator: string): ITransactionCall;
|
|
595
|
-
/** Add/remove a sub-account. */
|
|
596
|
-
atomicSetSubAccountStatus(vaultAddress: string, _caller: string, account: string, isSubAccount: boolean): ITransactionCall;
|
|
597
|
-
/** Pause/unpause one operation ("deposits" | "withdrawals" | "privilegedOperations"). */
|
|
598
|
-
atomicSetPausedStatus(vaultAddress: string, _caller: string, operation: string, paused: boolean): ITransactionCall;
|
|
599
|
-
/** Move `amount` of collateral to a registered sub-account (operator). */
|
|
600
|
-
atomicSupplyToSubAccount(vaultAddress: string, subAccount: string, amount: NumStr): ITransactionCall;
|
|
601
|
-
/** Rotate the admin role. */
|
|
602
|
-
atomicSetAdmin(vaultAddress: string, _caller: string, newAdmin: string): ITransactionCall;
|
|
603
|
-
/** Rotate the operator role. */
|
|
604
|
-
atomicSetOperator(vaultAddress: string, _caller: string, newOperator: string): ITransactionCall;
|
|
605
|
-
/** Rotate the rate-manager role. */
|
|
606
|
-
atomicSetRateManager(vaultAddress: string, _caller: string, newRateManager: string): ITransactionCall;
|
|
607
|
-
/** Transfer contract ownership (UUPS owner). */
|
|
608
|
-
atomicTransferOwnership(vaultAddress: string, newOwner: string): ITransactionCall;
|
|
609
|
-
/** Renounce ownership (irreversible). */
|
|
610
|
-
atomicRenounceOwnership(vaultAddress: string): ITransactionCall;
|
|
611
|
-
/** Upgrade the implementation and optionally call init data (UUPS). */
|
|
612
|
-
atomicUpgradeToAndCall(vaultAddress: string, newImplementation: string, data: string): ITransactionCall;
|
|
613
504
|
}
|