aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests
diff options
context:
space:
mode:
Diffstat (limited to 'GeneralStateTests')
-rw-r--r--GeneralStateTests/stCreate2/Create2OnDepth1023.json70
-rw-r--r--GeneralStateTests/stCreate2/Create2OnDepth1024.json70
-rw-r--r--GeneralStateTests/stCreate2/Create2Recursive.json73
-rw-r--r--GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision.json136
-rw-r--r--GeneralStateTests/stSpecialTest/push32withoutByte.json63
5 files changed, 412 insertions, 0 deletions
diff --git a/GeneralStateTests/stCreate2/Create2OnDepth1023.json b/GeneralStateTests/stCreate2/Create2OnDepth1023.json
new file mode 100644
index 000000000..0a40dfb89
--- /dev/null
+++ b/GeneralStateTests/stCreate2/Create2OnDepth1023.json
@@ -0,0 +1,70 @@
+{
+ "Create2OnDepth1023" : {
+ "_info" : {
+ "comment" : "Create2OnDepth1023, 0x0400 indicates 1022 level.",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/Create2OnDepth1023Filler.json",
+ "sourceHash" : "c637e23aa6ce8d8e08168aeb24e4772f216de7da160de1c730dfee44abbe416d"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x7fffffffffffffff",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x73b98bda50a839f57ebe10bf06f856c075d746f9205edf0d7ec4627b9312a892",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x03d090000000000000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6000356000526000516002016000526104006000511460435760006000602060006104006000511473c94f5374fce5edbc8e2a8697c15331677e6ebf0b5af1506060565b6b6000600060006000f56001556020526000600c60346000f56001555b",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6000356000526000600060206000600073b94f5374fce5edbc8e2a8697c15331677e6ebf0b5af1",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x7ffffffffffffffe"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/Create2OnDepth1024.json b/GeneralStateTests/stCreate2/Create2OnDepth1024.json
new file mode 100644
index 000000000..fe75ba051
--- /dev/null
+++ b/GeneralStateTests/stCreate2/Create2OnDepth1024.json
@@ -0,0 +1,70 @@
+{
+ "Create2OnDepth1024" : {
+ "_info" : {
+ "comment" : "Create2OnDepth1024, 0x0400 indicates 1022 level.",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/Create2OnDepth1024Filler.json",
+ "sourceHash" : "c30f57dd51459e8986963e0a0c7c3ba87a608db87e73e5a3aa9f7bf37dab4275"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x7fffffffffffffff",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0xe11b3db7ae54feb94b49c29ccfc1fdf3b014fdf0a6b4c2315af79731effb33db",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x03d090000000000000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6000356000526000516002016000526104006000511460435760006000602060006104006000511473c94f5374fce5edbc8e2a8697c15331677e6ebf0b5af150606d565b78686000600060006000f56000526000600960176000f56001556020526000601960276000f56001555b",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6000356000526000600060206000600073b94f5374fce5edbc8e2a8697c15331677e6ebf0b5af1",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x7ffffffffffffffe"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/Create2Recursive.json b/GeneralStateTests/stCreate2/Create2Recursive.json
new file mode 100644
index 000000000..403391da2
--- /dev/null
+++ b/GeneralStateTests/stCreate2/Create2Recursive.json
@@ -0,0 +1,73 @@
+{
+ "Create2Recursive" : {
+ "_info" : {
+ "comment" : "Create2 inside Create2 inside Create2....",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/Create2RecursiveFiller.json",
+ "sourceHash" : "8ad747b8f86a522a383a4c58a6e9fc20c4c707f9e9ea99cffd4d19f6639b01f0"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x7fffffffffffffff",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0xae12eb666b957a7acfcec41188b12759853ab95aa271d60a7a0d113f0fdb310e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x591547e6beb865568b4647f7426ec80c1281ba1f475df939aa0ba26c23ffaa28",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x03d090000000000000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x7d606460006000396103e85a10601b576000606460006000f5601d565b5a5b6000526000601e60026000f5",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x7ffffffffffffffe",
+ "0x123e952c9800"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision.json b/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision.json
new file mode 100644
index 000000000..e2e315af7
--- /dev/null
+++ b/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision.json
@@ -0,0 +1,136 @@
+{
+ "RevertDepthCreateAddressCollision" : {
+ "_info" : {
+ "comment" : "copy of this test for CREATE2",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/RevertDepthCreateAddressCollisionFiller.json",
+ "sourceHash" : "9470af74e849d109ad3b53b61167b9569b3712b73493dd950db497eaf6ade5ca"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0xab39d85d82a5f2392311f5d1c6f1a679af6395d68dfc4f31262eaccf27b0ab4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xab39d85d82a5f2392311f5d1c6f1a679af6395d68dfc4f31262eaccf27b0ab4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xbe81310fa6ba9c488cd3fe2dcd3c56755efb9fdb5cde45abfbe5cc505920623a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xd080ef16c59f11911c230e62c8398e76b82e19e2dcecbcb48cc25287acca7f69",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xab39d85d82a5f2392311f5d1c6f1a679af6395d68dfc4f31262eaccf27b0ab4e",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xab39d85d82a5f2392311f5d1c6f1a679af6395d68dfc4f31262eaccf27b0ab4e",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 1
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x5b30970ac0a8ec684b7dd01b56442df497c4d163966eb7fc7eb6343ddfcf0611",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x5aa198b755fd94c667a5894fcb68fea63a916505ee6a497e785499dbf0a7cddc",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 1
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x3e180b1862f9d158abb5e519a6d8605540c23682" : {
+ "balance" : "0x05",
+ "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455",
+ "nonce" : "0x36",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x60086002556000600060006000f550600c600355",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x000000000000000000000000000000000000000000000000000000000000ea60",
+ "0x000000000000000000000000000000000000000000000000000000000001ea60"
+ ],
+ "gasLimit" : [
+ "0x01adb0",
+ "0x027100"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682",
+ "value" : [
+ "0x01",
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stSpecialTest/push32withoutByte.json b/GeneralStateTests/stSpecialTest/push32withoutByte.json
new file mode 100644
index 000000000..fb07ddc1a
--- /dev/null
+++ b/GeneralStateTests/stSpecialTest/push32withoutByte.json
@@ -0,0 +1,63 @@
+{
+ "push32withoutByte" : {
+ "_info" : {
+ "comment" : "push expect 32 bytes. but we have only 10 byte",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json",
+ "sourceHash" : "470b7f71e74e5a3585ce9a8a5972017feb87ab3f2aee00874907e602e3a37847"
+ },
+ "env" : {
+ "currentCoinbase" : "0x68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x2fefd8",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x2b00b2a1abae901c353787d712f6971e95799968838044e7f0157fc55e0384cc",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x0dc02922f33e45537411b9f92a1dcc9750ba9932" : {
+ "balance" : "0x00",
+ "code" : "0x7f11223344556677889910",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x07a120"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x0dc02922f33e45537411b9f92a1dcc9750ba9932",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file