The decode pipeline needs a shared context object, network, RPC URL, verbosity, and output format, passed through from the CLI into every analyzer. Without it, analyzers either hardcode values or cannot access runtime config.
- Define a
DecodeContext struct with fields for network, RPC URL, verbosity level, and output format
- Implement a builder pattern so the CLI can construct the context from parsed arguments and pass it down
Expectations: Every analyzer in the decode pipeline receives its configuration through DecodeContext with no global state or hardcoded values.
The decode pipeline needs a shared context object, network, RPC URL, verbosity, and output format, passed through from the CLI into every analyzer. Without it, analyzers either hardcode values or cannot access runtime config.
DecodeContextstruct with fields for network, RPC URL, verbosity level, and output formatExpectations: Every analyzer in the decode pipeline receives its configuration through
DecodeContextwith no global state or hardcoded values.