10 lines
342 B
Rust
10 lines
342 B
Rust
|
use derive_more::From;
|
||
|
|
||
|
/// Use HTTP and WS providers.
|
||
|
// TODO: instead of an enum, I tried to use Box<dyn Provider>, but hit <https://github.com/gakonst/ethers-rs/issues/592>
|
||
|
#[derive(From)]
|
||
|
pub enum Web3Provider {
|
||
|
Http(ethers::providers::Provider<ethers::providers::Http>),
|
||
|
Ws(ethers::providers::Provider<ethers::providers::Ws>),
|
||
|
}
|