Skip to content

Commit 5b3fee6

Browse files
committed
Completed vm tests. Added ADDMOD, MULMOD, POST, CALLSTATELESS
1 parent 9cdd218 commit 5b3fee6

File tree

3 files changed

+1191
-111
lines changed

3 files changed

+1191
-111
lines changed

tmp.json

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"CallToNameRegistratorForeverLoop" : {
3+
"callcreates" : [
4+
{
5+
"data" : "0x601c80600c6000396000f2006001600056016000576000600060006000601730620f4240f1600157",
6+
"destination" : "0000000000000000000000000000000000000000",
7+
"gasLimit" : "1999881",
8+
"value" : "23"
9+
},
10+
{
11+
"data" : "0x",
12+
"destination" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
13+
"gasLimit" : "0",
14+
"value" : "1000000"
15+
}
16+
],
17+
"env" : {
18+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
19+
"currentDifficulty" : "256",
20+
"currentGasLimit" : "10000000",
21+
"currentNumber" : "0",
22+
"currentTimestamp" : "1",
23+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
24+
},
25+
"exec" : {
26+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
27+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
28+
"code" : "0x7f601c80600c6000396000f20060016000560160005760006000600060006017306000547f620f4240f1600157000000000000000000000000000000000000000000000000602054602860006017f06000576000600060006000620f42406000566103e8f1",
29+
"data" : "0x",
30+
"gas" : "2000000",
31+
"gasPrice" : "1",
32+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
33+
"value" : "100000"
34+
},
35+
"gas" : "1998633",
36+
"out" : "0x",
37+
"post" : {
38+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
39+
"balance" : "999977",
40+
"code" : "0x7f601c80600c6000396000f20060016000560160005760006000600060006017306000547f620f4240f1600157000000000000000000000000000000000000000000000000602054602860006017f06000576000600060006000620f42406000566103e8f1",
41+
"nonce" : "1",
42+
"storage" : {
43+
"0x" : [
44+
"0x945304eb96065b2a98b57a48a06ae28d285a71b5"
45+
]
46+
}
47+
},
48+
"945304eb96065b2a98b57a48a06ae28d285a71aa" : {
49+
"balance" : "1000000000000000000",
50+
"code" : "0x6001600056016000576000600060006000601730620f4240f1600157",
51+
"nonce" : "0",
52+
"storage" : {
53+
}
54+
},
55+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
56+
"balance" : "23",
57+
"code" : "0x6001600056016000576000600060006000601730620f4240f1600157",
58+
"nonce" : "0",
59+
"storage" : {
60+
}
61+
}
62+
},
63+
"pre" : {
64+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
65+
"balance" : "2000000",
66+
"code" : "0x7f601c80600c6000396000f20060016000560160005760006000600060006017306000547f620f4240f1600157000000000000000000000000000000000000000000000000602054602860006017f06000576000600060006000620f42406000566103e8f1",
67+
"nonce" : "0",
68+
"storage" : {
69+
}
70+
},
71+
"945304eb96065b2a98b57a48a06ae28d285a71aa" : {
72+
"balance" : "1000000000000000000",
73+
"code" : "0x6001600056016000576000600060006000601730620f4240f1600157",
74+
"nonce" : "0",
75+
"storage" : {
76+
}
77+
}
78+
}
79+
},
80+
"CallToNameRegistratorWrongReceiver" : {
81+
"callcreates" : [
82+
{
83+
"data" : "0xeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00aaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa",
84+
"destination" : "aaaaaaaaaa065b2a98b57a48a06ae28d285a71b5",
85+
"gasLimit" : "491",
86+
"value" : "23"
87+
}
88+
],
89+
"env" : {
90+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
91+
"currentDifficulty" : "256",
92+
"currentGasLimit" : "10000000",
93+
"currentNumber" : "0",
94+
"currentTimestamp" : "1",
95+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
96+
},
97+
"exec" : {
98+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
99+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
100+
"code" : "0x7feeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006000547faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020546000604060406000601773aaaaaaaaaa065b2a98b57a48a06ae28d285a71b56101f4f1600057",
101+
"data" : "0x",
102+
"gas" : "1000",
103+
"gasPrice" : "100000000000000",
104+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
105+
"value" : "100000"
106+
},
107+
"gas" : "755",
108+
"out" : "0x",
109+
"post" : {
110+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
111+
"balance" : "999999999999999977",
112+
"code" : "0x7feeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006000547faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020546000604060406000601773aaaaaaaaaa065b2a98b57a48a06ae28d285a71b56101f4f1600057",
113+
"nonce" : "1",
114+
"storage" : {
115+
"0x" : [
116+
"0x01"
117+
]
118+
}
119+
},
120+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
121+
"balance" : "23",
122+
"code" : "0x600035560f6009590060203560003557",
123+
"nonce" : "0",
124+
"storage" : {
125+
}
126+
},
127+
"aaaaaaaaaa065b2a98b57a48a06ae28d285a71b5" : {
128+
"balance" : "23",
129+
"code" : "0x",
130+
"nonce" : "0",
131+
"storage" : {
132+
}
133+
}
134+
},
135+
"pre" : {
136+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
137+
"balance" : "1000000000000000000",
138+
"code" : "0x7feeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006000547faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020546000604060406000601773aaaaaaaaaa065b2a98b57a48a06ae28d285a71b56101f4f1600057",
139+
"nonce" : "0",
140+
"storage" : {
141+
}
142+
},
143+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
144+
"balance" : "23",
145+
"code" : "0x600035560f6009590060203560003557",
146+
"nonce" : "0",
147+
"storage" : {
148+
}
149+
}
150+
}
151+
}
152+
}

0 commit comments

Comments
 (0)