aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stTransactionTest
diff options
context:
space:
mode:
authorDimitry <dimitry@ethdev.com>2017-03-22 17:38:23 +0800
committerDimitry <dimitry@ethdev.com>2017-03-22 17:38:23 +0800
commited177d16a2e2784b8dd6c454b8c4c5e1288c3ad6 (patch)
treed6921cdd32dcc956f85c1b6af4ea0a8a4a54f8ce /src/GeneralStateTestsFiller/stTransactionTest
parent8858744aa1ce1be54f2c5149cb4c4b2ce0090cc6 (diff)
downloadtangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.tar
tangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.tar.gz
tangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.tar.bz2
tangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.tar.lz
tangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.tar.xz
tangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.tar.zst
tangerine-tests-ed177d16a2e2784b8dd6c454b8c4c5e1288c3ad6.zip
zeroSig Transaction test fillers
Diffstat (limited to 'src/GeneralStateTestsFiller/stTransactionTest')
-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
7 files changed, 586 insertions, 0 deletions
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"
+ ]
+ }
+ }
+}