@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.
Files changed (52) hide show
  1. package/README.md +7 -4
  2. package/core-kit/abi/easy-swapper-v2.d.ts +322 -0
  3. package/core-kit/const/default-data.d.ts +2 -0
  4. package/core-kit/const/network.d.ts +156 -1706
  5. package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +644 -0
  6. package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +4 -1
  7. package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +322 -0
  8. package/core-kit/hooks/trading/withdraw-v2/index.d.ts +1 -0
  9. package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +3 -0
  10. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +210 -0
  11. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction-arguments.d.ts +5 -0
  12. package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-unroll-and-claim-transaction.d.ts +1 -0
  13. package/core-kit/hooks/trading/withdraw-v2/use-withdraw-assets-info.d.ts +219 -0
  14. package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +832 -0
  15. package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +322 -0
  16. package/core-kit/types/trading-panel.types.d.ts +1 -1
  17. package/index-33c9ef9c.cjs +217 -0
  18. package/index-3d8f663e.js +40423 -0
  19. package/index.cjs +1 -1
  20. package/index.js +1 -1
  21. package/package.json +1 -1
  22. package/pyth-adapter-78dd047a.js +5705 -0
  23. package/pyth-adapter-83411db2.cjs +11 -0
  24. package/style.css +1 -1
  25. package/trading-widget/components/common/balance/withdraw-assets-composition-table.d.ts +7 -0
  26. package/trading-widget/components/common/meta/assets-composition-disclosure/assets-composition-disclosure.d.ts +3 -0
  27. package/trading-widget/components/common/spinner/spinner.d.ts +0 -2
  28. package/trading-widget/components/widget/widget-input/token-selector/token-selector.hooks.d.ts +2 -0
  29. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/swap-summary.d.ts +0 -1
  30. package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.hooks.d.ts +1 -1
  31. package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.hooks.d.ts +0 -1
  32. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/all-assets-composition-table/all-assets-composition-table.d.ts +2 -0
  33. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +14 -0
  34. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/single-asset-composition-table/single-asset-composition-table.d.ts +3 -0
  35. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/single-asset-composition-table/single-asset-composition-table.hooks.d.ts +10 -0
  36. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/withdraw-section.d.ts +4 -1
  37. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/withdraw-section.hooks.d.ts +11 -8
  38. package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
  39. package/trading-widget/components/withdraw/stepper/withdraw-stepper.d.ts +2 -0
  40. package/trading-widget/components/withdraw/stepper/withdraw-stepper.hooks.d.ts +8 -0
  41. package/trading-widget/components/withdraw/tab-panel/tab-panel.hooks.d.ts +0 -2
  42. package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +0 -1
  43. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +6 -3
  44. package/trading-widget/utils/synthetix-v3.d.ts +8 -9
  45. package/index-57a6eab2.js +0 -39514
  46. package/index-a45591cd.cjs +0 -207
  47. package/pyth-adapter-25487a87.js +0 -4119
  48. package/pyth-adapter-ef6a3a0d.cjs +0 -11
  49. package/trading-widget/components/widget/widget-meta/stepper.d.ts +0 -9
  50. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/asset-composition-table/asset-composition-table.d.ts +0 -2
  51. package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/asset-composition-table/asset-composition-table.hooks.d.ts +0 -12
  52. /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
@@ -246,6 +246,131 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
246
246
  }, {
247
247
  readonly address: `0x${string}`;
248
248
  readonly abi: readonly [{
249
+ readonly anonymous: false;
250
+ readonly inputs: readonly [{
251
+ readonly indexed: true;
252
+ readonly internalType: "address";
253
+ readonly name: "previousOwner";
254
+ readonly type: "address";
255
+ }, {
256
+ readonly indexed: true;
257
+ readonly internalType: "address";
258
+ readonly name: "newOwner";
259
+ readonly type: "address";
260
+ }];
261
+ readonly name: "OwnershipTransferred";
262
+ readonly type: "event";
263
+ }, {
264
+ readonly anonymous: false;
265
+ readonly inputs: readonly [{
266
+ readonly indexed: false;
267
+ readonly internalType: "address";
268
+ readonly name: "proxy";
269
+ readonly type: "address";
270
+ }];
271
+ readonly name: "ProxyCreated";
272
+ readonly type: "event";
273
+ }, {
274
+ readonly anonymous: false;
275
+ readonly inputs: readonly [{
276
+ readonly indexed: false;
277
+ readonly internalType: "address";
278
+ readonly name: "withdrawalVault";
279
+ readonly type: "address";
280
+ }, {
281
+ readonly indexed: true;
282
+ readonly internalType: "address";
283
+ readonly name: "depositor";
284
+ readonly type: "address";
285
+ }];
286
+ readonly name: "WithdrawalCompleted";
287
+ readonly type: "event";
288
+ }, {
289
+ readonly anonymous: false;
290
+ readonly inputs: readonly [{
291
+ readonly indexed: false;
292
+ readonly internalType: "address";
293
+ readonly name: "withdrawalVault";
294
+ readonly type: "address";
295
+ }, {
296
+ readonly indexed: true;
297
+ readonly internalType: "address";
298
+ readonly name: "depositor";
299
+ readonly type: "address";
300
+ }, {
301
+ readonly indexed: false;
302
+ readonly internalType: "address";
303
+ readonly name: "dHedgeVault";
304
+ readonly type: "address";
305
+ }, {
306
+ readonly indexed: false;
307
+ readonly internalType: "uint256";
308
+ readonly name: "amountWithdrawn";
309
+ readonly type: "uint256";
310
+ }];
311
+ readonly name: "WithdrawalInitiated";
312
+ readonly type: "event";
313
+ }, {
314
+ readonly anonymous: false;
315
+ readonly inputs: readonly [{
316
+ readonly indexed: false;
317
+ readonly internalType: "address";
318
+ readonly name: "withdrawalVault";
319
+ readonly type: "address";
320
+ }, {
321
+ readonly indexed: true;
322
+ readonly internalType: "address";
323
+ readonly name: "depositor";
324
+ readonly type: "address";
325
+ }];
326
+ readonly name: "WithdrawalVaultCreated";
327
+ readonly type: "event";
328
+ }, {
329
+ readonly anonymous: false;
330
+ readonly inputs: readonly [{
331
+ readonly indexed: true;
332
+ readonly internalType: "address";
333
+ readonly name: "depositor";
334
+ readonly type: "address";
335
+ }, {
336
+ readonly indexed: true;
337
+ readonly internalType: "address";
338
+ readonly name: "dHedgeVault";
339
+ readonly type: "address";
340
+ }, {
341
+ readonly indexed: false;
342
+ readonly internalType: "contract IERC20";
343
+ readonly name: "vaultDepositToken";
344
+ readonly type: "address";
345
+ }, {
346
+ readonly indexed: false;
347
+ readonly internalType: "contract IERC20";
348
+ readonly name: "userDepositToken";
349
+ readonly type: "address";
350
+ }, {
351
+ readonly indexed: false;
352
+ readonly internalType: "uint256";
353
+ readonly name: "amountReceived";
354
+ readonly type: "uint256";
355
+ }, {
356
+ readonly indexed: false;
357
+ readonly internalType: "uint256";
358
+ readonly name: "lockupTime";
359
+ readonly type: "uint256";
360
+ }];
361
+ readonly name: "ZapDepositCompleted";
362
+ readonly type: "event";
363
+ }, {
364
+ readonly inputs: readonly [];
365
+ readonly name: "DEFAULT_COOLDOWN";
366
+ readonly outputs: readonly [{
367
+ readonly internalType: "uint256";
368
+ readonly name: "";
369
+ readonly type: "uint256";
370
+ }];
371
+ readonly stateMutability: "view";
372
+ readonly type: "function";
373
+ }, {
249
374
  readonly inputs: readonly [{
250
375
  readonly components: readonly [{
251
376
  readonly components: readonly [{
@@ -329,6 +454,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
329
454
  }];
330
455
  readonly stateMutability: "view";
331
456
  readonly type: "function";
457
+ }, {
458
+ readonly inputs: readonly [];
459
+ readonly name: "dHedgePoolFactory";
460
+ readonly outputs: readonly [{
461
+ readonly internalType: "address";
462
+ readonly name: "";
463
+ readonly type: "address";
464
+ }];
465
+ readonly stateMutability: "view";
466
+ readonly type: "function";
332
467
  }, {
333
468
  readonly inputs: readonly [{
334
469
  readonly internalType: "address";
@@ -395,6 +530,20 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
395
530
  readonly outputs: readonly [];
396
531
  readonly stateMutability: "nonpayable";
397
532
  readonly type: "function";
533
+ }, {
534
+ readonly inputs: readonly [{
535
+ readonly internalType: "uint8";
536
+ readonly name: "";
537
+ readonly type: "uint8";
538
+ }];
539
+ readonly name: "getLogic";
540
+ readonly outputs: readonly [{
541
+ readonly internalType: "address";
542
+ readonly name: "";
543
+ readonly type: "address";
544
+ }];
545
+ readonly stateMutability: "view";
546
+ readonly type: "function";
398
547
  }, {
399
548
  readonly inputs: readonly [{
400
549
  readonly internalType: "address";
@@ -433,9 +582,66 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
433
582
  readonly type: "uint256";
434
583
  }];
435
584
  readonly name: "initWithdrawal";
585
+ readonly outputs: readonly [{
586
+ readonly components: readonly [{
587
+ readonly internalType: "address";
588
+ readonly name: "token";
589
+ readonly type: "address";
590
+ }, {
591
+ readonly internalType: "uint256";
592
+ readonly name: "balance";
593
+ readonly type: "uint256";
594
+ }];
595
+ readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
596
+ readonly name: "trackedAssets";
597
+ readonly type: "tuple[]";
598
+ }, {
599
+ readonly internalType: "address";
600
+ readonly name: "vault";
601
+ readonly type: "address";
602
+ }];
603
+ readonly stateMutability: "nonpayable";
604
+ readonly type: "function";
605
+ }, {
606
+ readonly inputs: readonly [{
607
+ readonly internalType: "address";
608
+ readonly name: "_vaultLogic";
609
+ readonly type: "address";
610
+ }, {
611
+ readonly internalType: "address";
612
+ readonly name: "_weth";
613
+ readonly type: "address";
614
+ }, {
615
+ readonly internalType: "contract IWETH";
616
+ readonly name: "_wrappedNativeToken";
617
+ readonly type: "address";
618
+ }, {
619
+ readonly internalType: "contract ISwapper";
620
+ readonly name: "_swapper";
621
+ readonly type: "address";
622
+ }, {
623
+ readonly internalType: "uint256";
624
+ readonly name: "_customCooldown";
625
+ readonly type: "uint256";
626
+ }];
627
+ readonly name: "initialize";
436
628
  readonly outputs: readonly [];
437
629
  readonly stateMutability: "nonpayable";
438
630
  readonly type: "function";
631
+ }, {
632
+ readonly inputs: readonly [{
633
+ readonly internalType: "address";
634
+ readonly name: "_dHedgeVault";
635
+ readonly type: "address";
636
+ }];
637
+ readonly name: "isdHedgeVault";
638
+ readonly outputs: readonly [{
639
+ readonly internalType: "bool";
640
+ readonly name: "isVault";
641
+ readonly type: "bool";
642
+ }];
643
+ readonly stateMutability: "view";
644
+ readonly type: "function";
439
645
  }, {
440
646
  readonly inputs: readonly [{
441
647
  readonly internalType: "address";
@@ -464,6 +670,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
464
670
  readonly outputs: readonly [];
465
671
  readonly stateMutability: "payable";
466
672
  readonly type: "function";
673
+ }, {
674
+ readonly inputs: readonly [];
675
+ readonly name: "owner";
676
+ readonly outputs: readonly [{
677
+ readonly internalType: "address";
678
+ readonly name: "";
679
+ readonly type: "address";
680
+ }];
681
+ readonly stateMutability: "view";
682
+ readonly type: "function";
467
683
  }, {
468
684
  readonly inputs: readonly [{
469
685
  readonly internalType: "uint256";
@@ -478,6 +694,71 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
478
694
  readonly outputs: readonly [];
479
695
  readonly stateMutability: "nonpayable";
480
696
  readonly type: "function";
697
+ }, {
698
+ readonly inputs: readonly [];
699
+ readonly name: "renounceOwnership";
700
+ readonly outputs: readonly [];
701
+ readonly stateMutability: "nonpayable";
702
+ readonly type: "function";
703
+ }, {
704
+ readonly inputs: readonly [{
705
+ readonly internalType: "uint256";
706
+ readonly name: "_customCooldown";
707
+ readonly type: "uint256";
708
+ }];
709
+ readonly name: "setCustomCooldown";
710
+ readonly outputs: readonly [];
711
+ readonly stateMutability: "nonpayable";
712
+ readonly type: "function";
713
+ }, {
714
+ readonly inputs: readonly [{
715
+ readonly components: readonly [{
716
+ readonly internalType: "address";
717
+ readonly name: "dHedgeVault";
718
+ readonly type: "address";
719
+ }, {
720
+ readonly internalType: "bool";
721
+ readonly name: "whitelisted";
722
+ readonly type: "bool";
723
+ }];
724
+ readonly internalType: "struct EasySwapperV2.CustomCooldownSetting[]";
725
+ readonly name: "_whitelistSettings";
726
+ readonly type: "tuple[]";
727
+ }];
728
+ readonly name: "setCustomCooldownWhitelist";
729
+ readonly outputs: readonly [];
730
+ readonly stateMutability: "nonpayable";
731
+ readonly type: "function";
732
+ }, {
733
+ readonly inputs: readonly [{
734
+ readonly internalType: "address";
735
+ readonly name: "_vaultLogic";
736
+ readonly type: "address";
737
+ }];
738
+ readonly name: "setLogic";
739
+ readonly outputs: readonly [];
740
+ readonly stateMutability: "nonpayable";
741
+ readonly type: "function";
742
+ }, {
743
+ readonly inputs: readonly [{
744
+ readonly internalType: "contract ISwapper";
745
+ readonly name: "_swapper";
746
+ readonly type: "address";
747
+ }];
748
+ readonly name: "setSwapper";
749
+ readonly outputs: readonly [];
750
+ readonly stateMutability: "nonpayable";
751
+ readonly type: "function";
752
+ }, {
753
+ readonly inputs: readonly [{
754
+ readonly internalType: "address";
755
+ readonly name: "_dHedgePoolFactory";
756
+ readonly type: "address";
757
+ }];
758
+ readonly name: "setdHedgePoolFactory";
759
+ readonly outputs: readonly [];
760
+ readonly stateMutability: "nonpayable";
761
+ readonly type: "function";
481
762
  }, {
482
763
  readonly inputs: readonly [];
483
764
  readonly name: "swapper";
@@ -488,6 +769,47 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
488
769
  }];
489
770
  readonly stateMutability: "view";
490
771
  readonly type: "function";
772
+ }, {
773
+ readonly inputs: readonly [{
774
+ readonly internalType: "address";
775
+ readonly name: "newOwner";
776
+ readonly type: "address";
777
+ }];
778
+ readonly name: "transferOwnership";
779
+ readonly outputs: readonly [];
780
+ readonly stateMutability: "nonpayable";
781
+ readonly type: "function";
782
+ }, {
783
+ readonly inputs: readonly [{
784
+ readonly internalType: "address";
785
+ readonly name: "_dHedgeVault";
786
+ readonly type: "address";
787
+ }, {
788
+ readonly internalType: "uint256";
789
+ readonly name: "_amountIn";
790
+ readonly type: "uint256";
791
+ }, {
792
+ readonly internalType: "uint256";
793
+ readonly name: "_slippageTolerance";
794
+ readonly type: "uint256";
795
+ }];
796
+ readonly name: "unrollAndClaim";
797
+ readonly outputs: readonly [{
798
+ readonly components: readonly [{
799
+ readonly internalType: "address";
800
+ readonly name: "token";
801
+ readonly type: "address";
802
+ }, {
803
+ readonly internalType: "uint256";
804
+ readonly name: "balance";
805
+ readonly type: "uint256";
806
+ }];
807
+ readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
808
+ readonly name: "";
809
+ readonly type: "tuple[]";
810
+ }];
811
+ readonly stateMutability: "nonpayable";
812
+ readonly type: "function";
491
813
  }, {
492
814
  readonly inputs: readonly [];
493
815
  readonly name: "weth";
@@ -761,6 +1083,131 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
761
1083
  }, {
762
1084
  readonly address: `0x${string}`;
763
1085
  readonly abi: readonly [{
1086
+ readonly anonymous: false;
1087
+ readonly inputs: readonly [{
1088
+ readonly indexed: true;
1089
+ readonly internalType: "address";
1090
+ readonly name: "previousOwner";
1091
+ readonly type: "address";
1092
+ }, {
1093
+ readonly indexed: true;
1094
+ readonly internalType: "address";
1095
+ readonly name: "newOwner";
1096
+ readonly type: "address";
1097
+ }];
1098
+ readonly name: "OwnershipTransferred";
1099
+ readonly type: "event";
1100
+ }, {
1101
+ readonly anonymous: false;
1102
+ readonly inputs: readonly [{
1103
+ readonly indexed: false;
1104
+ readonly internalType: "address";
1105
+ readonly name: "proxy";
1106
+ readonly type: "address";
1107
+ }];
1108
+ readonly name: "ProxyCreated";
1109
+ readonly type: "event";
1110
+ }, {
1111
+ readonly anonymous: false;
1112
+ readonly inputs: readonly [{
1113
+ readonly indexed: false;
1114
+ readonly internalType: "address";
1115
+ readonly name: "withdrawalVault";
1116
+ readonly type: "address";
1117
+ }, {
1118
+ readonly indexed: true;
1119
+ readonly internalType: "address";
1120
+ readonly name: "depositor";
1121
+ readonly type: "address";
1122
+ }];
1123
+ readonly name: "WithdrawalCompleted";
1124
+ readonly type: "event";
1125
+ }, {
1126
+ readonly anonymous: false;
1127
+ readonly inputs: readonly [{
1128
+ readonly indexed: false;
1129
+ readonly internalType: "address";
1130
+ readonly name: "withdrawalVault";
1131
+ readonly type: "address";
1132
+ }, {
1133
+ readonly indexed: true;
1134
+ readonly internalType: "address";
1135
+ readonly name: "depositor";
1136
+ readonly type: "address";
1137
+ }, {
1138
+ readonly indexed: false;
1139
+ readonly internalType: "address";
1140
+ readonly name: "dHedgeVault";
1141
+ readonly type: "address";
1142
+ }, {
1143
+ readonly indexed: false;
1144
+ readonly internalType: "uint256";
1145
+ readonly name: "amountWithdrawn";
1146
+ readonly type: "uint256";
1147
+ }];
1148
+ readonly name: "WithdrawalInitiated";
1149
+ readonly type: "event";
1150
+ }, {
1151
+ readonly anonymous: false;
1152
+ readonly inputs: readonly [{
1153
+ readonly indexed: false;
1154
+ readonly internalType: "address";
1155
+ readonly name: "withdrawalVault";
1156
+ readonly type: "address";
1157
+ }, {
1158
+ readonly indexed: true;
1159
+ readonly internalType: "address";
1160
+ readonly name: "depositor";
1161
+ readonly type: "address";
1162
+ }];
1163
+ readonly name: "WithdrawalVaultCreated";
1164
+ readonly type: "event";
1165
+ }, {
1166
+ readonly anonymous: false;
1167
+ readonly inputs: readonly [{
1168
+ readonly indexed: true;
1169
+ readonly internalType: "address";
1170
+ readonly name: "depositor";
1171
+ readonly type: "address";
1172
+ }, {
1173
+ readonly indexed: true;
1174
+ readonly internalType: "address";
1175
+ readonly name: "dHedgeVault";
1176
+ readonly type: "address";
1177
+ }, {
1178
+ readonly indexed: false;
1179
+ readonly internalType: "contract IERC20";
1180
+ readonly name: "vaultDepositToken";
1181
+ readonly type: "address";
1182
+ }, {
1183
+ readonly indexed: false;
1184
+ readonly internalType: "contract IERC20";
1185
+ readonly name: "userDepositToken";
1186
+ readonly type: "address";
1187
+ }, {
1188
+ readonly indexed: false;
1189
+ readonly internalType: "uint256";
1190
+ readonly name: "amountReceived";
1191
+ readonly type: "uint256";
1192
+ }, {
1193
+ readonly indexed: false;
1194
+ readonly internalType: "uint256";
1195
+ readonly name: "lockupTime";
1196
+ readonly type: "uint256";
1197
+ }];
1198
+ readonly name: "ZapDepositCompleted";
1199
+ readonly type: "event";
1200
+ }, {
1201
+ readonly inputs: readonly [];
1202
+ readonly name: "DEFAULT_COOLDOWN";
1203
+ readonly outputs: readonly [{
1204
+ readonly internalType: "uint256";
1205
+ readonly name: "";
1206
+ readonly type: "uint256";
1207
+ }];
1208
+ readonly stateMutability: "view";
1209
+ readonly type: "function";
1210
+ }, {
764
1211
  readonly inputs: readonly [{
765
1212
  readonly components: readonly [{
766
1213
  readonly components: readonly [{
@@ -844,6 +1291,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
844
1291
  }];
845
1292
  readonly stateMutability: "view";
846
1293
  readonly type: "function";
1294
+ }, {
1295
+ readonly inputs: readonly [];
1296
+ readonly name: "dHedgePoolFactory";
1297
+ readonly outputs: readonly [{
1298
+ readonly internalType: "address";
1299
+ readonly name: "";
1300
+ readonly type: "address";
1301
+ }];
1302
+ readonly stateMutability: "view";
1303
+ readonly type: "function";
847
1304
  }, {
848
1305
  readonly inputs: readonly [{
849
1306
  readonly internalType: "address";
@@ -910,6 +1367,20 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
910
1367
  readonly outputs: readonly [];
911
1368
  readonly stateMutability: "nonpayable";
912
1369
  readonly type: "function";
1370
+ }, {
1371
+ readonly inputs: readonly [{
1372
+ readonly internalType: "uint8";
1373
+ readonly name: "";
1374
+ readonly type: "uint8";
1375
+ }];
1376
+ readonly name: "getLogic";
1377
+ readonly outputs: readonly [{
1378
+ readonly internalType: "address";
1379
+ readonly name: "";
1380
+ readonly type: "address";
1381
+ }];
1382
+ readonly stateMutability: "view";
1383
+ readonly type: "function";
913
1384
  }, {
914
1385
  readonly inputs: readonly [{
915
1386
  readonly internalType: "address";
@@ -948,9 +1419,66 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
948
1419
  readonly type: "uint256";
949
1420
  }];
950
1421
  readonly name: "initWithdrawal";
1422
+ readonly outputs: readonly [{
1423
+ readonly components: readonly [{
1424
+ readonly internalType: "address";
1425
+ readonly name: "token";
1426
+ readonly type: "address";
1427
+ }, {
1428
+ readonly internalType: "uint256";
1429
+ readonly name: "balance";
1430
+ readonly type: "uint256";
1431
+ }];
1432
+ readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
1433
+ readonly name: "trackedAssets";
1434
+ readonly type: "tuple[]";
1435
+ }, {
1436
+ readonly internalType: "address";
1437
+ readonly name: "vault";
1438
+ readonly type: "address";
1439
+ }];
1440
+ readonly stateMutability: "nonpayable";
1441
+ readonly type: "function";
1442
+ }, {
1443
+ readonly inputs: readonly [{
1444
+ readonly internalType: "address";
1445
+ readonly name: "_vaultLogic";
1446
+ readonly type: "address";
1447
+ }, {
1448
+ readonly internalType: "address";
1449
+ readonly name: "_weth";
1450
+ readonly type: "address";
1451
+ }, {
1452
+ readonly internalType: "contract IWETH";
1453
+ readonly name: "_wrappedNativeToken";
1454
+ readonly type: "address";
1455
+ }, {
1456
+ readonly internalType: "contract ISwapper";
1457
+ readonly name: "_swapper";
1458
+ readonly type: "address";
1459
+ }, {
1460
+ readonly internalType: "uint256";
1461
+ readonly name: "_customCooldown";
1462
+ readonly type: "uint256";
1463
+ }];
1464
+ readonly name: "initialize";
951
1465
  readonly outputs: readonly [];
952
1466
  readonly stateMutability: "nonpayable";
953
1467
  readonly type: "function";
1468
+ }, {
1469
+ readonly inputs: readonly [{
1470
+ readonly internalType: "address";
1471
+ readonly name: "_dHedgeVault";
1472
+ readonly type: "address";
1473
+ }];
1474
+ readonly name: "isdHedgeVault";
1475
+ readonly outputs: readonly [{
1476
+ readonly internalType: "bool";
1477
+ readonly name: "isVault";
1478
+ readonly type: "bool";
1479
+ }];
1480
+ readonly stateMutability: "view";
1481
+ readonly type: "function";
954
1482
  }, {
955
1483
  readonly inputs: readonly [{
956
1484
  readonly internalType: "address";
@@ -979,6 +1507,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
979
1507
  readonly outputs: readonly [];
980
1508
  readonly stateMutability: "payable";
981
1509
  readonly type: "function";
1510
+ }, {
1511
+ readonly inputs: readonly [];
1512
+ readonly name: "owner";
1513
+ readonly outputs: readonly [{
1514
+ readonly internalType: "address";
1515
+ readonly name: "";
1516
+ readonly type: "address";
1517
+ }];
1518
+ readonly stateMutability: "view";
1519
+ readonly type: "function";
982
1520
  }, {
983
1521
  readonly inputs: readonly [{
984
1522
  readonly internalType: "uint256";
@@ -993,6 +1531,71 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
993
1531
  readonly outputs: readonly [];
994
1532
  readonly stateMutability: "nonpayable";
995
1533
  readonly type: "function";
1534
+ }, {
1535
+ readonly inputs: readonly [];
1536
+ readonly name: "renounceOwnership";
1537
+ readonly outputs: readonly [];
1538
+ readonly stateMutability: "nonpayable";
1539
+ readonly type: "function";
1540
+ }, {
1541
+ readonly inputs: readonly [{
1542
+ readonly internalType: "uint256";
1543
+ readonly name: "_customCooldown";
1544
+ readonly type: "uint256";
1545
+ }];
1546
+ readonly name: "setCustomCooldown";
1547
+ readonly outputs: readonly [];
1548
+ readonly stateMutability: "nonpayable";
1549
+ readonly type: "function";
1550
+ }, {
1551
+ readonly inputs: readonly [{
1552
+ readonly components: readonly [{
1553
+ readonly internalType: "address";
1554
+ readonly name: "dHedgeVault";
1555
+ readonly type: "address";
1556
+ }, {
1557
+ readonly internalType: "bool";
1558
+ readonly name: "whitelisted";
1559
+ readonly type: "bool";
1560
+ }];
1561
+ readonly internalType: "struct EasySwapperV2.CustomCooldownSetting[]";
1562
+ readonly name: "_whitelistSettings";
1563
+ readonly type: "tuple[]";
1564
+ }];
1565
+ readonly name: "setCustomCooldownWhitelist";
1566
+ readonly outputs: readonly [];
1567
+ readonly stateMutability: "nonpayable";
1568
+ readonly type: "function";
1569
+ }, {
1570
+ readonly inputs: readonly [{
1571
+ readonly internalType: "address";
1572
+ readonly name: "_vaultLogic";
1573
+ readonly type: "address";
1574
+ }];
1575
+ readonly name: "setLogic";
1576
+ readonly outputs: readonly [];
1577
+ readonly stateMutability: "nonpayable";
1578
+ readonly type: "function";
1579
+ }, {
1580
+ readonly inputs: readonly [{
1581
+ readonly internalType: "contract ISwapper";
1582
+ readonly name: "_swapper";
1583
+ readonly type: "address";
1584
+ }];
1585
+ readonly name: "setSwapper";
1586
+ readonly outputs: readonly [];
1587
+ readonly stateMutability: "nonpayable";
1588
+ readonly type: "function";
1589
+ }, {
1590
+ readonly inputs: readonly [{
1591
+ readonly internalType: "address";
1592
+ readonly name: "_dHedgePoolFactory";
1593
+ readonly type: "address";
1594
+ }];
1595
+ readonly name: "setdHedgePoolFactory";
1596
+ readonly outputs: readonly [];
1597
+ readonly stateMutability: "nonpayable";
1598
+ readonly type: "function";
996
1599
  }, {
997
1600
  readonly inputs: readonly [];
998
1601
  readonly name: "swapper";
@@ -1003,6 +1606,47 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
1003
1606
  }];
1004
1607
  readonly stateMutability: "view";
1005
1608
  readonly type: "function";
1609
+ }, {
1610
+ readonly inputs: readonly [{
1611
+ readonly internalType: "address";
1612
+ readonly name: "newOwner";
1613
+ readonly type: "address";
1614
+ }];
1615
+ readonly name: "transferOwnership";
1616
+ readonly outputs: readonly [];
1617
+ readonly stateMutability: "nonpayable";
1618
+ readonly type: "function";
1619
+ }, {
1620
+ readonly inputs: readonly [{
1621
+ readonly internalType: "address";
1622
+ readonly name: "_dHedgeVault";
1623
+ readonly type: "address";
1624
+ }, {
1625
+ readonly internalType: "uint256";
1626
+ readonly name: "_amountIn";
1627
+ readonly type: "uint256";
1628
+ }, {
1629
+ readonly internalType: "uint256";
1630
+ readonly name: "_slippageTolerance";
1631
+ readonly type: "uint256";
1632
+ }];
1633
+ readonly name: "unrollAndClaim";
1634
+ readonly outputs: readonly [{
1635
+ readonly components: readonly [{
1636
+ readonly internalType: "address";
1637
+ readonly name: "token";
1638
+ readonly type: "address";
1639
+ }, {
1640
+ readonly internalType: "uint256";
1641
+ readonly name: "balance";
1642
+ readonly type: "uint256";
1643
+ }];
1644
+ readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
1645
+ readonly name: "";
1646
+ readonly type: "tuple[]";
1647
+ }];
1648
+ readonly stateMutability: "nonpayable";
1649
+ readonly type: "function";
1006
1650
  }, {
1007
1651
  readonly inputs: readonly [];
1008
1652
  readonly name: "weth";