@dhedge/trading-widget 3.0.0-alpha.3 → 3.0.0-alpha.5
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 +7 -4
- package/core-kit/abi/easy-swapper-v2.d.ts +322 -0
- package/core-kit/const/default-data.d.ts +2 -0
- package/core-kit/const/network.d.ts +156 -1706
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +644 -0
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +4 -1
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +322 -0
- package/core-kit/hooks/trading/withdraw-v2/index.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +210 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction-arguments.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-unroll-and-claim-transaction.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdraw-assets-info.d.ts +219 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +832 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +322 -0
- package/core-kit/types/trading-panel.types.d.ts +1 -1
- package/index-33c9ef9c.cjs +217 -0
- package/index-3d8f663e.js +40423 -0
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/pyth-adapter-78dd047a.js +5705 -0
- package/pyth-adapter-83411db2.cjs +11 -0
- package/style.css +1 -1
- package/trading-widget/components/common/balance/withdraw-assets-composition-table.d.ts +7 -0
- package/trading-widget/components/common/meta/assets-composition-disclosure/assets-composition-disclosure.d.ts +3 -0
- package/trading-widget/components/common/spinner/spinner.d.ts +0 -2
- package/trading-widget/components/widget/widget-input/token-selector/token-selector.hooks.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/swap-summary.d.ts +0 -1
- package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.hooks.d.ts +1 -1
- package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.hooks.d.ts +0 -1
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/all-assets-composition-table/all-assets-composition-table.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +14 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/single-asset-composition-table/single-asset-composition-table.d.ts +3 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/single-asset-composition-table/single-asset-composition-table.hooks.d.ts +10 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/withdraw-section.d.ts +4 -1
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/withdraw-section.hooks.d.ts +11 -8
- package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/stepper/withdraw-stepper.d.ts +2 -0
- package/trading-widget/components/withdraw/stepper/withdraw-stepper.hooks.d.ts +8 -0
- package/trading-widget/components/withdraw/tab-panel/tab-panel.hooks.d.ts +0 -2
- package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +0 -1
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +6 -3
- package/trading-widget/utils/synthetix-v3.d.ts +8 -9
- package/index-57a6eab2.js +0 -39514
- package/index-a45591cd.cjs +0 -207
- package/pyth-adapter-25487a87.js +0 -4119
- package/pyth-adapter-ef6a3a0d.cjs +0 -11
- package/trading-widget/components/widget/widget-meta/stepper.d.ts +0 -9
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/asset-composition-table/asset-composition-table.d.ts +0 -2
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/asset-composition-table/asset-composition-table.hooks.d.ts +0 -12
- /package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/{asset-composition-table → all-assets-composition-table}/withdraw-explanation-tip.d.ts +0 -0
|
@@ -736,5 +736,8 @@ declare const getPoolContracts: ({ account, chainId, address, }: PoolContractAcc
|
|
|
736
736
|
readonly chainId: number;
|
|
737
737
|
}];
|
|
738
738
|
type PoolsMap = Record<Address, DynamicPoolContractData>;
|
|
739
|
-
|
|
739
|
+
type UsePoolsDynamicParams = {
|
|
740
|
+
account?: Address;
|
|
741
|
+
};
|
|
742
|
+
export declare const usePoolsDynamic: ({ account, }?: UsePoolsDynamicParams) => UseReadContractsReturnType<ReturnType<typeof getPoolContracts>, true, PoolsMap>;
|
|
740
743
|
export {};
|
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
import type { PoolConfig } from 'core-kit/types/config.types';
|
|
2
2
|
export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => import("wagmi").UseReadContractReturnType<readonly [{
|
|
3
|
+
readonly anonymous: false;
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly indexed: true;
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "previousOwner";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}, {
|
|
10
|
+
readonly indexed: true;
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "newOwner";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly name: "OwnershipTransferred";
|
|
16
|
+
readonly type: "event";
|
|
17
|
+
}, {
|
|
18
|
+
readonly anonymous: false;
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly indexed: false;
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "proxy";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "ProxyCreated";
|
|
26
|
+
readonly type: "event";
|
|
27
|
+
}, {
|
|
28
|
+
readonly anonymous: false;
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly indexed: false;
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "withdrawalVault";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly indexed: true;
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "depositor";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "WithdrawalCompleted";
|
|
41
|
+
readonly type: "event";
|
|
42
|
+
}, {
|
|
43
|
+
readonly anonymous: false;
|
|
44
|
+
readonly inputs: readonly [{
|
|
45
|
+
readonly indexed: false;
|
|
46
|
+
readonly internalType: "address";
|
|
47
|
+
readonly name: "withdrawalVault";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly indexed: true;
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
readonly name: "depositor";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly indexed: false;
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
readonly name: "dHedgeVault";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}, {
|
|
60
|
+
readonly indexed: false;
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "amountWithdrawn";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "WithdrawalInitiated";
|
|
66
|
+
readonly type: "event";
|
|
67
|
+
}, {
|
|
68
|
+
readonly anonymous: false;
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly indexed: false;
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
readonly name: "withdrawalVault";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
}, {
|
|
75
|
+
readonly indexed: true;
|
|
76
|
+
readonly internalType: "address";
|
|
77
|
+
readonly name: "depositor";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "WithdrawalVaultCreated";
|
|
81
|
+
readonly type: "event";
|
|
82
|
+
}, {
|
|
83
|
+
readonly anonymous: false;
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly indexed: true;
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly name: "depositor";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly indexed: true;
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
readonly name: "dHedgeVault";
|
|
93
|
+
readonly type: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly indexed: false;
|
|
96
|
+
readonly internalType: "contract IERC20";
|
|
97
|
+
readonly name: "vaultDepositToken";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly indexed: false;
|
|
101
|
+
readonly internalType: "contract IERC20";
|
|
102
|
+
readonly name: "userDepositToken";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly indexed: false;
|
|
106
|
+
readonly internalType: "uint256";
|
|
107
|
+
readonly name: "amountReceived";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}, {
|
|
110
|
+
readonly indexed: false;
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly name: "lockupTime";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly name: "ZapDepositCompleted";
|
|
116
|
+
readonly type: "event";
|
|
117
|
+
}, {
|
|
118
|
+
readonly inputs: readonly [];
|
|
119
|
+
readonly name: "DEFAULT_COOLDOWN";
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly stateMutability: "view";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
}, {
|
|
3
128
|
readonly inputs: readonly [{
|
|
4
129
|
readonly components: readonly [{
|
|
5
130
|
readonly components: readonly [{
|
|
@@ -83,6 +208,16 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
83
208
|
}];
|
|
84
209
|
readonly stateMutability: "view";
|
|
85
210
|
readonly type: "function";
|
|
211
|
+
}, {
|
|
212
|
+
readonly inputs: readonly [];
|
|
213
|
+
readonly name: "dHedgePoolFactory";
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly internalType: "address";
|
|
216
|
+
readonly name: "";
|
|
217
|
+
readonly type: "address";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "view";
|
|
220
|
+
readonly type: "function";
|
|
86
221
|
}, {
|
|
87
222
|
readonly inputs: readonly [{
|
|
88
223
|
readonly internalType: "address";
|
|
@@ -149,6 +284,20 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
149
284
|
readonly outputs: readonly [];
|
|
150
285
|
readonly stateMutability: "nonpayable";
|
|
151
286
|
readonly type: "function";
|
|
287
|
+
}, {
|
|
288
|
+
readonly inputs: readonly [{
|
|
289
|
+
readonly internalType: "uint8";
|
|
290
|
+
readonly name: "";
|
|
291
|
+
readonly type: "uint8";
|
|
292
|
+
}];
|
|
293
|
+
readonly name: "getLogic";
|
|
294
|
+
readonly outputs: readonly [{
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
readonly name: "";
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
}];
|
|
299
|
+
readonly stateMutability: "view";
|
|
300
|
+
readonly type: "function";
|
|
152
301
|
}, {
|
|
153
302
|
readonly inputs: readonly [{
|
|
154
303
|
readonly internalType: "address";
|
|
@@ -187,9 +336,66 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
187
336
|
readonly type: "uint256";
|
|
188
337
|
}];
|
|
189
338
|
readonly name: "initWithdrawal";
|
|
339
|
+
readonly outputs: readonly [{
|
|
340
|
+
readonly components: readonly [{
|
|
341
|
+
readonly internalType: "address";
|
|
342
|
+
readonly name: "token";
|
|
343
|
+
readonly type: "address";
|
|
344
|
+
}, {
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
readonly name: "balance";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}];
|
|
349
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
350
|
+
readonly name: "trackedAssets";
|
|
351
|
+
readonly type: "tuple[]";
|
|
352
|
+
}, {
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
readonly name: "vault";
|
|
355
|
+
readonly type: "address";
|
|
356
|
+
}];
|
|
357
|
+
readonly stateMutability: "nonpayable";
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
}, {
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly internalType: "address";
|
|
362
|
+
readonly name: "_vaultLogic";
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
}, {
|
|
365
|
+
readonly internalType: "address";
|
|
366
|
+
readonly name: "_weth";
|
|
367
|
+
readonly type: "address";
|
|
368
|
+
}, {
|
|
369
|
+
readonly internalType: "contract IWETH";
|
|
370
|
+
readonly name: "_wrappedNativeToken";
|
|
371
|
+
readonly type: "address";
|
|
372
|
+
}, {
|
|
373
|
+
readonly internalType: "contract ISwapper";
|
|
374
|
+
readonly name: "_swapper";
|
|
375
|
+
readonly type: "address";
|
|
376
|
+
}, {
|
|
377
|
+
readonly internalType: "uint256";
|
|
378
|
+
readonly name: "_customCooldown";
|
|
379
|
+
readonly type: "uint256";
|
|
380
|
+
}];
|
|
381
|
+
readonly name: "initialize";
|
|
190
382
|
readonly outputs: readonly [];
|
|
191
383
|
readonly stateMutability: "nonpayable";
|
|
192
384
|
readonly type: "function";
|
|
385
|
+
}, {
|
|
386
|
+
readonly inputs: readonly [{
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
readonly name: "_dHedgeVault";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "isdHedgeVault";
|
|
392
|
+
readonly outputs: readonly [{
|
|
393
|
+
readonly internalType: "bool";
|
|
394
|
+
readonly name: "isVault";
|
|
395
|
+
readonly type: "bool";
|
|
396
|
+
}];
|
|
397
|
+
readonly stateMutability: "view";
|
|
398
|
+
readonly type: "function";
|
|
193
399
|
}, {
|
|
194
400
|
readonly inputs: readonly [{
|
|
195
401
|
readonly internalType: "address";
|
|
@@ -218,6 +424,16 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
218
424
|
readonly outputs: readonly [];
|
|
219
425
|
readonly stateMutability: "payable";
|
|
220
426
|
readonly type: "function";
|
|
427
|
+
}, {
|
|
428
|
+
readonly inputs: readonly [];
|
|
429
|
+
readonly name: "owner";
|
|
430
|
+
readonly outputs: readonly [{
|
|
431
|
+
readonly internalType: "address";
|
|
432
|
+
readonly name: "";
|
|
433
|
+
readonly type: "address";
|
|
434
|
+
}];
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
readonly type: "function";
|
|
221
437
|
}, {
|
|
222
438
|
readonly inputs: readonly [{
|
|
223
439
|
readonly internalType: "uint256";
|
|
@@ -232,6 +448,71 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
232
448
|
readonly outputs: readonly [];
|
|
233
449
|
readonly stateMutability: "nonpayable";
|
|
234
450
|
readonly type: "function";
|
|
451
|
+
}, {
|
|
452
|
+
readonly inputs: readonly [];
|
|
453
|
+
readonly name: "renounceOwnership";
|
|
454
|
+
readonly outputs: readonly [];
|
|
455
|
+
readonly stateMutability: "nonpayable";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly internalType: "uint256";
|
|
460
|
+
readonly name: "_customCooldown";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}];
|
|
463
|
+
readonly name: "setCustomCooldown";
|
|
464
|
+
readonly outputs: readonly [];
|
|
465
|
+
readonly stateMutability: "nonpayable";
|
|
466
|
+
readonly type: "function";
|
|
467
|
+
}, {
|
|
468
|
+
readonly inputs: readonly [{
|
|
469
|
+
readonly components: readonly [{
|
|
470
|
+
readonly internalType: "address";
|
|
471
|
+
readonly name: "dHedgeVault";
|
|
472
|
+
readonly type: "address";
|
|
473
|
+
}, {
|
|
474
|
+
readonly internalType: "bool";
|
|
475
|
+
readonly name: "whitelisted";
|
|
476
|
+
readonly type: "bool";
|
|
477
|
+
}];
|
|
478
|
+
readonly internalType: "struct EasySwapperV2.CustomCooldownSetting[]";
|
|
479
|
+
readonly name: "_whitelistSettings";
|
|
480
|
+
readonly type: "tuple[]";
|
|
481
|
+
}];
|
|
482
|
+
readonly name: "setCustomCooldownWhitelist";
|
|
483
|
+
readonly outputs: readonly [];
|
|
484
|
+
readonly stateMutability: "nonpayable";
|
|
485
|
+
readonly type: "function";
|
|
486
|
+
}, {
|
|
487
|
+
readonly inputs: readonly [{
|
|
488
|
+
readonly internalType: "address";
|
|
489
|
+
readonly name: "_vaultLogic";
|
|
490
|
+
readonly type: "address";
|
|
491
|
+
}];
|
|
492
|
+
readonly name: "setLogic";
|
|
493
|
+
readonly outputs: readonly [];
|
|
494
|
+
readonly stateMutability: "nonpayable";
|
|
495
|
+
readonly type: "function";
|
|
496
|
+
}, {
|
|
497
|
+
readonly inputs: readonly [{
|
|
498
|
+
readonly internalType: "contract ISwapper";
|
|
499
|
+
readonly name: "_swapper";
|
|
500
|
+
readonly type: "address";
|
|
501
|
+
}];
|
|
502
|
+
readonly name: "setSwapper";
|
|
503
|
+
readonly outputs: readonly [];
|
|
504
|
+
readonly stateMutability: "nonpayable";
|
|
505
|
+
readonly type: "function";
|
|
506
|
+
}, {
|
|
507
|
+
readonly inputs: readonly [{
|
|
508
|
+
readonly internalType: "address";
|
|
509
|
+
readonly name: "_dHedgePoolFactory";
|
|
510
|
+
readonly type: "address";
|
|
511
|
+
}];
|
|
512
|
+
readonly name: "setdHedgePoolFactory";
|
|
513
|
+
readonly outputs: readonly [];
|
|
514
|
+
readonly stateMutability: "nonpayable";
|
|
515
|
+
readonly type: "function";
|
|
235
516
|
}, {
|
|
236
517
|
readonly inputs: readonly [];
|
|
237
518
|
readonly name: "swapper";
|
|
@@ -242,6 +523,47 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
242
523
|
}];
|
|
243
524
|
readonly stateMutability: "view";
|
|
244
525
|
readonly type: "function";
|
|
526
|
+
}, {
|
|
527
|
+
readonly inputs: readonly [{
|
|
528
|
+
readonly internalType: "address";
|
|
529
|
+
readonly name: "newOwner";
|
|
530
|
+
readonly type: "address";
|
|
531
|
+
}];
|
|
532
|
+
readonly name: "transferOwnership";
|
|
533
|
+
readonly outputs: readonly [];
|
|
534
|
+
readonly stateMutability: "nonpayable";
|
|
535
|
+
readonly type: "function";
|
|
536
|
+
}, {
|
|
537
|
+
readonly inputs: readonly [{
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
readonly name: "_dHedgeVault";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}, {
|
|
542
|
+
readonly internalType: "uint256";
|
|
543
|
+
readonly name: "_amountIn";
|
|
544
|
+
readonly type: "uint256";
|
|
545
|
+
}, {
|
|
546
|
+
readonly internalType: "uint256";
|
|
547
|
+
readonly name: "_slippageTolerance";
|
|
548
|
+
readonly type: "uint256";
|
|
549
|
+
}];
|
|
550
|
+
readonly name: "unrollAndClaim";
|
|
551
|
+
readonly outputs: readonly [{
|
|
552
|
+
readonly components: readonly [{
|
|
553
|
+
readonly internalType: "address";
|
|
554
|
+
readonly name: "token";
|
|
555
|
+
readonly type: "address";
|
|
556
|
+
}, {
|
|
557
|
+
readonly internalType: "uint256";
|
|
558
|
+
readonly name: "balance";
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
}];
|
|
561
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
562
|
+
readonly name: "";
|
|
563
|
+
readonly type: "tuple[]";
|
|
564
|
+
}];
|
|
565
|
+
readonly stateMutability: "nonpayable";
|
|
566
|
+
readonly type: "function";
|
|
245
567
|
}, {
|
|
246
568
|
readonly inputs: readonly [];
|
|
247
569
|
readonly name: "weth";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { useWithdrawTypeHandler } from './use-withdraw-type-handler';
|
|
2
2
|
export { useMinWithdrawSlippage } from './use-min-withdraw-slippage';
|
|
3
3
|
export { useAppliedWithdrawSlippage } from './use-applied-withdraw-slippage';
|
|
4
|
+
export { useWithdrawalVaultAddress } from './use-withdrawal-vault-address';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { useIsMultiAssetWithdraw } from './use-is-multi-asset-withdraw';
|
|
2
2
|
export { useInitWithdrawAllowance } from './use-init-withdraw-allowance';
|
|
3
3
|
export { useInitWithdrawTransaction } from './use-init-withdraw-transaction';
|
|
4
|
+
export { useInitWithdrawTransactionArguments } from './use-init-withdraw-transaction-arguments';
|
|
5
|
+
export { useInitWithdrawEstimatedReceiveAssets } from './use-init-withdraw-estimated-receive-assets';
|
|
6
|
+
export { useIsUnrollAndClaimTransaction } from './use-is-unroll-and-claim-transaction';
|
package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
export declare const useInitWithdrawEstimatedReceiveAssets: () => import("wagmi").UseReadContractsReturnType<({
|
|
2
|
+
address: `0x${string}`;
|
|
3
|
+
abi: readonly [{
|
|
4
|
+
readonly type: "event";
|
|
5
|
+
readonly name: "Approval";
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly indexed: true;
|
|
8
|
+
readonly name: "owner";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly indexed: true;
|
|
12
|
+
readonly name: "spender";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly indexed: false;
|
|
16
|
+
readonly name: "value";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}];
|
|
19
|
+
}, {
|
|
20
|
+
readonly type: "event";
|
|
21
|
+
readonly name: "Transfer";
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly indexed: true;
|
|
24
|
+
readonly name: "from";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly indexed: true;
|
|
28
|
+
readonly name: "to";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}, {
|
|
31
|
+
readonly indexed: false;
|
|
32
|
+
readonly name: "value";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly name: "allowance";
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly name: "owner";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "spender";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}];
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
readonly name: "approve";
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "spender";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "amount";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly outputs: readonly [{
|
|
61
|
+
readonly type: "bool";
|
|
62
|
+
}];
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "balanceOf";
|
|
66
|
+
readonly stateMutability: "view";
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly name: "account";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}];
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}];
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "function";
|
|
76
|
+
readonly name: "decimals";
|
|
77
|
+
readonly stateMutability: "view";
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly type: "uint8";
|
|
81
|
+
}];
|
|
82
|
+
}, {
|
|
83
|
+
readonly type: "function";
|
|
84
|
+
readonly name: "name";
|
|
85
|
+
readonly stateMutability: "view";
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly outputs: readonly [{
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
}];
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
readonly name: "symbol";
|
|
93
|
+
readonly stateMutability: "view";
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
}];
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
readonly name: "totalSupply";
|
|
101
|
+
readonly stateMutability: "view";
|
|
102
|
+
readonly inputs: readonly [];
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}];
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
readonly name: "transfer";
|
|
109
|
+
readonly stateMutability: "nonpayable";
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly name: "recipient";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "amount";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
}];
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly type: "bool";
|
|
119
|
+
}];
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "function";
|
|
122
|
+
readonly name: "transferFrom";
|
|
123
|
+
readonly stateMutability: "nonpayable";
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly name: "sender";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "recipient";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "amount";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}];
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly type: "bool";
|
|
136
|
+
}];
|
|
137
|
+
}];
|
|
138
|
+
functionName: string;
|
|
139
|
+
chainId: number;
|
|
140
|
+
args: never[];
|
|
141
|
+
} | {
|
|
142
|
+
address: `0x${string}`;
|
|
143
|
+
abi: readonly [{
|
|
144
|
+
readonly inputs: readonly [{
|
|
145
|
+
readonly internalType: "address";
|
|
146
|
+
readonly name: "asset";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}];
|
|
149
|
+
readonly name: "getAssetPrice";
|
|
150
|
+
readonly outputs: readonly [{
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
readonly name: "price";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
readonly stateMutability: "view";
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
}, {
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}];
|
|
163
|
+
readonly name: "isPool";
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly internalType: "bool";
|
|
166
|
+
readonly name: "";
|
|
167
|
+
readonly type: "bool";
|
|
168
|
+
}];
|
|
169
|
+
readonly stateMutability: "view";
|
|
170
|
+
readonly type: "function";
|
|
171
|
+
}, {
|
|
172
|
+
readonly inputs: readonly [{
|
|
173
|
+
readonly internalType: "address";
|
|
174
|
+
readonly name: "extContract";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
}];
|
|
177
|
+
readonly name: "getAssetGuard";
|
|
178
|
+
readonly outputs: readonly [{
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "guard";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}];
|
|
183
|
+
readonly stateMutability: "view";
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
}, {
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly internalType: "address";
|
|
188
|
+
readonly name: "extContract";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
}];
|
|
191
|
+
readonly name: "getContractGuard";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly name: "guard";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
}];
|
|
200
|
+
functionName: string;
|
|
201
|
+
chainId: number;
|
|
202
|
+
args: `0x${string}`[];
|
|
203
|
+
})[], true, {
|
|
204
|
+
address: `0x${string}`;
|
|
205
|
+
symbol: string;
|
|
206
|
+
decimals: number;
|
|
207
|
+
rawBalance: bigint;
|
|
208
|
+
balance: number;
|
|
209
|
+
price: number;
|
|
210
|
+
}[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsUnrollAndClaimTransaction: () => boolean;
|