2018-06-04 10:19:50 +02:00
|
|
|
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
|
2016-03-10 11:32:10 +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/>.
|
|
|
|
|
|
|
|
//! Blockchain database client.
|
|
|
|
|
2017-05-17 12:41:33 +02:00
|
|
|
mod ancient_import;
|
2018-09-08 04:04:28 +02:00
|
|
|
mod bad_blocks;
|
2018-03-13 11:49:57 +01:00
|
|
|
mod client;
|
2016-03-10 11:32:10 +01:00
|
|
|
mod config;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2017-05-26 11:06:48 +02:00
|
|
|
mod evm_test_client;
|
2018-03-13 11:49:57 +01:00
|
|
|
mod io_message;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2016-03-10 20:27:50 +01:00
|
|
|
mod test_client;
|
2016-04-30 17:41:24 +02:00
|
|
|
mod trace;
|
2016-03-10 11:32:10 +01:00
|
|
|
|
|
|
|
pub use self::client::*;
|
2016-12-10 23:58:39 +01:00
|
|
|
pub use self::config::{Mode, ClientConfig, DatabaseCompactionProfile, BlockChainConfig, VMType};
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2017-08-28 14:25:16 +02:00
|
|
|
pub use self::evm_test_client::{EvmTestClient, EvmTestError, TransactResult};
|
2018-03-13 11:49:57 +01:00
|
|
|
pub use self::io_message::ClientIoMessage;
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2016-03-10 20:27:50 +01:00
|
|
|
pub use self::test_client::{TestBlockChainClient, EachBlockWith};
|
2018-12-19 10:24:14 +01:00
|
|
|
pub use self::chain_notify::{ChainNotify, NewBlocks, ChainRoute, ChainRouteType, ChainMessageType};
|
2018-03-03 18:42:13 +01:00
|
|
|
pub use self::traits::{
|
|
|
|
Nonce, Balance, ChainInfo, BlockInfo, ReopenBlock, PrepareOpenBlock, CallContract, TransactionInfo, RegistryInfo, ScheduleInfo, ImportSealedBlock, BroadcastProposalBlock, ImportBlock,
|
2018-09-08 04:04:28 +02:00
|
|
|
StateOrBlock, StateClient, Call, EngineInfo, AccountData, BlockChain, BlockProducer, SealedBlockImporter, BadBlocks,
|
2018-03-03 18:42:13 +01:00
|
|
|
};
|
|
|
|
pub use state::StateInfo;
|
2018-05-09 08:49:34 +02:00
|
|
|
pub use self::traits::{BlockChainClient, EngineClient, ProvingBlockChainClient, IoClient};
|
2016-11-09 23:25:54 +01:00
|
|
|
|
|
|
|
pub use types::ids::*;
|
2016-07-07 09:39:32 +02:00
|
|
|
pub use types::trace_filter::Filter as TraceFilter;
|
2016-11-09 23:25:54 +01:00
|
|
|
pub use types::pruning_info::PruningInfo;
|
|
|
|
pub use types::call_analytics::CallAnalytics;
|
|
|
|
|
2016-04-28 21:47:44 +02:00
|
|
|
pub use executive::{Executed, Executive, TransactOptions};
|
2017-08-01 12:37:57 +02:00
|
|
|
pub use vm::{LastHashes, EnvInfo};
|
2016-03-10 11:32:10 +01:00
|
|
|
|
2018-09-24 12:28:54 +02:00
|
|
|
pub use error::TransactionImportError;
|
2016-10-24 15:09:13 +02:00
|
|
|
pub use verification::VerifierType;
|
2016-10-05 19:42:57 +02:00
|
|
|
|
2017-10-16 17:50:25 +02:00
|
|
|
mod traits;
|
2016-07-16 15:51:06 +02:00
|
|
|
|
2017-10-16 17:50:25 +02:00
|
|
|
mod chain_notify;
|
2018-04-09 16:14:33 +02:00
|
|
|
mod private_notify;
|