diff options
author | Gav Wood <i@gavwood.com> | 2014-02-25 01:03:00 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-02-25 01:03:00 +0800 |
commit | e74a56030fbaf5b0ffd6c90d2b53f69296adc604 (patch) | |
tree | 219d45eafdeeab5c2dfe0e06a7037b92439fcd7c /vmtests.json | |
parent | b10e67213ab76b6f96b3a5ffa3819c46495ddd72 (diff) | |
download | dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.tar dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.tar.gz dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.tar.bz2 dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.tar.lz dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.tar.xz dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.tar.zst dexon-solidity-e74a56030fbaf5b0ffd6c90d2b53f69296adc604.zip |
VM test sources.
Diffstat (limited to 'vmtests.json')
-rw-r--r-- | vmtests.json | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/vmtests.json b/vmtests.json new file mode 100644 index 00000000..52e31f4e --- /dev/null +++ b/vmtests.json @@ -0,0 +1,84 @@ +{ + "suicide": { + "env" : { + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "feeMultiplier" : 1 + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "code" : "(suicide (txsender))" + } + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000, + "data" : [ + ] + } + ] + }, + + "mktx": { + "env" : { + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "feeMultiplier" : 1 + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "code" : "(mktx (txsender) 500000000000000000 0)" + } + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000, + "data" : [ + ] + } + ] + }, + + "fan": { + "env" : { + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "feeMultiplier" : 1 + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 0, + "nonce" : 0, + "code" : "(seq (unless (gt (txvalue) 100finney) (stop)) (\"value\" (div (sub (txvalue) 100finney) (txdatan))) (\"i\" 0) (for (lt (\"i\") (txdatan)) (seq (mktx (txdata (\"i\")) (\"value\") 0) (\"i\" (add (\"i\") 1)) ) ) )" + } + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000, + "data" : [ + "0xcd1722f3947def4cf144679da39c4c32bdc35681", + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" + ] + } + ] + } +} |