mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 21:31:02 +00:00
2ab3f03f0b
Removes the `bridges/snowbridge/parachain` directory and moves everything up to under `snowbridge` directly. We are cleaning up our local dev env after merging our crates into the polkadot-sdk. --------- Co-authored-by: claravanstaden <Cats 4 life!>
37 lines
806 B
Rust
37 lines
806 B
Rust
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
|
#![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 {
|
|
// Unexpected RLP data
|
|
InvalidRLP(rlp::DecoderError),
|
|
// Data does not match expected ABI
|
|
InvalidABI(ethabi::Error),
|
|
// Invalid message payload
|
|
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)
|
|
}
|
|
}
|