diff options
Diffstat (limited to 'src/GeneralStateTestsFiller')
11 files changed, 1270 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransaction0PriceFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransaction0PriceFiller.json new file mode 100644 index 000000000..4ffa0e04b --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransaction0PriceFiller.json @@ -0,0 +1,119 @@ +{ + "zeroSigTransaction0Price" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 1 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionCreateFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionCreateFiller.json new file mode 100644 index 000000000..73b115efd --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionCreateFiller.json @@ -0,0 +1,125 @@ +{ + "zeroSigTransactionCreate" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150", "Byzantium"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [1], + "gas" : -1, + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [1,2], + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [0,3], + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "balance" : "0x00", + "nonce" : "0x01" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [2], + "gas" : [3], + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "nonce" : "0x01", + "storage" : { + "0x00" : "0xffffffffffffffffffffffffffffffffffffffff", + "0x01" : "0xffffffffffffffffffffffffffffffffffffffff" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910", "0x3260005533600155" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "", + "value" : [ + "0" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionCreatePrice0Filler.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionCreatePrice0Filler.json new file mode 100644 index 000000000..13baa8c87 --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionCreatePrice0Filler.json @@ -0,0 +1,125 @@ +{ + "zeroSigTransactionCreatePrice0" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150", "Byzantium"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "96b19ced219f86286c413422a6698a7439d1fa52" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [1], + "gas" : -1, + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [1,2], + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [0,3], + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "balance" : "0x00", + "nonce" : "0x01" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [2], + "gas" : [0,3], + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "balance" : "0x00", + "nonce" : "0x01" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910", "0x6000" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "", + "value" : [ + "0" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionFiller.json new file mode 100644 index 000000000..587c33a2c --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionFiller.json @@ -0,0 +1,119 @@ +{ + "zeroSigTransaction" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0], + "value" : 1 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1", "100000" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvChainIDFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvChainIDFiller.json new file mode 100644 index 000000000..6211d4b87 --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvChainIDFiller.json @@ -0,0 +1,65 @@ +{ + "zeroSigTransactionInvChainID" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "0", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvNonce2Filler.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvNonce2Filler.json new file mode 100644 index 000000000..c8393019c --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvNonce2Filler.json @@ -0,0 +1,83 @@ +{ + "zeroSigTransactionInvNonce2" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150", "Byzantium"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "1" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "1" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "1", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "1", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvNonceFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvNonceFiller.json new file mode 100644 index 000000000..c8e2f0f7c --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionInvNonceFiller.json @@ -0,0 +1,83 @@ +{ + "zeroSigTransactionInvNonce" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150", "Byzantium"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "10", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionOOGFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionOOGFiller.json new file mode 100644 index 000000000..b722c779b --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionOOGFiller.json @@ -0,0 +1,119 @@ +{ + "zeroSigTransactionOOG" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "Byzantium"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : 0, + "gas" : [1], + "value" : -1 + }, + "network" : ["EIP158", "Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : 1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["EIP158", "Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [3,0], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "shouldnotexist" : "1" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionOriginFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionOriginFiller.json new file mode 100644 index 000000000..9509efdd4 --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionOriginFiller.json @@ -0,0 +1,110 @@ +{ + "zeroSigTransactionOrigin" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0xffffffffffffffffffffffffffffffffffffffff", + "0x01" : "0xffffffffffffffffffffffffffffffffffffffff" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0", + "0x01" : "0" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium"], + "result" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + } + ], + "pre" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "1000000000000000000000000000000000000000" : { + "balance" : "100000", + "code" : "{ [[0]] (ORIGIN) [[1]] (CALLER) }", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "70000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "1000000000000000000000000000000000000000", + "value" : [ + "0", "1", "100000" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionToZero2Filler.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionToZero2Filler.json new file mode 100644 index 000000000..eb4fc12ae --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionToZero2Filler.json @@ -0,0 +1,248 @@ +{ + "zeroSigTransactionToZero2" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : 1 + }, + "network" : ["Constantinople"], + "result" : { + "a000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x00" + } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x00" + } + }, + "2000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x00" + } + }, + "3000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [0], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "a000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x01" + } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x01", + "0x02" : "0xffffffffffffffffffffffffffffffffffffffff", + "0x03" : "0xa000000000000000000000000000000000000000" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : [1], + "gas" : [0], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "a000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x01" + } + }, + "2000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x01", + "0x02" : "0xffffffffffffffffffffffffffffffffffffffff", + "0x03" : "0xa000000000000000000000000000000000000000" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : [2], + "gas" : [0], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "a000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x01" + } + }, + "3000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x01", + "0x02" : "0xffffffffffffffffffffffffffffffffffffffff", + "0x03" : "0xa000000000000000000000000000000000000000" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : 0 + }, + "network" : ["Constantinople"], + "result" : { + "a000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x00" + } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x00" + } + }, + "2000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x00" + } + }, + "3000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium"], + "result" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + } + ], + "pre" : { + "a000000000000000000000000000000000000000" : { + "balance" : "100000", + "code" : "{ [[0]](CALL (GAS) (CALLDATALOAD 0) (CALLVALUE) 0 0 0 0) }", + "nonce" : "0", + "storage" : { + } + }, + "1000000000000000000000000000000000000000" : { + "balance" : "100000", + "code" : "{ [[1]] (CALL (GAS) 0xffffffffffffffffffffffffffffffffffffffff (CALLVALUE) 0 0 0 0) [[2]] (ORIGIN) [[3]] (CALLER) }", + "nonce" : "0", + "storage" : { + } + }, + "2000000000000000000000000000000000000000" : { + "balance" : "100000", + "code" : "{ [[1]] (CALLCODE (GAS) 0xffffffffffffffffffffffffffffffffffffffff (CALLVALUE) 0 0 0 0) [[2]] (ORIGIN) [[3]] (CALLER) }", + "nonce" : "0", + "storage" : { + } + }, + "3000000000000000000000000000000000000000" : { + "balance" : "100000", + "code" : "{ [[1]] (DELEGATECALL (GAS) 0xffffffffffffffffffffffffffffffffffffffff 0 0 0 0) [[2]] (ORIGIN) [[3]] (CALLER) }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x0000000000000000000000001000000000000000000000000000000000000000", + "0x0000000000000000000000002000000000000000000000000000000000000000", + "0x0000000000000000000000003000000000000000000000000000000000000000" + ], + "gasLimit" : [ + "600000", "20000", "0" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "a000000000000000000000000000000000000000", + "value" : [ + "0", "100" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionToZeroFiller.json b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionToZeroFiller.json new file mode 100644 index 000000000..8e5c1dfe0 --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroSigTests/zeroSigTransactionToZeroFiller.json @@ -0,0 +1,74 @@ +{ + "zeroSigTransactionToZero" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Constantinople"], + "result" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium"], + "result" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + } + } + ], + "pre" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "ffffffffffffffffffffffffffffffffffffffff", + "value" : [ + "0", "1", "100000" + ] + } + } +} |