2020-09-22 14:53:52 +02:00
|
|
|
// Copyright 2015-2020 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of OpenEthereum.
|
2016-03-10 11:32:10 +01:00
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is free software: you can redistribute it and/or modify
|
2016-03-10 11:32:10 +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.
|
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is distributed in the hope that it will be useful,
|
2016-03-10 11:32:10 +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
|
2020-09-22 14:53:52 +02:00
|
|
|
// along with OpenEthereum. If not, see <http://www.gnu.org/licenses/>.
|
2016-03-10 11:32:10 +01:00
|
|
|
|
|
|
|
//! 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"))]
|
2019-11-11 21:57:38 +01:00
|
|
|
pub mod test_client;
|
2016-04-30 17:41:24 +02:00
|
|
|
mod trace;
|
2016-03-10 11:32:10 +01:00
|
|
|
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2019-02-26 13:49:33 +01:00
|
|
|
pub use self::evm_test_client::{EvmTestClient, EvmTestError, TransactErr, TransactSuccess};
|
2018-06-05 11:28:35 +02:00
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
2020-08-05 06:08:03 +02:00
|
|
|
pub use self::test_client::{EachBlockWith, TestBlockChainClient};
|
|
|
|
pub use self::{
|
|
|
|
chain_notify::{ChainMessageType, ChainNotify, ChainRoute, ChainRouteType, NewBlocks},
|
|
|
|
client::*,
|
|
|
|
config::{BlockChainConfig, ClientConfig, DatabaseCompactionProfile, Mode, VMType},
|
|
|
|
io_message::ClientIoMessage,
|
|
|
|
traits::{
|
|
|
|
AccountData, BadBlocks, Balance, BlockChain, BlockChainClient, BlockChainReset, BlockInfo,
|
|
|
|
BlockProducer, BroadcastProposalBlock, Call, ChainInfo, EngineClient, EngineInfo,
|
|
|
|
ImportBlock, ImportExportBlocks, ImportSealedBlock, IoClient, Nonce, PrepareOpenBlock,
|
|
|
|
ProvingBlockChainClient, ReopenBlock, ScheduleInfo, SealedBlockImporter, StateClient,
|
|
|
|
StateOrBlock, TransactionInfo,
|
|
|
|
},
|
2018-03-03 18:42:13 +01:00
|
|
|
};
|
|
|
|
pub use state::StateInfo;
|
2016-11-09 23:25:54 +01:00
|
|
|
|
2020-08-05 06:08:03 +02:00
|
|
|
pub use types::{
|
|
|
|
call_analytics::CallAnalytics, ids::*, pruning_info::PruningInfo,
|
|
|
|
trace_filter::Filter as TraceFilter,
|
|
|
|
};
|
2016-11-09 23:25:54 +01:00
|
|
|
|
2016-04-28 21:47:44 +02:00
|
|
|
pub use executive::{Executed, Executive, TransactOptions};
|
2020-08-05 06:08:03 +02:00
|
|
|
pub use vm::{EnvInfo, LastHashes};
|
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
|
|
|
|
2019-09-12 18:43:53 +02:00
|
|
|
pub mod traits;
|
2016-07-16 15:51:06 +02:00
|
|
|
|
2017-10-16 17:50:25 +02:00
|
|
|
mod chain_notify;
|