From 2d561a5373faf392e51f8c579c936549db2966d3 Mon Sep 17 00:00:00 2001 From: Vitalik Buterin Date: Sat, 4 Oct 2014 15:15:37 -0400 Subject: separated out vmtests --- vmtests/vmEnvironmentalInfoTest.json | 1177 ++++++++++++++++++++++++++++++++++ 1 file changed, 1177 insertions(+) create mode 100644 vmtests/vmEnvironmentalInfoTest.json (limited to 'vmtests/vmEnvironmentalInfoTest.json') diff --git a/vmtests/vmEnvironmentalInfoTest.json b/vmtests/vmEnvironmentalInfoTest.json new file mode 100644 index 000000000..a14e429f5 --- /dev/null +++ b/vmtests/vmEnvironmentalInfoTest.json @@ -0,0 +1,1177 @@ +{ + "address0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x30600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x30600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x30600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "address1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "caller" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "code" : "0x30600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x30600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0xcd1722f3947def4cf144679da39c4c32bdc35681" + ] + } + } + }, + "pre" : { + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x30600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "balance0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x73cd1722f3947def4cf144679da39c4c32bdc3568131600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999878", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x73cd1722f3947def4cf144679da39c4c32bdc3568131600057", + "nonce" : "0", + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "0", + "code" : "0x", + "nonce" : "0", + "storage" : { + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x73cd1722f3947def4cf144679da39c4c32bdc3568131600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "balance1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x730f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999778", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x730f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x0de0b6b3a7640000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x730f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "balanceAddress2" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x3031730f572e5295c57f15886f9b263e2f6d2d6c7b5ec6310e600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999756", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x3031730f572e5295c57f15886f9b263e2f6d2d6c7b5ec6310e600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x01" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x3031730f572e5295c57f15886f9b263e2f6d2d6c7b5ec6310e600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "balanceCaller3" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x333173cd1722f3947def4cf144679da39c4c32bdc35681310e600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999756", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x333173cd1722f3947def4cf144679da39c4c32bdc35681310e600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x01" + ] + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "0", + "code" : "0x", + "nonce" : "0", + "storage" : { + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x333173cd1722f3947def4cf144679da39c4c32bdc35681310e600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldatacopy0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x60026001600037600053600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999792", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60026001600037600053600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x2345000000000000000000000000000000000000000000000000000000000000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60026001600037600053600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldatacopy1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x60016001600037600053600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999792", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60016001600037600053600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x2300000000000000000000000000000000000000000000000000000000000000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60016001600037600053600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldatacopy2" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x60006001600037600053600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999892", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60006001600037600053600057", + "nonce" : "0", + "storage" : { + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60006001600037600053600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldataload0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x600035600057", + "data" : "0x0256", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999797", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x600035600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x0256000000000000000000000000000000000000000000000000000000000000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x600035600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldataload1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x600135600057", + "data" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff23", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999797", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x600135600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff23" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x600135600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldataload2" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x600535600057", + "data" : "0x0123456789abcdef0000000000000000000000000000000000000000000000000024", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999797", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x600535600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0xabcdef0000000000000000000000000000000000000000000000000024000000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x600535600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldatasize0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x36600057", + "data" : "0x0256", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x36600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x02" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x36600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldatasize1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x36600057", + "data" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff23", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x36600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x21" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x36600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "calldatasize2" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x36600057", + "data" : "0x230000000000000000000000000000000000000000000000000000000000000023", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x36600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x21" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x36600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "caller" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x33600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x33600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0xcd1722f3947def4cf144679da39c4c32bdc35681" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x33600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "callvalue" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x34600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x34600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x0de0b6b3a7640000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x34600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "codecopy0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x60056000600039600053600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999792", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60056000600039600053600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x6005600060000000000000000000000000000000000000000000000000000000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x60056000600039600053600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "codecopy1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x386000600039600053600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999792", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x386000600039600053600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x3860006000396000536000570000000000000000000000000000000000000000" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x386000600039600053600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "codesize" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x38600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x38600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x04" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x38600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "extcodecopy0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x333b60006000333c600053600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "123456789", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999790", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x333b60006000333c600053600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x6005600057000000000000000000000000000000000000000000000000000000" + ] + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x6005600057", + "nonce" : "0", + "storage" : { + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x333b60006000333c600053600057", + "nonce" : "0", + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x6005600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "extcodesize0" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x38333b0e600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "123456789", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999795", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x38333b0e600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x01" + ] + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x38333b0e600057", + "nonce" : "0", + "storage" : { + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x38333b0e600057", + "nonce" : "0", + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x38333b0e600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "extcodesize1" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "caller" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "code" : "0x333b600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "123456789", + "origin" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : "1000000000000000000" + }, + "gas" : "99999999797", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x38600057", + "nonce" : "0", + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x333b600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x04" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x38600057", + "nonce" : "0", + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : "1000000000000000000", + "code" : "0x333b600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "gasprice" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x3a600057", + "data" : "0x01234567890abcdef01234567890abcdef", + "gas" : "100000000000", + "gasPrice" : "123456789", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x3a600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0x075bcd15" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x3a600057", + "nonce" : "0", + "storage" : { + } + } + } + }, + "origin" : { + "callcreates" : [ + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : "1", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : "0x32600057", + "data" : "0x", + "gas" : "100000000000", + "gasPrice" : "1000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + }, + "gas" : "99999999798", + "out" : "0x", + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x32600057", + "nonce" : "0", + "storage" : { + "0x" : [ + "0xcd1722f3947def4cf144679da39c4c32bdc35681" + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "1000000000000000000", + "code" : "0x32600057", + "nonce" : "0", + "storage" : { + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3 From c1696531a646309b2b286abb7552eb05f1278cd1 Mon Sep 17 00:00:00 2001 From: Christoph Jentzsch Date: Mon, 6 Oct 2014 21:17:09 +0200 Subject: corrected tests and different style for storage --- vmtests/vmEnvironmentalInfoTest.json | 92 +++++++++--------------------------- 1 file changed, 23 insertions(+), 69 deletions(-) (limited to 'vmtests/vmEnvironmentalInfoTest.json') diff --git a/vmtests/vmEnvironmentalInfoTest.json b/vmtests/vmEnvironmentalInfoTest.json index a14e429f5..35ad5f8f1 100644 --- a/vmtests/vmEnvironmentalInfoTest.json +++ b/vmtests/vmEnvironmentalInfoTest.json @@ -28,9 +28,7 @@ "code" : "0x30600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" - ] + "0x" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" } } }, @@ -73,9 +71,7 @@ "code" : "0x30600057", "nonce" : "0", "storage" : { - "0x" : [ - "0xcd1722f3947def4cf144679da39c4c32bdc35681" - ] + "0x" : "0xcd1722f3947def4cf144679da39c4c32bdc35681" } } }, @@ -167,9 +163,7 @@ "code" : "0x730f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x0de0b6b3a7640000" - ] + "0x" : "0x0de0b6b3a7640000" } } }, @@ -212,9 +206,7 @@ "code" : "0x3031730f572e5295c57f15886f9b263e2f6d2d6c7b5ec6310e600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x01" - ] + "0x" : "0x01" } } }, @@ -257,9 +249,7 @@ "code" : "0x333173cd1722f3947def4cf144679da39c4c32bdc35681310e600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x01" - ] + "0x" : "0x01" } }, "cd1722f3947def4cf144679da39c4c32bdc35681" : { @@ -309,9 +299,7 @@ "code" : "0x60026001600037600053600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x2345000000000000000000000000000000000000000000000000000000000000" - ] + "0x" : "0x2345000000000000000000000000000000000000000000000000000000000000" } } }, @@ -354,9 +342,7 @@ "code" : "0x60016001600037600053600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x2300000000000000000000000000000000000000000000000000000000000000" - ] + "0x" : "0x2300000000000000000000000000000000000000000000000000000000000000" } } }, @@ -441,9 +427,7 @@ "code" : "0x600035600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x0256000000000000000000000000000000000000000000000000000000000000" - ] + "0x" : "0x0256000000000000000000000000000000000000000000000000000000000000" } } }, @@ -486,9 +470,7 @@ "code" : "0x600135600057", "nonce" : "0", "storage" : { - "0x" : [ - "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff23" - ] + "0x" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff23" } } }, @@ -531,9 +513,7 @@ "code" : "0x600535600057", "nonce" : "0", "storage" : { - "0x" : [ - "0xabcdef0000000000000000000000000000000000000000000000000024000000" - ] + "0x" : "0xabcdef0000000000000000000000000000000000000000000000000024000000" } } }, @@ -576,9 +556,7 @@ "code" : "0x36600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x02" - ] + "0x" : "0x02" } } }, @@ -621,9 +599,7 @@ "code" : "0x36600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x21" - ] + "0x" : "0x21" } } }, @@ -666,9 +642,7 @@ "code" : "0x36600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x21" - ] + "0x" : "0x21" } } }, @@ -711,9 +685,7 @@ "code" : "0x33600057", "nonce" : "0", "storage" : { - "0x" : [ - "0xcd1722f3947def4cf144679da39c4c32bdc35681" - ] + "0x" : "0xcd1722f3947def4cf144679da39c4c32bdc35681" } } }, @@ -756,9 +728,7 @@ "code" : "0x34600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x0de0b6b3a7640000" - ] + "0x" : "0x0de0b6b3a7640000" } } }, @@ -801,9 +771,7 @@ "code" : "0x60056000600039600053600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x6005600060000000000000000000000000000000000000000000000000000000" - ] + "0x" : "0x6005600060000000000000000000000000000000000000000000000000000000" } } }, @@ -846,9 +814,7 @@ "code" : "0x386000600039600053600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x3860006000396000536000570000000000000000000000000000000000000000" - ] + "0x" : "0x3860006000396000536000570000000000000000000000000000000000000000" } } }, @@ -891,9 +857,7 @@ "code" : "0x38600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x04" - ] + "0x" : "0x04" } } }, @@ -936,9 +900,7 @@ "code" : "0x333b60006000333c600053600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x6005600057000000000000000000000000000000000000000000000000000000" - ] + "0x" : "0x6005600057000000000000000000000000000000000000000000000000000000" } }, "cd1722f3947def4cf144679da39c4c32bdc35681" : { @@ -995,9 +957,7 @@ "code" : "0x38333b0e600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x01" - ] + "0x" : "0x01" } }, "cd1722f3947def4cf144679da39c4c32bdc35681" : { @@ -1061,9 +1021,7 @@ "code" : "0x333b600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x04" - ] + "0x" : "0x04" } } }, @@ -1113,9 +1071,7 @@ "code" : "0x3a600057", "nonce" : "0", "storage" : { - "0x" : [ - "0x075bcd15" - ] + "0x" : "0x075bcd15" } } }, @@ -1158,9 +1114,7 @@ "code" : "0x32600057", "nonce" : "0", "storage" : { - "0x" : [ - "0xcd1722f3947def4cf144679da39c4c32bdc35681" - ] + "0x" : "0xcd1722f3947def4cf144679da39c4c32bdc35681" } } }, -- cgit v1.2.3