Available on crate feature
cli
only.Expand description
Re-exported cli types
Modules§
- allocator
- Custom allocator implementation.
- app
- A configurable App on top of the cli parser.
- chainspec
- Optimism chain specification parser.
- commands
- Optimism CLI commands.
- load_
secret_ key - Helper function to load a secret key from a file.
- ovm_
file_ codec - OVM block, same as EVM block at bedrock, except for signature of deposit transaction
not having a signature back then.
Enables decoding and encoding
Block
types within file contexts. - parsers
- Cli parsers functions.
- receipt_
file_ codec - Module with a codec for reading and encoding receipts in files.
- sigsegv_
handler - Signal handler to extract a backtrace from stack overflow.
Structs§
- Cli
- The main op-reth cli interface.
- CliApp
- A wrapper around a parsed CLI that handles command execution.
- Import
OpCommand - Syncs RLP encoded blocks from a file.
- Import
Receipts OpCommand - Initializes the database with the genesis block.
Functions§
- get_
secret_ key - Attempts to load a
SecretKey
from a specified path. If no file exists there, then it generates a secret key and stores it in the provided path. I/O errors might occur during write operations in the form of aSecretKeyError
- hash_
or_ num_ value_ parser - Parse
BlockHashOrNumber
- parse_
duration_ from_ secs - Helper to parse a Duration from seconds
- parse_
duration_ from_ secs_ or_ ms - Helper to parse a Duration from seconds if it’s a number or milliseconds if the input contains
a
ms
suffix: - parse_
ether_ value - Parses an ether value from a string.
- parse_
socket_ address - Parse a
SocketAddr
from astr
.