1#![cfg_attr(not(feature = "std"), no_std)]
10
11#[cfg(not(feature = "std"))]
12extern crate alloc;
13
14mod decoder;
15mod encoder;
16mod event;
17mod param;
18mod std;
19mod token;
20mod util;
21
22pub use crate::{
23 decoder::decode,
24 encoder::{encode, encode_function},
25 event::Event,
26 param::{Param, ParamKind},
27 token::Token,
28};
29
30#[derive(Debug)]
31pub enum Error {
32 InvalidName,
34 InvalidData
36}
37
38pub use ethereum_types::Address;
40
41pub type Word = [u8; 32];
43
44pub use ethereum_types::U256;
46
47pub use ethereum_types::H256;