pub fn arbos_from_input<S: StorageBackend, B: Burner>(
backend: &mut S,
burner: B,
) -> Result<ArbosState<'static, Detached, B>, ArbosStateError>Expand description
Open a detached ArbosState backed by any StorageBackend.
Reads only the version slot up front; all subsequent access goes through
backend. Intended for callers that have a storage view but no executor
state pointer — precompile handlers via EvmInternals, RPC tools reading
historical state through a StateProvider, etc. The version slot is read
up front so a mismatch between the pinned build and the stored ArbOS
version surfaces as ArbosStateError::UnsupportedVersion instead of
silently reading the wrong slot.