Skip to main content

Module error

Module error 

Source
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§

DecodedTempoPrecompileError
A decoded precompile error together with the raw revert bytes.

Enums§

TempoPrecompileError
Top-level error type for all Tempo precompile operations

Statics§

ERROR_REGISTRY
Global lazily-initialized registry of all Tempo precompile error decoders.

Traits§

IntoPrecompileResult
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 DecodedTempoPrecompileError using the global ERROR_REGISTRY, returning None if the data is shorter than 4 bytes or the selector is unrecognized.
error_decoder_registry
Builds a TempoPrecompileErrorRegistry mapping every known error selector to its decoder.

Type Aliases§

Result
Result type alias for Tempo precompile operations
TempoPrecompileErrorRegistry
Maps ABI error selectors to their decoder functions.