Expand description
Unified error handling for Tempo precompiles.
Provides TempoPrecompileError — the top-level error enum — along with an
ABI-selector-based decoder registry for mapping raw revert bytes back to
typed error variants.
Structs§
- Decoded
Tempo Precompile Error - A decoded precompile error together with the raw revert bytes.
Enums§
- Tempo
Precompile Error - Top-level error type for all Tempo precompile operations
Statics§
- ERROR_
REGISTRY - Global lazily-initialized registry of all Tempo precompile error decoders.
Traits§
- Into
Precompile Result - Extension trait to convert
Result<T, TempoPrecompileError>into a [PrecompileResult].
Functions§
- add_
errors_ to_ registry - Registers all ABI error selectors for a [
SolInterface] type into the decoder registry. - decode_
error - Decodes raw revert bytes into a typed
DecodedTempoPrecompileErrorusing the globalERROR_REGISTRY, returningNoneif the data is shorter than 4 bytes or the selector is unrecognized. - error_
decoder_ registry - Builds a
TempoPrecompileErrorRegistrymapping every known error selector to its decoder.
Type Aliases§
- Result
- Result type alias for Tempo precompile operations
- Tempo
Precompile Error Registry - Maps ABI error selectors to their decoder functions.