diff --git a/tools/t8n/t8n_test.nim b/tools/t8n/t8n_test.nim index 2020869e1..a6b1e063b 100644 --- a/tools/t8n/t8n_test.nim +++ b/tools/t8n/t8n_test.nim @@ -295,6 +295,69 @@ const output: T8nOutput(alloc: true, result: true), expOut: "exp.json", ), + TestSpec( + name : "0-touch reward on pre EIP150 networks -1(txs.rlp)", + base : "testdata/00-501", + input : t8nInput( + "alloc.json", "txs.rlp", "env.json", "EIP150", "-1" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ), + TestSpec( + name : "0-touch reward on pre EIP150 networks(txs.rlp)", + base : "testdata/00-502", + input : t8nInput( + "alloc.json", "txs.rlp", "env.json", "EIP150", "" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ), + TestSpec( + name : "0-touch reward on pre EIP150 networks(txs.json)", + base : "testdata/00-502", + input : t8nInput( + "alloc.json", "txs.json", "env.json", "EIP150", "" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ), + TestSpec( + name : "calculate basefee from parentBaseFee -1", + base : "testdata/00-503", + input : t8nInput( + "alloc.json", "txs.json", "env.json", "London", "-1" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ), + TestSpec( + name : "calculate basefee from parentBaseFee", + base : "testdata/00-504", + input : t8nInput( + "alloc.json", "txs.json", "env.json", "London", "" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ), + TestSpec( + name : "BLOCKHASH opcode -1", + base : "testdata/00-505", + input : t8nInput( + "alloc.json", "txs.json", "env.json", "London", "-1" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ), + TestSpec( + name : "BLOCKHASH opcode", + base : "testdata/00-506", + input : t8nInput( + "alloc.json", "txs.json", "env.json", "London", "" + ), + output: T8nOutput(alloc: true, result: true), + expOut: "exp.json", + ) ] proc main() = diff --git a/tools/t8n/testdata/00-501/alloc.json b/tools/t8n/testdata/00-501/alloc.json new file mode 100644 index 000000000..3168e128d --- /dev/null +++ b/tools/t8n/testdata/00-501/alloc.json @@ -0,0 +1,16 @@ +{ + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x3b9aca00", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xd0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0" : { + "balance" : "0x00", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-501/env.json b/tools/t8n/testdata/00-501/env.json new file mode 100644 index 000000000..7f8298cf2 --- /dev/null +++ b/tools/t8n/testdata/00-501/env.json @@ -0,0 +1,8 @@ +{ + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentNumber" : "0x00", + "currentTimestamp" : "0x00", + "currentGasLimit" : "0x05500000", + "previousHash" : "0x0000000000000000000000000000000000000000000000000000000000000000" +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-501/exp.json b/tools/t8n/testdata/00-501/exp.json new file mode 100644 index 000000000..2e04faf86 --- /dev/null +++ b/tools/t8n/testdata/00-501/exp.json @@ -0,0 +1,26 @@ +{ + "alloc": { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0x3b9aca00" + }, + "0xd0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0": { + "balance": "0x0" + } + }, + "result": { + "stateRoot": "0x1751725d1aad5298768fbcf64069b2c1b85aeaffcc561146067d6beedd08052a", + "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [], + "rejected": [ + { + "index": 0, + "error": "insufficient funds for gas * price + value: address 0xa94f5374Fce5edBC8E2a8697C15331677e6EbF0B have 1000000000 want 115792089237316195423570985008687907853269984665640564039457584007914129628001" + } + ], + "currentDifficulty": "0x20000", + "gasUsed": "0x0" + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-501/txs.rlp b/tools/t8n/testdata/00-501/txs.rlp new file mode 100644 index 000000000..1c318eb60 --- /dev/null +++ b/tools/t8n/testdata/00-501/txs.rlp @@ -0,0 +1 @@ +"0xf880f87e809f031eea408f8e1799cb883da2927b1336521d73c2c14accfebb70d5c5af006c82520894d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d001801ca039b081ab7094dff1b3ac79cbf8e381adc9f7a4e16290d7abc42dd006e5e062c5a033af00e26e5eb4431dcad601b2c8bf12d51eef2bd037d14681f22692ffab1ccd" \ No newline at end of file diff --git a/tools/t8n/testdata/00-502/alloc.json b/tools/t8n/testdata/00-502/alloc.json new file mode 100644 index 000000000..3168e128d --- /dev/null +++ b/tools/t8n/testdata/00-502/alloc.json @@ -0,0 +1,16 @@ +{ + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x3b9aca00", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xd0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0" : { + "balance" : "0x00", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-502/env.json b/tools/t8n/testdata/00-502/env.json new file mode 100644 index 000000000..f8a4d7fd1 --- /dev/null +++ b/tools/t8n/testdata/00-502/env.json @@ -0,0 +1,13 @@ +{ + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "currentGasLimit" : "0x05500000", + "previousHash" : "0xa96bbebc0b60fd343eead12143896f9331f436013c0f28cfd13698f0348f4b03", + "parentTimestamp" : "0x00", + "parentDifficulty" : "0x020000", + "parentUncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "blockHashes" : { + "0" : "0xa96bbebc0b60fd343eead12143896f9331f436013c0f28cfd13698f0348f4b03" + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-502/exp.json b/tools/t8n/testdata/00-502/exp.json new file mode 100644 index 000000000..6455625f8 --- /dev/null +++ b/tools/t8n/testdata/00-502/exp.json @@ -0,0 +1,29 @@ +{ + "alloc": { + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "balance": "0x0" + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0x3b9aca00" + }, + "0xd0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0": { + "balance": "0x0" + } + }, + "result": { + "stateRoot": "0x7e18cda82e88b51f339192016b7f3e803051e1e115260efb25f8602b894226ec", + "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [], + "rejected": [ + { + "index": 0, + "error": "insufficient funds for gas * price + value: address 0xa94f5374Fce5edBC8E2a8697C15331677e6EbF0B have 1000000000 want 115792089237316195423570985008687907853269984665640564039457584007914129628001" + } + ], + "currentDifficulty": "0x20000", + "gasUsed": "0x0" + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-502/txs.json b/tools/t8n/testdata/00-502/txs.json new file mode 100644 index 000000000..8714e68cf --- /dev/null +++ b/tools/t8n/testdata/00-502/txs.json @@ -0,0 +1,13 @@ +[ +{ + "data" : "0x", + "gasLimit" : "0x5208", + "gasPrice" : "0x31eea408f8e1799cb883da2927b1336521d73c2c14accfebb70d5c5af006c", + "nonce" : "0x0", + "to" : "0xd0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0", + "value" : "0x1", + "v" : "0x1c", + "r" : "0x39b081ab7094dff1b3ac79cbf8e381adc9f7a4e16290d7abc42dd006e5e062c5", + "s" : "0x33af00e26e5eb4431dcad601b2c8bf12d51eef2bd037d14681f22692ffab1ccd" +} +] \ No newline at end of file diff --git a/tools/t8n/testdata/00-502/txs.rlp b/tools/t8n/testdata/00-502/txs.rlp new file mode 100644 index 000000000..1c318eb60 --- /dev/null +++ b/tools/t8n/testdata/00-502/txs.rlp @@ -0,0 +1 @@ +"0xf880f87e809f031eea408f8e1799cb883da2927b1336521d73c2c14accfebb70d5c5af006c82520894d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d001801ca039b081ab7094dff1b3ac79cbf8e381adc9f7a4e16290d7abc42dd006e5e062c5a033af00e26e5eb4431dcad601b2c8bf12d51eef2bd037d14681f22692ffab1ccd" \ No newline at end of file diff --git a/tools/t8n/testdata/00-503/alloc.json b/tools/t8n/testdata/00-503/alloc.json new file mode 100644 index 000000000..5f62647a5 --- /dev/null +++ b/tools/t8n/testdata/00-503/alloc.json @@ -0,0 +1,23 @@ +{ + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x600160010160005500", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x00", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-503/env.json b/tools/t8n/testdata/00-503/env.json new file mode 100644 index 000000000..b7d1ea217 --- /dev/null +++ b/tools/t8n/testdata/00-503/env.json @@ -0,0 +1,11 @@ +{ + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentNumber" : "0x00", + "currentTimestamp" : "0x00", + "currentGasLimit" : "0xff112233445566", + "previousHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "parentBaseFee" : "0x0b", + "parentGasUsed" : "0x00", + "parentGasLimit" : "0xff112233445566" +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-503/exp.json b/tools/t8n/testdata/00-503/exp.json new file mode 100644 index 000000000..4bf43f21c --- /dev/null +++ b/tools/t8n/testdata/00-503/exp.json @@ -0,0 +1,43 @@ +{ + "alloc": { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87": { + "code": "0x600160010160005500", + "storage": { + "0x0000000000000000000000000000000000000000000000000000000000000000": "0x0000000000000000000000000000000000000000000000000000000000000002" + }, + "balance": "0xde0b6b3a76586a0" + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "balance": "0x0", + "nonce": "0x1" + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0xde0b6b3a75be550", + "nonce": "0x1" + } + }, + "result": { + "stateRoot": "0xe8010ce590f401c9d61fef8ab05bea9bcec24281b795e5868809bc4e515aa530", + "txRoot": "0xf91abed7e00f88cadedc98279f8fe12e181da598fdf28c61aa18908e2e32d531", + "receiptsRoot": "0x06f890d54ec65d8650b6c73eefd1fbc39f78b5b25f4e1ec10885c9f29f84ee98", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [ + { + "root": "0x", + "status": "0x1", + "cumulativeGasUsed": "0xa868", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logs": null, + "transactionHash": "0xeda4d6763740fbccc99cc8873ff09b8504d192e83f73bd16ccf5feb053a4e3cd", + "contractAddress": "0x0000000000000000000000000000000000000000", + "gasUsed": "0xa868", + "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "transactionIndex": "0x0" + } + ], + "currentDifficulty": "0x20000", + "gasUsed": "0xa868", + "currentBaseFee": "0xa" + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-503/txs.json b/tools/t8n/testdata/00-503/txs.json new file mode 100644 index 000000000..bbe73c39e --- /dev/null +++ b/tools/t8n/testdata/00-503/txs.json @@ -0,0 +1,13 @@ +[ +{ + "input" : "0x", + "gas" : "0x61a80", + "gasPrice" : "0xa", + "nonce" : "0x0", + "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0x186a0", + "v" : "0x1b", + "r" : "0xffb600e63115a7362e7811894a91d8ba4330e526f22121c994c4692035dfdfd5", + "s" : "0x6198379fcac8de3dbfac48b165df4bf88e2088f294b61efb9a65fe2281c76e16" +} +] diff --git a/tools/t8n/testdata/00-504/alloc.json b/tools/t8n/testdata/00-504/alloc.json new file mode 100644 index 000000000..5f62647a5 --- /dev/null +++ b/tools/t8n/testdata/00-504/alloc.json @@ -0,0 +1,23 @@ +{ + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x600160010160005500", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x00", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-504/env.json b/tools/t8n/testdata/00-504/env.json new file mode 100644 index 000000000..2c7874967 --- /dev/null +++ b/tools/t8n/testdata/00-504/env.json @@ -0,0 +1,16 @@ +{ + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "currentGasLimit" : "0xff112233445566", + "previousHash" : "0x7f46f93fbcd604ebdb14d90b1b4337f471a44117474b441ce139c34fca1963f0", + "parentTimestamp" : "0x00", + "parentDifficulty" : "0x020000", + "parentUncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "parentBaseFee" : "0x0b", + "parentGasUsed" : "0x00", + "parentGasLimit" : "0xff112233445566", + "blockHashes" : { + "0" : "0x7f46f93fbcd604ebdb14d90b1b4337f471a44117474b441ce139c34fca1963f0" + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-504/exp.json b/tools/t8n/testdata/00-504/exp.json new file mode 100644 index 000000000..dd3d232b4 --- /dev/null +++ b/tools/t8n/testdata/00-504/exp.json @@ -0,0 +1,43 @@ +{ + "alloc": { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87": { + "code": "0x600160010160005500", + "storage": { + "0x0000000000000000000000000000000000000000000000000000000000000000": "0x0000000000000000000000000000000000000000000000000000000000000002" + }, + "balance": "0xde0b6b3a76586a0" + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "balance": "0x0", + "nonce": "0x1" + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0xde0b6b3a75be550", + "nonce": "0x1" + } + }, + "result": { + "stateRoot": "0xe8010ce590f401c9d61fef8ab05bea9bcec24281b795e5868809bc4e515aa530", + "txRoot": "0xf91abed7e00f88cadedc98279f8fe12e181da598fdf28c61aa18908e2e32d531", + "receiptsRoot": "0x06f890d54ec65d8650b6c73eefd1fbc39f78b5b25f4e1ec10885c9f29f84ee98", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [ + { + "root": "0x", + "status": "0x1", + "cumulativeGasUsed": "0xa868", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logs": null, + "transactionHash": "0xeda4d6763740fbccc99cc8873ff09b8504d192e83f73bd16ccf5feb053a4e3cd", + "contractAddress": "0x0000000000000000000000000000000000000000", + "gasUsed": "0xa868", + "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "transactionIndex": "0x0" + } + ], + "currentDifficulty": "0x20000", + "gasUsed": "0xa868", + "currentBaseFee": "0xa" + } +} diff --git a/tools/t8n/testdata/00-504/txs.json b/tools/t8n/testdata/00-504/txs.json new file mode 100644 index 000000000..bbe73c39e --- /dev/null +++ b/tools/t8n/testdata/00-504/txs.json @@ -0,0 +1,13 @@ +[ +{ + "input" : "0x", + "gas" : "0x61a80", + "gasPrice" : "0xa", + "nonce" : "0x0", + "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0x186a0", + "v" : "0x1b", + "r" : "0xffb600e63115a7362e7811894a91d8ba4330e526f22121c994c4692035dfdfd5", + "s" : "0x6198379fcac8de3dbfac48b165df4bf88e2088f294b61efb9a65fe2281c76e16" +} +] diff --git a/tools/t8n/testdata/00-505/alloc.json b/tools/t8n/testdata/00-505/alloc.json new file mode 100644 index 000000000..303620036 --- /dev/null +++ b/tools/t8n/testdata/00-505/alloc.json @@ -0,0 +1,23 @@ +{ + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x00", + "code" : "0x417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe40437f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b57ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe163119185560005155", + "nonce" : "0x00", + "storage" : { + } + }, + "0x945304eb96065b2a98b57a48a06ae28d285a71b5" : { + "balance" : "0x2e", + "code" : "0x6000355415600957005b60203560003555", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-505/env.json b/tools/t8n/testdata/00-505/env.json new file mode 100644 index 000000000..8382660d8 --- /dev/null +++ b/tools/t8n/testdata/00-505/env.json @@ -0,0 +1,11 @@ +{ + "currentCoinbase" : "0x945304eb96065b2a98b57a48a06ae28d285a71b5", + "currentDifficulty" : "0x020000", + "currentNumber" : "0x00", + "currentTimestamp" : "0x00", + "currentGasLimit" : "0x7fffffffffffffff", + "previousHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "parentBaseFee" : "0x0b", + "parentGasUsed" : "0x00", + "parentGasLimit" : "0x7fffffffffffffff" +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-505/exp.json b/tools/t8n/testdata/00-505/exp.json new file mode 100644 index 000000000..da7475a28 --- /dev/null +++ b/tools/t8n/testdata/00-505/exp.json @@ -0,0 +1,40 @@ +{ + "alloc": { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87": { + "code": "0x417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe40437f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b57ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe163119185560005155", + "balance": "0x0" + }, + "0x945304eb96065b2a98b57a48a06ae28d285a71b5": { + "code": "0x6000355415600957005b60203560003555", + "balance": "0x2e" + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0xde0b6b0b6053afa", + "nonce": "0x1" + } + }, + "result": { + "stateRoot": "0xfdca957f911a15be83d658415618aedf6471590a1ebcfdec97d2be996768cc61", + "txRoot": "0xe3c99ba4553c80c839a1ee04418fb1ee5c8cd1210eb2dd46a2627ba4b267a9ed", + "receiptsRoot": "0x6573f72f5b652298a2cadc25e2db02a45891f50abd696016a08143a5b2c2899e", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [ + { + "root": "0x", + "status": "0x0", + "cumulativeGasUsed": "0x4b5646e7", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logs": null, + "transactionHash": "0xe295b944cf2e698632f0d173316a761f5affc42187bf6d30b7538690fd3d19c4", + "contractAddress": "0x0000000000000000000000000000000000000000", + "gasUsed": "0x4b5646e7", + "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "transactionIndex": "0x0" + } + ], + "currentDifficulty": "0x20000", + "gasUsed": "0x4b5646e7", + "currentBaseFee": "0xa" + } +} diff --git a/tools/t8n/testdata/00-505/txs.json b/tools/t8n/testdata/00-505/txs.json new file mode 100644 index 000000000..29b92ceea --- /dev/null +++ b/tools/t8n/testdata/00-505/txs.json @@ -0,0 +1,13 @@ +[ +{ + "input" : "0x417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe40437f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b57ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1631191855", + "gas" : "0x4b5646e7", + "gasPrice" : "0xa", + "nonce" : "0x0", + "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0x31488828", + "v" : "0x1b", + "r" : "0xb25190ddc89486ed3488ade245f5781b0e6d86ff7c9fad8cdf9b84b2fa497b73", + "s" : "0x3d7ec991f6072d5e7ca32e2151883b5d71dd6a67616a6d77db90cb35b10617d9" +} +] diff --git a/tools/t8n/testdata/00-506/alloc.json b/tools/t8n/testdata/00-506/alloc.json new file mode 100644 index 000000000..303620036 --- /dev/null +++ b/tools/t8n/testdata/00-506/alloc.json @@ -0,0 +1,23 @@ +{ + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x00", + "code" : "0x417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe40437f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b57ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe163119185560005155", + "nonce" : "0x00", + "storage" : { + } + }, + "0x945304eb96065b2a98b57a48a06ae28d285a71b5" : { + "balance" : "0x2e", + "code" : "0x6000355415600957005b60203560003555", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-506/env.json b/tools/t8n/testdata/00-506/env.json new file mode 100644 index 000000000..83eac7d85 --- /dev/null +++ b/tools/t8n/testdata/00-506/env.json @@ -0,0 +1,16 @@ +{ + "currentCoinbase" : "0x945304eb96065b2a98b57a48a06ae28d285a71b5", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "currentGasLimit" : "0x7fffffffffffffff", + "previousHash" : "0xa424a5665adf6d8d407b9828d00b3cf8a40506b5a8fc1e9517bf8333d6cd4adc", + "parentTimestamp" : "0x00", + "parentDifficulty" : "0x020000", + "parentUncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "parentBaseFee" : "0x0b", + "parentGasUsed" : "0x00", + "parentGasLimit" : "0x7fffffffffffffff", + "blockHashes" : { + "0" : "0xa424a5665adf6d8d407b9828d00b3cf8a40506b5a8fc1e9517bf8333d6cd4adc" + } +} \ No newline at end of file diff --git a/tools/t8n/testdata/00-506/exp.json b/tools/t8n/testdata/00-506/exp.json new file mode 100644 index 000000000..da7475a28 --- /dev/null +++ b/tools/t8n/testdata/00-506/exp.json @@ -0,0 +1,40 @@ +{ + "alloc": { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87": { + "code": "0x417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe40437f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b57ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe163119185560005155", + "balance": "0x0" + }, + "0x945304eb96065b2a98b57a48a06ae28d285a71b5": { + "code": "0x6000355415600957005b60203560003555", + "balance": "0x2e" + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0xde0b6b0b6053afa", + "nonce": "0x1" + } + }, + "result": { + "stateRoot": "0xfdca957f911a15be83d658415618aedf6471590a1ebcfdec97d2be996768cc61", + "txRoot": "0xe3c99ba4553c80c839a1ee04418fb1ee5c8cd1210eb2dd46a2627ba4b267a9ed", + "receiptsRoot": "0x6573f72f5b652298a2cadc25e2db02a45891f50abd696016a08143a5b2c2899e", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [ + { + "root": "0x", + "status": "0x0", + "cumulativeGasUsed": "0x4b5646e7", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logs": null, + "transactionHash": "0xe295b944cf2e698632f0d173316a761f5affc42187bf6d30b7538690fd3d19c4", + "contractAddress": "0x0000000000000000000000000000000000000000", + "gasUsed": "0x4b5646e7", + "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "transactionIndex": "0x0" + } + ], + "currentDifficulty": "0x20000", + "gasUsed": "0x4b5646e7", + "currentBaseFee": "0xa" + } +} diff --git a/tools/t8n/testdata/00-506/txs.json b/tools/t8n/testdata/00-506/txs.json new file mode 100644 index 000000000..29b92ceea --- /dev/null +++ b/tools/t8n/testdata/00-506/txs.json @@ -0,0 +1,13 @@ +[ +{ + "input" : "0x417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff557ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe40437f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b57ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1631191855", + "gas" : "0x4b5646e7", + "gasPrice" : "0xa", + "nonce" : "0x0", + "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0x31488828", + "v" : "0x1b", + "r" : "0xb25190ddc89486ed3488ade245f5781b0e6d86ff7c9fad8cdf9b84b2fa497b73", + "s" : "0x3d7ec991f6072d5e7ca32e2151883b5d71dd6a67616a6d77db90cb35b10617d9" +} +] diff --git a/tools/t8n/testdata/13/exp2.json b/tools/t8n/testdata/13/exp2.json index ba8c9f865..cbad6552c 100644 --- a/tools/t8n/testdata/13/exp2.json +++ b/tools/t8n/testdata/13/exp2.json @@ -34,6 +34,7 @@ } ], "currentDifficulty": "0x20000", - "gasUsed": "0x109a0" + "gasUsed": "0x109a0", + "currentBaseFee": "0x36b" } } diff --git a/tools/t8n/testdata/14/exp.json b/tools/t8n/testdata/14/exp.json index 9bf5635f5..26d49173c 100644 --- a/tools/t8n/testdata/14/exp.json +++ b/tools/t8n/testdata/14/exp.json @@ -7,6 +7,7 @@ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "currentDifficulty": "0x2000020000000", "receipts": [], - "gasUsed": "0x0" + "gasUsed": "0x0", + "currentBaseFee": "0x500" } } diff --git a/tools/t8n/testdata/14/exp2.json b/tools/t8n/testdata/14/exp2.json index 9c9025381..cd75b47d5 100644 --- a/tools/t8n/testdata/14/exp2.json +++ b/tools/t8n/testdata/14/exp2.json @@ -7,6 +7,7 @@ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "receipts": [], "currentDifficulty": "0x1ff8020000000", - "gasUsed": "0x0" + "gasUsed": "0x0", + "currentBaseFee": "0x500" } } diff --git a/tools/t8n/testdata/14/exp_berlin.json b/tools/t8n/testdata/14/exp_berlin.json index c2bf95311..5c00ef130 100644 --- a/tools/t8n/testdata/14/exp_berlin.json +++ b/tools/t8n/testdata/14/exp_berlin.json @@ -7,6 +7,7 @@ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "receipts": [], "currentDifficulty": "0x1ff9000000000", - "gasUsed": "0x0" + "gasUsed": "0x0", + "currentBaseFee": "0x500" } } diff --git a/tools/t8n/testdata/19/exp_arrowglacier.json b/tools/t8n/testdata/19/exp_arrowglacier.json index 9cf56ffaf..dd49f7d02 100644 --- a/tools/t8n/testdata/19/exp_arrowglacier.json +++ b/tools/t8n/testdata/19/exp_arrowglacier.json @@ -7,6 +7,7 @@ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "currentDifficulty": "0x2000000200000", "receipts": [], - "gasUsed": "0x0" + "gasUsed": "0x0", + "currentBaseFee": "0x500" } } diff --git a/tools/t8n/testdata/19/exp_grayglacier.json b/tools/t8n/testdata/19/exp_grayglacier.json index 95a3cb168..86fd8e6c1 100644 --- a/tools/t8n/testdata/19/exp_grayglacier.json +++ b/tools/t8n/testdata/19/exp_grayglacier.json @@ -7,6 +7,7 @@ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "receipts": [], "currentDifficulty": "0x2000000004000", - "gasUsed": "0x0" + "gasUsed": "0x0", + "currentBaseFee": "0x500" } } \ No newline at end of file diff --git a/tools/t8n/testdata/19/exp_london.json b/tools/t8n/testdata/19/exp_london.json index a06bc8ca6..9e9a17da9 100644 --- a/tools/t8n/testdata/19/exp_london.json +++ b/tools/t8n/testdata/19/exp_london.json @@ -7,6 +7,7 @@ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "currentDifficulty": "0x2000080000000", "receipts": [], - "gasUsed": "0x0" + "gasUsed": "0x0", + "currentBaseFee": "0x500" } } diff --git a/tools/t8n/testdata/24/exp.json b/tools/t8n/testdata/24/exp.json index 05d8c7a03..d8cec59d6 100644 --- a/tools/t8n/testdata/24/exp.json +++ b/tools/t8n/testdata/24/exp.json @@ -48,6 +48,7 @@ } ], "currentDifficulty": null, - "gasUsed": "0x10306" + "gasUsed": "0x10306", + "currentBaseFee": "0x500" } } diff --git a/tools/t8n/testdata/25/alloc.json b/tools/t8n/testdata/25/alloc.json new file mode 100644 index 000000000..d66366718 --- /dev/null +++ b/tools/t8n/testdata/25/alloc.json @@ -0,0 +1,8 @@ +{ + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0x5ffd4878be161d74", + "code": "0x", + "nonce": "0xac", + "storage": {} + } +} diff --git a/tools/t8n/testdata/25/env.json b/tools/t8n/testdata/25/env.json new file mode 100644 index 000000000..bb2c9e0d7 --- /dev/null +++ b/tools/t8n/testdata/25/env.json @@ -0,0 +1,11 @@ +{ + "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "currentDifficulty": null, + "currentRandom": "0xdeadc0de", + "currentGasLimit": "0x750a163df65e8a", + "parentBaseFee": "0x500", + "parentGasUsed": "0x0", + "parentGasLimit": "0x750a163df65e8a", + "currentNumber": "1", + "currentTimestamp": "1000" +} diff --git a/tools/t8n/testdata/25/exp.json b/tools/t8n/testdata/25/exp.json new file mode 100644 index 000000000..a9c310a1e --- /dev/null +++ b/tools/t8n/testdata/25/exp.json @@ -0,0 +1,38 @@ +{ + "alloc": { + "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192": { + "balance": "0x1" + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0x5ffd4878bc29ed73", + "nonce": "0xad" + }, + "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "0x854d00" + } + }, + "result": { + "stateRoot": "0x5139609e39f4d158a7d1ad1800908eb0349cea9b500a8273a6cf0a7e4392639b", + "txRoot": "0x572690baf4898c2972446e56ecf0aa2a027c08a863927d2dce34472f0c5496fe", + "receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2", + "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "receipts": [ + { + "root": "0x", + "status": "0x1", + "cumulativeGasUsed": "0x5208", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "logs": null, + "transactionHash": "0x92ea4a28224d033afb20e0cc2b290d4c7c2d61f6a4800a680e4e19ac962ee941", + "contractAddress": "0x0000000000000000000000000000000000000000", + "gasUsed": "0x5208", + "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "transactionIndex": "0x0" + } + ], + "currentDifficulty": null, + "gasUsed": "0x5208", + "currentBaseFee": "0x460" + } +} diff --git a/tools/t8n/testdata/25/txs.json b/tools/t8n/testdata/25/txs.json new file mode 100644 index 000000000..acb4035fd --- /dev/null +++ b/tools/t8n/testdata/25/txs.json @@ -0,0 +1,15 @@ +[ + { + "gas": "0x186a0", + "gasPrice": "0x600", + "hash": "0x0557bacce3375c98d806609b8d5043072f0b6a8bae45ae5a67a00d3a1a18d673", + "input": "0x", + "nonce": "0xac", + "to": "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", + "value": "0x1", + "v" : "0x0", + "r" : "0x0", + "s" : "0x0", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" + } +]