diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-01-02 21:08:55 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-01-02 21:08:55 +0800 |
commit | 456b5791bb656acf82feb1e0ff67781a3ddf7817 (patch) | |
tree | 702411ff1faf1918f50b0cb7ab3eacf4960ad6b5 /StateTests/stInitCodeTest.json | |
parent | 1f5552feb4aa3a104b71d77b1e9d2369f42dde83 (diff) | |
download | dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.tar dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.tar.gz dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.tar.bz2 dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.tar.lz dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.tar.xz dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.tar.zst dexon-456b5791bb656acf82feb1e0ff67781a3ddf7817.zip |
more init code, systemoperations and transaction tests
Diffstat (limited to 'StateTests/stInitCodeTest.json')
-rw-r--r-- | StateTests/stInitCodeTest.json | 341 |
1 files changed, 224 insertions, 117 deletions
diff --git a/StateTests/stInitCodeTest.json b/StateTests/stInitCodeTest.json index 1c4670cef..c44d71039 100644 --- a/StateTests/stInitCodeTest.json +++ b/StateTests/stInitCodeTest.json @@ -1,9 +1,9 @@ { - "CallRecursiveContract" : { + "CallContractToCreateContractAndCallItOOG" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", - "currentGasLimit" : "1000000", + "currentGasLimit" : "100000000", "currentNumber" : "0", "currentTimestamp" : 1, "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" @@ -12,222 +12,329 @@ ], "out" : "0x", "post" : { - "04110d816c380812a427968ece99b1c963dfbce6" : { - "balance" : "0", - "code" : "0x", - "nonce" : "1", - "storage" : { - "0x02" : "0x04110d816c380812a427968ece99b1c963dfbce6" - } - }, "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "1", - "code" : "0x3060025560206000600039602060006000f0", + "balance" : "998", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6001f0600055600060006000600060016000546000f1", "nonce" : "1", "storage" : { - "0x02" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" + "0x" : "0xd2571607e241ecf590ed94b12d87c94babe36db6" } }, - "0a517d755cebbf66312b30fff713666a9cb917e0" : { - "balance" : "0", + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "1301", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x0a517d755cebbf66312b30fff713666a9cb917e0" } }, - "24dd378f51adc67a50e339e8031fe9bd4aafab36" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "99998699", "code" : "0x", "nonce" : "1", "storage" : { - "0x02" : "0x24dd378f51adc67a50e339e8031fe9bd4aafab36" } }, - "293f982d000532a7861ab122bdc4bbfd26bf9030" : { - "balance" : "0", - "code" : "0x", - "nonce" : "1", + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "balance" : "2", + "code" : "0x602060406000f0", + "nonce" : "0", "storage" : { - "0x02" : "0x293f982d000532a7861ab122bdc4bbfd26bf9030" + "0x" : "0x0c" } - }, - "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { - "balance" : "10000", - "code" : "0x", + } + }, + "pre" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1000", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6001f0600055600060006000600060016000546000f1", "nonce" : "0", "storage" : { } }, - "2cf5732f017b0cf1b1f13a1478e10239716bf6b5" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "100000000", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x2cf5732f017b0cf1b1f13a1478e10239716bf6b5" } - }, - "31c640b92c21a1f1465c91070b4b3b4d6854195f" : { - "balance" : "0", - "code" : "0x", + } + }, + "transaction" : { + "data" : "0x00", + "gasLimit" : "20000000", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0" + } + }, + "CallContractToCreateContractNoCash" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "100000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "logs" : [ + ], + "out" : "0x", + "post" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1000", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6103e9f0600055", "nonce" : "0", "storage" : { } }, - "37f998764813b136ddf5a754f34063fd03065e36" : { - "balance" : "0", + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "709", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x37f998764813b136ddf5a754f34063fd03065e36" } }, - "37fa399a749c121f8a15ce77e3d9f9bec8020d7a" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "99999291", "code" : "0x", "nonce" : "1", "storage" : { - "0x02" : "0x37fa399a749c121f8a15ce77e3d9f9bec8020d7a" + } + } + }, + "pre" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1000", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6103e9f0600055", + "nonce" : "0", + "storage" : { } }, - "4f36659fa632310b6ec438dea4085b522a2dd077" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "100000000", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x4f36659fa632310b6ec438dea4085b522a2dd077" } - }, - "62c01474f089b07dae603491675dc5b5748f7049" : { + } + }, + "transaction" : { + "data" : "0x00", + "gasLimit" : "20000000", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0" + } + }, + "CallContractToCreateContractOOG" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "100000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "logs" : [ + ], + "out" : "0x", + "post" : { + "0000000000000000000000000000000000000000" : { "balance" : "0", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x62c01474f089b07dae603491675dc5b5748f7049" } }, - "729af7294be595a0efd7d891c9e51f89c07950c7" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0", - "code" : "0x", - "nonce" : "1", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6001f0600055600060006000600060006000546000f1", + "nonce" : "0", "storage" : { - "0x02" : "0x729af7294be595a0efd7d891c9e51f89c07950c7" } }, - "83e3e5a16d3b696a0314b30b2534804dd5e11197" : { - "balance" : "0", + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "756", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x83e3e5a16d3b696a0314b30b2534804dd5e11197" } }, - "8703df2417e0d7c59d063caa9583cb10a4d20532" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "99999244", "code" : "0x", "nonce" : "1", "storage" : { - "0x02" : "0x8703df2417e0d7c59d063caa9583cb10a4d20532" } - }, - "8dffcd74e5b5923512916c6a64b502689cfa65e1" : { + } + }, + "pre" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0", - "code" : "0x", - "nonce" : "1", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6001f0600055600060006000600060006000546000f1", + "nonce" : "0", "storage" : { - "0x02" : "0x8dffcd74e5b5923512916c6a64b502689cfa65e1" } }, - "95a4d7cccb5204733874fa87285a176fe1e9e240" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "100000000", "code" : "0x", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : "0x00", + "gasLimit" : "20000000", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0" + } + }, + "CallContractToCreateContractWhichWouldCreateContractIfCalled" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "100000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "logs" : [ + ], + "out" : "0x", + "post" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "998", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6001f0600055600060006000600060016000546101f4f1", "nonce" : "1", "storage" : { - "0x02" : "0x95a4d7cccb5204733874fa87285a176fe1e9e240" + "0x" : "0xd2571607e241ecf590ed94b12d87c94babe36db6" } }, - "99b2fcba8120bedd048fe79f5262a6690ed38c39" : { - "balance" : "0", + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "1407", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0x99b2fcba8120bedd048fe79f5262a6690ed38c39" } }, - "a4202b8b8afd5354e3e40a219bdc17f6001bf2cf" : { + "62c01474f089b07dae603491675dc5b5748f7049" : { "balance" : "0", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0xa4202b8b8afd5354e3e40a219bdc17f6001bf2cf" } }, "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "89999", + "balance" : "99998593", "code" : "0x", "nonce" : "1", "storage" : { } }, - "a9647f4a0a14042d91dc33c0328030a7157c93ae" : { - "balance" : "0", - "code" : "0x", + "d2571607e241ecf590ed94b12d87c94babe36db6" : { + "balance" : "2", + "code" : "0x602060406000f0", "nonce" : "1", "storage" : { - "0x02" : "0xa9647f4a0a14042d91dc33c0328030a7157c93ae" + "0x" : "0x0c" + } + } + }, + "pre" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1000", + "code" : "0x74600c60005566602060406000f060205260076039f36000526015600b6001f0600055600060006000600060016000546101f4f1", + "nonce" : "0", + "storage" : { } }, - "aa6cffe5185732689c18f37a7f86170cb7304c2a" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "100000000", "code" : "0x", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : "0x00", + "gasLimit" : "20000000", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0" + } + }, + "CallContractToCreateContractWhichWouldCreateContractInInitCode" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "100000000", + "currentNumber" : "0", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "logs" : [ + ], + "out" : "0x", + "post" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "1", + "code" : "0x6b600c600055602060406000f0600052600c60146000f0", "nonce" : "1", "storage" : { - "0x02" : "0xaa6cffe5185732689c18f37a7f86170cb7304c2a" } }, - "aae4a2e3c51c04606dcb3723456e58f3ed214f45" : { - "balance" : "0", + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "1016", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0xaae4a2e3c51c04606dcb3723456e58f3ed214f45" } }, - "c37a43e940dfb5baf581a0b82b351d48305fc885" : { + "62c01474f089b07dae603491675dc5b5748f7049" : { "balance" : "0", "code" : "0x", - "nonce" : "1", + "nonce" : "0", "storage" : { - "0x02" : "0xc37a43e940dfb5baf581a0b82b351d48305fc885" } }, - "d2571607e241ecf590ed94b12d87c94babe36db6" : { - "balance" : "0", + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "99998984", "code" : "0x", "nonce" : "1", "storage" : { - "0x02" : "0xd2571607e241ecf590ed94b12d87c94babe36db6" } }, - "f735071cbee190d76b704ce68384fc21e389fbe7" : { + "d2571607e241ecf590ed94b12d87c94babe36db6" : { "balance" : "0", "code" : "0x", "nonce" : "1", "storage" : { - "0x02" : "0xf735071cbee190d76b704ce68384fc21e389fbe7" + "0x" : "0x0c" } } }, "pre" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "0", - "code" : "0x3060025560206000600039602060006000f0", + "balance" : "1", + "code" : "0x6b600c600055602060406000f0600052600c60146000f0", "nonce" : "0", "storage" : { } }, "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "100000", + "balance" : "100000000", "code" : "0x", "nonce" : "0", "storage" : { @@ -236,15 +343,15 @@ }, "transaction" : { "data" : "0x00", - "gasLimit" : "10000", + "gasLimit" : "20000000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "1" + "value" : "0" } }, - "CallTheContractToCreateContractWithInitCode" : { + "CallRecursiveContract" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", @@ -266,7 +373,7 @@ } }, "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "10001", + "balance" : "1", "code" : "0x3060025560206000600039602060006000f0", "nonce" : "1", "storage" : { @@ -465,7 +572,7 @@ }, "pre" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "10000", + "balance" : "0", "code" : "0x3060025560206000600039602060006000f0", "nonce" : "0", "storage" : { @@ -588,7 +695,7 @@ } }, "transaction" : { - "data" : "0x600a80600c6000396000f300600160008035811a8100", + "data" : "0x600a80600c6000396000f200600160008035811a8100", "gasLimit" : "599", "gasPrice" : "1", "nonce" : "0", @@ -642,7 +749,7 @@ } }, "transaction" : { - "data" : "0x600a80600c6000396000f300600160008035811a8100", + "data" : "0x600a80600c6000396000f200600160008035811a8100", "gasLimit" : "590", "gasPrice" : "3", "nonce" : "0", @@ -750,7 +857,7 @@ } }, "transaction" : { - "data" : "0x600a80600c6000396000f300600160008035811a8100", + "data" : "0x600a80600c6000396000f200600160008035811a8100", "gasLimit" : "599", "gasPrice" : "1", "nonce" : "0", @@ -770,10 +877,10 @@ }, "logs" : [ ], - "out" : "0xff600160008035811a81", + "out" : "0x", "post" : { "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { - "balance" : "653", + "balance" : "1000", "code" : "0x", "nonce" : "0", "storage" : { @@ -781,13 +888,13 @@ }, "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : { "balance" : "1", - "code" : "0xff600160008035811a81", + "code" : "0x", "nonce" : "0", "storage" : { } }, "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "balance" : "9346", + "balance" : "8999", "code" : "0x", "nonce" : "1", "storage" : { @@ -804,7 +911,7 @@ } }, "transaction" : { - "data" : "0x600a80600c6000396000f300ff600160008035811a81", + "data" : "0x600a80600c6000396000f200ff600160008035811a81", "gasLimit" : "1000", "gasPrice" : "1", "nonce" : "0", @@ -858,7 +965,7 @@ } }, "transaction" : { - "data" : "0x600a80600c600039600000f30000600160008035811a81", + "data" : "0x600a80600c600039600000f20000600160008035811a81", "gasLimit" : "1000", "gasPrice" : "1", "nonce" : "0", @@ -912,7 +1019,7 @@ } }, "transaction" : { - "data" : "0x600a80600c6000396000fff3ffff600160008035811a81", + "data" : "0x600a80600c6000396000fff2ffff600160008035811a81", "gasLimit" : "1000", "gasPrice" : "1", "nonce" : "0", @@ -921,4 +1028,4 @@ "value" : "1" } } -} +}
\ No newline at end of file |