Skip to content

Commit b227b10

Browse files
committed
more refund tests
1 parent aefcb97 commit b227b10

File tree

1 file changed

+271
-0
lines changed

1 file changed

+271
-0
lines changed

StateTests/stRefundTest.json

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

0 commit comments

Comments
 (0)