Commit e4e958c
feat(tests/zkevm): add stateful opcodes attacks (#1611)
* fix(github/coverage): Use skip-evm-dump for fill
* fix(tox): Add `block-gas-limit` to zkevm tox
* fix(github/coverage): Add `--block-gas-limit 36000000` to coverage
* zkevm: add cold BALANCE
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add absent case for BALANCE
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add warm BALANCE tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkevm: include warm test for extcodesize and extcodehash
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add cold EXTCODEHASH
Signed-off-by: Ignacio Hagopian <[email protected]>
* rename parameter
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: warm CALL-like opcodes
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: cold SSTORE/SSLOAD
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add cold SSTORE/SLOAD
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add warm SSTORE/SLOAD
Signed-off-by: Ignacio Hagopian <[email protected]>
* name parameters
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add blockhash test
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add SELFBALANCE test
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkevm: add warm EXTCODECOPY tests
Signed-off-by: Ignacio Hagopian <[email protected]>
* simplify parameters
Signed-off-by: Ignacio Hagopian <[email protected]>
* simplify parameters
Signed-off-by: Ignacio Hagopian <[email protected]>
* add CALL/CALLCODE/DELEGATECALL/STATICCALL to worst bytecode attack
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add bytecode worst case for CALL-like opcodes
Signed-off-by: Ignacio Hagopian <[email protected]>
* zkvm: add cold EXTCODECOPY
Signed-off-by: Ignacio Hagopian <[email protected]>
* lints
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes
Signed-off-by: Ignacio Hagopian <[email protected]>
* fixes and lints
Signed-off-by: Ignacio Hagopian <[email protected]>
* mark slow
Signed-off-by: Ignacio Hagopian <[email protected]>
* improvement
Signed-off-by: Ignacio Hagopian <[email protected]>
* add comment
Signed-off-by: Ignacio Hagopian <[email protected]>
* rename parameter
Signed-off-by: Ignacio Hagopian <[email protected]>
* bump gas limit
Signed-off-by: Ignacio Hagopian <[email protected]>
* return gas limit to original value
Signed-off-by: Ignacio Hagopian <[email protected]>
* review feedback
Signed-off-by: Ignacio Hagopian <[email protected]>
---------
Signed-off-by: Ignacio Hagopian <[email protected]>
Co-authored-by: Mario Vega <[email protected]>1 parent 4a0fbf5 commit e4e958c
File tree
2 files changed
+520
-41
lines changed- tests/zkevm
2 files changed
+520
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
108 | | - | |
| 113 | + | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| |||
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
131 | | - | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | | - | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
161 | 151 | | |
162 | 152 | | |
163 | 153 | | |
164 | | - | |
| 154 | + | |
165 | 155 | | |
166 | 156 | | |
167 | 157 | | |
| |||
170 | 160 | | |
171 | 161 | | |
172 | 162 | | |
173 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
174 | 171 | | |
| 172 | + | |
175 | 173 | | |
176 | | - | |
| 174 | + | |
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
181 | | - | |
| 179 | + | |
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
185 | | - | |
| 183 | + | |
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
189 | | - | |
| 187 | + | |
190 | 188 | | |
191 | | - | |
| 189 | + | |
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
195 | | - | |
| 193 | + | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
| |||
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
| |||
0 commit comments