{ "NewGasPriceForCodes" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x00" : "0x12", "0x01" : "0x20", "0x02" : "0x1122334455667788991011121314151617181920000000000000000000000000", "0x03" : "0xe8d49be840", "0x04" : "0x12", "0x07" : "0x01", "0x08" : "0x01", "0x0a" : "0x06441e", "0x64" : "0x11" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "1000000000000000000000000000000000000010" : { "balance" : "111", "code" : "0x1122334455667788991011121314151617181920212223242526272829303132", "nonce" : "0", "storage" : { } }, "1000000000000000000000000000000000000011" : { "balance" : "0", "nonce" : "0", "code" : "{ (SSTORE 100 0x11) }", "storage": { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "Test gasPrice of thise codes after EIP150 transition", "code" : "{ (SSTORE 1 (EXTCODESIZE 0x1000000000000000000000000000000000000010)) (EXTCODECOPY 0x1000000000000000000000000000000000000010 0 0 20) (SSTORE 2 (MLOAD 0)) (SSTORE 4 (SLOAD 0)) (SSTORE 5 (CALL 30000 0x1000000000000000000000000000000000000011 1 0 0 0 0)) (SSTORE 6 (CALLCODE 30000 0x1000000000000000000000000000000000000011 1 0 0 0 0)) (SSTORE 7 (DELEGATECALL 30000 0x1000000000000000000000000000000000000011 0 0 0 0)) (SSTORE 8 (CALL 30000 0x1000000000000000000000000000000000000013 0 0 0 0 0)) (SSTORE 3 (BALANCE 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b)) (SSTORE 10 (GAS)) }", "storage": { "0x00" : "0x12" } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "CreateAndGasInsideCreate" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x09" : "0x076e34", "0x0a" : "0x08d5b6", "0x0b" : "0xf1ecf98489fa9ed60a664fc4998db699cfa39d40" } }, "f1ecf98489fa9ed60a664fc4998db699cfa39d40" : { "storage" : { "0xfd" : "0x07ea53" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "Test gas before Create, inside create and after", "code" : "{ (SSTORE 10 (GAS)) (MSTORE 0 0x5a60fd55) (SSTORE 11 (CREATE 0 28 4)) (SSTORE 9 (GAS)) }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "ExecuteCallThatAskForeGasThenTrabsactionHas" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000001" : { "storage" : { "0x01" : "0x0c" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "100000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "code" : "{ [[1]] (CALL 600000 0x1000000000000000000000000000000000000001 0 0 0 0 0) }", "nonce" : "0", "storage" : { } }, "1000000000000000000000000000000000000001" : { "balance" : "100000", "code" : "{ [[1]] 12 }", "nonce" : "0", "storage" : { } } }, "transaction" : { "data" : "", "gasLimit" : "100000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "CallAndCallcodeConsumeMoreGasThenTransactionHas" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x00" : "0x12", "0x08" : "0x08d5b6", "0x09" : "0x01", "0x0a" : "0x01" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "By new EIP150 rules this transaction would be executed even if call consumes more gas then transaction has.", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 600000 0x1000000000000000000000000000000000000103 0 0 0 0 0)) (SSTORE 10 (CALLCODE 600000 0x1000000000000000000000000000000000000103 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000103" : { "balance" : "0", "nonce" : "0", "code" : "should be 12 in the post state", "code" : "{ (SSTORE 0 0x12) } ", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "DelegateCallOnEIP" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x00" : "0x12", "0x08" : "0x08d5b6", "0x09" : "0x01" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "should work on EIP150 rules", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (DELEGATECALL 600000 0x1000000000000000000000000000000000000105 0 0 0 0)) }", "storage": { } }, "1000000000000000000000000000000000000105" : { "balance" : "0", "nonce" : "0", "code" : "should be 12 in the post state", "code" : "{ (SSTORE 0 0x12) } ", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "CallAskMoreGasOnDepth2ThenTransactionHas" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000107" : { "storage" : { "0x08" : "0x030d3e", "0x09" : "0x01" } }, "1000000000000000000000000000000000000108" : { "storage" : { "0x08" : "0x02b157" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "ordinal call should work but on second depth it has call that asks more gas than left", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 200000 0x1000000000000000000000000000000000000107 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000107" : { "balance" : "0", "nonce" : "0", "code" : "should work on EIP150", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 600000 0x1000000000000000000000000000000000000108 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000108" : { "balance" : "0", "nonce" : "0", "code" : "should be set in the post state", "code" : "{ (SSTORE 8 (GAS))} ", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "CallGoesOOGOnSecondLevel" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000110" : { "storage" : { } }, "1000000000000000000000000000000000000111" : { "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "OOG Call because call goes OOG on second level", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 600000 0x1000000000000000000000000000000000000110 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000110" : { "balance" : "0", "nonce" : "0", "code" : "Inner CaLL goes OOG on EIP150", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 600000 0x1000000000000000000000000000000000000111 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000111" : { "balance" : "0", "nonce" : "0", "code" : "{ (SSTORE 8 (GAS)) (CREATE 0 0 0) (CREATE 0 0 0) (SSTORE 9 (GAS)) (SSTORE 10 (GAS)) }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "220000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "CallGoesOOGOnSecondLevel2" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000113" : { "storage" : { } }, "1000000000000000000000000000000000000114" : { "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "OOG Call transaction has less gas then in example above", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 600000 0x1000000000000000000000000000000000000113 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000113" : { "balance" : "0", "nonce" : "0", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (CALL 600000 0x1000000000000000000000000000000000000114 0 0 0 0 0)) } ", "storage": { } }, "1000000000000000000000000000000000000114" : { "balance" : "0", "nonce" : "0", "code" : "{ (SSTORE 8 (GAS)) (SSTORE 9 (GAS)) (SSTORE 10 (GAS)) }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "160000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "SuicideToNotExistingContract" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000116" : { "shouldnotexist" : "1" }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x01" : "0x08bf58" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "check gas spent on suicide to unknown contract on EIP150", "code" : "{ (CALL 60000 0x1000000000000000000000000000000000000116 0 0 0 0 0) [[1]] (GAS) }", "storage": { } }, "1000000000000000000000000000000000000116" : { "balance" : "0", "nonce" : "0", "code" : "Suicide to not existing account", "code" : "{ (SUICIDE 0x2000000000000000000000000000000000000115) }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "SuicideToExistingContract" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000118" : { "shouldnotexist" : "1" }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x01" : "0x08bf58" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "check gas spent on suicide known contract on EIP150", "code" : "{ (CALL 60000 0x1000000000000000000000000000000000000118 0 0 0 0 0) [[1]] (GAS) }", "storage": { } }, "1000000000000000000000000000000000000118" : { "balance" : "0", "nonce" : "0", "code" : "Suicide to existing account", "code" : "{ (SUICIDE 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b) }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "600000", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "Transaction64Rule_d64e0" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000118" : { "storage" : { "0x01" : "0x0c" } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x00" : "0x021f34", "0x02" : "0x018016" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "check gas spent on suicide known contract on EIP150", "code" : "{ [[0]] (GAS) (CALL 160000 0x1000000000000000000000000000000000000118 0 0 0 0 0) [[2]] (GAS) }", "storage": { } }, "1000000000000000000000000000000000000118" : { "balance" : "0", "nonce" : "0", "code" : "{ [[1]] 12 }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "160062", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "Transaction64Rule_d64p1" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000118" : { "storage" : { "0x01" : "0x0c" } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x00" : "0x021f35", "0x02" : "0x018017" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "check gas spent on suicide known contract on EIP150", "code" : "{ [[0]] (GAS) (CALL 160000 0x1000000000000000000000000000000000000118 0 0 0 0 0) [[2]] (GAS) }", "storage": { } }, "1000000000000000000000000000000000000118" : { "balance" : "0", "nonce" : "0", "code" : "{ [[1]] 12 }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "160063", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } }, "Transaction64Rule_d64m1" : { "env" : { "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "45678256", "currentGasLimit" : "10000000", "currentNumber" : "2675000", "currentTimestamp" : "1", "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "expect" : { "1000000000000000000000000000000000000118" : { "storage" : { "0x01" : "0x0c" } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "storage" : { "0x00" : "0x021f33", "0x02" : "0x018015" } } }, "pre" : { "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "1000000000000", "code" : "", "nonce" : "0", "storage" : { } }, "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0", "nonce" : "0", "code" : "check gas spent on suicide known contract on EIP150", "code" : "{ [[0]] (GAS) (CALL 160000 0x1000000000000000000000000000000000000118 0 0 0 0 0) [[2]] (GAS) }", "storage": { } }, "1000000000000000000000000000000000000118" : { "balance" : "0", "nonce" : "0", "code" : "{ [[1]] 12 }", "storage": { } } }, "transaction" : { "data" : "", "gasLimit" : "160061", "gasPrice" : "1", "nonce" : "0", "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "0" } } }