aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2019-01-07 22:47:35 +0800
committerDimitry <dimitry@ethereum.org>2019-01-07 22:47:35 +0800
commitf3517dcc5b887257400ab4c0af0144bc69f33f0c (patch)
tree5803cb17f2b471efbd3cd7258e594ecc961732af /src
parenta676261e953d5ff3cad8031ccfff92d15e27d455 (diff)
downloaddexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.tar
dexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.tar.gz
dexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.tar.bz2
dexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.tar.lz
dexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.tar.xz
dexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.tar.zst
dexon-tests-f3517dcc5b887257400ab4c0af0144bc69f33f0c.zip
new precompiled touch tests
Diffstat (limited to 'src')
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json143
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_nonceFiller.json178
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_noncestorageFiller.json202
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_storageFiller.json278
4 files changed, 774 insertions, 27 deletions
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json
index c0fd0234a..b577c3734 100644
--- a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json
@@ -11,47 +11,133 @@
"expect" : [
{
"indexes" : {
+ "data" : 0,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000002" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000003" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000004" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000005" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000006" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000007" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000008" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [1,2,3],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "nonce" : "0"
+ },
+ "0000000000000000000000000000000000000002" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000003" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000004" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000005" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000006" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000007" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000008" : {
+ "nonce" : "0" }
+ }
+ },
+ {
+ "indexes" : {
"data" : -1,
"gas" : -1,
"value" : -1
},
- "network" : [">=EIP158"],
+ "network" : [">=Byzantium"],
"result" : {
- "0000000000000000000000000000000000000001" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000002" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000003" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000004" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000005" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000006" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000007" : {
- "balance" : "0"
- },
- "0000000000000000000000000000000000000008" : {
- "balance" : "0"
- }
+ "0000000000000000000000000000000000000001" : {
+ "nonce" : "0"
+ },
+ "0000000000000000000000000000000000000002" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000003" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000004" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000005" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000006" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000007" : {
+ "nonce" : "0" },
+ "0000000000000000000000000000000000000008" : {
+ "nonce" : "0" }
}
}
],
"pre" : {
"b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0",
+ "code" : "{ (CALLCODE (GAS) (CALLDATALOAD 0) 0 0 0 0 0) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "1000000000000000000000000000000000000000" : {
+ "//comment" : "CALL precompiles and OOG",
+ "balance" : "0",
"code" : "{ (CALL 50000 1 0 0 0 0 0) (CALL 50000 2 0 0 0 0 0) (CALL 50000 3 0 0 0 0 0) (CALL 50000 4 0 0 0 0 0) (CALL 50000 5 0 0 0 0 0) (CALL 50000 6 0 0 0 0 0) (CALL 50000 7 0 0 0 0 0) (CALL 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
"nonce" : "0",
"storage" : {
}
},
+ "2000000000000000000000000000000000000000" : {
+ "//comment" : "DELEGATECALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (DELEGATECALL 50000 1 0 0 0 0) (DELEGATECALL 50000 2 0 0 0 0) (DELEGATECALL 50000 3 0 0 0 0) (DELEGATECALL 50000 4 0 0 0 0) (DELEGATECALL 50000 5 0 0 0 0) (DELEGATECALL 50000 6 0 0 0 0) (DELEGATECALL 50000 7 0 0 0 0) (DELEGATECALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "3000000000000000000000000000000000000000" : {
+ "//comment" : "CALLCODE precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALLCODE 50000 1 0 0 0 0 0) (CALLCODE 50000 2 0 0 0 0 0) (CALLCODE 50000 3 0 0 0 0 0) (CALLCODE 50000 4 0 0 0 0 0) (CALLCODE 50000 5 0 0 0 0 0) (CALLCODE 50000 6 0 0 0 0 0) (CALLCODE 50000 7 0 0 0 0 0) (CALLCODE 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "4000000000000000000000000000000000000000" : {
+ "//comment" : "STATICCALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (STATICCALL 50000 1 0 0 0 0) (STATICCALL 50000 2 0 0 0 0) (STATICCALL 50000 3 0 0 0 0) (STATICCALL 50000 4 0 0 0 0) (STATICCALL 50000 5 0 0 0 0) (STATICCALL 50000 6 0 0 0 0) (STATICCALL 50000 7 0 0 0 0) (STATICCALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "1000000000000000000",
"code" : "",
@@ -118,10 +204,13 @@
},
"transaction" : {
"data" : [
- ""
+ "0x0000000000000000000000001000000000000000000000000000000000000000",
+ "0x0000000000000000000000002000000000000000000000000000000000000000",
+ "0x0000000000000000000000003000000000000000000000000000000000000000",
+ "0x0000000000000000000000004000000000000000000000000000000000000000"
],
"gasLimit" : [
- "60000"
+ "100000"
],
"gasPrice" : "1",
"nonce" : "1",
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_nonceFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_nonceFiller.json
new file mode 100644
index 000000000..3796ab7fc
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_nonceFiller.json
@@ -0,0 +1,178 @@
+{
+ "RevertPrecompiledTouch_nonce" : {
+ "env" : {
+ "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "4012015",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">=EIP158"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000002" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000003" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000004" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000005" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000006" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000007" : {
+ "balance" : "0",
+ "nonce" : "1"
+ },
+ "0000000000000000000000000000000000000008" : {
+ "balance" : "0",
+ "nonce" : "1"
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0",
+ "code" : "{ (CALLCODE (GAS) (CALLDATALOAD 0) 0 0 0 0 0) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "1000000000000000000000000000000000000000" : {
+ "//comment" : "CALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALL 50000 1 0 0 0 0 0) (CALL 50000 2 0 0 0 0 0) (CALL 50000 3 0 0 0 0 0) (CALL 50000 4 0 0 0 0 0) (CALL 50000 5 0 0 0 0 0) (CALL 50000 6 0 0 0 0 0) (CALL 50000 7 0 0 0 0 0) (CALL 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "2000000000000000000000000000000000000000" : {
+ "//comment" : "DELEGATECALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (DELEGATECALL 50000 1 0 0 0 0) (DELEGATECALL 50000 2 0 0 0 0) (DELEGATECALL 50000 3 0 0 0 0) (DELEGATECALL 50000 4 0 0 0 0) (DELEGATECALL 50000 5 0 0 0 0) (DELEGATECALL 50000 6 0 0 0 0) (DELEGATECALL 50000 7 0 0 0 0) (DELEGATECALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "3000000000000000000000000000000000000000" : {
+ "//comment" : "CALLCODE precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALLCODE 50000 1 0 0 0 0 0) (CALLCODE 50000 2 0 0 0 0 0) (CALLCODE 50000 3 0 0 0 0 0) (CALLCODE 50000 4 0 0 0 0 0) (CALLCODE 50000 5 0 0 0 0 0) (CALLCODE 50000 6 0 0 0 0 0) (CALLCODE 50000 7 0 0 0 0 0) (CALLCODE 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "4000000000000000000000000000000000000000" : {
+ "//comment" : "STATICCALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (STATICCALL 50000 1 0 0 0 0) (STATICCALL 50000 2 0 0 0 0) (STATICCALL 50000 3 0 0 0 0) (STATICCALL 50000 4 0 0 0 0) (STATICCALL 50000 5 0 0 0 0) (STATICCALL 50000 6 0 0 0 0) (STATICCALL 50000 7 0 0 0 0) (STATICCALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000001" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000002" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000003" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000004" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000005" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000006" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000007" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000008" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x0000000000000000000000001000000000000000000000000000000000000000",
+ "0x0000000000000000000000002000000000000000000000000000000000000000",
+ "0x0000000000000000000000003000000000000000000000000000000000000000",
+ "0x0000000000000000000000004000000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "100000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "1",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_noncestorageFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_noncestorageFiller.json
new file mode 100644
index 000000000..b6ac91f08
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_noncestorageFiller.json
@@ -0,0 +1,202 @@
+{
+ "RevertPrecompiledTouch_noncestorage" : {
+ "env" : {
+ "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "4012015",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">=EIP158"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000002" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000003" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000004" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000005" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000006" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000007" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000008" : {
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0",
+ "code" : "{ (CALLCODE (GAS) (CALLDATALOAD 0) 0 0 0 0 0) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "1000000000000000000000000000000000000000" : {
+ "//comment" : "CALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALL 50000 1 0 0 0 0 0) (CALL 50000 2 0 0 0 0 0) (CALL 50000 3 0 0 0 0 0) (CALL 50000 4 0 0 0 0 0) (CALL 50000 5 0 0 0 0 0) (CALL 50000 6 0 0 0 0 0) (CALL 50000 7 0 0 0 0 0) (CALL 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "2000000000000000000000000000000000000000" : {
+ "//comment" : "DELEGATECALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (DELEGATECALL 50000 1 0 0 0 0) (DELEGATECALL 50000 2 0 0 0 0) (DELEGATECALL 50000 3 0 0 0 0) (DELEGATECALL 50000 4 0 0 0 0) (DELEGATECALL 50000 5 0 0 0 0) (DELEGATECALL 50000 6 0 0 0 0) (DELEGATECALL 50000 7 0 0 0 0) (DELEGATECALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "3000000000000000000000000000000000000000" : {
+ "//comment" : "CALLCODE precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALLCODE 50000 1 0 0 0 0 0) (CALLCODE 50000 2 0 0 0 0 0) (CALLCODE 50000 3 0 0 0 0 0) (CALLCODE 50000 4 0 0 0 0 0) (CALLCODE 50000 5 0 0 0 0 0) (CALLCODE 50000 6 0 0 0 0 0) (CALLCODE 50000 7 0 0 0 0 0) (CALLCODE 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "4000000000000000000000000000000000000000" : {
+ "//comment" : "STATICCALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (STATICCALL 50000 1 0 0 0 0) (STATICCALL 50000 2 0 0 0 0) (STATICCALL 50000 3 0 0 0 0) (STATICCALL 50000 4 0 0 0 0) (STATICCALL 50000 5 0 0 0 0) (STATICCALL 50000 6 0 0 0 0) (STATICCALL 50000 7 0 0 0 0) (STATICCALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000001" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000002" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000003" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000004" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000005" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000006" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000007" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000008" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x0000000000000000000000001000000000000000000000000000000000000000",
+ "0x0000000000000000000000002000000000000000000000000000000000000000",
+ "0x0000000000000000000000003000000000000000000000000000000000000000",
+ "0x0000000000000000000000004000000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "100000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "1",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_storageFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_storageFiller.json
new file mode 100644
index 000000000..8a1d6ed11
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouch_storageFiller.json
@@ -0,0 +1,278 @@
+{
+ "RevertPrecompiledTouch_storage" : {
+ "env" : {
+ "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "4012015",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000002" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000003" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000004" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000005" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000006" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000007" : {
+ "shouldnotexist" : "1"
+ },
+ "0000000000000000000000000000000000000008" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [1,2,3],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000002" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000003" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000004" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000005" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000006" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000007" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000008" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">=Byzantium"],
+ "result" : {
+ "0000000000000000000000000000000000000001" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000002" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000003" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000004" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000005" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000006" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000007" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000008" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0",
+ "code" : "{ (CALLCODE (GAS) (CALLDATALOAD 0) 0 0 0 0 0) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "1000000000000000000000000000000000000000" : {
+ "//comment" : "CALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALL 50000 1 0 0 0 0 0) (CALL 50000 2 0 0 0 0 0) (CALL 50000 3 0 0 0 0 0) (CALL 50000 4 0 0 0 0 0) (CALL 50000 5 0 0 0 0 0) (CALL 50000 6 0 0 0 0 0) (CALL 50000 7 0 0 0 0 0) (CALL 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "2000000000000000000000000000000000000000" : {
+ "//comment" : "DELEGATECALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (DELEGATECALL 50000 1 0 0 0 0) (DELEGATECALL 50000 2 0 0 0 0) (DELEGATECALL 50000 3 0 0 0 0) (DELEGATECALL 50000 4 0 0 0 0) (DELEGATECALL 50000 5 0 0 0 0) (DELEGATECALL 50000 6 0 0 0 0) (DELEGATECALL 50000 7 0 0 0 0) (DELEGATECALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "3000000000000000000000000000000000000000" : {
+ "//comment" : "CALLCODE precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (CALLCODE 50000 1 0 0 0 0 0) (CALLCODE 50000 2 0 0 0 0 0) (CALLCODE 50000 3 0 0 0 0 0) (CALLCODE 50000 4 0 0 0 0 0) (CALLCODE 50000 5 0 0 0 0 0) (CALLCODE 50000 6 0 0 0 0 0) (CALLCODE 50000 7 0 0 0 0 0) (CALLCODE 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "4000000000000000000000000000000000000000" : {
+ "//comment" : "STATICCALL precompiles and OOG",
+ "balance" : "0",
+ "code" : "{ (STATICCALL 50000 1 0 0 0 0) (STATICCALL 50000 2 0 0 0 0) (STATICCALL 50000 3 0 0 0 0) (STATICCALL 50000 4 0 0 0 0) (STATICCALL 50000 5 0 0 0 0) (STATICCALL 50000 6 0 0 0 0) (STATICCALL 50000 7 0 0 0 0) (STATICCALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ },
+ "0000000000000000000000000000000000000001" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000002" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000003" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000004" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000005" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000006" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000007" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ },
+ "0000000000000000000000000000000000000008" : {
+ "balance" : "0",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x0000000000000000000000001000000000000000000000000000000000000000",
+ "0x0000000000000000000000002000000000000000000000000000000000000000",
+ "0x0000000000000000000000003000000000000000000000000000000000000000",
+ "0x0000000000000000000000004000000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "100000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "1",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0"
+ ]
+ }
+ }
+}