From 502c67d7ae09ea0c3ca597241fb0821555853076 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Mon, 8 May 2017 23:43:16 +0300 Subject: templates for staticcall tests --- .../static_Call50000_identityFiller.json | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json (limited to 'src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json') diff --git a/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json b/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json new file mode 100644 index 000000000..645ced581 --- /dev/null +++ b/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json @@ -0,0 +1,76 @@ +{ + "static_Call50000_identity" : { + "env" : { + "currentCoinbase" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "88250000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xfffffffffffffffffffffffffabd696f", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "88250000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "bbbf5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0fffffffffffff", + "code" : "0x5b61c3506080511015602a576000600061c3506000600461061cfa6000556001608051016080526000565b608051600155", + "nonce" : "0x00", + "storage" : { + } + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xffffffffffffffffffffffffffffffff", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "bbbf5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xfffffffffffff", + "code" : "{ (def 'i 0x80) (for {} (< @i 50000) [i](+ @i 1) [[ 0 ]] (STATICCALL 1564 4 0 50000 0 0) ) [[ 1 ]] @i}", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "88250000" + ], + "gasPrice" : "1", + "nonce" : "", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "bbbf5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "10" + ] + } + } +} -- cgit From 8fc93bc232a640416480ac6fa8748c9a49016f26 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 18 May 2017 20:30:28 +0300 Subject: update staticcall fillers --- .../static_Call50000_identityFiller.json | 72 +++++++++++++++++++--- 1 file changed, 65 insertions(+), 7 deletions(-) (limited to 'src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json') diff --git a/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json b/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json index 645ced581..dc44d1545 100644 --- a/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json +++ b/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json @@ -11,21 +11,21 @@ "expect" : [ { "indexes" : { - "data" : -1, + "data" : 0, "gas" : -1, "value" : -1 }, - "network" : ["ALL"], + "network" : ["Metropolis"], "result" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "0xfffffffffffffffffffffffffabd696f", + "balance" : "340282366920938463463374607431681314841", "code" : "0x", "nonce" : "0x01", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "88250000", + "balance" : "86896604", "code" : "0x", "nonce" : "0x00", "storage" : { @@ -37,7 +37,50 @@ "nonce" : "0x00", "storage" : { } - } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x00", + "0x01" : "0x14f4d7" + } + } + } + }, + { + "indexes" : { + "data" : 1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "340282366920938463463374607431728282105", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "39929340", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "bbbf5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0fffffffffffff", + "code" : "0x5b61c3506080511015602a576000600061c3506000600461061cfa6000556001608051016080526000565b608051600155", + "nonce" : "0x00", + "storage" : { + } + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x01", + "0x01" : "0x02e19eb7" + } + } } } ], @@ -49,17 +92,32 @@ "storage" : { } }, + "1000000000000000000000000000000000000000" : { + "balance" : "0", + "code" : "{ [[ 0 ]] (CALL (GAS) (CALLDATALOAD 0) (CALLVALUE) 0 0 0 0) [[ 1 ]] (GAS) }", + "nonce" : "0", + "storage" : { + } + }, "bbbf5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0xfffffffffffff", "code" : "{ (def 'i 0x80) (for {} (< @i 50000) [i](+ @i 1) [[ 0 ]] (STATICCALL 1564 4 0 50000 0 0) ) [[ 1 ]] @i}", "nonce" : "0", "storage" : { } + }, + "cccf5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xfffffffffffff", + "code" : "{ (def 'i 0x80) (for {} (< @i 50000) [i](+ @i 1) (MSTORE 0 (STATICCALL 1564 4 0 50000 0 0)) ) (MSTORE 32 @i ) }", + "nonce" : "0", + "storage" : { + } } }, "transaction" : { "data" : [ - "" + "0x000000000000000000000000bbbf5374fce5edbc8e2a8697c15331677e6ebf0b", + "0x000000000000000000000000cccf5374fce5edbc8e2a8697c15331677e6ebf0b" ], "gasLimit" : [ "88250000" @@ -67,7 +125,7 @@ "gasPrice" : "1", "nonce" : "", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", - "to" : "bbbf5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "1000000000000000000000000000000000000000", "value" : [ "10" ] -- cgit From 9fb1996e490f7706ce15f2e347fe8e2d9c35bb6e Mon Sep 17 00:00:00 2001 From: Dimitry Date: Mon, 22 May 2017 20:37:25 +0300 Subject: generate finished tests for staticcall --- .../stStaticCall/static_Call50000_identityFiller.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json') diff --git a/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json b/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json index dc44d1545..6e666160e 100644 --- a/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json +++ b/src/GeneralStateTestsFiller/stStaticCall/static_Call50000_identityFiller.json @@ -55,14 +55,14 @@ "network" : ["Metropolis"], "result" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "340282366920938463463374607431728282105", + "balance" : "340282366920938463463374607431681314841", "code" : "0x", "nonce" : "0x01", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "39929340", + "balance" : "86896604", "code" : "0x", "nonce" : "0x00", "storage" : { @@ -77,8 +77,8 @@ }, "1000000000000000000000000000000000000000" : { "storage" : { - "0x00" : "0x01", - "0x01" : "0x02e19eb7" + "0x00" : "0x00", + "0x01" : "0x14f4d7" } } } -- cgit