@dhedge/trading-widget 3.9.1 → 3.10.0-canary.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/README.md +0 -1
- package/core-kit/abi/index.d.ts +0 -1
- package/core-kit/const/config.d.ts +1 -1
- package/core-kit/const/contracts/optimism.d.ts +0 -1
- package/core-kit/const/default-data.d.ts +3 -4
- package/core-kit/hooks/pool/index.d.ts +0 -2
- package/core-kit/hooks/pool/multicall/index.d.ts +2 -1
- package/core-kit/hooks/pool/multicall/use-pool.dynamic.d.ts +555 -0
- package/core-kit/hooks/pool/multicall/use-user-balances.dynamic.d.ts +556 -0
- package/core-kit/hooks/pool/use-pool-dynamic-exit-remaining-cooldown.d.ts +2 -3
- package/core-kit/hooks/pool/use-pool-fees.d.ts +3 -2
- package/core-kit/hooks/pool/use-pool-token-price.d.ts +3 -2
- package/core-kit/types/contract.types.d.ts +0 -13
- package/index.cjs +47 -47
- package/index.d.ts +5 -4
- package/index.js +8373 -8538
- package/package.json +1 -1
- package/trading-widget/hooks/use-user-vault-balance.d.ts +268 -3
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +0 -1
- package/trading-widget/types/index.d.ts +0 -1
- package/core-kit/abi/dhedge-staking-v2.d.ts +0 -127
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +0 -1096
- package/core-kit/hooks/pool/use-pool-dynamic-contract-data.d.ts +0 -19
- package/trading-widget/hooks/use-user-staked-pools.d.ts +0 -5
- package/trading-widget/types/staking.types.d.ts +0 -6
package/README.md
CHANGED
|
@@ -123,7 +123,6 @@ UI configuration provider. Manages params to configure custom styling, component
|
|
|
123
123
|
> | `customLockTime` | `string` | `'15 minutes'` | Formatted custom deposit lock time alternative to be displayed in panel |
|
|
124
124
|
> | `stablePrecision` | `number` | `3` | Number of decimals to be displayed in stables (e.g USDC balance) |
|
|
125
125
|
> | `defaultPrecision` | `number` | `6` | Number of decimals to be displayed in token values |
|
|
126
|
-
> | `stakingChainId` | `number` | `10` (Optimism) | ChainId to be used in staking logic |
|
|
127
126
|
> | `termsOfUseAccepted` | `boolean` | `true` | Requires user to confirm terms of use by rendering DepositTermsOfUse component before deposit action |
|
|
128
127
|
> | `standalone` | `boolean` | `true` | Handles token selection in SPA mode |
|
|
129
128
|
> | `isAllAssetsWithdrawOptionDefault` | `boolean` | `false` | Sets "All Assets" withdraw option by default |
|
package/core-kit/abi/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { erc20Abi } from './erc20';
|
|
2
2
|
export { AaveLendingPoolAbi } from './aave/aave-lending-pool';
|
|
3
3
|
export { AaveAssetGuardAbi } from './aave/aave-asset-guard';
|
|
4
|
-
export { DHedgeStakingV2Abi } from './dhedge-staking-v2';
|
|
5
4
|
export { PoolFactoryAbi } from './pool-factory';
|
|
6
5
|
export { PoolLogicAbi, ComplexWithdrawalAssetSrcDataAbiItem, ComplexWithdrawalDataAbiItem, } from './pool-logic';
|
|
7
6
|
export { PoolManagerLogicAbi } from './pool-manager-logic';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, ChainId } from 'core-kit/types/web3.types';
|
|
2
|
-
export type ContractId = 'factory' | 'rewardDistribution' | 'aaveLendingPoolV2' | 'aaveLendingPoolV3' | '
|
|
2
|
+
export type ContractId = 'factory' | 'rewardDistribution' | 'aaveLendingPoolV2' | 'aaveLendingPoolV3' | 'poolManagerLogic' | 'erc20' | 'poolLogic' | 'flatcoinPointsModule' | 'easySwapperV2' | 'limitOrder';
|
|
3
3
|
type ContractsAddressesMap = Readonly<Record<ChainId, {
|
|
4
4
|
[id in ContractId]?: Address;
|
|
5
5
|
}>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const REWARD_DISTRIBUTION_ADDRESS_OPTIMISM = "0x07e144e336fcc3fe928a8a2a5714da64354c1aab";
|
|
2
2
|
export declare const FACTORY_ADDRESS_OPTIMISM = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6";
|
|
3
|
-
export declare const STAKING_V2_ADDRESS_OPTIMISM = "0xf165ca3d75120d817b7428eef8c39ea5cb33b612";
|
|
4
3
|
export declare const AAVE_LENDING_POOL_V3_ADDRESS_OPTIMISM = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
|
|
5
4
|
export declare const EASY_SWAPPER_V2_ADDRESS_OPTIMISM = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743";
|
|
6
5
|
export declare const LIMIT_ORDER_ADDRESS_OPTIMISM = "0x3bFE2a472d2964Ea4070725b7Fb0A868b3f08b63";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { PoolConfig } from 'core-kit/types/config.types';
|
|
2
2
|
import type { DepositMethodName } from 'core-kit/types/trading.types';
|
|
3
3
|
export declare const DEFAULT_PRECISION = 18;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const DEFAULT_RETRIES_NUMBER = 5;
|
|
4
|
+
export declare const EXTENDED_POLLING_INTERVAL = 59000;
|
|
5
|
+
export declare const DEFAULT_POLLING_INTERVAL = 30000;
|
|
6
|
+
export declare const SHORTEN_POLLING_INTERVAL = 15000;
|
|
8
7
|
export declare const DEFAULT_DEBOUNCE_TIME = 400;
|
|
9
8
|
export declare const EXTENDED_DEBOUNCE_TIME: number;
|
|
10
9
|
export declare const DEFAULT_LOCK_TIME: string;
|
|
@@ -2,13 +2,11 @@ export { useCheckWhitelist } from './use-check-whitelist';
|
|
|
2
2
|
export { useManagerLogicAddress } from './use-manager-logic-address';
|
|
3
3
|
export { useContractPoolComposition } from './use-contract-pool-composition';
|
|
4
4
|
export { usePoolComposition } from './use-pool-composition';
|
|
5
|
-
export { usePoolDynamicContractData } from './use-pool-dynamic-contract-data';
|
|
6
5
|
export { usePoolManagerLogicData } from './use-pool-manager-logic-data';
|
|
7
6
|
export { usePoolCompositionWithFraction } from './use-pool-composition-with-fraction';
|
|
8
7
|
export { usePoolTokenPrice } from './use-pool-token-price';
|
|
9
8
|
export { usePoolFees } from './use-pool-fees';
|
|
10
9
|
export { useInvalidatePoolContractData } from './use-invalidate-pool-contract-data';
|
|
11
|
-
export { usePoolsDynamic } from './multicall';
|
|
12
10
|
export { useVaultVestedPoints } from './use-vault-vested-points';
|
|
13
11
|
export { useHasSingleAssetWithdrawBlockers } from './use-has-single-asset-withdraw-blockers';
|
|
14
12
|
export { usePoolDynamicExitRemainingCooldown } from './use-pool-dynamic-exit-remaining-cooldown';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { usePoolStatic } from './use-pool.static';
|
|
2
2
|
export { usePoolManagerStatic } from './use-pool-manager.static';
|
|
3
3
|
export { usePoolManagerDynamic } from './use-pool-manager.dynamic';
|
|
4
|
-
export {
|
|
4
|
+
export { useUserBalancesDynamic } from './use-user-balances.dynamic';
|
|
5
|
+
export { usePoolDynamic } from './use-pool.dynamic';
|
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import type { PoolContractCallParams } from 'core-kit/types';
|
|
2
|
+
export declare const usePoolDynamic: ({ address, chainId }: PoolContractCallParams) => import("wagmi").UseReadContractsReturnType<readonly [{
|
|
3
|
+
readonly address: `0x${string}`;
|
|
4
|
+
readonly abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "owner";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}, {
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "spender";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "allowance";
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly name: "";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
readonly name: "spender";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
readonly name: "amount";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "approve";
|
|
33
|
+
readonly outputs: readonly [{
|
|
34
|
+
readonly internalType: "bool";
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "bool";
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "nonpayable";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
readonly name: "account";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "balanceOf";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
}, {
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
readonly name: "fundValue";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "calculateAvailableManagerFee";
|
|
61
|
+
readonly outputs: readonly [{
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
readonly name: "fee";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}];
|
|
66
|
+
readonly stateMutability: "view";
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
}, {
|
|
69
|
+
readonly inputs: readonly [];
|
|
70
|
+
readonly name: "decimals";
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly internalType: "uint8";
|
|
73
|
+
readonly name: "";
|
|
74
|
+
readonly type: "uint8";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "view";
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "_asset";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}, {
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
readonly name: "_amount";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}];
|
|
88
|
+
readonly name: "deposit";
|
|
89
|
+
readonly outputs: readonly [{
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly name: "liquidityMinted";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
}];
|
|
94
|
+
readonly stateMutability: "nonpayable";
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
}, {
|
|
97
|
+
readonly inputs: readonly [{
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
readonly name: "sender";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}];
|
|
102
|
+
readonly name: "getExitRemainingCooldown";
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly internalType: "uint256";
|
|
105
|
+
readonly name: "remaining";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly name: "getFundSummary";
|
|
113
|
+
readonly outputs: readonly [{
|
|
114
|
+
readonly components: readonly [{
|
|
115
|
+
readonly internalType: "string";
|
|
116
|
+
readonly name: "name";
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
}, {
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly name: "totalSupply";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}, {
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
readonly name: "totalFundValue";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}, {
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
readonly name: "manager";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly internalType: "string";
|
|
132
|
+
readonly name: "managerName";
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
}, {
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly name: "creationTime";
|
|
137
|
+
readonly type: "uint256";
|
|
138
|
+
}, {
|
|
139
|
+
readonly internalType: "bool";
|
|
140
|
+
readonly name: "privatePool";
|
|
141
|
+
readonly type: "bool";
|
|
142
|
+
}, {
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "performanceFeeNumerator";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}, {
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly name: "managerFeeNumerator";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}, {
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
readonly name: "managerFeeDenominator";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}, {
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
readonly name: "exitFeeNumerator";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
}, {
|
|
159
|
+
readonly internalType: "uint256";
|
|
160
|
+
readonly name: "exitFeeDenominator";
|
|
161
|
+
readonly type: "uint256";
|
|
162
|
+
}, {
|
|
163
|
+
readonly internalType: "uint256";
|
|
164
|
+
readonly name: "entryFeeNumerator";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
}];
|
|
167
|
+
readonly internalType: "struct PoolLogic.FundSummary";
|
|
168
|
+
readonly name: "";
|
|
169
|
+
readonly type: "tuple";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
readonly type: "function";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "mintManagerFee";
|
|
176
|
+
readonly outputs: readonly [];
|
|
177
|
+
readonly stateMutability: "nonpayable";
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly name: "name";
|
|
182
|
+
readonly outputs: readonly [{
|
|
183
|
+
readonly internalType: "string";
|
|
184
|
+
readonly name: "";
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
}];
|
|
187
|
+
readonly stateMutability: "view";
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
}, {
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly name: "poolManagerLogic";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly name: "";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [];
|
|
201
|
+
readonly name: "symbol";
|
|
202
|
+
readonly outputs: readonly [{
|
|
203
|
+
readonly internalType: "string";
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
}];
|
|
207
|
+
readonly stateMutability: "view";
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
}, {
|
|
210
|
+
readonly inputs: readonly [];
|
|
211
|
+
readonly name: "tokenPrice";
|
|
212
|
+
readonly outputs: readonly [{
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "price";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}];
|
|
217
|
+
readonly stateMutability: "view";
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [];
|
|
221
|
+
readonly name: "totalSupply";
|
|
222
|
+
readonly outputs: readonly [{
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
readonly name: "";
|
|
225
|
+
readonly type: "uint256";
|
|
226
|
+
}];
|
|
227
|
+
readonly stateMutability: "view";
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
}, {
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly internalType: "uint256";
|
|
232
|
+
readonly name: "_fundTokenAmount";
|
|
233
|
+
readonly type: "uint256";
|
|
234
|
+
}, {
|
|
235
|
+
readonly components: readonly [{
|
|
236
|
+
readonly internalType: "address";
|
|
237
|
+
readonly name: "supportedAsset";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "bytes";
|
|
241
|
+
readonly name: "withdrawData";
|
|
242
|
+
readonly type: "bytes";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
readonly name: "slippageTolerance";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}];
|
|
248
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
249
|
+
readonly name: "_complexAssetsData";
|
|
250
|
+
readonly type: "tuple[]";
|
|
251
|
+
}];
|
|
252
|
+
readonly name: "withdrawSafe";
|
|
253
|
+
readonly outputs: readonly [];
|
|
254
|
+
readonly stateMutability: "nonpayable";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [{
|
|
258
|
+
readonly internalType: "uint256";
|
|
259
|
+
readonly name: "_fundTokenAmount";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
}, {
|
|
262
|
+
readonly internalType: "uint256";
|
|
263
|
+
readonly name: "_slippageTolerance";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
readonly name: "withdrawSafe";
|
|
267
|
+
readonly outputs: readonly [];
|
|
268
|
+
readonly stateMutability: "nonpayable";
|
|
269
|
+
readonly type: "function";
|
|
270
|
+
}];
|
|
271
|
+
readonly functionName: "tokenPrice";
|
|
272
|
+
readonly chainId: number;
|
|
273
|
+
readonly args: readonly [];
|
|
274
|
+
}, {
|
|
275
|
+
readonly address: `0x${string}`;
|
|
276
|
+
readonly abi: readonly [{
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
readonly name: "owner";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
}, {
|
|
282
|
+
readonly internalType: "address";
|
|
283
|
+
readonly name: "spender";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}];
|
|
286
|
+
readonly name: "allowance";
|
|
287
|
+
readonly outputs: readonly [{
|
|
288
|
+
readonly internalType: "uint256";
|
|
289
|
+
readonly name: "";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
}];
|
|
292
|
+
readonly stateMutability: "view";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "spender";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}, {
|
|
300
|
+
readonly internalType: "uint256";
|
|
301
|
+
readonly name: "amount";
|
|
302
|
+
readonly type: "uint256";
|
|
303
|
+
}];
|
|
304
|
+
readonly name: "approve";
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly internalType: "bool";
|
|
307
|
+
readonly name: "";
|
|
308
|
+
readonly type: "bool";
|
|
309
|
+
}];
|
|
310
|
+
readonly stateMutability: "nonpayable";
|
|
311
|
+
readonly type: "function";
|
|
312
|
+
}, {
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly internalType: "address";
|
|
315
|
+
readonly name: "account";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
}];
|
|
318
|
+
readonly name: "balanceOf";
|
|
319
|
+
readonly outputs: readonly [{
|
|
320
|
+
readonly internalType: "uint256";
|
|
321
|
+
readonly name: "";
|
|
322
|
+
readonly type: "uint256";
|
|
323
|
+
}];
|
|
324
|
+
readonly stateMutability: "view";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
}, {
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly internalType: "uint256";
|
|
329
|
+
readonly name: "fundValue";
|
|
330
|
+
readonly type: "uint256";
|
|
331
|
+
}];
|
|
332
|
+
readonly name: "calculateAvailableManagerFee";
|
|
333
|
+
readonly outputs: readonly [{
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
readonly name: "fee";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}];
|
|
338
|
+
readonly stateMutability: "view";
|
|
339
|
+
readonly type: "function";
|
|
340
|
+
}, {
|
|
341
|
+
readonly inputs: readonly [];
|
|
342
|
+
readonly name: "decimals";
|
|
343
|
+
readonly outputs: readonly [{
|
|
344
|
+
readonly internalType: "uint8";
|
|
345
|
+
readonly name: "";
|
|
346
|
+
readonly type: "uint8";
|
|
347
|
+
}];
|
|
348
|
+
readonly stateMutability: "view";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly internalType: "address";
|
|
353
|
+
readonly name: "_asset";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
}, {
|
|
356
|
+
readonly internalType: "uint256";
|
|
357
|
+
readonly name: "_amount";
|
|
358
|
+
readonly type: "uint256";
|
|
359
|
+
}];
|
|
360
|
+
readonly name: "deposit";
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly internalType: "uint256";
|
|
363
|
+
readonly name: "liquidityMinted";
|
|
364
|
+
readonly type: "uint256";
|
|
365
|
+
}];
|
|
366
|
+
readonly stateMutability: "nonpayable";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly internalType: "address";
|
|
371
|
+
readonly name: "sender";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
}];
|
|
374
|
+
readonly name: "getExitRemainingCooldown";
|
|
375
|
+
readonly outputs: readonly [{
|
|
376
|
+
readonly internalType: "uint256";
|
|
377
|
+
readonly name: "remaining";
|
|
378
|
+
readonly type: "uint256";
|
|
379
|
+
}];
|
|
380
|
+
readonly stateMutability: "view";
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
}, {
|
|
383
|
+
readonly inputs: readonly [];
|
|
384
|
+
readonly name: "getFundSummary";
|
|
385
|
+
readonly outputs: readonly [{
|
|
386
|
+
readonly components: readonly [{
|
|
387
|
+
readonly internalType: "string";
|
|
388
|
+
readonly name: "name";
|
|
389
|
+
readonly type: "string";
|
|
390
|
+
}, {
|
|
391
|
+
readonly internalType: "uint256";
|
|
392
|
+
readonly name: "totalSupply";
|
|
393
|
+
readonly type: "uint256";
|
|
394
|
+
}, {
|
|
395
|
+
readonly internalType: "uint256";
|
|
396
|
+
readonly name: "totalFundValue";
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "address";
|
|
400
|
+
readonly name: "manager";
|
|
401
|
+
readonly type: "address";
|
|
402
|
+
}, {
|
|
403
|
+
readonly internalType: "string";
|
|
404
|
+
readonly name: "managerName";
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
}, {
|
|
407
|
+
readonly internalType: "uint256";
|
|
408
|
+
readonly name: "creationTime";
|
|
409
|
+
readonly type: "uint256";
|
|
410
|
+
}, {
|
|
411
|
+
readonly internalType: "bool";
|
|
412
|
+
readonly name: "privatePool";
|
|
413
|
+
readonly type: "bool";
|
|
414
|
+
}, {
|
|
415
|
+
readonly internalType: "uint256";
|
|
416
|
+
readonly name: "performanceFeeNumerator";
|
|
417
|
+
readonly type: "uint256";
|
|
418
|
+
}, {
|
|
419
|
+
readonly internalType: "uint256";
|
|
420
|
+
readonly name: "managerFeeNumerator";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}, {
|
|
423
|
+
readonly internalType: "uint256";
|
|
424
|
+
readonly name: "managerFeeDenominator";
|
|
425
|
+
readonly type: "uint256";
|
|
426
|
+
}, {
|
|
427
|
+
readonly internalType: "uint256";
|
|
428
|
+
readonly name: "exitFeeNumerator";
|
|
429
|
+
readonly type: "uint256";
|
|
430
|
+
}, {
|
|
431
|
+
readonly internalType: "uint256";
|
|
432
|
+
readonly name: "exitFeeDenominator";
|
|
433
|
+
readonly type: "uint256";
|
|
434
|
+
}, {
|
|
435
|
+
readonly internalType: "uint256";
|
|
436
|
+
readonly name: "entryFeeNumerator";
|
|
437
|
+
readonly type: "uint256";
|
|
438
|
+
}];
|
|
439
|
+
readonly internalType: "struct PoolLogic.FundSummary";
|
|
440
|
+
readonly name: "";
|
|
441
|
+
readonly type: "tuple";
|
|
442
|
+
}];
|
|
443
|
+
readonly stateMutability: "view";
|
|
444
|
+
readonly type: "function";
|
|
445
|
+
}, {
|
|
446
|
+
readonly inputs: readonly [];
|
|
447
|
+
readonly name: "mintManagerFee";
|
|
448
|
+
readonly outputs: readonly [];
|
|
449
|
+
readonly stateMutability: "nonpayable";
|
|
450
|
+
readonly type: "function";
|
|
451
|
+
}, {
|
|
452
|
+
readonly inputs: readonly [];
|
|
453
|
+
readonly name: "name";
|
|
454
|
+
readonly outputs: readonly [{
|
|
455
|
+
readonly internalType: "string";
|
|
456
|
+
readonly name: "";
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
}];
|
|
459
|
+
readonly stateMutability: "view";
|
|
460
|
+
readonly type: "function";
|
|
461
|
+
}, {
|
|
462
|
+
readonly inputs: readonly [];
|
|
463
|
+
readonly name: "poolManagerLogic";
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly internalType: "address";
|
|
466
|
+
readonly name: "";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}];
|
|
469
|
+
readonly stateMutability: "view";
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly inputs: readonly [];
|
|
473
|
+
readonly name: "symbol";
|
|
474
|
+
readonly outputs: readonly [{
|
|
475
|
+
readonly internalType: "string";
|
|
476
|
+
readonly name: "";
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
}];
|
|
479
|
+
readonly stateMutability: "view";
|
|
480
|
+
readonly type: "function";
|
|
481
|
+
}, {
|
|
482
|
+
readonly inputs: readonly [];
|
|
483
|
+
readonly name: "tokenPrice";
|
|
484
|
+
readonly outputs: readonly [{
|
|
485
|
+
readonly internalType: "uint256";
|
|
486
|
+
readonly name: "price";
|
|
487
|
+
readonly type: "uint256";
|
|
488
|
+
}];
|
|
489
|
+
readonly stateMutability: "view";
|
|
490
|
+
readonly type: "function";
|
|
491
|
+
}, {
|
|
492
|
+
readonly inputs: readonly [];
|
|
493
|
+
readonly name: "totalSupply";
|
|
494
|
+
readonly outputs: readonly [{
|
|
495
|
+
readonly internalType: "uint256";
|
|
496
|
+
readonly name: "";
|
|
497
|
+
readonly type: "uint256";
|
|
498
|
+
}];
|
|
499
|
+
readonly stateMutability: "view";
|
|
500
|
+
readonly type: "function";
|
|
501
|
+
}, {
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly internalType: "uint256";
|
|
504
|
+
readonly name: "_fundTokenAmount";
|
|
505
|
+
readonly type: "uint256";
|
|
506
|
+
}, {
|
|
507
|
+
readonly components: readonly [{
|
|
508
|
+
readonly internalType: "address";
|
|
509
|
+
readonly name: "supportedAsset";
|
|
510
|
+
readonly type: "address";
|
|
511
|
+
}, {
|
|
512
|
+
readonly internalType: "bytes";
|
|
513
|
+
readonly name: "withdrawData";
|
|
514
|
+
readonly type: "bytes";
|
|
515
|
+
}, {
|
|
516
|
+
readonly internalType: "uint256";
|
|
517
|
+
readonly name: "slippageTolerance";
|
|
518
|
+
readonly type: "uint256";
|
|
519
|
+
}];
|
|
520
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
521
|
+
readonly name: "_complexAssetsData";
|
|
522
|
+
readonly type: "tuple[]";
|
|
523
|
+
}];
|
|
524
|
+
readonly name: "withdrawSafe";
|
|
525
|
+
readonly outputs: readonly [];
|
|
526
|
+
readonly stateMutability: "nonpayable";
|
|
527
|
+
readonly type: "function";
|
|
528
|
+
}, {
|
|
529
|
+
readonly inputs: readonly [{
|
|
530
|
+
readonly internalType: "uint256";
|
|
531
|
+
readonly name: "_fundTokenAmount";
|
|
532
|
+
readonly type: "uint256";
|
|
533
|
+
}, {
|
|
534
|
+
readonly internalType: "uint256";
|
|
535
|
+
readonly name: "_slippageTolerance";
|
|
536
|
+
readonly type: "uint256";
|
|
537
|
+
}];
|
|
538
|
+
readonly name: "withdrawSafe";
|
|
539
|
+
readonly outputs: readonly [];
|
|
540
|
+
readonly stateMutability: "nonpayable";
|
|
541
|
+
readonly type: "function";
|
|
542
|
+
}];
|
|
543
|
+
readonly functionName: "getFundSummary";
|
|
544
|
+
readonly chainId: number;
|
|
545
|
+
}], true, {
|
|
546
|
+
tokenPrice: string | undefined;
|
|
547
|
+
totalValue: string | undefined;
|
|
548
|
+
totalSupply: string | undefined;
|
|
549
|
+
isPrivateVault: boolean | undefined;
|
|
550
|
+
performanceFee: string | undefined;
|
|
551
|
+
streamingFee: string | undefined;
|
|
552
|
+
entryFee: string | undefined;
|
|
553
|
+
exitFee: string | undefined;
|
|
554
|
+
managerAddress: string | undefined;
|
|
555
|
+
}>;
|