Skip to main content

Module cmd

Module cmd 

Source
Available on crate feature cmd only.
Expand description

contains cli command

Re-exportsΒ§

use crate::AccountGenerator; πŸ”’
use crate::CHAIN_ID; πŸ”’
use crate::NodeConfig; πŸ”’
use crate::config::DEFAULT_MNEMONIC; πŸ”’
use crate::config::DEFAULT_SLOTS_IN_AN_EPOCH; πŸ”’
use crate::config::DEFAULT_TEMPO_EPOCH_LENGTH; πŸ”’
use crate::config::ForkChoice; πŸ”’
use crate::eth::EthApi; πŸ”’
use crate::eth::backend::db::SerializableState; πŸ”’
use crate::eth::miner::INSTANT_COALESCE_WINDOW; πŸ”’
use crate::eth::pool::transactions::TransactionOrder; πŸ”’
use alloy_genesis::Genesis; πŸ”’
use alloy_network::Network; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::U256; πŸ”’
use alloy_primitives::map::HashMap; πŸ”’
use alloy_primitives::utils::Unit; πŸ”’
use alloy_signer_local::coins_bip39::English; πŸ”’
use alloy_signer_local::coins_bip39::Mnemonic; πŸ”’
use anvil_server::ServerConfig; πŸ”’
use clap::Parser; πŸ”’
use core::fmt; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_config::Chain; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::FigmentProviders; πŸ”’
use foundry_evm::hardfork::FoundryHardfork; πŸ”’
use foundry_evm_networks::NetworkConfigs; πŸ”’
use foundry_primitives::FoundryReceiptEnvelope; πŸ”’
use futures::FutureExt; πŸ”’
use rand_08::SeedableRng; πŸ”’
use rand_08::rngs::StdRng; πŸ”’
use std::net::IpAddr; πŸ”’
use std::num::NonZeroU64; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use std::pin::Pin; πŸ”’
use std::str::FromStr; πŸ”’
use std::sync::Arc; πŸ”’
use std::sync::atomic::AtomicUsize; πŸ”’
use std::sync::atomic::Ordering; πŸ”’
use std::task::Context; πŸ”’
use std::task::Poll; πŸ”’
use std::time::Duration; πŸ”’
use tokio::time::Instant; πŸ”’
use tokio::time::Interval; πŸ”’

StructsΒ§

AnvilEvmArgs
Anvil’s EVM related arguments.
ForkUrl
Represents the input URL for a fork with an optional trailing block number: http://localhost:8545@1000000
NodeArgs
PeriodicStateDumper πŸ”’
Helper type to periodically dump the state of the chain to disk
StateFile
Represents the –state flag and where to load from, or dump the state to

ConstantsΒ§

DEFAULT_DUMP_INTERVAL πŸ”’
Default interval for periodically dumping the state.
IPC_HELP πŸ”’ Non-Windows
The default IPC endpoint

FunctionsΒ§

duration_from_secs_f64 πŸ”’
parse_hardfork πŸ”’
Parses a hardfork string against the active network configuration.
read_genesis_file πŸ”’
Clap’s value parser for genesis. Loads a genesis.json file.