-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathCALLBlake2fFiller.json
222 lines (222 loc) · 9.94 KB
/
CALLBlake2fFiller.json
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
{
"CALLBlake2f": {
"env": {
"currentCoinbase": "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x20000",
"currentGasLimit": "10000000000",
"currentNumber": "1",
"currentTimestamp": "1000"
},
"expect": [
{
"indexes": {
"data": [0],
"gas": 0,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {}
}
}
},
{
"//comment": "Tests that trip validation errors, but that are validated at 100M gas.",
"indexes": {
"data": [0, 1, 2, 3, 9, 10],
"gas": [1, 2, 3],
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"nonce": "1"
}
}
},
{
"indexes": {
"data": [1, 2, 3],
"gas": 0,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {}
}
}
},
{
"indexes": {
"data": [4],
"gas": -1,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01",
"0x02": "0x08c9bcf367e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5",
"0x03": "0xd282e6ad7f520e511f6c3e2b8c68059b9442be0454267ce079217e1319cde05b"
}
}
}
},
{
"indexes": {
"data": [5],
"gas": -1,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01",
"0x02": "0xba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12bb6fdbffa2d1",
"0x03": "0x7d87c5392aab792dc252d5de4533cc9518d38aa8dbf1925ab92386edd4009923"
}
}
}
},
{
"indexes": {
"data": [6],
"gas": -1,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01",
"0x02": "0x75ab69d3190a562c51aef8d88f1c2775876944407270c42c9844252c26d28752",
"0x03": "0x98743e7f6d5ea2f2d3e8d226039cd31b4e426ac4f2d3d666a610c2116fde4735"
}
}
}
},
{
"indexes": {
"data": [7],
"gas": -1,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01",
"0x02": "0xb63a380cb2897d521994a85234ee2c181b5f844d2c624c002677e9703449d2fb",
"0x03": "0xa551b3a8333bcdf5f2f7e08993d53923de3d64fcc68c034e717b9293fed7a421"
}
}
}
},
{
"indexes": {
"data": [8],
"gas": -1,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01",
"0x02": "0x08c9bcf367e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5",
"0x03": "0xd182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b"
}
}
}
},
{
"indexes": {
"data": [9],
"gas": 0,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {
"0x01": "0x01",
"0x02": "0x6d2ce9e534d50e18ff866ae92d70cceba79bbcd14c63819fe48752c8aca87a4b",
"0x03": "0xb7dcc230d22a4047f0486cfcfb50a17b24b2899eb8fca370f22240adb5170189"
}
}
}
},
{
"indexes": {
"data": [10],
"gas": 0,
"value": -1
},
"network": [">=Cancun"],
"result": {
"1000000000000000000000000000000000000000": {
"storage": {}
}
}
}
],
"pre": {
"1000000000000000000000000000000000000000": {
"balance": "",
"code": "{ (CALLDATACOPY 0 0 (CALLDATASIZE)) [[1]] (CALL (GAS) 9 0 0 (CALLDATASIZE) 1000 64) [[2]](MLOAD 1000) [[3]](MLOAD 1032)}",
"nonce": "0",
"storage": {}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"balance": "1000000000000000000000",
"code": "",
"nonce": "0",
"storage": {}
}
},
"transaction": {
"// data": [
"Input is Packed as per EIP-152 requirements",
"Output is [0] - result - [1] high 256 bits [2] low 256 bits",
"Test cases 0 through 7 are from the EIP, case 8 from the EIP is in stTimeConsuming",
"0 - no bytes",
"1 - too few bytes",
"2 - too many bytes",
"3 - f flag wrong value",
"4 - RFC 7693 Appendix-A, zero rounds, final",
"5 - RFC 7693 Appendix-A, twelve rounds, final",
"6 - RFC 7693 Appendix-A, twelve rounds, not final",
"7 - RFC 7693 Appendix-A, one round, final",
"8 - all zero input, correct length, zero rounds, not final",
"9 - RFC 7693 Appendix-A, 8 million rounds",
"10 - two bytes of data, intended to catch gas calculation errors"
],
"data": [
":raw 0x",
":raw 0x00000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
":raw 0x000000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
":raw 0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000002",
":raw 0x0000000048c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
":raw 0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
":raw 0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000",
":raw 0x0000000148c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
":raw 0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
":raw 0x007A120048c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
":raw 0x000c"
],
"gasLimit": ["100000000", "90000", "110000", "200000"],
"gasPrice": "10",
"nonce": "0",
"secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to": "1000000000000000000000000000000000000000",
"value": ["0"]
}
}
}