diff options
author | Dimitry <dimitry@ethereum.org> | 2017-11-30 09:39:45 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2017-11-30 09:39:45 +0800 |
commit | c200d9beebed39296c2e3cf09c2472e836ef8f30 (patch) | |
tree | 63d063eb67af4b67957ff7b7d184b0e640a392c7 /src/TransactionTestsFiller/ttGasLimit | |
parent | bffedcb426663a4935782e91d28de3ece82df40f (diff) | |
download | dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.gz dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.bz2 dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.lz dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.xz dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.zst dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.zip |
convert Frontier and Homestead ttTests to new format
Diffstat (limited to 'src/TransactionTestsFiller/ttGasLimit')
8 files changed, 182 insertions, 0 deletions
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" + } + } +} |