diff --git a/examples/providers/Cargo.toml b/examples/providers/Cargo.toml index 411034c2..77070624 100644 --- a/examples/providers/Cargo.toml +++ b/examples/providers/Cargo.toml @@ -12,6 +12,14 @@ repository.workspace = true [dev-dependencies] alloy.workspace = true +# Temp dependency fix to enable relevant features - Ref: https://github.com/alloy-rs/examples/pull/3#discussion_r1537842062 +alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [ + "pubsub", +] } +alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [ + "pubsub", + "ws", +] } eyre.workspace = true diff --git a/examples/providers/examples/ipc.rs b/examples/providers/examples/ipc.rs index f3558385..078a6b86 100644 --- a/examples/providers/examples/ipc.rs +++ b/examples/providers/examples/ipc.rs @@ -3,9 +3,9 @@ use alloy::{ network::Ethereum, providers::{Provider, RootProvider}, - rpc::client::RpcClient, transports::ipc::IpcConnect, }; +use alloy_rpc_client::RpcClient; use eyre::Result; #[tokio::main] diff --git a/examples/providers/examples/ws.rs b/examples/providers/examples/ws.rs index 660ac807..65991af3 100644 --- a/examples/providers/examples/ws.rs +++ b/examples/providers/examples/ws.rs @@ -1,11 +1,10 @@ //! Example of using the WS provider to subscribe to new blocks. -use alloy::{ - network::Ethereum, - providers::{Provider, RootProvider}, - rpc::client::RpcClient, - transports::ws::WsConnect, -}; +use alloy::network::Ethereum; +// Temp Fix +use alloy_provider::{Provider, RootProvider}; +use alloy_rpc_client::{RpcClient, WsConnect}; +// use eyre::Result; use futures_util::StreamExt; diff --git a/examples/providers/examples/ws_with_auth.rs b/examples/providers/examples/ws_with_auth.rs index c55d0a9b..b9456cfa 100644 --- a/examples/providers/examples/ws_with_auth.rs +++ b/examples/providers/examples/ws_with_auth.rs @@ -1,11 +1,10 @@ //! Example of using the WS provider with auth to subscribe to new blocks. -use alloy::{ - network::Ethereum, - providers::{Provider, RootProvider}, - rpc::client::RpcClient, - transports::Authorization, -}; +use alloy::{network::Ethereum, transports::Authorization}; +// Temp Fix +use alloy_provider::{Provider, RootProvider}; +use alloy_rpc_client::{RpcClient, WsConnect}; +// use eyre::Result; use futures_util::StreamExt;