2024-03-22 12:53:53 -05:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"gas": "0x186a0",
|
|
|
|
"gasPrice": "0x600",
|
|
|
|
"input": "0x",
|
|
|
|
"nonce": "0x0",
|
|
|
|
"to": "0x1111111111111111111111111111111111111111",
|
|
|
|
"value": "0x1",
|
|
|
|
"v" : "0x0",
|
|
|
|
"r" : "0x0",
|
|
|
|
"s" : "0x0",
|
|
|
|
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
|
cmd/evm: refactor handling output-files for `t8n` (#30854)
As part of trying to make the inputs and outputs of the evm subcommands
more streamlined and aligned, this PR modifies how `evm t8n` manages
output-files.
Previously, we do a kind of wonky thing where between each transaction,
we invoke a `getTracer` closure. In that closure, we create a new
output-file, a tracer, and then make the tracer stream output to the
file. We also fiddle a bit to ensure that the file becomes properly
closed.
It is a kind of hacky solution we have in place. This PR changes it, so
that from the execution-pipeline point of view, we have just a regular
tracer. No fiddling with re-setting it or closing files.
That particular tracer, however, is a bit special: it takes care of
creating new files per transaction (in the tx-start-hook) and closing
(on tx-end-hook). Also instantiating the right type of underlying
tracer, which can be a json-logger or a custom tracer.
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-01-21 01:35:03 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"gas": "0x186a0",
|
|
|
|
"gasPrice": "0x600",
|
|
|
|
"input": "0x",
|
|
|
|
"nonce": "0x1",
|
|
|
|
"to": "0x1111111111111111111111111111111111111111",
|
|
|
|
"value": "0x1",
|
|
|
|
"v" : "0x0",
|
|
|
|
"r" : "0x0",
|
|
|
|
"s" : "0x0",
|
|
|
|
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"gas": "0x186a0",
|
|
|
|
"gasPrice": "0x600",
|
|
|
|
"input": "0x",
|
|
|
|
"nonce": "0x2",
|
|
|
|
"to": "0x1111111111111111111111111111111111111111",
|
|
|
|
"value": "0x1",
|
|
|
|
"v" : "0x0",
|
|
|
|
"r" : "0x0",
|
|
|
|
"s" : "0x0",
|
|
|
|
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
|
2024-03-22 12:53:53 -05:00
|
|
|
}
|
|
|
|
]
|