aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/VMTests/vmEnvironmentalInfoTest.json
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-10 04:18:34 +0800
committerobscuren <geffobscura@gmail.com>2015-01-10 04:18:34 +0800
commit8c7b764d47ce55ba6abe437ae8232cc537c4e0d9 (patch)
tree457d45ca33e58388b431500d1e2208bd5be47c73 /tests/files/VMTests/vmEnvironmentalInfoTest.json
parent905b8cc82f3dc29131f45ccf29bd1d6c967fe132 (diff)
downloadgo-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.gz
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.bz2
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.lz
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.xz
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.zst
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.zip
updated tests
Diffstat (limited to 'tests/files/VMTests/vmEnvironmentalInfoTest.json')
-rw-r--r--tests/files/VMTests/vmEnvironmentalInfoTest.json367
1 files changed, 367 insertions, 0 deletions
diff --git a/tests/files/VMTests/vmEnvironmentalInfoTest.json b/tests/files/VMTests/vmEnvironmentalInfoTest.json
index 88f22027e..95e0afb0a 100644
--- a/tests/files/VMTests/vmEnvironmentalInfoTest.json
+++ b/tests/files/VMTests/vmEnvironmentalInfoTest.json
@@ -1,4 +1,100 @@
{
+ "ExtCodeSizeAddressInputTooBigLeftMyAddress" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x74aa0f572e5295c57f15886f9b263e2f6d2d6c7b5ec63b600055",
+ "data" : "0x",
+ "gas" : "100000000000",
+ "gasPrice" : "1000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999697",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x74aa0f572e5295c57f15886f9b263e2f6d2d6c7b5ec63b600055",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x1a"
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x74aa0f572e5295c57f15886f9b263e2f6d2d6c7b5ec63b600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
+ "ExtCodeSizeAddressInputTooBigRightMyAddress" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x740f572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa3b600055",
+ "data" : "0x",
+ "gas" : "100000000000",
+ "gasPrice" : "1000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999897",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x740f572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa3b600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa" : {
+ "balance" : "0",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x740f572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa3b600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
"address0" : {
"callcreates" : [
],
@@ -230,6 +326,153 @@
}
}
},
+ "balanceAddressInputTooBig" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x74cd1722f3947def4cf144679da39c4c32bdc35681aa31600055",
+ "data" : "0x",
+ "gas" : "100000000000",
+ "gasPrice" : "1000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999878",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x74cd1722f3947def4cf144679da39c4c32bdc35681aa31600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "1722f3947def4cf144679da39c4c32bdc35681aa" : {
+ "balance" : "0",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x74cd1722f3947def4cf144679da39c4c32bdc35681aa31600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
+ "balanceAddressInputTooBigLeftMyAddress" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x74aa0f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600055",
+ "data" : "0x",
+ "gas" : "100000000000",
+ "gasPrice" : "1000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999678",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x74aa0f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600055",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x0de0b6b3a7640000"
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x74aa0f572e5295c57f15886f9b263e2f6d2d6c7b5ec631600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
+ "balanceAddressInputTooBigRightMyAddress" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x740f572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa31600055",
+ "data" : "0x",
+ "gas" : "100000000000",
+ "gasPrice" : "1000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999878",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x740f572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa31600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa" : {
+ "balance" : "0",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x740f572e5295c57f15886f9b263e2f6d2d6c7b5ec6aa31600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
"balanceCaller3" : {
"callcreates" : [
],
@@ -1189,6 +1432,130 @@
}
}
},
+ "extcodecopy0AddressTooBigLeft" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x333b6000600074aacd1722f3947def4cf144679da39c4c32bdc356813c600051600055",
+ "data" : "0x01234567890abcdef01234567890abcdef",
+ "gas" : "100000000000",
+ "gasPrice" : "123456789",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999689",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x333b6000600074aacd1722f3947def4cf144679da39c4c32bdc356813c600051600055",
+ "nonce" : "0",
+ "storage" : {
+ "0x" : "0x6005600055000000000000000000000000000000000000000000000000000000"
+ }
+ },
+ "cd1722f3947def4cf144679da39c4c32bdc35681" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x6005600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x333b6000600074aacd1722f3947def4cf144679da39c4c32bdc356813c600051600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "cd1722f3947def4cf144679da39c4c32bdc35681" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x6005600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
+ "extcodecopy0AddressTooBigRight" : {
+ "callcreates" : [
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "256",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "0",
+ "currentTimestamp" : "1",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x333b6000600074cd1722f3947def4cf144679da39c4c32bdc35681aa3c600051600055",
+ "data" : "0x01234567890abcdef01234567890abcdef",
+ "gas" : "100000000000",
+ "gasPrice" : "123456789",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "99999999889",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x333b6000600074cd1722f3947def4cf144679da39c4c32bdc35681aa3c600051600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "1722f3947def4cf144679da39c4c32bdc35681aa" : {
+ "balance" : "0",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "cd1722f3947def4cf144679da39c4c32bdc35681" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x6005600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x333b6000600074cd1722f3947def4cf144679da39c4c32bdc35681aa3c600051600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "cd1722f3947def4cf144679da39c4c32bdc35681" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x6005600055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
"extcodecopyZeroMemExpansion" : {
"callcreates" : [
],