aboutsummaryrefslogblamecommitdiffstats
path: root/stInitCodeTestFiller.json
blob: 2c155468ff85f441d9cc950edeeda607f1492f99 (plain) (tree)
1
2
 
                                         


















                                                                                               
         
                                                                      
                                 




















                                                                                               
                                    






                              
         
                                                                      
                                 



                                                                                             
                           


         
                                  


                                                                           
                                            






                                                                                               
                                      






                              
         
                                                                      
                                 






                                                                                             
                                        










                                                                                               
                                    






                              
         
                                
                                 






                                                                                             
 
                                              










                                                                                               
                                     






                              
         
                                                                        
                                 



                                                                                             
                          


         
                                         










                                                                                               
                                     






                              
         
                                                                        
                                 







                                                                                             
                                            










                                                                                               
                                     






                              
         
                                                                      
                                 







                                                                                             
                                              


                                                                           
                                            





                                                                                               





                                                         

                                                          
                                      






                              
         
                            
                                  







                                                                                             
                               


                                                                           
                                            





                                                                                               

                                                         
                              


                                                                             

                                                          
                                      






                              
         
                            
                                  







                                                                                             
                                                                        


                                                                           
                                            





                                                                                               






                                                                                  
 






                                                          

                       
         









                                                                                             
                                                                      








                                                                                               
         




                                                                             
                                                                                                                                         

                             









                                                          
         
                            
                                    



                                                                                             



                         







































                                                                                                                                      
                                         









                                                                                               


                                                         
                                                                    




                                                                                                                                     









                                                          
         









                                                                                             
                                                  









                                                                                               




                                                                             
                                                                                                                                          

                             









                                                          
         
                            
                                   







                                                                                             
                                            









                                                                                               
                                                         
                                   


                                                                             
                                                                                                              

                             









                                                          
         






                                                                                             
         































                                                                                                              
                                 











                                                                                             
                                             






                                                                                               
                                      
















                                                                                                                              
                                  





                                                                                             

     
{
    "TransactionCreateRandomInitCode" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x600a80600c6000396000f200600160008035811a8100",
            "gasLimit" : "32599",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "1"
        }
    },


    "NotEnoughCashContractCreation" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "22177",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x600a80600c6000396000f200600160008035811a8100",
            "gasLimit" : "22176",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "100"
        }
    },

    "OutOfGasContractCreation" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "1000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x600a80600c6000396000f200600160008035811a8100",
            "gasLimit" : "22000",
            "gasPrice" : "3",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "1"
        }
    },
    "StackUnderFlowContractCreation" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "50000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x6000f1",
            "gasLimit" : "40000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "0"
        }
    },

    "TransactionCreateAutoSuicideContract" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x600a80600c6000396000fff2ffff600160008035811a81",
            "gasLimit" : "23000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "15"
        }
    },

    "TransactionCreateStopInInitcode" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x600a80600c600039600000f20000600160008035811a81",
            "gasLimit" : "23000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "1"
        }
    },

    "TransactionCreateSuicideInInitcode" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x600a80600c6000396000f200ff600160008035811a81",
            "gasLimit" : "23000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "1"
        }
    },

    "CallTheContractToCreateEmptyContract" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "0",
                "nonce": "0",
                "code": "{(CREATE 0 0 32)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "1000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "100000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "1"
        }
    },

    "CallRecursiveContract" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "0",
                "nonce": "40",
                "code": "{[[ 2 ]](ADDRESS)(CODECOPY 0 0 32)(CREATE 0 0 32)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "1000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "400000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "1"
        }
    },

    "CallContractToCreateContractWhichWouldCreateContractInInitCode" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "1",
                "nonce": "0",
                "//": "{[[0]] 12 (CREATE 0 64 32)}",
                "code": "{(MSTORE 0 0x600c600055602060406000f0)(CREATE 0 20 12)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "20000000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "0"
        }
    },

    "CallContractToCreateContractWhichWouldCreateContractIfCalled" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "1000",
                "nonce": "0",
                "//": "(CREATE 0 64 32)",
                "//": "{[[0]] 12 (MSTORE 32 0x602060406000f0)(RETURN 57 7)}",
                "code": "{(MSTORE 0 0x600c60005566602060406000f060205260076039f3)[[0]](CREATE 1 11 21)(CALL 50000 (SLOAD 0) 1 0 0 0 0)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "20000000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "0"
        }
    },

     "CallContractToCreateContractOOGBonusGas" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "112",
                "nonce": "0",
                "//": "(CREATE 0 64 32)",
                "//": "{[[0]] 12 (MSTORE 32 0x602060406000f0)(RETURN 57 7)}",
                "code": "{(MSTORE 0 0x600c60005566602060406000f060205260076039f3)[[0]](CREATE 1 11 21)(CALL 0 (SLOAD 0) 12 0 0 0 0)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "20000000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "0"
        }
    },

    "CallContractToCreateContractOOG" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "0",
                "nonce": "0",
        "//": "Create should fail. So CALL goes to 0x0...0",
                "//": "(CREATE 0 64 32)",
                "//": "{[[0]] 12 (MSTORE 32 0x602060406000f0)(RETURN 57 7)}",
                "code": "{(MSTORE 0 0x600c60005566602060406000f060205260076039f3)[[0]](CREATE 1 11 21)(CALL 0 (SLOAD 0) 0 0 0 0 0)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "20000000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "0"
        }
    },

    "CallContractToCreateContractAndCallItOOG" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "1000",
                "nonce": "0",
                "//": "(CREATE 0 64 32)",
                "//": "{[[0]] 12 (MSTORE 32 0x602060406000f0)(RETURN 57 7)}",
                "code": "{(MSTORE 0 0x600c60005566602060406000f060205260076039f3)[[0]](CREATE 1 11 21)(CALL 100000 (SLOAD 0) 1 0 0 0 0)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "1000000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "0"
        }
    },

    "CallContractToCreateContractNoCash" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "100000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87": {
                "balance": "10000",
                "nonce": "0",
                "//": "(CREATE 0 64 32)",
                "//": "{[[0]] 12 (MSTORE 32 0x602060406000f0)(RETURN 57 7)}",
                "code": "{(MSTORE 0 0x600c60005566602060406000f060205260076039f3)[[0]](CREATE 100000 11 21)}",
                "storage": {}
            },

            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "0x00",
            "gasLimit" : "20000000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
            "value" : "0"
        }
    },

    "ReturnTest" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "10000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "{(CALL 2000 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b 0 30 1 31 1) (RETURN 30 2)}",
                "nonce" : "0",
                "storage" : {
                }
            },

        "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "{(MSTORE 0 0x15) (RETURN 31 1)}",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "",
            "gasLimit" : "41000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "a94f5374fce5edbc8e2a8697c15331677e6ebf0b",
            "value" : "1"
        }
    },

    "ReturnTest2" : {
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "45678256",
            "currentGasLimit" : "1000000000",
            "currentNumber" : "0",
            "currentTimestamp" : 1,
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "pre" :
        {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "1000000",
                "code" : "{(MSTORE 0 0x15)(CALL 7000 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b 0 0 32 32 32) (RETURN 0 64)}",
                "nonce" : "0",
                "storage" : {
                }
            },

        "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "100000",
                "code" : "{(MSTORE 0 (MUL 3 (CALLDATALOAD 0)))(RETURN 0 32)}",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" :
        {
            "data" : "",
            "gasLimit" : "250000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "a94f5374fce5edbc8e2a8697c15331677e6ebf0b",
            "value" : "1"
        }
    }
}