@@ -781,6 +781,21 @@ class NamedTDecl(abi.NamedTuple):
781
781
c : abi .Field [abi .Transaction ]
782
782
783
783
784
+ class NamedTComp0 (abi .NamedTuple ):
785
+ a0 : abi .Field [abi .String ]
786
+ a1 : abi .Field [abi .StaticArray [abi .Byte , Literal [32 ]]]
787
+
788
+
789
+ class NamedTComp1 (abi .NamedTuple ):
790
+ b0 : abi .Field [abi .DynamicBytes ]
791
+ b1 : abi .Field [abi .Address ]
792
+
793
+
794
+ class NamedTComp2 (abi .NamedTuple ):
795
+ b1 : abi .Field [abi .Address ]
796
+ b0 : abi .Field [abi .DynamicBytes ]
797
+
798
+
784
799
TYPE_SPEC_ASSIGNABLE_CASES = [
785
800
(abi .PaymentTransactionTypeSpec (), abi .TransactionTypeSpec (), True ),
786
801
(
@@ -841,6 +856,76 @@ class NamedTDecl(abi.NamedTuple):
841
856
abi .type_spec_from_annotation (NamedTDecl ),
842
857
True ,
843
858
),
859
+ (
860
+ abi .type_spec_from_annotation (abi .StaticBytes [Literal [7 ]]),
861
+ abi .type_spec_from_annotation (abi .StaticArray [abi .Byte , Literal [11 ]]),
862
+ False ,
863
+ ),
864
+ (
865
+ abi .type_spec_from_annotation (NamedTDecl ),
866
+ abi .type_spec_from_annotation (NamedTDecl ),
867
+ True ,
868
+ ),
869
+ (
870
+ abi .type_spec_from_annotation (abi .String ),
871
+ abi .type_spec_from_annotation (abi .DynamicBytes ),
872
+ True ,
873
+ ),
874
+ (
875
+ abi .type_spec_from_annotation (abi .DynamicArray [abi .Byte ]),
876
+ abi .type_spec_from_annotation (abi .String ),
877
+ True ,
878
+ ),
879
+ (
880
+ abi .type_spec_from_annotation (abi .DynamicArray [abi .Uint32 ]),
881
+ abi .type_spec_from_annotation (abi .String ),
882
+ False ,
883
+ ),
884
+ (
885
+ abi .type_spec_from_annotation (abi .Address ),
886
+ abi .type_spec_from_annotation (abi .StaticArray [abi .Byte , Literal [32 ]]),
887
+ True ,
888
+ ),
889
+ (
890
+ abi .type_spec_from_annotation (abi .StaticBytes [Literal [32 ]]),
891
+ abi .type_spec_from_annotation (abi .Address ),
892
+ True ,
893
+ ),
894
+ (
895
+ abi .type_spec_from_annotation (abi .StaticBytes [Literal [33 ]]),
896
+ abi .type_spec_from_annotation (abi .Address ),
897
+ False ,
898
+ ),
899
+ (
900
+ abi .type_spec_from_annotation (NamedTComp0 ),
901
+ abi .type_spec_from_annotation (NamedTComp1 ),
902
+ True ,
903
+ ),
904
+ (
905
+ abi .type_spec_from_annotation (NamedTComp1 ),
906
+ abi .type_spec_from_annotation (NamedTComp0 ),
907
+ True ,
908
+ ),
909
+ (
910
+ abi .type_spec_from_annotation (NamedTDecl ),
911
+ abi .type_spec_from_annotation (NamedTComp0 ),
912
+ False ,
913
+ ),
914
+ (
915
+ abi .type_spec_from_annotation (NamedTComp2 ),
916
+ abi .type_spec_from_annotation (NamedTComp0 ),
917
+ False ,
918
+ ),
919
+ (
920
+ abi .type_spec_from_annotation (abi .String ),
921
+ abi .type_spec_from_annotation (abi .DynamicArray [abi .Uint64 ]),
922
+ False ,
923
+ ),
924
+ (
925
+ abi .type_spec_from_annotation (abi .DynamicArray [abi .Uint64 ]),
926
+ abi .type_spec_from_annotation (abi .String ),
927
+ False ,
928
+ ),
844
929
]
845
930
846
931
0 commit comments