@@ -15,26 +15,124 @@ def test_get_method():
1515 tmp .parse (smc )
1616
1717 assert tmp .to_dict () == {
18- 'metadata' : {'name' : 'My cool smart contract' , 'description' : 'Completely not useless' , 'link' : '' },
19- 'labels' : {'dton_parse_prefix' : 'parsed_smart_' , 'name' : 'my_unique_smc' },
20- 'selector' : {'selector_type' : 'by_methods' , 'items' : []}, 'get_methods' : {85793 : [
21- {'metadata' : {'name' : '' , 'description' : '' , 'link' : '' }, 'labels' : {}, 'method_name' : 'get_cool_smc' ,
22- 'method_id' : 85793 , 'method_args' : [], 'method_result' : [
23- {'type' : 'Int' , 'metadata' : {'name' : '' , 'description' : '' , 'link' : '' },
24- 'labels' : {'name' : 'get_cool_smc_test_result' , 'dton_type' : 'UInt256' }, 'required' : 256 }],
25- 'method_args_hash' : 'DFCFC220CB3D6DC8D2FA97A226B4612B5F57C9E6D265FC8C71E55D54C4F12758' ,
26- 'method_result_hash' : '3032DE3E7074799554B1C159F288DC80674452119D5AF0074E70B3F7A3A2C1C9' ,
27- 'result_strict_type_check' : True , 'result_length_strict_check' : True }], 123631 : [
28- {'metadata' : {'name' : '' , 'description' : '' , 'link' : '' }, 'labels' : {}, 'method_name' : 't1' ,
29- 'method_id' : 123631 , 'method_args' : [
30- {'type' : 'Cell' , 'metadata' : {'name' : '' , 'description' : '' , 'link' : '' },
31- 'labels' : {'name' : 'anon_0' }, 'required' : None },
32- {'type' : 'Slice' , 'metadata' : {'name' : '' , 'description' : '' , 'link' : '' },
33- 'labels' : {'name' : 'test' }, 'required' : None },
34- {'type' : 'Tuple' , 'metadata' : {'name' : '' , 'description' : '' , 'link' : '' },
35- 'labels' : {'name' : 'anon_1' }, 'required' : None , 'items' : [
36- {'type' : 'Int' , 'metadata' : {'name' : '' , 'description' : '' , 'link' : '' },
37- 'labels' : {'name' : 'anon_2' }, 'required' : None }]}], 'method_result' : [],
38- 'method_args_hash' : '98BC78F7A0C43451AEBB9021F9AF162EAAB8091FE58D2B2E4BE15975362D5DFA' ,
39- 'method_result_hash' : 'DFCFC220CB3D6DC8D2FA97A226B4612B5F57C9E6D265FC8C71E55D54C4F12758' ,
40- 'result_strict_type_check' : True , 'result_length_strict_check' : True }]}, 'code_hashes' : []}
18+ 'metadata' : {
19+ 'name' : 'My cool smart contract' ,
20+ 'description' : 'Completely not useless' ,
21+ 'link' : '' ,
22+ },
23+ 'labels' : {
24+ 'dton_parse_prefix' : 'parsed_smart_' ,
25+ 'name' : 'my_unique_smc' ,
26+ 'extra_names' : [
27+ 'my_unique_smc_v2' ,
28+ ],
29+ },
30+ 'selector' : {
31+ 'selector_type' : 'by_methods' ,
32+ 'items' : [],
33+ },
34+ 'get_methods' : {
35+ 85793 : [
36+ {
37+ 'metadata' : {
38+ 'name' : '' ,
39+ 'description' : '' ,
40+ 'link' : '' ,
41+ },
42+ 'labels' : {},
43+ 'method_name' : 'get_cool_smc' ,
44+ 'method_id' : 85793 ,
45+ 'method_args' : [],
46+ 'method_result' : [
47+ {
48+ 'type' : 'Int' ,
49+ 'metadata' : {
50+ 'name' : '' ,
51+ 'description' : '' ,
52+ 'link' : '' ,
53+ },
54+ 'labels' : {
55+ 'name' : 'get_cool_smc_test_result' ,
56+ 'dton_type' : 'UInt256' ,
57+ },
58+ 'required' : 256 ,
59+ },
60+ ],
61+ 'method_args_hash' : 'DFCFC220CB3D6DC8D2FA97A226B4612B5F57C9E6D265FC8C71E55D54C4F12758' ,
62+ 'method_result_hash' : '3032DE3E7074799554B1C159F288DC80674452119D5AF0074E70B3F7A3A2C1C9' ,
63+ 'result_strict_type_check' : True ,
64+ 'result_length_strict_check' : True ,
65+ }
66+ ],
67+ 123631 : [
68+ {
69+ 'metadata' : {
70+ 'name' : '' ,
71+ 'description' : '' ,
72+ 'link' : '' ,
73+ },
74+ 'labels' : {},
75+ 'method_name' : 't1' ,
76+ 'method_id' : 123631 ,
77+ 'method_args' : [
78+ {
79+ 'type' : 'Cell' ,
80+ 'metadata' : {
81+ 'name' : '' ,
82+ 'description' : '' ,
83+ 'link' : '' ,
84+ },
85+ 'labels' : {
86+ 'name' : 'anon_0' ,
87+ },
88+ 'required' : None ,
89+ },
90+ {
91+ 'type' : 'Slice' ,
92+ 'metadata' : {
93+ 'name' : '' ,
94+ 'description' : '' ,
95+ 'link' : '' ,
96+ },
97+ 'labels' : {
98+ 'name' : 'test' ,
99+ },
100+ 'required' : None ,
101+ },
102+ {
103+ 'type' : 'Tuple' ,
104+ 'metadata' : {
105+ 'name' : '' ,
106+ 'description' : '' ,
107+ 'link' : '' ,
108+ },
109+ 'labels' : {
110+ 'name' : 'anon_1' ,
111+ },
112+ 'required' : None ,
113+ 'items' : [
114+ {
115+ 'type' : 'Int' ,
116+ 'metadata' : {
117+ 'name' : '' ,
118+ 'description' : '' ,
119+ 'link' : '' ,
120+ },
121+ 'labels' : {
122+ 'name' : 'anon_2' ,
123+ },
124+ 'required' : None ,
125+ },
126+ ],
127+ },
128+ ],
129+ 'method_result' : [],
130+ 'method_args_hash' : '98BC78F7A0C43451AEBB9021F9AF162EAAB8091FE58D2B2E4BE15975362D5DFA' ,
131+ 'method_result_hash' : 'DFCFC220CB3D6DC8D2FA97A226B4612B5F57C9E6D265FC8C71E55D54C4F12758' ,
132+ 'result_strict_type_check' : True ,
133+ 'result_length_strict_check' : True ,
134+ },
135+ ],
136+ },
137+ 'code_hashes' : [],
138+ }
0 commit comments