@dhedge/trading-widget 3.2.0 → 3.3.0-alpha.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 +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 +875 -121
- 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/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 +981 -20
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +3331 -230
- 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-complex-asset-data.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-aave-swap-data.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction-arguments.d.ts +6 -1
- 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-486e8b60.cjs +217 -0
- package/{index-d62956b7.js → index-a29190ba.js} +10593 -9573
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +125 -126
- package/package.json +1 -1
- package/{pyth-adapter-e278f630.js → pyth-adapter-330946d6.js} +1 -1
- package/{pyth-adapter-c8d76d79.cjs → pyth-adapter-a81f3e9c.cjs} +1 -1
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +1 -0
- package/index-8d920656.cjs +0 -217
- /package/core-kit/abi/{aave-lending-pool.d.ts → aave/aave-lending-pool.d.ts} +0 -0
|
@@ -2,6 +2,249 @@ import type { PoolContractCallParams } from 'core-kit/types';
|
|
|
2
2
|
export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParams) => import("wagmi").UseReadContractsReturnType<readonly [{
|
|
3
3
|
readonly address: `0x${string}`;
|
|
4
4
|
readonly abi: readonly [{
|
|
5
|
+
readonly anonymous: false;
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly indexed: true;
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
readonly name: "owner";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly indexed: true;
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly name: "spender";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly indexed: false;
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
readonly name: "value";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
}];
|
|
22
|
+
readonly name: "Approval";
|
|
23
|
+
readonly type: "event";
|
|
24
|
+
}, {
|
|
25
|
+
readonly anonymous: false;
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly indexed: false;
|
|
28
|
+
readonly internalType: "address";
|
|
29
|
+
readonly name: "fundAddress";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly indexed: false;
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly name: "investor";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly indexed: false;
|
|
38
|
+
readonly internalType: "address";
|
|
39
|
+
readonly name: "assetDeposited";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly indexed: false;
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
readonly name: "amountDeposited";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}, {
|
|
47
|
+
readonly indexed: false;
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
readonly name: "valueDeposited";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly indexed: false;
|
|
53
|
+
readonly internalType: "uint256";
|
|
54
|
+
readonly name: "fundTokensReceived";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}, {
|
|
57
|
+
readonly indexed: false;
|
|
58
|
+
readonly internalType: "uint256";
|
|
59
|
+
readonly name: "totalInvestorFundTokens";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "fundValue";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
readonly name: "totalSupply";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}, {
|
|
72
|
+
readonly indexed: false;
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
readonly name: "time";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "Deposit";
|
|
78
|
+
readonly type: "event";
|
|
79
|
+
}, {
|
|
80
|
+
readonly anonymous: false;
|
|
81
|
+
readonly inputs: readonly [{
|
|
82
|
+
readonly indexed: false;
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
readonly name: "pool";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}, {
|
|
87
|
+
readonly indexed: false;
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
readonly name: "manager";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}, {
|
|
92
|
+
readonly indexed: false;
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
readonly name: "available";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
readonly name: "daoFee";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly indexed: false;
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "managerFee";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}, {
|
|
107
|
+
readonly indexed: false;
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
readonly name: "tokenPriceAtLastFeeMint";
|
|
110
|
+
readonly type: "uint256";
|
|
111
|
+
}];
|
|
112
|
+
readonly name: "ManagerFeeMinted";
|
|
113
|
+
readonly type: "event";
|
|
114
|
+
}, {
|
|
115
|
+
readonly anonymous: false;
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly indexed: false;
|
|
118
|
+
readonly internalType: "address";
|
|
119
|
+
readonly name: "poolManagerLogic";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly indexed: false;
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
readonly name: "from";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}];
|
|
127
|
+
readonly name: "PoolManagerLogicSet";
|
|
128
|
+
readonly type: "event";
|
|
129
|
+
}, {
|
|
130
|
+
readonly anonymous: false;
|
|
131
|
+
readonly inputs: readonly [{
|
|
132
|
+
readonly indexed: false;
|
|
133
|
+
readonly internalType: "bool";
|
|
134
|
+
readonly name: "isPoolPrivate";
|
|
135
|
+
readonly type: "bool";
|
|
136
|
+
}];
|
|
137
|
+
readonly name: "PoolPrivacyUpdated";
|
|
138
|
+
readonly type: "event";
|
|
139
|
+
}, {
|
|
140
|
+
readonly anonymous: false;
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly indexed: false;
|
|
143
|
+
readonly internalType: "address";
|
|
144
|
+
readonly name: "pool";
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
}, {
|
|
147
|
+
readonly indexed: false;
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "manager";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly indexed: false;
|
|
153
|
+
readonly internalType: "uint16";
|
|
154
|
+
readonly name: "transactionType";
|
|
155
|
+
readonly type: "uint16";
|
|
156
|
+
}, {
|
|
157
|
+
readonly indexed: false;
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "time";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}];
|
|
162
|
+
readonly name: "TransactionExecuted";
|
|
163
|
+
readonly type: "event";
|
|
164
|
+
}, {
|
|
165
|
+
readonly anonymous: false;
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly indexed: true;
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
readonly name: "from";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly indexed: true;
|
|
173
|
+
readonly internalType: "address";
|
|
174
|
+
readonly name: "to";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
readonly internalType: "uint256";
|
|
179
|
+
readonly name: "value";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
}];
|
|
182
|
+
readonly name: "Transfer";
|
|
183
|
+
readonly type: "event";
|
|
184
|
+
}, {
|
|
185
|
+
readonly anonymous: false;
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly indexed: false;
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
readonly name: "fundAddress";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
}, {
|
|
192
|
+
readonly indexed: false;
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly name: "investor";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
}, {
|
|
197
|
+
readonly indexed: false;
|
|
198
|
+
readonly internalType: "uint256";
|
|
199
|
+
readonly name: "valueWithdrawn";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
}, {
|
|
202
|
+
readonly indexed: false;
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
readonly name: "fundTokensWithdrawn";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
}, {
|
|
207
|
+
readonly indexed: false;
|
|
208
|
+
readonly internalType: "uint256";
|
|
209
|
+
readonly name: "totalInvestorFundTokens";
|
|
210
|
+
readonly type: "uint256";
|
|
211
|
+
}, {
|
|
212
|
+
readonly indexed: false;
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "fundValue";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}, {
|
|
217
|
+
readonly indexed: false;
|
|
218
|
+
readonly internalType: "uint256";
|
|
219
|
+
readonly name: "totalSupply";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
}, {
|
|
222
|
+
readonly components: readonly [{
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
readonly name: "asset";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
}, {
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
readonly name: "amount";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
}, {
|
|
231
|
+
readonly internalType: "bool";
|
|
232
|
+
readonly name: "externalWithdrawProcessed";
|
|
233
|
+
readonly type: "bool";
|
|
234
|
+
}];
|
|
235
|
+
readonly indexed: false;
|
|
236
|
+
readonly internalType: "struct PoolLogic.WithdrawnAsset[]";
|
|
237
|
+
readonly name: "withdrawnAssets";
|
|
238
|
+
readonly type: "tuple[]";
|
|
239
|
+
}, {
|
|
240
|
+
readonly indexed: false;
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "time";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}];
|
|
245
|
+
readonly name: "Withdrawal";
|
|
246
|
+
readonly type: "event";
|
|
247
|
+
}, {
|
|
5
248
|
readonly inputs: readonly [{
|
|
6
249
|
readonly internalType: "address";
|
|
7
250
|
readonly name: "owner";
|
|
@@ -65,6 +308,26 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
65
308
|
}];
|
|
66
309
|
readonly stateMutability: "view";
|
|
67
310
|
readonly type: "function";
|
|
311
|
+
}, {
|
|
312
|
+
readonly inputs: readonly [];
|
|
313
|
+
readonly name: "creationTime";
|
|
314
|
+
readonly outputs: readonly [{
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
readonly name: "";
|
|
317
|
+
readonly type: "uint256";
|
|
318
|
+
}];
|
|
319
|
+
readonly stateMutability: "view";
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
}, {
|
|
322
|
+
readonly inputs: readonly [];
|
|
323
|
+
readonly name: "creator";
|
|
324
|
+
readonly outputs: readonly [{
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
readonly name: "";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}];
|
|
329
|
+
readonly stateMutability: "view";
|
|
330
|
+
readonly type: "function";
|
|
68
331
|
}, {
|
|
69
332
|
readonly inputs: readonly [];
|
|
70
333
|
readonly name: "decimals";
|
|
@@ -78,21 +341,164 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
78
341
|
}, {
|
|
79
342
|
readonly inputs: readonly [{
|
|
80
343
|
readonly internalType: "address";
|
|
81
|
-
readonly name: "
|
|
344
|
+
readonly name: "spender";
|
|
345
|
+
readonly type: "address";
|
|
346
|
+
}, {
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "subtractedValue";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
readonly name: "decreaseAllowance";
|
|
352
|
+
readonly outputs: readonly [{
|
|
353
|
+
readonly internalType: "bool";
|
|
354
|
+
readonly name: "";
|
|
355
|
+
readonly type: "bool";
|
|
356
|
+
}];
|
|
357
|
+
readonly stateMutability: "nonpayable";
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
}, {
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly internalType: "address";
|
|
362
|
+
readonly name: "_asset";
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
}, {
|
|
365
|
+
readonly internalType: "uint256";
|
|
366
|
+
readonly name: "_amount";
|
|
367
|
+
readonly type: "uint256";
|
|
368
|
+
}];
|
|
369
|
+
readonly name: "deposit";
|
|
370
|
+
readonly outputs: readonly [{
|
|
371
|
+
readonly internalType: "uint256";
|
|
372
|
+
readonly name: "liquidityMinted";
|
|
373
|
+
readonly type: "uint256";
|
|
374
|
+
}];
|
|
375
|
+
readonly stateMutability: "nonpayable";
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
}, {
|
|
378
|
+
readonly inputs: readonly [{
|
|
379
|
+
readonly internalType: "address";
|
|
380
|
+
readonly name: "_recipient";
|
|
381
|
+
readonly type: "address";
|
|
382
|
+
}, {
|
|
383
|
+
readonly internalType: "address";
|
|
384
|
+
readonly name: "_asset";
|
|
385
|
+
readonly type: "address";
|
|
386
|
+
}, {
|
|
387
|
+
readonly internalType: "uint256";
|
|
388
|
+
readonly name: "_amount";
|
|
389
|
+
readonly type: "uint256";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "depositFor";
|
|
392
|
+
readonly outputs: readonly [{
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
readonly name: "liquidityMinted";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}];
|
|
397
|
+
readonly stateMutability: "nonpayable";
|
|
398
|
+
readonly type: "function";
|
|
399
|
+
}, {
|
|
400
|
+
readonly inputs: readonly [{
|
|
401
|
+
readonly internalType: "address";
|
|
402
|
+
readonly name: "_recipient";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
}, {
|
|
405
|
+
readonly internalType: "address";
|
|
406
|
+
readonly name: "_asset";
|
|
407
|
+
readonly type: "address";
|
|
408
|
+
}, {
|
|
409
|
+
readonly internalType: "uint256";
|
|
410
|
+
readonly name: "_amount";
|
|
411
|
+
readonly type: "uint256";
|
|
412
|
+
}, {
|
|
413
|
+
readonly internalType: "uint256";
|
|
414
|
+
readonly name: "_cooldown";
|
|
415
|
+
readonly type: "uint256";
|
|
416
|
+
}];
|
|
417
|
+
readonly name: "depositForWithCustomCooldown";
|
|
418
|
+
readonly outputs: readonly [{
|
|
419
|
+
readonly internalType: "uint256";
|
|
420
|
+
readonly name: "liquidityMinted";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}];
|
|
423
|
+
readonly stateMutability: "nonpayable";
|
|
424
|
+
readonly type: "function";
|
|
425
|
+
}, {
|
|
426
|
+
readonly inputs: readonly [{
|
|
427
|
+
readonly internalType: "address";
|
|
428
|
+
readonly name: "to";
|
|
429
|
+
readonly type: "address";
|
|
430
|
+
}, {
|
|
431
|
+
readonly internalType: "bytes";
|
|
432
|
+
readonly name: "data";
|
|
433
|
+
readonly type: "bytes";
|
|
434
|
+
}];
|
|
435
|
+
readonly name: "execTransaction";
|
|
436
|
+
readonly outputs: readonly [{
|
|
437
|
+
readonly internalType: "bool";
|
|
438
|
+
readonly name: "success";
|
|
439
|
+
readonly type: "bool";
|
|
440
|
+
}];
|
|
441
|
+
readonly stateMutability: "nonpayable";
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
}, {
|
|
444
|
+
readonly inputs: readonly [{
|
|
445
|
+
readonly components: readonly [{
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
readonly name: "to";
|
|
448
|
+
readonly type: "address";
|
|
449
|
+
}, {
|
|
450
|
+
readonly internalType: "bytes";
|
|
451
|
+
readonly name: "data";
|
|
452
|
+
readonly type: "bytes";
|
|
453
|
+
}];
|
|
454
|
+
readonly internalType: "struct PoolLogic.TxToExecute[]";
|
|
455
|
+
readonly name: "txs";
|
|
456
|
+
readonly type: "tuple[]";
|
|
457
|
+
}];
|
|
458
|
+
readonly name: "execTransactions";
|
|
459
|
+
readonly outputs: readonly [];
|
|
460
|
+
readonly stateMutability: "nonpayable";
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
}, {
|
|
463
|
+
readonly inputs: readonly [{
|
|
464
|
+
readonly internalType: "address[]";
|
|
465
|
+
readonly name: "assets";
|
|
466
|
+
readonly type: "address[]";
|
|
467
|
+
}, {
|
|
468
|
+
readonly internalType: "uint256[]";
|
|
469
|
+
readonly name: "amounts";
|
|
470
|
+
readonly type: "uint256[]";
|
|
471
|
+
}, {
|
|
472
|
+
readonly internalType: "uint256[]";
|
|
473
|
+
readonly name: "premiums";
|
|
474
|
+
readonly type: "uint256[]";
|
|
475
|
+
}, {
|
|
476
|
+
readonly internalType: "address";
|
|
477
|
+
readonly name: "initiator";
|
|
82
478
|
readonly type: "address";
|
|
83
479
|
}, {
|
|
84
|
-
readonly internalType: "
|
|
85
|
-
readonly name: "
|
|
86
|
-
readonly type: "
|
|
480
|
+
readonly internalType: "bytes";
|
|
481
|
+
readonly name: "params";
|
|
482
|
+
readonly type: "bytes";
|
|
87
483
|
}];
|
|
88
|
-
readonly name: "
|
|
484
|
+
readonly name: "executeOperation";
|
|
89
485
|
readonly outputs: readonly [{
|
|
90
|
-
readonly internalType: "
|
|
91
|
-
readonly name: "
|
|
92
|
-
readonly type: "
|
|
486
|
+
readonly internalType: "bool";
|
|
487
|
+
readonly name: "success";
|
|
488
|
+
readonly type: "bool";
|
|
93
489
|
}];
|
|
94
490
|
readonly stateMutability: "nonpayable";
|
|
95
491
|
readonly type: "function";
|
|
492
|
+
}, {
|
|
493
|
+
readonly inputs: readonly [];
|
|
494
|
+
readonly name: "factory";
|
|
495
|
+
readonly outputs: readonly [{
|
|
496
|
+
readonly internalType: "address";
|
|
497
|
+
readonly name: "";
|
|
498
|
+
readonly type: "address";
|
|
499
|
+
}];
|
|
500
|
+
readonly stateMutability: "view";
|
|
501
|
+
readonly type: "function";
|
|
96
502
|
}, {
|
|
97
503
|
readonly inputs: readonly [{
|
|
98
504
|
readonly internalType: "address";
|
|
@@ -170,6 +576,98 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
170
576
|
}];
|
|
171
577
|
readonly stateMutability: "view";
|
|
172
578
|
readonly type: "function";
|
|
579
|
+
}, {
|
|
580
|
+
readonly inputs: readonly [{
|
|
581
|
+
readonly internalType: "address";
|
|
582
|
+
readonly name: "spender";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "uint256";
|
|
586
|
+
readonly name: "addedValue";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
}];
|
|
589
|
+
readonly name: "increaseAllowance";
|
|
590
|
+
readonly outputs: readonly [{
|
|
591
|
+
readonly internalType: "bool";
|
|
592
|
+
readonly name: "";
|
|
593
|
+
readonly type: "bool";
|
|
594
|
+
}];
|
|
595
|
+
readonly stateMutability: "nonpayable";
|
|
596
|
+
readonly type: "function";
|
|
597
|
+
}, {
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly internalType: "address";
|
|
600
|
+
readonly name: "_factory";
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
}, {
|
|
603
|
+
readonly internalType: "bool";
|
|
604
|
+
readonly name: "_privatePool";
|
|
605
|
+
readonly type: "bool";
|
|
606
|
+
}, {
|
|
607
|
+
readonly internalType: "string";
|
|
608
|
+
readonly name: "_fundName";
|
|
609
|
+
readonly type: "string";
|
|
610
|
+
}, {
|
|
611
|
+
readonly internalType: "string";
|
|
612
|
+
readonly name: "_fundSymbol";
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
}];
|
|
615
|
+
readonly name: "initialize";
|
|
616
|
+
readonly outputs: readonly [];
|
|
617
|
+
readonly stateMutability: "nonpayable";
|
|
618
|
+
readonly type: "function";
|
|
619
|
+
}, {
|
|
620
|
+
readonly inputs: readonly [{
|
|
621
|
+
readonly internalType: "address";
|
|
622
|
+
readonly name: "";
|
|
623
|
+
readonly type: "address";
|
|
624
|
+
}];
|
|
625
|
+
readonly name: "lastDeposit";
|
|
626
|
+
readonly outputs: readonly [{
|
|
627
|
+
readonly internalType: "uint256";
|
|
628
|
+
readonly name: "";
|
|
629
|
+
readonly type: "uint256";
|
|
630
|
+
}];
|
|
631
|
+
readonly stateMutability: "view";
|
|
632
|
+
readonly type: "function";
|
|
633
|
+
}, {
|
|
634
|
+
readonly inputs: readonly [{
|
|
635
|
+
readonly internalType: "address";
|
|
636
|
+
readonly name: "";
|
|
637
|
+
readonly type: "address";
|
|
638
|
+
}];
|
|
639
|
+
readonly name: "lastExitCooldown";
|
|
640
|
+
readonly outputs: readonly [{
|
|
641
|
+
readonly internalType: "uint256";
|
|
642
|
+
readonly name: "";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}];
|
|
645
|
+
readonly stateMutability: "view";
|
|
646
|
+
readonly type: "function";
|
|
647
|
+
}, {
|
|
648
|
+
readonly inputs: readonly [];
|
|
649
|
+
readonly name: "lastFeeMintTime";
|
|
650
|
+
readonly outputs: readonly [{
|
|
651
|
+
readonly internalType: "uint256";
|
|
652
|
+
readonly name: "";
|
|
653
|
+
readonly type: "uint256";
|
|
654
|
+
}];
|
|
655
|
+
readonly stateMutability: "view";
|
|
656
|
+
readonly type: "function";
|
|
657
|
+
}, {
|
|
658
|
+
readonly inputs: readonly [{
|
|
659
|
+
readonly internalType: "address";
|
|
660
|
+
readonly name: "";
|
|
661
|
+
readonly type: "address";
|
|
662
|
+
}];
|
|
663
|
+
readonly name: "lastWhitelistTransfer";
|
|
664
|
+
readonly outputs: readonly [{
|
|
665
|
+
readonly internalType: "uint256";
|
|
666
|
+
readonly name: "";
|
|
667
|
+
readonly type: "uint256";
|
|
668
|
+
}];
|
|
669
|
+
readonly stateMutability: "view";
|
|
670
|
+
readonly type: "function";
|
|
173
671
|
}, {
|
|
174
672
|
readonly inputs: readonly [];
|
|
175
673
|
readonly name: "mintManagerFee";
|
|
@@ -186,6 +684,32 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
186
684
|
}];
|
|
187
685
|
readonly stateMutability: "view";
|
|
188
686
|
readonly type: "function";
|
|
687
|
+
}, {
|
|
688
|
+
readonly inputs: readonly [{
|
|
689
|
+
readonly internalType: "address";
|
|
690
|
+
readonly name: "operator";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "address";
|
|
694
|
+
readonly name: "from";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "uint256";
|
|
698
|
+
readonly name: "tokenId";
|
|
699
|
+
readonly type: "uint256";
|
|
700
|
+
}, {
|
|
701
|
+
readonly internalType: "bytes";
|
|
702
|
+
readonly name: "data";
|
|
703
|
+
readonly type: "bytes";
|
|
704
|
+
}];
|
|
705
|
+
readonly name: "onERC721Received";
|
|
706
|
+
readonly outputs: readonly [{
|
|
707
|
+
readonly internalType: "bytes4";
|
|
708
|
+
readonly name: "magicSelector";
|
|
709
|
+
readonly type: "bytes4";
|
|
710
|
+
}];
|
|
711
|
+
readonly stateMutability: "nonpayable";
|
|
712
|
+
readonly type: "function";
|
|
189
713
|
}, {
|
|
190
714
|
readonly inputs: readonly [];
|
|
191
715
|
readonly name: "poolManagerLogic";
|
|
@@ -196,6 +720,36 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
196
720
|
}];
|
|
197
721
|
readonly stateMutability: "view";
|
|
198
722
|
readonly type: "function";
|
|
723
|
+
}, {
|
|
724
|
+
readonly inputs: readonly [];
|
|
725
|
+
readonly name: "privatePool";
|
|
726
|
+
readonly outputs: readonly [{
|
|
727
|
+
readonly internalType: "bool";
|
|
728
|
+
readonly name: "";
|
|
729
|
+
readonly type: "bool";
|
|
730
|
+
}];
|
|
731
|
+
readonly stateMutability: "view";
|
|
732
|
+
readonly type: "function";
|
|
733
|
+
}, {
|
|
734
|
+
readonly inputs: readonly [{
|
|
735
|
+
readonly internalType: "address";
|
|
736
|
+
readonly name: "_poolManagerLogic";
|
|
737
|
+
readonly type: "address";
|
|
738
|
+
}];
|
|
739
|
+
readonly name: "setPoolManagerLogic";
|
|
740
|
+
readonly outputs: readonly [];
|
|
741
|
+
readonly stateMutability: "nonpayable";
|
|
742
|
+
readonly type: "function";
|
|
743
|
+
}, {
|
|
744
|
+
readonly inputs: readonly [{
|
|
745
|
+
readonly internalType: "bool";
|
|
746
|
+
readonly name: "_privatePool";
|
|
747
|
+
readonly type: "bool";
|
|
748
|
+
}];
|
|
749
|
+
readonly name: "setPoolPrivate";
|
|
750
|
+
readonly outputs: readonly [];
|
|
751
|
+
readonly stateMutability: "nonpayable";
|
|
752
|
+
readonly type: "function";
|
|
199
753
|
}, {
|
|
200
754
|
readonly inputs: readonly [];
|
|
201
755
|
readonly name: "symbol";
|
|
@@ -204,30 +758,190 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
204
758
|
readonly name: "";
|
|
205
759
|
readonly type: "string";
|
|
206
760
|
}];
|
|
207
|
-
readonly stateMutability: "view";
|
|
761
|
+
readonly stateMutability: "view";
|
|
762
|
+
readonly type: "function";
|
|
763
|
+
}, {
|
|
764
|
+
readonly inputs: readonly [];
|
|
765
|
+
readonly name: "tokenPrice";
|
|
766
|
+
readonly outputs: readonly [{
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
readonly name: "price";
|
|
769
|
+
readonly type: "uint256";
|
|
770
|
+
}];
|
|
771
|
+
readonly stateMutability: "view";
|
|
772
|
+
readonly type: "function";
|
|
773
|
+
}, {
|
|
774
|
+
readonly inputs: readonly [];
|
|
775
|
+
readonly name: "tokenPriceAtLastFeeMint";
|
|
776
|
+
readonly outputs: readonly [{
|
|
777
|
+
readonly internalType: "uint256";
|
|
778
|
+
readonly name: "";
|
|
779
|
+
readonly type: "uint256";
|
|
780
|
+
}];
|
|
781
|
+
readonly stateMutability: "view";
|
|
782
|
+
readonly type: "function";
|
|
783
|
+
}, {
|
|
784
|
+
readonly inputs: readonly [];
|
|
785
|
+
readonly name: "tokenPriceWithoutManagerFee";
|
|
786
|
+
readonly outputs: readonly [{
|
|
787
|
+
readonly internalType: "uint256";
|
|
788
|
+
readonly name: "price";
|
|
789
|
+
readonly type: "uint256";
|
|
790
|
+
}];
|
|
791
|
+
readonly stateMutability: "view";
|
|
792
|
+
readonly type: "function";
|
|
793
|
+
}, {
|
|
794
|
+
readonly inputs: readonly [];
|
|
795
|
+
readonly name: "totalSupply";
|
|
796
|
+
readonly outputs: readonly [{
|
|
797
|
+
readonly internalType: "uint256";
|
|
798
|
+
readonly name: "";
|
|
799
|
+
readonly type: "uint256";
|
|
800
|
+
}];
|
|
801
|
+
readonly stateMutability: "view";
|
|
802
|
+
readonly type: "function";
|
|
803
|
+
}, {
|
|
804
|
+
readonly inputs: readonly [{
|
|
805
|
+
readonly internalType: "address";
|
|
806
|
+
readonly name: "recipient";
|
|
807
|
+
readonly type: "address";
|
|
808
|
+
}, {
|
|
809
|
+
readonly internalType: "uint256";
|
|
810
|
+
readonly name: "amount";
|
|
811
|
+
readonly type: "uint256";
|
|
812
|
+
}];
|
|
813
|
+
readonly name: "transfer";
|
|
814
|
+
readonly outputs: readonly [{
|
|
815
|
+
readonly internalType: "bool";
|
|
816
|
+
readonly name: "";
|
|
817
|
+
readonly type: "bool";
|
|
818
|
+
}];
|
|
819
|
+
readonly stateMutability: "nonpayable";
|
|
820
|
+
readonly type: "function";
|
|
821
|
+
}, {
|
|
822
|
+
readonly inputs: readonly [{
|
|
823
|
+
readonly internalType: "address";
|
|
824
|
+
readonly name: "sender";
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
}, {
|
|
827
|
+
readonly internalType: "address";
|
|
828
|
+
readonly name: "recipient";
|
|
829
|
+
readonly type: "address";
|
|
830
|
+
}, {
|
|
831
|
+
readonly internalType: "uint256";
|
|
832
|
+
readonly name: "amount";
|
|
833
|
+
readonly type: "uint256";
|
|
834
|
+
}];
|
|
835
|
+
readonly name: "transferFrom";
|
|
836
|
+
readonly outputs: readonly [{
|
|
837
|
+
readonly internalType: "bool";
|
|
838
|
+
readonly name: "";
|
|
839
|
+
readonly type: "bool";
|
|
840
|
+
}];
|
|
841
|
+
readonly stateMutability: "nonpayable";
|
|
842
|
+
readonly type: "function";
|
|
843
|
+
}, {
|
|
844
|
+
readonly inputs: readonly [{
|
|
845
|
+
readonly internalType: "uint256";
|
|
846
|
+
readonly name: "_fundTokenAmount";
|
|
847
|
+
readonly type: "uint256";
|
|
848
|
+
}];
|
|
849
|
+
readonly name: "withdraw";
|
|
850
|
+
readonly outputs: readonly [];
|
|
851
|
+
readonly stateMutability: "nonpayable";
|
|
852
|
+
readonly type: "function";
|
|
853
|
+
}, {
|
|
854
|
+
readonly inputs: readonly [{
|
|
855
|
+
readonly internalType: "uint256";
|
|
856
|
+
readonly name: "_fundTokenAmount";
|
|
857
|
+
readonly type: "uint256";
|
|
858
|
+
}, {
|
|
859
|
+
readonly components: readonly [{
|
|
860
|
+
readonly internalType: "address";
|
|
861
|
+
readonly name: "supportedAsset";
|
|
862
|
+
readonly type: "address";
|
|
863
|
+
}, {
|
|
864
|
+
readonly internalType: "bytes";
|
|
865
|
+
readonly name: "withdrawData";
|
|
866
|
+
readonly type: "bytes";
|
|
867
|
+
}, {
|
|
868
|
+
readonly internalType: "uint256";
|
|
869
|
+
readonly name: "slippageTolerance";
|
|
870
|
+
readonly type: "uint256";
|
|
871
|
+
}];
|
|
872
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
873
|
+
readonly name: "_complexAssetsData";
|
|
874
|
+
readonly type: "tuple[]";
|
|
875
|
+
}];
|
|
876
|
+
readonly name: "withdrawSafe";
|
|
877
|
+
readonly outputs: readonly [];
|
|
878
|
+
readonly stateMutability: "nonpayable";
|
|
879
|
+
readonly type: "function";
|
|
880
|
+
}, {
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly internalType: "uint256";
|
|
883
|
+
readonly name: "_fundTokenAmount";
|
|
884
|
+
readonly type: "uint256";
|
|
885
|
+
}, {
|
|
886
|
+
readonly internalType: "uint256";
|
|
887
|
+
readonly name: "_slippageTolerance";
|
|
888
|
+
readonly type: "uint256";
|
|
889
|
+
}];
|
|
890
|
+
readonly name: "withdrawSafe";
|
|
891
|
+
readonly outputs: readonly [];
|
|
892
|
+
readonly stateMutability: "nonpayable";
|
|
208
893
|
readonly type: "function";
|
|
209
894
|
}, {
|
|
210
|
-
readonly inputs: readonly [
|
|
211
|
-
|
|
212
|
-
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly internalType: "address";
|
|
897
|
+
readonly name: "_recipient";
|
|
898
|
+
readonly type: "address";
|
|
899
|
+
}, {
|
|
213
900
|
readonly internalType: "uint256";
|
|
214
|
-
readonly name: "
|
|
901
|
+
readonly name: "_fundTokenAmount";
|
|
215
902
|
readonly type: "uint256";
|
|
216
903
|
}];
|
|
217
|
-
readonly
|
|
904
|
+
readonly name: "withdrawTo";
|
|
905
|
+
readonly outputs: readonly [];
|
|
906
|
+
readonly stateMutability: "nonpayable";
|
|
218
907
|
readonly type: "function";
|
|
219
908
|
}, {
|
|
220
|
-
readonly inputs: readonly [
|
|
221
|
-
|
|
222
|
-
|
|
909
|
+
readonly inputs: readonly [{
|
|
910
|
+
readonly internalType: "address";
|
|
911
|
+
readonly name: "_recipient";
|
|
912
|
+
readonly type: "address";
|
|
913
|
+
}, {
|
|
223
914
|
readonly internalType: "uint256";
|
|
224
|
-
readonly name: "";
|
|
915
|
+
readonly name: "_fundTokenAmount";
|
|
225
916
|
readonly type: "uint256";
|
|
917
|
+
}, {
|
|
918
|
+
readonly components: readonly [{
|
|
919
|
+
readonly internalType: "address";
|
|
920
|
+
readonly name: "supportedAsset";
|
|
921
|
+
readonly type: "address";
|
|
922
|
+
}, {
|
|
923
|
+
readonly internalType: "bytes";
|
|
924
|
+
readonly name: "withdrawData";
|
|
925
|
+
readonly type: "bytes";
|
|
926
|
+
}, {
|
|
927
|
+
readonly internalType: "uint256";
|
|
928
|
+
readonly name: "slippageTolerance";
|
|
929
|
+
readonly type: "uint256";
|
|
930
|
+
}];
|
|
931
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
932
|
+
readonly name: "_complexAssetsData";
|
|
933
|
+
readonly type: "tuple[]";
|
|
226
934
|
}];
|
|
227
|
-
readonly
|
|
935
|
+
readonly name: "withdrawToSafe";
|
|
936
|
+
readonly outputs: readonly [];
|
|
937
|
+
readonly stateMutability: "nonpayable";
|
|
228
938
|
readonly type: "function";
|
|
229
939
|
}, {
|
|
230
940
|
readonly inputs: readonly [{
|
|
941
|
+
readonly internalType: "address";
|
|
942
|
+
readonly name: "_recipient";
|
|
943
|
+
readonly type: "address";
|
|
944
|
+
}, {
|
|
231
945
|
readonly internalType: "uint256";
|
|
232
946
|
readonly name: "_fundTokenAmount";
|
|
233
947
|
readonly type: "uint256";
|
|
@@ -236,7 +950,7 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
236
950
|
readonly name: "_slippageTolerance";
|
|
237
951
|
readonly type: "uint256";
|
|
238
952
|
}];
|
|
239
|
-
readonly name: "
|
|
953
|
+
readonly name: "withdrawToSafe";
|
|
240
954
|
readonly outputs: readonly [];
|
|
241
955
|
readonly stateMutability: "nonpayable";
|
|
242
956
|
readonly type: "function";
|
|
@@ -681,6 +1395,54 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
681
1395
|
}];
|
|
682
1396
|
readonly stateMutability: "view";
|
|
683
1397
|
readonly type: "function";
|
|
1398
|
+
}, {
|
|
1399
|
+
readonly inputs: readonly [{
|
|
1400
|
+
readonly internalType: "address";
|
|
1401
|
+
readonly name: "_dHedgeVault";
|
|
1402
|
+
readonly type: "address";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly internalType: "uint256";
|
|
1405
|
+
readonly name: "_amountIn";
|
|
1406
|
+
readonly type: "uint256";
|
|
1407
|
+
}, {
|
|
1408
|
+
readonly components: readonly [{
|
|
1409
|
+
readonly internalType: "address";
|
|
1410
|
+
readonly name: "supportedAsset";
|
|
1411
|
+
readonly type: "address";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly internalType: "bytes";
|
|
1414
|
+
readonly name: "withdrawData";
|
|
1415
|
+
readonly type: "bytes";
|
|
1416
|
+
}, {
|
|
1417
|
+
readonly internalType: "uint256";
|
|
1418
|
+
readonly name: "slippageTolerance";
|
|
1419
|
+
readonly type: "uint256";
|
|
1420
|
+
}];
|
|
1421
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
1422
|
+
readonly name: "_complexAssetsData";
|
|
1423
|
+
readonly type: "tuple[]";
|
|
1424
|
+
}];
|
|
1425
|
+
readonly name: "initWithdrawal";
|
|
1426
|
+
readonly outputs: readonly [{
|
|
1427
|
+
readonly components: readonly [{
|
|
1428
|
+
readonly internalType: "address";
|
|
1429
|
+
readonly name: "token";
|
|
1430
|
+
readonly type: "address";
|
|
1431
|
+
}, {
|
|
1432
|
+
readonly internalType: "uint256";
|
|
1433
|
+
readonly name: "balance";
|
|
1434
|
+
readonly type: "uint256";
|
|
1435
|
+
}];
|
|
1436
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
1437
|
+
readonly name: "trackedAssets";
|
|
1438
|
+
readonly type: "tuple[]";
|
|
1439
|
+
}, {
|
|
1440
|
+
readonly internalType: "address";
|
|
1441
|
+
readonly name: "vault";
|
|
1442
|
+
readonly type: "address";
|
|
1443
|
+
}];
|
|
1444
|
+
readonly stateMutability: "nonpayable";
|
|
1445
|
+
readonly type: "function";
|
|
684
1446
|
}, {
|
|
685
1447
|
readonly inputs: readonly [{
|
|
686
1448
|
readonly internalType: "address";
|
|
@@ -924,6 +1686,50 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
924
1686
|
}];
|
|
925
1687
|
readonly stateMutability: "nonpayable";
|
|
926
1688
|
readonly type: "function";
|
|
1689
|
+
}, {
|
|
1690
|
+
readonly inputs: readonly [{
|
|
1691
|
+
readonly internalType: "address";
|
|
1692
|
+
readonly name: "_dHedgeVault";
|
|
1693
|
+
readonly type: "address";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly internalType: "uint256";
|
|
1696
|
+
readonly name: "_amountIn";
|
|
1697
|
+
readonly type: "uint256";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly components: readonly [{
|
|
1700
|
+
readonly internalType: "address";
|
|
1701
|
+
readonly name: "supportedAsset";
|
|
1702
|
+
readonly type: "address";
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly internalType: "bytes";
|
|
1705
|
+
readonly name: "withdrawData";
|
|
1706
|
+
readonly type: "bytes";
|
|
1707
|
+
}, {
|
|
1708
|
+
readonly internalType: "uint256";
|
|
1709
|
+
readonly name: "slippageTolerance";
|
|
1710
|
+
readonly type: "uint256";
|
|
1711
|
+
}];
|
|
1712
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
1713
|
+
readonly name: "_complexAssetsData";
|
|
1714
|
+
readonly type: "tuple[]";
|
|
1715
|
+
}];
|
|
1716
|
+
readonly name: "unrollAndClaim";
|
|
1717
|
+
readonly outputs: readonly [{
|
|
1718
|
+
readonly components: readonly [{
|
|
1719
|
+
readonly internalType: "address";
|
|
1720
|
+
readonly name: "token";
|
|
1721
|
+
readonly type: "address";
|
|
1722
|
+
}, {
|
|
1723
|
+
readonly internalType: "uint256";
|
|
1724
|
+
readonly name: "balance";
|
|
1725
|
+
readonly type: "uint256";
|
|
1726
|
+
}];
|
|
1727
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
1728
|
+
readonly name: "";
|
|
1729
|
+
readonly type: "tuple[]";
|
|
1730
|
+
}];
|
|
1731
|
+
readonly stateMutability: "nonpayable";
|
|
1732
|
+
readonly type: "function";
|
|
927
1733
|
}, {
|
|
928
1734
|
readonly inputs: readonly [];
|
|
929
1735
|
readonly name: "weth";
|
|
@@ -1632,6 +2438,54 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1632
2438
|
}];
|
|
1633
2439
|
readonly stateMutability: "view";
|
|
1634
2440
|
readonly type: "function";
|
|
2441
|
+
}, {
|
|
2442
|
+
readonly inputs: readonly [{
|
|
2443
|
+
readonly internalType: "address";
|
|
2444
|
+
readonly name: "_dHedgeVault";
|
|
2445
|
+
readonly type: "address";
|
|
2446
|
+
}, {
|
|
2447
|
+
readonly internalType: "uint256";
|
|
2448
|
+
readonly name: "_amountIn";
|
|
2449
|
+
readonly type: "uint256";
|
|
2450
|
+
}, {
|
|
2451
|
+
readonly components: readonly [{
|
|
2452
|
+
readonly internalType: "address";
|
|
2453
|
+
readonly name: "supportedAsset";
|
|
2454
|
+
readonly type: "address";
|
|
2455
|
+
}, {
|
|
2456
|
+
readonly internalType: "bytes";
|
|
2457
|
+
readonly name: "withdrawData";
|
|
2458
|
+
readonly type: "bytes";
|
|
2459
|
+
}, {
|
|
2460
|
+
readonly internalType: "uint256";
|
|
2461
|
+
readonly name: "slippageTolerance";
|
|
2462
|
+
readonly type: "uint256";
|
|
2463
|
+
}];
|
|
2464
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
2465
|
+
readonly name: "_complexAssetsData";
|
|
2466
|
+
readonly type: "tuple[]";
|
|
2467
|
+
}];
|
|
2468
|
+
readonly name: "initWithdrawal";
|
|
2469
|
+
readonly outputs: readonly [{
|
|
2470
|
+
readonly components: readonly [{
|
|
2471
|
+
readonly internalType: "address";
|
|
2472
|
+
readonly name: "token";
|
|
2473
|
+
readonly type: "address";
|
|
2474
|
+
}, {
|
|
2475
|
+
readonly internalType: "uint256";
|
|
2476
|
+
readonly name: "balance";
|
|
2477
|
+
readonly type: "uint256";
|
|
2478
|
+
}];
|
|
2479
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
2480
|
+
readonly name: "trackedAssets";
|
|
2481
|
+
readonly type: "tuple[]";
|
|
2482
|
+
}, {
|
|
2483
|
+
readonly internalType: "address";
|
|
2484
|
+
readonly name: "vault";
|
|
2485
|
+
readonly type: "address";
|
|
2486
|
+
}];
|
|
2487
|
+
readonly stateMutability: "nonpayable";
|
|
2488
|
+
readonly type: "function";
|
|
1635
2489
|
}, {
|
|
1636
2490
|
readonly inputs: readonly [{
|
|
1637
2491
|
readonly internalType: "address";
|
|
@@ -1875,6 +2729,50 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1875
2729
|
}];
|
|
1876
2730
|
readonly stateMutability: "nonpayable";
|
|
1877
2731
|
readonly type: "function";
|
|
2732
|
+
}, {
|
|
2733
|
+
readonly inputs: readonly [{
|
|
2734
|
+
readonly internalType: "address";
|
|
2735
|
+
readonly name: "_dHedgeVault";
|
|
2736
|
+
readonly type: "address";
|
|
2737
|
+
}, {
|
|
2738
|
+
readonly internalType: "uint256";
|
|
2739
|
+
readonly name: "_amountIn";
|
|
2740
|
+
readonly type: "uint256";
|
|
2741
|
+
}, {
|
|
2742
|
+
readonly components: readonly [{
|
|
2743
|
+
readonly internalType: "address";
|
|
2744
|
+
readonly name: "supportedAsset";
|
|
2745
|
+
readonly type: "address";
|
|
2746
|
+
}, {
|
|
2747
|
+
readonly internalType: "bytes";
|
|
2748
|
+
readonly name: "withdrawData";
|
|
2749
|
+
readonly type: "bytes";
|
|
2750
|
+
}, {
|
|
2751
|
+
readonly internalType: "uint256";
|
|
2752
|
+
readonly name: "slippageTolerance";
|
|
2753
|
+
readonly type: "uint256";
|
|
2754
|
+
}];
|
|
2755
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
2756
|
+
readonly name: "_complexAssetsData";
|
|
2757
|
+
readonly type: "tuple[]";
|
|
2758
|
+
}];
|
|
2759
|
+
readonly name: "unrollAndClaim";
|
|
2760
|
+
readonly outputs: readonly [{
|
|
2761
|
+
readonly components: readonly [{
|
|
2762
|
+
readonly internalType: "address";
|
|
2763
|
+
readonly name: "token";
|
|
2764
|
+
readonly type: "address";
|
|
2765
|
+
}, {
|
|
2766
|
+
readonly internalType: "uint256";
|
|
2767
|
+
readonly name: "balance";
|
|
2768
|
+
readonly type: "uint256";
|
|
2769
|
+
}];
|
|
2770
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
2771
|
+
readonly name: "";
|
|
2772
|
+
readonly type: "tuple[]";
|
|
2773
|
+
}];
|
|
2774
|
+
readonly stateMutability: "nonpayable";
|
|
2775
|
+
readonly type: "function";
|
|
1878
2776
|
}, {
|
|
1879
2777
|
readonly inputs: readonly [];
|
|
1880
2778
|
readonly name: "weth";
|
|
@@ -2145,8 +3043,71 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
2145
3043
|
readonly functionName: "customCooldown";
|
|
2146
3044
|
readonly args: readonly [];
|
|
2147
3045
|
readonly chainId: number;
|
|
3046
|
+
}, {
|
|
3047
|
+
readonly address: `0x${string}`;
|
|
3048
|
+
readonly chainId: number;
|
|
3049
|
+
readonly abi: readonly [{
|
|
3050
|
+
readonly inputs: readonly [{
|
|
3051
|
+
readonly internalType: "address";
|
|
3052
|
+
readonly name: "asset";
|
|
3053
|
+
readonly type: "address";
|
|
3054
|
+
}];
|
|
3055
|
+
readonly name: "getAssetPrice";
|
|
3056
|
+
readonly outputs: readonly [{
|
|
3057
|
+
readonly internalType: "uint256";
|
|
3058
|
+
readonly name: "price";
|
|
3059
|
+
readonly type: "uint256";
|
|
3060
|
+
}];
|
|
3061
|
+
readonly stateMutability: "view";
|
|
3062
|
+
readonly type: "function";
|
|
3063
|
+
}, {
|
|
3064
|
+
readonly inputs: readonly [{
|
|
3065
|
+
readonly internalType: "address";
|
|
3066
|
+
readonly name: "";
|
|
3067
|
+
readonly type: "address";
|
|
3068
|
+
}];
|
|
3069
|
+
readonly name: "isPool";
|
|
3070
|
+
readonly outputs: readonly [{
|
|
3071
|
+
readonly internalType: "bool";
|
|
3072
|
+
readonly name: "";
|
|
3073
|
+
readonly type: "bool";
|
|
3074
|
+
}];
|
|
3075
|
+
readonly stateMutability: "view";
|
|
3076
|
+
readonly type: "function";
|
|
3077
|
+
}, {
|
|
3078
|
+
readonly inputs: readonly [{
|
|
3079
|
+
readonly internalType: "address";
|
|
3080
|
+
readonly name: "extContract";
|
|
3081
|
+
readonly type: "address";
|
|
3082
|
+
}];
|
|
3083
|
+
readonly name: "getAssetGuard";
|
|
3084
|
+
readonly outputs: readonly [{
|
|
3085
|
+
readonly internalType: "address";
|
|
3086
|
+
readonly name: "guard";
|
|
3087
|
+
readonly type: "address";
|
|
3088
|
+
}];
|
|
3089
|
+
readonly stateMutability: "view";
|
|
3090
|
+
readonly type: "function";
|
|
3091
|
+
}, {
|
|
3092
|
+
readonly inputs: readonly [{
|
|
3093
|
+
readonly internalType: "address";
|
|
3094
|
+
readonly name: "extContract";
|
|
3095
|
+
readonly type: "address";
|
|
3096
|
+
}];
|
|
3097
|
+
readonly name: "getContractGuard";
|
|
3098
|
+
readonly outputs: readonly [{
|
|
3099
|
+
readonly internalType: "address";
|
|
3100
|
+
readonly name: "guard";
|
|
3101
|
+
readonly type: "address";
|
|
3102
|
+
}];
|
|
3103
|
+
readonly stateMutability: "view";
|
|
3104
|
+
readonly type: "function";
|
|
3105
|
+
}];
|
|
3106
|
+
readonly functionName: "getAssetGuard";
|
|
3107
|
+
readonly args: readonly [`0x${string}`];
|
|
2148
3108
|
}], true, {
|
|
2149
3109
|
poolManagerLogic: `0x${string}` | undefined;
|
|
2150
3110
|
isCustomCooldownDepositAllowed: boolean | undefined;
|
|
2151
3111
|
customCooldown: bigint | undefined;
|
|
3112
|
+
aaveAssetGuardAddress: `0x${string}` | undefined;
|
|
2152
3113
|
}>;
|