Skip to main content

Module debug

Module debug 

Source

Re-exportsยง

use crate::CallTraceNode; ๐Ÿ”’
use alloy_dyn_abi::DynSolType; ๐Ÿ”’
use alloy_dyn_abi::DynSolValue; ๐Ÿ”’
use alloy_dyn_abi::Specifier; ๐Ÿ”’
use alloy_dyn_abi::parser::Parameters; ๐Ÿ”’
use alloy_dyn_abi::parser::Storage; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use foundry_common::fmt::format_token; ๐Ÿ”’
use foundry_compilers::artifacts::sourcemap::Jump; ๐Ÿ”’
use foundry_compilers::artifacts::sourcemap::SourceElement; ๐Ÿ”’
use revm::bytecode::opcode::OpCode; ๐Ÿ”’
use revm_inspectors::tracing::types::CallTraceStep; ๐Ÿ”’
use revm_inspectors::tracing::types::DecodedInternalCall; ๐Ÿ”’
use revm_inspectors::tracing::types::DecodedTraceStep; ๐Ÿ”’

Modulesยง

recording ๐Ÿ”’
Debug steps recorded straight into a SolDB step table.
sources ๐Ÿ”’

Structsยง

ArtifactData
ContractSources
Container with artifacts data useful for identifying individual execution steps.
DebugRecording
The steps that one inspector stack recorded for its call trace arena.
DebugStepSink
The step table that the debug recorders of one session append to, in execution order.
DebugStepsWalker ๐Ÿ”’
Walks through the CallTraceSteps attempting to match JUMPs to internal functions.
DebugTraceIdentifier
RecordedFrame
The steps that one call or creation spans, its subcalls included.
SourceData
StepConverter
Converts the state of each step into SolDBโ€™s form, sharing the buffers of unchanged steps.
StepStorage
The storage slots that one step touches, in SolDBโ€™s form.

Functionsยง

canonical_function_signature ๐Ÿ”’
decode_from_calldata ๐Ÿ”’
decode_from_memory ๐Ÿ”’
Decodes given [DynSolType] from memory.
decode_parameter ๐Ÿ”’
decode_step_parameters
Given [Parameters] and CallTraceStep, tries to decode parameters by using stack, memory, and call data.
function_signature
Formats an ABI-style function signature from a name and canonical parameter types.
internal_function_identifier ๐Ÿ”’
memory_range ๐Ÿ”’
parse_function_from_loc ๐Ÿ”’
Tries to parse the function name from the source code and detect the contract name which contains the given function.
parse_types ๐Ÿ”’
Parses function input and output types into [Parameters].
quantity
Formats value as a JSON-RPC quantity.
source_span ๐Ÿ”’
stack_slots ๐Ÿ”’