Skip to main content

Module execute

Module execute 

Source

Re-exportsยง

use super::JsonResult; ๐Ÿ”’
use super::NestedValue; ๐Ÿ”’
use super::ScriptResult; ๐Ÿ”’
use super::runner::ScriptRunner; ๐Ÿ”’
use crate::ScriptArgs; ๐Ÿ”’
use crate::ScriptConfig; ๐Ÿ”’
use crate::build::CompiledState; ๐Ÿ”’
use crate::build::LinkedBuildData; ๐Ÿ”’
use crate::simulate::PreSimulationState; ๐Ÿ”’
use alloy_dyn_abi::FunctionExt; ๐Ÿ”’
use alloy_json_abi::Function; ๐Ÿ”’
use alloy_json_abi::InternalType; ๐Ÿ”’
use alloy_json_abi::JsonAbi; ๐Ÿ”’
use alloy_network::AnyNetwork; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use alloy_primitives::map::HashSet; ๐Ÿ”’
use alloy_provider::Provider; ๐Ÿ”’
use eyre::OptionExt; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use foundry_cheatcodes::Wallets; ๐Ÿ”’
use foundry_cli::utils::ensure_clean_constructor; ๐Ÿ”’
use foundry_cli::utils::needs_setup; ๐Ÿ”’
use foundry_common::ContractsByArtifact; ๐Ÿ”’
use foundry_common::fmt::format_token; ๐Ÿ”’
use foundry_common::fmt::format_token_raw; ๐Ÿ”’
use foundry_common::provider::ProviderBuilder; ๐Ÿ”’
use foundry_compilers::multi::MultiCompilerLanguage; ๐Ÿ”’
use foundry_config::Chain; ๐Ÿ”’
use foundry_config::NamedChain; ๐Ÿ”’
use foundry_debugger::DebuggerBuilder; ๐Ÿ”’
use foundry_evm::core::evm::FoundryEvmNetwork; ๐Ÿ”’
use foundry_evm::decode::decode_console_logs; ๐Ÿ”’
use foundry_evm::inspectors::cheatcodes::BroadcastableTransactions; ๐Ÿ”’
use foundry_evm::traces::CallTraceDecoder; ๐Ÿ”’
use foundry_evm::traces::CallTraceDecoderBuilder; ๐Ÿ”’
use foundry_evm::traces::DebugTraceIdentifier; ๐Ÿ”’
use foundry_evm::traces::TraceKind; ๐Ÿ”’
use foundry_evm::traces::debug::ContractSources; ๐Ÿ”’
use foundry_evm::traces::decode_trace_arena; ๐Ÿ”’
use foundry_evm::traces::identifier::SignaturesIdentifier; ๐Ÿ”’
use foundry_evm::traces::identifier::TraceIdentifiers; ๐Ÿ”’
use foundry_evm::traces::prune_trace_depth; ๐Ÿ”’
use foundry_evm::traces::render_trace_arena_inner; ๐Ÿ”’
use foundry_evm::traces::trace_arena_at_depth; ๐Ÿ”’
use foundry_wallets::wallet_browser::signer::BrowserSigner; ๐Ÿ”’
use futures::future::join_all; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use yansi::Paint; ๐Ÿ”’

Structsยง

ExecutedState
State after the script has been executed.
ExecutionArtifacts
Container for data being collected after execution.
ExecutionData
Container for data we need for execution which can only be obtained after linking stage.
LinkedState
State after linking, contains the linked build data along with library addresses and optional array of libraries that need to be predeployed.
PreExecutionState
Same as LinkedState, but also contains ExecutionData.
RpcData
Container for information about RPC-endpoints used during script execution.

Functionsยง

build_trace_decoder_for_context ๐Ÿ”’
Builds a trace decoder for the exact execution context of a script runner.