aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcdetrio <cdetrio@gmail.com>2017-08-11 11:22:50 +0800
committercdetrio <cdetrio@gmail.com>2017-08-11 11:22:50 +0800
commit453a35d98560a158cad995fafdb3ecc1764def3c (patch)
treed4fb365ac8b5643902dfdd484d0f2cfe8eea8d8e /src
parent815151e4cea4e73328f8586b4e61c3d7e1e9e543 (diff)
downloadtangerine-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 'src')
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/call_outsize_then_create_successful_then_returndatasizeFiller.json51
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/call_then_call_value_fail_then_returndatasizeFiller.json51
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/call_then_create_successful_then_returndatasizeFiller.json51
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/create_callprecompile_returndatasizeFiller.json51
-rw-r--r--src/GeneralStateTestsFiller/stReturnDataTest/returndatasize_following_successful_createFiller.json44
5 files changed, 248 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stReturnDataTest/call_outsize_then_create_successful_then_returndatasizeFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/call_outsize_then_create_successful_then_returndatasizeFiller.json
new file mode 100644
index 000000000..d08109035
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/call_outsize_then_create_successful_then_returndatasizeFiller.json
@@ -0,0 +1,51 @@
+{
+ "call_outsize_then_create_successful_then_returndatasize" : {
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "pre" : {
+ "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (MSTORE 0 0x0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff) (RETURN 0 32)) }",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (CALL 0x0900000000 0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6 0 0 0 0 0x20) (CREATE 0 0 (lll (seq (mstore 0 0x112233) (RETURN 0 32)) 0)) (SSTORE 0 (RETURNDATASIZE)) )}",
+ "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/src/GeneralStateTestsFiller/stReturnDataTest/call_then_call_value_fail_then_returndatasizeFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/call_then_call_value_fail_then_returndatasizeFiller.json
new file mode 100644
index 000000000..0e2f837e1
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/call_then_call_value_fail_then_returndatasizeFiller.json
@@ -0,0 +1,51 @@
+{
+ "call_then_call_value_fail_then_returndatasize" : {
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "pre" : {
+ "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (MSTORE 0 0x0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff) (RETURN 0 32)) }",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (CALL 0x0900000000 0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6 0 0 0 0 0x20) (CALL 0x0900000000 0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6 0xffffffffffff 0 0 0 0x20) (SSTORE 0 (RETURNDATASIZE)) )}",
+ "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/src/GeneralStateTestsFiller/stReturnDataTest/call_then_create_successful_then_returndatasizeFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/call_then_create_successful_then_returndatasizeFiller.json
new file mode 100644
index 000000000..523fba620
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/call_then_create_successful_then_returndatasizeFiller.json
@@ -0,0 +1,51 @@
+{
+ "call_then_create_successful_then_returndatasize" : {
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "pre" : {
+ "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (MSTORE 0 0x0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff) (RETURN 0 32)) }",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (CALL 0x0900000000 0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6 0 0 0 0 0) (CREATE 0 0 (lll (seq (mstore 0 0x112233) (RETURN 0 32)) 0)) (SSTORE 0 (RETURNDATASIZE)) )}",
+ "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/src/GeneralStateTestsFiller/stReturnDataTest/create_callprecompile_returndatasizeFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/create_callprecompile_returndatasizeFiller.json
new file mode 100644
index 000000000..439c88536
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/create_callprecompile_returndatasizeFiller.json
@@ -0,0 +1,51 @@
+{
+ "create_callprecompile_returndatasize" : {
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "pre" : {
+ "0x0aabbccdd5c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (MSTORE 0 0x0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff) (RETURN 0 32)) }",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (CREATE 0 0 (lll (seq (mstore 0 0x112233) (CALL 0x9000 4 0 0 32 0 32) (SSTORE 0 (RETURNDATASIZE)) (RETURN 0 32)) 0)) (SSTORE 0 (RETURNDATASIZE)) )}",
+ "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/src/GeneralStateTestsFiller/stReturnDataTest/returndatasize_following_successful_createFiller.json b/src/GeneralStateTestsFiller/stReturnDataTest/returndatasize_following_successful_createFiller.json
new file mode 100644
index 000000000..d85cf4cd5
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stReturnDataTest/returndatasize_following_successful_createFiller.json
@@ -0,0 +1,44 @@
+{
+ "returndatasize_following_successful_create" : {
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0a00000000",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "pre" : {
+ "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "0x00",
+ "code" : "{ (seq (CREATE 0 0 (lll (seq (mstore 0 0x112233) (RETURN 0 32)) 0)) (SSTORE 0 (RETURNDATASIZE)) )}",
+ "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