aboutsummaryrefslogblamecommitdiffstats
path: root/src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json
blob: f586715433d20c04fd131cf8047f5c53562607e1 (plain) (tree)
1
2
3
4


                                      
                                                                                                                                                                                                                                











                                                                                               
                                   




                                                 
                                                                  


                                        
                                                                                  




                                                                                  
                                            















                                                                  
                                                                  


                                        
                                                                                  




                                                                                  
                                            















                                                                  
                                                                  


                                        
                                                                                  




                                                                                  
                                            









                                                                  
                                    








                                                                  








                                                 
                                                                  


                                        
                                                                                  

                                                                                  
                                                                                  

                                         
                                            















                                                                  
                                                                  


                                        
                                                                                  

                                                                                  
                                                                                  

                                         
                                            






                                                                  























                                                                                                 

                                                          
                                                                                                                                              



                              






                                                                                                     

                                                          
                                                                                                                                                   



                              

                                                          
                                                                                                              



                              

                                                          
                                                                                                                                                    



                              






                                                                                                                        

                                                          
                                                                                                                                                                



                              

                                                          
                                                                                                                                                                                                                                 





                                                          
                                                                                                                                                                                                                                      









                                                                                     




                                                                                     













                                                                                             
{
    "create2checkFieldsInInitcode" : {
    "_info" : {
        "comment" : "Check opcode values in create2 init code. Create2 called with different call types. CREATE2 inside CRETE2 inside CALL, CALLCODE, DELEGATECALL, STATICCALL << test values of  SENDER,address and so on."
    },
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "0x20000",
            "currentGasLimit" : "1000000",
            "currentNumber" : "1",
            "currentTimestamp" : "1000",
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "expect" : [
            {
                "indexes" : {
                    "data" : [0,4],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "4d714d3c738b11337521200e35d1c452a087976f" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x4d714d3c738b11337521200e35d1c452a087976f",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0xf000000000000000000000000000000000000000",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x22",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 1,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "5a0015b27943d576fce2a4e604787235d79fa372" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x5a0015b27943d576fce2a4e604787235d79fa372",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x2000000000000000000000000000000000000000",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x22",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 2,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "6c530a06b78986396e0973b900c1698133c5877b" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x6c530a06b78986396e0973b900c1698133c5877b",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x3000000000000000000000000000000000000000",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x22",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : [3, 7],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 5,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "2cda04bff28988e4aea926304671cd73094a2b96" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x2cda04bff28988e4aea926304671cd73094a2b96",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x851e9c5af287e520b832835c03179dc1d0d37659",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x22",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 6,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "14aebdf3e37234440836b67935de2edcf1c0f9a3" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x14aebdf3e37234440836b67935de2edcf1c0f9a3",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x3f02b295091b2926702cfebaacc2a689c51108f4",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x22",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            }
        ],
        "pre" : {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "1000000000000000000",
                "code" : "0x",
                "nonce" : "0",
                "storage" : {
                }
            },
            "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "0x00",
                "code" : "{ (CALL (GAS) (CALLDATALOAD 0) 0 0 0 0 0) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "1000000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0 0) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "1100000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq (CALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0 0) (STOP) ) 0) 0) (STOP) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "2000000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CALLCODE (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0 0) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "2200000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq (CALLCODE (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0 0) (STOP) ) 0) 0)  (STOP) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "3000000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (DELEGATECALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0) (STOP) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "3300000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq (DELEGATECALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0) (STOP) ) 0) 0) (STOP) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "4000000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (STATICCALL (GAS) 0xf200000000000000000000000000000000000000 0 0 0 256) [[10]] (MLOAD 0) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "4400000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq (STATICCALL (GAS) 0xf200000000000000000000000000000000000000 0 0 0 256) [[10]] (MLOAD 0)  (STOP) ) 0) 0 ) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "f000000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq   [[0]] (ADDRESS) [[1]] (BALANCE (ADDRESS)) [[2]] (ORIGIN) [[3]] (CALLER) [[4]] (CALLVALUE) [[5]] (CALLDATASIZE) [[6]] (CODESIZE) [[7]] (GASPRICE) (STOP)   ) 0) 0) (STOP) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "f200000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq   [0] (ADDRESS) [32] (BALANCE (ADDRESS)) [64] (ORIGIN) [96] (CALLER) [128] (CALLVALUE) [160] (CALLDATASIZE) [192] (CODESIZE) [224] (GASPRICE) (RETURN 0 256)  (STOP)   ) 0) 0)  }",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" : {
            "data" : [
                "0x0000000000000000000000001000000000000000000000000000000000000000",
                "0x0000000000000000000000002000000000000000000000000000000000000000",
                "0x0000000000000000000000003000000000000000000000000000000000000000",
                "0x0000000000000000000000004000000000000000000000000000000000000000",
        "0x0000000000000000000000001100000000000000000000000000000000000000",
        "0x0000000000000000000000002200000000000000000000000000000000000000",
        "0x0000000000000000000000003300000000000000000000000000000000000000",
        "0x0000000000000000000000004400000000000000000000000000000000000000"
            ],
            "gasLimit" : [
                "600000"
            ],
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
            "value" : [
                "0"
            ]
        }
    }
}