diff options
author | cdetrio <cdetrio@gmail.com> | 2017-08-11 11:22:50 +0800 |
---|---|---|
committer | cdetrio <cdetrio@gmail.com> | 2017-08-11 11:22:50 +0800 |
commit | 453a35d98560a158cad995fafdb3ecc1764def3c (patch) | |
tree | d4fb365ac8b5643902dfdd484d0f2cfe8eea8d8e /GeneralStateTests | |
parent | 815151e4cea4e73328f8586b4e61c3d7e1e9e543 (diff) | |
download | tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.tar tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.tar.gz tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.tar.bz2 tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.tar.lz tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.tar.xz tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.tar.zst tangerine-tests-453a35d98560a158cad995fafdb3ecc1764def3c.zip |
more returndata test cases
Diffstat (limited to 'GeneralStateTests')
5 files changed, 643 insertions, 0 deletions
diff --git a/GeneralStateTests/stReturnDataTest/call_outsize_then_create_successful_then_returndatasize.json b/GeneralStateTests/stReturnDataTest/call_outsize_then_create_successful_then_returndatasize.json new file mode 100644 index 000000000..8d9535457 --- /dev/null +++ b/GeneralStateTests/stReturnDataTest/call_outsize_then_create_successful_then_returndatasize.json @@ -0,0 +1,130 @@ +{ + "call_outsize_then_create_successful_then_returndatasize" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5be721f9.Darwin.clang", + "source" : "/src/GeneralStateTestsFiller/stReturnDataTest/call_outsize_then_create_successful_then_returndatasizeFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0a00000000", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x8e5f3afb94a4e87c4c7a47047d4e7e68b7af887f6aaddb9373892034914d1c9a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0x8e5f3afb94a4e87c4c7a47047d4e7e68b7af887f6aaddb9373892034914d1c9a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0x5df657ec640cc49beda996f860b6c9bc4de330146894c4e90f62571e3e4be4bc", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0x5df657ec640cc49beda996f860b6c9bc4de330146894c4e90f62571e3e4be4bc", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0x5df657ec640cc49beda996f860b6c9bc4de330146894c4e90f62571e3e4be4bc", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0x5df657ec640cc49beda996f860b6c9bc4de330146894c4e90f62571e3e4be4bc", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x7d111122223333444455556666777788889999aaaabbbbccccddddeeeeffff60005260206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x60206000600060006000730aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6640900000000f150600c80603a60003960006000f0503d600055006211223360005260206000f3", + "nonce" : "0x00", + "storage" : { + "0x00" : "0x01" + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x6400000000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x0a00000000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stReturnDataTest/call_then_call_value_fail_then_returndatasize.json b/GeneralStateTests/stReturnDataTest/call_then_call_value_fail_then_returndatasize.json new file mode 100644 index 000000000..609395d4d --- /dev/null +++ b/GeneralStateTests/stReturnDataTest/call_then_call_value_fail_then_returndatasize.json @@ -0,0 +1,130 @@ +{ + "call_then_call_value_fail_then_returndatasize" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5be721f9.Darwin.clang", + "source" : "/src/GeneralStateTestsFiller/stReturnDataTest/call_then_call_value_fail_then_returndatasizeFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0a00000000", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0xbb4261bc8f60f744783d12ce94431b3095ac8dfabf718ee066455ffb4d01b025", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0xbb4261bc8f60f744783d12ce94431b3095ac8dfabf718ee066455ffb4d01b025", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0xe8313da4d31f57d280964d839bc22d180f061f8bc9396da69cf32efbcf502579", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0xe8313da4d31f57d280964d839bc22d180f061f8bc9396da69cf32efbcf502579", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0xe8313da4d31f57d280964d839bc22d180f061f8bc9396da69cf32efbcf502579", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0xe8313da4d31f57d280964d839bc22d180f061f8bc9396da69cf32efbcf502579", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x7d111122223333444455556666777788889999aaaabbbbccccddddeeeeffff60005260206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x60206000600060006000730aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6640900000000f150602060006000600065ffffffffffff730aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6640900000000f1503d600055", + "nonce" : "0x00", + "storage" : { + "0x00" : "0x01" + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x6400000000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x0a00000000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stReturnDataTest/call_then_create_successful_then_returndatasize.json b/GeneralStateTests/stReturnDataTest/call_then_create_successful_then_returndatasize.json new file mode 100644 index 000000000..b8b93218d --- /dev/null +++ b/GeneralStateTests/stReturnDataTest/call_then_create_successful_then_returndatasize.json @@ -0,0 +1,130 @@ +{ + "call_then_create_successful_then_returndatasize" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5be721f9.Darwin.clang", + "source" : "/src/GeneralStateTestsFiller/stReturnDataTest/call_then_create_successful_then_returndatasizeFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0a00000000", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x7846476015e759b2d82f545e25cad704a3713175b5052f478ed45c586174a75a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0x7846476015e759b2d82f545e25cad704a3713175b5052f478ed45c586174a75a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0xe7dfc709e910d75cd76971b20a3507749d4a84646922601399a16cfb454eeb2f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0xe7dfc709e910d75cd76971b20a3507749d4a84646922601399a16cfb454eeb2f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0xe7dfc709e910d75cd76971b20a3507749d4a84646922601399a16cfb454eeb2f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0xe7dfc709e910d75cd76971b20a3507749d4a84646922601399a16cfb454eeb2f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x7d111122223333444455556666777788889999aaaabbbbccccddddeeeeffff60005260206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x60006000600060006000730aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6640900000000f150600c80603a60003960006000f0503d600055006211223360005260206000f3", + "nonce" : "0x00", + "storage" : { + "0x00" : "0x01" + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x6400000000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x0a00000000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stReturnDataTest/create_callprecompile_returndatasize.json b/GeneralStateTests/stReturnDataTest/create_callprecompile_returndatasize.json new file mode 100644 index 000000000..2c082f3a9 --- /dev/null +++ b/GeneralStateTests/stReturnDataTest/create_callprecompile_returndatasize.json @@ -0,0 +1,130 @@ +{ + "create_callprecompile_returndatasize" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5be721f9.Darwin.clang", + "source" : "/src/GeneralStateTestsFiller/stReturnDataTest/create_callprecompile_returndatasizeFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0a00000000", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x1b0474dfdab42ae8139aa7f560675e367f9138565eb4b7cbd6baf60764be61a8", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0x1b0474dfdab42ae8139aa7f560675e367f9138565eb4b7cbd6baf60764be61a8", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0x1141765f60c0382feb9de938747204908992027fa5fd104bcb1b4062d1e4a715", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0x1141765f60c0382feb9de938747204908992027fa5fd104bcb1b4062d1e4a715", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0x1141765f60c0382feb9de938747204908992027fa5fd104bcb1b4062d1e4a715", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0x1141765f60c0382feb9de938747204908992027fa5fd104bcb1b4062d1e4a715", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x7d111122223333444455556666777788889999aaaabbbbccccddddeeeeffff60005260206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x602180601360003960006000f0503d6000550062112233600052602060006020600060006004619000f1503d60005560206000f3", + "nonce" : "0x00", + "storage" : { + "0x00" : "0x01" + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x6400000000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x0a00000000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stReturnDataTest/returndatasize_following_successful_create.json b/GeneralStateTests/stReturnDataTest/returndatasize_following_successful_create.json new file mode 100644 index 000000000..060c6f102 --- /dev/null +++ b/GeneralStateTests/stReturnDataTest/returndatasize_following_successful_create.json @@ -0,0 +1,123 @@ +{ + "returndatasize_following_successful_create" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.5be721f9.Darwin.clang", + "source" : "/src/GeneralStateTestsFiller/stReturnDataTest/returndatasize_following_successful_createFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0a00000000", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0xf1133151b59277270e741f24f592d04c0b28e3ea051e2dc37eba049d608f5a2a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Constantinople" : [ + { + "hash" : "0xf1133151b59277270e741f24f592d04c0b28e3ea051e2dc37eba049d608f5a2a", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP150" : [ + { + "hash" : "0x21d1e307d56ca7b28f8df918cf88d1cb6eda3b4d472b4f2c27e72abe8728ec3f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "EIP158" : [ + { + "hash" : "0x21d1e307d56ca7b28f8df918cf88d1cb6eda3b4d472b4f2c27e72abe8728ec3f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Frontier" : [ + { + "hash" : "0x21d1e307d56ca7b28f8df918cf88d1cb6eda3b4d472b4f2c27e72abe8728ec3f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ], + "Homestead" : [ + { + "hash" : "0x21d1e307d56ca7b28f8df918cf88d1cb6eda3b4d472b4f2c27e72abe8728ec3f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : [ + ] + } + ] + }, + "pre" : { + "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : "0x00", + "code" : "0x600c80601360003960006000f0503d600055006211223360005260206000f3", + "nonce" : "0x00", + "storage" : { + "0x00" : "0x01" + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x6400000000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x0a00000000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file |