diff options
author | Dimitry <dimitry@ethdev.com> | 2017-03-29 19:28:22 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-03-29 19:28:22 +0800 |
commit | 0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027 (patch) | |
tree | a72934926acf759dcd3ef8c4e78e1797f3bd71ea /src/GeneralStateTestsFiller | |
parent | f5f929f33bcc3e6b4d2908346dbbdd614bf50571 (diff) | |
download | tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.tar tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.tar.gz tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.tar.bz2 tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.tar.lz tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.tar.xz tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.tar.zst tangerine-tests-0d7e2ba8a2c72831696e8bcd09ce0cedeb01e027.zip |
zeroSig Transaction state tests
Diffstat (limited to 'src/GeneralStateTestsFiller')
8 files changed, 227 insertions, 51 deletions
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json index f7acd36a3..08b3fc53f 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json @@ -19,7 +19,10 @@ "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { "shouldnotexist" : "1" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { @@ -32,34 +35,43 @@ "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { "shouldnotexist" : "1" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { "indexes" : { "data" : [0], - "gas" : [1,2,3], + "gas" : [1,2], "value" : -1 }, "network" : ["Metropolis"], "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { "shouldnotexist" : "1" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { "indexes" : { "data" : [0], - "gas" : [0], + "gas" : [0,3], "value" : -1 }, "network" : ["Metropolis"], "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { - "balance" : "0x01", + "balance" : "0x00", "nonce" : "0x01" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], @@ -79,14 +91,14 @@ "gasLimit" : [ "60000", "20000", "21000", "121000" ], - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "v" : "1", "r" : "0", "s" : "0", "to" : "", "value" : [ - "1" + "0" ] } } diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json index bf1fefee1..189fead65 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json @@ -19,7 +19,10 @@ "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { "shouldnotexist" : "1" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { @@ -32,7 +35,10 @@ "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { "shouldnotexist" : "1" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { @@ -45,7 +51,10 @@ "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { "shouldnotexist" : "1" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { @@ -57,9 +66,12 @@ "network" : ["Metropolis"], "result" : { "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { - "balance" : "0x01", + "balance" : "0x00", "nonce" : "0x01" - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], @@ -86,7 +98,7 @@ "s" : "0", "to" : "", "value" : [ - "1" + "0" ] } } diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json index 740db9d0f..dec145b7b 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json @@ -21,7 +21,10 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { @@ -36,14 +39,17 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { "indexes" : { "data" : -1, "gas" : [0,3], - "value" : -1 + "value" : 0 }, "network" : ["Metropolis"], "result" : { @@ -51,7 +57,28 @@ "storage" : { "0x00" : "0x01" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json index 6bd737a8c..58ac55dd5 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json @@ -12,7 +12,7 @@ { "indexes" : { "data" : -1, - "gas" : [1,2,3], + "gas" : [1,2], "value" : -1 }, "network" : ["ALL"], @@ -21,7 +21,10 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { @@ -36,14 +39,17 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { "indexes" : { "data" : -1, - "gas" : [0], - "value" : -1 + "gas" : [0,3], + "value" : 0 }, "network" : ["Metropolis"], "result" : { @@ -51,7 +57,28 @@ "storage" : { "0x00" : "0x01" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0], + "value" : 1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], @@ -78,7 +105,7 @@ "gasLimit" : [ "60000", "20000", "21000", "121000" ], - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "v" : "1", "r" : "0", diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json index 87099575d..6211d4b87 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json @@ -21,7 +21,10 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], @@ -48,8 +51,8 @@ "gasLimit" : [ "60000", "21000", "121000" ], - "gasPrice" : "1", - "nonce" : "10", + "gasPrice" : "0", + "nonce" : "0", "v" : "0", "r" : "0", "s" : "0", diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonce2Filler.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonce2Filler.json new file mode 100644 index 000000000..586da08b8 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/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"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "1" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "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/stTransactionTest/zeroSigTransactionInvNonceFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json index 730166c84..105e1c3b0 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json @@ -21,13 +21,16 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } }, { "indexes" : { "data" : -1, - "gas" : [1,2], + "gas" : -1, "value" : -1 }, "network" : ["Metropolis"], @@ -36,22 +39,10 @@ "storage" : { "0x00" : "0x00" } - } - } - }, - { - "indexes" : { - "data" : -1, - "gas" : [0], - "value" : -1 - }, - "network" : ["Metropolis"], - "result" : { - "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "storage" : { - "0x00" : "0x01" - } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], @@ -78,7 +69,7 @@ "gasLimit" : [ "60000", "21000", "121000" ], - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "10", "v" : "1", "r" : "0", diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json index c5bbe6811..3e74db2f7 100644 --- a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json @@ -12,7 +12,7 @@ { "indexes" : { "data" : -1, - "gas" : -1, + "gas" : [1,2], "value" : -1 }, "network" : ["ALL"], @@ -21,7 +21,28 @@ "storage" : { "0x00" : "0x00" } - } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [3,0], + "value" : 0 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } } } ], @@ -48,7 +69,7 @@ "gasLimit" : [ "60000", "20000", "21000", "121000" ], - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "v" : "1", "r" : "0", |