From 5aa9c9c3aab268bcf7f6c398d600951970d2d8f9 Mon Sep 17 00:00:00 2001 From: vub Date: Thu, 13 Oct 2016 12:03:00 -0400 Subject: Added some memory expanding tests --- StateTests/EIP150/MemExpandingEIP150Calls.json | 635 +++++++++++++++++++++++++ 1 file changed, 635 insertions(+) create mode 100644 StateTests/EIP150/MemExpandingEIP150Calls.json (limited to 'StateTests/EIP150') diff --git a/StateTests/EIP150/MemExpandingEIP150Calls.json b/StateTests/EIP150/MemExpandingEIP150Calls.json new file mode 100644 index 000000000..cf1a239f7 --- /dev/null +++ b/StateTests/EIP150/MemExpandingEIP150Calls.json @@ -0,0 +1,635 @@ +{ + "CreateAndGasInsideCreateWithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a600a55635a60fd556000526004601c6000f0600b555a600955", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x0927c0", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999866961", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "0", + "storage": { + "0b": "f1ecf98489fa9ed60a664fc4998db699cfa39d40", + "09": "076e34", + "0a": "08d5b6" + }, + "code": "0x5a600a55635a60fd556000526004601c6000f0600b555a600955" + }, + "f1ecf98489fa9ed60a664fc4998db699cfa39d40": { + "nonce": "0", + "balance": "0", + "storage": { + "fd": "07ea53" + }, + "code": "0x" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "133039", + "storage": {}, + "code": "0x" + } + }, + "postStateRoot": "3ca082f6185a3019aea75573a032dd81b0e99f7b7f464b1a84e55eae4513baf5", + "out": "0x" + }, + "ExecuteCallThatAskForeGasThenTrabsactionHasWithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x0186a0", + "code": "0x", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x60ff60ff60ff60ff6000731000000000000000000000000000000000000001620927c0f1600155", + "storage": {} + }, + "1000000000000000000000000000000000000001": { + "nonce": "0x00", + "balance": "0x0186a0", + "code": "0x600c600155", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x0186a0", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "38222", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": { + "01": "01" + }, + "code": "0x60ff60ff60ff60ff6000731000000000000000000000000000000000000001620927c0f1600155" + }, + "1000000000000000000000000000000000000001": { + "nonce": "0", + "balance": "100000", + "storage": { + "01": "0c" + }, + "code": "0x600c600155" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "61778", + "storage": {}, + "code": "0x" + } + }, + "postStateRoot": "94b4df76c833bb02bfeb6b63427db966e368c23d3a41baf0c06ca6d6c29368d5", + "out": "0x" + }, + "NewGasPriceForCodesWithMemExpandingCalls": { + "pre": { + "1000000000000000000000000000000000000010": { + "nonce": "0x00", + "balance": "0x6f", + "code": "0x1122334455667788991011121314151617181920212223242526272829303132", + "storage": {} + }, + "1000000000000000000000000000000000000011": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x6011606455", + "storage": {} + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x7310000000000000000000000000000000000000103b6001556014600060007310000000000000000000000000000000000000103c60005160025560005460045560ff60ff60ff60ff6001731000000000000000000000000000000000000011617530f160055560ff60ff60ff60ff6001731000000000000000000000000000000000000011617530f260065560ff60ff60ff60ff731000000000000000000000000000000000000011617530f460075560ff60ff60ff60ff6000731000000000000000000000000000000000000013617530f160085573a94f5374fce5edbc8e2a8697c15331677e6ebf0b316003555a600a55", + "storage": { + "0x00": "0x12" + } + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x0927c0", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "1000000000000000000000000000000000000010": { + "nonce": "0", + "balance": "111", + "storage": {}, + "code": "0x1122334455667788991011121314151617181920212223242526272829303132" + }, + "1000000000000000000000000000000000000011": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x6011606455" + }, + "1000000000000000000000000000000000000013": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": { + "02": "1122334455667788991011121314151617181920000000000000000000000000", + "03": "e8d49be840", + "00": "12", + "01": "20", + "07": "01", + "04": "12", + "08": "01", + "0a": "05e249", + "64": "11" + }, + "code": "0x7310000000000000000000000000000000000000103b6001556014600060007310000000000000000000000000000000000000103c60005160025560005460045560ff60ff60ff60ff6001731000000000000000000000000000000000000011617530f160055560ff60ff60ff60ff6001731000000000000000000000000000000000000011617530f260065560ff60ff60ff60ff731000000000000000000000000000000000000011617530f460075560ff60ff60ff60ff6000731000000000000000000000000000000000000013617530f160085573a94f5374fce5edbc8e2a8697c15331677e6ebf0b316003555a600a55" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999765606", + "storage": {}, + "code": "0x" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "234394", + "storage": {}, + "code": "0x" + } + }, + "postStateRoot": "479fef1d31182ab6f401423f71268b338d5ab64cf0134b1d00429fbbb2681bc8", + "out": "0x" + }, + "DelegateCallOnEIPWithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff731000000000000000000000000000000000000105620927c0f4600955", + "storage": {} + }, + "1000000000000000000000000000000000000105": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x6012600055", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x0927c0", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999918220", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": { + "08": "08d5b6", + "09": "01", + "00": "12" + }, + "code": "0x5a60085560ff60ff60ff60ff731000000000000000000000000000000000000105620927c0f4600955" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "81780", + "storage": {}, + "code": "0x" + }, + "1000000000000000000000000000000000000105": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x6012600055" + } + }, + "postStateRoot": "a5c328fefa9c88698bc8874c177e30b327354c21d0fc4e8798f311f98ad9ac6c", + "out": "0x" + }, + "CallGoesOOGOnSecondLevelWithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000110620927c0f1600955", + "storage": {} + }, + "1000000000000000000000000000000000000111": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a600855600060006000f050600060006000f0505a6009555a600a55", + "storage": {} + }, + "1000000000000000000000000000000000000110": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000111620927c0f1600955", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x035b60", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999780000", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000110620927c0f1600955" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "220000", + "storage": {}, + "code": "0x" + }, + "1000000000000000000000000000000000000110": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000111620927c0f1600955" + }, + "1000000000000000000000000000000000000111": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x5a600855600060006000f050600060006000f0505a6009555a600a55" + } + }, + "postStateRoot": "f29c645d8735ceb8bc618a4069db255bdf77c23ece151cf0822c1613e8227c00", + "out": "0x" + }, + "CallAndCallcodeConsumeMoreGasThenTransactionHasWithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "1000000000000000000000000000000000000103": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x6012600055", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000103620927c0f160095560ff60ff60ff60ff6000731000000000000000000000000000000000000103620927c0f2600a55", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x0927c0", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999877487", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": { + "08": "08d5b6", + "09": "01", + "00": "12", + "0a": "01" + }, + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000103620927c0f160095560ff60ff60ff60ff6000731000000000000000000000000000000000000103620927c0f2600a55" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "122513", + "storage": {}, + "code": "0x" + }, + "1000000000000000000000000000000000000103": { + "nonce": "0", + "balance": "0", + "storage": { + "00": "12" + }, + "code": "0x6012600055" + } + }, + "postStateRoot": "3a47c0e593bb7e5efddd07e15e10b7dc504b52b53ed93a924c5a32ff4ef5c373", + "out": "0x" + }, + "CallGoesOOGOnSecondLevel2WithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "1000000000000000000000000000000000000114": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a6008555a6009555a600a55", + "storage": {} + }, + "1000000000000000000000000000000000000113": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000114620927c0f1600955", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000113620927c0f1600955", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x027100", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999840000", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000113620927c0f1600955" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "160000", + "storage": {}, + "code": "0x" + }, + "1000000000000000000000000000000000000113": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000114620927c0f1600955" + }, + "1000000000000000000000000000000000000114": { + "nonce": "0", + "balance": "0", + "storage": {}, + "code": "0x5a6008555a6009555a600a55" + } + }, + "postStateRoot": "c53380bbe4ce6faf67f118f60693db4bc55ad222bca864a691d72de50432e1b2", + "out": "0x" + }, + "CallAskMoreGasOnDepth2ThenTransactionHasWithMemExpandingCalls": { + "pre": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0xe8d4a51000", + "code": "0x", + "storage": {} + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff600073100000000000000000000000000000000000010762030d40f1600955", + "storage": {} + }, + "1000000000000000000000000000000000000108": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a600855", + "storage": {} + }, + "1000000000000000000000000000000000000107": { + "nonce": "0x00", + "balance": "0x00", + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000108620927c0f1600955", + "storage": {} + } + }, + "transaction": { + "nonce": "0x00", + "gasLimit": "0x0927c0", + "value": "0x00", + "secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "data": "", + "gasPrice": "0x01" + }, + "logs": [], + "env": { + "currentGasLimit": "0x989680", + "currentTimestamp": "0x01", + "previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty": "0x02b8feb0", + "currentNumber": "0x200000" + }, + "post": { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "1", + "balance": "999999877441", + "storage": {}, + "code": "0x" + }, + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "nonce": "0", + "balance": "0", + "storage": { + "08": "08d5b6", + "09": "01" + }, + "code": "0x5a60085560ff60ff60ff60ff600073100000000000000000000000000000000000010762030d40f1600955" + }, + "1000000000000000000000000000000000000108": { + "nonce": "0", + "balance": "0", + "storage": { + "08": "02b128" + }, + "code": "0x5a600855" + }, + "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba": { + "nonce": "0", + "balance": "122559", + "storage": {}, + "code": "0x" + }, + "1000000000000000000000000000000000000107": { + "nonce": "0", + "balance": "0", + "storage": { + "08": "030d3e", + "09": "01" + }, + "code": "0x5a60085560ff60ff60ff60ff6000731000000000000000000000000000000000000108620927c0f1600955" + } + }, + "postStateRoot": "c8d3489ab7b0e7016720dc3b3bb467d3413baf8c4309a37a90a0fd355ad931db", + "out": "0x" + } +} -- cgit