2019-01-07 11:33:07 +01:00
|
|
|
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of Parity Ethereum.
|
2016-02-23 18:51:29 +01:00
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum 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.
|
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum 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
|
2019-01-07 11:33:07 +01:00
|
|
|
// along with Parity Ethereum. 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;
|
2017-02-04 22:18:19 +01:00
|
|
|
pub mod dispatch;
|
2017-03-14 13:04:32 +01:00
|
|
|
pub mod fake_sign;
|
2017-11-01 11:23:18 +01:00
|
|
|
pub mod ipfs;
|
2017-04-03 11:37:07 +02:00
|
|
|
pub mod light_fetch;
|
2017-11-01 11:23:18 +01:00
|
|
|
pub mod nonce;
|
2017-03-22 07:02:14 +01:00
|
|
|
pub mod oneshot;
|
2017-05-05 15:57:29 +02:00
|
|
|
pub mod secretstore;
|
2018-11-14 09:02:40 +01:00
|
|
|
pub mod eip191;
|
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;
|
2016-09-21 12:44:49 +02:00
|
|
|
mod signer;
|
2016-06-01 19:37:34 +02:00
|
|
|
mod signing_queue;
|
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;
|
2018-11-28 12:18:43 +01:00
|
|
|
mod signature;
|
2016-02-23 18:51:29 +01:00
|
|
|
|
2018-10-27 09:38:35 +02:00
|
|
|
pub use self::dispatch::{Dispatcher, FullDispatcher, LightDispatcher};
|
2018-11-28 12:18:43 +01:00
|
|
|
pub use self::signature::verify_signature;
|
2017-02-04 22:18:19 +01:00
|
|
|
pub use self::network_settings::NetworkSettings;
|
2016-03-02 05:46:38 +01:00
|
|
|
pub use self::poll_manager::PollManager;
|
2018-07-04 17:37:55 +02:00
|
|
|
pub use self::poll_filter::{PollFilter, SyncPollFilter, limit_logs};
|
2017-01-30 21:08:36 +01:00
|
|
|
pub use self::requests::{
|
|
|
|
TransactionRequest, FilledTransactionRequest, ConfirmationRequest, ConfirmationPayload, CallRequest,
|
|
|
|
};
|
|
|
|
pub use self::signing_queue::{
|
2018-06-12 15:21:30 +02:00
|
|
|
ConfirmationsQueue, ConfirmationReceiver, ConfirmationResult, ConfirmationSender,
|
2017-10-17 14:50:53 +02:00
|
|
|
SigningQueue, QueueEvent, DefaultAccount,
|
2017-03-16 13:15:56 +01:00
|
|
|
QUEUE_LIMIT as SIGNING_QUEUE_LIMIT,
|
2017-01-30 21:08:36 +01:00
|
|
|
};
|
2016-09-21 12:44:49 +02:00
|
|
|
pub use self::signer::SignerService;
|
2017-05-17 16:20:41 +02:00
|
|
|
pub use self::subscribers::Subscribers;
|
2017-05-06 13:24:18 +02:00
|
|
|
pub use self::subscription_manager::GenericPollManager;
|
2018-10-02 21:02:48 +02:00
|
|
|
pub use self::work::submit_work_detail;
|
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> {
|
|
|
|
address.as_ref().map(|host| (**host).to_owned())
|
2017-05-24 12:24:07 +02:00
|
|
|
}
|