update t8n and evmstate tools readme.md

This commit is contained in:
jangko 2022-11-15 10:50:12 +07:00
parent 12e5b6460e
commit f59e5b63e3
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 56 additions and 22 deletions

View File

@ -44,6 +44,9 @@ The following options are available:
--nostack disable stack output [=false].
--nostorage disable storage output [=false].
--noreturndata enable return data output [=true].
--fork choose which fork to be tested.
--index if index is unset, all subtest in the fork will be tested [=none(int)].
--pretty pretty print the trace result [=false].
--verbosity sets the verbosity level [=0].
```

View File

@ -29,28 +29,59 @@ There are few options to build `t8n` tool like any other nimbus tools.
Available command line params
```
Usage:
--trace Output full trace logs to files trace-<txIndex>-<txhash>.jsonl
--trace.memory Enable full memory dump in traces.
--trace.nostack Disable stack output in traces.
--trace.returndata Enable return data output in traces.
--output.basedir value Specifies where output files are placed. Will be created if it does not exist.
--output.alloc alloc Determines where to put the alloc of the post-state.
`stdout` - into the stdout output
`stderr` - into the stderr output
<file> - into the file <file>
--output.result result Determines where to put the result (stateroot, txroot etc) of the post-state.
`stdout` - into the stdout output
`stderr` - into the stderr output
<file> - into the file <file>
--output.body value If set, the RLP of the transactions (block body) will be written to this file.
--input.txs stdin stdin or file name of where to find the transactions to apply.
If the file extension is '.rlp', then the data is interpreted as an RLP list of signed transactions.
The '.rlp' format is identical to the output.body format.
--input.alloc stdin `stdin` or file name of where to find the prestate alloc to use.
--input.env stdin `stdin` or file name of where to find the prestate env to use.
--state.fork value Name of ruleset to use.
--state.chainid value ChainID to use (default: 1).
--state.reward value Mining reward. Set to 0 to disable (default: 0).
t8n [OPTIONS]...
The following options are available:
--trace Output full trace logs to files trace-<txIndex>-<txhash>.jsonl [=false].
--trace.memory Enable full memory dump in traces [=false].
--trace.nostack Disable stack output in traces [=false].
--trace.returndata Enable return data output in traces [=false].
--output.basedir Specifies where output files are placed. Will be created if it does not exist.
--output.body If set, the RLP of the transactions (block body) will be written to this file.
--output.alloc Determines where to put the `alloc` of the post-state. [=alloc.json].
`stdout` - into the stdout output.
`stderr` - into the stderr output.
<file> - into the file <file>.
--output.result Determines where to put the `result` (stateroot, txroot etc) of the post-state.
[=result.json].
`stdout` - into the stdout output.
`stderr` - into the stderr output.
<file> - into the file <file>.
--input.alloc `stdin` or file name of where to find the prestate alloc to use. [=alloc.json].
--input.env `stdin` or file name of where to find the prestate env to use. [=env.json].
--input.txs `stdin` or file name of where to find the transactions to apply. If the file
extension is '.rlp', then the data is interpreted as an RLP list of signed
transactions. The '.rlp' format is identical to the output.body format.
[=txs.json].
--state.reward Mining reward. Set to 0 to disable [=0].
--state.chainid ChainID to use [=1].
--state.fork Name of ruleset to use. [=GrayGlacier].
- Frontier.
- Homestead.
- EIP150.
- EIP158.
- Byzantium.
- Constantinople.
- ConstantinopleFix.
- Istanbul.
- FrontierToHomesteadAt5.
- HomesteadToEIP150At5.
- HomesteadToDaoAt5.
- EIP158ToByzantiumAt5.
- ByzantiumToConstantinopleAt5.
- ByzantiumToConstantinopleFixAt5.
- ConstantinopleFixToIstanbulAt5.
- Berlin.
- BerlinToLondonAt5.
- London.
- ArrowGlacier.
- GrayGlacier.
- Merged.
- Shanghai.
- Cancun.
--verbosity sets the verbosity level [=3].
0 = silent, 1 = error, 2 = warn, 3 = info, 4 = debug, 5 = detail.
```