Skip to content

Commit bf9c245

Browse files
authored
Add debug_traceCall mainnet integration tests (#123)
1 parent 6998ebf commit bf9c245

11 files changed

+1189
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "debug_traceCall",
7+
"params": [
8+
{
9+
"data": "0x6ea056a90000000000000000000000004470bb87d77b963a013db939be332f927f2b992e0000000000000000000000000000000000000000000000000000000001ec7535",
10+
"from": "0xFBb1b73C4f0BDa4f67dcA266ce6Ef42f520fBB98",
11+
"gas": "0x33869",
12+
"gasPrice": "0x1F",
13+
"value": "0x0"
14+
},
15+
"0x4366AC",
16+
{
17+
"disableMemory": false,
18+
"disableStack": false,
19+
"disableStorage": false
20+
}
21+
]
22+
},
23+
"response": {
24+
"id": 1,
25+
"jsonrpc": "2.0",
26+
"result": {
27+
"failed": true,
28+
"gas": 211049,
29+
"returnValue": "",
30+
"structLogs": [
31+
{
32+
"depth": 1,
33+
"gas": 155985,
34+
"gasCost": 3,
35+
"memory": [],
36+
"op": "PUSH15",
37+
"pc": 0,
38+
"stack": []
39+
},
40+
{
41+
"depth": 1,
42+
"gas": 155982,
43+
"gasCost": 2,
44+
"memory": [],
45+
"op": "DIFFICULTY",
46+
"pc": 16,
47+
"stack": [
48+
"0xa056a9000000000000000000000000"
49+
]
50+
},
51+
{
52+
"depth": 1,
53+
"gas": 155980,
54+
"gasCost": 3,
55+
"memory": [],
56+
"op": "PUSH17",
57+
"pc": 17,
58+
"stack": [
59+
"0xa056a9000000000000000000000000",
60+
"0x52efc5604c289"
61+
]
62+
},
63+
{
64+
"depth": 1,
65+
"gas": 155977,
66+
"gasCost": 0,
67+
"memory": [],
68+
"op": "opcode 0x2e not defined",
69+
"pc": 35,
70+
"stack": [
71+
"0xa056a9000000000000000000000000",
72+
"0x52efc5604c289",
73+
"0xbb87d77b963a013db939be332f927f2b99"
74+
]
75+
}
76+
]
77+
}
78+
}
79+
}
80+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "debug_traceCall",
7+
"params": [
8+
{
9+
"data": "0x47872b42bad3a36c7b8993d43fce8aa97c5d14a1828f559206552cd1e2e5167dbf7fab1c000000000000000000000000000000000000000000000000002386f26fc10000f3b7eaf85911f23fec4384f41e4e1432194fb7ae66ddef71f291412f7195713b",
10+
"from": "0xB063F38343a46a8A9fFD52a47b26133b7c49788B",
11+
"gas": "0x30D40",
12+
"gasPrice": "0x4",
13+
"value": "0x0"
14+
},
15+
"0xb425a0ecfa4b74abf04a6f73c7e323b4b7220c8a96f12fff30b60172cfc50973",
16+
{
17+
"disableMemory": false,
18+
"disableStack": false,
19+
"disableStorage": false
20+
}
21+
]
22+
},
23+
"response": {
24+
"id": 1,
25+
"jsonrpc": "2.0",
26+
"result": {
27+
"failed": true,
28+
"gas": 200000,
29+
"returnValue": "",
30+
"structLogs": [
31+
{
32+
"depth": 1,
33+
"gas": 141928,
34+
"gasCost": 0,
35+
"memory": [],
36+
"op": "opcode 0x47 not defined",
37+
"pc": 0,
38+
"stack": []
39+
}
40+
]
41+
}
42+
}
43+
}
44+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "debug_traceCall",
7+
"params": [
8+
{
9+
"data": "0xa694fc3a00000000000000000000000000000000000000000000010f0cf064dd59200000",
10+
"from": "0x56768B032Fc12D2e911eF654B0054e26a58cef74",
11+
"gas": "0x147F7",
12+
"gasPrice": "0x1",
13+
"to": "0xc92047CeC2355293A9e3710e32851F3509e7313E",
14+
"value": "0x0"
15+
},
16+
"0x52a0b3",
17+
{
18+
"disableMemory": false,
19+
"disableStack": false,
20+
"disableStorage": false
21+
}
22+
]
23+
},
24+
"response": {
25+
"id": 1,
26+
"jsonrpc": "2.0",
27+
"result": {
28+
"failed": false,
29+
"gas": 21912,
30+
"returnValue": "",
31+
"structLogs": []
32+
}
33+
}
34+
}
35+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "debug_traceCall",
7+
"params": [
8+
{
9+
"data": "0x0a19b14a0000000000000000000000001122b6a0e00dce0563082b6e2953f3a943855c1f0000000000000000000000000000000000000000000002e27339bb8d03180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000086387f25c6904000000000000000000000000000000000000000000000000000000000000052a02900000000000000000000000000000000000000000000000000000000a23e90d800000000000000000000000051b632a2935713d6064e5f79f5ff0b67b36cf4ea000000000000000000000000000000000000000000000000000000000000001c36c9c81bc058d719563702e56437f8fe3b8327a2585f511bc2e8349884c9970d2c53f583e4c7a78714d79f19e33f04df85d72f9f6c00ebfbbd5c2913223a17a60000000000000000000000000000000000000000000002e27339bb8d03180000",
10+
"from": "0xd2c69eb70d9014d4635C7754F73BeaDac388Edbc",
11+
"gas": "0x3D090",
12+
"gasPrice": "0x1D905C0",
13+
"value": "0x0"
14+
},
15+
"0x5279A7",
16+
{
17+
"disableMemory": false,
18+
"disableStack": false,
19+
"disableStorage": false
20+
}
21+
]
22+
},
23+
"response": {
24+
"id": 1,
25+
"jsonrpc": "2.0",
26+
"result": {
27+
"failed": true,
28+
"gas": 250000,
29+
"returnValue": "",
30+
"structLogs": [
31+
{
32+
"depth": 1,
33+
"gas": 186744,
34+
"gasCost": 186744,
35+
"memory": [],
36+
"op": "EXP",
37+
"pc": 0,
38+
"stack": []
39+
}
40+
]
41+
}
42+
}
43+
}
44+
]
7.56 KB
Binary file not shown.
3.93 KB
Binary file not shown.
Binary file not shown.
30.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)