aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller
diff options
context:
space:
mode:
authorJared Wasinger <j-wasinger@hotmail.com>2017-09-16 06:09:17 +0800
committerJared Wasinger <j-wasinger@hotmail.com>2017-09-16 06:09:17 +0800
commitc37dae1b3044ab315f08403348093eb3e09773bf (patch)
tree6f6bfb9786cd792822852e7bdcb9486bb4bdc762 /src/GeneralStateTestsFiller
parentca41e906351209481bce3a1b35501f25a79023c5 (diff)
downloadtangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.tar
tangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.tar.gz
tangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.tar.bz2
tangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.tar.lz
tangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.tar.xz
tangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.tar.zst
tangerine-tests-c37dae1b3044ab315f08403348093eb3e09773bf.zip
add tests for all good opcodes in contract init
Diffstat (limited to 'src/GeneralStateTestsFiller')
-rw-r--r--src/GeneralStateTestsFiller/stTransactionTest/Opcodes_TransactionInitFiller.json316
1 files changed, 316 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/Opcodes_TransactionInitFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/Opcodes_TransactionInitFiller.json
new file mode 100644
index 000000000..c761fc9ac
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stTransactionTest/Opcodes_TransactionInitFiller.json
@@ -0,0 +1,316 @@
+{
+ "Opcodes_TransactionInit" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x20000",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+{
+ "//comment": "CODECOPY: not supported in earlier networks",
+ "indexes" : {
+ "data" : 33,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1",
+ "storage": {
+ "0x00": "0x38600060013960015160005560006000f3000000000000000000000000000000"
+ }
+ }
+ }
+},
+
+{
+ "//comment": "RETURNDATASIZE: not supported in earlier networks",
+ "indexes" : {
+ "data" : 37,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP150", "Homestead", "Frontier"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "shouldnotexist": "1"
+ }
+ }
+},
+{
+ "//comment": "RETURNDATASIZE: not supported in earlier networks",
+ "indexes" : {
+ "data" : 37,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1"
+ }
+ }
+},
+
+{
+ "//comment": "RETURNDATACOPY: not supported in earlier networks",
+ "indexes" : {
+ "data" : 38,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP150", "Homestead", "Frontier"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "shouldnotexist": "1"
+ }
+ }
+},
+{
+ "//comment": "RETURNDATACOPY: not supported in earlier networks",
+ "indexes" : {
+ "data" : 38,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1"
+ }
+ }
+},
+
+{
+ "indexes" : {
+ "data" : 120,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158", "Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "2"
+ }
+ }
+},
+{
+ "indexes" : {
+ "data" : 120,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1"
+ }
+ }
+},
+
+{
+ "indexes" : {
+ "data" : 124,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158", "Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1"
+ }
+ }
+},
+{
+ "indexes" : {
+ "data" : 124,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Homestead", "EIP150"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "0"
+ }
+ }
+},
+{
+ "indexes" : {
+ "data" : 124,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "shouldnotexist": "1"
+ }
+ }
+},
+
+{
+ "indexes" : {
+ "data" : 125,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1"
+ }
+ }
+},
+{
+ "indexes" : {
+ "data" : 125,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150", "EIP158"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "shouldnotexist": "1"
+ }
+ }
+},
+
+{
+ "indexes" : {
+ "data" : 126,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["ALL"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "shouldnotexist": "1"
+ }
+ }
+},
+
+{
+ "indexes" : {
+ "data" : 127,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["EIP158", "Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "shouldnotexist": "1"
+ }
+ }
+},
+
+{
+ "indexes" : {
+ "data" : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 123],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "0"
+ }
+ }
+},
+{
+ "indexes" : {
+ "data" : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 123],
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Byzantium", "Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f": {
+ "nonce": "1"
+ }
+ }
+}
+],
+ "pre" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code": "0x",
+ "nonce": "0",
+ "storage": {
+ "0x0": "0x00"
+ }
+ },
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "//code": "{ 0xffff (RETURN 0x0 0x4) }",
+ "code": "0x61ffff5060046000f3",
+ "nonce": "1",
+ "storage": {}
+ }
+ },
+ "transaction" : {
+ "data" : ["0x0060016000f3", "0x60016001015060006000f3", "0x60016001025060006000f3", "0x60016001035060006000f3", "0x60016001045060006000f3", "0x60016001055060006000f3", "0x60016001065060006000f3", "0x60016001075060006000f3", "0x600160016001085060006000f3", "0x600160016001095060006000f3", "0x600160010a5060006000f3", "0x600160010b5060006000f3", "0x60016001105060006000f3", "0x60016001115060006000f3", "0x60016001125060006000f3", "0x60016001135060006000f3", "0x60016001145060006000f3", "0x6000155060006000f3", "0x60006000165060006000f3", "0x60006000175060006000f3", "0x60006000185060006000f3", "0x6000195060006000f3", "0x67805020100804020160001a5060006000f3", "0x600060002060006000f3", "0x305060006000f3", "0x6000315060006000f3", "0x325060006000f3", "0x335060006000f3", "0x345060006000f3", "0x6000355060006000f3", "0x365060006000f3", "0x6000600060003760006000f3", "0x385060006000f3", "0x38600060013960015160005560006000f3", "0x3a5060006000f3", "0x60003b5060006000f3", "0x6014600060007310000000000000000000000000000000000000103c60006000f3", "0x3d5060006000f3", "0x6000600060003e60006000f3", "0x60005060005060006000f3", "0x6000515060006000f3", "0x600060005260006000f3", "0x60ff60005360006000f3", "0x6000545060006000f3", "0x600160015560006000f3", "0x600456005b60006000f3", "0x6001600657005b60006000f3", "0x585060006000f3", "0x595060006000f3", "0x5a5060006000f3", "0x5b60006000f3", "0x60ff5060006000f3", "0x61ffff5060006000f3", "0x62ffffff5060006000f3", "0x63ffffffff5060006000f3", "0x64ffffffffff5060006000f3", "0x65ffffffffffff5060006000f3", "0x66ffffffffffffff5060006000f3", "0x67ffffffffffffffff5060006000f3", "0x68ffffffffffffffffff5060006000f3", "0x69ffffffffffffffffffff5060006000f3", "0x6affffffffffffffffffffff5060006000f3", "0x6bffffffffffffffffffffffff5060006000f3", "0x6cffffffffffffffffffffffffff5060006000f3", "0x6dffffffffffffffffffffffffffff5060006000f3", "0x6effffffffffffffffffffffffffffff5060006000f3", "0x6fffffffffffffffffffffffffffffffff5060006000f3", "0x70ffffffffffffffffffffffffffffffffff5060006000f3", "0x71ffffffffffffffffffffffffffffffffffff5060006000f3", "0x72ffffffffffffffffffffffffffffffffffffff5060006000f3", "0x73ffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x74ffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x75ffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x76ffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x77ffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x78ffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x79ffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x7affffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x7cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5060006000f3", "0x60ff80505060006000f3", "0x60ff60ff8150505060006000f3", "0x60ff60ff60ff825050505060006000f3", "0x60ff60ff60ff60ff83505050505060006000f3", "0x60ff60ff60ff60ff60ff8450505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff855050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff86505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff8750505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff885050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff89505050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff8a50505050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff8b5050505050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff8c505050505050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff8d50505050505050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff8e5050505050505050505050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff8f505050505050505050505050505050505060006000f3", "0x60ff60ff90505060006000f3", "0x60ff60ff60ff9150505060006000f3", "0x60ff60ff60ff60ff925050505060006000f3", "0x60ff60ff60ff60ff60ff93505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff9450505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff955050505050505060006000f3", "0x60ff60ff60ff60ff60ff60ff60ff60ff96505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff9750505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff985050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff99505050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff9a50505050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff9b5050505050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff9c505050505050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff9d50505050505050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff9e5050505050505050505050505050505060006000f3", "0x600060ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff60ff9f505050505050505050505050505050505060006000f3", "0x60006000a060006000f3", "0x60ff60006000a160006000f3", "0x60ff60ff60006000a260006000f3", "0x60ff60ff60ff60006000a360006000f3", "0x60ff60ff60ff60ff60006000a460006000f3", "0x6000600060fff05060006000f3", "0x60006000600060006017730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66064f15060006000f3", "0x60006000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66064f25060006000f3", "0x60006000f3", "0x6000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec6620186a0f45060006000f3", "0x6000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec6612710fa5060006000f3", "0x60006000fd60006000f3", "0x32ff"],
+ "gasLimit" : [
+ "400000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "value" : [
+ "100000"
+ ]
+ }
+ }
+}