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
|
|
|
|
//! ```
|
|
|
|
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate bloomchain;
|
|
|
|
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_devtools as devtools;
|
|
|
|
extern crate ethcore_io as io;
|
2017-09-04 16:36:49 +02:00
|
|
|
extern crate ethcore_bigint as bigint;
|
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;
|
2017-01-25 11:03:36 +01:00
|
|
|
extern crate ethcore_stratum;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate ethjson;
|
|
|
|
extern crate ethkey;
|
|
|
|
extern crate futures;
|
2017-02-10 01:07:06 +01:00
|
|
|
extern crate hardware_wallet;
|
2017-09-06 20:47:45 +02:00
|
|
|
extern crate hashdb;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate hyper;
|
2017-03-24 14:02:04 +01:00
|
|
|
extern crate itertools;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate linked_hash_map;
|
|
|
|
extern crate lru_cache;
|
|
|
|
extern crate native_contracts;
|
|
|
|
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-07-16 18:22:45 +02:00
|
|
|
extern crate price_info;
|
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-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-02 13:14:21 +02:00
|
|
|
extern crate semantic_version;
|
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_rocksdb;
|
|
|
|
extern crate kvdb_memorydb;
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate util_error;
|
|
|
|
extern crate snappy;
|
|
|
|
extern crate migration;
|
2017-08-20 06:01:46 +02:00
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate rlp_derive;
|
2017-07-06 11:26:14 +02:00
|
|
|
extern crate rustc_hex;
|
2017-04-03 09:40:18 +02:00
|
|
|
extern crate stats;
|
|
|
|
extern crate time;
|
|
|
|
extern crate transient_hashmap;
|
2017-07-29 17:12:07 +02:00
|
|
|
extern crate using_queue;
|
|
|
|
extern crate table;
|
|
|
|
extern crate bloomable;
|
2017-08-01 12:37:57 +02:00
|
|
|
extern crate vm;
|
|
|
|
extern crate wasm;
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate ethcore_util as util;
|
2017-10-15 13:40:00 +02:00
|
|
|
extern crate memory_cache;
|
2017-10-17 06:20:24 +02:00
|
|
|
extern crate journaldb;
|
2016-09-01 13:36:32 +02:00
|
|
|
|
|
|
|
#[macro_use]
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate macros;
|
2016-09-01 13:36:32 +02:00
|
|
|
#[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;
|
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
|
|
|
#[cfg(feature = "jit" )]
|
|
|
|
extern crate evmjit;
|
|
|
|
|
|
|
|
pub extern crate ethstore;
|
2016-01-23 23:53:20 +01:00
|
|
|
|
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;
|
2015-12-20 13:16:12 +01:00
|
|
|
pub mod header;
|
2017-09-26 14:19:08 +02:00
|
|
|
pub mod machine;
|
2016-05-26 18:24:51 +02:00
|
|
|
pub mod migrations;
|
2016-05-31 19:52:53 +02:00
|
|
|
pub mod miner;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod pod_state;
|
|
|
|
pub mod service;
|
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;
|
2017-09-02 10:54:39 +02:00
|
|
|
pub mod timer;
|
2017-07-12 13:09:17 +02:00
|
|
|
pub mod trace;
|
|
|
|
pub mod transaction;
|
|
|
|
pub mod verification;
|
|
|
|
pub mod views;
|
2016-01-09 17:15:55 +01:00
|
|
|
|
2016-07-31 00:19:27 +02:00
|
|
|
mod cache_manager;
|
2016-05-26 18:24:51 +02:00
|
|
|
mod blooms;
|
2016-02-02 15:29:53 +01:00
|
|
|
mod basic_types;
|
|
|
|
mod pod_account;
|
2016-09-27 18:02:11 +02:00
|
|
|
mod state_db;
|
2016-02-05 01:49:06 +01:00
|
|
|
mod account_db;
|
2016-02-02 15:29:53 +01:00
|
|
|
mod builtin;
|
|
|
|
mod executive;
|
|
|
|
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;
|
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;
|