diff options
-rw-r--r-- | GeneralStateTests/stCodeSizeLimit/codesizeInit.json | 100 | ||||
-rw-r--r-- | src/GeneralStateTestsFiller/stCodeSizeLimit/codesizeInitFiller.json | 55 |
2 files changed, 155 insertions, 0 deletions
diff --git a/GeneralStateTests/stCodeSizeLimit/codesizeInit.json b/GeneralStateTests/stCodeSizeLimit/codesizeInit.json new file mode 100644 index 000000000..b37c712ed --- /dev/null +++ b/GeneralStateTests/stCodeSizeLimit/codesizeInit.json @@ -0,0 +1,100 @@ +{ + "codesizeInit" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.6ae986d2.Linux.g++", + "lllcversion" : "Version: 0.4.19+commit.c4cbbb05.Linux.clang", + "source" : "src/GeneralStateTestsFiller/stCodeSizeLimit/codesizeInitFiller.json", + "sourceHash" : "c24ebd71e99c778df8f92b67e6a2c2ad8250cc5e2fd1e723984eef9df544f527" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x01312d00", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0x451a9e0c1cd10d750ec73170f6e2039e7bdb53be3bd902b93ea05d7dfee80b2f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP150" : [ + { + "hash" : "0x8c1a5cf588977cb4e3e2dd152c27fe653e9b355b34492d4c611ab57fe1d9c0e3", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP158" : [ + { + "hash" : "0x451a9e0c1cd10d750ec73170f6e2039e7bdb53be3bd902b93ea05d7dfee80b2f", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Frontier" : [ + { + "hash" : "0x10ccd8250f89dcc5dd36c6325eef320ebbe31c5a575a533b8486c92d2fe949a9", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Homestead" : [ + { + "hash" : "0x7c0e7496e3056b38fdad8d1bfe51a38d35414243c343169e9a4d446df56067a2", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x38600155303b600255" + ], + "gasLimit" : [ + "0xe4e1c0" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "0x00" + ] + } + } +}
\ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stCodeSizeLimit/codesizeInitFiller.json b/src/GeneralStateTestsFiller/stCodeSizeLimit/codesizeInitFiller.json new file mode 100644 index 000000000..a7e3a3617 --- /dev/null +++ b/src/GeneralStateTestsFiller/stCodeSizeLimit/codesizeInitFiller.json @@ -0,0 +1,55 @@ +{ + "codesizeInit" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "20000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0", + "storage": { + "0x01": "0x09", + "0x02": "0x00" + } + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "{(asm CODESIZE 0x01 SSTORE ADDRESS EXTCODESIZE 0x02 SSTORE)}" + ], + "gasLimit" : [ + "15000000" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "0" + ] + } + } +} |