chainerrors-core 0.1.0

Core types and traits for the ChainErrors blockchain error decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! chainerrors-core — foundation types and traits for the ChainErrors library.
//!
//! This crate defines:
//! - [`ErrorKind`] — the taxonomy of EVM error types
//! - [`DecodedError`] — the output of a successful decode
//! - [`ErrorContext`] — chain/tx metadata for a failed call
//! - [`ErrorDecoder`] — the decoder trait every chain implements
//! - [`ErrorSignatureRegistry`] — the trait for looking up error signatures

pub mod decoder;
pub mod registry;
pub mod types;

pub use decoder::ErrorDecoder;
pub use registry::{ErrorSignature, ErrorSignatureRegistry};
pub use types::{DecodedError, ErrorContext, ErrorKind, Severity};