aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stCreate2/create2checkFieldsInInitcodeFiller.json
blob: 21bf14b61aecb41a5aa60224f9dd11273c6485aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
{
    "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" : {
                    "8c2950f075c34756bfa06b21b13ce910113e5958" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x8c2950f075c34756bfa06b21b13ce910113e5958",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0xf000000000000000000000000000000000000000",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x21",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 1,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "753d879541ef32dd404b5c296b3f90d5723b22e6" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x753d879541ef32dd404b5c296b3f90d5723b22e6",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x2000000000000000000000000000000000000000",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x21",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 2,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "262ddf6ce5b06776eaa045900e933d0be3074c26" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0x262ddf6ce5b06776eaa045900e933d0be3074c26",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x3000000000000000000000000000000000000000",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x21",
                "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" : {
                    "dd216ee8d9ec9d48768efa989e3c599b0327f1ba" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0xdd216ee8d9ec9d48768efa989e3c599b0327f1ba",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0x1bebe06c0893a047ea4ce821f24668d9034e204f",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x21",
                "0x07" : "1"
            }
                    },
                    "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                        "nonce" : "1"
                    }
                }
            },
        {
                "indexes" : {
                    "data" : 6,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [">=Constantinople"],
                "result" : {
                    "ce2c5c4667c2e59af5767b677a65e31fa14f62ad" : {
                        "balance" : "0",
            "nonce" : "1",
            "storage" : {
                "0x00" : "0xce2c5c4667c2e59af5767b677a65e31fa14f62ad",
                "0x01" : "0",
                "0x02" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                "0x03" : "0xab166837a8bc12757f73555d296f726df214cd4c",
                "0x04" : "0",
                "0x05" : "0",
                "0x06" : "0x21",
                "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)) 0) 0) }",
                "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) ) 0) 0) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "3000000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (DELEGATECALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "3300000000000000000000000000000000000000" : {
                "balance" : "0x00",
                "code" : "{ (CREATE2 0 0 (lll (seq (DELEGATECALL (GAS) 0xf000000000000000000000000000000000000000 0 0 0 0) ) 0) 0) }",
                "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) ) 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)     ) 0) 0)  }",
                "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)    ) 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"
            ]
        }
    }
}