diff options
author | Dimitry <dimitry@ethdev.com> | 2017-03-03 05:36:19 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-03-03 05:36:19 +0800 |
commit | e1ba116512faf56829ae08a4541596b84fbcd481 (patch) | |
tree | e3f84d046fabb664c044d7459466633a3ff096e0 /src/GeneralStateTestsFiller/stRevertTest | |
parent | 95f348fb175fa7161dcef12af9ae8a578da0808d (diff) | |
download | tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.tar tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.tar.gz tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.tar.bz2 tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.tar.lz tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.tar.xz tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.tar.zst tangerine-tests-e1ba116512faf56829ae08a4541596b84fbcd481.zip |
more revert tests with precompiled
Diffstat (limited to 'src/GeneralStateTestsFiller/stRevertTest')
3 files changed, 405 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchCCFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchCCFiller.json new file mode 100644 index 000000000..78ba169cc --- /dev/null +++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchCCFiller.json @@ -0,0 +1,135 @@ +{ + "RevertPrecompiledTouchCC" : { + "env" : { + "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "4012015", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "0000000000000000000000000000000000000001" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000002" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000003" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000004" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000005" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000006" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000007" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000008" : { + "balance" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ (CALLCODE 50000 1 0 0 0 0 0) (CALLCODE 50000 2 0 0 0 0 0) (CALLCODE 50000 3 0 0 0 0 0) (CALLCODE 50000 4 0 0 0 0 0) (CALLCODE 50000 5 0 0 0 0 0) (CALLCODE 50000 6 0 0 0 0 0) (CALLCODE 50000 7 0 0 0 0 0) (CALLCODE 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "", + "nonce" : "1", + "storage" : { + } + }, + "0000000000000000000000000000000000000001" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000002" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000003" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000004" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000005" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000006" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000007" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000008" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "60000" + ], + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchDCFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchDCFiller.json new file mode 100644 index 000000000..f2eba2f87 --- /dev/null +++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchDCFiller.json @@ -0,0 +1,135 @@ +{ + "RevertPrecompiledTouchDC" : { + "env" : { + "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "4012015", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "0000000000000000000000000000000000000001" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000002" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000003" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000004" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000005" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000006" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000007" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000008" : { + "balance" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ (DELEGATECALL 50000 1 0 0 0 0) (DELEGATECALL 50000 2 0 0 0 0) (DELEGATECALL 50000 3 0 0 0 0) (DELEGATECALL 50000 4 0 0 0 0) (DELEGATECALL 50000 5 0 0 0 0) (DELEGATECALL 50000 6 0 0 0 0) (DELEGATECALL 50000 7 0 0 0 0) (DELEGATECALL 50000 8 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "", + "nonce" : "1", + "storage" : { + } + }, + "0000000000000000000000000000000000000001" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000002" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000003" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000004" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000005" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000006" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000007" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000008" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "60000" + ], + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json new file mode 100644 index 000000000..7a27473bd --- /dev/null +++ b/src/GeneralStateTestsFiller/stRevertTest/RevertPrecompiledTouchFiller.json @@ -0,0 +1,135 @@ +{ + "RevertPrecompiledTouch" : { + "env" : { + "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "4012015", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "0000000000000000000000000000000000000001" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000002" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000003" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000004" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000005" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000006" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000007" : { + "balance" : "0" + }, + "0000000000000000000000000000000000000008" : { + "balance" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ (CALL 50000 1 0 0 0 0 0) (CALL 50000 2 0 0 0 0 0) (CALL 50000 3 0 0 0 0 0) (CALL 50000 4 0 0 0 0 0) (CALL 50000 5 0 0 0 0 0) (CALL 50000 6 0 0 0 0 0) (CALL 50000 7 0 0 0 0 0) (CALL 50000 8 0 0 0 0 0) [[1]] (GAS) [[2]] (GAS) [[3]] (GAS) }", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "", + "nonce" : "1", + "storage" : { + } + }, + "0000000000000000000000000000000000000001" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000002" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000003" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000004" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000005" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000006" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000007" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "0000000000000000000000000000000000000008" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "60000" + ], + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0" + ] + } + } +} |