@dhedge/trading-widget 3.2.3 → 3.3.0-alpha.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/README.md +1 -0
- package/core-kit/abi/aave/aave-asset-guard.d.ts +50 -0
- package/core-kit/abi/easy-swapper-v2.d.ts +92 -0
- package/core-kit/abi/index.d.ts +3 -2
- package/core-kit/abi/pool-logic.d.ts +67 -0
- package/core-kit/abi/pool-manager-logic.d.ts +19 -0
- package/core-kit/const/contracts/polygon.d.ts +2 -0
- package/core-kit/hooks/pool/index.d.ts +1 -0
- package/core-kit/hooks/pool/multicall/use-pool-manager.dynamic.d.ts +75 -190
- package/core-kit/hooks/pool/multicall/use-pool-manager.static.d.ts +57 -0
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +274 -0
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +353 -0
- package/core-kit/hooks/pool/use-has-dhedge-vault-in-composition.d.ts +64 -0
- package/core-kit/hooks/pool/use-pool-dynamic-contract-data.d.ts +1 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +92 -0
- package/core-kit/hooks/trading/use-swaps-data-query.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +1 -1
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-aave-swap-params.d.ts +6 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-aave-swap-data.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-get-init-withdraw-transaction-arguments.d.ts +10 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +92 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +92 -0
- package/core-kit/hooks/web3/use-static-call-query.d.ts +7 -6
- package/core-kit/types/contract.types.d.ts +28 -0
- package/core-kit/types/index.d.ts +1 -0
- package/core-kit/types/web3.types.d.ts +0 -12
- package/core-kit/utils/transaction.d.ts +14 -3
- package/core-kit/utils/web3.d.ts +0 -2
- package/{index-83b0df05.js → index-5ba43d21.js} +9864 -9704
- package/index-addee486.cjs +217 -0
- package/index.cjs +1 -1
- package/index.d.ts +2 -2
- package/index.js +45 -45
- package/package.json +1 -1
- package/{pyth-adapter-99bcb2fd.cjs → pyth-adapter-557e7325.cjs} +1 -1
- package/{pyth-adapter-ae1c3eb3.js → pyth-adapter-ae35e010.js} +1 -1
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction-arguments.d.ts +0 -5
- package/index-76ee9693.cjs +0 -217
- /package/core-kit/abi/{aave-lending-pool.d.ts → aave/aave-lending-pool.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -128,6 +128,7 @@ UI configuration provider. Manages params to configure custom styling, component
|
|
|
128
128
|
> | `standalone` | `boolean` | `true` | Handles token selection in SPA mode |
|
|
129
129
|
> | `isAllAssetsWithdrawOptionDefault` | `boolean` | `false` | Sets "All Assets" withdraw option by default |
|
|
130
130
|
> | `chainConfig` | `Partial<Record<ChainId, { name: string; iconPath: string }>>` | `{}` | Sets map of chain `name` and `iconPath` |
|
|
131
|
+
> | `aaveOffchainWithdrawChainIds` | `ChainId[]` | `[]` | Offchain swap data will be used for Aave withdrawals for selected chains |
|
|
131
132
|
|
|
132
133
|
##### actions
|
|
133
134
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const AaveAssetGuardAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_pool";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
readonly name: "_poolTokenAmount";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "uint256";
|
|
12
|
+
readonly name: "_slippageTolerance";
|
|
13
|
+
readonly type: "uint256";
|
|
14
|
+
}];
|
|
15
|
+
readonly name: "calculateSwapDataParams";
|
|
16
|
+
readonly outputs: readonly [{
|
|
17
|
+
readonly components: readonly [{
|
|
18
|
+
readonly components: readonly [{
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "asset";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "uint256";
|
|
24
|
+
readonly name: "amount";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly internalType: "struct ISwapDataConsumingGuard.AssetStructure[]";
|
|
28
|
+
readonly name: "srcData";
|
|
29
|
+
readonly type: "tuple[]";
|
|
30
|
+
}, {
|
|
31
|
+
readonly components: readonly [{
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
readonly name: "asset";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly internalType: "uint256";
|
|
37
|
+
readonly name: "amount";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}];
|
|
40
|
+
readonly internalType: "struct ISwapDataConsumingGuard.AssetStructure";
|
|
41
|
+
readonly name: "dstData";
|
|
42
|
+
readonly type: "tuple";
|
|
43
|
+
}];
|
|
44
|
+
readonly internalType: "struct ISwapDataConsumingGuard.SwapDataParams";
|
|
45
|
+
readonly name: "swapDataParams";
|
|
46
|
+
readonly type: "tuple";
|
|
47
|
+
}];
|
|
48
|
+
readonly stateMutability: "nonpayable";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}];
|
|
@@ -438,6 +438,54 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
438
438
|
}];
|
|
439
439
|
readonly stateMutability: "view";
|
|
440
440
|
readonly type: "function";
|
|
441
|
+
}, {
|
|
442
|
+
readonly inputs: readonly [{
|
|
443
|
+
readonly internalType: "address";
|
|
444
|
+
readonly name: "_dHedgeVault";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
}, {
|
|
447
|
+
readonly internalType: "uint256";
|
|
448
|
+
readonly name: "_amountIn";
|
|
449
|
+
readonly type: "uint256";
|
|
450
|
+
}, {
|
|
451
|
+
readonly components: readonly [{
|
|
452
|
+
readonly internalType: "address";
|
|
453
|
+
readonly name: "supportedAsset";
|
|
454
|
+
readonly type: "address";
|
|
455
|
+
}, {
|
|
456
|
+
readonly internalType: "bytes";
|
|
457
|
+
readonly name: "withdrawData";
|
|
458
|
+
readonly type: "bytes";
|
|
459
|
+
}, {
|
|
460
|
+
readonly internalType: "uint256";
|
|
461
|
+
readonly name: "slippageTolerance";
|
|
462
|
+
readonly type: "uint256";
|
|
463
|
+
}];
|
|
464
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
465
|
+
readonly name: "_complexAssetsData";
|
|
466
|
+
readonly type: "tuple[]";
|
|
467
|
+
}];
|
|
468
|
+
readonly name: "initWithdrawal";
|
|
469
|
+
readonly outputs: readonly [{
|
|
470
|
+
readonly components: readonly [{
|
|
471
|
+
readonly internalType: "address";
|
|
472
|
+
readonly name: "token";
|
|
473
|
+
readonly type: "address";
|
|
474
|
+
}, {
|
|
475
|
+
readonly internalType: "uint256";
|
|
476
|
+
readonly name: "balance";
|
|
477
|
+
readonly type: "uint256";
|
|
478
|
+
}];
|
|
479
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
480
|
+
readonly name: "trackedAssets";
|
|
481
|
+
readonly type: "tuple[]";
|
|
482
|
+
}, {
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
readonly name: "vault";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
}];
|
|
487
|
+
readonly stateMutability: "nonpayable";
|
|
488
|
+
readonly type: "function";
|
|
441
489
|
}, {
|
|
442
490
|
readonly inputs: readonly [{
|
|
443
491
|
readonly internalType: "address";
|
|
@@ -681,6 +729,50 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
681
729
|
}];
|
|
682
730
|
readonly stateMutability: "nonpayable";
|
|
683
731
|
readonly type: "function";
|
|
732
|
+
}, {
|
|
733
|
+
readonly inputs: readonly [{
|
|
734
|
+
readonly internalType: "address";
|
|
735
|
+
readonly name: "_dHedgeVault";
|
|
736
|
+
readonly type: "address";
|
|
737
|
+
}, {
|
|
738
|
+
readonly internalType: "uint256";
|
|
739
|
+
readonly name: "_amountIn";
|
|
740
|
+
readonly type: "uint256";
|
|
741
|
+
}, {
|
|
742
|
+
readonly components: readonly [{
|
|
743
|
+
readonly internalType: "address";
|
|
744
|
+
readonly name: "supportedAsset";
|
|
745
|
+
readonly type: "address";
|
|
746
|
+
}, {
|
|
747
|
+
readonly internalType: "bytes";
|
|
748
|
+
readonly name: "withdrawData";
|
|
749
|
+
readonly type: "bytes";
|
|
750
|
+
}, {
|
|
751
|
+
readonly internalType: "uint256";
|
|
752
|
+
readonly name: "slippageTolerance";
|
|
753
|
+
readonly type: "uint256";
|
|
754
|
+
}];
|
|
755
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
756
|
+
readonly name: "_complexAssetsData";
|
|
757
|
+
readonly type: "tuple[]";
|
|
758
|
+
}];
|
|
759
|
+
readonly name: "unrollAndClaim";
|
|
760
|
+
readonly outputs: readonly [{
|
|
761
|
+
readonly components: readonly [{
|
|
762
|
+
readonly internalType: "address";
|
|
763
|
+
readonly name: "token";
|
|
764
|
+
readonly type: "address";
|
|
765
|
+
}, {
|
|
766
|
+
readonly internalType: "uint256";
|
|
767
|
+
readonly name: "balance";
|
|
768
|
+
readonly type: "uint256";
|
|
769
|
+
}];
|
|
770
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
771
|
+
readonly name: "";
|
|
772
|
+
readonly type: "tuple[]";
|
|
773
|
+
}];
|
|
774
|
+
readonly stateMutability: "nonpayable";
|
|
775
|
+
readonly type: "function";
|
|
684
776
|
}, {
|
|
685
777
|
readonly inputs: readonly [];
|
|
686
778
|
readonly name: "weth";
|
package/core-kit/abi/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { erc20Abi } from './erc20';
|
|
2
|
-
export { AaveLendingPoolAbi } from './aave-lending-pool';
|
|
2
|
+
export { AaveLendingPoolAbi } from './aave/aave-lending-pool';
|
|
3
|
+
export { AaveAssetGuardAbi } from './aave/aave-asset-guard';
|
|
3
4
|
export { DHedgeStakingV2Abi } from './dhedge-staking-v2';
|
|
4
5
|
export { PoolFactoryAbi } from './pool-factory';
|
|
5
|
-
export { PoolLogicAbi } from './pool-logic';
|
|
6
|
+
export { PoolLogicAbi, ComplexWithdrawalAssetSrcDataAbiItem, ComplexWithdrawalDataAbiItem, } from './pool-logic';
|
|
6
7
|
export { PoolManagerLogicAbi } from './pool-manager-logic';
|
|
7
8
|
export { RewardDistributionAbi } from './reward-distribution';
|
|
8
9
|
export { ITrustedMulticallForwarderAbi, IERC7412Abi, SynthetixV3CoreAbi, SynthetixV3AssetGuard, SynthetixV3ContractGuard, } from './synthetix-v3';
|
|
@@ -223,6 +223,33 @@ export declare const PoolLogicAbi: readonly [{
|
|
|
223
223
|
}];
|
|
224
224
|
readonly stateMutability: "view";
|
|
225
225
|
readonly type: "function";
|
|
226
|
+
}, {
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly name: "_fundTokenAmount";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}, {
|
|
232
|
+
readonly components: readonly [{
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "supportedAsset";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "bytes";
|
|
238
|
+
readonly name: "withdrawData";
|
|
239
|
+
readonly type: "bytes";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "slippageTolerance";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}];
|
|
245
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
246
|
+
readonly name: "_complexAssetsData";
|
|
247
|
+
readonly type: "tuple[]";
|
|
248
|
+
}];
|
|
249
|
+
readonly name: "withdrawSafe";
|
|
250
|
+
readonly outputs: readonly [];
|
|
251
|
+
readonly stateMutability: "nonpayable";
|
|
252
|
+
readonly type: "function";
|
|
226
253
|
}, {
|
|
227
254
|
readonly inputs: readonly [{
|
|
228
255
|
readonly internalType: "uint256";
|
|
@@ -238,3 +265,43 @@ export declare const PoolLogicAbi: readonly [{
|
|
|
238
265
|
readonly stateMutability: "nonpayable";
|
|
239
266
|
readonly type: "function";
|
|
240
267
|
}];
|
|
268
|
+
export declare const ComplexWithdrawalAssetSrcDataAbiItem: readonly [{
|
|
269
|
+
readonly type: "tuple[]";
|
|
270
|
+
readonly components: readonly [{
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
readonly name: "asset";
|
|
273
|
+
}, {
|
|
274
|
+
readonly type: "uint256";
|
|
275
|
+
readonly name: "amount";
|
|
276
|
+
}, {
|
|
277
|
+
readonly type: "tuple";
|
|
278
|
+
readonly name: "swapData";
|
|
279
|
+
readonly components: readonly [{
|
|
280
|
+
readonly type: "bytes32";
|
|
281
|
+
readonly name: "routerKey";
|
|
282
|
+
}, {
|
|
283
|
+
readonly type: "bytes";
|
|
284
|
+
readonly name: "txData";
|
|
285
|
+
}];
|
|
286
|
+
}];
|
|
287
|
+
}];
|
|
288
|
+
export declare const ComplexWithdrawalDataAbiItem: readonly [{
|
|
289
|
+
readonly type: "tuple";
|
|
290
|
+
readonly components: readonly [{
|
|
291
|
+
readonly type: "bytes";
|
|
292
|
+
readonly name: "encodedSrcData";
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "tuple";
|
|
295
|
+
readonly name: "dstData";
|
|
296
|
+
readonly components: readonly [{
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
readonly name: "dstAddress";
|
|
299
|
+
}, {
|
|
300
|
+
readonly type: "uint256";
|
|
301
|
+
readonly name: "dstAmount";
|
|
302
|
+
}];
|
|
303
|
+
}, {
|
|
304
|
+
readonly type: "uint256";
|
|
305
|
+
readonly name: "slippage";
|
|
306
|
+
}];
|
|
307
|
+
}];
|
|
@@ -85,4 +85,23 @@ export declare const PoolManagerLogicAbi: readonly [{
|
|
|
85
85
|
}];
|
|
86
86
|
readonly stateMutability: "nonpayable";
|
|
87
87
|
readonly type: "function";
|
|
88
|
+
}, {
|
|
89
|
+
readonly inputs: readonly [];
|
|
90
|
+
readonly name: "getSupportedAssets";
|
|
91
|
+
readonly outputs: readonly [{
|
|
92
|
+
readonly components: readonly [{
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "asset";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly internalType: "bool";
|
|
98
|
+
readonly name: "isDeposit";
|
|
99
|
+
readonly type: "bool";
|
|
100
|
+
}];
|
|
101
|
+
readonly internalType: "struct IHasSupportedAsset.Asset[]";
|
|
102
|
+
readonly name: "";
|
|
103
|
+
readonly type: "tuple[]";
|
|
104
|
+
}];
|
|
105
|
+
readonly stateMutability: "view";
|
|
106
|
+
readonly type: "function";
|
|
88
107
|
}];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const FACTORY_ADDRESS_POLYGON = "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0";
|
|
2
|
+
export declare const DEV_FACTORY_ADDRESS_POLYGON = "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53";
|
|
2
3
|
export declare const AAVE_LENDING_POOL_V2_ADDRESS_POLYGON = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf";
|
|
3
4
|
export declare const AAVE_LENDING_POOL_V3_ADDRESS_POLYGON = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
|
|
4
5
|
export declare const EASY_SWAPPER_V2_ADDRESS_POLYGON = "0x45b90480D6F643dE2f128db091A357C3c90399f2";
|
|
6
|
+
export declare const DEV_EASY_SWAPPER_V2_ADDRESS_POLYGON = "0xfc02889E9459Ebc56840a79cB364924Fe3F054EB";
|
|
@@ -13,3 +13,4 @@ export { useTotalFundValueMutable } from './synthetixV3/use-total-funds-value-mu
|
|
|
13
13
|
export { useInvalidatePoolContractData } from './use-invalidate-pool-contract-data';
|
|
14
14
|
export { usePoolsDynamic } from './multicall';
|
|
15
15
|
export { useVaultVestedPoints } from './use-vault-vested-points';
|
|
16
|
+
export { useHasDhedgeVaultInComposition } from './use-has-dhedge-vault-in-composition';
|
|
@@ -88,258 +88,143 @@ export declare const usePoolManagerDynamic: ({ address, chainId, }: PoolContract
|
|
|
88
88
|
}];
|
|
89
89
|
readonly stateMutability: "nonpayable";
|
|
90
90
|
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "getSupportedAssets";
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly components: readonly [{
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly name: "asset";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly internalType: "bool";
|
|
101
|
+
readonly name: "isDeposit";
|
|
102
|
+
readonly type: "bool";
|
|
103
|
+
}];
|
|
104
|
+
readonly internalType: "struct IHasSupportedAsset.Asset[]";
|
|
105
|
+
readonly name: "";
|
|
106
|
+
readonly type: "tuple[]";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
readonly type: "function";
|
|
91
110
|
}];
|
|
92
111
|
readonly functionName: "getFundComposition";
|
|
93
112
|
readonly chainId: number;
|
|
94
113
|
}, {
|
|
95
114
|
readonly address: `0x${string}`;
|
|
96
115
|
readonly abi: readonly [{
|
|
97
|
-
readonly inputs: readonly [
|
|
98
|
-
|
|
99
|
-
readonly name: "owner";
|
|
100
|
-
readonly type: "address";
|
|
101
|
-
}, {
|
|
102
|
-
readonly internalType: "address";
|
|
103
|
-
readonly name: "spender";
|
|
104
|
-
readonly type: "address";
|
|
105
|
-
}];
|
|
106
|
-
readonly name: "allowance";
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly name: "getFundComposition";
|
|
107
118
|
readonly outputs: readonly [{
|
|
108
|
-
readonly
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
+
readonly components: readonly [{
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
readonly name: "asset";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly internalType: "bool";
|
|
125
|
+
readonly name: "isDeposit";
|
|
126
|
+
readonly type: "bool";
|
|
127
|
+
}];
|
|
128
|
+
readonly internalType: "struct IHasSupportedAsset.Asset[]";
|
|
129
|
+
readonly name: "assets";
|
|
130
|
+
readonly type: "tuple[]";
|
|
119
131
|
}, {
|
|
120
|
-
readonly internalType: "uint256";
|
|
121
|
-
readonly name: "
|
|
122
|
-
readonly type: "uint256";
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
readonly
|
|
127
|
-
readonly name: "";
|
|
128
|
-
readonly type: "bool";
|
|
132
|
+
readonly internalType: "uint256[]";
|
|
133
|
+
readonly name: "balances";
|
|
134
|
+
readonly type: "uint256[]";
|
|
135
|
+
}, {
|
|
136
|
+
readonly internalType: "uint256[]";
|
|
137
|
+
readonly name: "rates";
|
|
138
|
+
readonly type: "uint256[]";
|
|
129
139
|
}];
|
|
130
|
-
readonly stateMutability: "
|
|
140
|
+
readonly stateMutability: "view";
|
|
131
141
|
readonly type: "function";
|
|
132
142
|
}, {
|
|
133
|
-
readonly inputs: readonly [
|
|
134
|
-
|
|
135
|
-
readonly name: "account";
|
|
136
|
-
readonly type: "address";
|
|
137
|
-
}];
|
|
138
|
-
readonly name: "balanceOf";
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "getFeeIncreaseInfo";
|
|
139
145
|
readonly outputs: readonly [{
|
|
140
146
|
readonly internalType: "uint256";
|
|
141
147
|
readonly name: "";
|
|
142
148
|
readonly type: "uint256";
|
|
143
|
-
}
|
|
144
|
-
readonly stateMutability: "view";
|
|
145
|
-
readonly type: "function";
|
|
146
|
-
}, {
|
|
147
|
-
readonly inputs: readonly [{
|
|
149
|
+
}, {
|
|
148
150
|
readonly internalType: "uint256";
|
|
149
|
-
readonly name: "
|
|
151
|
+
readonly name: "";
|
|
150
152
|
readonly type: "uint256";
|
|
151
|
-
}
|
|
152
|
-
readonly name: "calculateAvailableManagerFee";
|
|
153
|
-
readonly outputs: readonly [{
|
|
153
|
+
}, {
|
|
154
154
|
readonly internalType: "uint256";
|
|
155
|
-
readonly name: "fee";
|
|
156
|
-
readonly type: "uint256";
|
|
157
|
-
}];
|
|
158
|
-
readonly stateMutability: "view";
|
|
159
|
-
readonly type: "function";
|
|
160
|
-
}, {
|
|
161
|
-
readonly inputs: readonly [];
|
|
162
|
-
readonly name: "decimals";
|
|
163
|
-
readonly outputs: readonly [{
|
|
164
|
-
readonly internalType: "uint8";
|
|
165
155
|
readonly name: "";
|
|
166
|
-
readonly type: "
|
|
167
|
-
}];
|
|
168
|
-
readonly stateMutability: "view";
|
|
169
|
-
readonly type: "function";
|
|
170
|
-
}, {
|
|
171
|
-
readonly inputs: readonly [{
|
|
172
|
-
readonly internalType: "address";
|
|
173
|
-
readonly name: "_asset";
|
|
174
|
-
readonly type: "address";
|
|
156
|
+
readonly type: "uint256";
|
|
175
157
|
}, {
|
|
176
158
|
readonly internalType: "uint256";
|
|
177
|
-
readonly name: "
|
|
159
|
+
readonly name: "";
|
|
178
160
|
readonly type: "uint256";
|
|
179
|
-
}
|
|
180
|
-
readonly name: "deposit";
|
|
181
|
-
readonly outputs: readonly [{
|
|
161
|
+
}, {
|
|
182
162
|
readonly internalType: "uint256";
|
|
183
|
-
readonly name: "
|
|
163
|
+
readonly name: "";
|
|
184
164
|
readonly type: "uint256";
|
|
185
165
|
}];
|
|
186
|
-
readonly stateMutability: "
|
|
166
|
+
readonly stateMutability: "view";
|
|
187
167
|
readonly type: "function";
|
|
188
168
|
}, {
|
|
189
169
|
readonly inputs: readonly [{
|
|
190
170
|
readonly internalType: "address";
|
|
191
|
-
readonly name: "
|
|
171
|
+
readonly name: "member";
|
|
192
172
|
readonly type: "address";
|
|
193
173
|
}];
|
|
194
|
-
readonly name: "
|
|
195
|
-
readonly outputs: readonly [{
|
|
196
|
-
readonly internalType: "uint256";
|
|
197
|
-
readonly name: "remaining";
|
|
198
|
-
readonly type: "uint256";
|
|
199
|
-
}];
|
|
200
|
-
readonly stateMutability: "view";
|
|
201
|
-
readonly type: "function";
|
|
202
|
-
}, {
|
|
203
|
-
readonly inputs: readonly [];
|
|
204
|
-
readonly name: "getFundSummary";
|
|
205
|
-
readonly outputs: readonly [{
|
|
206
|
-
readonly components: readonly [{
|
|
207
|
-
readonly internalType: "string";
|
|
208
|
-
readonly name: "name";
|
|
209
|
-
readonly type: "string";
|
|
210
|
-
}, {
|
|
211
|
-
readonly internalType: "uint256";
|
|
212
|
-
readonly name: "totalSupply";
|
|
213
|
-
readonly type: "uint256";
|
|
214
|
-
}, {
|
|
215
|
-
readonly internalType: "uint256";
|
|
216
|
-
readonly name: "totalFundValue";
|
|
217
|
-
readonly type: "uint256";
|
|
218
|
-
}, {
|
|
219
|
-
readonly internalType: "address";
|
|
220
|
-
readonly name: "manager";
|
|
221
|
-
readonly type: "address";
|
|
222
|
-
}, {
|
|
223
|
-
readonly internalType: "string";
|
|
224
|
-
readonly name: "managerName";
|
|
225
|
-
readonly type: "string";
|
|
226
|
-
}, {
|
|
227
|
-
readonly internalType: "uint256";
|
|
228
|
-
readonly name: "creationTime";
|
|
229
|
-
readonly type: "uint256";
|
|
230
|
-
}, {
|
|
231
|
-
readonly internalType: "bool";
|
|
232
|
-
readonly name: "privatePool";
|
|
233
|
-
readonly type: "bool";
|
|
234
|
-
}, {
|
|
235
|
-
readonly internalType: "uint256";
|
|
236
|
-
readonly name: "performanceFeeNumerator";
|
|
237
|
-
readonly type: "uint256";
|
|
238
|
-
}, {
|
|
239
|
-
readonly internalType: "uint256";
|
|
240
|
-
readonly name: "managerFeeNumerator";
|
|
241
|
-
readonly type: "uint256";
|
|
242
|
-
}, {
|
|
243
|
-
readonly internalType: "uint256";
|
|
244
|
-
readonly name: "managerFeeDenominator";
|
|
245
|
-
readonly type: "uint256";
|
|
246
|
-
}, {
|
|
247
|
-
readonly internalType: "uint256";
|
|
248
|
-
readonly name: "exitFeeNumerator";
|
|
249
|
-
readonly type: "uint256";
|
|
250
|
-
}, {
|
|
251
|
-
readonly internalType: "uint256";
|
|
252
|
-
readonly name: "exitFeeDenominator";
|
|
253
|
-
readonly type: "uint256";
|
|
254
|
-
}, {
|
|
255
|
-
readonly internalType: "uint256";
|
|
256
|
-
readonly name: "entryFeeNumerator";
|
|
257
|
-
readonly type: "uint256";
|
|
258
|
-
}];
|
|
259
|
-
readonly internalType: "struct PoolLogic.FundSummary";
|
|
260
|
-
readonly name: "";
|
|
261
|
-
readonly type: "tuple";
|
|
262
|
-
}];
|
|
263
|
-
readonly stateMutability: "view";
|
|
264
|
-
readonly type: "function";
|
|
265
|
-
}, {
|
|
266
|
-
readonly inputs: readonly [];
|
|
267
|
-
readonly name: "mintManagerFee";
|
|
268
|
-
readonly outputs: readonly [];
|
|
269
|
-
readonly stateMutability: "nonpayable";
|
|
270
|
-
readonly type: "function";
|
|
271
|
-
}, {
|
|
272
|
-
readonly inputs: readonly [];
|
|
273
|
-
readonly name: "name";
|
|
274
|
-
readonly outputs: readonly [{
|
|
275
|
-
readonly internalType: "string";
|
|
276
|
-
readonly name: "";
|
|
277
|
-
readonly type: "string";
|
|
278
|
-
}];
|
|
279
|
-
readonly stateMutability: "view";
|
|
280
|
-
readonly type: "function";
|
|
281
|
-
}, {
|
|
282
|
-
readonly inputs: readonly [];
|
|
283
|
-
readonly name: "poolManagerLogic";
|
|
174
|
+
readonly name: "isMemberAllowed";
|
|
284
175
|
readonly outputs: readonly [{
|
|
285
|
-
readonly internalType: "
|
|
176
|
+
readonly internalType: "bool";
|
|
286
177
|
readonly name: "";
|
|
287
|
-
readonly type: "
|
|
178
|
+
readonly type: "bool";
|
|
288
179
|
}];
|
|
289
180
|
readonly stateMutability: "view";
|
|
290
181
|
readonly type: "function";
|
|
291
182
|
}, {
|
|
292
183
|
readonly inputs: readonly [];
|
|
293
|
-
readonly name: "
|
|
184
|
+
readonly name: "minDepositUSD";
|
|
294
185
|
readonly outputs: readonly [{
|
|
295
|
-
readonly internalType: "
|
|
186
|
+
readonly internalType: "uint256";
|
|
296
187
|
readonly name: "";
|
|
297
|
-
readonly type: "
|
|
188
|
+
readonly type: "uint256";
|
|
298
189
|
}];
|
|
299
190
|
readonly stateMutability: "view";
|
|
300
191
|
readonly type: "function";
|
|
301
192
|
}, {
|
|
302
193
|
readonly inputs: readonly [];
|
|
303
|
-
readonly name: "
|
|
194
|
+
readonly name: "totalFundValueMutable";
|
|
304
195
|
readonly outputs: readonly [{
|
|
305
196
|
readonly internalType: "uint256";
|
|
306
|
-
readonly name: "
|
|
197
|
+
readonly name: "";
|
|
307
198
|
readonly type: "uint256";
|
|
308
199
|
}];
|
|
309
|
-
readonly stateMutability: "
|
|
200
|
+
readonly stateMutability: "nonpayable";
|
|
310
201
|
readonly type: "function";
|
|
311
202
|
}, {
|
|
312
203
|
readonly inputs: readonly [];
|
|
313
|
-
readonly name: "
|
|
204
|
+
readonly name: "getSupportedAssets";
|
|
314
205
|
readonly outputs: readonly [{
|
|
315
|
-
readonly
|
|
206
|
+
readonly components: readonly [{
|
|
207
|
+
readonly internalType: "address";
|
|
208
|
+
readonly name: "asset";
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
}, {
|
|
211
|
+
readonly internalType: "bool";
|
|
212
|
+
readonly name: "isDeposit";
|
|
213
|
+
readonly type: "bool";
|
|
214
|
+
}];
|
|
215
|
+
readonly internalType: "struct IHasSupportedAsset.Asset[]";
|
|
316
216
|
readonly name: "";
|
|
317
|
-
readonly type: "
|
|
217
|
+
readonly type: "tuple[]";
|
|
318
218
|
}];
|
|
319
219
|
readonly stateMutability: "view";
|
|
320
220
|
readonly type: "function";
|
|
321
|
-
}, {
|
|
322
|
-
readonly inputs: readonly [{
|
|
323
|
-
readonly internalType: "uint256";
|
|
324
|
-
readonly name: "_fundTokenAmount";
|
|
325
|
-
readonly type: "uint256";
|
|
326
|
-
}, {
|
|
327
|
-
readonly internalType: "uint256";
|
|
328
|
-
readonly name: "_slippageTolerance";
|
|
329
|
-
readonly type: "uint256";
|
|
330
|
-
}];
|
|
331
|
-
readonly name: "withdrawSafe";
|
|
332
|
-
readonly outputs: readonly [];
|
|
333
|
-
readonly stateMutability: "nonpayable";
|
|
334
|
-
readonly type: "function";
|
|
335
221
|
}];
|
|
336
|
-
readonly functionName: "
|
|
222
|
+
readonly functionName: "getSupportedAssets";
|
|
337
223
|
readonly chainId: number;
|
|
338
|
-
readonly args: readonly [`0x${string}`];
|
|
339
224
|
}], true, {
|
|
340
225
|
getFundComposition: readonly [readonly {
|
|
341
226
|
asset: `0x${string}`;
|
|
342
227
|
isDeposit: boolean;
|
|
343
228
|
}[], readonly bigint[], readonly bigint[]] | undefined;
|
|
344
|
-
|
|
229
|
+
getSupportedAssets: `0x${string}`[] | undefined;
|
|
345
230
|
}>;
|