Browse Source

Check State

bump builds
cl-refactor
winsvega 10 years ago
parent
commit
e562a19170
  1. 87
      test/stSolidityTestFiller.json

87
test/stSolidityTestFiller.json

@ -1,4 +1,89 @@
{ {
"TestStoreGasPrices" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "45678256",
"currentGasLimit" : "1000000000000000000000",
"currentNumber" : "120",
"currentTimestamp" : 1,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"expect" : {
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"storage" : {
"0x" : "0x4e2d",
"0x01" : "0x1395",
"0x02" : "0x1395",
"0x03" : "0x1395",
"0x04" : "0x1395",
"0x05" : "0x1395"
}
}
},
"pre" :
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "100000",
"//" : "contract main ",
"//" : "{ ",
"//" : " uint[32] m_gasUsed; ",
"//" : " int storage; ",
"//" : " function run() returns (bool) ",
"//" : " { ",
"//" : " uint startgas = msg.gas; ",
"//" : " ",
"//" : " storage = 1; //zero to non zero ",
"//" : " m_gasUsed[0] = startgas - msg.gas; ",
"//" : " startgas = msg.gas; ",
"//" : " ",
"//" : " storage = 2; //non zero to non zero ",
"//" : " m_gasUsed[1] = startgas - msg.gas; ",
"//" : " startgas = msg.gas; ",
"//" : " ",
"//" : " storage = 2; //non zero to same non zero ",
"//" : " m_gasUsed[2] = startgas - msg.gas; ",
"//" : " startgas = msg.gas; ",
"//" : " ",
"//" : " storage = 24784793845734; //non zero to huge non zero ",
"//" : " m_gasUsed[3] = startgas - msg.gas; ",
"//" : " startgas = msg.gas; ",
"//" : " ",
"//" : " storage = 2; //huge non zero to non zero ",
"//" : " m_gasUsed[4] = startgas - msg.gas; ",
"//" : " startgas = msg.gas; ",
"//" : " ",
"//" : " storage = 0; //non zero to zero ",
"//" : " m_gasUsed[5] = startgas - msg.gas; ",
"//" : " startgas = msg.gas; ",
"//" : " ",
"//" : " return true; ",
"//" : " } ",
"//" : "} ",
"code" : "0x7c01000000000000000000000000000000000000000000000000000000006000350463c04062268114602d57005b6033603d565b8060005260206000f35b600060005a600160205590505a81036000555a600260205590505a81036001555a600260205590505a81036002555a65168aa8d53fe660205590505a81036003555a600260205590505a81036004555a600060205590505a81036005555a5060019291505056",
"nonce" : "0",
"storage" : {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "50000000",
"nonce" : "0",
"code" : "",
"storage": {}
}
},
"transaction" :
{
"data" : "run()",
"data" : "0xc0406226",
"gasLimit" : "35000000",
"gasPrice" : "1",
"nonce" : "0",
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : "0"
}
},
"TestCryptographicFunctions" : { "TestCryptographicFunctions" : {
"env" : { "env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
@ -43,7 +128,7 @@
"//" : " //ecrecover ", "//" : " //ecrecover ",
"//" : " } ", "//" : " } ",
"//" : "} ", "//" : "} ",
"code" : "0x7c01000000000000000000000000000000000000000000000000000000006000350463c04062268114610039578063e0a9fd281461004b57005b61004161005d565b8060005260206000f35b61005361008c565b8060005260206000f35b600061006761008c565b600060006101000a81548160ff0219169083021790555060ff60016000540416905090565b600160007f74657374737472696e67000000000000000000000000000000000000000000008152600a016000207f43c4b4524adb81e4e9a5c4648a98e9d320e3908ac5b6c889144b642cd08ae16d14156100e5576100ed565b5060006101da565b60026020600060007f74657374737472696e67000000000000000000000000000000000000000000008152600a01600060008560325a03f161012b57005b507f3c8727e019a42b444667a587b6001251becadabbb36bfed8087a92c18882d111600051141561015b57610163565b5060006101da565b60036020600060007f74657374737472696e67000000000000000000000000000000000000000000008152600a01600060008560325a03f16101a157005b507fcd566972b5e50104011a92b59fa8e0b1234851ae00000000000000000000000060005114156101d1576101d9565b5060006101da565b5b9056", "code" : "0x7c01000000000000000000000000000000000000000000000000000000006000350463c04062268114610039578063e0a9fd281461004b57005b61004161005d565b8060005260206000f35b61005361009d565b8060005260206000f35b600061006761009d565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016919091179081905560ff16905090565b7f74657374737472696e67000000000000000000000000000000000000000000006000908152600190600a90207f43c4b4524adb81e4e9a5c4648a98e9d320e3908ac5b6c889144b642cd08ae16d14156100f6576100fe565b5060006101eb565b60026020600060007f74657374737472696e67000000000000000000000000000000000000000000008152600a01600060008560325a03f161013c57005b506000517f3c8727e019a42b444667a587b6001251becadabbb36bfed8087a92c18882d111141561016c57610174565b5060006101eb565b60036020600060007f74657374737472696e67000000000000000000000000000000000000000000008152600a01600060008560325a03f16101b257005b506000517fcd566972b5e50104011a92b59fa8e0b1234851ae00000000000000000000000014156101e2576101ea565b5060006101eb565b5b9056",
"nonce" : "0", "nonce" : "0",
"storage" : { "storage" : {
} }

Loading…
Cancel
Save