arbos/util/
tracing_info.rs1use alloy_primitives::Address;
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5pub enum TracingScenario {
6 Transaction,
8 Precompile,
10 ArbOS,
12}
13
14#[derive(Debug, Clone)]
16pub struct TracingInfo {
17 pub scenario: TracingScenario,
18 pub from: Address,
19 pub to: Address,
20 pub depth: usize,
21}
22
23impl TracingInfo {
24 pub fn new(from: Address, to: Address, scenario: TracingScenario) -> Self {
25 Self {
26 scenario,
27 from,
28 to,
29 depth: 0,
30 }
31 }
32}