@dhedge/trading-widget 3.3.0-alpha.0 → 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 +9 -0
- package/core-kit/abi/easy-swapper-v2.d.ts +4 -0
- package/core-kit/abi/pool-logic.d.ts +5 -692
- package/core-kit/hooks/pool/index.d.ts +1 -0
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +12 -691
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +413 -3161
- package/core-kit/hooks/pool/use-has-dhedge-vault-in-composition.d.ts +64 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +4 -0
- package/core-kit/hooks/trading/use-is-transaction-loading.d.ts +2 -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-init-withdraw-transaction-arguments.d.ts → use-get-init-withdraw-transaction-arguments.d.ts} +2 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction.d.ts +5 -1
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +4 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +4 -0
- package/core-kit/utils/transaction.d.ts +3 -3
- package/{index-a29190ba.js → index-5ba43d21.js} +8032 -8852
- package/index-addee486.cjs +217 -0
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +89 -88
- package/package.json +1 -1
- package/{pyth-adapter-a81f3e9c.cjs → pyth-adapter-557e7325.cjs} +1 -1
- package/{pyth-adapter-330946d6.js → pyth-adapter-ae35e010.js} +1 -1
- package/style.css +1 -1
- package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +1 -0
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-deposit-swap-quote-button/reload-deposit-swap-quote-button.hooks.d.ts +0 -1
- package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-withdraw-swap-quote-button/reload-withdraw-swap-quote-button.hooks.d.ts +0 -1
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/vault-transaction-summary.d.ts +1 -7
- package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
- package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +5 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +1 -0
- package/index-486e8b60.cjs +0 -217
- /package/core-kit/hooks/trading/withdraw-v2/init-step/{use-init-withdraw-aave-swap-data.d.ts → use-fetch-init-withdraw-aave-swap-data.d.ts} +0 -0
|
@@ -2,249 +2,6 @@ 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
|
-
}, {
|
|
248
5
|
readonly inputs: readonly [{
|
|
249
6
|
readonly internalType: "address";
|
|
250
7
|
readonly name: "owner";
|
|
@@ -308,26 +65,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
308
65
|
}];
|
|
309
66
|
readonly stateMutability: "view";
|
|
310
67
|
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";
|
|
331
68
|
}, {
|
|
332
69
|
readonly inputs: readonly [];
|
|
333
70
|
readonly name: "decimals";
|
|
@@ -338,24 +75,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
338
75
|
}];
|
|
339
76
|
readonly stateMutability: "view";
|
|
340
77
|
readonly type: "function";
|
|
341
|
-
}, {
|
|
342
|
-
readonly inputs: readonly [{
|
|
343
|
-
readonly internalType: "address";
|
|
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
78
|
}, {
|
|
360
79
|
readonly inputs: readonly [{
|
|
361
80
|
readonly internalType: "address";
|
|
@@ -368,136 +87,11 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
368
87
|
}];
|
|
369
88
|
readonly name: "deposit";
|
|
370
89
|
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";
|
|
478
|
-
readonly type: "address";
|
|
479
|
-
}, {
|
|
480
|
-
readonly internalType: "bytes";
|
|
481
|
-
readonly name: "params";
|
|
482
|
-
readonly type: "bytes";
|
|
483
|
-
}];
|
|
484
|
-
readonly name: "executeOperation";
|
|
485
|
-
readonly outputs: readonly [{
|
|
486
|
-
readonly internalType: "bool";
|
|
487
|
-
readonly name: "success";
|
|
488
|
-
readonly type: "bool";
|
|
489
|
-
}];
|
|
490
|
-
readonly stateMutability: "nonpayable";
|
|
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";
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly name: "liquidityMinted";
|
|
92
|
+
readonly type: "uint256";
|
|
499
93
|
}];
|
|
500
|
-
readonly stateMutability: "
|
|
94
|
+
readonly stateMutability: "nonpayable";
|
|
501
95
|
readonly type: "function";
|
|
502
96
|
}, {
|
|
503
97
|
readonly inputs: readonly [{
|
|
@@ -576,98 +170,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
576
170
|
}];
|
|
577
171
|
readonly stateMutability: "view";
|
|
578
172
|
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";
|
|
671
173
|
}, {
|
|
672
174
|
readonly inputs: readonly [];
|
|
673
175
|
readonly name: "mintManagerFee";
|
|
@@ -684,32 +186,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
684
186
|
}];
|
|
685
187
|
readonly stateMutability: "view";
|
|
686
188
|
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";
|
|
713
189
|
}, {
|
|
714
190
|
readonly inputs: readonly [];
|
|
715
191
|
readonly name: "poolManagerLogic";
|
|
@@ -720,36 +196,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
720
196
|
}];
|
|
721
197
|
readonly stateMutability: "view";
|
|
722
198
|
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";
|
|
753
199
|
}, {
|
|
754
200
|
readonly inputs: readonly [];
|
|
755
201
|
readonly name: "symbol";
|
|
@@ -770,26 +216,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
770
216
|
}];
|
|
771
217
|
readonly stateMutability: "view";
|
|
772
218
|
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
219
|
}, {
|
|
794
220
|
readonly inputs: readonly [];
|
|
795
221
|
readonly name: "totalSupply";
|
|
@@ -800,56 +226,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
800
226
|
}];
|
|
801
227
|
readonly stateMutability: "view";
|
|
802
228
|
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
229
|
}, {
|
|
854
230
|
readonly inputs: readonly [{
|
|
855
231
|
readonly internalType: "uint256";
|
|
@@ -891,75 +267,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
891
267
|
readonly outputs: readonly [];
|
|
892
268
|
readonly stateMutability: "nonpayable";
|
|
893
269
|
readonly type: "function";
|
|
894
|
-
}, {
|
|
895
|
-
readonly inputs: readonly [{
|
|
896
|
-
readonly internalType: "address";
|
|
897
|
-
readonly name: "_recipient";
|
|
898
|
-
readonly type: "address";
|
|
899
|
-
}, {
|
|
900
|
-
readonly internalType: "uint256";
|
|
901
|
-
readonly name: "_fundTokenAmount";
|
|
902
|
-
readonly type: "uint256";
|
|
903
|
-
}];
|
|
904
|
-
readonly name: "withdrawTo";
|
|
905
|
-
readonly outputs: readonly [];
|
|
906
|
-
readonly stateMutability: "nonpayable";
|
|
907
|
-
readonly type: "function";
|
|
908
|
-
}, {
|
|
909
|
-
readonly inputs: readonly [{
|
|
910
|
-
readonly internalType: "address";
|
|
911
|
-
readonly name: "_recipient";
|
|
912
|
-
readonly type: "address";
|
|
913
|
-
}, {
|
|
914
|
-
readonly internalType: "uint256";
|
|
915
|
-
readonly name: "_fundTokenAmount";
|
|
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[]";
|
|
934
|
-
}];
|
|
935
|
-
readonly name: "withdrawToSafe";
|
|
936
|
-
readonly outputs: readonly [];
|
|
937
|
-
readonly stateMutability: "nonpayable";
|
|
938
|
-
readonly type: "function";
|
|
939
|
-
}, {
|
|
940
|
-
readonly inputs: readonly [{
|
|
941
|
-
readonly internalType: "address";
|
|
942
|
-
readonly name: "_recipient";
|
|
943
|
-
readonly type: "address";
|
|
944
|
-
}, {
|
|
945
|
-
readonly internalType: "uint256";
|
|
946
|
-
readonly name: "_fundTokenAmount";
|
|
947
|
-
readonly type: "uint256";
|
|
948
|
-
}, {
|
|
949
|
-
readonly internalType: "uint256";
|
|
950
|
-
readonly name: "_slippageTolerance";
|
|
951
|
-
readonly type: "uint256";
|
|
952
|
-
}];
|
|
953
|
-
readonly name: "withdrawToSafe";
|
|
954
|
-
readonly outputs: readonly [];
|
|
955
|
-
readonly stateMutability: "nonpayable";
|
|
956
|
-
readonly type: "function";
|
|
957
270
|
}];
|
|
958
271
|
readonly functionName: "poolManagerLogic";
|
|
959
272
|
readonly chainId: number;
|
|
960
273
|
}, {
|
|
961
274
|
readonly address: `0x${string}`;
|
|
962
275
|
readonly abi: readonly [{
|
|
276
|
+
readonly inputs: readonly [];
|
|
277
|
+
readonly name: "EmptyPayload";
|
|
278
|
+
readonly type: "error";
|
|
279
|
+
}, {
|
|
963
280
|
readonly inputs: readonly [];
|
|
964
281
|
readonly name: "FailedInnerCall";
|
|
965
282
|
readonly type: "error";
|
|
@@ -2003,6 +1320,10 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
2003
1320
|
}, {
|
|
2004
1321
|
readonly address: `0x${string}`;
|
|
2005
1322
|
readonly abi: readonly [{
|
|
1323
|
+
readonly inputs: readonly [];
|
|
1324
|
+
readonly name: "EmptyPayload";
|
|
1325
|
+
readonly type: "error";
|
|
1326
|
+
}, {
|
|
2006
1327
|
readonly inputs: readonly [];
|
|
2007
1328
|
readonly name: "FailedInnerCall";
|
|
2008
1329
|
readonly type: "error";
|