Skip to content

Commit b0c48fa

Browse files
committed
Merge pull request #13 from CJentzsch/develop
Added comprehensive EVM test suite. All commands are tested.
2 parents cb8261a + 6cae166 commit b0c48fa

8 files changed

+12387
-0
lines changed

vmArithmeticTest.json

Lines changed: 3197 additions & 0 deletions
Large diffs are not rendered by default.

vmBitwiseLogicOperationTest.json

Lines changed: 1946 additions & 0 deletions
Large diffs are not rendered by default.

vmBlockInfoTest.json

Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
{
2+
"coinbase" : {
3+
"callcreates" : [
4+
],
5+
"env" : {
6+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
7+
"currentDifficulty" : "256",
8+
"currentGasLimit" : "1000000",
9+
"currentNumber" : "0",
10+
"currentTimestamp" : "1",
11+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
12+
},
13+
"exec" : {
14+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
15+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
16+
"code" : "0x41600057",
17+
"data" : "0x",
18+
"gas" : "10000",
19+
"gasPrice" : "100000000000000",
20+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
21+
"value" : "1000000000000000000"
22+
},
23+
"gas" : "9798",
24+
"out" : "0x",
25+
"post" : {
26+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
27+
"balance" : "1000000000000000000",
28+
"code" : "0x41600057",
29+
"nonce" : "0",
30+
"storage" : {
31+
"0x" : [
32+
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
33+
]
34+
}
35+
}
36+
},
37+
"pre" : {
38+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
39+
"balance" : "1000000000000000000",
40+
"code" : "0x41600057",
41+
"nonce" : "0",
42+
"storage" : {
43+
}
44+
}
45+
}
46+
},
47+
"difficulty" : {
48+
"callcreates" : [
49+
],
50+
"env" : {
51+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
52+
"currentDifficulty" : "256",
53+
"currentGasLimit" : "1000000",
54+
"currentNumber" : "0",
55+
"currentTimestamp" : "1",
56+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
57+
},
58+
"exec" : {
59+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
60+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
61+
"code" : "0x44600057",
62+
"data" : "0x",
63+
"gas" : "10000",
64+
"gasPrice" : "100000000000000",
65+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
66+
"value" : "1000000000000000000"
67+
},
68+
"gas" : "9798",
69+
"out" : "0x",
70+
"post" : {
71+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
72+
"balance" : "1000000000000000000",
73+
"code" : "0x44600057",
74+
"nonce" : "0",
75+
"storage" : {
76+
"0x" : [
77+
"0x0100"
78+
]
79+
}
80+
}
81+
},
82+
"pre" : {
83+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
84+
"balance" : "1000000000000000000",
85+
"code" : "0x44600057",
86+
"nonce" : "0",
87+
"storage" : {
88+
}
89+
}
90+
}
91+
},
92+
"gaslimit" : {
93+
"callcreates" : [
94+
],
95+
"env" : {
96+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
97+
"currentDifficulty" : "256",
98+
"currentGasLimit" : "1000000",
99+
"currentNumber" : "0",
100+
"currentTimestamp" : "1",
101+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
102+
},
103+
"exec" : {
104+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
105+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
106+
"code" : "0x45600057",
107+
"data" : "0x",
108+
"gas" : "10000",
109+
"gasPrice" : "100000000000000",
110+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
111+
"value" : "1000000000000000000"
112+
},
113+
"gas" : "9798",
114+
"out" : "0x",
115+
"post" : {
116+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
117+
"balance" : "1000000000000000000",
118+
"code" : "0x45600057",
119+
"nonce" : "0",
120+
"storage" : {
121+
"0x" : [
122+
"0x0f4240"
123+
]
124+
}
125+
}
126+
},
127+
"pre" : {
128+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
129+
"balance" : "1000000000000000000",
130+
"code" : "0x45600057",
131+
"nonce" : "0",
132+
"storage" : {
133+
}
134+
}
135+
}
136+
},
137+
"number" : {
138+
"callcreates" : [
139+
],
140+
"env" : {
141+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
142+
"currentDifficulty" : "256",
143+
"currentGasLimit" : "1000000",
144+
"currentNumber" : "0",
145+
"currentTimestamp" : "1",
146+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
147+
},
148+
"exec" : {
149+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
150+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
151+
"code" : "0x43600057",
152+
"data" : "0x",
153+
"gas" : "10000",
154+
"gasPrice" : "100000000000000",
155+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
156+
"value" : "1000000000000000000"
157+
},
158+
"gas" : "9898",
159+
"out" : "0x",
160+
"post" : {
161+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
162+
"balance" : "1000000000000000000",
163+
"code" : "0x43600057",
164+
"nonce" : "0",
165+
"storage" : {
166+
}
167+
}
168+
},
169+
"pre" : {
170+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
171+
"balance" : "1000000000000000000",
172+
"code" : "0x43600057",
173+
"nonce" : "0",
174+
"storage" : {
175+
}
176+
}
177+
}
178+
},
179+
"prevhash" : {
180+
"callcreates" : [
181+
],
182+
"env" : {
183+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
184+
"currentDifficulty" : "256",
185+
"currentGasLimit" : "1000000",
186+
"currentNumber" : "0",
187+
"currentTimestamp" : "1",
188+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
189+
},
190+
"exec" : {
191+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
192+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
193+
"code" : "0x40600057",
194+
"data" : "0x",
195+
"gas" : "10000",
196+
"gasPrice" : "100000000000000",
197+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
198+
"value" : "1000000000000000000"
199+
},
200+
"gas" : "9798",
201+
"out" : "0x",
202+
"post" : {
203+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
204+
"balance" : "1000000000000000000",
205+
"code" : "0x40600057",
206+
"nonce" : "0",
207+
"storage" : {
208+
"0x" : [
209+
"0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
210+
]
211+
}
212+
}
213+
},
214+
"pre" : {
215+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
216+
"balance" : "1000000000000000000",
217+
"code" : "0x40600057",
218+
"nonce" : "0",
219+
"storage" : {
220+
}
221+
}
222+
}
223+
},
224+
"timestamp" : {
225+
"callcreates" : [
226+
],
227+
"env" : {
228+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
229+
"currentDifficulty" : "256",
230+
"currentGasLimit" : "1000000",
231+
"currentNumber" : "0",
232+
"currentTimestamp" : "1",
233+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
234+
},
235+
"exec" : {
236+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
237+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
238+
"code" : "0x42600057",
239+
"data" : "0x",
240+
"gas" : "10000",
241+
"gasPrice" : "100000000000000",
242+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
243+
"value" : "1000000000000000000"
244+
},
245+
"gas" : "9798",
246+
"out" : "0x",
247+
"post" : {
248+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
249+
"balance" : "1000000000000000000",
250+
"code" : "0x42600057",
251+
"nonce" : "0",
252+
"storage" : {
253+
"0x" : [
254+
"0x01"
255+
]
256+
}
257+
}
258+
},
259+
"pre" : {
260+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
261+
"balance" : "1000000000000000000",
262+
"code" : "0x42600057",
263+
"nonce" : "0",
264+
"storage" : {
265+
}
266+
}
267+
}
268+
}
269+
}

0 commit comments

Comments
 (0)