Skip to main content

Crate forge_script

Crate forge_script 

Source
Expand description

ยงfoundry-script

Smart contract scripting.

Re-exportsยง

pub(crate) use alloy_primitives::Address; ๐Ÿ”’
pub(crate) use alloy_primitives::B256; ๐Ÿ”’
pub(crate) use alloy_primitives::Bytes; ๐Ÿ”’
pub(crate) use alloy_primitives::Log; ๐Ÿ”’
pub(crate) use alloy_primitives::U256; ๐Ÿ”’
pub(crate) use alloy_primitives::hex; ๐Ÿ”’
pub(crate) use alloy_primitives::hex; ๐Ÿ”’
pub(crate) use alloy_primitives::map::HashMap; ๐Ÿ”’
pub(crate) use Function; ๐Ÿ”’
pub(crate) use JsonAbi; ๐Ÿ”’
pub(crate) use alloy_network::Network; ๐Ÿ”’
pub(crate) use Address; ๐Ÿ”’
pub(crate) use B256; ๐Ÿ”’
pub(crate) use Bytes; ๐Ÿ”’
pub(crate) use Log; ๐Ÿ”’
pub(crate) use U256; ๐Ÿ”’
pub(crate) use hex; ๐Ÿ”’
pub(crate) use hex; ๐Ÿ”’
pub(crate) use HashMap; ๐Ÿ”’
pub(crate) use alloy_signer::Signer; ๐Ÿ”’
pub(crate) use Parser; ๐Ÿ”’
pub(crate) use ValueHint; ๐Ÿ”’
pub(crate) use builder::RangedU64ValueParser; ๐Ÿ”’
pub(crate) use dialoguer::Confirm; ๐Ÿ”’
pub(crate) use ContextCompat; ๐Ÿ”’
pub(crate) use Result; ๐Ÿ”’
pub(crate) use AdditionalContract; ๐Ÿ”’
pub(crate) use NestedValue; ๐Ÿ”’
pub(crate) use RetryArgs; ๐Ÿ”’
pub(crate) use VerifierArgs; ๐Ÿ”’
pub(crate) use BuildOpts; ๐Ÿ”’
pub(crate) use EvmArgs; ๐Ÿ”’
pub(crate) use GlobalArgs; ๐Ÿ”’
pub(crate) use TempoOpts; ๐Ÿ”’
pub(crate) use TracingArgs; ๐Ÿ”’
pub(crate) use utils::LoadConfig; ๐Ÿ”’
pub(crate) use ContractsByArtifact; ๐Ÿ”’
pub(crate) use SELECTOR_LEN; ๐Ÿ”’
pub(crate) use encode_function_args; ๐Ÿ”’
pub(crate) use get_func; ๐Ÿ”’
pub(crate) use compile::ContractSizeLimits; ๐Ÿ”’
pub(crate) use shell; ๐Ÿ”’
pub(crate) use ArtifactId; ๐Ÿ”’
pub(crate) use artifacts::output_selection::ContractOutputSelection; ๐Ÿ”’
pub(crate) use Config; ๐Ÿ”’
pub(crate) use Eip1559FeeEstimatePreset; ๐Ÿ”’
pub(crate) use FoundryHardfork; ๐Ÿ”’
pub(crate) use figment; ๐Ÿ”’
pub(crate) use Metadata; ๐Ÿ”’
pub(crate) use Profile; ๐Ÿ”’
pub(crate) use Provider; ๐Ÿ”’
pub(crate) use Dict; ๐Ÿ”’
pub(crate) use Map; ๐Ÿ”’
pub(crate) use backend::Backend; ๐Ÿ”’
pub(crate) use Breakpoints; ๐Ÿ”’
pub(crate) use FoundryTransaction; ๐Ÿ”’
pub(crate) use EthEvmNetwork; ๐Ÿ”’
pub(crate) use EvmEnvFor; ๐Ÿ”’
pub(crate) use FoundryEvmNetwork; ๐Ÿ”’
pub(crate) use SpecFor; ๐Ÿ”’
pub(crate) use TempoEvmNetwork; ๐Ÿ”’
pub(crate) use TxEnvFor; ๐Ÿ”’
pub(crate) use executors::ExecutorBuilder; ๐Ÿ”’
pub(crate) use hardforks::ExecutionSpec; ๐Ÿ”’
pub(crate) use CheatsConfig; ๐Ÿ”’
pub(crate) use BroadcastableTransactions; ๐Ÿ”’
pub(crate) use Wallets; ๐Ÿ”’
pub(crate) use EvmOpts; ๐Ÿ”’
pub(crate) use ExecutionSpecContext; ๐Ÿ”’
pub(crate) use ForkContext; ๐Ÿ”’
pub(crate) use resolve_execution_spec; ๐Ÿ”’
pub(crate) use revm::interpreter::InstructionResult; ๐Ÿ”’
pub(crate) use InternalTraceMode; ๐Ÿ”’
pub(crate) use TraceRequirements; ๐Ÿ”’
pub(crate) use Traces; ๐Ÿ”’
pub(crate) use NetworkConfigs; ๐Ÿ”’
pub(crate) use NetworkVariant; ๐Ÿ”’
pub(crate) use MultiWalletOpts; ๐Ÿ”’
pub(crate) use wallet_multi::MultiWallet; ๐Ÿ”’
pub(crate) use serde::Serialize; ๐Ÿ”’
pub(crate) use serde::Serialize; ๐Ÿ”’
pub(crate) use std::path::PathBuf; ๐Ÿ”’
pub(crate) use foundry_evm::core::evm::BaseEvmNetwork; ๐Ÿ”’ base
pub(crate) use foundry_evm::core::evm::MonadEvmNetwork; ๐Ÿ”’ monad
pub(crate) use foundry_evm::core::evm::OpEvmNetwork; ๐Ÿ”’ optimism

Modulesยง

broadcast ๐Ÿ”’
build ๐Ÿ”’
execute ๐Ÿ”’
library_deployments ๐Ÿ”’
multi_sequence ๐Ÿ”’
progress ๐Ÿ”’
providers ๐Ÿ”’
receipts ๐Ÿ”’
recovery ๐Ÿ”’
runner ๐Ÿ”’
sequence ๐Ÿ”’
session ๐Ÿ”’
simulate ๐Ÿ”’
transaction ๐Ÿ”’
verify ๐Ÿ”’
wallet_session ๐Ÿ”’
forge script --session CLI wrapper support.

Structsยง

BundledState ๐Ÿ”’
State after we have bundled all TransactionWithMetadata objects into a single ScriptSequenceKind object containing one or more script sequences.
JsonResult ๐Ÿ”’
PreSimulationState ๐Ÿ”’
Same as ExecutedState, but also contains ExecutionArtifacts which are obtained from ScriptResult.
PreprocessedState ๐Ÿ”’
First state basically containing only inputs of the user.
ScriptArgs
CLI arguments for forge script.
ScriptConfig
ScriptResult
ScriptRunner ๐Ÿ”’
Drives script execution
ScriptWalletSessionArgs
Arguments that make forge script a thin wrapper around cast wallet session --for.

Enumsยง

PreparedScript ๐Ÿ”’
Shared preparation stops before execution-family-specific on-chain simulation.

Constantsยง

DEFAULT_CONFIRMATIONS ๐Ÿ”’

Functionsยง

prepare_script_source ๐Ÿ”’
script_trace_requirements ๐Ÿ”’