aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-08-28 22:14:59 +0800
committerDimitry <dimitry@ethereum.org>2018-08-28 22:14:59 +0800
commite4433658bd7521066a49fd3bf1d8c86e61e393a7 (patch)
tree18408183d0b1770c67e2f9adbe22d7846e247476 /GeneralStateTests
parent980b4771fbe8ed4a5429e0feeadf4ae07a2b8929 (diff)
downloaddexon-tests-e4433658bd7521066a49fd3bf1d8c86e61e393a7.tar.gz
dexon-tests-e4433658bd7521066a49fd3bf1d8c86e61e393a7.tar.zst
dexon-tests-e4433658bd7521066a49fd3bf1d8c86e61e393a7.zip
create2 init code tests
Diffstat (limited to 'GeneralStateTests')
-rw-r--r--GeneralStateTests/stCreate2/create2InitCodes.json136
-rw-r--r--GeneralStateTests/stCreate2/create2noCash.json112
2 files changed, 248 insertions, 0 deletions
diff --git a/GeneralStateTests/stCreate2/create2InitCodes.json b/GeneralStateTests/stCreate2/create2InitCodes.json
new file mode 100644
index 000000000..2b532e61c
--- /dev/null
+++ b/GeneralStateTests/stCreate2/create2InitCodes.json
@@ -0,0 +1,136 @@
+{
+ "create2InitCodes" : {
+ "_info" : {
+ "comment" : "testing different byte opcodes inside create2 init code",
+ "filledwith" : "testeth 1.5.0.dev2+commit.a168110a.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/create2InitCodesFiller.json",
+ "sourceHash" : "3f81ff640203dd5948c68d0db0c54546ebbe77adbdff8e564d5a3968a6d9de64"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x4316c36098650bd077bf2349446266a3da3624bc01f828f8e5aa023b006308a2",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xd23f64cc62b526648cf76a5dc8205c7814fb2fa17a03475fa07b979bd25e00a1",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xd23f64cc62b526648cf76a5dc8205c7814fb2fa17a03475fa07b979bd25e00a1",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xd23f64cc62b526648cf76a5dc8205c7814fb2fa17a03475fa07b979bd25e00a1",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x08002111f84d5dd554f69a0a797e96c1bfacf08585985010c3678494bbc4ba58",
+ "indexes" : {
+ "data" : 4,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x4d869cbbad3cfd03185e5bc20b276d38f713981e8e78a35498be3e5c582ab0f1",
+ "indexes" : {
+ "data" : 5,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x8cca20a17c6b6cde9db86b9f529f16081afc4979e6eb51e1278020f5287a2755",
+ "indexes" : {
+ "data" : 6,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x440e81c9e1626eb52255da4f574be70043c774c4621fd9a87ee35874c7290dc1",
+ "indexes" : {
+ "data" : 7,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xc5e4d2b0d563ede6c33614f307c1b9c2a815df50e71f48217257b818487f7edd",
+ "indexes" : {
+ "data" : 8,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x60006000536000600160006000f5600055",
+ "0x60566000536000600160006000f5600055",
+ "0x60016000536000600160006000f5600055",
+ "0x60f46000536000600160006000f5600055",
+ "0x6a60016001556001546002556000526000600b60156000f5600055",
+ "0x626001ff60005260006003601d6000f5600055",
+ "0x626001ff60005260006003601d6001f5600055",
+ "0x60006003601d6000f5600055",
+ "0x6160a960005260006002601e6001f5600055"
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreate2/create2noCash.json b/GeneralStateTests/stCreate2/create2noCash.json
new file mode 100644
index 000000000..f6b647be7
--- /dev/null
+++ b/GeneralStateTests/stCreate2/create2noCash.json
@@ -0,0 +1,112 @@
+{
+ "create2noCash" : {
+ "_info" : {
+ "comment" : "create2 fails with not enough cash (endowment of a new account) + inside staticcall",
+ "filledwith" : "testeth 1.5.0.dev2+commit.a168110a.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreate2/create2noCashFiller.json",
+ "sourceHash" : "25092db15937c9acea83773c69349f41e86a4da665ddc3665bb74fbeb4032cfe"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x16cca509f2b6739c631ffe2cb44ed0d69748838111860f78e94b402ffae302c6",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x6c66ccc9d9aa82092fc7d1e98e19252128395af787bd42682381aa04d2364744",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x15b1ca0282293bca9a76c63748dd689c04f31bd124de7ecf80e959e9d5868637",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x5f84794f487fb324fa2653e2dc0e3879ae8091d3bdd0b6de6f34882f1458696d",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xbaee1b2a4e66acf567ab59e57460dc0d471d087350463a419abf845e81f21970",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x15b1ca0282293bca9a76c63748dd689c04f31bd124de7ecf80e959e9d5868637",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xe2b35478fdd26477cc576dd906e6277761246a3c" : {
+ "balance" : "0x64",
+ "code" : "0x6000600060006065f5",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x6000600060006000600073e2b35478fdd26477cc576dd906e6277761246a3c620249f0f1",
+ "0x6000600060006000600173e2b35478fdd26477cc576dd906e6277761246a3c620249f0f1",
+ "0x600060006000600073e2b35478fdd26477cc576dd906e6277761246a3c620249f0fa"
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file