forked from cerc-io/plugeth
Merge remote-tracking branch 'origin/develop'
Conflicts: genesishashestest.json
This commit is contained in:
commit
dfe66cab3f
2
TODO
2
TODO
@ -1,4 +1,4 @@
|
||||
- Move over to standard & clear JSON format:
|
||||
- Move over to standard and clear JSON format:
|
||||
|
||||
All files should be of the form:
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"genesis_rlp_hex": "f8abf8a7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a011cc4aaa3b2f97cd6c858fcc0903b9b34b071e1798c91645f0e05e267028cb4a80834000008080830f4240808080a004994f67dc55b09e814ab7ffc8df3686b4afb2bb53e60eae97ef043fe03fb829c0c0",
|
||||
"genesis_state_root": "11cc4aaa3b2f97cd6c858fcc0903b9b34b071e1798c91645f0e05e267028cb4a",
|
||||
"genesis_rlp_hex": "f8abf8a7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a008bf6a98374f333b84e7d063d607696ac7cbbd409bd20fbe6a741c2dfc0eb28580830200008080830f4240808080a004994f67dc55b09e814ab7ffc8df3686b4afb2bb53e60eae97ef043fe03fb829c0c0",
|
||||
"genesis_state_root": "08bf6a98374f333b84e7d063d607696ac7cbbd409bd20fbe6a741c2dfc0eb285",
|
||||
"initial_alloc": {
|
||||
"51ba59315b3a95761d0863b05ccc7a7f54703d99": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"e4157b34ea9615cfbde6b4fda419828124b70c78": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"1e12515ce3e0f817a4ddef9ca55788a1d66bd2df": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"b9c015918bdaba24b4ff057a92a3873d6eb201be": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"6c386a4b26f73c802f34673f7248bb118f97424a": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"cd2a3d9f938e13cd947ec05abc7fe734df8dd826": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"2ef47100e0787b915105fd5e3f4ff6752079d5cb": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"e6716f9544a56c530d868e4bfbacb172315bdead": "1606938044258990275541962092341162602522202993782792835301376",
|
||||
"1a26338f0d905e295fccb71fa9ea849ffa12aaf4": "1606938044258990275541962092341162602522202993782792835301376"
|
||||
},
|
||||
"genesis_hash": "56fff6ab5ef6f1ef8dafb7b4571b89a9ae1ab870e54197c59ea10ba6f2c7eb60"
|
||||
"genesis_hash": "08436a4d33c77e6acf013e586a3333ad152f25d31df8b68749d85046810e1f4b"
|
||||
}
|
||||
|
55
namecoin.json
Normal file
55
namecoin.json
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
"namecoin": {
|
||||
"pre": {
|
||||
"82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
|
||||
"nonce": "1",
|
||||
"balance": "2500000000000000000",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
},
|
||||
"c305c901078781c232a2a521c2af7980f8385ee9": {
|
||||
"nonce": "0",
|
||||
"balance": "0",
|
||||
"storage": {},
|
||||
"code": "0x600035560f0f601d5960203560003557600160005460206000f2602758600060205460206020f2"
|
||||
}
|
||||
},
|
||||
"exec": {
|
||||
"origin": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
|
||||
"code": "0x600035560f0f601d5960203560003557600160005460206000f2602758600060205460206020f2",
|
||||
"value": "0",
|
||||
"address": "c305c901078781c232a2a521c2af7980f8385ee9",
|
||||
"gas": "10000",
|
||||
"caller": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
|
||||
"data": "0x000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000004e",
|
||||
"gasPrice": "1000000000000"
|
||||
},
|
||||
"callcreates": [],
|
||||
"gas": "9763",
|
||||
"env": {
|
||||
"currentTimestamp": "1405282164",
|
||||
"currentGasLimit": "999023",
|
||||
"previousHash": "112a6e7995fcb66376f44e52f011c38d328a9ed3a1dac6eebb1376fccd055fad",
|
||||
"currentCoinbase": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
|
||||
"currentDifficulty": "4190208",
|
||||
"currentNumber": "1"
|
||||
},
|
||||
"post": {
|
||||
"82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
|
||||
"nonce": "1",
|
||||
"balance": "2500000000000000000",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
},
|
||||
"c305c901078781c232a2a521c2af7980f8385ee9": {
|
||||
"nonce": "0",
|
||||
"balance": "0",
|
||||
"storage": {
|
||||
"0x2d": "0x4e"
|
||||
},
|
||||
"code": "0x600035560f0f601d5960203560003557600160005460206000f2602758600060205460206020f2"
|
||||
}
|
||||
},
|
||||
"out": "0x0000000000000000000000000000000000000000000000000000000000000001"
|
||||
}
|
||||
}
|
115
trietest.json
115
trietest.json
@ -1,61 +1,84 @@
|
||||
{
|
||||
"singleItem": {
|
||||
"inputs": [
|
||||
["A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
|
||||
],
|
||||
"expectation": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
|
||||
"in": {
|
||||
"A": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||
},
|
||||
"root": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
|
||||
},
|
||||
"dogs": {
|
||||
"inputs": [
|
||||
["doe", "reindeer"],
|
||||
["dog", "puppy"],
|
||||
["dogglesworth", "cat"]
|
||||
],
|
||||
"expectation": "8aad789dff2f538bca5d8ea56e8abe10f4c7ba3a5dea95fea4cd6e7c3a1168d3"
|
||||
"in": {
|
||||
"doe": "reindeer",
|
||||
"dog": "puppy",
|
||||
"dogglesworth": "cat"
|
||||
},
|
||||
"root": "8aad789dff2f538bca5d8ea56e8abe10f4c7ba3a5dea95fea4cd6e7c3a1168d3"
|
||||
},
|
||||
"puppy": {
|
||||
"inputs":[
|
||||
["do", "verb"],
|
||||
["horse", "stallion"],
|
||||
["doge", "coin"],
|
||||
["dog", "puppy"]
|
||||
],
|
||||
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
|
||||
"in": {
|
||||
"do": "verb",
|
||||
"horse": "stallion",
|
||||
"doge": "coin",
|
||||
"dog": "puppy"
|
||||
},
|
||||
"root": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
|
||||
},
|
||||
"emptyValues": {
|
||||
"inputs":[
|
||||
["do", "verb"],
|
||||
["ether", "wookiedoo"],
|
||||
["horse", "stallion"],
|
||||
["shaman", "horse"],
|
||||
["doge", "coin"],
|
||||
["ether", ""],
|
||||
["dog", "puppy"],
|
||||
["shaman", ""]
|
||||
],
|
||||
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
|
||||
"in": {
|
||||
"do": "verb",
|
||||
"ether": "wookiedoo",
|
||||
"horse": "stallion",
|
||||
"shaman": "horse",
|
||||
"doge": "coin",
|
||||
"ether": "",
|
||||
"dog": "puppy",
|
||||
"shaman": ""
|
||||
},
|
||||
"root": "4505cb6d817068bcd68fb225ab4d5ab70860461d3b35738bf6bcf7b44d702d0d"
|
||||
},
|
||||
"foo": {
|
||||
"inputs":[
|
||||
["foo", "bar"],
|
||||
["food", "bat"],
|
||||
["food", "bass"]
|
||||
],
|
||||
"expectation": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
|
||||
"in": {
|
||||
"foo": "bar",
|
||||
"food": "bat",
|
||||
"food": "bass"
|
||||
},
|
||||
"root": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
|
||||
},
|
||||
"smallValues": {
|
||||
"inputs":[
|
||||
["be", "e"],
|
||||
["dog", "puppy"],
|
||||
["bed", "d"]
|
||||
],
|
||||
"expectation": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
|
||||
"in": {
|
||||
"be": "e",
|
||||
"dog": "puppy",
|
||||
"bed": "d"
|
||||
},
|
||||
"root": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
|
||||
},
|
||||
"testy": {
|
||||
"inputs":[
|
||||
["test", "test"],
|
||||
["te", "testy"]
|
||||
],
|
||||
"expectation": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
|
||||
}
|
||||
"in": {
|
||||
"test": "test",
|
||||
"te": "testy"
|
||||
},
|
||||
"root": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
|
||||
},
|
||||
"hex": {
|
||||
"in": {
|
||||
"0x0045": "0x0123456789",
|
||||
"0x4500": "0x9876543210"
|
||||
},
|
||||
"root": "285505fcabe84badc8aa310e2aae17eddc7d120aabec8a476902c8184b3a3503"
|
||||
},
|
||||
"jeff": {
|
||||
"in": {
|
||||
"0x0000000000000000000000000000000000000000000000000000000000000045": "0x22b224a1420a802ab51d326e29fa98e34c4f24ea",
|
||||
"0x0000000000000000000000000000000000000000000000000000000000000046": "0x67706c2076330000000000000000000000000000000000000000000000000000",
|
||||
"0x0000000000000000000000000000000000000000000000000000001234567890": "0x697c7b8c961b56f675d570498424ac8de1a918f6",
|
||||
"0x000000000000000000000000697c7b8c961b56f675d570498424ac8de1a918f6": "0x1234567890",
|
||||
"0x0000000000000000000000007ef9e639e2733cb34e4dfc576d4b23f72db776b2": "0x4655474156000000000000000000000000000000000000000000000000000000",
|
||||
"0x000000000000000000000000ec4f34c97e43fbb2816cfd95e388353c7181dab1": "0x4e616d6552656700000000000000000000000000000000000000000000000000",
|
||||
"0x4655474156000000000000000000000000000000000000000000000000000000": "0x7ef9e639e2733cb34e4dfc576d4b23f72db776b2",
|
||||
"0x4e616d6552656700000000000000000000000000000000000000000000000000": "0xec4f34c97e43fbb2816cfd95e388353c7181dab1",
|
||||
"0x0000000000000000000000000000000000000000000000000000001234567890": "",
|
||||
"0x000000000000000000000000697c7b8c961b56f675d570498424ac8de1a918f6": "0x6f6f6f6820736f2067726561742c207265616c6c6c793f000000000000000000",
|
||||
"0x6f6f6f6820736f2067726561742c207265616c6c6c793f000000000000000000": "0x697c7b8c961b56f675d570498424ac8de1a918f6"
|
||||
},
|
||||
"root": "088c8e162c91c75ca9efa63f21530bbc6964cff7453a5d6af8404d090292a3e7"
|
||||
}
|
||||
}
|
||||
|
19
trietestnextprev.json
Normal file
19
trietestnextprev.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"basic": {
|
||||
"in": [ "cat", "doge", "wallace" ],
|
||||
"tests": [
|
||||
[ "", "", "cat" ],
|
||||
[ "bobo", "", "cat" ],
|
||||
[ "c", "", "cat" ],
|
||||
[ "car", "", "cat" ],
|
||||
[ "cat", "", "doge" ],
|
||||
[ "catering", "cat", "doge" ],
|
||||
[ "d", "cat", "doge" ],
|
||||
[ "doge", "cat", "wallace" ],
|
||||
[ "dogerton", "doge", "wallace" ],
|
||||
[ "w", "doge", "wallace" ],
|
||||
[ "wallace", "doge", "" ],
|
||||
[ "wallace123", "wallace", ""]
|
||||
]
|
||||
}
|
||||
}
|
799
vmtests.json
799
vmtests.json
@ -1,799 +0,0 @@
|
||||
{
|
||||
"arith" : {
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentTimestamp" : 1,
|
||||
"feeMultiplier" : 1,
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
|
||||
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
|
||||
},
|
||||
"exec" : [
|
||||
{
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"data" : [
|
||||
],
|
||||
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 1000000000000000000
|
||||
}
|
||||
],
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 999999999999999810,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 1,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
2,
|
||||
48,
|
||||
2,
|
||||
1,
|
||||
48,
|
||||
4,
|
||||
48,
|
||||
4,
|
||||
2,
|
||||
48,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
48,
|
||||
2,
|
||||
48,
|
||||
2,
|
||||
4,
|
||||
1,
|
||||
48,
|
||||
3,
|
||||
48,
|
||||
2,
|
||||
6,
|
||||
1,
|
||||
48,
|
||||
8,
|
||||
48,
|
||||
2,
|
||||
3,
|
||||
48,
|
||||
2,
|
||||
3,
|
||||
1,
|
||||
17,
|
||||
61,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 1000000000000000000,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 0,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
2,
|
||||
48,
|
||||
2,
|
||||
1,
|
||||
48,
|
||||
4,
|
||||
48,
|
||||
4,
|
||||
2,
|
||||
48,
|
||||
4,
|
||||
2,
|
||||
1,
|
||||
48,
|
||||
2,
|
||||
48,
|
||||
2,
|
||||
4,
|
||||
1,
|
||||
48,
|
||||
3,
|
||||
48,
|
||||
2,
|
||||
6,
|
||||
1,
|
||||
48,
|
||||
8,
|
||||
48,
|
||||
2,
|
||||
3,
|
||||
48,
|
||||
2,
|
||||
3,
|
||||
1,
|
||||
17,
|
||||
61
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"txs" : [
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 79
|
||||
}
|
||||
]
|
||||
},
|
||||
"boolean" : {
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentTimestamp" : 1,
|
||||
"feeMultiplier" : 1,
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
|
||||
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
|
||||
},
|
||||
"exec" : [
|
||||
{
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"data" : [
|
||||
],
|
||||
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 1000000000000000000
|
||||
}
|
||||
],
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 999999999999999490,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 4,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
21,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
13,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
2,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
42,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
34,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
3,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
63,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
55,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
4,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
84,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
76,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
5,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
104,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
96,
|
||||
48,
|
||||
1,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
12,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
124,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
116,
|
||||
48,
|
||||
1,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
13,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
144,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
136,
|
||||
48,
|
||||
0,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
14,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
164,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
156,
|
||||
48,
|
||||
0,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
15,
|
||||
17,
|
||||
61,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 1000000000000000000,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 0,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
21,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
13,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
2,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
42,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
34,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
3,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
63,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
55,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
4,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
84,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
76,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
5,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
104,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
96,
|
||||
48,
|
||||
1,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
12,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
124,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
116,
|
||||
48,
|
||||
1,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
13,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
144,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
136,
|
||||
48,
|
||||
0,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
1,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
14,
|
||||
17,
|
||||
61,
|
||||
48,
|
||||
164,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
156,
|
||||
48,
|
||||
0,
|
||||
57,
|
||||
49,
|
||||
48,
|
||||
0,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
15,
|
||||
17,
|
||||
61
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"txs" : [
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 2
|
||||
},
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 12
|
||||
},
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 13
|
||||
},
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 14
|
||||
}
|
||||
]
|
||||
},
|
||||
"fan" : {
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentTimestamp" : 1,
|
||||
"feeMultiplier" : 1,
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
|
||||
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
|
||||
},
|
||||
"exec" : [
|
||||
{
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"data" : [
|
||||
"0xcd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
|
||||
],
|
||||
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 1000000000000000000
|
||||
}
|
||||
],
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "115792089237316195423570985008687907853269984665640564039456684007913129639415",
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 2,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
8,
|
||||
48,
|
||||
100000000000000000,
|
||||
18,
|
||||
12,
|
||||
57,
|
||||
0,
|
||||
19,
|
||||
48,
|
||||
100000000000000000,
|
||||
18,
|
||||
3,
|
||||
4,
|
||||
48,
|
||||
"53545048851664692004060005546177757518248266694338929000325674008596820525056",
|
||||
55,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
55,
|
||||
48,
|
||||
53,
|
||||
19,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
54,
|
||||
10,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
"53545048851664692004060005546177757518248266694338929000325674008596820525056",
|
||||
54,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
54,
|
||||
20,
|
||||
61,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
54,
|
||||
1,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
55,
|
||||
48,
|
||||
22,
|
||||
56,
|
||||
0
|
||||
],
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880" : [
|
||||
2
|
||||
],
|
||||
"53545048851664692004060005546177757518248266694338929000325674008596820525056" : [
|
||||
450000000000000000
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 0,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 0,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
8,
|
||||
48,
|
||||
100000000000000000,
|
||||
18,
|
||||
12,
|
||||
57,
|
||||
0,
|
||||
19,
|
||||
48,
|
||||
100000000000000000,
|
||||
18,
|
||||
3,
|
||||
4,
|
||||
48,
|
||||
"53545048851664692004060005546177757518248266694338929000325674008596820525056",
|
||||
55,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
55,
|
||||
48,
|
||||
53,
|
||||
19,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
54,
|
||||
10,
|
||||
15,
|
||||
57,
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
"53545048851664692004060005546177757518248266694338929000325674008596820525056",
|
||||
54,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
54,
|
||||
20,
|
||||
61,
|
||||
48,
|
||||
1,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
54,
|
||||
1,
|
||||
48,
|
||||
"47492849101242970779199036819969649705442767148016637594308774690745619578880",
|
||||
55,
|
||||
48,
|
||||
22,
|
||||
56
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"txs" : [
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 450000000000000000
|
||||
},
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"value" : 450000000000000000
|
||||
}
|
||||
]
|
||||
},
|
||||
"mktx" : {
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentTimestamp" : 1,
|
||||
"feeMultiplier" : 1,
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
|
||||
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
|
||||
},
|
||||
"exec" : [
|
||||
{
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"data" : [
|
||||
],
|
||||
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 1000000000000000000
|
||||
}
|
||||
],
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 499999999999999900,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 1,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
500000000000000000,
|
||||
17,
|
||||
61,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 1000000000000000000,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 0,
|
||||
"store" : {
|
||||
"0" : [
|
||||
48,
|
||||
0,
|
||||
48,
|
||||
500000000000000000,
|
||||
17,
|
||||
61
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"txs" : [
|
||||
{
|
||||
"data" : [
|
||||
],
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 500000000000000000
|
||||
}
|
||||
]
|
||||
},
|
||||
"suicide" : {
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentTimestamp" : 1,
|
||||
"feeMultiplier" : 1,
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
|
||||
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
|
||||
},
|
||||
"exec" : [
|
||||
{
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"data" : [
|
||||
],
|
||||
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : 1000000000000000000
|
||||
}
|
||||
],
|
||||
"post" : {
|
||||
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
|
||||
"balance" : 1000000000000000010,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 0
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : 1000000000000000000,
|
||||
"extroPrice" : 0,
|
||||
"nonce" : 0,
|
||||
"store" : {
|
||||
"0" : [
|
||||
17,
|
||||
63
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"txs" : [
|
||||
]
|
||||
}
|
||||
}
|
59
vmtests/random.json
Normal file
59
vmtests/random.json
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"random": {
|
||||
"pre": {
|
||||
"7d577a597b2742b498cb5cf0c26cdcd726d39e6e": {
|
||||
"nonce": "0",
|
||||
"balance": "1",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
},
|
||||
"82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
|
||||
"nonce": "0",
|
||||
"balance": "2500000000000000000",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
}
|
||||
},
|
||||
"exec": {
|
||||
"origin": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
|
||||
"code": "0x60f86363f011b260c16324413d44608e633688a34a6043637657ab003809060b0cff0aff00070f413041f234344542020f0043393104590c09325c13383458f137f0600845f205300a0d36030b35402011393635395454593a015940",
|
||||
"value": "0",
|
||||
"address": "7d577a597b2742b498cb5cf0c26cdcd726d39e6e",
|
||||
"gas": "10000",
|
||||
"caller": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
|
||||
"data": "0x604e63f12f6b0c60426319bcb28060986330a233e8604463265e809d0104600a3af0f10ff10d0c1336114408583a33f05135410160540f524057201313440d585513f25c54115c433a0d37045a5212094109f10108125c35100f535a",
|
||||
"gasPrice": "1000000000000"
|
||||
},
|
||||
"callcreates": [],
|
||||
"gas": "9987",
|
||||
"env": {
|
||||
"currentTimestamp": "1405320512",
|
||||
"currentGasLimit": "999023",
|
||||
"previousHash": "112a6e7995fcb66376f44e52f011c38d328a9ed3a1dac6eebb1376fccd055fad",
|
||||
"currentCoinbase": "82a978b3f5962a5b0957d9ee9eef472ee55b42f1",
|
||||
"currentDifficulty": "4190208",
|
||||
"currentNumber": "1"
|
||||
},
|
||||
"post": {
|
||||
"0000000000000000000000000000000000000001": {
|
||||
"nonce": "0",
|
||||
"balance": "1",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
},
|
||||
"7d577a597b2742b498cb5cf0c26cdcd726d39e6e": {
|
||||
"nonce": "0",
|
||||
"balance": "0",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
},
|
||||
"82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
|
||||
"nonce": "0",
|
||||
"balance": "2500000000000000000",
|
||||
"storage": {},
|
||||
"code": "0x"
|
||||
}
|
||||
},
|
||||
"out": "0x"
|
||||
}
|
||||
}
|
3111
vmtests/vmArithmeticTest.json
Normal file
3111
vmtests/vmArithmeticTest.json
Normal file
File diff suppressed because it is too large
Load Diff
1882
vmtests/vmBitwiseLogicOperationTest.json
Normal file
1882
vmtests/vmBitwiseLogicOperationTest.json
Normal file
File diff suppressed because it is too large
Load Diff
259
vmtests/vmBlockInfoTest.json
Normal file
259
vmtests/vmBlockInfoTest.json
Normal file
@ -0,0 +1,259 @@
|
||||
{
|
||||
"coinbase" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x41600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9798",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x41600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x41600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"difficulty" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x44600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9798",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x44600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0x0100"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x44600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"gaslimit" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x45600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9798",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x45600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0x0f4240"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x45600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"number" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x43600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9898",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x43600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x43600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"prevhash" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x40600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9798",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x40600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x40600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"timestamp" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x42600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9798",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x42600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0x01"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x42600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1131
vmtests/vmEnvironmentalInfoTest.json
Normal file
1131
vmtests/vmEnvironmentalInfoTest.json
Normal file
File diff suppressed because it is too large
Load Diff
1246
vmtests/vmIOandFlowOperationsTest.json
Normal file
1246
vmtests/vmIOandFlowOperationsTest.json
Normal file
File diff suppressed because it is too large
Load Diff
2880
vmtests/vmPushDupSwapTest.json
Normal file
2880
vmtests/vmPushDupSwapTest.json
Normal file
File diff suppressed because it is too large
Load Diff
173
vmtests/vmSha3Test.json
Normal file
173
vmtests/vmSha3Test.json
Normal file
@ -0,0 +1,173 @@
|
||||
{
|
||||
"sha3_0" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x6000600020600057",
|
||||
"data" : "0x",
|
||||
"gas" : "100000000000",
|
||||
"gasPrice" : "1000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "99999999777",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x6000600020600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x6000600020600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sha3_1" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x6005600420600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9776",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x6005600420600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0xc41589e7559804ea4a2080dad19d876a024ccb05117835447d72ce08c1d020ec"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x6005600420600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sha3_2" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x600a600a20600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9776",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x600a600a20600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
"0x" : "0x6bd2dd6bd408cbee33429358bf24fdc64612fbf8b1b4db604518f40ffd34b607"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x600a600a20600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sha3_3" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x6064640fffffffff20600057",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "0",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x6064640fffffffff20600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x6064640fffffffff20600057",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1485
vmtests/vmSystemOperationsTest.json
Normal file
1485
vmtests/vmSystemOperationsTest.json
Normal file
File diff suppressed because it is too large
Load Diff
206
vmtests/vmtests.json
Normal file
206
vmtests/vmtests.json
Normal file
@ -0,0 +1,206 @@
|
||||
{
|
||||
"arith" : {
|
||||
"callcreates" : [
|
||||
{
|
||||
"data" : "0x",
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"gasLimit" : "9770",
|
||||
"value" : "74"
|
||||
}
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9949",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "999999999999999926",
|
||||
"code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x600060006000600060026002600803036002600306600260020460046004600402026002600201010101013360c85c03f1",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"boolean" : {
|
||||
"callcreates" : [
|
||||
{
|
||||
"data" : "0x",
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"gasLimit" : "9786",
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"data" : "0x",
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"gasLimit" : "9732",
|
||||
"value" : "12"
|
||||
},
|
||||
{
|
||||
"data" : "0x",
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"gasLimit" : "9696",
|
||||
"value" : "13"
|
||||
},
|
||||
{
|
||||
"data" : "0x",
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"gasLimit" : "9660",
|
||||
"value" : "14"
|
||||
}
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9832",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "999999999999999959",
|
||||
"code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mktx" : {
|
||||
"callcreates" : [
|
||||
{
|
||||
"data" : "0x",
|
||||
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"gasLimit" : "9792",
|
||||
"value" : "500000000000000000"
|
||||
}
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x60006000600060006706f05b59d3b200003360c85c03f1",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9971",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "500000000000000000",
|
||||
"code" : "0x60006000600060006706f05b59d3b200003360c85c03f1",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x60006000600060006706f05b59d3b200003360c85c03f1",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"suicide" : {
|
||||
"callcreates" : [
|
||||
],
|
||||
"env" : {
|
||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||
"currentDifficulty" : "256",
|
||||
"currentGasLimit" : "1000000",
|
||||
"currentNumber" : "0",
|
||||
"currentTimestamp" : "1",
|
||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||
},
|
||||
"exec" : {
|
||||
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
|
||||
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"code" : "0x33ff",
|
||||
"data" : "0x",
|
||||
"gas" : "10000",
|
||||
"gasPrice" : "100000000000000",
|
||||
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
|
||||
"value" : "1000000000000000000"
|
||||
},
|
||||
"gas" : "9999",
|
||||
"out" : "0x",
|
||||
"post" : {
|
||||
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
},
|
||||
"pre" : {
|
||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||
"balance" : "1000000000000000000",
|
||||
"code" : "0x33ff",
|
||||
"nonce" : "0",
|
||||
"storage" : {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user