diff options
author | Dimitry <dimitry@ethdev.com> | 2017-03-02 18:16:55 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-03-02 18:16:55 +0800 |
commit | 95f348fb175fa7161dcef12af9ae8a578da0808d (patch) | |
tree | 967093618670c90fe0636a0e0cb4a0d6b63ef66b | |
parent | c0bbc2eccd027e14cc60e7c10369951e8018225a (diff) | |
download | dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.tar dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.tar.gz dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.tar.bz2 dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.tar.lz dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.tar.xz dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.tar.zst dexon-tests-95f348fb175fa7161dcef12af9ae8a578da0808d.zip |
snark ADD testFiller
-rw-r--r-- | src/GeneralStateTestsFiller/stZeroKnoladge/pointAddFiller.json | 60 | ||||
-rw-r--r-- | src/GeneralStateTestsFiller/stZeroKnowledge/pointAddFiller.json | 203 |
2 files changed, 203 insertions, 60 deletions
diff --git a/src/GeneralStateTestsFiller/stZeroKnoladge/pointAddFiller.json b/src/GeneralStateTestsFiller/stZeroKnoladge/pointAddFiller.json deleted file mode 100644 index 2c9881436..000000000 --- a/src/GeneralStateTestsFiller/stZeroKnoladge/pointAddFiller.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "pointAdd" : { - "env" : { - "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da", - "currentDifficulty" : "0x020000", - "currentGasLimit" : "4012015", - "currentNumber" : "1", - "currentTimestamp" : "1000", - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" - }, - "expect" : [ - { - "indexes" : { - "data" : -1, - "gas" : -1, - "value" : -1 - }, - "network" : ["Metropolis"], - "result" : { - "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "0x00" : "0x01", - "0x01" : "0x030644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd3", - "0x02" : "0x15ed738c0e0a7c92e7845f96b2ae9c0a68a6a449e3538fc7ff3ebf7a5a18a2c4" - } - } - } - ], - "pre" : { - "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "1000000000000000000", - "code" : "", - "nonce" : "1", - "storage" : { - } - }, - "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "", - "code" : "{(MSTORE 0 (CALLDATALOAD 0)) (MSTORE 32 (CALLDATALOAD 32)) (MSTORE 64 (CALLDATALOAD 64)) (MSTORE 96 (CALLDATALOAD 96)) [[0]](CALLCODE 500000 6 0 0 128 200 64) [[1]] (MLOAD 200) [[2]] (MLOAD 232) }", - "nonce" : "0", - "storage" : { - } - } - }, - "transaction" : { - "data" : [ - "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002" - ], - "gasLimit" : [ - "1000000" - ], - "gasPrice" : "1", - "nonce" : "1", - "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", - "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : [ - "0" - ] - } - } -} diff --git a/src/GeneralStateTestsFiller/stZeroKnowledge/pointAddFiller.json b/src/GeneralStateTestsFiller/stZeroKnowledge/pointAddFiller.json new file mode 100644 index 000000000..5210f163f --- /dev/null +++ b/src/GeneralStateTestsFiller/stZeroKnowledge/pointAddFiller.json @@ -0,0 +1,203 @@ +{ + "pointAdd" : { + "env" : { + "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "4012015", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x00", + "0x02" : "0x00" + } + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x030644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd3", + "0x02" : "0x15ed738c0e0a7c92e7845f96b2ae9c0a68a6a449e3538fc7ff3ebf7a5a18a2c4" + } + } + } + }, + { + "indexes" : { + "data" : [1], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x00", + "0x02" : "0x00" + } + } + } + }, + { + "indexes" : { + "data" : [2,5,6], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00", + "0x01" : "0x00", + "0x02" : "0x00" + } + } + } + }, + { + "indexes" : { + "data" : [3,4], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd2", + "0x02" : "0x16da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba" + } + } + } + }, + { + "indexes" : { + "data" : [7], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x1de49a4b0233273bba8146af82042d004f2085ec982397db0d97da17204cc286", + "0x02" : "0x0217327ffc463919bef80cc166d09c6172639d8589799928761bcd9f22c903d4" + } + } + } + }, + { + "indexes" : { + "data" : [8], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x1f4d1d80177b1377743d1901f70d7389be7f7a35a35bfd234a8aaee615b88c49", + "0x02" : "0x018683193ae021a2f8920fed186cde5d9b1365116865281ccf884c1f28b1df8f" + } + } + } + }, + { + "indexes" : { + "data" : [9], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x059a381fec09e29448a58ae8905f41d1eb8ff0ed755aa0f827821aefde02ec7d", + "0x02" : "0x269d2516bf8c4f5798cc1267162e59add561e5537a328fe0f28a252fa287a72a" + } + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "", + "nonce" : "1", + "storage" : { + } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "", + "code" : "{(MSTORE 0 (CALLDATALOAD 0)) (MSTORE 32 (CALLDATALOAD 32)) (MSTORE 64 (CALLDATALOAD 64)) (MSTORE 96 (CALLDATALOAD 96)) [[0]](CALLCODE 500000 6 0 0 128 200 64) [[1]] (MLOAD 200) [[2]] (MLOAD 232) }", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "(1,2) + (1,2)", + "(0,0) + (0,0)", + "(x,x) + (invalid)", + "(x,x) + (0,0)", + "(0,0) + (x,x)", + "(invalid) + (x,x)", + "(invalid) + (invalid)", + "(x,x) + (x,x)", + "(x,x) + (y,y)", + "(x,x) + (1,2)" + ], + "data" : [ + "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002", + "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "0x0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba0f25919bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba", + "0x0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba", + "0x0f25919bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba", + "0x0f25919bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba0f25919bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba", + "0x0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba", + "0x0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba1de49a4b0233273bba8146af82042d004f2085ec982397db0d97da17204cc2860217327ffc463919bef80cc166d09c6172639d8589799928761bcd9f22c903d4", + "0x0f25929bcb43d5a57391564615c9e70a992b10eafa4db109709649cf48c50dd216da2f5cb6be7a0aa72c440c53c9bbdfec6c36c7d515536431b3a865468acbba00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002" + + ], + "gasLimit" : [ + "1000000" + ], + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +} |