Skip to content

Commit bdaeac4

Browse files
blockifier_test_utils: add experimental contract and it's libfuncs list
1 parent bd5cac9 commit bdaeac4

File tree

6 files changed

+4258
-12
lines changed

6 files changed

+4258
-12
lines changed
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
{
2+
"allowed_libfuncs": [
3+
"add_circuit_input",
4+
"alloc_local",
5+
"array_append",
6+
"array_get",
7+
"array_len",
8+
"array_new",
9+
"array_pop_front",
10+
"array_pop_front_consume",
11+
"array_slice",
12+
"array_snapshot_multi_pop_back",
13+
"array_snapshot_multi_pop_front",
14+
"array_snapshot_pop_back",
15+
"array_snapshot_pop_front",
16+
"bitwise",
17+
"bool_and_impl",
18+
"bool_not_impl",
19+
"bool_or_impl",
20+
"bool_to_felt252",
21+
"bool_xor_impl",
22+
"bounded_int_add",
23+
"bounded_int_constrain",
24+
"bounded_int_div_rem",
25+
"bounded_int_is_zero",
26+
"bounded_int_mul",
27+
"bounded_int_sub",
28+
"bounded_int_wrap_non_zero",
29+
"box_forward_snapshot",
30+
"branch_align",
31+
"bytes31_const",
32+
"bytes31_to_felt252",
33+
"bytes31_try_from_felt252",
34+
"call_contract_syscall",
35+
"class_hash_const",
36+
"class_hash_to_felt252",
37+
"class_hash_try_from_felt252",
38+
"circuit_failure_guarantee_verify",
39+
"const_as_box",
40+
"const_as_immediate",
41+
"contract_address_const",
42+
"contract_address_to_felt252",
43+
"contract_address_try_from_felt252",
44+
"coupon_buy",
45+
"coupon_call",
46+
"coupon_refund",
47+
"deploy_syscall",
48+
"disable_ap_tracking",
49+
"downcast",
50+
"drop",
51+
"dup",
52+
"ec_neg",
53+
"ec_point_from_x_nz",
54+
"ec_point_is_zero",
55+
"ec_point_try_new_nz",
56+
"ec_point_unwrap",
57+
"ec_point_zero",
58+
"ec_state_add",
59+
"ec_state_add_mul",
60+
"ec_state_init",
61+
"ec_state_try_finalize_nz",
62+
"emit_event_syscall",
63+
"enable_ap_tracking",
64+
"enum_init",
65+
"enum_from_bounded_int",
66+
"enum_match",
67+
"enum_snapshot_match",
68+
"eval_circuit",
69+
"felt252_add",
70+
"felt252_const",
71+
"felt252_dict_entry_finalize",
72+
"felt252_dict_entry_get",
73+
"felt252_dict_new",
74+
"felt252_dict_squash",
75+
"felt252_div",
76+
"felt252_is_zero",
77+
"felt252_mul",
78+
"felt252_sub",
79+
"finalize_locals",
80+
"function_call",
81+
"get_available_gas",
82+
"get_block_hash_syscall",
83+
"get_builtin_costs",
84+
"get_circuit_descriptor",
85+
"get_circuit_output",
86+
"get_class_hash_at_syscall",
87+
"get_execution_info_syscall",
88+
"get_execution_info_v2_syscall",
89+
"hades_permutation",
90+
"i128_const",
91+
"i128_diff",
92+
"i128_eq",
93+
"i128_overflowing_add_impl",
94+
"i128_overflowing_sub_impl",
95+
"i128_to_felt252",
96+
"i128_try_from_felt252",
97+
"i16_const",
98+
"i16_diff",
99+
"i16_eq",
100+
"i16_overflowing_add_impl",
101+
"i16_overflowing_sub_impl",
102+
"i16_to_felt252",
103+
"i16_try_from_felt252",
104+
"i16_wide_mul",
105+
"i32_const",
106+
"i32_diff",
107+
"i32_eq",
108+
"i32_overflowing_add_impl",
109+
"i32_overflowing_sub_impl",
110+
"i32_to_felt252",
111+
"i32_try_from_felt252",
112+
"i32_wide_mul",
113+
"i64_const",
114+
"i64_diff",
115+
"i64_eq",
116+
"i64_overflowing_add_impl",
117+
"i64_overflowing_sub_impl",
118+
"i64_to_felt252",
119+
"i64_try_from_felt252",
120+
"i64_wide_mul",
121+
"i8_const",
122+
"i8_diff",
123+
"i8_eq",
124+
"i8_overflowing_add_impl",
125+
"i8_overflowing_sub_impl",
126+
"i8_to_felt252",
127+
"i8_try_from_felt252",
128+
"i8_wide_mul",
129+
"init_circuit_data",
130+
"into_box",
131+
"into_u96_guarantee",
132+
"jump",
133+
"keccak_syscall",
134+
"sha256_state_handle_init",
135+
"sha256_state_handle_digest",
136+
"sha256_process_block_syscall",
137+
"library_call_syscall",
138+
"match_nullable",
139+
"meta_tx_v0_syscall",
140+
"null",
141+
"nullable_forward_snapshot",
142+
"nullable_from_box",
143+
"pedersen",
144+
"redeposit_gas",
145+
"rename",
146+
"replace_class_syscall",
147+
"revoke_ap_tracking",
148+
"secp256k1_add_syscall",
149+
"secp256k1_get_point_from_x_syscall",
150+
"secp256k1_get_xy_syscall",
151+
"secp256k1_mul_syscall",
152+
"secp256k1_new_syscall",
153+
"secp256r1_add_syscall",
154+
"secp256r1_get_point_from_x_syscall",
155+
"secp256r1_get_xy_syscall",
156+
"secp256r1_mul_syscall",
157+
"secp256r1_new_syscall",
158+
"send_message_to_l1_syscall",
159+
"snapshot_take",
160+
"span_from_tuple",
161+
"storage_address_from_base",
162+
"storage_address_from_base_and_offset",
163+
"storage_address_to_felt252",
164+
"storage_address_try_from_felt252",
165+
"storage_base_address_const",
166+
"storage_base_address_from_felt252",
167+
"storage_read_syscall",
168+
"storage_write_syscall",
169+
"store_local",
170+
"store_temp",
171+
"struct_construct",
172+
"struct_deconstruct",
173+
"struct_snapshot_deconstruct",
174+
"tuple_from_span",
175+
"try_into_circuit_modulus",
176+
"u128_byte_reverse",
177+
"u128_const",
178+
"u128_eq",
179+
"u128_guarantee_mul",
180+
"u128_is_zero",
181+
"u128_mul_guarantee_verify",
182+
"u128_overflowing_add",
183+
"u128_overflowing_sub",
184+
"u128_safe_divmod",
185+
"u128_sqrt",
186+
"u128_to_felt252",
187+
"u128s_from_felt252",
188+
"u16_bitwise",
189+
"u16_const",
190+
"u16_eq",
191+
"u16_is_zero",
192+
"u16_overflowing_add",
193+
"u16_overflowing_sub",
194+
"u16_safe_divmod",
195+
"u16_sqrt",
196+
"u16_to_felt252",
197+
"u16_try_from_felt252",
198+
"u16_wide_mul",
199+
"u256_guarantee_inv_mod_n",
200+
"u256_is_zero",
201+
"u256_safe_divmod",
202+
"u256_sqrt",
203+
"u32_bitwise",
204+
"u32_const",
205+
"u32_eq",
206+
"u32_is_zero",
207+
"u32_overflowing_add",
208+
"u32_overflowing_sub",
209+
"u32_safe_divmod",
210+
"u32_sqrt",
211+
"u32_to_felt252",
212+
"u32_try_from_felt252",
213+
"u32_wide_mul",
214+
"u512_safe_divmod_by_u256",
215+
"u64_bitwise",
216+
"u64_const",
217+
"u64_eq",
218+
"u64_is_zero",
219+
"u64_overflowing_add",
220+
"u64_overflowing_sub",
221+
"u64_safe_divmod",
222+
"u64_sqrt",
223+
"u64_to_felt252",
224+
"u64_try_from_felt252",
225+
"u64_wide_mul",
226+
"u8_bitwise",
227+
"u8_const",
228+
"u8_eq",
229+
"u8_is_zero",
230+
"u8_overflowing_add",
231+
"u8_overflowing_sub",
232+
"u8_safe_divmod",
233+
"u8_sqrt",
234+
"u8_to_felt252",
235+
"u8_try_from_felt252",
236+
"u8_wide_mul",
237+
"u96_guarantee_verify",
238+
"u96_limbs_less_than_guarantee_verify",
239+
"u96_single_limb_less_than_guarantee_verify",
240+
"unbox",
241+
"unwrap_non_zero",
242+
"upcast",
243+
"withdraw_gas",
244+
"withdraw_gas_all"
245+
]
246+
}

0 commit comments

Comments
 (0)