From 5021e0dd83bdb8b23ca3dcc72293c6737e8165a8 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 27 Jun 2014 21:35:26 +0200 Subject: [PATCH] VM test framework updated. --- vmtests.json | 341 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 297 insertions(+), 44 deletions(-) diff --git a/vmtests.json b/vmtests.json index 33f0844c3..3c05fb8e7 100644 --- a/vmtests.json +++ b/vmtests.json @@ -17,17 +17,34 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 74, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9971, "out" : [ ], @@ -131,17 +148,226 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 1, + 96, + 1, + 16, + 15, + 96, + 26, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 2, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 16, + 15, + 96, + 52, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 3, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 16, + 15, + 96, + 78, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 4, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 16, + 15, + 96, + 104, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 5, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 1, + 17, + 15, + 96, + 130, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 12, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 1, + 17, + 15, + 96, + 156, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 13, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 1, + 96, + 0, + 17, + 15, + 96, + 182, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 14, + 51, + 96, + 200, + 92, + 3, + 241, + 80, + 96, + 0, + 96, + 0, + 17, + 15, + 96, + 208, + 89, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 15, + 51, + 96, + 200, + 92, + 3, + 241, + 80 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9832, "out" : [ ], @@ -608,17 +834,41 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 96, + 0, + 96, + 0, + 96, + 0, + 96, + 0, + 103, + 6, + 240, + 91, + 89, + 211, + 178, + 0, + 0, + 51, + 96, + 200, + 92, + 3, + 241 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9971, "out" : [ ], @@ -708,17 +958,20 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "data" : "", - "gas" : "10000", - "gasPrice" : "100000000000000", - "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : "1000000000000000000" - } - ], + "exec" : { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "code" : [ + 128, + 175 + ], + "data" : [ + ], + "gas" : 10000, + "gasPrice" : 100000000000000, + "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + }, "gas" : 9999, "out" : [ ],