aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests/stPreCompiledContracts/modexp.json
blob: 9c930d23f43f64c00fdef71cda3eb3d945e4f640 (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
274
275
276
277
278
279
280
281
282
{
    "modexp" : {
        "_info" : {
            "comment" : "",
            "filledwith" : "cpp-1.3.0+commit.16292201.Linux.g++",
            "source" : "/src/GeneralStateTestsFiller/stPreCompiledContracts/modexpFiller.json"
        },
        "env" : {
            "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
            "currentDifficulty" : "0x20000",
            "currentGasLimit" : "10000000000",
            "currentNumber" : "1",
            "currentTimestamp" : "1000",
            "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
        },
        "expect" : [
            {
                "indexes" : {
                    "data" : -1,
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "EIP150",
                    "EIP158"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x00"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        0,
                        6,
                        7
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x01"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        29
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x00"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        1,
                        5,
                        8,
                        9,
                        10,
                        12,
                        13,
                        15,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        30
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x00"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        2,
                        28
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x00",
                            "0x02" : "0x00"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        3,
                        4
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x3b01b01ac41f2d6e917c6d6a221ce793802469026d9ab7578fa2e79e4da6aaab"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        11,
                        14,
                        25,
                        26
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x0100000000000000000000000000000000000000000000000000000000000000"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        16,
                        27
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x02000000000000000000000000000000000000000000000000000000000000"
                        }
                    }
                }
            },
            {
                "indexes" : {
                    "data" : [
                        17
                    ],
                    "gas" : -1,
                    "value" : -1
                },
                "network" : [
                    "Metropolis"
                ],
                "result" : {
                    "1000000000000000000000000000000000000000" : {
                        "storage" : {
                            "0x01" : "0x01",
                            "0x02" : "0x0200000000000000000000000000000000000000000000000000000000000000"
                        }
                    }
                }
            }
        ],
        "pre" : {
            "1000000000000000000000000000000000000000" : {
                "balance" : "",
                "code" : "{ (CALLDATACOPY 0 0 (CALLDATASIZE)) [[1]] (CALLCODE (GAS) 5 0 0 (CALLDATASIZE) 1000 32) [[2]](MLOAD 1000) }",
                "nonce" : "0",
                "storage" : {
                }
            },
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "1000000000000000000000",
                "code" : "",
                "nonce" : "0",
                "storage" : {
                }
            }
        },
        "transaction" : {
            "data" : [
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002003fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",
                "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2efffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",
                "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd",
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002003ffff800000000000000000000000000000000000000000000000000000000000000007",
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002003ffff80",
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002003",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020038000000000000000000000000000000000000000000000000000000000000000",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000080",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000",
                "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000101",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000304",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001020004",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001020300",
                "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010304",
                "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010204",
                "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000203",
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000202030006",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001020306",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002020300",
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000202030000",
                "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020203",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002023003",
                "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020230",
                "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000202",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002",
                "0x000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001001001010010",
                "0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000064",
                "0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030006",
                "0x00000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000",
                "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000",
                "0x000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
            ],
            "gasLimit" : [
                "100000000"
            ],
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "1000000000000000000000000000000000000000",
            "value" : [
                "0"
            ]
        }
    }
}