#![allow(clippy::module_inception)]
#![warn(missing_docs)]
mod constructor;
mod contract;
mod decoder;
mod encoder;
mod errors;
mod event;
mod event_param;
mod filter;
mod function;
mod log;
mod operation;
mod param;
pub mod param_type;
mod signature;
mod state_mutability;
pub mod token;
mod tuple_param;
mod util;
#[cfg(test)]
mod tests;
pub use crate::{
constructor::Constructor,
contract::{Contract, Events, Functions},
decoder::decode,
encoder::encode,
errors::{Error, Result},
event::Event,
event_param::EventParam,
filter::{RawTopicFilter, Topic, TopicFilter},
function::Function,
log::{Log, LogFilter, LogParam, ParseLog, RawLog},
param::Param,
param_type::ParamType,
state_mutability::StateMutability,
token::Token,
tuple_param::TupleParam,
};
pub type Word = [u8; 32];
pub type Address = ethereum_types::Address;
pub type FixedBytes = Vec<u8>;
pub type Bytes = Vec<u8>;
pub type Int = ethereum_types::U256;
pub type Uint = ethereum_types::U256;
pub type Hash = ethereum_types::H256;
pub trait FunctionOutputDecoder {
type Output;
fn decode(&self, _: &[u8]) -> Result<Self::Output>;
}