Skip to main content

transaction_trace

Function transaction_trace 

Source
fn transaction_trace(
    arenas: &mut [CallTraceArena],
    recordings: Vec<DebugRecording>,
    breakpoints: &Breakpoints,
) -> Result<(TransactionTrace, BTreeMap<(Address, usize), Vec<(Range<usize>, u64)>>)>
Expand description

Converts arenas into a soldb trace: their steps in execution order, with each call and creation recorded at the steps it spans.

The steps are the ones recordings hold, one per arena, or the arenas’ own steps when recordings is empty. Also returns the steps that run each breakpoints location. The steps move out of arenas, so each one is dropped once converted.