From 934b04dd4bc7a7edf54d37197f8cf85f9fa61d47 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Mon, 12 Dec 2016 15:03:28 +0300 Subject: wallet transition transaction to EIP158 --- .../createNameRegistratorPerTxsAfterFiller.json | 40 +++++++++++++++++++++- .../createNameRegistratorPerTxsAtFiller.json | 40 +++++++++++++++++++++- .../createNameRegistratorPerTxsBeforeFiller.json | 40 +++++++++++++++++++++- ...meRegistratorPerTxsNotEnoughGasAfterFiller.json | 39 ++++++++++++++++++++- ...eNameRegistratorPerTxsNotEnoughGasAtFiller.json | 35 ++++++++++++++++++- ...eRegistratorPerTxsNotEnoughGasBeforeFiller.json | 35 ++++++++++++++++++- .../delegatecallAfterTransitionFiller.json | 20 +++++++++-- .../delegatecallAtTransitionFiller.json | 18 +++++++++- .../delegatecallBeforeTransitionFiller.json | 18 +++++++++- 9 files changed, 275 insertions(+), 10 deletions(-) (limited to 'src/GeneralStateTestsFiller/stTransitionTest') diff --git a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAfterFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAfterFiller.json index ffea3d137..8ac2b2a6a 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAfterFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAfterFiller.json @@ -8,6 +8,44 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x396000f3006000355415600957005b60", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x01" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x396000f3006000355415600957005b60", + "nonce" : "0x01", + "storage" : { + "0x01" : "0x01" + } + } + } + } + ], "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000000000", @@ -33,4 +71,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAtFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAtFiller.json index f1db26f93..c7dae3ad2 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAtFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsAtFiller.json @@ -8,6 +8,44 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x396000f3006000355415600957005b60", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x01" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x396000f3006000355415600957005b60", + "nonce" : "0x01", + "storage" : { + "0x01" : "0x01" + } + } + } + } + ], "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000000000", @@ -33,4 +71,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsBeforeFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsBeforeFiller.json index f2c3e2e86..4c54f8023 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsBeforeFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsBeforeFiller.json @@ -8,6 +8,44 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x396000f3006000355415600957005b60", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x01" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["EIP158"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x396000f3006000355415600957005b60", + "nonce" : "0x01", + "storage" : { + "0x01" : "0x01" + } + } + } + } + ], "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000000000", @@ -33,4 +71,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAfterFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAfterFiller.json index ce7ed476e..19ca9f5b5 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAfterFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAfterFiller.json @@ -8,6 +8,43 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x01" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Homestead", "EIP158"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + } + } + ], "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000000000", @@ -33,4 +70,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAtFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAtFiller.json index 8af986d19..9e41addc1 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAtFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasAtFiller.json @@ -8,6 +8,39 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x01" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Homestead", "EIP158"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "shouldnotexist" : "1" + } + } + } + ], "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000000000", @@ -33,4 +66,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasBeforeFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasBeforeFiller.json index b19b5f4b1..abd57ad64 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasBeforeFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/createNameRegistratorPerTxsNotEnoughGasBeforeFiller.json @@ -8,6 +8,39 @@ "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "balance" : "0x0186a0", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x01" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Homestead", "EIP158"], + "result" : { + "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { + "shouldnotexist" : "1" + } + } + } + ], "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000000000", @@ -33,4 +66,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAfterTransitionFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAfterTransitionFiller.json index a62016218..ee368ea10 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAfterTransitionFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAfterTransitionFiller.json @@ -9,13 +9,29 @@ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "storage" : { + "0x00" : "0x00", + "0x01" : "0x00" + } + } + } + }, { "indexes" : { "data" : -1, "gas" : -1, "value" : -1 }, - "network" : "Frontier", + "network" : ["Homestead", "EIP158"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "storage" : { @@ -65,4 +81,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAtTransitionFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAtTransitionFiller.json index f35174e24..705aec163 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAtTransitionFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/delegatecallAtTransitionFiller.json @@ -16,6 +16,22 @@ "value" : -1 }, "network" : "Frontier", + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "storage" : { + "0x00" : "0x00", + "0x01" : "0x00" + } + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Homestead", "EIP158"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "storage" : { @@ -65,4 +81,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/GeneralStateTestsFiller/stTransitionTest/delegatecallBeforeTransitionFiller.json b/src/GeneralStateTestsFiller/stTransitionTest/delegatecallBeforeTransitionFiller.json index cd3dc0e93..190690ab1 100644 --- a/src/GeneralStateTestsFiller/stTransitionTest/delegatecallBeforeTransitionFiller.json +++ b/src/GeneralStateTestsFiller/stTransitionTest/delegatecallBeforeTransitionFiller.json @@ -22,6 +22,22 @@ } } } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Homestead", "EIP158"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + } + } + } } ], "pre" : { @@ -63,4 +79,4 @@ ] } } -} \ No newline at end of file +} -- cgit v1.2.3