@dhedge/trading-widget 3.11.2 → 3.12.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 +0 -1
- package/core-kit/abi/easy-swapper-v2.d.ts +225 -90
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +450 -180
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +225 -90
- package/core-kit/hooks/trading/use-easy-swapper-tracked-assets.d.ts +225 -90
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +1 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-get-init-withdraw-transaction-arguments.d.ts +3 -6
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +225 -90
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +225 -90
- package/core-kit/types/contract.types.d.ts +1 -0
- package/index.cjs +52 -52
- package/index.js +7253 -6776
- package/package.json +1 -1
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +0 -1
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-offchain-aave-withdraw-supported.d.ts +0 -1
|
@@ -393,27 +393,17 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
393
393
|
}, {
|
|
394
394
|
readonly anonymous: false;
|
|
395
395
|
readonly inputs: readonly [{
|
|
396
|
-
readonly indexed:
|
|
396
|
+
readonly indexed: false;
|
|
397
397
|
readonly internalType: "address";
|
|
398
|
-
readonly name: "
|
|
398
|
+
readonly name: "limitOrderVault";
|
|
399
399
|
readonly type: "address";
|
|
400
400
|
}, {
|
|
401
401
|
readonly indexed: true;
|
|
402
402
|
readonly internalType: "address";
|
|
403
|
-
readonly name: "
|
|
404
|
-
readonly type: "address";
|
|
405
|
-
}];
|
|
406
|
-
readonly name: "OwnershipTransferred";
|
|
407
|
-
readonly type: "event";
|
|
408
|
-
}, {
|
|
409
|
-
readonly anonymous: false;
|
|
410
|
-
readonly inputs: readonly [{
|
|
411
|
-
readonly indexed: false;
|
|
412
|
-
readonly internalType: "address";
|
|
413
|
-
readonly name: "proxy";
|
|
403
|
+
readonly name: "depositor";
|
|
414
404
|
readonly type: "address";
|
|
415
405
|
}];
|
|
416
|
-
readonly name: "
|
|
406
|
+
readonly name: "LimitOrderVaultCreated";
|
|
417
407
|
readonly type: "event";
|
|
418
408
|
}, {
|
|
419
409
|
readonly anonymous: false;
|
|
@@ -455,21 +445,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
455
445
|
}];
|
|
456
446
|
readonly name: "WithdrawalInitiated";
|
|
457
447
|
readonly type: "event";
|
|
458
|
-
}, {
|
|
459
|
-
readonly anonymous: false;
|
|
460
|
-
readonly inputs: readonly [{
|
|
461
|
-
readonly indexed: false;
|
|
462
|
-
readonly internalType: "address";
|
|
463
|
-
readonly name: "withdrawalVault";
|
|
464
|
-
readonly type: "address";
|
|
465
|
-
}, {
|
|
466
|
-
readonly indexed: true;
|
|
467
|
-
readonly internalType: "address";
|
|
468
|
-
readonly name: "depositor";
|
|
469
|
-
readonly type: "address";
|
|
470
|
-
}];
|
|
471
|
-
readonly name: "WithdrawalVaultCreated";
|
|
472
|
-
readonly type: "event";
|
|
473
448
|
}, {
|
|
474
449
|
readonly anonymous: false;
|
|
475
450
|
readonly inputs: readonly [{
|
|
@@ -505,15 +480,141 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
505
480
|
}];
|
|
506
481
|
readonly name: "ZapDepositCompleted";
|
|
507
482
|
readonly type: "event";
|
|
483
|
+
}, {
|
|
484
|
+
readonly inputs: readonly [{
|
|
485
|
+
readonly components: readonly [{
|
|
486
|
+
readonly components: readonly [{
|
|
487
|
+
readonly internalType: "contract IERC20";
|
|
488
|
+
readonly name: "token";
|
|
489
|
+
readonly type: "address";
|
|
490
|
+
}, {
|
|
491
|
+
readonly internalType: "uint256";
|
|
492
|
+
readonly name: "amount";
|
|
493
|
+
readonly type: "uint256";
|
|
494
|
+
}, {
|
|
495
|
+
readonly components: readonly [{
|
|
496
|
+
readonly internalType: "bytes32";
|
|
497
|
+
readonly name: "routerKey";
|
|
498
|
+
readonly type: "bytes32";
|
|
499
|
+
}, {
|
|
500
|
+
readonly internalType: "bytes";
|
|
501
|
+
readonly name: "swapData";
|
|
502
|
+
readonly type: "bytes";
|
|
503
|
+
}];
|
|
504
|
+
readonly internalType: "struct ISwapper.AggregatorData";
|
|
505
|
+
readonly name: "aggregatorData";
|
|
506
|
+
readonly type: "tuple";
|
|
507
|
+
}];
|
|
508
|
+
readonly internalType: "struct ISwapper.SrcTokenSwapDetails[]";
|
|
509
|
+
readonly name: "srcData";
|
|
510
|
+
readonly type: "tuple[]";
|
|
511
|
+
}, {
|
|
512
|
+
readonly components: readonly [{
|
|
513
|
+
readonly internalType: "contract IERC20";
|
|
514
|
+
readonly name: "destToken";
|
|
515
|
+
readonly type: "address";
|
|
516
|
+
}, {
|
|
517
|
+
readonly internalType: "uint256";
|
|
518
|
+
readonly name: "minDestAmount";
|
|
519
|
+
readonly type: "uint256";
|
|
520
|
+
}];
|
|
521
|
+
readonly internalType: "struct ISwapper.DestData";
|
|
522
|
+
readonly name: "destData";
|
|
523
|
+
readonly type: "tuple";
|
|
524
|
+
}];
|
|
525
|
+
readonly internalType: "struct IWithdrawalVault.MultiInSingleOutData";
|
|
526
|
+
readonly name: "_swapData";
|
|
527
|
+
readonly type: "tuple";
|
|
528
|
+
}, {
|
|
529
|
+
readonly internalType: "uint256";
|
|
530
|
+
readonly name: "_expectedDestTokenAmount";
|
|
531
|
+
readonly type: "uint256";
|
|
532
|
+
}];
|
|
533
|
+
readonly name: "completeLimitOrderWithdrawal";
|
|
534
|
+
readonly outputs: readonly [{
|
|
535
|
+
readonly internalType: "uint256";
|
|
536
|
+
readonly name: "destTokenAmount";
|
|
537
|
+
readonly type: "uint256";
|
|
538
|
+
}];
|
|
539
|
+
readonly stateMutability: "nonpayable";
|
|
540
|
+
readonly type: "function";
|
|
508
541
|
}, {
|
|
509
542
|
readonly inputs: readonly [];
|
|
510
|
-
readonly name: "
|
|
543
|
+
readonly name: "completeLimitOrderWithdrawal";
|
|
544
|
+
readonly outputs: readonly [];
|
|
545
|
+
readonly stateMutability: "nonpayable";
|
|
546
|
+
readonly type: "function";
|
|
547
|
+
}, {
|
|
548
|
+
readonly inputs: readonly [{
|
|
549
|
+
readonly internalType: "address";
|
|
550
|
+
readonly name: "_user";
|
|
551
|
+
readonly type: "address";
|
|
552
|
+
}, {
|
|
553
|
+
readonly components: readonly [{
|
|
554
|
+
readonly components: readonly [{
|
|
555
|
+
readonly internalType: "contract IERC20";
|
|
556
|
+
readonly name: "token";
|
|
557
|
+
readonly type: "address";
|
|
558
|
+
}, {
|
|
559
|
+
readonly internalType: "uint256";
|
|
560
|
+
readonly name: "amount";
|
|
561
|
+
readonly type: "uint256";
|
|
562
|
+
}, {
|
|
563
|
+
readonly components: readonly [{
|
|
564
|
+
readonly internalType: "bytes32";
|
|
565
|
+
readonly name: "routerKey";
|
|
566
|
+
readonly type: "bytes32";
|
|
567
|
+
}, {
|
|
568
|
+
readonly internalType: "bytes";
|
|
569
|
+
readonly name: "swapData";
|
|
570
|
+
readonly type: "bytes";
|
|
571
|
+
}];
|
|
572
|
+
readonly internalType: "struct ISwapper.AggregatorData";
|
|
573
|
+
readonly name: "aggregatorData";
|
|
574
|
+
readonly type: "tuple";
|
|
575
|
+
}];
|
|
576
|
+
readonly internalType: "struct ISwapper.SrcTokenSwapDetails[]";
|
|
577
|
+
readonly name: "srcData";
|
|
578
|
+
readonly type: "tuple[]";
|
|
579
|
+
}, {
|
|
580
|
+
readonly components: readonly [{
|
|
581
|
+
readonly internalType: "contract IERC20";
|
|
582
|
+
readonly name: "destToken";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "uint256";
|
|
586
|
+
readonly name: "minDestAmount";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
}];
|
|
589
|
+
readonly internalType: "struct ISwapper.DestData";
|
|
590
|
+
readonly name: "destData";
|
|
591
|
+
readonly type: "tuple";
|
|
592
|
+
}];
|
|
593
|
+
readonly internalType: "struct IWithdrawalVault.MultiInSingleOutData";
|
|
594
|
+
readonly name: "_swapData";
|
|
595
|
+
readonly type: "tuple";
|
|
596
|
+
}, {
|
|
597
|
+
readonly internalType: "uint256";
|
|
598
|
+
readonly name: "_expectedDestTokenAmount";
|
|
599
|
+
readonly type: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
readonly name: "completeLimitOrderWithdrawalFor";
|
|
511
602
|
readonly outputs: readonly [{
|
|
512
603
|
readonly internalType: "uint256";
|
|
513
|
-
readonly name: "";
|
|
604
|
+
readonly name: "destTokenAmount";
|
|
514
605
|
readonly type: "uint256";
|
|
515
606
|
}];
|
|
516
|
-
readonly stateMutability: "
|
|
607
|
+
readonly stateMutability: "nonpayable";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
readonly name: "_user";
|
|
613
|
+
readonly type: "address";
|
|
614
|
+
}];
|
|
615
|
+
readonly name: "completeLimitOrderWithdrawalFor";
|
|
616
|
+
readonly outputs: readonly [];
|
|
617
|
+
readonly stateMutability: "nonpayable";
|
|
517
618
|
readonly type: "function";
|
|
518
619
|
}, {
|
|
519
620
|
readonly inputs: readonly [{
|
|
@@ -566,7 +667,11 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
566
667
|
readonly type: "uint256";
|
|
567
668
|
}];
|
|
568
669
|
readonly name: "completeWithdrawal";
|
|
569
|
-
readonly outputs: readonly [
|
|
670
|
+
readonly outputs: readonly [{
|
|
671
|
+
readonly internalType: "uint256";
|
|
672
|
+
readonly name: "destTokenAmount";
|
|
673
|
+
readonly type: "uint256";
|
|
674
|
+
}];
|
|
570
675
|
readonly stateMutability: "nonpayable";
|
|
571
676
|
readonly type: "function";
|
|
572
677
|
}, {
|
|
@@ -714,6 +819,33 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
714
819
|
readonly type: "function";
|
|
715
820
|
}, {
|
|
716
821
|
readonly inputs: readonly [{
|
|
822
|
+
readonly internalType: "address";
|
|
823
|
+
readonly name: "_depositor";
|
|
824
|
+
readonly type: "address";
|
|
825
|
+
}];
|
|
826
|
+
readonly name: "getTrackedAssetsFromLimitOrders";
|
|
827
|
+
readonly outputs: readonly [{
|
|
828
|
+
readonly components: readonly [{
|
|
829
|
+
readonly internalType: "address";
|
|
830
|
+
readonly name: "token";
|
|
831
|
+
readonly type: "address";
|
|
832
|
+
}, {
|
|
833
|
+
readonly internalType: "uint256";
|
|
834
|
+
readonly name: "balance";
|
|
835
|
+
readonly type: "uint256";
|
|
836
|
+
}];
|
|
837
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
838
|
+
readonly name: "trackedAssets";
|
|
839
|
+
readonly type: "tuple[]";
|
|
840
|
+
}];
|
|
841
|
+
readonly stateMutability: "view";
|
|
842
|
+
readonly type: "function";
|
|
843
|
+
}, {
|
|
844
|
+
readonly inputs: readonly [{
|
|
845
|
+
readonly internalType: "address";
|
|
846
|
+
readonly name: "_user";
|
|
847
|
+
readonly type: "address";
|
|
848
|
+
}, {
|
|
717
849
|
readonly internalType: "address";
|
|
718
850
|
readonly name: "_dHedgeVault";
|
|
719
851
|
readonly type: "address";
|
|
@@ -739,7 +871,7 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
739
871
|
readonly name: "_complexAssetsData";
|
|
740
872
|
readonly type: "tuple[]";
|
|
741
873
|
}];
|
|
742
|
-
readonly name: "
|
|
874
|
+
readonly name: "initLimitOrderWithdrawalFor";
|
|
743
875
|
readonly outputs: readonly [{
|
|
744
876
|
readonly components: readonly [{
|
|
745
877
|
readonly internalType: "address";
|
|
@@ -770,9 +902,22 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
770
902
|
readonly name: "_amountIn";
|
|
771
903
|
readonly type: "uint256";
|
|
772
904
|
}, {
|
|
773
|
-
readonly
|
|
774
|
-
|
|
775
|
-
|
|
905
|
+
readonly components: readonly [{
|
|
906
|
+
readonly internalType: "address";
|
|
907
|
+
readonly name: "supportedAsset";
|
|
908
|
+
readonly type: "address";
|
|
909
|
+
}, {
|
|
910
|
+
readonly internalType: "bytes";
|
|
911
|
+
readonly name: "withdrawData";
|
|
912
|
+
readonly type: "bytes";
|
|
913
|
+
}, {
|
|
914
|
+
readonly internalType: "uint256";
|
|
915
|
+
readonly name: "slippageTolerance";
|
|
916
|
+
readonly type: "uint256";
|
|
917
|
+
}];
|
|
918
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
919
|
+
readonly name: "_complexAssetsData";
|
|
920
|
+
readonly type: "tuple[]";
|
|
776
921
|
}];
|
|
777
922
|
readonly name: "initWithdrawal";
|
|
778
923
|
readonly outputs: readonly [{
|
|
@@ -798,28 +943,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
798
943
|
}, {
|
|
799
944
|
readonly inputs: readonly [{
|
|
800
945
|
readonly internalType: "address";
|
|
801
|
-
readonly name: "
|
|
802
|
-
readonly type: "address";
|
|
803
|
-
}, {
|
|
804
|
-
readonly internalType: "address";
|
|
805
|
-
readonly name: "_weth";
|
|
806
|
-
readonly type: "address";
|
|
807
|
-
}, {
|
|
808
|
-
readonly internalType: "contract IWETH";
|
|
809
|
-
readonly name: "_wrappedNativeToken";
|
|
810
|
-
readonly type: "address";
|
|
811
|
-
}, {
|
|
812
|
-
readonly internalType: "contract ISwapper";
|
|
813
|
-
readonly name: "_swapper";
|
|
946
|
+
readonly name: "";
|
|
814
947
|
readonly type: "address";
|
|
815
|
-
}, {
|
|
816
|
-
readonly internalType: "uint256";
|
|
817
|
-
readonly name: "_customCooldown";
|
|
818
|
-
readonly type: "uint256";
|
|
819
948
|
}];
|
|
820
|
-
readonly name: "
|
|
821
|
-
readonly outputs: readonly [
|
|
822
|
-
|
|
949
|
+
readonly name: "isAuthorizedWithdrawer";
|
|
950
|
+
readonly outputs: readonly [{
|
|
951
|
+
readonly internalType: "bool";
|
|
952
|
+
readonly name: "";
|
|
953
|
+
readonly type: "bool";
|
|
954
|
+
}];
|
|
955
|
+
readonly stateMutability: "view";
|
|
823
956
|
readonly type: "function";
|
|
824
957
|
}, {
|
|
825
958
|
readonly inputs: readonly [{
|
|
@@ -835,6 +968,20 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
835
968
|
}];
|
|
836
969
|
readonly stateMutability: "view";
|
|
837
970
|
readonly type: "function";
|
|
971
|
+
}, {
|
|
972
|
+
readonly inputs: readonly [{
|
|
973
|
+
readonly internalType: "address";
|
|
974
|
+
readonly name: "";
|
|
975
|
+
readonly type: "address";
|
|
976
|
+
}];
|
|
977
|
+
readonly name: "limitOrderContracts";
|
|
978
|
+
readonly outputs: readonly [{
|
|
979
|
+
readonly internalType: "address";
|
|
980
|
+
readonly name: "";
|
|
981
|
+
readonly type: "address";
|
|
982
|
+
}];
|
|
983
|
+
readonly stateMutability: "view";
|
|
984
|
+
readonly type: "function";
|
|
838
985
|
}, {
|
|
839
986
|
readonly inputs: readonly [{
|
|
840
987
|
readonly internalType: "address";
|
|
@@ -893,6 +1040,25 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
893
1040
|
readonly outputs: readonly [];
|
|
894
1041
|
readonly stateMutability: "nonpayable";
|
|
895
1042
|
readonly type: "function";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly inputs: readonly [{
|
|
1045
|
+
readonly components: readonly [{
|
|
1046
|
+
readonly internalType: "address";
|
|
1047
|
+
readonly name: "toWhitelist";
|
|
1048
|
+
readonly type: "address";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly internalType: "bool";
|
|
1051
|
+
readonly name: "whitelisted";
|
|
1052
|
+
readonly type: "bool";
|
|
1053
|
+
}];
|
|
1054
|
+
readonly internalType: "struct EasySwapperV2.WhitelistSetting[]";
|
|
1055
|
+
readonly name: "_whitelistSettings";
|
|
1056
|
+
readonly type: "tuple[]";
|
|
1057
|
+
}];
|
|
1058
|
+
readonly name: "setAuthorizedWithdrawers";
|
|
1059
|
+
readonly outputs: readonly [];
|
|
1060
|
+
readonly stateMutability: "nonpayable";
|
|
1061
|
+
readonly type: "function";
|
|
896
1062
|
}, {
|
|
897
1063
|
readonly inputs: readonly [{
|
|
898
1064
|
readonly internalType: "uint256";
|
|
@@ -907,14 +1073,14 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
907
1073
|
readonly inputs: readonly [{
|
|
908
1074
|
readonly components: readonly [{
|
|
909
1075
|
readonly internalType: "address";
|
|
910
|
-
readonly name: "
|
|
1076
|
+
readonly name: "toWhitelist";
|
|
911
1077
|
readonly type: "address";
|
|
912
1078
|
}, {
|
|
913
1079
|
readonly internalType: "bool";
|
|
914
1080
|
readonly name: "whitelisted";
|
|
915
1081
|
readonly type: "bool";
|
|
916
1082
|
}];
|
|
917
|
-
readonly internalType: "struct EasySwapperV2.
|
|
1083
|
+
readonly internalType: "struct EasySwapperV2.WhitelistSetting[]";
|
|
918
1084
|
readonly name: "_whitelistSettings";
|
|
919
1085
|
readonly type: "tuple[]";
|
|
920
1086
|
}];
|
|
@@ -972,37 +1138,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
972
1138
|
readonly outputs: readonly [];
|
|
973
1139
|
readonly stateMutability: "nonpayable";
|
|
974
1140
|
readonly type: "function";
|
|
975
|
-
}, {
|
|
976
|
-
readonly inputs: readonly [{
|
|
977
|
-
readonly internalType: "address";
|
|
978
|
-
readonly name: "_dHedgeVault";
|
|
979
|
-
readonly type: "address";
|
|
980
|
-
}, {
|
|
981
|
-
readonly internalType: "uint256";
|
|
982
|
-
readonly name: "_amountIn";
|
|
983
|
-
readonly type: "uint256";
|
|
984
|
-
}, {
|
|
985
|
-
readonly internalType: "uint256";
|
|
986
|
-
readonly name: "_slippageTolerance";
|
|
987
|
-
readonly type: "uint256";
|
|
988
|
-
}];
|
|
989
|
-
readonly name: "unrollAndClaim";
|
|
990
|
-
readonly outputs: readonly [{
|
|
991
|
-
readonly components: readonly [{
|
|
992
|
-
readonly internalType: "address";
|
|
993
|
-
readonly name: "token";
|
|
994
|
-
readonly type: "address";
|
|
995
|
-
}, {
|
|
996
|
-
readonly internalType: "uint256";
|
|
997
|
-
readonly name: "balance";
|
|
998
|
-
readonly type: "uint256";
|
|
999
|
-
}];
|
|
1000
|
-
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
1001
|
-
readonly name: "";
|
|
1002
|
-
readonly type: "tuple[]";
|
|
1003
|
-
}];
|
|
1004
|
-
readonly stateMutability: "nonpayable";
|
|
1005
|
-
readonly type: "function";
|
|
1006
1141
|
}, {
|
|
1007
1142
|
readonly inputs: readonly [{
|
|
1008
1143
|
readonly internalType: "address";
|
|
@@ -1440,27 +1575,17 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1440
1575
|
}, {
|
|
1441
1576
|
readonly anonymous: false;
|
|
1442
1577
|
readonly inputs: readonly [{
|
|
1443
|
-
readonly indexed:
|
|
1578
|
+
readonly indexed: false;
|
|
1444
1579
|
readonly internalType: "address";
|
|
1445
|
-
readonly name: "
|
|
1580
|
+
readonly name: "limitOrderVault";
|
|
1446
1581
|
readonly type: "address";
|
|
1447
1582
|
}, {
|
|
1448
1583
|
readonly indexed: true;
|
|
1449
1584
|
readonly internalType: "address";
|
|
1450
|
-
readonly name: "
|
|
1451
|
-
readonly type: "address";
|
|
1452
|
-
}];
|
|
1453
|
-
readonly name: "OwnershipTransferred";
|
|
1454
|
-
readonly type: "event";
|
|
1455
|
-
}, {
|
|
1456
|
-
readonly anonymous: false;
|
|
1457
|
-
readonly inputs: readonly [{
|
|
1458
|
-
readonly indexed: false;
|
|
1459
|
-
readonly internalType: "address";
|
|
1460
|
-
readonly name: "proxy";
|
|
1585
|
+
readonly name: "depositor";
|
|
1461
1586
|
readonly type: "address";
|
|
1462
1587
|
}];
|
|
1463
|
-
readonly name: "
|
|
1588
|
+
readonly name: "LimitOrderVaultCreated";
|
|
1464
1589
|
readonly type: "event";
|
|
1465
1590
|
}, {
|
|
1466
1591
|
readonly anonymous: false;
|
|
@@ -1502,21 +1627,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1502
1627
|
}];
|
|
1503
1628
|
readonly name: "WithdrawalInitiated";
|
|
1504
1629
|
readonly type: "event";
|
|
1505
|
-
}, {
|
|
1506
|
-
readonly anonymous: false;
|
|
1507
|
-
readonly inputs: readonly [{
|
|
1508
|
-
readonly indexed: false;
|
|
1509
|
-
readonly internalType: "address";
|
|
1510
|
-
readonly name: "withdrawalVault";
|
|
1511
|
-
readonly type: "address";
|
|
1512
|
-
}, {
|
|
1513
|
-
readonly indexed: true;
|
|
1514
|
-
readonly internalType: "address";
|
|
1515
|
-
readonly name: "depositor";
|
|
1516
|
-
readonly type: "address";
|
|
1517
|
-
}];
|
|
1518
|
-
readonly name: "WithdrawalVaultCreated";
|
|
1519
|
-
readonly type: "event";
|
|
1520
1630
|
}, {
|
|
1521
1631
|
readonly anonymous: false;
|
|
1522
1632
|
readonly inputs: readonly [{
|
|
@@ -1552,15 +1662,141 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1552
1662
|
}];
|
|
1553
1663
|
readonly name: "ZapDepositCompleted";
|
|
1554
1664
|
readonly type: "event";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly inputs: readonly [{
|
|
1667
|
+
readonly components: readonly [{
|
|
1668
|
+
readonly components: readonly [{
|
|
1669
|
+
readonly internalType: "contract IERC20";
|
|
1670
|
+
readonly name: "token";
|
|
1671
|
+
readonly type: "address";
|
|
1672
|
+
}, {
|
|
1673
|
+
readonly internalType: "uint256";
|
|
1674
|
+
readonly name: "amount";
|
|
1675
|
+
readonly type: "uint256";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly components: readonly [{
|
|
1678
|
+
readonly internalType: "bytes32";
|
|
1679
|
+
readonly name: "routerKey";
|
|
1680
|
+
readonly type: "bytes32";
|
|
1681
|
+
}, {
|
|
1682
|
+
readonly internalType: "bytes";
|
|
1683
|
+
readonly name: "swapData";
|
|
1684
|
+
readonly type: "bytes";
|
|
1685
|
+
}];
|
|
1686
|
+
readonly internalType: "struct ISwapper.AggregatorData";
|
|
1687
|
+
readonly name: "aggregatorData";
|
|
1688
|
+
readonly type: "tuple";
|
|
1689
|
+
}];
|
|
1690
|
+
readonly internalType: "struct ISwapper.SrcTokenSwapDetails[]";
|
|
1691
|
+
readonly name: "srcData";
|
|
1692
|
+
readonly type: "tuple[]";
|
|
1693
|
+
}, {
|
|
1694
|
+
readonly components: readonly [{
|
|
1695
|
+
readonly internalType: "contract IERC20";
|
|
1696
|
+
readonly name: "destToken";
|
|
1697
|
+
readonly type: "address";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly internalType: "uint256";
|
|
1700
|
+
readonly name: "minDestAmount";
|
|
1701
|
+
readonly type: "uint256";
|
|
1702
|
+
}];
|
|
1703
|
+
readonly internalType: "struct ISwapper.DestData";
|
|
1704
|
+
readonly name: "destData";
|
|
1705
|
+
readonly type: "tuple";
|
|
1706
|
+
}];
|
|
1707
|
+
readonly internalType: "struct IWithdrawalVault.MultiInSingleOutData";
|
|
1708
|
+
readonly name: "_swapData";
|
|
1709
|
+
readonly type: "tuple";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly internalType: "uint256";
|
|
1712
|
+
readonly name: "_expectedDestTokenAmount";
|
|
1713
|
+
readonly type: "uint256";
|
|
1714
|
+
}];
|
|
1715
|
+
readonly name: "completeLimitOrderWithdrawal";
|
|
1716
|
+
readonly outputs: readonly [{
|
|
1717
|
+
readonly internalType: "uint256";
|
|
1718
|
+
readonly name: "destTokenAmount";
|
|
1719
|
+
readonly type: "uint256";
|
|
1720
|
+
}];
|
|
1721
|
+
readonly stateMutability: "nonpayable";
|
|
1722
|
+
readonly type: "function";
|
|
1555
1723
|
}, {
|
|
1556
1724
|
readonly inputs: readonly [];
|
|
1557
|
-
readonly name: "
|
|
1725
|
+
readonly name: "completeLimitOrderWithdrawal";
|
|
1726
|
+
readonly outputs: readonly [];
|
|
1727
|
+
readonly stateMutability: "nonpayable";
|
|
1728
|
+
readonly type: "function";
|
|
1729
|
+
}, {
|
|
1730
|
+
readonly inputs: readonly [{
|
|
1731
|
+
readonly internalType: "address";
|
|
1732
|
+
readonly name: "_user";
|
|
1733
|
+
readonly type: "address";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly components: readonly [{
|
|
1736
|
+
readonly components: readonly [{
|
|
1737
|
+
readonly internalType: "contract IERC20";
|
|
1738
|
+
readonly name: "token";
|
|
1739
|
+
readonly type: "address";
|
|
1740
|
+
}, {
|
|
1741
|
+
readonly internalType: "uint256";
|
|
1742
|
+
readonly name: "amount";
|
|
1743
|
+
readonly type: "uint256";
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly components: readonly [{
|
|
1746
|
+
readonly internalType: "bytes32";
|
|
1747
|
+
readonly name: "routerKey";
|
|
1748
|
+
readonly type: "bytes32";
|
|
1749
|
+
}, {
|
|
1750
|
+
readonly internalType: "bytes";
|
|
1751
|
+
readonly name: "swapData";
|
|
1752
|
+
readonly type: "bytes";
|
|
1753
|
+
}];
|
|
1754
|
+
readonly internalType: "struct ISwapper.AggregatorData";
|
|
1755
|
+
readonly name: "aggregatorData";
|
|
1756
|
+
readonly type: "tuple";
|
|
1757
|
+
}];
|
|
1758
|
+
readonly internalType: "struct ISwapper.SrcTokenSwapDetails[]";
|
|
1759
|
+
readonly name: "srcData";
|
|
1760
|
+
readonly type: "tuple[]";
|
|
1761
|
+
}, {
|
|
1762
|
+
readonly components: readonly [{
|
|
1763
|
+
readonly internalType: "contract IERC20";
|
|
1764
|
+
readonly name: "destToken";
|
|
1765
|
+
readonly type: "address";
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly internalType: "uint256";
|
|
1768
|
+
readonly name: "minDestAmount";
|
|
1769
|
+
readonly type: "uint256";
|
|
1770
|
+
}];
|
|
1771
|
+
readonly internalType: "struct ISwapper.DestData";
|
|
1772
|
+
readonly name: "destData";
|
|
1773
|
+
readonly type: "tuple";
|
|
1774
|
+
}];
|
|
1775
|
+
readonly internalType: "struct IWithdrawalVault.MultiInSingleOutData";
|
|
1776
|
+
readonly name: "_swapData";
|
|
1777
|
+
readonly type: "tuple";
|
|
1778
|
+
}, {
|
|
1779
|
+
readonly internalType: "uint256";
|
|
1780
|
+
readonly name: "_expectedDestTokenAmount";
|
|
1781
|
+
readonly type: "uint256";
|
|
1782
|
+
}];
|
|
1783
|
+
readonly name: "completeLimitOrderWithdrawalFor";
|
|
1558
1784
|
readonly outputs: readonly [{
|
|
1559
1785
|
readonly internalType: "uint256";
|
|
1560
|
-
readonly name: "";
|
|
1786
|
+
readonly name: "destTokenAmount";
|
|
1561
1787
|
readonly type: "uint256";
|
|
1562
1788
|
}];
|
|
1563
|
-
readonly stateMutability: "
|
|
1789
|
+
readonly stateMutability: "nonpayable";
|
|
1790
|
+
readonly type: "function";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly inputs: readonly [{
|
|
1793
|
+
readonly internalType: "address";
|
|
1794
|
+
readonly name: "_user";
|
|
1795
|
+
readonly type: "address";
|
|
1796
|
+
}];
|
|
1797
|
+
readonly name: "completeLimitOrderWithdrawalFor";
|
|
1798
|
+
readonly outputs: readonly [];
|
|
1799
|
+
readonly stateMutability: "nonpayable";
|
|
1564
1800
|
readonly type: "function";
|
|
1565
1801
|
}, {
|
|
1566
1802
|
readonly inputs: readonly [{
|
|
@@ -1613,7 +1849,11 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1613
1849
|
readonly type: "uint256";
|
|
1614
1850
|
}];
|
|
1615
1851
|
readonly name: "completeWithdrawal";
|
|
1616
|
-
readonly outputs: readonly [
|
|
1852
|
+
readonly outputs: readonly [{
|
|
1853
|
+
readonly internalType: "uint256";
|
|
1854
|
+
readonly name: "destTokenAmount";
|
|
1855
|
+
readonly type: "uint256";
|
|
1856
|
+
}];
|
|
1617
1857
|
readonly stateMutability: "nonpayable";
|
|
1618
1858
|
readonly type: "function";
|
|
1619
1859
|
}, {
|
|
@@ -1761,6 +2001,33 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1761
2001
|
readonly type: "function";
|
|
1762
2002
|
}, {
|
|
1763
2003
|
readonly inputs: readonly [{
|
|
2004
|
+
readonly internalType: "address";
|
|
2005
|
+
readonly name: "_depositor";
|
|
2006
|
+
readonly type: "address";
|
|
2007
|
+
}];
|
|
2008
|
+
readonly name: "getTrackedAssetsFromLimitOrders";
|
|
2009
|
+
readonly outputs: readonly [{
|
|
2010
|
+
readonly components: readonly [{
|
|
2011
|
+
readonly internalType: "address";
|
|
2012
|
+
readonly name: "token";
|
|
2013
|
+
readonly type: "address";
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly internalType: "uint256";
|
|
2016
|
+
readonly name: "balance";
|
|
2017
|
+
readonly type: "uint256";
|
|
2018
|
+
}];
|
|
2019
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
2020
|
+
readonly name: "trackedAssets";
|
|
2021
|
+
readonly type: "tuple[]";
|
|
2022
|
+
}];
|
|
2023
|
+
readonly stateMutability: "view";
|
|
2024
|
+
readonly type: "function";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly inputs: readonly [{
|
|
2027
|
+
readonly internalType: "address";
|
|
2028
|
+
readonly name: "_user";
|
|
2029
|
+
readonly type: "address";
|
|
2030
|
+
}, {
|
|
1764
2031
|
readonly internalType: "address";
|
|
1765
2032
|
readonly name: "_dHedgeVault";
|
|
1766
2033
|
readonly type: "address";
|
|
@@ -1786,7 +2053,7 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1786
2053
|
readonly name: "_complexAssetsData";
|
|
1787
2054
|
readonly type: "tuple[]";
|
|
1788
2055
|
}];
|
|
1789
|
-
readonly name: "
|
|
2056
|
+
readonly name: "initLimitOrderWithdrawalFor";
|
|
1790
2057
|
readonly outputs: readonly [{
|
|
1791
2058
|
readonly components: readonly [{
|
|
1792
2059
|
readonly internalType: "address";
|
|
@@ -1817,9 +2084,22 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1817
2084
|
readonly name: "_amountIn";
|
|
1818
2085
|
readonly type: "uint256";
|
|
1819
2086
|
}, {
|
|
1820
|
-
readonly
|
|
1821
|
-
|
|
1822
|
-
|
|
2087
|
+
readonly components: readonly [{
|
|
2088
|
+
readonly internalType: "address";
|
|
2089
|
+
readonly name: "supportedAsset";
|
|
2090
|
+
readonly type: "address";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly internalType: "bytes";
|
|
2093
|
+
readonly name: "withdrawData";
|
|
2094
|
+
readonly type: "bytes";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly internalType: "uint256";
|
|
2097
|
+
readonly name: "slippageTolerance";
|
|
2098
|
+
readonly type: "uint256";
|
|
2099
|
+
}];
|
|
2100
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
2101
|
+
readonly name: "_complexAssetsData";
|
|
2102
|
+
readonly type: "tuple[]";
|
|
1823
2103
|
}];
|
|
1824
2104
|
readonly name: "initWithdrawal";
|
|
1825
2105
|
readonly outputs: readonly [{
|
|
@@ -1845,28 +2125,16 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1845
2125
|
}, {
|
|
1846
2126
|
readonly inputs: readonly [{
|
|
1847
2127
|
readonly internalType: "address";
|
|
1848
|
-
readonly name: "
|
|
1849
|
-
readonly type: "address";
|
|
1850
|
-
}, {
|
|
1851
|
-
readonly internalType: "address";
|
|
1852
|
-
readonly name: "_weth";
|
|
1853
|
-
readonly type: "address";
|
|
1854
|
-
}, {
|
|
1855
|
-
readonly internalType: "contract IWETH";
|
|
1856
|
-
readonly name: "_wrappedNativeToken";
|
|
1857
|
-
readonly type: "address";
|
|
1858
|
-
}, {
|
|
1859
|
-
readonly internalType: "contract ISwapper";
|
|
1860
|
-
readonly name: "_swapper";
|
|
2128
|
+
readonly name: "";
|
|
1861
2129
|
readonly type: "address";
|
|
1862
|
-
}, {
|
|
1863
|
-
readonly internalType: "uint256";
|
|
1864
|
-
readonly name: "_customCooldown";
|
|
1865
|
-
readonly type: "uint256";
|
|
1866
2130
|
}];
|
|
1867
|
-
readonly name: "
|
|
1868
|
-
readonly outputs: readonly [
|
|
1869
|
-
|
|
2131
|
+
readonly name: "isAuthorizedWithdrawer";
|
|
2132
|
+
readonly outputs: readonly [{
|
|
2133
|
+
readonly internalType: "bool";
|
|
2134
|
+
readonly name: "";
|
|
2135
|
+
readonly type: "bool";
|
|
2136
|
+
}];
|
|
2137
|
+
readonly stateMutability: "view";
|
|
1870
2138
|
readonly type: "function";
|
|
1871
2139
|
}, {
|
|
1872
2140
|
readonly inputs: readonly [{
|
|
@@ -1882,6 +2150,20 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1882
2150
|
}];
|
|
1883
2151
|
readonly stateMutability: "view";
|
|
1884
2152
|
readonly type: "function";
|
|
2153
|
+
}, {
|
|
2154
|
+
readonly inputs: readonly [{
|
|
2155
|
+
readonly internalType: "address";
|
|
2156
|
+
readonly name: "";
|
|
2157
|
+
readonly type: "address";
|
|
2158
|
+
}];
|
|
2159
|
+
readonly name: "limitOrderContracts";
|
|
2160
|
+
readonly outputs: readonly [{
|
|
2161
|
+
readonly internalType: "address";
|
|
2162
|
+
readonly name: "";
|
|
2163
|
+
readonly type: "address";
|
|
2164
|
+
}];
|
|
2165
|
+
readonly stateMutability: "view";
|
|
2166
|
+
readonly type: "function";
|
|
1885
2167
|
}, {
|
|
1886
2168
|
readonly inputs: readonly [{
|
|
1887
2169
|
readonly internalType: "address";
|
|
@@ -1940,6 +2222,25 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1940
2222
|
readonly outputs: readonly [];
|
|
1941
2223
|
readonly stateMutability: "nonpayable";
|
|
1942
2224
|
readonly type: "function";
|
|
2225
|
+
}, {
|
|
2226
|
+
readonly inputs: readonly [{
|
|
2227
|
+
readonly components: readonly [{
|
|
2228
|
+
readonly internalType: "address";
|
|
2229
|
+
readonly name: "toWhitelist";
|
|
2230
|
+
readonly type: "address";
|
|
2231
|
+
}, {
|
|
2232
|
+
readonly internalType: "bool";
|
|
2233
|
+
readonly name: "whitelisted";
|
|
2234
|
+
readonly type: "bool";
|
|
2235
|
+
}];
|
|
2236
|
+
readonly internalType: "struct EasySwapperV2.WhitelistSetting[]";
|
|
2237
|
+
readonly name: "_whitelistSettings";
|
|
2238
|
+
readonly type: "tuple[]";
|
|
2239
|
+
}];
|
|
2240
|
+
readonly name: "setAuthorizedWithdrawers";
|
|
2241
|
+
readonly outputs: readonly [];
|
|
2242
|
+
readonly stateMutability: "nonpayable";
|
|
2243
|
+
readonly type: "function";
|
|
1943
2244
|
}, {
|
|
1944
2245
|
readonly inputs: readonly [{
|
|
1945
2246
|
readonly internalType: "uint256";
|
|
@@ -1954,14 +2255,14 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1954
2255
|
readonly inputs: readonly [{
|
|
1955
2256
|
readonly components: readonly [{
|
|
1956
2257
|
readonly internalType: "address";
|
|
1957
|
-
readonly name: "
|
|
2258
|
+
readonly name: "toWhitelist";
|
|
1958
2259
|
readonly type: "address";
|
|
1959
2260
|
}, {
|
|
1960
2261
|
readonly internalType: "bool";
|
|
1961
2262
|
readonly name: "whitelisted";
|
|
1962
2263
|
readonly type: "bool";
|
|
1963
2264
|
}];
|
|
1964
|
-
readonly internalType: "struct EasySwapperV2.
|
|
2265
|
+
readonly internalType: "struct EasySwapperV2.WhitelistSetting[]";
|
|
1965
2266
|
readonly name: "_whitelistSettings";
|
|
1966
2267
|
readonly type: "tuple[]";
|
|
1967
2268
|
}];
|
|
@@ -2019,37 +2320,6 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
2019
2320
|
readonly outputs: readonly [];
|
|
2020
2321
|
readonly stateMutability: "nonpayable";
|
|
2021
2322
|
readonly type: "function";
|
|
2022
|
-
}, {
|
|
2023
|
-
readonly inputs: readonly [{
|
|
2024
|
-
readonly internalType: "address";
|
|
2025
|
-
readonly name: "_dHedgeVault";
|
|
2026
|
-
readonly type: "address";
|
|
2027
|
-
}, {
|
|
2028
|
-
readonly internalType: "uint256";
|
|
2029
|
-
readonly name: "_amountIn";
|
|
2030
|
-
readonly type: "uint256";
|
|
2031
|
-
}, {
|
|
2032
|
-
readonly internalType: "uint256";
|
|
2033
|
-
readonly name: "_slippageTolerance";
|
|
2034
|
-
readonly type: "uint256";
|
|
2035
|
-
}];
|
|
2036
|
-
readonly name: "unrollAndClaim";
|
|
2037
|
-
readonly outputs: readonly [{
|
|
2038
|
-
readonly components: readonly [{
|
|
2039
|
-
readonly internalType: "address";
|
|
2040
|
-
readonly name: "token";
|
|
2041
|
-
readonly type: "address";
|
|
2042
|
-
}, {
|
|
2043
|
-
readonly internalType: "uint256";
|
|
2044
|
-
readonly name: "balance";
|
|
2045
|
-
readonly type: "uint256";
|
|
2046
|
-
}];
|
|
2047
|
-
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
2048
|
-
readonly name: "";
|
|
2049
|
-
readonly type: "tuple[]";
|
|
2050
|
-
}];
|
|
2051
|
-
readonly stateMutability: "nonpayable";
|
|
2052
|
-
readonly type: "function";
|
|
2053
2323
|
}, {
|
|
2054
2324
|
readonly inputs: readonly [{
|
|
2055
2325
|
readonly internalType: "address";
|