2017-01-25 18:51:41 +01:00
|
|
|
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
|
2016-02-05 13:40:41 +01:00
|
|
|
// This file is part of Parity.
|
|
|
|
|
|
|
|
// Parity is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// Parity is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2016-01-19 17:02:01 +01:00
|
|
|
#![warn(missing_docs)]
|
2016-07-26 20:31:25 +02:00
|
|
|
#![cfg_attr(feature="benches", feature(test))]
|
2016-01-19 11:10:38 +01:00
|
|
|
|
2016-02-02 15:29:53 +01:00
|
|
|
//! Ethcore library
|
2015-12-22 22:19:50 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! ### Rust version:
|
2015-12-05 19:44:43 +01:00
|
|
|
//! - nightly
|
|
|
|
//!
|
|
|
|
//! ### Supported platforms:
|
|
|
|
//! - OSX
|
2016-02-02 15:29:53 +01:00
|
|
|
//! - Linux
|
2015-12-22 22:19:50 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! ### Building:
|
2015-12-05 19:44:43 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! - Ubuntu 14.04 and later:
|
2015-12-22 22:19:50 +01:00
|
|
|
//!
|
2015-12-08 16:31:36 +01:00
|
|
|
//! ```bash
|
2015-12-05 19:44:43 +01:00
|
|
|
//!
|
2017-05-09 10:34:24 +02:00
|
|
|
//! # install rustup
|
|
|
|
//! curl https://sh.rustup.rs -sSf | sh
|
2015-12-22 22:19:50 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! # download and build parity
|
2017-03-29 15:17:27 +02:00
|
|
|
//! git clone https://github.com/paritytech/parity
|
2016-02-02 15:29:53 +01:00
|
|
|
//! cd parity
|
|
|
|
//! cargo build --release
|
|
|
|
//! ```
|
2016-02-15 00:51:50 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! - OSX:
|
2015-12-22 22:19:50 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! ```bash
|
2017-05-09 10:34:24 +02:00
|
|
|
//! # install rocksdb && rustup
|
2016-02-02 15:29:53 +01:00
|
|
|
//! brew update
|
2017-05-09 10:34:24 +02:00
|
|
|
//! curl https://sh.rustup.rs -sSf | sh
|
2015-12-22 22:19:50 +01:00
|
|
|
//!
|
2016-02-02 15:29:53 +01:00
|
|
|
//! # download and build parity
|
2017-03-29 15:17:27 +02:00
|
|
|
//! git clone https://github.com/paritytech/parity
|
2016-02-02 15:29:53 +01:00
|
|
|
//! cd parity
|
|
|
|
//! cargo build --release
|
|
|
|
//! ```
|
|
|
|
|
2018-04-19 11:52:54 +02:00
|
|
|
// Recursion limit required because of
|
|
|
|
// error_chain foreign_links.
|
|
|
|
#![recursion_limit="128"]
|
|
|
|
|
2018-03-12 21:15:55 +01:00
|
|
|
extern crate bloomchain;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate bn;
|
|
|
|
extern crate byteorder;
|
|
|
|
extern crate crossbeam;
|
2017-07-12 13:09:17 +02:00
|
|
|
extern crate common_types as types;
|
2016-01-08 00:26:52 +01:00
|
|
|
extern crate crypto;
|
2016-06-29 20:04:52 +02:00
|
|
|
extern crate ethash;
|
2016-10-03 12:02:43 +02:00
|
|
|
extern crate ethcore_bloom_journal as bloom_journal;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate ethcore_io as io;
|
2017-09-06 20:47:45 +02:00
|
|
|
extern crate ethcore_bytes as bytes;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate ethcore_logger;
|
2018-01-11 17:49:10 +01:00
|
|
|
extern crate ethcore_miner;
|
2017-01-25 11:03:36 +01:00
|
|
|
extern crate ethcore_stratum;
|
2018-01-11 17:49:10 +01:00
|
|
|
extern crate ethcore_transaction as transaction;
|
2018-01-10 13:35:18 +01:00
|
|
|
extern crate ethereum_types;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate ethjson;
|
|
|
|
extern crate ethkey;
|
2017-02-10 01:07:06 +01:00
|
|
|
extern crate hardware_wallet;
|
2017-09-06 20:47:45 +02:00
|
|
|
extern crate hashdb;
|
2017-03-24 14:02:04 +01:00
|
|
|
extern crate itertools;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate lru_cache;
|
|
|
|
extern crate num_cpus;
|
|
|
|
extern crate num;
|
2017-09-26 14:19:08 +02:00
|
|
|
extern crate parity_machine;
|
2017-09-02 20:09:13 +02:00
|
|
|
extern crate parking_lot;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate rand;
|
2017-09-10 18:03:35 +02:00
|
|
|
extern crate rayon;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate rlp;
|
2018-02-23 10:12:52 +01:00
|
|
|
extern crate rlp_compress;
|
2017-11-10 19:04:55 +01:00
|
|
|
extern crate keccak_hash as hash;
|
2017-08-30 16:04:47 +02:00
|
|
|
extern crate heapsize;
|
2017-09-06 20:47:45 +02:00
|
|
|
extern crate memorydb;
|
2017-09-12 19:23:02 +02:00
|
|
|
extern crate patricia_trie as trie;
|
2017-09-03 09:11:14 +02:00
|
|
|
extern crate triehash;
|
2017-09-01 16:57:57 +02:00
|
|
|
extern crate ansi_term;
|
2017-09-05 12:14:03 +02:00
|
|
|
extern crate unexpected;
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate kvdb;
|
2017-10-12 15:36:27 +02:00
|
|
|
extern crate kvdb_memorydb;
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate util_error;
|
|
|
|
extern crate snappy;
|
2017-08-20 06:01:46 +02:00
|
|
|
|
2018-02-09 09:32:06 +01:00
|
|
|
extern crate ethabi;
|
2017-07-06 11:26:14 +02:00
|
|
|
extern crate rustc_hex;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate stats;
|
2018-01-19 13:46:31 +01:00
|
|
|
extern crate stop_guard;
|
2017-07-29 17:12:07 +02:00
|
|
|
extern crate using_queue;
|
2017-08-01 12:37:57 +02:00
|
|
|
extern crate vm;
|
|
|
|
extern crate wasm;
|
2017-10-15 13:40:00 +02:00
|
|
|
extern crate memory_cache;
|
2017-10-17 06:20:24 +02:00
|
|
|
extern crate journaldb;
|
2018-03-01 19:53:15 +01:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate tempdir;
|
2016-09-01 13:36:32 +02:00
|
|
|
|
|
|
|
#[macro_use]
|
2018-04-13 17:34:27 +02:00
|
|
|
extern crate ethabi_derive;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate ethabi_contract;
|
2016-09-01 13:36:32 +02:00
|
|
|
#[macro_use]
|
2018-04-19 11:52:54 +02:00
|
|
|
extern crate error_chain;
|
|
|
|
#[macro_use]
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate log;
|
2016-09-01 13:36:32 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
2018-02-23 19:49:08 +01:00
|
|
|
#[macro_use]
|
2018-04-13 17:34:27 +02:00
|
|
|
extern crate macros;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate rlp_derive;
|
|
|
|
#[macro_use]
|
2018-02-23 19:49:08 +01:00
|
|
|
extern crate trace_time;
|
2018-04-13 17:34:27 +02:00
|
|
|
|
2017-07-12 13:09:17 +02:00
|
|
|
#[cfg_attr(test, macro_use)]
|
|
|
|
extern crate evm;
|
2016-07-09 11:23:06 +02:00
|
|
|
|
2016-09-01 13:36:32 +02:00
|
|
|
pub extern crate ethstore;
|
2016-01-23 23:53:20 +01:00
|
|
|
|
2018-04-16 15:52:12 +02:00
|
|
|
#[macro_use]
|
|
|
|
pub mod views;
|
|
|
|
|
2018-04-13 21:14:53 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate kvdb_rocksdb;
|
|
|
|
|
2016-06-29 14:46:29 +02:00
|
|
|
pub mod account_provider;
|
2016-02-02 15:29:53 +01:00
|
|
|
pub mod block;
|
|
|
|
pub mod client;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod db;
|
|
|
|
pub mod encoded;
|
|
|
|
pub mod engines;
|
2016-01-10 14:05:39 +01:00
|
|
|
pub mod error;
|
2016-02-02 15:29:53 +01:00
|
|
|
pub mod ethereum;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod executed;
|
2018-04-09 16:14:33 +02:00
|
|
|
pub mod executive;
|
2015-12-20 13:16:12 +01:00
|
|
|
pub mod header;
|
2017-09-26 14:19:08 +02:00
|
|
|
pub mod machine;
|
2016-05-31 19:52:53 +02:00
|
|
|
pub mod miner;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod pod_state;
|
2016-06-13 20:00:00 +02:00
|
|
|
pub mod snapshot;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod spec;
|
2017-02-21 12:35:21 +01:00
|
|
|
pub mod state;
|
2018-01-17 22:11:13 +01:00
|
|
|
pub mod state_db;
|
2018-04-09 16:14:33 +02:00
|
|
|
// Test helpers made public for usage outside ethcore
|
|
|
|
pub mod test_helpers;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod trace;
|
|
|
|
pub mod verification;
|
2016-01-09 17:15:55 +01:00
|
|
|
|
2016-07-31 00:19:27 +02:00
|
|
|
mod cache_manager;
|
2018-03-12 21:15:55 +01:00
|
|
|
mod blooms;
|
2016-02-02 15:29:53 +01:00
|
|
|
mod pod_account;
|
2016-02-05 01:49:06 +01:00
|
|
|
mod account_db;
|
2016-02-02 15:29:53 +01:00
|
|
|
mod builtin;
|
|
|
|
mod externalities;
|
2016-02-25 14:09:39 +01:00
|
|
|
mod blockchain;
|
2016-08-24 16:53:36 +02:00
|
|
|
mod factory;
|
2017-09-05 11:39:50 +02:00
|
|
|
mod tx_filter;
|
2016-01-12 16:20:29 +01:00
|
|
|
|
2016-02-15 00:51:50 +01:00
|
|
|
#[cfg(test)]
|
2016-02-02 22:50:41 +01:00
|
|
|
mod tests;
|
|
|
|
#[cfg(test)]
|
2016-02-15 00:51:50 +01:00
|
|
|
#[cfg(feature="json-tests")]
|
2016-02-02 22:50:41 +01:00
|
|
|
mod json_tests;
|
2018-04-13 21:14:53 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
mod test_helpers_internal;
|
2016-05-05 20:20:34 +02:00
|
|
|
|
|
|
|
pub use types::*;
|
2016-06-29 14:46:29 +02:00
|
|
|
pub use executive::contract_address;
|
2017-04-19 14:30:00 +02:00
|
|
|
pub use evm::CreateContractAddress;
|