2019-01-07 11:33:07 +01:00
|
|
|
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of Parity Ethereum.
|
2016-02-05 13:40:41 +01:00
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is free software: you can redistribute it and/or modify
|
2016-02-05 13:40:41 +01:00
|
|
|
// 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.
|
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is distributed in the hope that it will be useful,
|
2016-02-05 13:40:41 +01:00
|
|
|
// 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
|
2019-01-07 11:33:07 +01:00
|
|
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
2016-02-05 13:40:41 +01:00
|
|
|
|
2019-01-04 14:05:46 +01:00
|
|
|
#![warn(missing_docs, unused_extern_crates)]
|
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
|
2018-07-23 13:58:50 +02:00
|
|
|
//! git clone https://github.com/paritytech/parity-ethereum
|
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
|
2018-07-23 13:58:50 +02:00
|
|
|
//! git clone https://github.com/paritytech/parity-ethereum
|
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"]
|
|
|
|
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ansi_term;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate bn;
|
|
|
|
extern crate byteorder;
|
2017-07-12 13:09:17 +02:00
|
|
|
extern crate common_types as types;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate crossbeam;
|
|
|
|
extern crate ethabi;
|
2016-06-29 20:04:52 +02:00
|
|
|
extern crate ethash;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ethcore_blockchain as blockchain;
|
2016-10-03 12:02:43 +02:00
|
|
|
extern crate ethcore_bloom_journal as bloom_journal;
|
2019-01-17 16:43:08 +01:00
|
|
|
extern crate ethcore_call_contract as call_contract;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ethcore_db as db;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate ethcore_io as io;
|
2018-01-11 17:49:10 +01:00
|
|
|
extern crate ethcore_miner;
|
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-09-06 20:47:45 +02:00
|
|
|
extern crate hashdb;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate heapsize;
|
2017-03-24 14:02:04 +01:00
|
|
|
extern crate itertools;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate journaldb;
|
|
|
|
extern crate keccak_hash as hash;
|
|
|
|
extern crate keccak_hasher;
|
2018-06-20 15:13:07 +02:00
|
|
|
extern crate kvdb;
|
|
|
|
extern crate kvdb_memorydb;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate len_caching_lock;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate lru_cache;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate memory_cache;
|
|
|
|
extern crate memorydb;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate num;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate num_cpus;
|
|
|
|
extern crate parity_bytes as bytes;
|
|
|
|
extern crate parity_crypto;
|
2017-09-26 14:19:08 +02:00
|
|
|
extern crate parity_machine;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate parity_snappy as snappy;
|
2017-09-02 20:09:13 +02:00
|
|
|
extern crate parking_lot;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate patricia_trie as trie;
|
|
|
|
extern crate patricia_trie_ethereum as ethtrie;
|
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;
|
2017-07-06 11:26:14 +02:00
|
|
|
extern crate rustc_hex;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate serde;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate stats;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate triehash_ethereum as triehash;
|
|
|
|
extern crate unexpected;
|
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;
|
2019-01-04 14:05:46 +01:00
|
|
|
|
2019-02-07 14:34:24 +01:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate ethcore_accounts as accounts;
|
2019-01-04 14:05:46 +01:00
|
|
|
#[cfg(feature = "stratum")]
|
|
|
|
extern crate ethcore_stratum;
|
2019-01-08 15:07:20 +01:00
|
|
|
#[cfg(any(test, feature = "tempdir"))]
|
2018-03-01 19:53:15 +01:00
|
|
|
extern crate tempdir;
|
2019-01-08 15:07:20 +01:00
|
|
|
#[cfg(any(test, feature = "kvdb-rocksdb"))]
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate kvdb_rocksdb;
|
2019-01-08 15:07:20 +01:00
|
|
|
#[cfg(any(test, feature = "blooms-db"))]
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate blooms_db;
|
2019-02-07 14:34:24 +01:00
|
|
|
#[cfg(any(test, feature = "env_logger"))]
|
|
|
|
extern crate env_logger;
|
|
|
|
#[cfg(test)]
|
|
|
|
extern crate rlp_compress;
|
2018-06-26 09:03:38 +02:00
|
|
|
|
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-11-25 20:12:59 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
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-02-02 15:29:53 +01:00
|
|
|
pub mod block;
|
2018-07-20 15:06:11 +02:00
|
|
|
pub mod builtin;
|
2016-02-02 15:29:53 +01:00
|
|
|
pub mod client;
|
2017-07-12 13:09:17 +02:00
|
|
|
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;
|
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;
|
2018-09-27 17:17:23 +02:00
|
|
|
pub mod pod_account;
|
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;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod trace;
|
2019-01-04 14:05:46 +01:00
|
|
|
pub mod transaction_ext;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod verification;
|
2016-01-09 17:15:55 +01:00
|
|
|
|
2016-02-05 01:49:06 +01:00
|
|
|
mod account_db;
|
2016-02-02 15:29:53 +01:00
|
|
|
mod externalities;
|
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;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(feature = "json-tests")]
|
2018-06-25 11:21:45 +02:00
|
|
|
pub mod json_tests;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2018-06-04 15:58:44 +02:00
|
|
|
pub mod test_helpers;
|
2016-05-05 20:20:34 +02:00
|
|
|
|
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;
|
2018-11-25 20:12:59 +01:00
|
|
|
pub use trie::TrieSpec;
|