#![cfg_attr(not(feature = "std"), no_std)]
pub mod header;
pub mod log;
pub mod mpt;
pub mod receipt;
pub use ethereum_types::{Address, H160, H256, H64, U256};
pub use header::{Bloom, Header, HeaderId};
pub use log::Log;
pub use receipt::Receipt;
#[derive(Debug)]
pub enum DecodeError {
InvalidRLP(rlp::DecoderError),
InvalidABI(ethabi::Error),
InvalidPayload,
}
impl From<rlp::DecoderError> for DecodeError {
fn from(err: rlp::DecoderError) -> Self {
DecodeError::InvalidRLP(err)
}
}
impl From<ethabi::Error> for DecodeError {
fn from(err: ethabi::Error) -> Self {
DecodeError::InvalidABI(err)
}
}