Skip to main content

Crate hopper_manager

Crate hopper_manager 

Source
Expand description

§Hopper Manager

Schema-driven inspector library for Hopper programs.

The manager is an inspector, not an engine. It consumes the canonical runtime/layout/schema truth published by Hopper programs and returns human-readable reports. It never invents its own semantics, every byte, offset, and label comes from hopper_schema::ProgramManifest or the raw account bytes themselves.

§Design

This crate exposes pure functions that take a ProgramManifest plus some input and return a String or a structured report. They do no I/O, no argv parsing, no RPC calls, and no process::exit. Those concerns belong to the caller (typically hopper-cli or a custom tool).

§Modules

  • inspect, identify accounts, decode headers and fields
  • summary, render layouts, policies, events, fingerprint tables
  • analyze, compatibility verdicts, semantic diffs, migration plans

§Example

use hopper_manager as mgr;

let report = mgr::inspect::identify(&manifest, &raw_bytes)?;
println!("{}", report);

Re-exports§

pub use analyze::compatibility_report;
pub use analyze::field_diff_report;
pub use inspect::decode_account;
pub use inspect::header_report;
pub use inspect::identify_account;
pub use inspect::segment_map_report;
pub use summary::events_report;
pub use summary::fingerprints_report;
pub use summary::instruction_report;
pub use summary::layouts_report;
pub use summary::policies_report;
pub use summary::program_summary;

Modules§

analyze
Cross-version analysis: compatibility verdicts and semantic field diffs.
inspect
Header, segment, and field-level inspection of Hopper account bytes.
summary
Tabular summaries over a ProgramManifest.

Functions§

overview
One-stop human-readable overview of a program manifest.