Skip to content

Commit

Permalink
Add debug_traceCall mainnet integration tests (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored Apr 1, 2024
1 parent 6998ebf commit bf9c245
Show file tree
Hide file tree
Showing 11 changed files with 1,189 additions and 1 deletion.
80 changes: 80 additions & 0 deletions integration/mainnet/debug_traceCall/test_01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"data": "0x6ea056a90000000000000000000000004470bb87d77b963a013db939be332f927f2b992e0000000000000000000000000000000000000000000000000000000001ec7535",
"from": "0xFBb1b73C4f0BDa4f67dcA266ce6Ef42f520fBB98",
"gas": "0x33869",
"gasPrice": "0x1F",
"value": "0x0"
},
"0x4366AC",
{
"disableMemory": false,
"disableStack": false,
"disableStorage": false
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"failed": true,
"gas": 211049,
"returnValue": "",
"structLogs": [
{
"depth": 1,
"gas": 155985,
"gasCost": 3,
"memory": [],
"op": "PUSH15",
"pc": 0,
"stack": []
},
{
"depth": 1,
"gas": 155982,
"gasCost": 2,
"memory": [],
"op": "DIFFICULTY",
"pc": 16,
"stack": [
"0xa056a9000000000000000000000000"
]
},
{
"depth": 1,
"gas": 155980,
"gasCost": 3,
"memory": [],
"op": "PUSH17",
"pc": 17,
"stack": [
"0xa056a9000000000000000000000000",
"0x52efc5604c289"
]
},
{
"depth": 1,
"gas": 155977,
"gasCost": 0,
"memory": [],
"op": "opcode 0x2e not defined",
"pc": 35,
"stack": [
"0xa056a9000000000000000000000000",
"0x52efc5604c289",
"0xbb87d77b963a013db939be332f927f2b99"
]
}
]
}
}
}
]
44 changes: 44 additions & 0 deletions integration/mainnet/debug_traceCall/test_02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"data": "0x47872b42bad3a36c7b8993d43fce8aa97c5d14a1828f559206552cd1e2e5167dbf7fab1c000000000000000000000000000000000000000000000000002386f26fc10000f3b7eaf85911f23fec4384f41e4e1432194fb7ae66ddef71f291412f7195713b",
"from": "0xB063F38343a46a8A9fFD52a47b26133b7c49788B",
"gas": "0x30D40",
"gasPrice": "0x4",
"value": "0x0"
},
"0xb425a0ecfa4b74abf04a6f73c7e323b4b7220c8a96f12fff30b60172cfc50973",
{
"disableMemory": false,
"disableStack": false,
"disableStorage": false
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"failed": true,
"gas": 200000,
"returnValue": "",
"structLogs": [
{
"depth": 1,
"gas": 141928,
"gasCost": 0,
"memory": [],
"op": "opcode 0x47 not defined",
"pc": 0,
"stack": []
}
]
}
}
}
]
35 changes: 35 additions & 0 deletions integration/mainnet/debug_traceCall/test_03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"data": "0xa694fc3a00000000000000000000000000000000000000000000010f0cf064dd59200000",
"from": "0x56768B032Fc12D2e911eF654B0054e26a58cef74",
"gas": "0x147F7",
"gasPrice": "0x1",
"to": "0xc92047CeC2355293A9e3710e32851F3509e7313E",
"value": "0x0"
},
"0x52a0b3",
{
"disableMemory": false,
"disableStack": false,
"disableStorage": false
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"failed": false,
"gas": 21912,
"returnValue": "",
"structLogs": []
}
}
}
]
44 changes: 44 additions & 0 deletions integration/mainnet/debug_traceCall/test_04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"data": "0x0a19b14a0000000000000000000000001122b6a0e00dce0563082b6e2953f3a943855c1f0000000000000000000000000000000000000000000002e27339bb8d03180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000086387f25c6904000000000000000000000000000000000000000000000000000000000000052a02900000000000000000000000000000000000000000000000000000000a23e90d800000000000000000000000051b632a2935713d6064e5f79f5ff0b67b36cf4ea000000000000000000000000000000000000000000000000000000000000001c36c9c81bc058d719563702e56437f8fe3b8327a2585f511bc2e8349884c9970d2c53f583e4c7a78714d79f19e33f04df85d72f9f6c00ebfbbd5c2913223a17a60000000000000000000000000000000000000000000002e27339bb8d03180000",
"from": "0xd2c69eb70d9014d4635C7754F73BeaDac388Edbc",
"gas": "0x3D090",
"gasPrice": "0x1D905C0",
"value": "0x0"
},
"0x5279A7",
{
"disableMemory": false,
"disableStack": false,
"disableStorage": false
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"failed": true,
"gas": 250000,
"returnValue": "",
"structLogs": [
{
"depth": 1,
"gas": 186744,
"gasCost": 186744,
"memory": [],
"op": "EXP",
"pc": 0,
"stack": []
}
]
}
}
}
]
Binary file added integration/mainnet/debug_traceCall/test_05.tar
Binary file not shown.
Binary file added integration/mainnet/debug_traceCall/test_06.tar
Binary file not shown.
Binary file not shown.
Binary file added integration/mainnet/debug_traceCall/test_08.tar
Binary file not shown.
Loading

0 comments on commit bf9c245

Please sign in to comment.