diff options
author | Dimitry <dimitry@ethereum.org> | 2018-10-11 19:42:28 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-10-11 19:42:28 +0800 |
commit | 23b54177735bfae4bf32f28dd52e2671135dcabd (patch) | |
tree | 93d655f460b2e7ecc3d0179b5d90b3b52197e2fd /GeneralStateTests | |
parent | 97778278a9ea325587df572cc821bc810dad7a36 (diff) | |
download | dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.gz dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.bz2 dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.lz dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.xz dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.tar.zst dexon-tests-23b54177735bfae4bf32f28dd52e2671135dcabd.zip |
stExtCodeHash WIP
Diffstat (limited to 'GeneralStateTests')
4 files changed, 568 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 |