2020-09-22 14:53:52 +02:00
|
|
|
// Copyright 2015-2020 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of OpenEthereum.
|
2016-02-23 18:51:29 +01:00
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is free software: you can redistribute it and/or modify
|
2016-02-23 18:51:29 +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-02-23 18:51:29 +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-02-23 18:51:29 +01:00
|
|
|
|
2016-08-08 17:25:15 +02:00
|
|
|
#[macro_use]
|
|
|
|
pub mod errors;
|
2016-09-23 19:42:33 +02:00
|
|
|
|
2016-10-20 23:36:18 +02:00
|
|
|
pub mod block_import;
|
2019-02-07 14:34:24 +01:00
|
|
|
pub mod deprecated;
|
2017-02-04 22:18:19 +01:00
|
|
|
pub mod dispatch;
|
2019-02-14 15:54:44 +01:00
|
|
|
#[cfg(any(test, feature = "accounts"))]
|
2019-02-07 14:34:24 +01:00
|
|
|
pub mod eip191;
|
|
|
|
#[cfg(any(test, feature = "accounts"))]
|
|
|
|
pub mod engine_signer;
|
|
|
|
pub mod external_signer;
|
2017-03-14 13:04:32 +01:00
|
|
|
pub mod fake_sign;
|
2017-11-01 11:23:18 +01:00
|
|
|
pub mod nonce;
|
2019-02-14 15:54:44 +01:00
|
|
|
#[cfg(any(test, feature = "accounts"))]
|
2017-05-05 15:57:29 +02:00
|
|
|
pub mod secretstore;
|
2016-09-23 19:42:33 +02:00
|
|
|
|
2017-02-04 22:18:19 +01:00
|
|
|
mod network_settings;
|
2016-02-23 18:51:29 +01:00
|
|
|
mod poll_filter;
|
2017-11-01 11:23:18 +01:00
|
|
|
mod poll_manager;
|
2016-07-06 11:23:29 +02:00
|
|
|
mod requests;
|
2020-08-05 06:08:03 +02:00
|
|
|
mod signature;
|
2017-05-17 16:20:41 +02:00
|
|
|
mod subscribers;
|
2017-05-06 13:24:18 +02:00
|
|
|
mod subscription_manager;
|
2018-10-02 21:02:48 +02:00
|
|
|
mod work;
|
2016-02-23 18:51:29 +01:00
|
|
|
|
2020-08-05 06:08:03 +02:00
|
|
|
pub use self::{
|
2020-08-13 18:25:19 +02:00
|
|
|
dispatch::{Dispatcher, FullDispatcher},
|
2020-08-05 06:08:03 +02:00
|
|
|
network_settings::NetworkSettings,
|
|
|
|
poll_filter::{limit_logs, PollFilter, SyncPollFilter},
|
|
|
|
poll_manager::PollManager,
|
|
|
|
requests::{
|
|
|
|
CallRequest, ConfirmationPayload, ConfirmationRequest, FilledTransactionRequest,
|
|
|
|
TransactionRequest,
|
|
|
|
},
|
|
|
|
signature::verify_signature,
|
|
|
|
subscribers::Subscribers,
|
|
|
|
subscription_manager::GenericPollManager,
|
|
|
|
work::submit_work_detail,
|
2017-01-30 21:08:36 +01:00
|
|
|
};
|
2017-05-24 12:24:07 +02:00
|
|
|
|
2017-09-21 14:52:44 +02:00
|
|
|
pub fn to_url(address: &Option<::Host>) -> Option<String> {
|
2020-08-05 06:08:03 +02:00
|
|
|
address.as_ref().map(|host| (**host).to_owned())
|
2017-05-24 12:24:07 +02:00
|
|
|
}
|