2020-05-22 18:37:21 +00:00
|
|
|
//! ethers-rs
|
|
|
|
//!
|
|
|
|
//! ethers-rs is a port of [ethers-js](github.com/ethers-io/ethers.js) in Rust.
|
2020-05-24 15:55:46 +00:00
|
|
|
//!
|
|
|
|
//! # Quickstart
|
|
|
|
//!
|
|
|
|
//! ## Sending Ether
|
|
|
|
//!
|
|
|
|
//! ## Checking the state of the blockchain
|
|
|
|
//!
|
|
|
|
//! ## Deploying and interacting with a smart contract
|
|
|
|
//!
|
|
|
|
//! ## Watching on-chain events
|
|
|
|
//!
|
|
|
|
//! More examples can be found in the [`examples` directory of the
|
|
|
|
//! repositry](https://github.com/gakonst/ethers-rs)
|
2020-05-22 18:37:21 +00:00
|
|
|
|
2020-05-26 11:00:56 +00:00
|
|
|
#[cfg(feature = "contract")]
|
|
|
|
pub mod contract {
|
|
|
|
pub use ethers_contract::*;
|
|
|
|
}
|
2020-05-24 16:43:47 +00:00
|
|
|
|
2020-05-26 11:00:56 +00:00
|
|
|
#[cfg(feature = "providers")]
|
|
|
|
pub mod providers {
|
|
|
|
pub use ethers_providers::*;
|
|
|
|
}
|
2020-05-22 18:37:21 +00:00
|
|
|
|
2020-05-26 11:00:56 +00:00
|
|
|
#[cfg(feature = "signers")]
|
|
|
|
pub mod signers {
|
|
|
|
pub use ethers_signers::*;
|
|
|
|
}
|
2020-05-23 00:01:20 +00:00
|
|
|
|
2020-05-31 16:01:34 +00:00
|
|
|
#[cfg(feature = "core")]
|
|
|
|
pub mod core {
|
|
|
|
pub use ethers_core::*;
|
2020-05-26 11:00:56 +00:00
|
|
|
}
|
2020-05-31 16:20:08 +00:00
|
|
|
|
|
|
|
// Re-export ethers_core::utils
|
|
|
|
#[cfg(feature = "core")]
|
|
|
|
pub use ethers_core::utils;
|
|
|
|
|
|
|
|
// Re-export ethers_providers::networks
|
|
|
|
#[cfg(feature = "providers")]
|
|
|
|
pub use ethers_providers::networks;
|
|
|
|
|
|
|
|
/// Brings all types, contract, providers and signer imports into scope
|
|
|
|
pub mod prelude {
|
|
|
|
#[cfg(feature = "contract")]
|
|
|
|
pub use ethers_contract::*;
|
|
|
|
|
|
|
|
#[cfg(feature = "providers")]
|
|
|
|
pub use ethers_providers::*;
|
|
|
|
|
|
|
|
#[cfg(feature = "signers")]
|
|
|
|
pub use ethers_signers::*;
|
|
|
|
|
|
|
|
#[cfg(feature = "core")]
|
|
|
|
pub use ethers_core::types::*;
|
|
|
|
}
|