1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#![warn(missing_docs)]
#![cfg_attr(feature="nightly", feature(plugin))]
#![cfg_attr(feature="nightly", plugin(clippy))]
extern crate rustc_serialize;
extern crate serde;
extern crate serde_json;
extern crate tiny_keccak;
#[macro_use]
extern crate serde_derive;
pub mod spec;
pub mod token;
mod constructor;
mod contract;
mod decoder;
mod encoder;
mod error;
mod function;
mod event;
mod signature;
pub mod util;
pub use self::spec::Interface;
pub use self::constructor::Constructor;
pub use self::contract::Contract;
pub use self::token::Token;
pub use self::error::Error;
pub use self::encoder::Encoder;
pub use self::decoder::Decoder;
pub use self::function::Function;
pub use self::event::Event;
pub type Address = [u8; 20];
pub type Uint = [u8; 32];
pub type Int = [u8; 32];