aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-10-11 19:42:28 +0800
committerDimitry <dimitry@ethereum.org>2018-10-11 19:42:28 +0800
commit23b54177735bfae4bf32f28dd52e2671135dcabd (patch)
tree93d655f460b2e7ecc3d0179b5d90b3b52197e2fd
parent97778278a9ea325587df572cc821bc810dad7a36 (diff)
downloadtangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar
tangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.gz
tangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.bz2
tangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.lz
tangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.xz
tangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.zst
tangerine-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.zip
stExtCodeHash WIP
-rw-r--r--GeneralStateTests/stExtCodeHash/extCodeHashCALL.json142
-rw-r--r--GeneralStateTests/stExtCodeHash/extCodeHashCALLCODE.json142
-rw-r--r--GeneralStateTests/stExtCodeHash/extCodeHashDELEGATECALL.json142
-rw-r--r--GeneralStateTests/stExtCodeHash/extCodeHashSTATICCALL.json142
-rw-r--r--src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLCODEFiller.json111
-rw-r--r--src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLFiller.json111
-rw-r--r--src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDELEGATECALLFiller.json111
-rw-r--r--src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSTATICCALLFiller.json111
8 files changed, 1012 insertions, 0 deletions
diff --git a/GeneralStateTests/stExtCodeHash/extCodeHashCALL.json b/GeneralStateTests/stExtCodeHash/extCodeHashCALL.json
new file mode 100644
index 000000000..c3b64488f
--- /dev/null
+++ b/GeneralStateTests/stExtCodeHash/extCodeHashCALL.json
@@ -0,0 +1,142 @@
+{
+ "extCodeHashCALL" : {
+ "_info" : {
+ "comment" : "EXTCODEHASH of an account during a CALL",
+ "filledwith" : "testeth 1.5.0.dev2-72+commit.e1e08877.dirty",
+ "lllcversion" : "Version: 0.5.0-develop.2018.10.10+commit.06200b4b.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLFiller.json",
+ "sourceHash" : "9667d35e100048a544bb3aad892d8a12485e56b4d5329db4e8d515ea7534317a"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0xc5b9e1a2301a184e6049ced55159d9fdbeb16887e5e06f2074e32e3bb26a828f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x3e25fd89cad10dbf9283b6a09a2ec274aac69ed2b268371e7517f125be7f5fce",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP150" : [
+ {
+ "hash" : "0xc5b9e1a2301a184e6049ced55159d9fdbeb16887e5e06f2074e32e3bb26a828f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "0xc5b9e1a2301a184e6049ced55159d9fdbeb16887e5e06f2074e32e3bb26a828f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "0xc5b9e1a2301a184e6049ced55159d9fdbeb16887e5e06f2074e32e3bb26a828f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "0xc5b9e1a2301a184e6049ced55159d9fdbeb16887e5e06f2074e32e3bb26a828f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x6020600060006000600073deadbeef00000000000000000000000000000000620249f0f1506020600060003e6000516000556020600060006000600073aeadbeef00000000000000000000000000000000620249f0f1506020600060003e600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xaeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013b60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013f60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000001" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x1234",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stExtCodeHash/extCodeHashCALLCODE.json b/GeneralStateTests/stExtCodeHash/extCodeHashCALLCODE.json
new file mode 100644
index 000000000..c26846bd3
--- /dev/null
+++ b/GeneralStateTests/stExtCodeHash/extCodeHashCALLCODE.json
@@ -0,0 +1,142 @@
+{
+ "extCodeHashCALLCODE" : {
+ "_info" : {
+ "comment" : "EXTCODEHASH of an account during a CALLCODE",
+ "filledwith" : "testeth 1.5.0.dev2-72+commit.e1e08877.dirty",
+ "lllcversion" : "Version: 0.5.0-develop.2018.10.10+commit.06200b4b.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLCODEFiller.json",
+ "sourceHash" : "853a83e6ebc24d72cd6888e3bd56b207ed3252c68163ca5c5174f12799e67895"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x5b8fbef82695e552f9f7bb01d3315d6a8b543786d515eceaabe1c351d0c9e7b8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x4511baaad12c5d0e9ca27ccdc7a962f9544e18688141d3f850e553498909ddf2",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP150" : [
+ {
+ "hash" : "0x5b8fbef82695e552f9f7bb01d3315d6a8b543786d515eceaabe1c351d0c9e7b8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "0x5b8fbef82695e552f9f7bb01d3315d6a8b543786d515eceaabe1c351d0c9e7b8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "0x5b8fbef82695e552f9f7bb01d3315d6a8b543786d515eceaabe1c351d0c9e7b8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "0x5b8fbef82695e552f9f7bb01d3315d6a8b543786d515eceaabe1c351d0c9e7b8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x6020600060006000600073deadbeef00000000000000000000000000000000620249f0f2506020600060003e6000516000556020600060006000600073aeadbeef00000000000000000000000000000000620249f0f2506020600060003e600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xaeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013b60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013f60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000001" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x1234",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stExtCodeHash/extCodeHashDELEGATECALL.json b/GeneralStateTests/stExtCodeHash/extCodeHashDELEGATECALL.json
new file mode 100644
index 000000000..ada51a757
--- /dev/null
+++ b/GeneralStateTests/stExtCodeHash/extCodeHashDELEGATECALL.json
@@ -0,0 +1,142 @@
+{
+ "extCodeHashDELEGATECALL" : {
+ "_info" : {
+ "comment" : "EXTCODEHASH of an account during a DELEGATECALL",
+ "filledwith" : "testeth 1.5.0.dev2-72+commit.e1e08877.dirty",
+ "lllcversion" : "Version: 0.5.0-develop.2018.10.10+commit.06200b4b.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDELEGATECALLFiller.json",
+ "sourceHash" : "9422c1d1dbfaa8c810a38516b0a696ad1a1b76abd848318233f178d5bd047d19"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x0caef375b2f7075bf5fddad19eeb9693b00463de26794b2bb0a6f067b8c8bf26",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x4255a7e82dbaff2c2863b7e2125e9f08a2ac3b4b7aeb44311ea9c9508ad6cfc9",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP150" : [
+ {
+ "hash" : "0x0caef375b2f7075bf5fddad19eeb9693b00463de26794b2bb0a6f067b8c8bf26",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "0x0caef375b2f7075bf5fddad19eeb9693b00463de26794b2bb0a6f067b8c8bf26",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "0x0caef375b2f7075bf5fddad19eeb9693b00463de26794b2bb0a6f067b8c8bf26",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "0x0caef375b2f7075bf5fddad19eeb9693b00463de26794b2bb0a6f067b8c8bf26",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x602060006000600073deadbeef00000000000000000000000000000000620249f0f4506020600060003e600051600055602060006000600073aeadbeef00000000000000000000000000000000620249f0f4506020600060003e600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xaeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013b60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013f60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000001" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x1234",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stExtCodeHash/extCodeHashSTATICCALL.json b/GeneralStateTests/stExtCodeHash/extCodeHashSTATICCALL.json
new file mode 100644
index 000000000..4a4f312c4
--- /dev/null
+++ b/GeneralStateTests/stExtCodeHash/extCodeHashSTATICCALL.json
@@ -0,0 +1,142 @@
+{
+ "extCodeHashSTATICCALL" : {
+ "_info" : {
+ "comment" : "EXTCODEHASH of an account during a STATICCALL",
+ "filledwith" : "testeth 1.5.0.dev2-72+commit.e1e08877.dirty",
+ "lllcversion" : "Version: 0.5.0-develop.2018.10.10+commit.06200b4b.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSTATICCALLFiller.json",
+ "sourceHash" : "c371634d88f9eb9af0ecc642f7692487a9bf49d03bd2bc37baa44812532edc52"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "0x0f4240",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0xdb2ba4be690f0434beb4788621c6724430409eb407498830f49071242320ed4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x1eb48653f164467675b5dc0c65a39841ce54b92c48be0566448fa1023dff1c90",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP150" : [
+ {
+ "hash" : "0xdb2ba4be690f0434beb4788621c6724430409eb407498830f49071242320ed4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "0xdb2ba4be690f0434beb4788621c6724430409eb407498830f49071242320ed4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "0xdb2ba4be690f0434beb4788621c6724430409eb407498830f49071242320ed4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "0xdb2ba4be690f0434beb4788621c6724430409eb407498830f49071242320ed4e",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x602060006000600073deadbeef00000000000000000000000000000000620249f0fa506020600060003e600051600055602060006000600073aeadbeef00000000000000000000000000000000620249f0fa506020600060003e600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xaeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013b60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000000" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x73deadbeef000000000000000000000000000000013f60005260206000f3",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "0xdeadbeef00000000000000000000000000000001" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x1234",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x061a80"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLCODEFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLCODEFiller.json
new file mode 100644
index 000000000..e4dc95080
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLCODEFiller.json
@@ -0,0 +1,111 @@
+{
+ "extCodeHashCALLCODE" : {
+ "_info" : {
+ "comment": "EXTCODEHASH of an account during a CALLCODE"
+ },
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">Byzantium"],
+ "result" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000001",
+ "storage" : {
+ "0x00" : "0x56570de287d73cd1cb6092bb8fdee6173974955fdef345ae579ee9f475ea7432",
+ "0x01" : "0x02"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["<=Byzantium"],
+ "result" : {
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (CALLCODE 150000 0xdeadbeef00000000000000000000000000000000 0 0 0 0 32) (RETURNDATACOPY 0 0 32) [[0]] (MLOAD 0) (CALLCODE 150000 0xaeadbeef00000000000000000000000000000000 0 0 0 0 32) (RETURNDATACOPY 0 0 32) [[1]] (MLOAD 0)}",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODEHASH 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "aeadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODESIZE 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000001" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x1234",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLFiller.json
new file mode 100644
index 000000000..eb56316c6
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashCALLFiller.json
@@ -0,0 +1,111 @@
+{
+ "extCodeHashCALL" : {
+ "_info" : {
+ "comment": "EXTCODEHASH of an account during a CALL"
+ },
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">Byzantium"],
+ "result" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000001",
+ "storage" : {
+ "0x00" : "0x56570de287d73cd1cb6092bb8fdee6173974955fdef345ae579ee9f475ea7432",
+ "0x01" : "0x02"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["<=Byzantium"],
+ "result" : {
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (CALL 150000 0xdeadbeef00000000000000000000000000000000 0 0 0 0 32) (RETURNDATACOPY 0 0 32) [[0]] (MLOAD 0) (CALL 150000 0xaeadbeef00000000000000000000000000000000 0 0 0 0 32) (RETURNDATACOPY 0 0 32) [[1]] (MLOAD 0)}",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODEHASH 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "aeadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODESIZE 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000001" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x1234",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDELEGATECALLFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDELEGATECALLFiller.json
new file mode 100644
index 000000000..6e766167c
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashDELEGATECALLFiller.json
@@ -0,0 +1,111 @@
+{
+ "extCodeHashDELEGATECALL" : {
+ "_info" : {
+ "comment": "EXTCODEHASH of an account during a DELEGATECALL"
+ },
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">Byzantium"],
+ "result" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000001",
+ "storage" : {
+ "0x00" : "0x56570de287d73cd1cb6092bb8fdee6173974955fdef345ae579ee9f475ea7432",
+ "0x01" : "0x02"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["<=Byzantium"],
+ "result" : {
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (DELEGATECALL 150000 0xdeadbeef00000000000000000000000000000000 0 0 0 32) (RETURNDATACOPY 0 0 32) [[0]] (MLOAD 0) (DELEGATECALL 150000 0xaeadbeef00000000000000000000000000000000 0 0 0 32) (RETURNDATACOPY 0 0 32) [[1]] (MLOAD 0) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODEHASH 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "aeadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODESIZE 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000001" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x1234",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSTATICCALLFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSTATICCALLFiller.json
new file mode 100644
index 000000000..34654a41c
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSTATICCALLFiller.json
@@ -0,0 +1,111 @@
+{
+ "extCodeHashSTATICCALL" : {
+ "_info" : {
+ "comment": "EXTCODEHASH of an account during a STATICCALL"
+ },
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">Byzantium"],
+ "result" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000001",
+ "storage" : {
+ "0x00" : "0x56570de287d73cd1cb6092bb8fdee6173974955fdef345ae579ee9f475ea7432",
+ "0x01" : "0x02"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["<=Byzantium"],
+ "result" : {
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ },
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "storage" : {
+ "0x00" : "0xdeadbeef"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (STATICCALL 150000 0xdeadbeef00000000000000000000000000000000 0 0 0 32) (RETURNDATACOPY 0 0 32) [[0]] (MLOAD 0) (STATICCALL 150000 0xaeadbeef00000000000000000000000000000000 0 0 0 32) (RETURNDATACOPY 0 0 32) [[1]] (MLOAD 0)}",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODEHASH 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "aeadbeef00000000000000000000000000000000" : {
+ "balance" : "1000000000000000000",
+ "code" : "{ (MSTORE 0 (EXTCODESIZE 0xdeadbeef00000000000000000000000000000001)) (RETURN 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ "0x00": "0xdeadbeef"
+ }
+ },
+ "deadbeef00000000000000000000000000000001" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x1234",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}