diff --git a/GeneralStateTests/stPreCompiledContracts2/CALLBlake2f.json b/GeneralStateTests/stPreCompiledContracts2/CALLBlake2f.json new file mode 100644 index 00000000000..1aeac9ae8b3 --- /dev/null +++ b/GeneralStateTests/stPreCompiledContracts2/CALLBlake2f.json @@ -0,0 +1,255 @@ +{ + "CALLBlake2f" : { + "_info" : { + "comment" : "", + "filling-rpc-server" : "pantheon/v1.2.2-dev-47295f1a/osx-x86_64/corretto-java-11", + "filling-tool-version" : "retesteth-0.0.1+commit.e7eb725f.Darwin.appleclang", + "lllcversion" : "Version: 0.5.0-develop.2019.8.6+commit.9709dfe0.Darwin.appleclang", + "source" : "src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json", + "sourceHash" : "e3e755ea9f1fb43605883d0f9154970479e9158ac451854084dccf4d7502d7a4" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x02540be400", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Istanbul" : [ + { + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x56c0c7bd91cff99f993ede0733fa3a38e194d01f5c87a9b882305f61c3a4c338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x56c0c7bd91cff99f993ede0733fa3a38e194d01f5c87a9b882305f61c3a4c338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x56c0c7bd91cff99f993ede0733fa3a38e194d01f5c87a9b882305f61c3a4c338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 3, + "gas" : 1, + "value" : 0 + }, + "hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 3, + "gas" : 2, + "value" : 0 + }, + "hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 3, + "gas" : 3, + "value" : 0 + }, + "hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 4, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 4, + "gas" : 1, + "value" : 0 + }, + "hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 4, + "gas" : 2, + "value" : 0 + }, + "hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 4, + "gas" : 3, + "value" : 0 + }, + "hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 5, + "gas" : 0, + "value" : 0 + }, + "hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 5, + "gas" : 1, + "value" : 0 + }, + "hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 5, + "gas" : 2, + "value" : 0 + }, + "hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 5, + "gas" : 3, + "value" : 0 + }, + "hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 6, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x2238b371dfeabedc72549076f4fdb28b8ffb02a6f1191b9903be964567cea2b5", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 7, + "gas" : 0, + "value" : 0 + }, + "hash" : "0x85a75f9dd0a3eb5f46602bd4a3681e3148d42e2ded4ce1ab1c190666ec704d43", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 8, + "gas" : 0, + "value" : 0 + }, + "hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 8, + "gas" : 1, + "value" : 0 + }, + "hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 8, + "gas" : 2, + "value" : 0 + }, + "hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "indexes" : { + "data" : 8, + "gas" : 3, + "value" : 0 + }, + "hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f", + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x36600060003760406103e8366000600060095af16001556103e85160025561040851600355", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x3635c9adc5dea00000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x00000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x000000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000002", + "0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000", + "0x0000000148c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x", + "0x007A120048c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "gasLimit" : [ + "0x05f5e100", + "0x015f90", + "0x01adb0", + "0x030d40" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x1000000000000000000000000000000000000000", + "value" : [ + "0x00" + ] + } + } +} \ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json new file mode 100644 index 00000000000..17bca73047e --- /dev/null +++ b/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json @@ -0,0 +1,194 @@ +{ + "CALLBlake2f": { + "env": { + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x20000", + "currentGasLimit": "10000000000", + "currentNumber": "1", + "currentTimestamp": "1000", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect": [ + { + "indexes": { + "data": [0, 1, 2], + "gas": 0, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999901559711" + } + } + }, + { + "indexes": { + "data": [3], + "gas": -1, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + "0x01": "0x01", + "0x02": "0xba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12bb6fdbffa2d1", + "0x03": "0x7d87c5392aab792dc252d5de4533cc9518d38aa8dbf1925ab92386edd4009923" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999999916420" + } + } + }, + { + "indexes": { + "data": [4], + "gas": -1, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + "0x01": "0x01", + "0x02": "0x75ab69d3190a562c51aef8d88f1c2775876944407270c42c9844252c26d28752", + "0x03": "0x98743e7f6d5ea2f2d3e8d226039cd31b4e426ac4f2d3d666a610c2116fde4735" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999999916432" + } + } + }, + { + "indexes": { + "data": [5], + "gas": -1, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + "0x01": "0x01", + "0x02": "0xb63a380cb2897d521994a85234ee2c181b5f844d2c624c002677e9703449d2fb", + "0x03": "0xa551b3a8333bcdf5f2f7e08993d53923de3d64fcc68c034e717b9293fed7a421" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999999916431" + } + } + }, + { + "indexes": { + "data": [6], + "gas": 0, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999901559737" + } + } + }, + { + "indexes": { + "data": [7], + "gas": 0, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + "0x01": "0x01", + "0x02": "0x6d2ce9e534d50e18ff866ae92d70cceba79bbcd14c63819fe48752c8aca87a4b", + "0x03": "0xb7dcc230d22a4047f0486cfcfb50a17b24b2899eb8fca370f22240adb5170189" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999991916420" + } + } + }, + { + "indexes": { + "data": [8], + "gas": -1, + "value": -1 + }, + "network": [">=Istanbul"], + "result": { + "1000000000000000000000000000000000000000": { + "storage": { + "0x01": "0x01", + "0x02": "0x08c9bcf367e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5", + "0x03": "0xd182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b" + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "999999999999999917272" + } + } + } + ], + "pre": { + "1000000000000000000000000000000000000000": { + "balance": "", + "code": "{ (CALLDATACOPY 0 0 (CALLDATASIZE)) [[1]] (CALL (GAS) 9 0 0 (CALLDATASIZE) 1000 64) [[2]](MLOAD 1000) [[3]](MLOAD 1032)}", + "nonce": "0", + "storage": {} + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance": "1000000000000000000000", + "code": "", + "nonce": "0", + "storage": {} + } + }, + "transaction": { + "// data": [ + "Input is Packed as per EIP-152 requirements", + "Output is [0] - result - [1] high 256 bits [2] low 256 bits", + "0 - too few bytes", + "1 - too many bytes", + "2 - f flag wrong value", + "3 - RFC 7693 Appendix-A, final", + "4 - RFC 7693 Appendix-A, not", + "5 - RFC 7693 Appendix-A, One round", + "6 - zero length data", + "7 - RFC 7693 Appendix-A, 8 million rounds", + "8 - all zero input, correct length, zero rounds, not final" + ], + "data": [ + "0x00000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x000000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000002", + "0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000", + "0x0000000148c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x", + "0x007A120048c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001", + "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], + "gasLimit": ["100000000", "90000", "110000", "200000"], + "gasPrice": "1", + "nonce": "0", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "1000000000000000000000000000000000000000", + "value": ["0"] + } + } + } \ No newline at end of file