aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/StateTests
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-30 23:18:46 +0800
committerobscuren <geffobscura@gmail.com>2014-12-30 23:18:46 +0800
commitcc5e621fc4d80269c335001528667e668ae267ee (patch)
tree58b376ac6e5c67ded86fd90c6fe38ef18e0e8636 /tests/files/StateTests
parent29c887ef2c39e91951e1ae14e7c4276334c434a4 (diff)
downloaddexon-cc5e621fc4d80269c335001528667e668ae267ee.tar
dexon-cc5e621fc4d80269c335001528667e668ae267ee.tar.gz
dexon-cc5e621fc4d80269c335001528667e668ae267ee.tar.bz2
dexon-cc5e621fc4d80269c335001528667e668ae267ee.tar.lz
dexon-cc5e621fc4d80269c335001528667e668ae267ee.tar.xz
dexon-cc5e621fc4d80269c335001528667e668ae267ee.tar.zst
dexon-cc5e621fc4d80269c335001528667e668ae267ee.zip
updated tests
Diffstat (limited to 'tests/files/StateTests')
-rw-r--r--tests/files/StateTests/stInitCodeTest.json76
-rw-r--r--tests/files/StateTests/stSystemOperationsTest.json188
2 files changed, 252 insertions, 12 deletions
diff --git a/tests/files/StateTests/stInitCodeTest.json b/tests/files/StateTests/stInitCodeTest.json
index 67aa42853..1c4670cef 100644
--- a/tests/files/StateTests/stInitCodeTest.json
+++ b/tests/files/StateTests/stInitCodeTest.json
@@ -588,7 +588,7 @@
}
},
"transaction" : {
- "data" : "0x600a80600c6000396000f200600160008035811a8100",
+ "data" : "0x600a80600c6000396000f300600160008035811a8100",
"gasLimit" : "599",
"gasPrice" : "1",
"nonce" : "0",
@@ -642,7 +642,7 @@
}
},
"transaction" : {
- "data" : "0x600a80600c6000396000f200600160008035811a8100",
+ "data" : "0x600a80600c6000396000f300600160008035811a8100",
"gasLimit" : "590",
"gasPrice" : "3",
"nonce" : "0",
@@ -651,6 +651,60 @@
"value" : "1"
}
},
+ "StackUnderFlowContractCreation" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "45678256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : 1,
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "1000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
+ "balance" : "0",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "9000",
+ "code" : "0x",
+ "nonce" : "1",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "10000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "0x6000f1",
+ "gasLimit" : "1000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "",
+ "value" : "0"
+ }
+ },
"TransactionContractCreation" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
@@ -696,7 +750,7 @@
}
},
"transaction" : {
- "data" : "0x600a80600c6000396000f200600160008035811a8100",
+ "data" : "0x600a80600c6000396000f300600160008035811a8100",
"gasLimit" : "599",
"gasPrice" : "1",
"nonce" : "0",
@@ -716,10 +770,10 @@
},
"logs" : [
],
- "out" : "0x",
+ "out" : "0xff600160008035811a81",
"post" : {
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
- "balance" : "1000",
+ "balance" : "653",
"code" : "0x",
"nonce" : "0",
"storage" : {
@@ -727,13 +781,13 @@
},
"6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
"balance" : "1",
- "code" : "0x",
+ "code" : "0xff600160008035811a81",
"nonce" : "0",
"storage" : {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
- "balance" : "8999",
+ "balance" : "9346",
"code" : "0x",
"nonce" : "1",
"storage" : {
@@ -750,7 +804,7 @@
}
},
"transaction" : {
- "data" : "0x600a80600c6000396000f200ff600160008035811a81",
+ "data" : "0x600a80600c6000396000f300ff600160008035811a81",
"gasLimit" : "1000",
"gasPrice" : "1",
"nonce" : "0",
@@ -804,7 +858,7 @@
}
},
"transaction" : {
- "data" : "0x600a80600c600039600000f20000600160008035811a81",
+ "data" : "0x600a80600c600039600000f30000600160008035811a81",
"gasLimit" : "1000",
"gasPrice" : "1",
"nonce" : "0",
@@ -858,7 +912,7 @@
}
},
"transaction" : {
- "data" : "0x600a80600c6000396000fff2ffff600160008035811a81",
+ "data" : "0x600a80600c6000396000fff3ffff600160008035811a81",
"gasLimit" : "1000",
"gasPrice" : "1",
"nonce" : "0",
@@ -867,4 +921,4 @@
"value" : "1"
}
}
-} \ No newline at end of file
+}
diff --git a/tests/files/StateTests/stSystemOperationsTest.json b/tests/files/StateTests/stSystemOperationsTest.json
index 612331ae3..e92c8d9ad 100644
--- a/tests/files/StateTests/stSystemOperationsTest.json
+++ b/tests/files/StateTests/stSystemOperationsTest.json
@@ -5826,5 +5826,191 @@
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : "100000"
}
+ },
+ "callValue" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : 1,
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000100000",
+ "code" : "0x34600055",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x0186a0"
+ }
+ },
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "802",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "999999999999899198",
+ "code" : "0x",
+ "nonce" : "1",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x34600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "10000000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "100000"
+ }
+ },
+ "callerAccountBalance" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : 1,
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000100000",
+ "code" : "0x3331600055",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x0de0b6b3a6c9e2e0"
+ }
+ },
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "822",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "999999999999899178",
+ "code" : "0x",
+ "nonce" : "1",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x3331600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "10000000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "100000"
+ }
+ },
+ "currentAccountBalance" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : 1,
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000100000",
+ "code" : "0x3031600055",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x0de0b6b3a76586a0"
+ }
+ },
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "822",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "999999999999899178",
+ "code" : "0x",
+ "nonce" : "1",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x3031600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "10000000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "100000"
+ }
}
-} \ No newline at end of file
+}