Skip to content

Commit 8a4651b

Browse files
authored
integration: new tests + enable debug_storageRangeAt (#291)
1 parent fb69405 commit 8a4651b

File tree

5 files changed

+140
-2
lines changed

5 files changed

+140
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[
2+
{
3+
"request": {
4+
"id": 240,
5+
"jsonrpc": "2.0",
6+
"method": "debug_storageRangeAt",
7+
"params": [
8+
"0x2f9e0f17a051c69b7e3d8a11c1a3df8c488a04f7640fc8f94c2de4e8cd49beb0",
9+
1,
10+
"0x0000000000b3F879cb30FE243b4Dfee438691c04",
11+
"0x0000000000000000000000000000000000000000000000000000000000000000",
12+
2
13+
]
14+
},
15+
"response": {
16+
"id": 240,
17+
"jsonrpc": "2.0",
18+
"result": {
19+
"nextKey": "0x00205fe41e5c44d302a25b955a0c32ed32c69f0b4cd52b5688b21ef8b38aa1f3",
20+
"storage": {
21+
"0x405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace": {
22+
"key": "0x0000000000000000000000000000000000000000000000000000000000000002",
23+
"value": "0x00000000000000000000000000000000000000000000000000000000006321cb"
24+
},
25+
"0xc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b": {
26+
"key": "0x0000000000000000000000000000000000000000000000000000000000000003",
27+
"value": "0x00000000000000000000000000000000000000000000000000000000005f0498"
28+
}
29+
}
30+
}
31+
}
32+
}
33+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[
2+
{
3+
"request": {
4+
"id": 240,
5+
"jsonrpc": "2.0",
6+
"method": "debug_storageRangeAt",
7+
"params": [
8+
"0x0adee9fe139077bd66afadfa3e784628bf0c251a566726427bc873e260b2dea3",
9+
1,
10+
"0x0000000000b3F879cb30FE243b4Dfee438691c04",
11+
"0x0000000000000000000000000000000000000000000000000000000000000002",
12+
5
13+
]
14+
},
15+
"response": {
16+
"id": 240,
17+
"jsonrpc": "2.0",
18+
"result": {
19+
"nextKey": "0x004ff370128c6255d8084597ed52dba2962ff692f6f36b2ce33131f0333f694b",
20+
"storage": {
21+
"0x23f89085a5f821c90bc41d3907c6d188fca91ab5bf32a68c31c9d3177c57b3ad": {
22+
"key": "0x00205fe41e5c44d302a25b955a0c32ed32c69f0b4cd52b5688b21ef8b38aa1f3",
23+
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
24+
},
25+
"0x405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace": {
26+
"key": "0x0000000000000000000000000000000000000000000000000000000000000002",
27+
"value": "0x000000000000000000000000000000000000000000000000000000000062cc9e"
28+
},
29+
"0x59992839af742d7e713c1899e0bbc8f63af07374440dc64993326d8db7907915": {
30+
"key": "0x004458e524192c21f4248843289c077d3b120ada6e191963e890789c9d9b63ed",
31+
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
32+
},
33+
"0xbbba505fcbbda312c15ec08d14d98983fc462fe6f668a926f0b3d9a0e51fbb8e": {
34+
"key": "0x003683734842ec7daca2c34c6b86efbbe607f2c599c7e2ae3dca30a90d8e5254",
35+
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
36+
},
37+
"0xc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b": {
38+
"key": "0x0000000000000000000000000000000000000000000000000000000000000003",
39+
"value": "0x00000000000000000000000000000000000000000000000000000000005f0498"
40+
}
41+
}
42+
}
43+
}
44+
}
45+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[
2+
{
3+
"request": {
4+
"id": 240,
5+
"jsonrpc": "2.0",
6+
"method": "debug_storageRangeAt",
7+
"params": [
8+
"0xb176728573ce0666594b47744f85aee9a7e79e3bd7fc0c674d278296eff3b3fe",
9+
2,
10+
"0x0000000000b3F879cb30FE243b4Dfee438691c04",
11+
"0x0000000000000000000000000000000000000000000000000000000000000000",
12+
2
13+
]
14+
},
15+
"response": {
16+
"id": 240,
17+
"jsonrpc": "2.0",
18+
"result": {
19+
"nextKey": "0x00205fe41e5c44d302a25b955a0c32ed32c69f0b4cd52b5688b21ef8b38aa1f3",
20+
"storage": {
21+
"0x405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace": {
22+
"key": "0x0000000000000000000000000000000000000000000000000000000000000002",
23+
"value": "0x0000000000000000000000000000000000000000000000000000000000630557"
24+
},
25+
"0xc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b": {
26+
"key": "0x0000000000000000000000000000000000000000000000000000000000000003",
27+
"value": "0x00000000000000000000000000000000000000000000000000000000005f0498"
28+
}
29+
}
30+
}
31+
}
32+
}
33+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[
2+
{
3+
"request": {
4+
"id": 240,
5+
"jsonrpc": "2.0",
6+
"method": "debug_storageRangeAt",
7+
"params": [
8+
"0x3d691bfdef0aae9c10c94e1fcda53b105172615d5b1101fd2a70a549089cf66e",
9+
1,
10+
"0x0000000000b3F879cb30FE243b4Dfee438691c04",
11+
"0x0000000000000000000000000000000000000000000000000000000000000000",
12+
1
13+
]
14+
},
15+
"response": {
16+
"id": 240,
17+
"jsonrpc": "2.0",
18+
"result": {
19+
"nextKey": "0x0000000000000000000000000000000000000000000000000000000000000003",
20+
"storage": {
21+
"0x405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace": {
22+
"key": "0x0000000000000000000000000000000000000000000000000000000000000002",
23+
"value": "0x000000000000000000000000000000000000000000000000000000000062ca38"
24+
}
25+
}
26+
}
27+
}
28+
}
29+
]

integration/run_tests.py

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
tests_not_compared = [
3131
"mainnet/debug_accountRange", # necessary new algo using tkv
3232

33-
"mainnet/debug_storageRangeAt", # necessary new algo using tkv
34-
3533
"mainnet/erigon_getBalanceChangesInBlock", # necessary new algo using tkv
3634

3735
"mainnet/erigon_getLatestLogs", # necessary new algo using tkv

0 commit comments

Comments
 (0)