ethereum_types_solana/
lib.rs

1// Copyright 2020 Parity Technologies
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9#![cfg_attr(not(feature = "std"), no_std)]
10
11mod hash;
12mod uint;
13
14#[cfg(feature = "ethbloom")]
15pub use ethbloom::{Bloom, BloomRef, Input as BloomInput};
16pub use hash::{BigEndianHash, H128, H160, H256, H264, H32, H520, H64};
17pub use uint::{FromDecStrErr, FromStrRadixErr, FromStrRadixErrKind, U128, U256, U64};
18
19pub type Address = H160;
20pub type Secret = H256;
21pub type Signature = H520;
22
23/// Conditional compilation depending on whether ethereum-types is built with ethbloom support.
24#[cfg(feature = "ethbloom")]
25#[macro_export]
26macro_rules! if_ethbloom {
27    ($($tt:tt)*) => {
28        $($tt)*
29    };
30}
31
32#[cfg(not(feature = "ethbloom"))]
33#[macro_export]
34#[doc(hidden)]
35macro_rules! if_ethbloom {
36    ($($tt:tt)*) => {};
37}