Merge pull request #31 from CJentzsch/develop

Restructered tests in folders in accordance to test suites
This commit is contained in:
Christoph Jentzsch 2014-11-04 13:30:52 +01:00
commit 1c1ba8d161
21 changed files with 64 additions and 1985 deletions

62
StateTests/stExample.json Normal file
View File

@ -0,0 +1,62 @@
{
"add11" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "256",
"currentGasLimit" : "1000000",
"currentNumber" : "0",
"currentTimestamp" : 1,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"out" : "0x",
"post" : {
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "1000000000000100000",
"code" : "0x6001600101600057",
"nonce" : "0",
"storage" : {
"0x" : "0x02"
}
},
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
"balance" : "804",
"code" : "0x",
"nonce" : "0",
"storage" : {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "999999999999899196",
"code" : "0x",
"nonce" : "1",
"storage" : {
}
}
},
"pre" : {
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "1000000000000000000",
"code" : "0x6001600101600057",
"nonce" : 0,
"storage" : {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "1000000000000000000",
"code" : "",
"nonce" : 0,
"storage" : {
}
}
},
"transaction" : {
"data" : "",
"gasLimit" : "10000",
"gasPrice" : "1",
"nonce" : "0",
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : "100000"
}
}
}

View File

@ -3237,4 +3237,4 @@
} }
} }
} }
} }

View File

@ -25,7 +25,7 @@
"gasPrice": "1000000000000" "gasPrice": "1000000000000"
}, },
"callcreates": [], "callcreates": [],
"gas": "9763", "gas": "9663",
"env": { "env": {
"currentTimestamp": "1405282164", "currentTimestamp": "1405282164",
"currentGasLimit": "999023", "currentGasLimit": "999023",

View File

@ -1,59 +0,0 @@
{
"random": {
"pre": {
"7d577a597b2742b498cb5cf0c26cdcd726d39e6e": {
"nonce": "0",
"balance": "1",
"storage": {},
"code": "0x"
},
"82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
"nonce": "0",
"balance": "2500000000000000000",
"storage": {},
"code": "0x"
}
},
"exec": {
"origin": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
"code": "0x60f86363f011b260c16324413d44608e633688a34a6043637657ab003809060b0cff0aff00070f413041f234344542020f0043393104590c09325c13383458f137f0600845f205300a0d36030b35402011393635395454593a015940",
"value": "0",
"address": "7d577a597b2742b498cb5cf0c26cdcd726d39e6e",
"gas": "10000",
"caller": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
"data": "0x604e63f12f6b0c60426319bcb28060986330a233e8604463265e809d0104600a3af0f10ff10d0c1336114408583a33f05135410160540f524057201313440d585513f25c54115c433a0d37045a5212094109f10108125c35100f535a",
"gasPrice": "1000000000000"
},
"callcreates": [],
"gas": "9987",
"env": {
"currentTimestamp": "1405320512",
"currentGasLimit": "999023",
"previousHash": "112a6e7995fcb66376f44e52f011c38d328a9ed3a1dac6eebb1376fccd055fad",
"currentCoinbase": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
"currentDifficulty": "4190208",
"currentNumber": "1"
},
"post": {
"0000000000000000000000000000000000000001": {
"nonce": "0",
"balance": "1",
"storage": {},
"code": "0x"
},
"7d577a597b2742b498cb5cf0c26cdcd726d39e6e": {
"nonce": "0",
"balance": "0",
"storage": {},
"code": "0x"
},
"82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
"nonce": "0",
"balance": "2500000000000000000",
"storage": {},
"code": "0x"
}
},
"out": "0x"
}
}

View File

File diff suppressed because it is too large Load Diff