@illalabs/interfaces 0.9.0 → 0.9.1-canary-beta-46fb328b
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/dist/schemas/chatContext.d.ts +4 -4
- package/dist/schemas/chatRequestBody.d.ts +14 -14
- package/dist/schemas/messages.d.ts +2196 -52
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +65 -0
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/planning.d.ts +4 -4
- package/dist/schemas/telemetryEvents.d.ts +5352 -72
- package/dist/schemas/telemetryEvents.d.ts.map +1 -1
- package/dist/types/actions/outputs.d.ts +63 -2
- package/dist/types/actions/outputs.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -577,12 +577,6 @@ export declare const SimulationResultSchema: z.ZodObject<{
|
|
|
577
577
|
gasCostUsd: string;
|
|
578
578
|
};
|
|
579
579
|
simulatedAt: number;
|
|
580
|
-
errorMessage?: string | undefined;
|
|
581
|
-
errorExplanation?: string | undefined;
|
|
582
|
-
simulationId?: string | undefined;
|
|
583
|
-
actionType?: "transfer" | "swap" | "bridge" | "supply" | "withdraw" | "contract" | undefined;
|
|
584
|
-
sourceChainId?: number | undefined;
|
|
585
|
-
destChainId?: number | undefined;
|
|
586
580
|
actionMetadata?: {
|
|
587
581
|
inputToken?: string | undefined;
|
|
588
582
|
inputAmount?: string | undefined;
|
|
@@ -595,6 +589,12 @@ export declare const SimulationResultSchema: z.ZodObject<{
|
|
|
595
589
|
protocol?: string | undefined;
|
|
596
590
|
recipient?: string | undefined;
|
|
597
591
|
} | undefined;
|
|
592
|
+
errorMessage?: string | undefined;
|
|
593
|
+
errorExplanation?: string | undefined;
|
|
594
|
+
simulationId?: string | undefined;
|
|
595
|
+
actionType?: "swap" | "bridge" | "transfer" | "supply" | "withdraw" | "contract" | undefined;
|
|
596
|
+
sourceChainId?: number | undefined;
|
|
597
|
+
destChainId?: number | undefined;
|
|
598
598
|
contractInteractions?: {
|
|
599
599
|
address: string;
|
|
600
600
|
chainId: number;
|
|
@@ -622,12 +622,6 @@ export declare const SimulationResultSchema: z.ZodObject<{
|
|
|
622
622
|
gasCostUsd: string;
|
|
623
623
|
};
|
|
624
624
|
simulatedAt: number;
|
|
625
|
-
errorMessage?: string | undefined;
|
|
626
|
-
errorExplanation?: string | undefined;
|
|
627
|
-
simulationId?: string | undefined;
|
|
628
|
-
actionType?: "transfer" | "swap" | "bridge" | "supply" | "withdraw" | "contract" | undefined;
|
|
629
|
-
sourceChainId?: number | undefined;
|
|
630
|
-
destChainId?: number | undefined;
|
|
631
625
|
actionMetadata?: {
|
|
632
626
|
inputToken?: string | undefined;
|
|
633
627
|
inputAmount?: string | undefined;
|
|
@@ -640,6 +634,12 @@ export declare const SimulationResultSchema: z.ZodObject<{
|
|
|
640
634
|
protocol?: string | undefined;
|
|
641
635
|
recipient?: string | undefined;
|
|
642
636
|
} | undefined;
|
|
637
|
+
errorMessage?: string | undefined;
|
|
638
|
+
errorExplanation?: string | undefined;
|
|
639
|
+
simulationId?: string | undefined;
|
|
640
|
+
actionType?: "swap" | "bridge" | "transfer" | "supply" | "withdraw" | "contract" | undefined;
|
|
641
|
+
sourceChainId?: number | undefined;
|
|
642
|
+
destChainId?: number | undefined;
|
|
643
643
|
contractInteractions?: {
|
|
644
644
|
address: string;
|
|
645
645
|
chainId: number;
|
|
@@ -684,6 +684,232 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
684
684
|
usdValue?: string | undefined;
|
|
685
685
|
} | undefined;
|
|
686
686
|
}>, "many">;
|
|
687
|
+
actionMetadata: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
688
|
+
action: z.ZodLiteral<"swap">;
|
|
689
|
+
fromToken: z.ZodObject<{
|
|
690
|
+
symbol: z.ZodString;
|
|
691
|
+
address: z.ZodString;
|
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
|
+
symbol: string;
|
|
694
|
+
address: string;
|
|
695
|
+
}, {
|
|
696
|
+
symbol: string;
|
|
697
|
+
address: string;
|
|
698
|
+
}>;
|
|
699
|
+
toToken: z.ZodObject<{
|
|
700
|
+
symbol: z.ZodString;
|
|
701
|
+
address: z.ZodString;
|
|
702
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
|
+
symbol: string;
|
|
704
|
+
address: string;
|
|
705
|
+
}, {
|
|
706
|
+
symbol: string;
|
|
707
|
+
address: string;
|
|
708
|
+
}>;
|
|
709
|
+
fromAmount: z.ZodString;
|
|
710
|
+
toAmount: z.ZodString;
|
|
711
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
712
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
713
|
+
chainId: z.ZodNumber;
|
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
chainId: number;
|
|
716
|
+
action: "swap";
|
|
717
|
+
fromToken: {
|
|
718
|
+
symbol: string;
|
|
719
|
+
address: string;
|
|
720
|
+
};
|
|
721
|
+
toToken: {
|
|
722
|
+
symbol: string;
|
|
723
|
+
address: string;
|
|
724
|
+
};
|
|
725
|
+
fromAmount: string;
|
|
726
|
+
toAmount: string;
|
|
727
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
728
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
729
|
+
}, {
|
|
730
|
+
chainId: number;
|
|
731
|
+
action: "swap";
|
|
732
|
+
fromToken: {
|
|
733
|
+
symbol: string;
|
|
734
|
+
address: string;
|
|
735
|
+
};
|
|
736
|
+
toToken: {
|
|
737
|
+
symbol: string;
|
|
738
|
+
address: string;
|
|
739
|
+
};
|
|
740
|
+
fromAmount: string;
|
|
741
|
+
toAmount: string;
|
|
742
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
743
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
744
|
+
}>, z.ZodObject<{
|
|
745
|
+
action: z.ZodLiteral<"bridge">;
|
|
746
|
+
fromToken: z.ZodObject<{
|
|
747
|
+
symbol: z.ZodString;
|
|
748
|
+
address: z.ZodString;
|
|
749
|
+
}, "strip", z.ZodTypeAny, {
|
|
750
|
+
symbol: string;
|
|
751
|
+
address: string;
|
|
752
|
+
}, {
|
|
753
|
+
symbol: string;
|
|
754
|
+
address: string;
|
|
755
|
+
}>;
|
|
756
|
+
toToken: z.ZodObject<{
|
|
757
|
+
symbol: z.ZodString;
|
|
758
|
+
address: z.ZodString;
|
|
759
|
+
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
symbol: string;
|
|
761
|
+
address: string;
|
|
762
|
+
}, {
|
|
763
|
+
symbol: string;
|
|
764
|
+
address: string;
|
|
765
|
+
}>;
|
|
766
|
+
fromAmount: z.ZodString;
|
|
767
|
+
toAmount: z.ZodString;
|
|
768
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
769
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
770
|
+
fromChainId: z.ZodNumber;
|
|
771
|
+
toChainId: z.ZodNumber;
|
|
772
|
+
}, "strip", z.ZodTypeAny, {
|
|
773
|
+
action: "bridge";
|
|
774
|
+
fromToken: {
|
|
775
|
+
symbol: string;
|
|
776
|
+
address: string;
|
|
777
|
+
};
|
|
778
|
+
toToken: {
|
|
779
|
+
symbol: string;
|
|
780
|
+
address: string;
|
|
781
|
+
};
|
|
782
|
+
fromAmount: string;
|
|
783
|
+
toAmount: string;
|
|
784
|
+
fromChainId: number;
|
|
785
|
+
toChainId: number;
|
|
786
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
787
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
788
|
+
}, {
|
|
789
|
+
action: "bridge";
|
|
790
|
+
fromToken: {
|
|
791
|
+
symbol: string;
|
|
792
|
+
address: string;
|
|
793
|
+
};
|
|
794
|
+
toToken: {
|
|
795
|
+
symbol: string;
|
|
796
|
+
address: string;
|
|
797
|
+
};
|
|
798
|
+
fromAmount: string;
|
|
799
|
+
toAmount: string;
|
|
800
|
+
fromChainId: number;
|
|
801
|
+
toChainId: number;
|
|
802
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
803
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
804
|
+
}>, z.ZodObject<{
|
|
805
|
+
action: z.ZodLiteral<"tokenTransfer">;
|
|
806
|
+
token: z.ZodObject<{
|
|
807
|
+
symbol: z.ZodString;
|
|
808
|
+
address: z.ZodString;
|
|
809
|
+
}, "strip", z.ZodTypeAny, {
|
|
810
|
+
symbol: string;
|
|
811
|
+
address: string;
|
|
812
|
+
}, {
|
|
813
|
+
symbol: string;
|
|
814
|
+
address: string;
|
|
815
|
+
}>;
|
|
816
|
+
amount: z.ZodString;
|
|
817
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
818
|
+
chainId: z.ZodNumber;
|
|
819
|
+
fromAddress: z.ZodString;
|
|
820
|
+
toAddress: z.ZodString;
|
|
821
|
+
}, "strip", z.ZodTypeAny, {
|
|
822
|
+
chainId: number;
|
|
823
|
+
action: "tokenTransfer";
|
|
824
|
+
token: {
|
|
825
|
+
symbol: string;
|
|
826
|
+
address: string;
|
|
827
|
+
};
|
|
828
|
+
amount: string;
|
|
829
|
+
fromAddress: string;
|
|
830
|
+
toAddress: string;
|
|
831
|
+
amountUSDValue?: string | undefined;
|
|
832
|
+
}, {
|
|
833
|
+
chainId: number;
|
|
834
|
+
action: "tokenTransfer";
|
|
835
|
+
token: {
|
|
836
|
+
symbol: string;
|
|
837
|
+
address: string;
|
|
838
|
+
};
|
|
839
|
+
amount: string;
|
|
840
|
+
fromAddress: string;
|
|
841
|
+
toAddress: string;
|
|
842
|
+
amountUSDValue?: string | undefined;
|
|
843
|
+
}>, z.ZodObject<{
|
|
844
|
+
action: z.ZodLiteral<"defiSupply">;
|
|
845
|
+
token: z.ZodObject<{
|
|
846
|
+
symbol: z.ZodString;
|
|
847
|
+
address: z.ZodString;
|
|
848
|
+
}, "strip", z.ZodTypeAny, {
|
|
849
|
+
symbol: string;
|
|
850
|
+
address: string;
|
|
851
|
+
}, {
|
|
852
|
+
symbol: string;
|
|
853
|
+
address: string;
|
|
854
|
+
}>;
|
|
855
|
+
amount: z.ZodString;
|
|
856
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
857
|
+
chainId: z.ZodNumber;
|
|
858
|
+
apy: z.ZodString;
|
|
859
|
+
}, "strip", z.ZodTypeAny, {
|
|
860
|
+
chainId: number;
|
|
861
|
+
action: "defiSupply";
|
|
862
|
+
token: {
|
|
863
|
+
symbol: string;
|
|
864
|
+
address: string;
|
|
865
|
+
};
|
|
866
|
+
amount: string;
|
|
867
|
+
apy: string;
|
|
868
|
+
amountUSDValue?: string | undefined;
|
|
869
|
+
}, {
|
|
870
|
+
chainId: number;
|
|
871
|
+
action: "defiSupply";
|
|
872
|
+
token: {
|
|
873
|
+
symbol: string;
|
|
874
|
+
address: string;
|
|
875
|
+
};
|
|
876
|
+
amount: string;
|
|
877
|
+
apy: string;
|
|
878
|
+
amountUSDValue?: string | undefined;
|
|
879
|
+
}>, z.ZodObject<{
|
|
880
|
+
action: z.ZodLiteral<"defiWithdraw">;
|
|
881
|
+
token: z.ZodObject<{
|
|
882
|
+
symbol: z.ZodString;
|
|
883
|
+
address: z.ZodString;
|
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
|
+
symbol: string;
|
|
886
|
+
address: string;
|
|
887
|
+
}, {
|
|
888
|
+
symbol: string;
|
|
889
|
+
address: string;
|
|
890
|
+
}>;
|
|
891
|
+
amount: z.ZodString;
|
|
892
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
893
|
+
chainId: z.ZodNumber;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
chainId: number;
|
|
896
|
+
action: "defiWithdraw";
|
|
897
|
+
token: {
|
|
898
|
+
symbol: string;
|
|
899
|
+
address: string;
|
|
900
|
+
};
|
|
901
|
+
amount: string;
|
|
902
|
+
amountUSDValue?: string | undefined;
|
|
903
|
+
}, {
|
|
904
|
+
chainId: number;
|
|
905
|
+
action: "defiWithdraw";
|
|
906
|
+
token: {
|
|
907
|
+
symbol: string;
|
|
908
|
+
address: string;
|
|
909
|
+
};
|
|
910
|
+
amount: string;
|
|
911
|
+
amountUSDValue?: string | undefined;
|
|
912
|
+
}>]>>;
|
|
687
913
|
}, "strip", z.ZodTypeAny, {
|
|
688
914
|
type: "BatchTransactions";
|
|
689
915
|
value: {
|
|
@@ -693,6 +919,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
693
919
|
usdValue?: string | undefined;
|
|
694
920
|
} | undefined;
|
|
695
921
|
}[];
|
|
922
|
+
actionMetadata?: {
|
|
923
|
+
chainId: number;
|
|
924
|
+
action: "swap";
|
|
925
|
+
fromToken: {
|
|
926
|
+
symbol: string;
|
|
927
|
+
address: string;
|
|
928
|
+
};
|
|
929
|
+
toToken: {
|
|
930
|
+
symbol: string;
|
|
931
|
+
address: string;
|
|
932
|
+
};
|
|
933
|
+
fromAmount: string;
|
|
934
|
+
toAmount: string;
|
|
935
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
936
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
937
|
+
} | {
|
|
938
|
+
action: "bridge";
|
|
939
|
+
fromToken: {
|
|
940
|
+
symbol: string;
|
|
941
|
+
address: string;
|
|
942
|
+
};
|
|
943
|
+
toToken: {
|
|
944
|
+
symbol: string;
|
|
945
|
+
address: string;
|
|
946
|
+
};
|
|
947
|
+
fromAmount: string;
|
|
948
|
+
toAmount: string;
|
|
949
|
+
fromChainId: number;
|
|
950
|
+
toChainId: number;
|
|
951
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
952
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
953
|
+
} | {
|
|
954
|
+
chainId: number;
|
|
955
|
+
action: "tokenTransfer";
|
|
956
|
+
token: {
|
|
957
|
+
symbol: string;
|
|
958
|
+
address: string;
|
|
959
|
+
};
|
|
960
|
+
amount: string;
|
|
961
|
+
fromAddress: string;
|
|
962
|
+
toAddress: string;
|
|
963
|
+
amountUSDValue?: string | undefined;
|
|
964
|
+
} | {
|
|
965
|
+
chainId: number;
|
|
966
|
+
action: "defiSupply";
|
|
967
|
+
token: {
|
|
968
|
+
symbol: string;
|
|
969
|
+
address: string;
|
|
970
|
+
};
|
|
971
|
+
amount: string;
|
|
972
|
+
apy: string;
|
|
973
|
+
amountUSDValue?: string | undefined;
|
|
974
|
+
} | {
|
|
975
|
+
chainId: number;
|
|
976
|
+
action: "defiWithdraw";
|
|
977
|
+
token: {
|
|
978
|
+
symbol: string;
|
|
979
|
+
address: string;
|
|
980
|
+
};
|
|
981
|
+
amount: string;
|
|
982
|
+
amountUSDValue?: string | undefined;
|
|
983
|
+
} | undefined;
|
|
696
984
|
}, {
|
|
697
985
|
type: "BatchTransactions";
|
|
698
986
|
value: {
|
|
@@ -702,6 +990,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
702
990
|
usdValue?: string | undefined;
|
|
703
991
|
} | undefined;
|
|
704
992
|
}[];
|
|
993
|
+
actionMetadata?: {
|
|
994
|
+
chainId: number;
|
|
995
|
+
action: "swap";
|
|
996
|
+
fromToken: {
|
|
997
|
+
symbol: string;
|
|
998
|
+
address: string;
|
|
999
|
+
};
|
|
1000
|
+
toToken: {
|
|
1001
|
+
symbol: string;
|
|
1002
|
+
address: string;
|
|
1003
|
+
};
|
|
1004
|
+
fromAmount: string;
|
|
1005
|
+
toAmount: string;
|
|
1006
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1007
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1008
|
+
} | {
|
|
1009
|
+
action: "bridge";
|
|
1010
|
+
fromToken: {
|
|
1011
|
+
symbol: string;
|
|
1012
|
+
address: string;
|
|
1013
|
+
};
|
|
1014
|
+
toToken: {
|
|
1015
|
+
symbol: string;
|
|
1016
|
+
address: string;
|
|
1017
|
+
};
|
|
1018
|
+
fromAmount: string;
|
|
1019
|
+
toAmount: string;
|
|
1020
|
+
fromChainId: number;
|
|
1021
|
+
toChainId: number;
|
|
1022
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1023
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1024
|
+
} | {
|
|
1025
|
+
chainId: number;
|
|
1026
|
+
action: "tokenTransfer";
|
|
1027
|
+
token: {
|
|
1028
|
+
symbol: string;
|
|
1029
|
+
address: string;
|
|
1030
|
+
};
|
|
1031
|
+
amount: string;
|
|
1032
|
+
fromAddress: string;
|
|
1033
|
+
toAddress: string;
|
|
1034
|
+
amountUSDValue?: string | undefined;
|
|
1035
|
+
} | {
|
|
1036
|
+
chainId: number;
|
|
1037
|
+
action: "defiSupply";
|
|
1038
|
+
token: {
|
|
1039
|
+
symbol: string;
|
|
1040
|
+
address: string;
|
|
1041
|
+
};
|
|
1042
|
+
amount: string;
|
|
1043
|
+
apy: string;
|
|
1044
|
+
amountUSDValue?: string | undefined;
|
|
1045
|
+
} | {
|
|
1046
|
+
chainId: number;
|
|
1047
|
+
action: "defiWithdraw";
|
|
1048
|
+
token: {
|
|
1049
|
+
symbol: string;
|
|
1050
|
+
address: string;
|
|
1051
|
+
};
|
|
1052
|
+
amount: string;
|
|
1053
|
+
amountUSDValue?: string | undefined;
|
|
1054
|
+
} | undefined;
|
|
705
1055
|
}>, z.ZodObject<{
|
|
706
1056
|
type: z.ZodLiteral<"SingleTransaction">;
|
|
707
1057
|
value: z.ZodObject<{
|
|
@@ -729,6 +1079,232 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
729
1079
|
usdValue?: string | undefined;
|
|
730
1080
|
} | undefined;
|
|
731
1081
|
}>;
|
|
1082
|
+
actionMetadata: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
1083
|
+
action: z.ZodLiteral<"swap">;
|
|
1084
|
+
fromToken: z.ZodObject<{
|
|
1085
|
+
symbol: z.ZodString;
|
|
1086
|
+
address: z.ZodString;
|
|
1087
|
+
}, "strip", z.ZodTypeAny, {
|
|
1088
|
+
symbol: string;
|
|
1089
|
+
address: string;
|
|
1090
|
+
}, {
|
|
1091
|
+
symbol: string;
|
|
1092
|
+
address: string;
|
|
1093
|
+
}>;
|
|
1094
|
+
toToken: z.ZodObject<{
|
|
1095
|
+
symbol: z.ZodString;
|
|
1096
|
+
address: z.ZodString;
|
|
1097
|
+
}, "strip", z.ZodTypeAny, {
|
|
1098
|
+
symbol: string;
|
|
1099
|
+
address: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
symbol: string;
|
|
1102
|
+
address: string;
|
|
1103
|
+
}>;
|
|
1104
|
+
fromAmount: z.ZodString;
|
|
1105
|
+
toAmount: z.ZodString;
|
|
1106
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
chainId: z.ZodNumber;
|
|
1109
|
+
}, "strip", z.ZodTypeAny, {
|
|
1110
|
+
chainId: number;
|
|
1111
|
+
action: "swap";
|
|
1112
|
+
fromToken: {
|
|
1113
|
+
symbol: string;
|
|
1114
|
+
address: string;
|
|
1115
|
+
};
|
|
1116
|
+
toToken: {
|
|
1117
|
+
symbol: string;
|
|
1118
|
+
address: string;
|
|
1119
|
+
};
|
|
1120
|
+
fromAmount: string;
|
|
1121
|
+
toAmount: string;
|
|
1122
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1123
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1124
|
+
}, {
|
|
1125
|
+
chainId: number;
|
|
1126
|
+
action: "swap";
|
|
1127
|
+
fromToken: {
|
|
1128
|
+
symbol: string;
|
|
1129
|
+
address: string;
|
|
1130
|
+
};
|
|
1131
|
+
toToken: {
|
|
1132
|
+
symbol: string;
|
|
1133
|
+
address: string;
|
|
1134
|
+
};
|
|
1135
|
+
fromAmount: string;
|
|
1136
|
+
toAmount: string;
|
|
1137
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1138
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1139
|
+
}>, z.ZodObject<{
|
|
1140
|
+
action: z.ZodLiteral<"bridge">;
|
|
1141
|
+
fromToken: z.ZodObject<{
|
|
1142
|
+
symbol: z.ZodString;
|
|
1143
|
+
address: z.ZodString;
|
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
|
1145
|
+
symbol: string;
|
|
1146
|
+
address: string;
|
|
1147
|
+
}, {
|
|
1148
|
+
symbol: string;
|
|
1149
|
+
address: string;
|
|
1150
|
+
}>;
|
|
1151
|
+
toToken: z.ZodObject<{
|
|
1152
|
+
symbol: z.ZodString;
|
|
1153
|
+
address: z.ZodString;
|
|
1154
|
+
}, "strip", z.ZodTypeAny, {
|
|
1155
|
+
symbol: string;
|
|
1156
|
+
address: string;
|
|
1157
|
+
}, {
|
|
1158
|
+
symbol: string;
|
|
1159
|
+
address: string;
|
|
1160
|
+
}>;
|
|
1161
|
+
fromAmount: z.ZodString;
|
|
1162
|
+
toAmount: z.ZodString;
|
|
1163
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1165
|
+
fromChainId: z.ZodNumber;
|
|
1166
|
+
toChainId: z.ZodNumber;
|
|
1167
|
+
}, "strip", z.ZodTypeAny, {
|
|
1168
|
+
action: "bridge";
|
|
1169
|
+
fromToken: {
|
|
1170
|
+
symbol: string;
|
|
1171
|
+
address: string;
|
|
1172
|
+
};
|
|
1173
|
+
toToken: {
|
|
1174
|
+
symbol: string;
|
|
1175
|
+
address: string;
|
|
1176
|
+
};
|
|
1177
|
+
fromAmount: string;
|
|
1178
|
+
toAmount: string;
|
|
1179
|
+
fromChainId: number;
|
|
1180
|
+
toChainId: number;
|
|
1181
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1182
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
action: "bridge";
|
|
1185
|
+
fromToken: {
|
|
1186
|
+
symbol: string;
|
|
1187
|
+
address: string;
|
|
1188
|
+
};
|
|
1189
|
+
toToken: {
|
|
1190
|
+
symbol: string;
|
|
1191
|
+
address: string;
|
|
1192
|
+
};
|
|
1193
|
+
fromAmount: string;
|
|
1194
|
+
toAmount: string;
|
|
1195
|
+
fromChainId: number;
|
|
1196
|
+
toChainId: number;
|
|
1197
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1198
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1199
|
+
}>, z.ZodObject<{
|
|
1200
|
+
action: z.ZodLiteral<"tokenTransfer">;
|
|
1201
|
+
token: z.ZodObject<{
|
|
1202
|
+
symbol: z.ZodString;
|
|
1203
|
+
address: z.ZodString;
|
|
1204
|
+
}, "strip", z.ZodTypeAny, {
|
|
1205
|
+
symbol: string;
|
|
1206
|
+
address: string;
|
|
1207
|
+
}, {
|
|
1208
|
+
symbol: string;
|
|
1209
|
+
address: string;
|
|
1210
|
+
}>;
|
|
1211
|
+
amount: z.ZodString;
|
|
1212
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
chainId: z.ZodNumber;
|
|
1214
|
+
fromAddress: z.ZodString;
|
|
1215
|
+
toAddress: z.ZodString;
|
|
1216
|
+
}, "strip", z.ZodTypeAny, {
|
|
1217
|
+
chainId: number;
|
|
1218
|
+
action: "tokenTransfer";
|
|
1219
|
+
token: {
|
|
1220
|
+
symbol: string;
|
|
1221
|
+
address: string;
|
|
1222
|
+
};
|
|
1223
|
+
amount: string;
|
|
1224
|
+
fromAddress: string;
|
|
1225
|
+
toAddress: string;
|
|
1226
|
+
amountUSDValue?: string | undefined;
|
|
1227
|
+
}, {
|
|
1228
|
+
chainId: number;
|
|
1229
|
+
action: "tokenTransfer";
|
|
1230
|
+
token: {
|
|
1231
|
+
symbol: string;
|
|
1232
|
+
address: string;
|
|
1233
|
+
};
|
|
1234
|
+
amount: string;
|
|
1235
|
+
fromAddress: string;
|
|
1236
|
+
toAddress: string;
|
|
1237
|
+
amountUSDValue?: string | undefined;
|
|
1238
|
+
}>, z.ZodObject<{
|
|
1239
|
+
action: z.ZodLiteral<"defiSupply">;
|
|
1240
|
+
token: z.ZodObject<{
|
|
1241
|
+
symbol: z.ZodString;
|
|
1242
|
+
address: z.ZodString;
|
|
1243
|
+
}, "strip", z.ZodTypeAny, {
|
|
1244
|
+
symbol: string;
|
|
1245
|
+
address: string;
|
|
1246
|
+
}, {
|
|
1247
|
+
symbol: string;
|
|
1248
|
+
address: string;
|
|
1249
|
+
}>;
|
|
1250
|
+
amount: z.ZodString;
|
|
1251
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
chainId: z.ZodNumber;
|
|
1253
|
+
apy: z.ZodString;
|
|
1254
|
+
}, "strip", z.ZodTypeAny, {
|
|
1255
|
+
chainId: number;
|
|
1256
|
+
action: "defiSupply";
|
|
1257
|
+
token: {
|
|
1258
|
+
symbol: string;
|
|
1259
|
+
address: string;
|
|
1260
|
+
};
|
|
1261
|
+
amount: string;
|
|
1262
|
+
apy: string;
|
|
1263
|
+
amountUSDValue?: string | undefined;
|
|
1264
|
+
}, {
|
|
1265
|
+
chainId: number;
|
|
1266
|
+
action: "defiSupply";
|
|
1267
|
+
token: {
|
|
1268
|
+
symbol: string;
|
|
1269
|
+
address: string;
|
|
1270
|
+
};
|
|
1271
|
+
amount: string;
|
|
1272
|
+
apy: string;
|
|
1273
|
+
amountUSDValue?: string | undefined;
|
|
1274
|
+
}>, z.ZodObject<{
|
|
1275
|
+
action: z.ZodLiteral<"defiWithdraw">;
|
|
1276
|
+
token: z.ZodObject<{
|
|
1277
|
+
symbol: z.ZodString;
|
|
1278
|
+
address: z.ZodString;
|
|
1279
|
+
}, "strip", z.ZodTypeAny, {
|
|
1280
|
+
symbol: string;
|
|
1281
|
+
address: string;
|
|
1282
|
+
}, {
|
|
1283
|
+
symbol: string;
|
|
1284
|
+
address: string;
|
|
1285
|
+
}>;
|
|
1286
|
+
amount: z.ZodString;
|
|
1287
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
chainId: z.ZodNumber;
|
|
1289
|
+
}, "strip", z.ZodTypeAny, {
|
|
1290
|
+
chainId: number;
|
|
1291
|
+
action: "defiWithdraw";
|
|
1292
|
+
token: {
|
|
1293
|
+
symbol: string;
|
|
1294
|
+
address: string;
|
|
1295
|
+
};
|
|
1296
|
+
amount: string;
|
|
1297
|
+
amountUSDValue?: string | undefined;
|
|
1298
|
+
}, {
|
|
1299
|
+
chainId: number;
|
|
1300
|
+
action: "defiWithdraw";
|
|
1301
|
+
token: {
|
|
1302
|
+
symbol: string;
|
|
1303
|
+
address: string;
|
|
1304
|
+
};
|
|
1305
|
+
amount: string;
|
|
1306
|
+
amountUSDValue?: string | undefined;
|
|
1307
|
+
}>]>>;
|
|
732
1308
|
}, "strip", z.ZodTypeAny, {
|
|
733
1309
|
type: "SingleTransaction";
|
|
734
1310
|
value: {
|
|
@@ -738,6 +1314,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
738
1314
|
usdValue?: string | undefined;
|
|
739
1315
|
} | undefined;
|
|
740
1316
|
};
|
|
1317
|
+
actionMetadata?: {
|
|
1318
|
+
chainId: number;
|
|
1319
|
+
action: "swap";
|
|
1320
|
+
fromToken: {
|
|
1321
|
+
symbol: string;
|
|
1322
|
+
address: string;
|
|
1323
|
+
};
|
|
1324
|
+
toToken: {
|
|
1325
|
+
symbol: string;
|
|
1326
|
+
address: string;
|
|
1327
|
+
};
|
|
1328
|
+
fromAmount: string;
|
|
1329
|
+
toAmount: string;
|
|
1330
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1331
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1332
|
+
} | {
|
|
1333
|
+
action: "bridge";
|
|
1334
|
+
fromToken: {
|
|
1335
|
+
symbol: string;
|
|
1336
|
+
address: string;
|
|
1337
|
+
};
|
|
1338
|
+
toToken: {
|
|
1339
|
+
symbol: string;
|
|
1340
|
+
address: string;
|
|
1341
|
+
};
|
|
1342
|
+
fromAmount: string;
|
|
1343
|
+
toAmount: string;
|
|
1344
|
+
fromChainId: number;
|
|
1345
|
+
toChainId: number;
|
|
1346
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1347
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1348
|
+
} | {
|
|
1349
|
+
chainId: number;
|
|
1350
|
+
action: "tokenTransfer";
|
|
1351
|
+
token: {
|
|
1352
|
+
symbol: string;
|
|
1353
|
+
address: string;
|
|
1354
|
+
};
|
|
1355
|
+
amount: string;
|
|
1356
|
+
fromAddress: string;
|
|
1357
|
+
toAddress: string;
|
|
1358
|
+
amountUSDValue?: string | undefined;
|
|
1359
|
+
} | {
|
|
1360
|
+
chainId: number;
|
|
1361
|
+
action: "defiSupply";
|
|
1362
|
+
token: {
|
|
1363
|
+
symbol: string;
|
|
1364
|
+
address: string;
|
|
1365
|
+
};
|
|
1366
|
+
amount: string;
|
|
1367
|
+
apy: string;
|
|
1368
|
+
amountUSDValue?: string | undefined;
|
|
1369
|
+
} | {
|
|
1370
|
+
chainId: number;
|
|
1371
|
+
action: "defiWithdraw";
|
|
1372
|
+
token: {
|
|
1373
|
+
symbol: string;
|
|
1374
|
+
address: string;
|
|
1375
|
+
};
|
|
1376
|
+
amount: string;
|
|
1377
|
+
amountUSDValue?: string | undefined;
|
|
1378
|
+
} | undefined;
|
|
741
1379
|
}, {
|
|
742
1380
|
type: "SingleTransaction";
|
|
743
1381
|
value: {
|
|
@@ -747,6 +1385,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
747
1385
|
usdValue?: string | undefined;
|
|
748
1386
|
} | undefined;
|
|
749
1387
|
};
|
|
1388
|
+
actionMetadata?: {
|
|
1389
|
+
chainId: number;
|
|
1390
|
+
action: "swap";
|
|
1391
|
+
fromToken: {
|
|
1392
|
+
symbol: string;
|
|
1393
|
+
address: string;
|
|
1394
|
+
};
|
|
1395
|
+
toToken: {
|
|
1396
|
+
symbol: string;
|
|
1397
|
+
address: string;
|
|
1398
|
+
};
|
|
1399
|
+
fromAmount: string;
|
|
1400
|
+
toAmount: string;
|
|
1401
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1402
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1403
|
+
} | {
|
|
1404
|
+
action: "bridge";
|
|
1405
|
+
fromToken: {
|
|
1406
|
+
symbol: string;
|
|
1407
|
+
address: string;
|
|
1408
|
+
};
|
|
1409
|
+
toToken: {
|
|
1410
|
+
symbol: string;
|
|
1411
|
+
address: string;
|
|
1412
|
+
};
|
|
1413
|
+
fromAmount: string;
|
|
1414
|
+
toAmount: string;
|
|
1415
|
+
fromChainId: number;
|
|
1416
|
+
toChainId: number;
|
|
1417
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1418
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1419
|
+
} | {
|
|
1420
|
+
chainId: number;
|
|
1421
|
+
action: "tokenTransfer";
|
|
1422
|
+
token: {
|
|
1423
|
+
symbol: string;
|
|
1424
|
+
address: string;
|
|
1425
|
+
};
|
|
1426
|
+
amount: string;
|
|
1427
|
+
fromAddress: string;
|
|
1428
|
+
toAddress: string;
|
|
1429
|
+
amountUSDValue?: string | undefined;
|
|
1430
|
+
} | {
|
|
1431
|
+
chainId: number;
|
|
1432
|
+
action: "defiSupply";
|
|
1433
|
+
token: {
|
|
1434
|
+
symbol: string;
|
|
1435
|
+
address: string;
|
|
1436
|
+
};
|
|
1437
|
+
amount: string;
|
|
1438
|
+
apy: string;
|
|
1439
|
+
amountUSDValue?: string | undefined;
|
|
1440
|
+
} | {
|
|
1441
|
+
chainId: number;
|
|
1442
|
+
action: "defiWithdraw";
|
|
1443
|
+
token: {
|
|
1444
|
+
symbol: string;
|
|
1445
|
+
address: string;
|
|
1446
|
+
};
|
|
1447
|
+
amount: string;
|
|
1448
|
+
amountUSDValue?: string | undefined;
|
|
1449
|
+
} | undefined;
|
|
750
1450
|
}>, z.ZodObject<{
|
|
751
1451
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
752
1452
|
value: z.ZodObject<{
|
|
@@ -983,6 +1683,232 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
983
1683
|
usdValue?: string | undefined;
|
|
984
1684
|
} | undefined;
|
|
985
1685
|
}>;
|
|
1686
|
+
actionMetadata: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
1687
|
+
action: z.ZodLiteral<"swap">;
|
|
1688
|
+
fromToken: z.ZodObject<{
|
|
1689
|
+
symbol: z.ZodString;
|
|
1690
|
+
address: z.ZodString;
|
|
1691
|
+
}, "strip", z.ZodTypeAny, {
|
|
1692
|
+
symbol: string;
|
|
1693
|
+
address: string;
|
|
1694
|
+
}, {
|
|
1695
|
+
symbol: string;
|
|
1696
|
+
address: string;
|
|
1697
|
+
}>;
|
|
1698
|
+
toToken: z.ZodObject<{
|
|
1699
|
+
symbol: z.ZodString;
|
|
1700
|
+
address: z.ZodString;
|
|
1701
|
+
}, "strip", z.ZodTypeAny, {
|
|
1702
|
+
symbol: string;
|
|
1703
|
+
address: string;
|
|
1704
|
+
}, {
|
|
1705
|
+
symbol: string;
|
|
1706
|
+
address: string;
|
|
1707
|
+
}>;
|
|
1708
|
+
fromAmount: z.ZodString;
|
|
1709
|
+
toAmount: z.ZodString;
|
|
1710
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
chainId: z.ZodNumber;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1714
|
+
chainId: number;
|
|
1715
|
+
action: "swap";
|
|
1716
|
+
fromToken: {
|
|
1717
|
+
symbol: string;
|
|
1718
|
+
address: string;
|
|
1719
|
+
};
|
|
1720
|
+
toToken: {
|
|
1721
|
+
symbol: string;
|
|
1722
|
+
address: string;
|
|
1723
|
+
};
|
|
1724
|
+
fromAmount: string;
|
|
1725
|
+
toAmount: string;
|
|
1726
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1727
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1728
|
+
}, {
|
|
1729
|
+
chainId: number;
|
|
1730
|
+
action: "swap";
|
|
1731
|
+
fromToken: {
|
|
1732
|
+
symbol: string;
|
|
1733
|
+
address: string;
|
|
1734
|
+
};
|
|
1735
|
+
toToken: {
|
|
1736
|
+
symbol: string;
|
|
1737
|
+
address: string;
|
|
1738
|
+
};
|
|
1739
|
+
fromAmount: string;
|
|
1740
|
+
toAmount: string;
|
|
1741
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1742
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1743
|
+
}>, z.ZodObject<{
|
|
1744
|
+
action: z.ZodLiteral<"bridge">;
|
|
1745
|
+
fromToken: z.ZodObject<{
|
|
1746
|
+
symbol: z.ZodString;
|
|
1747
|
+
address: z.ZodString;
|
|
1748
|
+
}, "strip", z.ZodTypeAny, {
|
|
1749
|
+
symbol: string;
|
|
1750
|
+
address: string;
|
|
1751
|
+
}, {
|
|
1752
|
+
symbol: string;
|
|
1753
|
+
address: string;
|
|
1754
|
+
}>;
|
|
1755
|
+
toToken: z.ZodObject<{
|
|
1756
|
+
symbol: z.ZodString;
|
|
1757
|
+
address: z.ZodString;
|
|
1758
|
+
}, "strip", z.ZodTypeAny, {
|
|
1759
|
+
symbol: string;
|
|
1760
|
+
address: string;
|
|
1761
|
+
}, {
|
|
1762
|
+
symbol: string;
|
|
1763
|
+
address: string;
|
|
1764
|
+
}>;
|
|
1765
|
+
fromAmount: z.ZodString;
|
|
1766
|
+
toAmount: z.ZodString;
|
|
1767
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1769
|
+
fromChainId: z.ZodNumber;
|
|
1770
|
+
toChainId: z.ZodNumber;
|
|
1771
|
+
}, "strip", z.ZodTypeAny, {
|
|
1772
|
+
action: "bridge";
|
|
1773
|
+
fromToken: {
|
|
1774
|
+
symbol: string;
|
|
1775
|
+
address: string;
|
|
1776
|
+
};
|
|
1777
|
+
toToken: {
|
|
1778
|
+
symbol: string;
|
|
1779
|
+
address: string;
|
|
1780
|
+
};
|
|
1781
|
+
fromAmount: string;
|
|
1782
|
+
toAmount: string;
|
|
1783
|
+
fromChainId: number;
|
|
1784
|
+
toChainId: number;
|
|
1785
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1786
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1787
|
+
}, {
|
|
1788
|
+
action: "bridge";
|
|
1789
|
+
fromToken: {
|
|
1790
|
+
symbol: string;
|
|
1791
|
+
address: string;
|
|
1792
|
+
};
|
|
1793
|
+
toToken: {
|
|
1794
|
+
symbol: string;
|
|
1795
|
+
address: string;
|
|
1796
|
+
};
|
|
1797
|
+
fromAmount: string;
|
|
1798
|
+
toAmount: string;
|
|
1799
|
+
fromChainId: number;
|
|
1800
|
+
toChainId: number;
|
|
1801
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1802
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1803
|
+
}>, z.ZodObject<{
|
|
1804
|
+
action: z.ZodLiteral<"tokenTransfer">;
|
|
1805
|
+
token: z.ZodObject<{
|
|
1806
|
+
symbol: z.ZodString;
|
|
1807
|
+
address: z.ZodString;
|
|
1808
|
+
}, "strip", z.ZodTypeAny, {
|
|
1809
|
+
symbol: string;
|
|
1810
|
+
address: string;
|
|
1811
|
+
}, {
|
|
1812
|
+
symbol: string;
|
|
1813
|
+
address: string;
|
|
1814
|
+
}>;
|
|
1815
|
+
amount: z.ZodString;
|
|
1816
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
chainId: z.ZodNumber;
|
|
1818
|
+
fromAddress: z.ZodString;
|
|
1819
|
+
toAddress: z.ZodString;
|
|
1820
|
+
}, "strip", z.ZodTypeAny, {
|
|
1821
|
+
chainId: number;
|
|
1822
|
+
action: "tokenTransfer";
|
|
1823
|
+
token: {
|
|
1824
|
+
symbol: string;
|
|
1825
|
+
address: string;
|
|
1826
|
+
};
|
|
1827
|
+
amount: string;
|
|
1828
|
+
fromAddress: string;
|
|
1829
|
+
toAddress: string;
|
|
1830
|
+
amountUSDValue?: string | undefined;
|
|
1831
|
+
}, {
|
|
1832
|
+
chainId: number;
|
|
1833
|
+
action: "tokenTransfer";
|
|
1834
|
+
token: {
|
|
1835
|
+
symbol: string;
|
|
1836
|
+
address: string;
|
|
1837
|
+
};
|
|
1838
|
+
amount: string;
|
|
1839
|
+
fromAddress: string;
|
|
1840
|
+
toAddress: string;
|
|
1841
|
+
amountUSDValue?: string | undefined;
|
|
1842
|
+
}>, z.ZodObject<{
|
|
1843
|
+
action: z.ZodLiteral<"defiSupply">;
|
|
1844
|
+
token: z.ZodObject<{
|
|
1845
|
+
symbol: z.ZodString;
|
|
1846
|
+
address: z.ZodString;
|
|
1847
|
+
}, "strip", z.ZodTypeAny, {
|
|
1848
|
+
symbol: string;
|
|
1849
|
+
address: string;
|
|
1850
|
+
}, {
|
|
1851
|
+
symbol: string;
|
|
1852
|
+
address: string;
|
|
1853
|
+
}>;
|
|
1854
|
+
amount: z.ZodString;
|
|
1855
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1856
|
+
chainId: z.ZodNumber;
|
|
1857
|
+
apy: z.ZodString;
|
|
1858
|
+
}, "strip", z.ZodTypeAny, {
|
|
1859
|
+
chainId: number;
|
|
1860
|
+
action: "defiSupply";
|
|
1861
|
+
token: {
|
|
1862
|
+
symbol: string;
|
|
1863
|
+
address: string;
|
|
1864
|
+
};
|
|
1865
|
+
amount: string;
|
|
1866
|
+
apy: string;
|
|
1867
|
+
amountUSDValue?: string | undefined;
|
|
1868
|
+
}, {
|
|
1869
|
+
chainId: number;
|
|
1870
|
+
action: "defiSupply";
|
|
1871
|
+
token: {
|
|
1872
|
+
symbol: string;
|
|
1873
|
+
address: string;
|
|
1874
|
+
};
|
|
1875
|
+
amount: string;
|
|
1876
|
+
apy: string;
|
|
1877
|
+
amountUSDValue?: string | undefined;
|
|
1878
|
+
}>, z.ZodObject<{
|
|
1879
|
+
action: z.ZodLiteral<"defiWithdraw">;
|
|
1880
|
+
token: z.ZodObject<{
|
|
1881
|
+
symbol: z.ZodString;
|
|
1882
|
+
address: z.ZodString;
|
|
1883
|
+
}, "strip", z.ZodTypeAny, {
|
|
1884
|
+
symbol: string;
|
|
1885
|
+
address: string;
|
|
1886
|
+
}, {
|
|
1887
|
+
symbol: string;
|
|
1888
|
+
address: string;
|
|
1889
|
+
}>;
|
|
1890
|
+
amount: z.ZodString;
|
|
1891
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
chainId: z.ZodNumber;
|
|
1893
|
+
}, "strip", z.ZodTypeAny, {
|
|
1894
|
+
chainId: number;
|
|
1895
|
+
action: "defiWithdraw";
|
|
1896
|
+
token: {
|
|
1897
|
+
symbol: string;
|
|
1898
|
+
address: string;
|
|
1899
|
+
};
|
|
1900
|
+
amount: string;
|
|
1901
|
+
amountUSDValue?: string | undefined;
|
|
1902
|
+
}, {
|
|
1903
|
+
chainId: number;
|
|
1904
|
+
action: "defiWithdraw";
|
|
1905
|
+
token: {
|
|
1906
|
+
symbol: string;
|
|
1907
|
+
address: string;
|
|
1908
|
+
};
|
|
1909
|
+
amount: string;
|
|
1910
|
+
amountUSDValue?: string | undefined;
|
|
1911
|
+
}>]>>;
|
|
986
1912
|
}, "strip", z.ZodTypeAny, {
|
|
987
1913
|
type: "SingleTransaction";
|
|
988
1914
|
value: {
|
|
@@ -992,6 +1918,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
992
1918
|
usdValue?: string | undefined;
|
|
993
1919
|
} | undefined;
|
|
994
1920
|
};
|
|
1921
|
+
actionMetadata?: {
|
|
1922
|
+
chainId: number;
|
|
1923
|
+
action: "swap";
|
|
1924
|
+
fromToken: {
|
|
1925
|
+
symbol: string;
|
|
1926
|
+
address: string;
|
|
1927
|
+
};
|
|
1928
|
+
toToken: {
|
|
1929
|
+
symbol: string;
|
|
1930
|
+
address: string;
|
|
1931
|
+
};
|
|
1932
|
+
fromAmount: string;
|
|
1933
|
+
toAmount: string;
|
|
1934
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1935
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1936
|
+
} | {
|
|
1937
|
+
action: "bridge";
|
|
1938
|
+
fromToken: {
|
|
1939
|
+
symbol: string;
|
|
1940
|
+
address: string;
|
|
1941
|
+
};
|
|
1942
|
+
toToken: {
|
|
1943
|
+
symbol: string;
|
|
1944
|
+
address: string;
|
|
1945
|
+
};
|
|
1946
|
+
fromAmount: string;
|
|
1947
|
+
toAmount: string;
|
|
1948
|
+
fromChainId: number;
|
|
1949
|
+
toChainId: number;
|
|
1950
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
1951
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
1952
|
+
} | {
|
|
1953
|
+
chainId: number;
|
|
1954
|
+
action: "tokenTransfer";
|
|
1955
|
+
token: {
|
|
1956
|
+
symbol: string;
|
|
1957
|
+
address: string;
|
|
1958
|
+
};
|
|
1959
|
+
amount: string;
|
|
1960
|
+
fromAddress: string;
|
|
1961
|
+
toAddress: string;
|
|
1962
|
+
amountUSDValue?: string | undefined;
|
|
1963
|
+
} | {
|
|
1964
|
+
chainId: number;
|
|
1965
|
+
action: "defiSupply";
|
|
1966
|
+
token: {
|
|
1967
|
+
symbol: string;
|
|
1968
|
+
address: string;
|
|
1969
|
+
};
|
|
1970
|
+
amount: string;
|
|
1971
|
+
apy: string;
|
|
1972
|
+
amountUSDValue?: string | undefined;
|
|
1973
|
+
} | {
|
|
1974
|
+
chainId: number;
|
|
1975
|
+
action: "defiWithdraw";
|
|
1976
|
+
token: {
|
|
1977
|
+
symbol: string;
|
|
1978
|
+
address: string;
|
|
1979
|
+
};
|
|
1980
|
+
amount: string;
|
|
1981
|
+
amountUSDValue?: string | undefined;
|
|
1982
|
+
} | undefined;
|
|
995
1983
|
}, {
|
|
996
1984
|
type: "SingleTransaction";
|
|
997
1985
|
value: {
|
|
@@ -1001,6 +1989,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1001
1989
|
usdValue?: string | undefined;
|
|
1002
1990
|
} | undefined;
|
|
1003
1991
|
};
|
|
1992
|
+
actionMetadata?: {
|
|
1993
|
+
chainId: number;
|
|
1994
|
+
action: "swap";
|
|
1995
|
+
fromToken: {
|
|
1996
|
+
symbol: string;
|
|
1997
|
+
address: string;
|
|
1998
|
+
};
|
|
1999
|
+
toToken: {
|
|
2000
|
+
symbol: string;
|
|
2001
|
+
address: string;
|
|
2002
|
+
};
|
|
2003
|
+
fromAmount: string;
|
|
2004
|
+
toAmount: string;
|
|
2005
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2006
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2007
|
+
} | {
|
|
2008
|
+
action: "bridge";
|
|
2009
|
+
fromToken: {
|
|
2010
|
+
symbol: string;
|
|
2011
|
+
address: string;
|
|
2012
|
+
};
|
|
2013
|
+
toToken: {
|
|
2014
|
+
symbol: string;
|
|
2015
|
+
address: string;
|
|
2016
|
+
};
|
|
2017
|
+
fromAmount: string;
|
|
2018
|
+
toAmount: string;
|
|
2019
|
+
fromChainId: number;
|
|
2020
|
+
toChainId: number;
|
|
2021
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2022
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2023
|
+
} | {
|
|
2024
|
+
chainId: number;
|
|
2025
|
+
action: "tokenTransfer";
|
|
2026
|
+
token: {
|
|
2027
|
+
symbol: string;
|
|
2028
|
+
address: string;
|
|
2029
|
+
};
|
|
2030
|
+
amount: string;
|
|
2031
|
+
fromAddress: string;
|
|
2032
|
+
toAddress: string;
|
|
2033
|
+
amountUSDValue?: string | undefined;
|
|
2034
|
+
} | {
|
|
2035
|
+
chainId: number;
|
|
2036
|
+
action: "defiSupply";
|
|
2037
|
+
token: {
|
|
2038
|
+
symbol: string;
|
|
2039
|
+
address: string;
|
|
2040
|
+
};
|
|
2041
|
+
amount: string;
|
|
2042
|
+
apy: string;
|
|
2043
|
+
amountUSDValue?: string | undefined;
|
|
2044
|
+
} | {
|
|
2045
|
+
chainId: number;
|
|
2046
|
+
action: "defiWithdraw";
|
|
2047
|
+
token: {
|
|
2048
|
+
symbol: string;
|
|
2049
|
+
address: string;
|
|
2050
|
+
};
|
|
2051
|
+
amount: string;
|
|
2052
|
+
amountUSDValue?: string | undefined;
|
|
2053
|
+
} | undefined;
|
|
1004
2054
|
}>, z.ZodObject<{
|
|
1005
2055
|
type: z.ZodLiteral<"BatchTransactions">;
|
|
1006
2056
|
value: z.ZodArray<z.ZodObject<{
|
|
@@ -1009,25 +2059,251 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1009
2059
|
explorerUrl: z.ZodOptional<z.ZodString>;
|
|
1010
2060
|
usdValue: z.ZodOptional<z.ZodString>;
|
|
1011
2061
|
}, "strip", z.ZodTypeAny, {
|
|
1012
|
-
explorerUrl?: string | undefined;
|
|
1013
|
-
usdValue?: string | undefined;
|
|
2062
|
+
explorerUrl?: string | undefined;
|
|
2063
|
+
usdValue?: string | undefined;
|
|
2064
|
+
}, {
|
|
2065
|
+
explorerUrl?: string | undefined;
|
|
2066
|
+
usdValue?: string | undefined;
|
|
2067
|
+
}>>;
|
|
2068
|
+
}, "strip", z.ZodTypeAny, {
|
|
2069
|
+
transaction: PrepareTransactionRequestReturnType;
|
|
2070
|
+
metadata?: {
|
|
2071
|
+
explorerUrl?: string | undefined;
|
|
2072
|
+
usdValue?: string | undefined;
|
|
2073
|
+
} | undefined;
|
|
2074
|
+
}, {
|
|
2075
|
+
transaction: PrepareTransactionRequestReturnType;
|
|
2076
|
+
metadata?: {
|
|
2077
|
+
explorerUrl?: string | undefined;
|
|
2078
|
+
usdValue?: string | undefined;
|
|
2079
|
+
} | undefined;
|
|
2080
|
+
}>, "many">;
|
|
2081
|
+
actionMetadata: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
2082
|
+
action: z.ZodLiteral<"swap">;
|
|
2083
|
+
fromToken: z.ZodObject<{
|
|
2084
|
+
symbol: z.ZodString;
|
|
2085
|
+
address: z.ZodString;
|
|
2086
|
+
}, "strip", z.ZodTypeAny, {
|
|
2087
|
+
symbol: string;
|
|
2088
|
+
address: string;
|
|
2089
|
+
}, {
|
|
2090
|
+
symbol: string;
|
|
2091
|
+
address: string;
|
|
2092
|
+
}>;
|
|
2093
|
+
toToken: z.ZodObject<{
|
|
2094
|
+
symbol: z.ZodString;
|
|
2095
|
+
address: z.ZodString;
|
|
2096
|
+
}, "strip", z.ZodTypeAny, {
|
|
2097
|
+
symbol: string;
|
|
2098
|
+
address: string;
|
|
2099
|
+
}, {
|
|
2100
|
+
symbol: string;
|
|
2101
|
+
address: string;
|
|
2102
|
+
}>;
|
|
2103
|
+
fromAmount: z.ZodString;
|
|
2104
|
+
toAmount: z.ZodString;
|
|
2105
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2106
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2107
|
+
chainId: z.ZodNumber;
|
|
2108
|
+
}, "strip", z.ZodTypeAny, {
|
|
2109
|
+
chainId: number;
|
|
2110
|
+
action: "swap";
|
|
2111
|
+
fromToken: {
|
|
2112
|
+
symbol: string;
|
|
2113
|
+
address: string;
|
|
2114
|
+
};
|
|
2115
|
+
toToken: {
|
|
2116
|
+
symbol: string;
|
|
2117
|
+
address: string;
|
|
2118
|
+
};
|
|
2119
|
+
fromAmount: string;
|
|
2120
|
+
toAmount: string;
|
|
2121
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2122
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2123
|
+
}, {
|
|
2124
|
+
chainId: number;
|
|
2125
|
+
action: "swap";
|
|
2126
|
+
fromToken: {
|
|
2127
|
+
symbol: string;
|
|
2128
|
+
address: string;
|
|
2129
|
+
};
|
|
2130
|
+
toToken: {
|
|
2131
|
+
symbol: string;
|
|
2132
|
+
address: string;
|
|
2133
|
+
};
|
|
2134
|
+
fromAmount: string;
|
|
2135
|
+
toAmount: string;
|
|
2136
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2137
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2138
|
+
}>, z.ZodObject<{
|
|
2139
|
+
action: z.ZodLiteral<"bridge">;
|
|
2140
|
+
fromToken: z.ZodObject<{
|
|
2141
|
+
symbol: z.ZodString;
|
|
2142
|
+
address: z.ZodString;
|
|
2143
|
+
}, "strip", z.ZodTypeAny, {
|
|
2144
|
+
symbol: string;
|
|
2145
|
+
address: string;
|
|
2146
|
+
}, {
|
|
2147
|
+
symbol: string;
|
|
2148
|
+
address: string;
|
|
2149
|
+
}>;
|
|
2150
|
+
toToken: z.ZodObject<{
|
|
2151
|
+
symbol: z.ZodString;
|
|
2152
|
+
address: z.ZodString;
|
|
2153
|
+
}, "strip", z.ZodTypeAny, {
|
|
2154
|
+
symbol: string;
|
|
2155
|
+
address: string;
|
|
2156
|
+
}, {
|
|
2157
|
+
symbol: string;
|
|
2158
|
+
address: string;
|
|
2159
|
+
}>;
|
|
2160
|
+
fromAmount: z.ZodString;
|
|
2161
|
+
toAmount: z.ZodString;
|
|
2162
|
+
fromTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2163
|
+
toTokenAmountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2164
|
+
fromChainId: z.ZodNumber;
|
|
2165
|
+
toChainId: z.ZodNumber;
|
|
2166
|
+
}, "strip", z.ZodTypeAny, {
|
|
2167
|
+
action: "bridge";
|
|
2168
|
+
fromToken: {
|
|
2169
|
+
symbol: string;
|
|
2170
|
+
address: string;
|
|
2171
|
+
};
|
|
2172
|
+
toToken: {
|
|
2173
|
+
symbol: string;
|
|
2174
|
+
address: string;
|
|
2175
|
+
};
|
|
2176
|
+
fromAmount: string;
|
|
2177
|
+
toAmount: string;
|
|
2178
|
+
fromChainId: number;
|
|
2179
|
+
toChainId: number;
|
|
2180
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2181
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2182
|
+
}, {
|
|
2183
|
+
action: "bridge";
|
|
2184
|
+
fromToken: {
|
|
2185
|
+
symbol: string;
|
|
2186
|
+
address: string;
|
|
2187
|
+
};
|
|
2188
|
+
toToken: {
|
|
2189
|
+
symbol: string;
|
|
2190
|
+
address: string;
|
|
2191
|
+
};
|
|
2192
|
+
fromAmount: string;
|
|
2193
|
+
toAmount: string;
|
|
2194
|
+
fromChainId: number;
|
|
2195
|
+
toChainId: number;
|
|
2196
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2197
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2198
|
+
}>, z.ZodObject<{
|
|
2199
|
+
action: z.ZodLiteral<"tokenTransfer">;
|
|
2200
|
+
token: z.ZodObject<{
|
|
2201
|
+
symbol: z.ZodString;
|
|
2202
|
+
address: z.ZodString;
|
|
2203
|
+
}, "strip", z.ZodTypeAny, {
|
|
2204
|
+
symbol: string;
|
|
2205
|
+
address: string;
|
|
2206
|
+
}, {
|
|
2207
|
+
symbol: string;
|
|
2208
|
+
address: string;
|
|
2209
|
+
}>;
|
|
2210
|
+
amount: z.ZodString;
|
|
2211
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2212
|
+
chainId: z.ZodNumber;
|
|
2213
|
+
fromAddress: z.ZodString;
|
|
2214
|
+
toAddress: z.ZodString;
|
|
2215
|
+
}, "strip", z.ZodTypeAny, {
|
|
2216
|
+
chainId: number;
|
|
2217
|
+
action: "tokenTransfer";
|
|
2218
|
+
token: {
|
|
2219
|
+
symbol: string;
|
|
2220
|
+
address: string;
|
|
2221
|
+
};
|
|
2222
|
+
amount: string;
|
|
2223
|
+
fromAddress: string;
|
|
2224
|
+
toAddress: string;
|
|
2225
|
+
amountUSDValue?: string | undefined;
|
|
2226
|
+
}, {
|
|
2227
|
+
chainId: number;
|
|
2228
|
+
action: "tokenTransfer";
|
|
2229
|
+
token: {
|
|
2230
|
+
symbol: string;
|
|
2231
|
+
address: string;
|
|
2232
|
+
};
|
|
2233
|
+
amount: string;
|
|
2234
|
+
fromAddress: string;
|
|
2235
|
+
toAddress: string;
|
|
2236
|
+
amountUSDValue?: string | undefined;
|
|
2237
|
+
}>, z.ZodObject<{
|
|
2238
|
+
action: z.ZodLiteral<"defiSupply">;
|
|
2239
|
+
token: z.ZodObject<{
|
|
2240
|
+
symbol: z.ZodString;
|
|
2241
|
+
address: z.ZodString;
|
|
2242
|
+
}, "strip", z.ZodTypeAny, {
|
|
2243
|
+
symbol: string;
|
|
2244
|
+
address: string;
|
|
1014
2245
|
}, {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
}
|
|
2246
|
+
symbol: string;
|
|
2247
|
+
address: string;
|
|
2248
|
+
}>;
|
|
2249
|
+
amount: z.ZodString;
|
|
2250
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2251
|
+
chainId: z.ZodNumber;
|
|
2252
|
+
apy: z.ZodString;
|
|
1018
2253
|
}, "strip", z.ZodTypeAny, {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
2254
|
+
chainId: number;
|
|
2255
|
+
action: "defiSupply";
|
|
2256
|
+
token: {
|
|
2257
|
+
symbol: string;
|
|
2258
|
+
address: string;
|
|
2259
|
+
};
|
|
2260
|
+
amount: string;
|
|
2261
|
+
apy: string;
|
|
2262
|
+
amountUSDValue?: string | undefined;
|
|
1024
2263
|
}, {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
2264
|
+
chainId: number;
|
|
2265
|
+
action: "defiSupply";
|
|
2266
|
+
token: {
|
|
2267
|
+
symbol: string;
|
|
2268
|
+
address: string;
|
|
2269
|
+
};
|
|
2270
|
+
amount: string;
|
|
2271
|
+
apy: string;
|
|
2272
|
+
amountUSDValue?: string | undefined;
|
|
2273
|
+
}>, z.ZodObject<{
|
|
2274
|
+
action: z.ZodLiteral<"defiWithdraw">;
|
|
2275
|
+
token: z.ZodObject<{
|
|
2276
|
+
symbol: z.ZodString;
|
|
2277
|
+
address: z.ZodString;
|
|
2278
|
+
}, "strip", z.ZodTypeAny, {
|
|
2279
|
+
symbol: string;
|
|
2280
|
+
address: string;
|
|
2281
|
+
}, {
|
|
2282
|
+
symbol: string;
|
|
2283
|
+
address: string;
|
|
2284
|
+
}>;
|
|
2285
|
+
amount: z.ZodString;
|
|
2286
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
2287
|
+
chainId: z.ZodNumber;
|
|
2288
|
+
}, "strip", z.ZodTypeAny, {
|
|
2289
|
+
chainId: number;
|
|
2290
|
+
action: "defiWithdraw";
|
|
2291
|
+
token: {
|
|
2292
|
+
symbol: string;
|
|
2293
|
+
address: string;
|
|
2294
|
+
};
|
|
2295
|
+
amount: string;
|
|
2296
|
+
amountUSDValue?: string | undefined;
|
|
2297
|
+
}, {
|
|
2298
|
+
chainId: number;
|
|
2299
|
+
action: "defiWithdraw";
|
|
2300
|
+
token: {
|
|
2301
|
+
symbol: string;
|
|
2302
|
+
address: string;
|
|
2303
|
+
};
|
|
2304
|
+
amount: string;
|
|
2305
|
+
amountUSDValue?: string | undefined;
|
|
2306
|
+
}>]>>;
|
|
1031
2307
|
}, "strip", z.ZodTypeAny, {
|
|
1032
2308
|
type: "BatchTransactions";
|
|
1033
2309
|
value: {
|
|
@@ -1037,6 +2313,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1037
2313
|
usdValue?: string | undefined;
|
|
1038
2314
|
} | undefined;
|
|
1039
2315
|
}[];
|
|
2316
|
+
actionMetadata?: {
|
|
2317
|
+
chainId: number;
|
|
2318
|
+
action: "swap";
|
|
2319
|
+
fromToken: {
|
|
2320
|
+
symbol: string;
|
|
2321
|
+
address: string;
|
|
2322
|
+
};
|
|
2323
|
+
toToken: {
|
|
2324
|
+
symbol: string;
|
|
2325
|
+
address: string;
|
|
2326
|
+
};
|
|
2327
|
+
fromAmount: string;
|
|
2328
|
+
toAmount: string;
|
|
2329
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2330
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2331
|
+
} | {
|
|
2332
|
+
action: "bridge";
|
|
2333
|
+
fromToken: {
|
|
2334
|
+
symbol: string;
|
|
2335
|
+
address: string;
|
|
2336
|
+
};
|
|
2337
|
+
toToken: {
|
|
2338
|
+
symbol: string;
|
|
2339
|
+
address: string;
|
|
2340
|
+
};
|
|
2341
|
+
fromAmount: string;
|
|
2342
|
+
toAmount: string;
|
|
2343
|
+
fromChainId: number;
|
|
2344
|
+
toChainId: number;
|
|
2345
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2346
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2347
|
+
} | {
|
|
2348
|
+
chainId: number;
|
|
2349
|
+
action: "tokenTransfer";
|
|
2350
|
+
token: {
|
|
2351
|
+
symbol: string;
|
|
2352
|
+
address: string;
|
|
2353
|
+
};
|
|
2354
|
+
amount: string;
|
|
2355
|
+
fromAddress: string;
|
|
2356
|
+
toAddress: string;
|
|
2357
|
+
amountUSDValue?: string | undefined;
|
|
2358
|
+
} | {
|
|
2359
|
+
chainId: number;
|
|
2360
|
+
action: "defiSupply";
|
|
2361
|
+
token: {
|
|
2362
|
+
symbol: string;
|
|
2363
|
+
address: string;
|
|
2364
|
+
};
|
|
2365
|
+
amount: string;
|
|
2366
|
+
apy: string;
|
|
2367
|
+
amountUSDValue?: string | undefined;
|
|
2368
|
+
} | {
|
|
2369
|
+
chainId: number;
|
|
2370
|
+
action: "defiWithdraw";
|
|
2371
|
+
token: {
|
|
2372
|
+
symbol: string;
|
|
2373
|
+
address: string;
|
|
2374
|
+
};
|
|
2375
|
+
amount: string;
|
|
2376
|
+
amountUSDValue?: string | undefined;
|
|
2377
|
+
} | undefined;
|
|
1040
2378
|
}, {
|
|
1041
2379
|
type: "BatchTransactions";
|
|
1042
2380
|
value: {
|
|
@@ -1046,6 +2384,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1046
2384
|
usdValue?: string | undefined;
|
|
1047
2385
|
} | undefined;
|
|
1048
2386
|
}[];
|
|
2387
|
+
actionMetadata?: {
|
|
2388
|
+
chainId: number;
|
|
2389
|
+
action: "swap";
|
|
2390
|
+
fromToken: {
|
|
2391
|
+
symbol: string;
|
|
2392
|
+
address: string;
|
|
2393
|
+
};
|
|
2394
|
+
toToken: {
|
|
2395
|
+
symbol: string;
|
|
2396
|
+
address: string;
|
|
2397
|
+
};
|
|
2398
|
+
fromAmount: string;
|
|
2399
|
+
toAmount: string;
|
|
2400
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2401
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2402
|
+
} | {
|
|
2403
|
+
action: "bridge";
|
|
2404
|
+
fromToken: {
|
|
2405
|
+
symbol: string;
|
|
2406
|
+
address: string;
|
|
2407
|
+
};
|
|
2408
|
+
toToken: {
|
|
2409
|
+
symbol: string;
|
|
2410
|
+
address: string;
|
|
2411
|
+
};
|
|
2412
|
+
fromAmount: string;
|
|
2413
|
+
toAmount: string;
|
|
2414
|
+
fromChainId: number;
|
|
2415
|
+
toChainId: number;
|
|
2416
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2417
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2418
|
+
} | {
|
|
2419
|
+
chainId: number;
|
|
2420
|
+
action: "tokenTransfer";
|
|
2421
|
+
token: {
|
|
2422
|
+
symbol: string;
|
|
2423
|
+
address: string;
|
|
2424
|
+
};
|
|
2425
|
+
amount: string;
|
|
2426
|
+
fromAddress: string;
|
|
2427
|
+
toAddress: string;
|
|
2428
|
+
amountUSDValue?: string | undefined;
|
|
2429
|
+
} | {
|
|
2430
|
+
chainId: number;
|
|
2431
|
+
action: "defiSupply";
|
|
2432
|
+
token: {
|
|
2433
|
+
symbol: string;
|
|
2434
|
+
address: string;
|
|
2435
|
+
};
|
|
2436
|
+
amount: string;
|
|
2437
|
+
apy: string;
|
|
2438
|
+
amountUSDValue?: string | undefined;
|
|
2439
|
+
} | {
|
|
2440
|
+
chainId: number;
|
|
2441
|
+
action: "defiWithdraw";
|
|
2442
|
+
token: {
|
|
2443
|
+
symbol: string;
|
|
2444
|
+
address: string;
|
|
2445
|
+
};
|
|
2446
|
+
amount: string;
|
|
2447
|
+
amountUSDValue?: string | undefined;
|
|
2448
|
+
} | undefined;
|
|
1049
2449
|
}>, z.ZodObject<{
|
|
1050
2450
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
1051
2451
|
value: z.ZodObject<{
|
|
@@ -1265,6 +2665,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1265
2665
|
usdValue?: string | undefined;
|
|
1266
2666
|
} | undefined;
|
|
1267
2667
|
}[];
|
|
2668
|
+
actionMetadata?: {
|
|
2669
|
+
chainId: number;
|
|
2670
|
+
action: "swap";
|
|
2671
|
+
fromToken: {
|
|
2672
|
+
symbol: string;
|
|
2673
|
+
address: string;
|
|
2674
|
+
};
|
|
2675
|
+
toToken: {
|
|
2676
|
+
symbol: string;
|
|
2677
|
+
address: string;
|
|
2678
|
+
};
|
|
2679
|
+
fromAmount: string;
|
|
2680
|
+
toAmount: string;
|
|
2681
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2682
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2683
|
+
} | {
|
|
2684
|
+
action: "bridge";
|
|
2685
|
+
fromToken: {
|
|
2686
|
+
symbol: string;
|
|
2687
|
+
address: string;
|
|
2688
|
+
};
|
|
2689
|
+
toToken: {
|
|
2690
|
+
symbol: string;
|
|
2691
|
+
address: string;
|
|
2692
|
+
};
|
|
2693
|
+
fromAmount: string;
|
|
2694
|
+
toAmount: string;
|
|
2695
|
+
fromChainId: number;
|
|
2696
|
+
toChainId: number;
|
|
2697
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2698
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2699
|
+
} | {
|
|
2700
|
+
chainId: number;
|
|
2701
|
+
action: "tokenTransfer";
|
|
2702
|
+
token: {
|
|
2703
|
+
symbol: string;
|
|
2704
|
+
address: string;
|
|
2705
|
+
};
|
|
2706
|
+
amount: string;
|
|
2707
|
+
fromAddress: string;
|
|
2708
|
+
toAddress: string;
|
|
2709
|
+
amountUSDValue?: string | undefined;
|
|
2710
|
+
} | {
|
|
2711
|
+
chainId: number;
|
|
2712
|
+
action: "defiSupply";
|
|
2713
|
+
token: {
|
|
2714
|
+
symbol: string;
|
|
2715
|
+
address: string;
|
|
2716
|
+
};
|
|
2717
|
+
amount: string;
|
|
2718
|
+
apy: string;
|
|
2719
|
+
amountUSDValue?: string | undefined;
|
|
2720
|
+
} | {
|
|
2721
|
+
chainId: number;
|
|
2722
|
+
action: "defiWithdraw";
|
|
2723
|
+
token: {
|
|
2724
|
+
symbol: string;
|
|
2725
|
+
address: string;
|
|
2726
|
+
};
|
|
2727
|
+
amount: string;
|
|
2728
|
+
amountUSDValue?: string | undefined;
|
|
2729
|
+
} | undefined;
|
|
1268
2730
|
} | {
|
|
1269
2731
|
type: "SingleTransaction";
|
|
1270
2732
|
value: {
|
|
@@ -1274,6 +2736,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1274
2736
|
usdValue?: string | undefined;
|
|
1275
2737
|
} | undefined;
|
|
1276
2738
|
};
|
|
2739
|
+
actionMetadata?: {
|
|
2740
|
+
chainId: number;
|
|
2741
|
+
action: "swap";
|
|
2742
|
+
fromToken: {
|
|
2743
|
+
symbol: string;
|
|
2744
|
+
address: string;
|
|
2745
|
+
};
|
|
2746
|
+
toToken: {
|
|
2747
|
+
symbol: string;
|
|
2748
|
+
address: string;
|
|
2749
|
+
};
|
|
2750
|
+
fromAmount: string;
|
|
2751
|
+
toAmount: string;
|
|
2752
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2753
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2754
|
+
} | {
|
|
2755
|
+
action: "bridge";
|
|
2756
|
+
fromToken: {
|
|
2757
|
+
symbol: string;
|
|
2758
|
+
address: string;
|
|
2759
|
+
};
|
|
2760
|
+
toToken: {
|
|
2761
|
+
symbol: string;
|
|
2762
|
+
address: string;
|
|
2763
|
+
};
|
|
2764
|
+
fromAmount: string;
|
|
2765
|
+
toAmount: string;
|
|
2766
|
+
fromChainId: number;
|
|
2767
|
+
toChainId: number;
|
|
2768
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2769
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2770
|
+
} | {
|
|
2771
|
+
chainId: number;
|
|
2772
|
+
action: "tokenTransfer";
|
|
2773
|
+
token: {
|
|
2774
|
+
symbol: string;
|
|
2775
|
+
address: string;
|
|
2776
|
+
};
|
|
2777
|
+
amount: string;
|
|
2778
|
+
fromAddress: string;
|
|
2779
|
+
toAddress: string;
|
|
2780
|
+
amountUSDValue?: string | undefined;
|
|
2781
|
+
} | {
|
|
2782
|
+
chainId: number;
|
|
2783
|
+
action: "defiSupply";
|
|
2784
|
+
token: {
|
|
2785
|
+
symbol: string;
|
|
2786
|
+
address: string;
|
|
2787
|
+
};
|
|
2788
|
+
amount: string;
|
|
2789
|
+
apy: string;
|
|
2790
|
+
amountUSDValue?: string | undefined;
|
|
2791
|
+
} | {
|
|
2792
|
+
chainId: number;
|
|
2793
|
+
action: "defiWithdraw";
|
|
2794
|
+
token: {
|
|
2795
|
+
symbol: string;
|
|
2796
|
+
address: string;
|
|
2797
|
+
};
|
|
2798
|
+
amount: string;
|
|
2799
|
+
amountUSDValue?: string | undefined;
|
|
2800
|
+
} | undefined;
|
|
1277
2801
|
} | {
|
|
1278
2802
|
type: "SignatureRequests";
|
|
1279
2803
|
value: {
|
|
@@ -1313,6 +2837,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1313
2837
|
usdValue?: string | undefined;
|
|
1314
2838
|
} | undefined;
|
|
1315
2839
|
}[];
|
|
2840
|
+
actionMetadata?: {
|
|
2841
|
+
chainId: number;
|
|
2842
|
+
action: "swap";
|
|
2843
|
+
fromToken: {
|
|
2844
|
+
symbol: string;
|
|
2845
|
+
address: string;
|
|
2846
|
+
};
|
|
2847
|
+
toToken: {
|
|
2848
|
+
symbol: string;
|
|
2849
|
+
address: string;
|
|
2850
|
+
};
|
|
2851
|
+
fromAmount: string;
|
|
2852
|
+
toAmount: string;
|
|
2853
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2854
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2855
|
+
} | {
|
|
2856
|
+
action: "bridge";
|
|
2857
|
+
fromToken: {
|
|
2858
|
+
symbol: string;
|
|
2859
|
+
address: string;
|
|
2860
|
+
};
|
|
2861
|
+
toToken: {
|
|
2862
|
+
symbol: string;
|
|
2863
|
+
address: string;
|
|
2864
|
+
};
|
|
2865
|
+
fromAmount: string;
|
|
2866
|
+
toAmount: string;
|
|
2867
|
+
fromChainId: number;
|
|
2868
|
+
toChainId: number;
|
|
2869
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2870
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2871
|
+
} | {
|
|
2872
|
+
chainId: number;
|
|
2873
|
+
action: "tokenTransfer";
|
|
2874
|
+
token: {
|
|
2875
|
+
symbol: string;
|
|
2876
|
+
address: string;
|
|
2877
|
+
};
|
|
2878
|
+
amount: string;
|
|
2879
|
+
fromAddress: string;
|
|
2880
|
+
toAddress: string;
|
|
2881
|
+
amountUSDValue?: string | undefined;
|
|
2882
|
+
} | {
|
|
2883
|
+
chainId: number;
|
|
2884
|
+
action: "defiSupply";
|
|
2885
|
+
token: {
|
|
2886
|
+
symbol: string;
|
|
2887
|
+
address: string;
|
|
2888
|
+
};
|
|
2889
|
+
amount: string;
|
|
2890
|
+
apy: string;
|
|
2891
|
+
amountUSDValue?: string | undefined;
|
|
2892
|
+
} | {
|
|
2893
|
+
chainId: number;
|
|
2894
|
+
action: "defiWithdraw";
|
|
2895
|
+
token: {
|
|
2896
|
+
symbol: string;
|
|
2897
|
+
address: string;
|
|
2898
|
+
};
|
|
2899
|
+
amount: string;
|
|
2900
|
+
amountUSDValue?: string | undefined;
|
|
2901
|
+
} | undefined;
|
|
1316
2902
|
} | {
|
|
1317
2903
|
type: "SingleTransaction";
|
|
1318
2904
|
value: {
|
|
@@ -1322,6 +2908,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1322
2908
|
usdValue?: string | undefined;
|
|
1323
2909
|
} | undefined;
|
|
1324
2910
|
};
|
|
2911
|
+
actionMetadata?: {
|
|
2912
|
+
chainId: number;
|
|
2913
|
+
action: "swap";
|
|
2914
|
+
fromToken: {
|
|
2915
|
+
symbol: string;
|
|
2916
|
+
address: string;
|
|
2917
|
+
};
|
|
2918
|
+
toToken: {
|
|
2919
|
+
symbol: string;
|
|
2920
|
+
address: string;
|
|
2921
|
+
};
|
|
2922
|
+
fromAmount: string;
|
|
2923
|
+
toAmount: string;
|
|
2924
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2925
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2926
|
+
} | {
|
|
2927
|
+
action: "bridge";
|
|
2928
|
+
fromToken: {
|
|
2929
|
+
symbol: string;
|
|
2930
|
+
address: string;
|
|
2931
|
+
};
|
|
2932
|
+
toToken: {
|
|
2933
|
+
symbol: string;
|
|
2934
|
+
address: string;
|
|
2935
|
+
};
|
|
2936
|
+
fromAmount: string;
|
|
2937
|
+
toAmount: string;
|
|
2938
|
+
fromChainId: number;
|
|
2939
|
+
toChainId: number;
|
|
2940
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
2941
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
2942
|
+
} | {
|
|
2943
|
+
chainId: number;
|
|
2944
|
+
action: "tokenTransfer";
|
|
2945
|
+
token: {
|
|
2946
|
+
symbol: string;
|
|
2947
|
+
address: string;
|
|
2948
|
+
};
|
|
2949
|
+
amount: string;
|
|
2950
|
+
fromAddress: string;
|
|
2951
|
+
toAddress: string;
|
|
2952
|
+
amountUSDValue?: string | undefined;
|
|
2953
|
+
} | {
|
|
2954
|
+
chainId: number;
|
|
2955
|
+
action: "defiSupply";
|
|
2956
|
+
token: {
|
|
2957
|
+
symbol: string;
|
|
2958
|
+
address: string;
|
|
2959
|
+
};
|
|
2960
|
+
amount: string;
|
|
2961
|
+
apy: string;
|
|
2962
|
+
amountUSDValue?: string | undefined;
|
|
2963
|
+
} | {
|
|
2964
|
+
chainId: number;
|
|
2965
|
+
action: "defiWithdraw";
|
|
2966
|
+
token: {
|
|
2967
|
+
symbol: string;
|
|
2968
|
+
address: string;
|
|
2969
|
+
};
|
|
2970
|
+
amount: string;
|
|
2971
|
+
amountUSDValue?: string | undefined;
|
|
2972
|
+
} | undefined;
|
|
1325
2973
|
} | {
|
|
1326
2974
|
type: "SignatureRequests";
|
|
1327
2975
|
value: {
|
|
@@ -1522,12 +3170,6 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1522
3170
|
gasCostUsd: string;
|
|
1523
3171
|
};
|
|
1524
3172
|
simulatedAt: number;
|
|
1525
|
-
errorMessage?: string | undefined;
|
|
1526
|
-
errorExplanation?: string | undefined;
|
|
1527
|
-
simulationId?: string | undefined;
|
|
1528
|
-
actionType?: "transfer" | "swap" | "bridge" | "supply" | "withdraw" | "contract" | undefined;
|
|
1529
|
-
sourceChainId?: number | undefined;
|
|
1530
|
-
destChainId?: number | undefined;
|
|
1531
3173
|
actionMetadata?: {
|
|
1532
3174
|
inputToken?: string | undefined;
|
|
1533
3175
|
inputAmount?: string | undefined;
|
|
@@ -1540,6 +3182,12 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1540
3182
|
protocol?: string | undefined;
|
|
1541
3183
|
recipient?: string | undefined;
|
|
1542
3184
|
} | undefined;
|
|
3185
|
+
errorMessage?: string | undefined;
|
|
3186
|
+
errorExplanation?: string | undefined;
|
|
3187
|
+
simulationId?: string | undefined;
|
|
3188
|
+
actionType?: "swap" | "bridge" | "transfer" | "supply" | "withdraw" | "contract" | undefined;
|
|
3189
|
+
sourceChainId?: number | undefined;
|
|
3190
|
+
destChainId?: number | undefined;
|
|
1543
3191
|
contractInteractions?: {
|
|
1544
3192
|
address: string;
|
|
1545
3193
|
chainId: number;
|
|
@@ -1567,12 +3215,6 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1567
3215
|
gasCostUsd: string;
|
|
1568
3216
|
};
|
|
1569
3217
|
simulatedAt: number;
|
|
1570
|
-
errorMessage?: string | undefined;
|
|
1571
|
-
errorExplanation?: string | undefined;
|
|
1572
|
-
simulationId?: string | undefined;
|
|
1573
|
-
actionType?: "transfer" | "swap" | "bridge" | "supply" | "withdraw" | "contract" | undefined;
|
|
1574
|
-
sourceChainId?: number | undefined;
|
|
1575
|
-
destChainId?: number | undefined;
|
|
1576
3218
|
actionMetadata?: {
|
|
1577
3219
|
inputToken?: string | undefined;
|
|
1578
3220
|
inputAmount?: string | undefined;
|
|
@@ -1585,6 +3227,12 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1585
3227
|
protocol?: string | undefined;
|
|
1586
3228
|
recipient?: string | undefined;
|
|
1587
3229
|
} | undefined;
|
|
3230
|
+
errorMessage?: string | undefined;
|
|
3231
|
+
errorExplanation?: string | undefined;
|
|
3232
|
+
simulationId?: string | undefined;
|
|
3233
|
+
actionType?: "swap" | "bridge" | "transfer" | "supply" | "withdraw" | "contract" | undefined;
|
|
3234
|
+
sourceChainId?: number | undefined;
|
|
3235
|
+
destChainId?: number | undefined;
|
|
1588
3236
|
contractInteractions?: {
|
|
1589
3237
|
address: string;
|
|
1590
3238
|
chainId: number;
|
|
@@ -1605,6 +3253,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1605
3253
|
usdValue?: string | undefined;
|
|
1606
3254
|
} | undefined;
|
|
1607
3255
|
}[];
|
|
3256
|
+
actionMetadata?: {
|
|
3257
|
+
chainId: number;
|
|
3258
|
+
action: "swap";
|
|
3259
|
+
fromToken: {
|
|
3260
|
+
symbol: string;
|
|
3261
|
+
address: string;
|
|
3262
|
+
};
|
|
3263
|
+
toToken: {
|
|
3264
|
+
symbol: string;
|
|
3265
|
+
address: string;
|
|
3266
|
+
};
|
|
3267
|
+
fromAmount: string;
|
|
3268
|
+
toAmount: string;
|
|
3269
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3270
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3271
|
+
} | {
|
|
3272
|
+
action: "bridge";
|
|
3273
|
+
fromToken: {
|
|
3274
|
+
symbol: string;
|
|
3275
|
+
address: string;
|
|
3276
|
+
};
|
|
3277
|
+
toToken: {
|
|
3278
|
+
symbol: string;
|
|
3279
|
+
address: string;
|
|
3280
|
+
};
|
|
3281
|
+
fromAmount: string;
|
|
3282
|
+
toAmount: string;
|
|
3283
|
+
fromChainId: number;
|
|
3284
|
+
toChainId: number;
|
|
3285
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3286
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3287
|
+
} | {
|
|
3288
|
+
chainId: number;
|
|
3289
|
+
action: "tokenTransfer";
|
|
3290
|
+
token: {
|
|
3291
|
+
symbol: string;
|
|
3292
|
+
address: string;
|
|
3293
|
+
};
|
|
3294
|
+
amount: string;
|
|
3295
|
+
fromAddress: string;
|
|
3296
|
+
toAddress: string;
|
|
3297
|
+
amountUSDValue?: string | undefined;
|
|
3298
|
+
} | {
|
|
3299
|
+
chainId: number;
|
|
3300
|
+
action: "defiSupply";
|
|
3301
|
+
token: {
|
|
3302
|
+
symbol: string;
|
|
3303
|
+
address: string;
|
|
3304
|
+
};
|
|
3305
|
+
amount: string;
|
|
3306
|
+
apy: string;
|
|
3307
|
+
amountUSDValue?: string | undefined;
|
|
3308
|
+
} | {
|
|
3309
|
+
chainId: number;
|
|
3310
|
+
action: "defiWithdraw";
|
|
3311
|
+
token: {
|
|
3312
|
+
symbol: string;
|
|
3313
|
+
address: string;
|
|
3314
|
+
};
|
|
3315
|
+
amount: string;
|
|
3316
|
+
amountUSDValue?: string | undefined;
|
|
3317
|
+
} | undefined;
|
|
1608
3318
|
} | {
|
|
1609
3319
|
type: "SingleTransaction";
|
|
1610
3320
|
value: {
|
|
@@ -1614,6 +3324,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1614
3324
|
usdValue?: string | undefined;
|
|
1615
3325
|
} | undefined;
|
|
1616
3326
|
};
|
|
3327
|
+
actionMetadata?: {
|
|
3328
|
+
chainId: number;
|
|
3329
|
+
action: "swap";
|
|
3330
|
+
fromToken: {
|
|
3331
|
+
symbol: string;
|
|
3332
|
+
address: string;
|
|
3333
|
+
};
|
|
3334
|
+
toToken: {
|
|
3335
|
+
symbol: string;
|
|
3336
|
+
address: string;
|
|
3337
|
+
};
|
|
3338
|
+
fromAmount: string;
|
|
3339
|
+
toAmount: string;
|
|
3340
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3341
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3342
|
+
} | {
|
|
3343
|
+
action: "bridge";
|
|
3344
|
+
fromToken: {
|
|
3345
|
+
symbol: string;
|
|
3346
|
+
address: string;
|
|
3347
|
+
};
|
|
3348
|
+
toToken: {
|
|
3349
|
+
symbol: string;
|
|
3350
|
+
address: string;
|
|
3351
|
+
};
|
|
3352
|
+
fromAmount: string;
|
|
3353
|
+
toAmount: string;
|
|
3354
|
+
fromChainId: number;
|
|
3355
|
+
toChainId: number;
|
|
3356
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3357
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3358
|
+
} | {
|
|
3359
|
+
chainId: number;
|
|
3360
|
+
action: "tokenTransfer";
|
|
3361
|
+
token: {
|
|
3362
|
+
symbol: string;
|
|
3363
|
+
address: string;
|
|
3364
|
+
};
|
|
3365
|
+
amount: string;
|
|
3366
|
+
fromAddress: string;
|
|
3367
|
+
toAddress: string;
|
|
3368
|
+
amountUSDValue?: string | undefined;
|
|
3369
|
+
} | {
|
|
3370
|
+
chainId: number;
|
|
3371
|
+
action: "defiSupply";
|
|
3372
|
+
token: {
|
|
3373
|
+
symbol: string;
|
|
3374
|
+
address: string;
|
|
3375
|
+
};
|
|
3376
|
+
amount: string;
|
|
3377
|
+
apy: string;
|
|
3378
|
+
amountUSDValue?: string | undefined;
|
|
3379
|
+
} | {
|
|
3380
|
+
chainId: number;
|
|
3381
|
+
action: "defiWithdraw";
|
|
3382
|
+
token: {
|
|
3383
|
+
symbol: string;
|
|
3384
|
+
address: string;
|
|
3385
|
+
};
|
|
3386
|
+
amount: string;
|
|
3387
|
+
amountUSDValue?: string | undefined;
|
|
3388
|
+
} | undefined;
|
|
1617
3389
|
} | {
|
|
1618
3390
|
type: "SignatureRequests";
|
|
1619
3391
|
value: {
|
|
@@ -1652,6 +3424,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1652
3424
|
usdValue?: string | undefined;
|
|
1653
3425
|
} | undefined;
|
|
1654
3426
|
}[];
|
|
3427
|
+
actionMetadata?: {
|
|
3428
|
+
chainId: number;
|
|
3429
|
+
action: "swap";
|
|
3430
|
+
fromToken: {
|
|
3431
|
+
symbol: string;
|
|
3432
|
+
address: string;
|
|
3433
|
+
};
|
|
3434
|
+
toToken: {
|
|
3435
|
+
symbol: string;
|
|
3436
|
+
address: string;
|
|
3437
|
+
};
|
|
3438
|
+
fromAmount: string;
|
|
3439
|
+
toAmount: string;
|
|
3440
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3441
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3442
|
+
} | {
|
|
3443
|
+
action: "bridge";
|
|
3444
|
+
fromToken: {
|
|
3445
|
+
symbol: string;
|
|
3446
|
+
address: string;
|
|
3447
|
+
};
|
|
3448
|
+
toToken: {
|
|
3449
|
+
symbol: string;
|
|
3450
|
+
address: string;
|
|
3451
|
+
};
|
|
3452
|
+
fromAmount: string;
|
|
3453
|
+
toAmount: string;
|
|
3454
|
+
fromChainId: number;
|
|
3455
|
+
toChainId: number;
|
|
3456
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3457
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3458
|
+
} | {
|
|
3459
|
+
chainId: number;
|
|
3460
|
+
action: "tokenTransfer";
|
|
3461
|
+
token: {
|
|
3462
|
+
symbol: string;
|
|
3463
|
+
address: string;
|
|
3464
|
+
};
|
|
3465
|
+
amount: string;
|
|
3466
|
+
fromAddress: string;
|
|
3467
|
+
toAddress: string;
|
|
3468
|
+
amountUSDValue?: string | undefined;
|
|
3469
|
+
} | {
|
|
3470
|
+
chainId: number;
|
|
3471
|
+
action: "defiSupply";
|
|
3472
|
+
token: {
|
|
3473
|
+
symbol: string;
|
|
3474
|
+
address: string;
|
|
3475
|
+
};
|
|
3476
|
+
amount: string;
|
|
3477
|
+
apy: string;
|
|
3478
|
+
amountUSDValue?: string | undefined;
|
|
3479
|
+
} | {
|
|
3480
|
+
chainId: number;
|
|
3481
|
+
action: "defiWithdraw";
|
|
3482
|
+
token: {
|
|
3483
|
+
symbol: string;
|
|
3484
|
+
address: string;
|
|
3485
|
+
};
|
|
3486
|
+
amount: string;
|
|
3487
|
+
amountUSDValue?: string | undefined;
|
|
3488
|
+
} | undefined;
|
|
1655
3489
|
} | {
|
|
1656
3490
|
type: "SingleTransaction";
|
|
1657
3491
|
value: {
|
|
@@ -1661,6 +3495,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1661
3495
|
usdValue?: string | undefined;
|
|
1662
3496
|
} | undefined;
|
|
1663
3497
|
};
|
|
3498
|
+
actionMetadata?: {
|
|
3499
|
+
chainId: number;
|
|
3500
|
+
action: "swap";
|
|
3501
|
+
fromToken: {
|
|
3502
|
+
symbol: string;
|
|
3503
|
+
address: string;
|
|
3504
|
+
};
|
|
3505
|
+
toToken: {
|
|
3506
|
+
symbol: string;
|
|
3507
|
+
address: string;
|
|
3508
|
+
};
|
|
3509
|
+
fromAmount: string;
|
|
3510
|
+
toAmount: string;
|
|
3511
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3512
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3513
|
+
} | {
|
|
3514
|
+
action: "bridge";
|
|
3515
|
+
fromToken: {
|
|
3516
|
+
symbol: string;
|
|
3517
|
+
address: string;
|
|
3518
|
+
};
|
|
3519
|
+
toToken: {
|
|
3520
|
+
symbol: string;
|
|
3521
|
+
address: string;
|
|
3522
|
+
};
|
|
3523
|
+
fromAmount: string;
|
|
3524
|
+
toAmount: string;
|
|
3525
|
+
fromChainId: number;
|
|
3526
|
+
toChainId: number;
|
|
3527
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3528
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3529
|
+
} | {
|
|
3530
|
+
chainId: number;
|
|
3531
|
+
action: "tokenTransfer";
|
|
3532
|
+
token: {
|
|
3533
|
+
symbol: string;
|
|
3534
|
+
address: string;
|
|
3535
|
+
};
|
|
3536
|
+
amount: string;
|
|
3537
|
+
fromAddress: string;
|
|
3538
|
+
toAddress: string;
|
|
3539
|
+
amountUSDValue?: string | undefined;
|
|
3540
|
+
} | {
|
|
3541
|
+
chainId: number;
|
|
3542
|
+
action: "defiSupply";
|
|
3543
|
+
token: {
|
|
3544
|
+
symbol: string;
|
|
3545
|
+
address: string;
|
|
3546
|
+
};
|
|
3547
|
+
amount: string;
|
|
3548
|
+
apy: string;
|
|
3549
|
+
amountUSDValue?: string | undefined;
|
|
3550
|
+
} | {
|
|
3551
|
+
chainId: number;
|
|
3552
|
+
action: "defiWithdraw";
|
|
3553
|
+
token: {
|
|
3554
|
+
symbol: string;
|
|
3555
|
+
address: string;
|
|
3556
|
+
};
|
|
3557
|
+
amount: string;
|
|
3558
|
+
amountUSDValue?: string | undefined;
|
|
3559
|
+
} | undefined;
|
|
1664
3560
|
} | {
|
|
1665
3561
|
type: "SignatureRequests";
|
|
1666
3562
|
value: {
|
|
@@ -1712,12 +3608,6 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1712
3608
|
gasCostUsd: string;
|
|
1713
3609
|
};
|
|
1714
3610
|
simulatedAt: number;
|
|
1715
|
-
errorMessage?: string | undefined;
|
|
1716
|
-
errorExplanation?: string | undefined;
|
|
1717
|
-
simulationId?: string | undefined;
|
|
1718
|
-
actionType?: "transfer" | "swap" | "bridge" | "supply" | "withdraw" | "contract" | undefined;
|
|
1719
|
-
sourceChainId?: number | undefined;
|
|
1720
|
-
destChainId?: number | undefined;
|
|
1721
3611
|
actionMetadata?: {
|
|
1722
3612
|
inputToken?: string | undefined;
|
|
1723
3613
|
inputAmount?: string | undefined;
|
|
@@ -1730,6 +3620,12 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1730
3620
|
protocol?: string | undefined;
|
|
1731
3621
|
recipient?: string | undefined;
|
|
1732
3622
|
} | undefined;
|
|
3623
|
+
errorMessage?: string | undefined;
|
|
3624
|
+
errorExplanation?: string | undefined;
|
|
3625
|
+
simulationId?: string | undefined;
|
|
3626
|
+
actionType?: "swap" | "bridge" | "transfer" | "supply" | "withdraw" | "contract" | undefined;
|
|
3627
|
+
sourceChainId?: number | undefined;
|
|
3628
|
+
destChainId?: number | undefined;
|
|
1733
3629
|
contractInteractions?: {
|
|
1734
3630
|
address: string;
|
|
1735
3631
|
chainId: number;
|
|
@@ -1750,6 +3646,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1750
3646
|
usdValue?: string | undefined;
|
|
1751
3647
|
} | undefined;
|
|
1752
3648
|
}[];
|
|
3649
|
+
actionMetadata?: {
|
|
3650
|
+
chainId: number;
|
|
3651
|
+
action: "swap";
|
|
3652
|
+
fromToken: {
|
|
3653
|
+
symbol: string;
|
|
3654
|
+
address: string;
|
|
3655
|
+
};
|
|
3656
|
+
toToken: {
|
|
3657
|
+
symbol: string;
|
|
3658
|
+
address: string;
|
|
3659
|
+
};
|
|
3660
|
+
fromAmount: string;
|
|
3661
|
+
toAmount: string;
|
|
3662
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3663
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3664
|
+
} | {
|
|
3665
|
+
action: "bridge";
|
|
3666
|
+
fromToken: {
|
|
3667
|
+
symbol: string;
|
|
3668
|
+
address: string;
|
|
3669
|
+
};
|
|
3670
|
+
toToken: {
|
|
3671
|
+
symbol: string;
|
|
3672
|
+
address: string;
|
|
3673
|
+
};
|
|
3674
|
+
fromAmount: string;
|
|
3675
|
+
toAmount: string;
|
|
3676
|
+
fromChainId: number;
|
|
3677
|
+
toChainId: number;
|
|
3678
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3679
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3680
|
+
} | {
|
|
3681
|
+
chainId: number;
|
|
3682
|
+
action: "tokenTransfer";
|
|
3683
|
+
token: {
|
|
3684
|
+
symbol: string;
|
|
3685
|
+
address: string;
|
|
3686
|
+
};
|
|
3687
|
+
amount: string;
|
|
3688
|
+
fromAddress: string;
|
|
3689
|
+
toAddress: string;
|
|
3690
|
+
amountUSDValue?: string | undefined;
|
|
3691
|
+
} | {
|
|
3692
|
+
chainId: number;
|
|
3693
|
+
action: "defiSupply";
|
|
3694
|
+
token: {
|
|
3695
|
+
symbol: string;
|
|
3696
|
+
address: string;
|
|
3697
|
+
};
|
|
3698
|
+
amount: string;
|
|
3699
|
+
apy: string;
|
|
3700
|
+
amountUSDValue?: string | undefined;
|
|
3701
|
+
} | {
|
|
3702
|
+
chainId: number;
|
|
3703
|
+
action: "defiWithdraw";
|
|
3704
|
+
token: {
|
|
3705
|
+
symbol: string;
|
|
3706
|
+
address: string;
|
|
3707
|
+
};
|
|
3708
|
+
amount: string;
|
|
3709
|
+
amountUSDValue?: string | undefined;
|
|
3710
|
+
} | undefined;
|
|
1753
3711
|
} | {
|
|
1754
3712
|
type: "SingleTransaction";
|
|
1755
3713
|
value: {
|
|
@@ -1759,6 +3717,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1759
3717
|
usdValue?: string | undefined;
|
|
1760
3718
|
} | undefined;
|
|
1761
3719
|
};
|
|
3720
|
+
actionMetadata?: {
|
|
3721
|
+
chainId: number;
|
|
3722
|
+
action: "swap";
|
|
3723
|
+
fromToken: {
|
|
3724
|
+
symbol: string;
|
|
3725
|
+
address: string;
|
|
3726
|
+
};
|
|
3727
|
+
toToken: {
|
|
3728
|
+
symbol: string;
|
|
3729
|
+
address: string;
|
|
3730
|
+
};
|
|
3731
|
+
fromAmount: string;
|
|
3732
|
+
toAmount: string;
|
|
3733
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3734
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3735
|
+
} | {
|
|
3736
|
+
action: "bridge";
|
|
3737
|
+
fromToken: {
|
|
3738
|
+
symbol: string;
|
|
3739
|
+
address: string;
|
|
3740
|
+
};
|
|
3741
|
+
toToken: {
|
|
3742
|
+
symbol: string;
|
|
3743
|
+
address: string;
|
|
3744
|
+
};
|
|
3745
|
+
fromAmount: string;
|
|
3746
|
+
toAmount: string;
|
|
3747
|
+
fromChainId: number;
|
|
3748
|
+
toChainId: number;
|
|
3749
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3750
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3751
|
+
} | {
|
|
3752
|
+
chainId: number;
|
|
3753
|
+
action: "tokenTransfer";
|
|
3754
|
+
token: {
|
|
3755
|
+
symbol: string;
|
|
3756
|
+
address: string;
|
|
3757
|
+
};
|
|
3758
|
+
amount: string;
|
|
3759
|
+
fromAddress: string;
|
|
3760
|
+
toAddress: string;
|
|
3761
|
+
amountUSDValue?: string | undefined;
|
|
3762
|
+
} | {
|
|
3763
|
+
chainId: number;
|
|
3764
|
+
action: "defiSupply";
|
|
3765
|
+
token: {
|
|
3766
|
+
symbol: string;
|
|
3767
|
+
address: string;
|
|
3768
|
+
};
|
|
3769
|
+
amount: string;
|
|
3770
|
+
apy: string;
|
|
3771
|
+
amountUSDValue?: string | undefined;
|
|
3772
|
+
} | {
|
|
3773
|
+
chainId: number;
|
|
3774
|
+
action: "defiWithdraw";
|
|
3775
|
+
token: {
|
|
3776
|
+
symbol: string;
|
|
3777
|
+
address: string;
|
|
3778
|
+
};
|
|
3779
|
+
amount: string;
|
|
3780
|
+
amountUSDValue?: string | undefined;
|
|
3781
|
+
} | undefined;
|
|
1762
3782
|
} | {
|
|
1763
3783
|
type: "SignatureRequests";
|
|
1764
3784
|
value: {
|
|
@@ -1797,6 +3817,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1797
3817
|
usdValue?: string | undefined;
|
|
1798
3818
|
} | undefined;
|
|
1799
3819
|
}[];
|
|
3820
|
+
actionMetadata?: {
|
|
3821
|
+
chainId: number;
|
|
3822
|
+
action: "swap";
|
|
3823
|
+
fromToken: {
|
|
3824
|
+
symbol: string;
|
|
3825
|
+
address: string;
|
|
3826
|
+
};
|
|
3827
|
+
toToken: {
|
|
3828
|
+
symbol: string;
|
|
3829
|
+
address: string;
|
|
3830
|
+
};
|
|
3831
|
+
fromAmount: string;
|
|
3832
|
+
toAmount: string;
|
|
3833
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3834
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3835
|
+
} | {
|
|
3836
|
+
action: "bridge";
|
|
3837
|
+
fromToken: {
|
|
3838
|
+
symbol: string;
|
|
3839
|
+
address: string;
|
|
3840
|
+
};
|
|
3841
|
+
toToken: {
|
|
3842
|
+
symbol: string;
|
|
3843
|
+
address: string;
|
|
3844
|
+
};
|
|
3845
|
+
fromAmount: string;
|
|
3846
|
+
toAmount: string;
|
|
3847
|
+
fromChainId: number;
|
|
3848
|
+
toChainId: number;
|
|
3849
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3850
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3851
|
+
} | {
|
|
3852
|
+
chainId: number;
|
|
3853
|
+
action: "tokenTransfer";
|
|
3854
|
+
token: {
|
|
3855
|
+
symbol: string;
|
|
3856
|
+
address: string;
|
|
3857
|
+
};
|
|
3858
|
+
amount: string;
|
|
3859
|
+
fromAddress: string;
|
|
3860
|
+
toAddress: string;
|
|
3861
|
+
amountUSDValue?: string | undefined;
|
|
3862
|
+
} | {
|
|
3863
|
+
chainId: number;
|
|
3864
|
+
action: "defiSupply";
|
|
3865
|
+
token: {
|
|
3866
|
+
symbol: string;
|
|
3867
|
+
address: string;
|
|
3868
|
+
};
|
|
3869
|
+
amount: string;
|
|
3870
|
+
apy: string;
|
|
3871
|
+
amountUSDValue?: string | undefined;
|
|
3872
|
+
} | {
|
|
3873
|
+
chainId: number;
|
|
3874
|
+
action: "defiWithdraw";
|
|
3875
|
+
token: {
|
|
3876
|
+
symbol: string;
|
|
3877
|
+
address: string;
|
|
3878
|
+
};
|
|
3879
|
+
amount: string;
|
|
3880
|
+
amountUSDValue?: string | undefined;
|
|
3881
|
+
} | undefined;
|
|
1800
3882
|
} | {
|
|
1801
3883
|
type: "SingleTransaction";
|
|
1802
3884
|
value: {
|
|
@@ -1806,6 +3888,68 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1806
3888
|
usdValue?: string | undefined;
|
|
1807
3889
|
} | undefined;
|
|
1808
3890
|
};
|
|
3891
|
+
actionMetadata?: {
|
|
3892
|
+
chainId: number;
|
|
3893
|
+
action: "swap";
|
|
3894
|
+
fromToken: {
|
|
3895
|
+
symbol: string;
|
|
3896
|
+
address: string;
|
|
3897
|
+
};
|
|
3898
|
+
toToken: {
|
|
3899
|
+
symbol: string;
|
|
3900
|
+
address: string;
|
|
3901
|
+
};
|
|
3902
|
+
fromAmount: string;
|
|
3903
|
+
toAmount: string;
|
|
3904
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3905
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3906
|
+
} | {
|
|
3907
|
+
action: "bridge";
|
|
3908
|
+
fromToken: {
|
|
3909
|
+
symbol: string;
|
|
3910
|
+
address: string;
|
|
3911
|
+
};
|
|
3912
|
+
toToken: {
|
|
3913
|
+
symbol: string;
|
|
3914
|
+
address: string;
|
|
3915
|
+
};
|
|
3916
|
+
fromAmount: string;
|
|
3917
|
+
toAmount: string;
|
|
3918
|
+
fromChainId: number;
|
|
3919
|
+
toChainId: number;
|
|
3920
|
+
fromTokenAmountUSDValue?: string | undefined;
|
|
3921
|
+
toTokenAmountUSDValue?: string | undefined;
|
|
3922
|
+
} | {
|
|
3923
|
+
chainId: number;
|
|
3924
|
+
action: "tokenTransfer";
|
|
3925
|
+
token: {
|
|
3926
|
+
symbol: string;
|
|
3927
|
+
address: string;
|
|
3928
|
+
};
|
|
3929
|
+
amount: string;
|
|
3930
|
+
fromAddress: string;
|
|
3931
|
+
toAddress: string;
|
|
3932
|
+
amountUSDValue?: string | undefined;
|
|
3933
|
+
} | {
|
|
3934
|
+
chainId: number;
|
|
3935
|
+
action: "defiSupply";
|
|
3936
|
+
token: {
|
|
3937
|
+
symbol: string;
|
|
3938
|
+
address: string;
|
|
3939
|
+
};
|
|
3940
|
+
amount: string;
|
|
3941
|
+
apy: string;
|
|
3942
|
+
amountUSDValue?: string | undefined;
|
|
3943
|
+
} | {
|
|
3944
|
+
chainId: number;
|
|
3945
|
+
action: "defiWithdraw";
|
|
3946
|
+
token: {
|
|
3947
|
+
symbol: string;
|
|
3948
|
+
address: string;
|
|
3949
|
+
};
|
|
3950
|
+
amount: string;
|
|
3951
|
+
amountUSDValue?: string | undefined;
|
|
3952
|
+
} | undefined;
|
|
1809
3953
|
} | {
|
|
1810
3954
|
type: "SignatureRequests";
|
|
1811
3955
|
value: {
|
|
@@ -1857,12 +4001,6 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1857
4001
|
gasCostUsd: string;
|
|
1858
4002
|
};
|
|
1859
4003
|
simulatedAt: number;
|
|
1860
|
-
errorMessage?: string | undefined;
|
|
1861
|
-
errorExplanation?: string | undefined;
|
|
1862
|
-
simulationId?: string | undefined;
|
|
1863
|
-
actionType?: "transfer" | "swap" | "bridge" | "supply" | "withdraw" | "contract" | undefined;
|
|
1864
|
-
sourceChainId?: number | undefined;
|
|
1865
|
-
destChainId?: number | undefined;
|
|
1866
4004
|
actionMetadata?: {
|
|
1867
4005
|
inputToken?: string | undefined;
|
|
1868
4006
|
inputAmount?: string | undefined;
|
|
@@ -1875,6 +4013,12 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
1875
4013
|
protocol?: string | undefined;
|
|
1876
4014
|
recipient?: string | undefined;
|
|
1877
4015
|
} | undefined;
|
|
4016
|
+
errorMessage?: string | undefined;
|
|
4017
|
+
errorExplanation?: string | undefined;
|
|
4018
|
+
simulationId?: string | undefined;
|
|
4019
|
+
actionType?: "swap" | "bridge" | "transfer" | "supply" | "withdraw" | "contract" | undefined;
|
|
4020
|
+
sourceChainId?: number | undefined;
|
|
4021
|
+
destChainId?: number | undefined;
|
|
1878
4022
|
contractInteractions?: {
|
|
1879
4023
|
address: string;
|
|
1880
4024
|
chainId: number;
|