Skip to content

Commit

Permalink
integration: trace_* new tests (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored Jan 14, 2025
1 parent 5b23c87 commit 13c213f
Show file tree
Hide file tree
Showing 18 changed files with 17,102 additions and 1,281 deletions.
15,992 changes: 15,992 additions & 0 deletions integration/mainnet/trace_filter/test_25.json

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.
1,308 changes: 27 additions & 1,281 deletions integration/mainnet/trace_transaction/test_28.json

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions integration/mainnet/trace_transaction/test_36.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": [
"0x1ae5f96a8b446ddd51e96019472f7a31fcad3d2e774373ecfbb2ba94ff72fc04"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"action": {
"callType": "call",
"from": "0xa1e4380a3b1f749673e270229993ee55f35663b4",
"gas": "0x10c78",
"input": "0xcfae3217",
"to": "0xcde4de4d3baa9f2cb0253de1b86271152fbf7864",
"value": "0x0"
},
"blockHash": "0xb161aa5ed7abb14d5c5e4be63d03761c2e98cdfab35d905575dfeca030b4c2ff",
"blockNumber": 49439,
"result": {
"gasUsed": "0x644b",
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x1ae5f96a8b446ddd51e96019472f7a31fcad3d2e774373ecfbb2ba94ff72fc04",
"transactionPosition": 0,
"type": "call"
}
]
},
"test": {
"description": "",
"reference": ""
}
}
]
191 changes: 191 additions & 0 deletions integration/mainnet/trace_transaction/test_37.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": [
"0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"action": {
"callType": "call",
"from": "0x41ed843a086f44b8cb23decc8170c132bc257874",
"gas": "0x28ae7",
"input": "0xfb90b320000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a37000000000000000000000000000000000000000000000000000000000000534a",
"to": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
"value": "0x0"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"gasUsed": "0x1714e",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "call"
},
{
"action": {
"callType": "call",
"from": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
"gas": "0x27b16",
"input": "0x53d1d15b000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a37000000000000000000000000000000000000000000000000000000000000534a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
"to": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
"value": "0x0"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"gasUsed": "0x16b65",
"output": "0x"
},
"subtraces": 2,
"traceAddress": [
0
],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "call"
},
{
"action": {
"from": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
"gas": "0x1e771",
"init": "0x3d602d80600a3d3981f3363d3d373d3d3d363d735397d0869aba0d55e96d5716d383f6e1d8695ed75af43d82803e903d91602b57fd5bf3",
"value": "0x0"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"address": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
"code": "0x363d3d373d3d3d363d735397d0869aba0d55e96d5716d383f6e1d8695ed75af43d82803e903d91602b57fd5bf3",
"gasUsed": "0x2347"
},
"subtraces": 0,
"traceAddress": [
0,
0
],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "create"
},
{
"action": {
"callType": "call",
"from": "0x29ef46035e9fa3d570c598d3266424ca11413b0c",
"gas": "0x1c1d4",
"input": "0xbee3e676000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a3700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
"to": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
"value": "0x0"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"gasUsed": "0xaf22",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [
0,
1
],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "call"
},
{
"action": {
"callType": "delegatecall",
"from": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
"gas": "0x1b09f",
"input": "0xbee3e676000000000000000000000000afc9535a1893e860e148f5a53f1ac75607484a3700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001",
"to": "0x5397d0869aba0d55e96d5716d383f6e1d8695ed7",
"value": "0x0"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"gasUsed": "0xa4a9",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [
0,
1,
0
],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "call"
},
{
"action": {
"callType": "call",
"from": "0x5888a4ba4d49936aceada7ba75738cf0dcf70d76",
"gas": "0x128ef",
"input": "0x",
"to": "0xafc9535a1893e860e148f5a53f1ac75607484a37",
"value": "0x4a9b6384488000"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"gasUsed": "0x13a6",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [
0,
1,
0,
0
],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "call"
},
{
"action": {
"callType": "delegatecall",
"from": "0xafc9535a1893e860e148f5a53f1ac75607484a37",
"gas": "0x11a35",
"input": "0x",
"to": "0xe5dcdc13b628c2df813db1080367e929c1507ca0",
"value": "0x4a9b6384488000"
},
"blockHash": "0x731de1aa36bd8c64a66ed75e9ba18990c0ec4da6fc073c26709725b5265a8fcc",
"blockNumber": 21124438,
"result": {
"gasUsed": "0x945",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [
0,
1,
0,
0,
0
],
"transactionHash": "0x4045a10890f6474bb51a4d522ad3cca5f01b9bf3745443bb255d55aaa745c239",
"transactionPosition": 24,
"type": "call"
}
]
},
"test": {
"description": "",
"reference": ""
}
}
]
Loading

0 comments on commit 13c213f

Please sign in to comment.