aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/GeneralStateTestsFiller/stCreateTest/CREATE_EContractCreateNEContractInInitOOG_TrFiller.json27
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json93
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json93
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json92
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json92
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json62
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json92
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json62
8 files changed, 610 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stCreateTest/CREATE_EContractCreateNEContractInInitOOG_TrFiller.json b/src/GeneralStateTestsFiller/stCreateTest/CREATE_EContractCreateNEContractInInitOOG_TrFiller.json
index e6ef82281..54e46ecb2 100644
--- a/src/GeneralStateTestsFiller/stCreateTest/CREATE_EContractCreateNEContractInInitOOG_TrFiller.json
+++ b/src/GeneralStateTestsFiller/stCreateTest/CREATE_EContractCreateNEContractInInitOOG_TrFiller.json
@@ -12,7 +12,7 @@
{
"indexes" : {
"data" : -1,
- "gas" : -1,
+ "gas" : 0,
"value" : -1
},
"network" : ["EIP158"],
@@ -33,7 +33,28 @@
{
"indexes" : {
"data" : -1,
- "gas" : -1,
+ "gas" : 1,
+ "value" : -1
+ },
+ "network" : ["EIP158"],
+ "result" : {
+ "c94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x01" : "0x00"
+ }
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
+ "shouldnotexist" : "1"
+ },
+ "a42676447b7cedfa5fde894d1d3df24aab362701" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : 0,
"value" : -1
},
"network" : ["Frontier", "Homestead", "EIP150"],
@@ -80,7 +101,7 @@
"0x6000600060006000600073c94f5374fce5edbc8e2a8697c15331677e6ebf0b61ea60f1506d64600c6000556000526005601bf3600052600e60126000f0"
],
"gasLimit" : [
- "160000"
+ "160000", "60000"
],
"gasPrice" : "1",
"nonce" : "0",
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json
new file mode 100644
index 000000000..f7acd36a3
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json
@@ -0,0 +1,93 @@
+{
+ "zeroSigTransacrionCreate" : {
+ "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" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [1],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [0],
+ "gas" : [1,2,3],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [0],
+ "gas" : [0],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "balance" : "0x01",
+ "nonce" : "0x01"
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "ffffffffffffffffffffffffffffffffffffffff" : {
+ "balance" : "100000",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "", "0x1122334455667788990011223344556677889910"
+ ],
+ "gasLimit" : [
+ "60000", "20000", "21000", "121000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "v" : "1",
+ "r" : "0",
+ "s" : "0",
+ "to" : "",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json
new file mode 100644
index 000000000..bf1fefee1
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json
@@ -0,0 +1,93 @@
+{
+ "zeroSigTransacrionCreatePrice0" : {
+ "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" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [1],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [0],
+ "gas" : [1,2],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [0],
+ "gas" : [0,3],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : {
+ "balance" : "0x01",
+ "nonce" : "0x01"
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "ffffffffffffffffffffffffffffffffffffffff" : {
+ "balance" : "100",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "", "0x1122334455667788990011223344556677889910"
+ ],
+ "gasLimit" : [
+ "60000", "20000", "21000", "121000"
+ ],
+ "gasPrice" : "0",
+ "nonce" : "0",
+ "v" : "1",
+ "r" : "0",
+ "s" : "0",
+ "to" : "",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json
new file mode 100644
index 000000000..740db9d0f
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json
@@ -0,0 +1,92 @@
+{
+ "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"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150", "EIP158"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [0,3],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ }
+ }
+ ],
+ "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/stTransactionTest/zeroSigTransactionFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json
new file mode 100644
index 000000000..6bd737a8c
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json
@@ -0,0 +1,92 @@
+{
+ "zeroSigTransaction" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [1,2,3],
+ "value" : -1
+ },
+ "network" : ["ALL"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150", "EIP158"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [0],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ }
+ }
+ ],
+ "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" : "1",
+ "nonce" : "0",
+ "v" : "1",
+ "r" : "0",
+ "s" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0", "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json
new file mode 100644
index 000000000..87099575d
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json
@@ -0,0 +1,62 @@
+{
+ "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"
+ }
+ }
+ }
+ }
+ ],
+ "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" : "1",
+ "nonce" : "10",
+ "v" : "0",
+ "r" : "0",
+ "s" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0", "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json
new file mode 100644
index 000000000..730166c84
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json
@@ -0,0 +1,92 @@
+{
+ "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"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [1,2],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [0],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "storage" : {
+ "0x00" : "0x01"
+ }
+ }
+ }
+ }
+ ],
+ "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" : "1",
+ "nonce" : "10",
+ "v" : "1",
+ "r" : "0",
+ "s" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0", "1"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json
new file mode 100644
index 000000000..c5bbe6811
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json
@@ -0,0 +1,62 @@
+{
+ "zeroSigTransactionOOG" : {
+ "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"
+ }
+ }
+ }
+ }
+ ],
+ "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" : "1",
+ "nonce" : "0",
+ "v" : "1",
+ "r" : "0",
+ "s" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0", "1"
+ ]
+ }
+ }
+}