From e1ae4ad4495dd13fba6346274971a8871cb32607 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 12 May 2014 14:40:47 +0100 Subject: PoC-5 VM tests. --- vmtests.json | 1355 ++++++++++++++++++++++++---------------------------------- 1 file changed, 557 insertions(+), 798 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 6e9467a11..9f46d1c7d 100644 --- a/vmtests.json +++ b/vmtests.json @@ -1,799 +1,558 @@ { - "arith" : { - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "feeMultiplier" : 1, - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "data" : [ - ], - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 - } - ], - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999810, - "extroPrice" : 0, - "nonce" : 1, - "store" : { - "0" : [ - 48, - 0, - 48, - 2, - 48, - 2, - 1, - 48, - 4, - 48, - 4, - 2, - 48, - 4, - 2, - 1, - 48, - 2, - 48, - 2, - 4, - 1, - 48, - 3, - 48, - 2, - 6, - 1, - 48, - 8, - 48, - 2, - 3, - 48, - 2, - 3, - 1, - 17, - 61, - 0 - ] - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "extroPrice" : 0, - "nonce" : 0, - "store" : { - "0" : [ - 48, - 0, - 48, - 2, - 48, - 2, - 1, - 48, - 4, - 48, - 4, - 2, - 48, - 4, - 2, - 1, - 48, - 2, - 48, - 2, - 4, - 1, - 48, - 3, - 48, - 2, - 6, - 1, - 48, - 8, - 48, - 2, - 3, - 48, - 2, - 3, - 1, - 17, - 61 - ] - } - } - }, - "txs" : [ - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 79 - } - ] - }, - "boolean" : { - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "feeMultiplier" : 1, - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "data" : [ - ], - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 - } - ], - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999490, - "extroPrice" : 0, - "nonce" : 4, - "store" : { - "0" : [ - 48, - 21, - 48, - 0, - 48, - 13, - 48, - 1, - 15, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 2, - 17, - 61, - 48, - 42, - 48, - 0, - 48, - 34, - 48, - 1, - 15, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 3, - 17, - 61, - 48, - 63, - 48, - 0, - 48, - 55, - 48, - 0, - 15, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 4, - 17, - 61, - 48, - 84, - 48, - 0, - 48, - 76, - 48, - 0, - 15, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 5, - 17, - 61, - 48, - 104, - 48, - 1, - 48, - 96, - 48, - 1, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 12, - 17, - 61, - 48, - 124, - 48, - 1, - 48, - 116, - 48, - 1, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 13, - 17, - 61, - 48, - 144, - 48, - 1, - 48, - 136, - 48, - 0, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 14, - 17, - 61, - 48, - 164, - 48, - 1, - 48, - 156, - 48, - 0, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 15, - 17, - 61, - 0 - ] - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "extroPrice" : 0, - "nonce" : 0, - "store" : { - "0" : [ - 48, - 21, - 48, - 0, - 48, - 13, - 48, - 1, - 15, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 2, - 17, - 61, - 48, - 42, - 48, - 0, - 48, - 34, - 48, - 1, - 15, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 3, - 17, - 61, - 48, - 63, - 48, - 0, - 48, - 55, - 48, - 0, - 15, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 4, - 17, - 61, - 48, - 84, - 48, - 0, - 48, - 76, - 48, - 0, - 15, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 5, - 17, - 61, - 48, - 104, - 48, - 1, - 48, - 96, - 48, - 1, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 12, - 17, - 61, - 48, - 124, - 48, - 1, - 48, - 116, - 48, - 1, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 13, - 17, - 61, - 48, - 144, - 48, - 1, - 48, - 136, - 48, - 0, - 57, - 49, - 48, - 1, - 15, - 57, - 48, - 0, - 48, - 14, - 17, - 61, - 48, - 164, - 48, - 1, - 48, - 156, - 48, - 0, - 57, - 49, - 48, - 0, - 15, - 57, - 48, - 0, - 48, - 15, - 17, - 61 - ] - } - } - }, - "txs" : [ - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 2 - }, - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 12 - }, - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 13 - }, - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 14 - } - ] - }, - "fan" : { - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "feeMultiplier" : 1, - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "data" : [ - "0xcd1722f3947def4cf144679da39c4c32bdc35681", - "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" - ], - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 - } - ], - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "115792089237316195423570985008687907853269984665640564039456684007913129639415", - "extroPrice" : 0, - "nonce" : 2, - "store" : { - "0" : [ - 48, - 8, - 48, - 100000000000000000, - 18, - 12, - 57, - 0, - 19, - 48, - 100000000000000000, - 18, - 3, - 4, - 48, - "53545048851664692004060005546177757518248266694338929000325674008596820525056", - 55, - 48, - 0, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 55, - 48, - 53, - 19, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 54, - 10, - 15, - 57, - 48, - 0, - 48, - "53545048851664692004060005546177757518248266694338929000325674008596820525056", - 54, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 54, - 20, - 61, - 48, - 1, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 54, - 1, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 55, - 48, - 22, - 56, - 0 - ], - "47492849101242970779199036819969649705442767148016637594308774690745619578880" : [ - 2 - ], - "53545048851664692004060005546177757518248266694338929000325674008596820525056" : [ - 450000000000000000 - ] - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 0, - "extroPrice" : 0, - "nonce" : 0, - "store" : { - "0" : [ - 48, - 8, - 48, - 100000000000000000, - 18, - 12, - 57, - 0, - 19, - 48, - 100000000000000000, - 18, - 3, - 4, - 48, - "53545048851664692004060005546177757518248266694338929000325674008596820525056", - 55, - 48, - 0, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 55, - 48, - 53, - 19, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 54, - 10, - 15, - 57, - 48, - 0, - 48, - "53545048851664692004060005546177757518248266694338929000325674008596820525056", - 54, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 54, - 20, - 61, - 48, - 1, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 54, - 1, - 48, - "47492849101242970779199036819969649705442767148016637594308774690745619578880", - 55, - 48, - 22, - 56 - ] - } - } - }, - "txs" : [ - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 450000000000000000 - }, - { - "data" : [ - ], - "destination" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "value" : 450000000000000000 - } - ] - }, - "mktx" : { - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "feeMultiplier" : 1, - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "data" : [ - ], - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 - } - ], - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 499999999999999900, - "extroPrice" : 0, - "nonce" : 1, - "store" : { - "0" : [ - 48, - 0, - 48, - 500000000000000000, - 17, - 61, - 0 - ] - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "extroPrice" : 0, - "nonce" : 0, - "store" : { - "0" : [ - 48, - 0, - 48, - 500000000000000000, - 17, - 61 - ] - } - } - }, - "txs" : [ - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 500000000000000000 - } - ] - }, - "suicide" : { - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "feeMultiplier" : 1, - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "data" : [ - ], - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 - } - ], - "post" : { - "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : 1000000000000000010, - "extroPrice" : 0, - "nonce" : 0 - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "extroPrice" : 0, - "nonce" : 0, - "store" : { - "0" : [ - 17, - 63 - ] - } - } - }, - "txs" : [ - ] - } -} + "arith" : { + "callcreates" : [ + { + "data" : [ + 0, + 0, + 0, + 0 + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9776, + "value" : 4 + } + ], + "env" : { + "code" : "{ (call (- (gas) 200) (caller) (+ 2 2 (* 4 4 4) (/ 2 2) (% 3 2) (- 8 2 2)) 0 0 0 0) }", + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "gasLimit" : null, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "data" : "", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + } + ], + "gas" : 9954, + "out" : [ + ], + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 999999999999999992, + "nonce" : 1, + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : 4, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + ] + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 96, + 2, + 96, + 8, + 3, + 96, + 2, + 96, + 3, + 6, + 96, + 2, + 96, + 2, + 4, + 96, + 4, + 96, + 4, + 96, + 4, + 2, + 96, + 2, + 96, + 2, + 1, + 51, + 96, + 200, + 92, + 3, + 241 + ] + } + }, + "boolean" : { + "callcreates" : [ + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9786, + "value" : 2 + }, + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9732, + "value" : 12 + }, + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9696, + "value" : 13 + }, + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9660, + "value" : 14 + } + ], + "env" : { + "code" : "(seq (when (and 1 1) (call (- (gas) 200) (caller) 2 0 0 0 0)) (when (and 1 0) (call (- (gas) 200) (caller) 3 0 0 0 0)) (when (and 0 1) (call (- (gas) 200) (caller) 4 0 0 0 0)) (when (and 0 0) (call (- (gas) 200) (caller) 5 0 0 0 0)) (when (or 1 1) (call (- (gas) 200) (caller) 12 0 0 0 0)) (when (or 1 0) (call (- (gas) 200) (caller) 13 0 0 0 0)) (when (or 0 1) (call (- (gas) 200) (caller) 14 0 0 0 0)) (when (or 0 0) (call (- (gas) 200) (caller) 15 0 0 0 0)) )", + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "gasLimit" : null, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "data" : "", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + } + ], + "gas" : 9832, + "out" : [ + ], + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 999999999999999918, + "nonce" : 4, + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : 41, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + ] + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + 96, + 1, + 96, + 1, + 16, + 15, + 99, + 0, + 0, + 0, + 29, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 16, + 15, + 99, + 0, + 0, + 0, + 58, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 3, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 16, + 15, + 99, + 0, + 0, + 0, + 87, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 4, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 16, + 15, + 99, + 0, + 0, + 0, + 116, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 5, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 1, + 17, + 15, + 99, + 0, + 0, + 0, + 145, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 12, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 17, + 15, + 99, + 0, + 0, + 0, + 174, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 13, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 17, + 15, + 99, + 0, + 0, + 0, + 203, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 14, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 17, + 15, + 99, + 0, + 0, + 0, + 232, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 15, + 51, + 96, + 200, + 92, + 3, + 241, + 80 + ] + } + }, + "mktx" : { + "callcreates" : [ + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9792, + "value" : 500000000000000000 + } + ], + "env" : { + "code" : "(call (- (gas) 200) (caller) 500000000000000000 0 0 0 0)", + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "gasLimit" : null, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "data" : "", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + } + ], + "gas" : 9971, + "out" : [ + ], + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 0, + "nonce" : 1, + "storage" : { + } + }, + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : 500000000000000000, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + ] + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 103, + 6, + 240, + 91, + 89, + 211, + 178, + 0, + 0, + 51, + 96, + 200, + 92, + 3, + 241 + ] + } + }, + "suicide" : { + "callcreates" : [ + ], + "env" : { + "code" : "(suicide (caller))", + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "gasLimit" : null, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "data" : "", + "gas" : "10000", + "gasPrice" : "100000000000000", + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : "1000000000000000000" + } + ], + "gas" : 9999, + "out" : [ + ], + "post" : { + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + ] + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "storage" : { + } + }, + "code" : [ + 51, + 255 + ] + } + } +} \ No newline at end of file -- cgit v1.2.3 From a2257f3471dd4b472bc156be4575ea0f26a8a046 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 30 May 2014 17:50:18 +0200 Subject: VM tests. --- vmtests.json | 868 ++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 531 insertions(+), 337 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 9f46d1c7d..4398e398b 100644 --- a/vmtests.json +++ b/vmtests.json @@ -3,14 +3,10 @@ "callcreates" : [ { "data" : [ - 0, - 0, - 0, - 0 ], "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9776, - "value" : 4 + "gasLimit" : 9792, + "value" : 74 } ], "env" : { @@ -20,7 +16,6 @@ "currentGasLimit" : "1000000", "currentNumber" : "0", "currentTimestamp" : 1, - "gasLimit" : null, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : [ @@ -34,77 +29,68 @@ "value" : "1000000000000000000" } ], - "gas" : 9954, + "gas" : 9971, "out" : [ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999992, + "balance" : 999999999999999852, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 74, + 51, + 96, + 200, + 92, + 3, + 241 + ], "nonce" : 1, "storage" : { } }, "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : 4, + "balance" : 74, + "code" : [ + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - ] + } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 74, + 51, + 96, + 200, + 92, + 3, + 241 + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 96, - 2, - 96, - 8, - 3, - 96, - 2, - 96, - 3, - 6, - 96, - 2, - 96, - 2, - 4, - 96, - 4, - 96, - 4, - 96, - 4, - 2, - 96, - 2, - 96, - 2, - 1, - 51, - 96, - 200, - 92, - 3, - 241 - ] + } } }, "boolean" : { @@ -145,7 +131,6 @@ "currentGasLimit" : "1000000", "currentNumber" : "0", "currentTimestamp" : 1, - "gasLimit" : null, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : [ @@ -165,260 +150,446 @@ "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 999999999999999918, + "code" : [ + 96, + 1, + 96, + 1, + 16, + 15, + 96, + 26, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 16, + 15, + 96, + 52, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 3, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 16, + 15, + 96, + 78, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 4, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 16, + 15, + 96, + 104, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 5, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 1, + 17, + 15, + 96, + 130, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 12, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 17, + 15, + 96, + 156, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 13, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 17, + 15, + 96, + 182, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 14, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 17, + 15, + 96, + 208, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 15, + 51, + 96, + 200, + 92, + 3, + 241, + 80 + ], "nonce" : 4, "storage" : { } }, "cd1722f3947def4cf144679da39c4c32bdc35681" : { "balance" : 41, + "code" : [ + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - ] + } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, + "code" : [ + 96, + 1, + 96, + 1, + 16, + 15, + 96, + 26, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 16, + 15, + 96, + 52, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 3, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 16, + 15, + 96, + 78, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 4, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 16, + 15, + 96, + 104, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 5, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 1, + 17, + 15, + 96, + 130, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 12, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 17, + 15, + 96, + 156, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 13, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 17, + 15, + 96, + 182, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 14, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 17, + 15, + 96, + 208, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 15, + 51, + 96, + 200, + 92, + 3, + 241, + 80 + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - 96, - 1, - 96, - 1, - 16, - 15, - 99, - 0, - 0, - 0, - 29, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 16, - 15, - 99, - 0, - 0, - 0, - 58, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 3, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 16, - 15, - 99, - 0, - 0, - 0, - 87, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 4, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 16, - 15, - 99, - 0, - 0, - 0, - 116, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 5, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 1, - 17, - 15, - 99, - 0, - 0, - 0, - 145, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 12, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 17, - 15, - 99, - 0, - 0, - 0, - 174, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 13, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 17, - 15, - 99, - 0, - 0, - 0, - 203, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 14, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 17, - 15, - 99, - 0, - 0, - 0, - 232, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 15, - 51, - 96, - 200, - 92, - 3, - 241, - 80 - ] + } } }, "mktx" : { @@ -438,7 +609,6 @@ "currentGasLimit" : "1000000", "currentNumber" : "0", "currentTimestamp" : 1, - "gasLimit" : null, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : [ @@ -458,51 +628,76 @@ "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 0, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 103, + 6, + 240, + 91, + 89, + 211, + 178, + 0, + 0, + 51, + 96, + 200, + 92, + 3, + 241 + ], "nonce" : 1, "storage" : { } }, "cd1722f3947def4cf144679da39c4c32bdc35681" : { "balance" : 500000000000000000, + "code" : [ + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - ] + } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 103, + 6, + 240, + 91, + 89, + 211, + 178, + 0, + 0, + 51, + 96, + 200, + 92, + 3, + 241 + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 103, - 6, - 240, - 91, - 89, - 211, - 178, - 0, - 0, - 51, - 96, - 200, - 92, - 3, - 241 - ] + } } }, "suicide" : { @@ -515,7 +710,6 @@ "currentGasLimit" : "1000000", "currentNumber" : "0", "currentTimestamp" : 1, - "gasLimit" : null, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : [ @@ -535,24 +729,24 @@ "post" : { "cd1722f3947def4cf144679da39c4c32bdc35681" : { "balance" : 1000000000000000000, + "code" : [ + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - ] + } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, + "code" : [ + 51, + 255 + ], "nonce" : 0, "storage" : { } - }, - "code" : [ - 51, - 255 - ] + } } } } \ No newline at end of file -- cgit v1.2.3 From c818d132022c228c5b04ab82871f5971049b0c6d Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 27 Jun 2014 18:18:24 +0200 Subject: Removed arrays from Trie tests JSON as per conformance guide and changed vocabulary to match other tests. VM test updates. --- vmtests.json | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 4398e398b..33f0844c3 100644 --- a/vmtests.json +++ b/vmtests.json @@ -10,7 +10,6 @@ } ], "env" : { - "code" : "{ (call (- (gas) 200) (caller) (+ 2 2 (* 4 4 4) (/ 2 2) (% 3 2) (- 8 2 2)) 0 0 0 0) }", "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "256", "currentGasLimit" : "1000000", @@ -125,7 +124,6 @@ } ], "env" : { - "code" : "(seq (when (and 1 1) (call (- (gas) 200) (caller) 2 0 0 0 0)) (when (and 1 0) (call (- (gas) 200) (caller) 3 0 0 0 0)) (when (and 0 1) (call (- (gas) 200) (caller) 4 0 0 0 0)) (when (and 0 0) (call (- (gas) 200) (caller) 5 0 0 0 0)) (when (or 1 1) (call (- (gas) 200) (caller) 12 0 0 0 0)) (when (or 1 0) (call (- (gas) 200) (caller) 13 0 0 0 0)) (when (or 0 1) (call (- (gas) 200) (caller) 14 0 0 0 0)) (when (or 0 0) (call (- (gas) 200) (caller) 15 0 0 0 0)) )", "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "256", "currentGasLimit" : "1000000", @@ -603,7 +601,6 @@ } ], "env" : { - "code" : "(call (- (gas) 200) (caller) 500000000000000000 0 0 0 0)", "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "256", "currentGasLimit" : "1000000", @@ -704,7 +701,6 @@ "callcreates" : [ ], "env" : { - "code" : "(suicide (caller))", "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "256", "currentGasLimit" : "1000000", -- cgit v1.2.3 From 5021e0dd83bdb8b23ca3dcc72293c6737e8165a8 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 27 Jun 2014 21:35:26 +0200 Subject: VM test framework updated. --- vmtests.json | 341 +++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 297 insertions(+), 44 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 33f0844c3..3c05fb8e7 100644 --- a/vmtests.json +++ b/vmtests.json @@ -17,17 +17,34 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 74, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9971, "out" : [ ], @@ -131,17 +148,226 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 1, + 96, + 1, + 16, + 15, + 96, + 26, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 16, + 15, + 96, + 52, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 3, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 16, + 15, + 96, + 78, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 4, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 16, + 15, + 96, + 104, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 5, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 1, + 17, + 15, + 96, + 130, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 12, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 17, + 15, + 96, + 156, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 13, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 17, + 15, + 96, + 182, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 14, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 17, + 15, + 96, + 208, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 15, + 51, + 96, + 200, + 92, + 3, + 241, + 80 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9832, "out" : [ ], @@ -608,17 +834,41 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 103, + 6, + 240, + 91, + 89, + 211, + 178, + 0, + 0, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9971, "out" : [ ], @@ -708,17 +958,20 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 128, + 175 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9999, "out" : [ ], -- cgit v1.2.3 From edd3a00c2a8d78867d8bb1557697455729a03027 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 28 Jun 2014 18:22:18 +0200 Subject: Additional test for jeff. Now use the 0x... notation. --- vmtests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 3c05fb8e7..9c0a58e91 100644 --- a/vmtests.json +++ b/vmtests.json @@ -963,7 +963,7 @@ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : [ 128, - 175 + 191 ], "data" : [ ], -- cgit v1.2.3 From bba38980bdfa6ba6fddf0419479ad2405a3cb079 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 2 Jul 2014 19:43:06 +0200 Subject: New tests. --- vmtests.json | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 9c0a58e91..e7e4f1982 100644 --- a/vmtests.json +++ b/vmtests.json @@ -50,7 +50,7 @@ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999852, + "balance" : 999999999999999926, "code" : [ 96, 0, @@ -69,14 +69,6 @@ 3, 241 ], - "nonce" : 1, - "storage" : { - } - }, - "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : 74, - "code" : [ - ], "nonce" : 0, "storage" : { } @@ -373,7 +365,7 @@ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999918, + "balance" : 999999999999999959, "code" : [ 96, 1, @@ -584,14 +576,6 @@ 241, 80 ], - "nonce" : 4, - "storage" : { - } - }, - "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : 41, - "code" : [ - ], "nonce" : 0, "storage" : { } @@ -874,7 +858,7 @@ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 0, + "balance" : 500000000000000000, "code" : [ 96, 0, @@ -900,14 +884,6 @@ 3, 241 ], - "nonce" : 1, - "storage" : { - } - }, - "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : 500000000000000000, - "code" : [ - ], "nonce" : 0, "storage" : { } @@ -962,8 +938,8 @@ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : [ - 128, - 191 + 144, + 37 ], "data" : [ ], -- cgit v1.2.3 From 2b6da2f5f21b60ebca44a5866888b00f736f92b2 Mon Sep 17 00:00:00 2001 From: romanman Date: Thu, 3 Jul 2014 17:45:04 +0100 Subject: Update vmtests.json arith testcase updated --- vmtests.json | 105 ++--------------------------------------------------------- 1 file changed, 2 insertions(+), 103 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index e7e4f1982..d3618b90e 100644 --- a/vmtests.json +++ b/vmtests.json @@ -1,106 +1,5 @@ { - "arith" : { - "callcreates" : [ - { - "data" : [ - ], - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9792, - "value" : 74 - } - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : 1, - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 74, - 51, - 96, - 200, - 92, - 3, - 241 - ], - "data" : [ - ], - "gas" : 10000, - "gasPrice" : 100000000000000, - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 - }, - "gas" : 9971, - "out" : [ - ], - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999926, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 74, - 51, - 96, - 200, - 92, - 3, - 241 - ], - "nonce" : 0, - "storage" : { - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 74, - 51, - 96, - 200, - 92, - 3, - 241 - ], - "nonce" : 0, - "storage" : { - } - } - } - }, + "arith" : {"callcreates":[{"data":[],"destination":"cd1722f3947def4cf144679da39c4c32bdc35681","gasLimit":200,"value":74}],"env":{"currentCoinbase":"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba","currentDifficulty":"256","currentGasLimit":"1000000","currentNumber":"0","currentTimestamp":1,"previousHash":"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"},"exec":{"address":"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6","caller":"cd1722f3947def4cf144679da39c4c32bdc35681","code":["0x6000600060006000604a3360c8f1"],"data":[],"gas":10000,"gasPrice":100000000000000,"origin":"cd1722f3947def4cf144679da39c4c32bdc35681","value":1000000000000000000},"gas":9773,"out":[],"post":{"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6":{"balance":999999999999999926,"code":[],"nonce":0,"storage":{}}},"pre":{"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6":{"balance":1000000000000000000,"code":[],"nonce":0,"storage":{}}}}, "boolean" : { "callcreates" : [ { @@ -974,4 +873,4 @@ } } } -} \ No newline at end of file +} -- cgit v1.2.3 From 5e0123fbe1573dcf8157995f3ef2f7ce625235a4 Mon Sep 17 00:00:00 2001 From: romanman Date: Fri, 4 Jul 2014 10:23:04 +0100 Subject: Update vmtests.json --- vmtests.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index d3618b90e..3404f2ab8 100644 --- a/vmtests.json +++ b/vmtests.json @@ -1,5 +1,29 @@ { - "arith" : {"callcreates":[{"data":[],"destination":"cd1722f3947def4cf144679da39c4c32bdc35681","gasLimit":200,"value":74}],"env":{"currentCoinbase":"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba","currentDifficulty":"256","currentGasLimit":"1000000","currentNumber":"0","currentTimestamp":1,"previousHash":"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"},"exec":{"address":"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6","caller":"cd1722f3947def4cf144679da39c4c32bdc35681","code":["0x6000600060006000604a3360c8f1"],"data":[],"gas":10000,"gasPrice":100000000000000,"origin":"cd1722f3947def4cf144679da39c4c32bdc35681","value":1000000000000000000},"gas":9773,"out":[],"post":{"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6":{"balance":999999999999999926,"code":[],"nonce":0,"storage":{}}},"pre":{"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6":{"balance":1000000000000000000,"code":[],"nonce":0,"storage":{}}}}, + "arith" : { + "callcreates":[ {"data":[],"destination":"cd1722f3947def4cf144679da39c4c32bdc35681","gasLimit":200,"value":74}], + "env" : {"currentCoinbase":"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty":"256", + "currentGasLimit":"1000000", + "currentNumber":"0", + "currentTimestamp":1, + "previousHash":"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller":"cd1722f3947def4cf144679da39c4c32bdc35681", + "code":["0x6000600060006000604a3360c8f1"], + "data":[], + "gas":10000, + "gasPrice":100000000000000, + "origin":"cd1722f3947def4cf144679da39c4c32bdc35681", + "value":1000000000000000000 + }, + "gas":9773, + "out":[], + "post":{ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": + {"balance":999999999999999926,"code":[],"nonce":0,"storage":{}}}, + "pre":{"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": + {"balance":1000000000000000000,"code":[],"nonce":0,"storage":{}}}}, + "boolean" : { "callcreates" : [ { -- cgit v1.2.3 From a09aae0efe9a1cb94be3e0386532c532262956ec Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 6 Jul 2014 15:46:01 +0200 Subject: Fix VM tests. --- vmtests.json | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 203 insertions(+), 27 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 3404f2ab8..38550d112 100644 --- a/vmtests.json +++ b/vmtests.json @@ -1,29 +1,205 @@ { "arith" : { - "callcreates":[ {"data":[],"destination":"cd1722f3947def4cf144679da39c4c32bdc35681","gasLimit":200,"value":74}], - "env" : {"currentCoinbase":"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty":"256", - "currentGasLimit":"1000000", - "currentNumber":"0", - "currentTimestamp":1, - "previousHash":"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller":"cd1722f3947def4cf144679da39c4c32bdc35681", - "code":["0x6000600060006000604a3360c8f1"], - "data":[], - "gas":10000, - "gasPrice":100000000000000, - "origin":"cd1722f3947def4cf144679da39c4c32bdc35681", - "value":1000000000000000000 - }, - "gas":9773, - "out":[], - "post":{ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": - {"balance":999999999999999926,"code":[],"nonce":0,"storage":{}}}, - "pre":{"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": - {"balance":1000000000000000000,"code":[],"nonce":0,"storage":{}}}}, - + "callcreates" : [ + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "gasLimit" : 9770, + "value" : 74 + } + ], + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentGasLimit" : "1000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 96, + 2, + 96, + 8, + 3, + 3, + 96, + 2, + 96, + 3, + 6, + 96, + 2, + 96, + 2, + 4, + 96, + 4, + 96, + 4, + 96, + 4, + 2, + 2, + 96, + 2, + 96, + 2, + 1, + 1, + 1, + 1, + 1, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, + "gas" : 9949, + "out" : [ + ], + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 999999999999999926, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 96, + 2, + 96, + 8, + 3, + 3, + 96, + 2, + 96, + 3, + 6, + 96, + 2, + 96, + 2, + 4, + 96, + 4, + 96, + 4, + 96, + 4, + 2, + 2, + 96, + 2, + 96, + 2, + 1, + 1, + 1, + 1, + 1, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "nonce" : 0, + "storage" : { + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 96, + 2, + 96, + 8, + 3, + 3, + 96, + 2, + 96, + 3, + 6, + 96, + 2, + 96, + 2, + 4, + 96, + 4, + 96, + 4, + 96, + 4, + 2, + 2, + 96, + 2, + 96, + 2, + 1, + 1, + 1, + 1, + 1, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "nonce" : 0, + "storage" : { + } + } + } + }, "boolean" : { "callcreates" : [ { @@ -861,8 +1037,8 @@ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : [ - 144, - 37 + 160, + 112 ], "data" : [ ], @@ -897,4 +1073,4 @@ } } } -} +} \ No newline at end of file -- cgit v1.2.3 From 5e83ea82283f042df384d7ff20183ba51760d893 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 6 Jul 2014 16:17:12 +0200 Subject: Prettier VM tests. --- vmtests.json | 910 ++--------------------------------------------------------- 1 file changed, 22 insertions(+), 888 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 38550d112..605d0c018 100644 --- a/vmtests.json +++ b/vmtests.json @@ -2,8 +2,7 @@ "arith" : { "callcreates" : [ { - "data" : [ - ], + "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "gasLimit" : 9770, "value" : 74 @@ -20,59 +19,8 @@ "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 96, - 2, - 96, - 8, - 3, - 3, - 96, - 2, - 96, - 3, - 6, - 96, - 2, - 96, - 2, - 4, - 96, - 4, - 96, - 4, - 96, - 4, - 2, - 2, - 96, - 2, - 96, - 2, - 1, - 1, - 1, - 1, - 1, - 51, - 96, - 200, - 92, - 3, - 241 - ], - "data" : [ - ], + "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", + "data" : "0x", "gas" : 10000, "gasPrice" : 100000000000000, "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", @@ -84,57 +32,7 @@ "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 999999999999999926, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 96, - 2, - 96, - 8, - 3, - 3, - 96, - 2, - 96, - 3, - 6, - 96, - 2, - 96, - 2, - 4, - 96, - 4, - 96, - 4, - 96, - 4, - 2, - 2, - 96, - 2, - 96, - 2, - 1, - 1, - 1, - 1, - 1, - 51, - 96, - 200, - 92, - 3, - 241 - ], + "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", "nonce" : 0, "storage" : { } @@ -143,57 +41,7 @@ "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 96, - 2, - 96, - 8, - 3, - 3, - 96, - 2, - 96, - 3, - 6, - 96, - 2, - 96, - 2, - 4, - 96, - 4, - 96, - 4, - 96, - 4, - 2, - 2, - 96, - 2, - 96, - 2, - 1, - 1, - 1, - 1, - 1, - 51, - 96, - 200, - 92, - 3, - 241 - ], + "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", "nonce" : 0, "storage" : { } @@ -203,29 +51,25 @@ "boolean" : { "callcreates" : [ { - "data" : [ - ], + "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "gasLimit" : 9786, "value" : 2 }, { - "data" : [ - ], + "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "gasLimit" : 9732, "value" : 12 }, { - "data" : [ - ], + "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "gasLimit" : 9696, "value" : 13 }, { - "data" : [ - ], + "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "gasLimit" : 9660, "value" : 14 @@ -242,218 +86,8 @@ "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : [ - 96, - 1, - 96, - 1, - 16, - 15, - 96, - 26, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 16, - 15, - 96, - 52, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 3, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 16, - 15, - 96, - 78, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 4, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 16, - 15, - 96, - 104, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 5, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 1, - 17, - 15, - 96, - 130, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 12, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 17, - 15, - 96, - 156, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 13, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 17, - 15, - 96, - 182, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 14, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 17, - 15, - 96, - 208, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 15, - 51, - 96, - 200, - 92, - 3, - 241, - 80 - ], - "data" : [ - ], + "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", + "data" : "0x", "gas" : 10000, "gasPrice" : 100000000000000, "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", @@ -465,216 +99,7 @@ "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 999999999999999959, - "code" : [ - 96, - 1, - 96, - 1, - 16, - 15, - 96, - 26, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 16, - 15, - 96, - 52, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 3, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 16, - 15, - 96, - 78, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 4, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 16, - 15, - 96, - 104, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 5, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 1, - 17, - 15, - 96, - 130, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 12, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 17, - 15, - 96, - 156, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 13, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 17, - 15, - 96, - 182, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 14, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 17, - 15, - 96, - 208, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 15, - 51, - 96, - 200, - 92, - 3, - 241, - 80 - ], + "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", "nonce" : 0, "storage" : { } @@ -683,216 +108,7 @@ "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, - "code" : [ - 96, - 1, - 96, - 1, - 16, - 15, - 96, - 26, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 2, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 16, - 15, - 96, - 52, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 3, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 16, - 15, - 96, - 78, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 4, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 16, - 15, - 96, - 104, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 5, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 1, - 17, - 15, - 96, - 130, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 12, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 1, - 17, - 15, - 96, - 156, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 13, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 1, - 96, - 0, - 17, - 15, - 96, - 182, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 14, - 51, - 96, - 200, - 92, - 3, - 241, - 80, - 96, - 0, - 96, - 0, - 17, - 15, - 96, - 208, - 89, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 15, - 51, - 96, - 200, - 92, - 3, - 241, - 80 - ], + "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", "nonce" : 0, "storage" : { } @@ -902,8 +118,7 @@ "mktx" : { "callcreates" : [ { - "data" : [ - ], + "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "gasLimit" : 9792, "value" : 500000000000000000 @@ -920,33 +135,8 @@ "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 103, - 6, - 240, - 91, - 89, - 211, - 178, - 0, - 0, - 51, - 96, - 200, - 92, - 3, - 241 - ], - "data" : [ - ], + "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", + "data" : "0x", "gas" : 10000, "gasPrice" : 100000000000000, "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", @@ -958,31 +148,7 @@ "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 500000000000000000, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 103, - 6, - 240, - 91, - 89, - 211, - 178, - 0, - 0, - 51, - 96, - 200, - 92, - 3, - 241 - ], + "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", "nonce" : 0, "storage" : { } @@ -991,31 +157,7 @@ "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, - "code" : [ - 96, - 0, - 96, - 0, - 96, - 0, - 96, - 0, - 103, - 6, - 240, - 91, - 89, - 211, - 178, - 0, - 0, - 51, - 96, - 200, - 92, - 3, - 241 - ], + "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", "nonce" : 0, "storage" : { } @@ -1036,12 +178,8 @@ "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : [ - 160, - 112 - ], - "data" : [ - ], + "code" : "0x10f9", + "data" : "0x", "gas" : 10000, "gasPrice" : 100000000000000, "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", @@ -1053,8 +191,7 @@ "post" : { "cd1722f3947def4cf144679da39c4c32bdc35681" : { "balance" : 1000000000000000000, - "code" : [ - ], + "code" : "0x", "nonce" : 0, "storage" : { } @@ -1063,10 +200,7 @@ "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : 1000000000000000000, - "code" : [ - 51, - 255 - ], + "code" : "0x33ff", "nonce" : 0, "storage" : { } -- cgit v1.2.3 From d659f469a9ddcdd144a332da64b826908b0f7872 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 10 Jul 2014 10:16:25 +0100 Subject: Code fixes. --- vmtests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 605d0c018..b290b613f 100644 --- a/vmtests.json +++ b/vmtests.json @@ -178,7 +178,7 @@ "exec" : { "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x10f9", + "code" : "0x33ff", "data" : "0x", "gas" : 10000, "gasPrice" : 100000000000000, -- cgit v1.2.3 From ddfa3af45da9d5d81da38745ae23ee93ce390c2b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 10 Jul 2014 11:28:35 +0100 Subject: Everything a string. --- vmtests.json | 96 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index b290b613f..8deade7f7 100644 --- a/vmtests.json +++ b/vmtests.json @@ -4,8 +4,8 @@ { "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9770, - "value" : 74 + "gasLimit" : "9770", + "value" : "74" } ], "env" : { @@ -13,7 +13,7 @@ "currentDifficulty" : "256", "currentGasLimit" : "1000000", "currentNumber" : "0", - "currentTimestamp" : 1, + "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : { @@ -21,28 +21,28 @@ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", "data" : "0x", - "gas" : 10000, - "gasPrice" : 100000000000000, + "gas" : "10000", + "gasPrice" : "100000000000000", "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 + "value" : "1000000000000000000" }, - "gas" : 9949, + "gas" : "9949", "out" : [ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999926, + "balance" : "999999999999999926", "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", - "nonce" : 0, + "nonce" : "0", "storage" : { } } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, + "balance" : "1000000000000000000", "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", - "nonce" : 0, + "nonce" : "0", "storage" : { } } @@ -53,26 +53,26 @@ { "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9786, - "value" : 2 + "gasLimit" : "9786", + "value" : "2" }, { "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9732, - "value" : 12 + "gasLimit" : "9732", + "value" : "12" }, { "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9696, - "value" : 13 + "gasLimit" : "9696", + "value" : "13" }, { "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9660, - "value" : 14 + "gasLimit" : "9660", + "value" : "14" } ], "env" : { @@ -80,7 +80,7 @@ "currentDifficulty" : "256", "currentGasLimit" : "1000000", "currentNumber" : "0", - "currentTimestamp" : 1, + "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : { @@ -88,28 +88,28 @@ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", "data" : "0x", - "gas" : 10000, - "gasPrice" : 100000000000000, + "gas" : "10000", + "gasPrice" : "100000000000000", "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 + "value" : "1000000000000000000" }, - "gas" : 9832, + "gas" : "9832", "out" : [ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 999999999999999959, + "balance" : "999999999999999959", "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", - "nonce" : 0, + "nonce" : "0", "storage" : { } } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, + "balance" : "1000000000000000000", "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", - "nonce" : 0, + "nonce" : "0", "storage" : { } } @@ -120,8 +120,8 @@ { "data" : "0x", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : 9792, - "value" : 500000000000000000 + "gasLimit" : "9792", + "value" : "500000000000000000" } ], "env" : { @@ -129,7 +129,7 @@ "currentDifficulty" : "256", "currentGasLimit" : "1000000", "currentNumber" : "0", - "currentTimestamp" : 1, + "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : { @@ -137,28 +137,28 @@ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", "data" : "0x", - "gas" : 10000, - "gasPrice" : 100000000000000, + "gas" : "10000", + "gasPrice" : "100000000000000", "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 + "value" : "1000000000000000000" }, - "gas" : 9971, + "gas" : "9971", "out" : [ ], "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 500000000000000000, + "balance" : "500000000000000000", "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", - "nonce" : 0, + "nonce" : "0", "storage" : { } } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, + "balance" : "1000000000000000000", "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", - "nonce" : 0, + "nonce" : "0", "storage" : { } } @@ -172,7 +172,7 @@ "currentDifficulty" : "256", "currentGasLimit" : "1000000", "currentNumber" : "0", - "currentTimestamp" : 1, + "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "exec" : { @@ -180,28 +180,28 @@ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", "code" : "0x33ff", "data" : "0x", - "gas" : 10000, - "gasPrice" : 100000000000000, + "gas" : "10000", + "gasPrice" : "100000000000000", "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000 + "value" : "1000000000000000000" }, - "gas" : 9999, + "gas" : "9999", "out" : [ ], "post" : { "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : 1000000000000000000, + "balance" : "1000000000000000000", "code" : "0x", - "nonce" : 0, + "nonce" : "0", "storage" : { } } }, "pre" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, + "balance" : "1000000000000000000", "code" : "0x33ff", - "nonce" : 0, + "nonce" : "0", "storage" : { } } -- cgit v1.2.3 From 00cd0cce8f0fc0ca8aa2c8ca424954d4932672f2 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 12 Jul 2014 21:20:04 +0200 Subject: Output hex strings. --- vmtests.json | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json index 8deade7f7..8673ba2d2 100644 --- a/vmtests.json +++ b/vmtests.json @@ -27,8 +27,7 @@ "value" : "1000000000000000000" }, "gas" : "9949", - "out" : [ - ], + "out" : "0x", "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : "999999999999999926", @@ -94,8 +93,7 @@ "value" : "1000000000000000000" }, "gas" : "9832", - "out" : [ - ], + "out" : "0x", "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : "999999999999999959", @@ -143,8 +141,7 @@ "value" : "1000000000000000000" }, "gas" : "9971", - "out" : [ - ], + "out" : "0x", "post" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "balance" : "500000000000000000", @@ -186,8 +183,7 @@ "value" : "1000000000000000000" }, "gas" : "9999", - "out" : [ - ], + "out" : "0x", "post" : { "cd1722f3947def4cf144679da39c4c32bdc35681" : { "balance" : "1000000000000000000", -- cgit v1.2.3 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.json | 206 ----------------------------------------------------------- 1 file changed, 206 deletions(-) delete mode 100644 vmtests.json (limited to 'vmtests.json') diff --git a/vmtests.json b/vmtests.json deleted file mode 100644 index 8673ba2d2..000000000 --- a/vmtests.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "arith" : { - "callcreates" : [ - { - "data" : "0x", - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : "9770", - "value" : "74" - } - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "1", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "9949", - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "999999999999999926", - "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", - "nonce" : "0", - "storage" : { - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1", - "nonce" : "0", - "storage" : { - } - } - } - }, - "boolean" : { - "callcreates" : [ - { - "data" : "0x", - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : "9786", - "value" : "2" - }, - { - "data" : "0x", - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : "9732", - "value" : "12" - }, - { - "data" : "0x", - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : "9696", - "value" : "13" - }, - { - "data" : "0x", - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : "9660", - "value" : "14" - } - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "1", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "9832", - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "999999999999999959", - "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", - "nonce" : "0", - "storage" : { - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150", - "nonce" : "0", - "storage" : { - } - } - } - }, - "mktx" : { - "callcreates" : [ - { - "data" : "0x", - "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "gasLimit" : "9792", - "value" : "500000000000000000" - } - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "1", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "9971", - "out" : "0x", - "post" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "500000000000000000", - "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", - "nonce" : "0", - "storage" : { - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x60006000600060006706f05b59d3b200003360c85c03f1", - "nonce" : "0", - "storage" : { - } - } - } - }, - "suicide" : { - "callcreates" : [ - ], - "env" : { - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "currentDifficulty" : "256", - "currentGasLimit" : "1000000", - "currentNumber" : "0", - "currentTimestamp" : "1", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "exec" : { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "code" : "0x33ff", - "data" : "0x", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - }, - "gas" : "9999", - "out" : "0x", - "post" : { - "cd1722f3947def4cf144679da39c4c32bdc35681" : { - "balance" : "1000000000000000000", - "code" : "0x", - "nonce" : "0", - "storage" : { - } - } - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : "1000000000000000000", - "code" : "0x33ff", - "nonce" : "0", - "storage" : { - } - } - } - } -} \ No newline at end of file -- cgit v1.2.3