Module cli

Module cli 

Source
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.
ImportOpCommand
Syncs RLP encoded blocks from a file.
ImportReceiptsOpCommand
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 a SecretKeyError
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 a str.