Skip to content

Commit 13c213f

Browse files
authored
integration: trace_* new tests (#318)
1 parent 5b23c87 commit 13c213f

18 files changed

+17102
-1281
lines changed

integration/mainnet/trace_filter/test_25.json

+15,992
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

integration/mainnet/trace_transaction/test_28.json

+27-1,281
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "trace_transaction",
7+
"params": [
8+
"0x1ae5f96a8b446ddd51e96019472f7a31fcad3d2e774373ecfbb2ba94ff72fc04"
9+
]
10+
},
11+
"response": {
12+
"id": 1,
13+
"jsonrpc": "2.0",
14+
"result": [
15+
{
16+
"action": {
17+
"callType": "call",
18+
"from": "0xa1e4380a3b1f749673e270229993ee55f35663b4",
19+
"gas": "0x10c78",
20+
"input": "0xcfae3217",
21+
"to": "0xcde4de4d3baa9f2cb0253de1b86271152fbf7864",
22+
"value": "0x0"
23+
},
24+
"blockHash": "0xb161aa5ed7abb14d5c5e4be63d03761c2e98cdfab35d905575dfeca030b4c2ff",
25+
"blockNumber": 49439,
26+
"result": {
27+
"gasUsed": "0x644b",
28+
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000"
29+
},
30+
"subtraces": 0,
31+
"traceAddress": [],
32+
"transactionHash": "0x1ae5f96a8b446ddd51e96019472f7a31fcad3d2e774373ecfbb2ba94ff72fc04",
33+
"transactionPosition": 0,
34+
"type": "call"
35+
}
36+
]
37+
},
38+
"test": {
39+
"description": "",
40+
"reference": ""
41+
}
42+
}
43+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
[
2+
{
3+
"request": {
4+
"id": 1,
5+
"jsonrpc": "2.0",
6+
"method": "trace_transaction",
7+
"params": [
8+
"0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239"
9+
]
10+
},
11+
"response": {
12+
"id": 1,
13+
"jsonrpc": "2.0",
14+
"result": [
15+
{
16+
"action": {
17+
"callType": "call",
18+
"from": "0x41ed843a086f44b8cb23decc8170c132bc257874",
19+
"gas": "0x28ae7",
20+
"input": "0xfb90b320000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a37000000000000000000000000000000000000000000000000000000000000534a",
21+
"to": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
22+
"value": "0x0"
23+
},
24+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
25+
"blockNumber": 21124438,
26+
"result": {
27+
"gasUsed": "0x1714e",
28+
"output": "0x"
29+
},
30+
"subtraces": 1,
31+
"traceAddress": [],
32+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
33+
"transactionPosition": 24,
34+
"type": "call"
35+
},
36+
{
37+
"action": {
38+
"callType": "call",
39+
"from": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
40+
"gas": "0x27b16",
41+
"input": "0x53d1d15b000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a37000000000000000000000000000000000000000000000000000000000000534a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
42+
"to": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
43+
"value": "0x0"
44+
},
45+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
46+
"blockNumber": 21124438,
47+
"result": {
48+
"gasUsed": "0x16b65",
49+
"output": "0x"
50+
},
51+
"subtraces": 2,
52+
"traceAddress": [
53+
0
54+
],
55+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
56+
"transactionPosition": 24,
57+
"type": "call"
58+
},
59+
{
60+
"action": {
61+
"from": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
62+
"gas": "0x1e771",
63+
"init": "0x3d602d80600a3d3981f3363d3d373d3d3d363d735397d0869aba0d55e96d5716d383f6e1d8695ed75af43d82803e903d91602b57fd5bf3",
64+
"value": "0x0"
65+
},
66+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
67+
"blockNumber": 21124438,
68+
"result": {
69+
"address": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
70+
"code": "0x363d3d373d3d3d363d735397d0869aba0d55e96d5716d383f6e1d8695ed75af43d82803e903d91602b57fd5bf3",
71+
"gasUsed": "0x2347"
72+
},
73+
"subtraces": 0,
74+
"traceAddress": [
75+
0,
76+
0
77+
],
78+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
79+
"transactionPosition": 24,
80+
"type": "create"
81+
},
82+
{
83+
"action": {
84+
"callType": "call",
85+
"from": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
86+
"gas": "0x1c1d4",
87+
"input": "0xbee3e676000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a3700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
88+
"to": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
89+
"value": "0x0"
90+
},
91+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
92+
"blockNumber": 21124438,
93+
"result": {
94+
"gasUsed": "0xaf22",
95+
"output": "0x"
96+
},
97+
"subtraces": 1,
98+
"traceAddress": [
99+
0,
100+
1
101+
],
102+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
103+
"transactionPosition": 24,
104+
"type": "call"
105+
},
106+
{
107+
"action": {
108+
"callType": "delegatecall",
109+
"from": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
110+
"gas": "0x1b09f",
111+
"input": "0xbee3e676000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a3700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
112+
"to": "0x5397d0869aba0d55e96d5716d383f6e1d8695ed7",
113+
"value": "0x0"
114+
},
115+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
116+
"blockNumber": 21124438,
117+
"result": {
118+
"gasUsed": "0xa4a9",
119+
"output": "0x"
120+
},
121+
"subtraces": 1,
122+
"traceAddress": [
123+
0,
124+
1,
125+
0
126+
],
127+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
128+
"transactionPosition": 24,
129+
"type": "call"
130+
},
131+
{
132+
"action": {
133+
"callType": "call",
134+
"from": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
135+
"gas": "0x128ef",
136+
"input": "0x",
137+
"to": "0xafc9535a1893e860e148f5a53f1ac75607484a37",
138+
"value": "0x4a9b6384488000"
139+
},
140+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
141+
"blockNumber": 21124438,
142+
"result": {
143+
"gasUsed": "0x13a6",
144+
"output": "0x"
145+
},
146+
"subtraces": 1,
147+
"traceAddress": [
148+
0,
149+
1,
150+
0,
151+
0
152+
],
153+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
154+
"transactionPosition": 24,
155+
"type": "call"
156+
},
157+
{
158+
"action": {
159+
"callType": "delegatecall",
160+
"from": "0xafc9535a1893e860e148f5a53f1ac75607484a37",
161+
"gas": "0x11a35",
162+
"input": "0x",
163+
"to": "0xe5dcdc13b628c2df813db1080367e929c1507ca0",
164+
"value": "0x4a9b6384488000"
165+
},
166+
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
167+
"blockNumber": 21124438,
168+
"result": {
169+
"gasUsed": "0x945",
170+
"output": "0x"
171+
},
172+
"subtraces": 0,
173+
"traceAddress": [
174+
0,
175+
1,
176+
0,
177+
0,
178+
0
179+
],
180+
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
181+
"transactionPosition": 24,
182+
"type": "call"
183+
}
184+
]
185+
},
186+
"test": {
187+
"description": "",
188+
"reference": ""
189+
}
190+
}
191+
]

0 commit comments

Comments
 (0)