Skip to content

Commit

Permalink
Generate docker responses for ft tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasirv committed Nov 21, 2023
1 parent bff80a4 commit 75ef39e
Show file tree
Hide file tree
Showing 202 changed files with 374,334 additions and 17 deletions.
17 changes: 1 addition & 16 deletions tools/full-tracer-tests/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"folderName": "calldata",
"traceMethod": "callTracer",
"isEthereumTest": false
},
},
{
"testName": "op-invalid",
"testToDebug": 0,
Expand Down Expand Up @@ -40,16 +40,6 @@
"testToDebug": 1,
"traceMethod": "defaultTracer"
},
{
"testName": "op-call",
"testToDebug": 1,
"traceMethod": "callTracer"
},
{
"testName": "op-call",
"testToDebug": 6,
"traceMethod": "callTracer"
},
{
"testName": "op-call",
"testToDebug": 14,
Expand All @@ -60,11 +50,6 @@
"testToDebug": 0,
"traceMethod": "defaultTracer"
},
{
"testName": "op-call",
"testToDebug": 25,
"traceMethod": "callTracer"
},
{
"testName": "op-call-revert",
"testToDebug": 0,
Expand Down
2 changes: 1 addition & 1 deletion tools/full-tracer-tests/full-tracer-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ async function compareDefaultTracer(geth, fullTracer, i) {
// }
let currentStep = 0;
// Fill steps array
for (const step of fullTracer.call_trace.steps) {
for (const step of fullTracer.execution_trace) {
const newStep = {
pc: step.pc,
op: step.opcode,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"gas": 23520,
"failed": false,
"returnValue": "",
"structLogs": [
{
"pc": 0,
"op": "PUSH20",
"gas": 379000,
"gasCost": 3,
"depth": 1,
"stack": [],
"memory": []
},
{
"pc": 21,
"op": "BALANCE",
"gas": 378997,
"gasCost": 100,
"depth": 1,
"stack": [
"0x95e7baea6a6c7c4c2dfeb977efac326af552d87"
],
"memory": []
},
{
"pc": 22,
"op": "PUSH20",
"gas": 378897,
"gasCost": 3,
"depth": 1,
"stack": [
"0x1"
],
"memory": []
},
{
"pc": 43,
"op": "BALANCE",
"gas": 378894,
"gasCost": 100,
"depth": 1,
"stack": [
"0x1",
"0x95e7baea6a6c7c4c2dfeb977efac326af552d87"
],
"memory": []
},
{
"pc": 44,
"op": "PUSH20",
"gas": 378794,
"gasCost": 3,
"depth": 1,
"stack": [
"0x1",
"0x1"
],
"memory": []
},
{
"pc": 65,
"op": "BALANCE",
"gas": 378791,
"gasCost": 100,
"depth": 1,
"stack": [
"0x1",
"0x1",
"0x95e7baea6a6c7c4c2dfeb977efac326af552d87"
],
"memory": []
},
{
"pc": 66,
"op": "ADDMOD",
"gas": 378691,
"gasCost": 8,
"depth": 1,
"stack": [
"0x1",
"0x1",
"0x1"
],
"memory": []
},
{
"pc": 67,
"op": "PUSH1",
"gas": 378683,
"gasCost": 3,
"depth": 1,
"stack": [
"0x0"
],
"memory": []
},
{
"pc": 69,
"op": "SSTORE",
"gas": 378680,
"gasCost": 2200,
"depth": 1,
"stack": [
"0x0",
"0x0"
],
"memory": [],
"storage": {
"0000000000000000000000000000000000000000000000000000000000000000": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
{
"pc": 70,
"op": "STOP",
"gas": 376480,
"gasCost": 0,
"depth": 1,
"stack": [],
"memory": []
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x186a0",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x96e2fd4c",
"error": "invalid opcode: INVALID",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0xa962",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x8ce6b8f1",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x57c8",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x6ab9b19a",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x5c5d",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x6fa30aab",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x6012",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xbd3ff5d1",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x5f36",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x5a7559a1",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x6189",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xa59af52a",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x5569",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xecc5544a",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x56cd",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xe44f413d",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x5848",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x22e62e29",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x59ac",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x0de4d6c0",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x5b25",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xc7c969db",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x6e5a",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xf8b3e8e0",
"error": "execution reverted",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x6718",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xf4c02e6b",
"calls": [
{
"from": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"gas": "0x12853",
"gasUsed": "0x7c9",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x84f232d3",
"error": "execution reverted",
"value": "0x0",
"type": "CALL"
}
],
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x66e0",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x6f990b24",
"calls": [
{
"from": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"gas": "0x12852",
"gasUsed": "0x790",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x3db17295",
"value": "0x0",
"type": "CALL"
}
],
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0xb1de",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x8035d35b",
"value": "0x0",
"type": "CALL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"from": "0x4d5cf5032b2a844602278b01199ed191a86c93ff",
"gas": "0x186a0",
"gasUsed": "0x6bed",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0xaffc63c7",
"output": "0x0000000000000000000000000000000000000000000000000000000123456789",
"calls": [
{
"from": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"gas": "0x12d77",
"gasUsed": "0x1c0",
"to": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98",
"input": "0x6aecbc33",
"output": "0x0000000000000000000000000000000000000000000000000000000123456789",
"value": "0x0",
"type": "CALL"
}
],
"value": "0x0",
"type": "CALL"
}
Loading

0 comments on commit 75ef39e

Please sign in to comment.