aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
Diffstat (limited to 'src/GeneralStateTestsFiller')
-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/extCodeHashInInitCodeFiller.json94
-rw-r--r--src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSTATICCALLFiller.json111
5 files changed, 538 insertions, 0 deletions
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/extCodeHashInInitCodeFiller.json b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashInInitCodeFiller.json
new file mode 100644
index 000000000..2c595ac51
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashInInitCodeFiller.json
@@ -0,0 +1,94 @@
+{
+ "extCodeHashInInitCode" : {
+ "_info" : {
+ "comment": "EXTCODEHASH/EXTCODESIZE of an account during init code(creation code)"
+ },
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">=Constantinople"],
+ "result" : {
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
+ "storage" : {
+ "0x00" : "0x36712aa4d0dd2f64a9ae6ac09555133a157c74ddf7c079a70c33e8b4bf70dd73",
+ "0x01" : "4"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">=Constantinople"],
+ "result" : {
+ "9122274c7d948cae743de3b0743236d50460cd54" : {
+ "storage" : {
+ "0x00" : "0x36712aa4d0dd2f64a9ae6ac09555133a157c74ddf7c079a70c33e8b4bf70dd73",
+ "0x01" : "4"
+ }
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x11223344",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "{ [[0]] (EXTCODEHASH 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) [[1]] (EXTCODESIZE 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) }",
+ "{ (seq (CREATE2 0 0 (lll (seq [[0]] (EXTCODEHASH 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) [[1]] (EXTCODESIZE 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) ) 0) 0) (STOP) )}"
+ ],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "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"
+ ]
+ }
+ }
+}