snowbridge_ethereum/
lib.rs1#![cfg_attr(not(feature = "std"), no_std)]
4
5pub mod header;
6pub mod log;
7pub mod mpt;
8pub mod receipt;
9
10pub use ethereum_types::{Address, H160, H256, H64, U256};
11
12pub use header::{Bloom, Header, HeaderId};
13pub use log::Log;
14pub use receipt::Receipt;
15
16#[derive(Debug)]
17pub enum DecodeError {
18 InvalidRLP(rlp::DecoderError),
20 InvalidABI(ethabi::Error),
22 InvalidPayload,
24}
25
26impl From<rlp::DecoderError> for DecodeError {
27 fn from(err: rlp::DecoderError) -> Self {
28 DecodeError::InvalidRLP(err)
29 }
30}
31
32impl From<ethabi::Error> for DecodeError {
33 fn from(err: ethabi::Error) -> Self {
34 DecodeError::InvalidABI(err)
35 }
36}