From c200d9beebed39296c2e3cf09c2472e836ef8f30 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 30 Nov 2017 04:39:45 +0300 Subject: convert Frontier and Homestead ttTests to new format --- .../ttGasLimit/NotEnoughGasLimitFiller.json | 22 ++++++++++++++++++ .../TransactionWithGasLimitOverflow2Filler.json | 23 ++++++++++++++++++ .../TransactionWithGasLimitOverflow63Filler.json | 22 ++++++++++++++++++ .../TransactionWithGasLimitOverflow63_1Filler.json | 22 ++++++++++++++++++ .../TransactionWithGasLimitOverflowFiller.json | 22 ++++++++++++++++++ ...ansactionWithGasLimitxPriceOverflow2Filler.json | 22 ++++++++++++++++++ ...ransactionWithGasLimitxPriceOverflowFiller.json | 22 ++++++++++++++++++ .../ttGasLimit/TransactionWithHighGasFiller.json | 27 ++++++++++++++++++++++ 8 files changed, 182 insertions(+) create mode 100644 src/TransactionTestsFiller/ttGasLimit/NotEnoughGasLimitFiller.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow2Filler.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63Filler.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63_1Filler.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflowFiller.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflow2Filler.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflowFiller.json create mode 100644 src/TransactionTestsFiller/ttGasLimit/TransactionWithHighGasFiller.json (limited to 'src/TransactionTestsFiller/ttGasLimit') diff --git a/src/TransactionTestsFiller/ttGasLimit/NotEnoughGasLimitFiller.json b/src/TransactionTestsFiller/ttGasLimit/NotEnoughGasLimitFiller.json new file mode 100644 index 000000000..6f83275d3 --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/NotEnoughGasLimitFiller.json @@ -0,0 +1,22 @@ +{ + "NotEnoughGasLimit" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "invalid" + } + ], + "transaction" : + { + "data" : "0x", + "gasLimit" : "20000", + "gasPrice" : "1", + "nonce" : "3", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "10", + "v" : "28", + "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a", + "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow2Filler.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow2Filler.json new file mode 100644 index 000000000..09beaa01c --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow2Filler.json @@ -0,0 +1,23 @@ +{ + "TransactionWithGasLimitOverflow2" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "valid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "2^63", + "gasLimit" : "9223372036854775808", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "11", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63Filler.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63Filler.json new file mode 100644 index 000000000..fdc7f5bb6 --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63Filler.json @@ -0,0 +1,22 @@ +{ + "TransactionWithGasLimitOverflow63" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "valid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "9223372036854775808", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "11", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63_1Filler.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63_1Filler.json new file mode 100644 index 000000000..19e6d4dfc --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflow63_1Filler.json @@ -0,0 +1,22 @@ +{ + "TransactionWithGasLimitOverflow63_1" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "valid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "9223372036854775809", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "11", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflowFiller.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflowFiller.json new file mode 100644 index 000000000..a1a0bca45 --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitOverflowFiller.json @@ -0,0 +1,22 @@ +{ + "TransactionWithGasLimitOverflow" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "invalid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "115792089237316195423570985008687907853269984665640564039457584007913129639936", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "11", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflow2Filler.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflow2Filler.json new file mode 100644 index 000000000..a0680877a --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflow2Filler.json @@ -0,0 +1,22 @@ +{ + "TransactionWithGasLimitxPriceOverflow2" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "valid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "10000000", + "gasPrice" : "16769767339735900", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflowFiller.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflowFiller.json new file mode 100644 index 000000000..e777d8842 --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithGasLimitxPriceOverflowFiller.json @@ -0,0 +1,22 @@ +{ + "TransactionWithGasLimitxPriceOverflow" : { + "expect" : [ + { + "network" : ["ALL"], + "result" : "valid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", + "gasPrice" : "100000000000000000", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} diff --git a/src/TransactionTestsFiller/ttGasLimit/TransactionWithHighGasFiller.json b/src/TransactionTestsFiller/ttGasLimit/TransactionWithHighGasFiller.json new file mode 100644 index 000000000..cd05c0639 --- /dev/null +++ b/src/TransactionTestsFiller/ttGasLimit/TransactionWithHighGasFiller.json @@ -0,0 +1,27 @@ +{ + "TransactionWithHighGas" : { + "expect" : [ + { + "network" : ["Frontier"], + "result" : "valid" + }, + { + "network" : ["Homestead", "EIP150", "EIP158", "Byzantium", "Constantinople"], + "result" : "invalid" + } + ], + "transaction" : + { + "data" : "", + "gasLimit" : "2^63 - 1", + "gasLimit" : "9223372036854775807", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + } +} -- cgit v1.2.3