Skip to content

Commit

Permalink
fix(rpc-client): jsonrpsee dep
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Aug 25, 2024
1 parent fc0570e commit 506aa0d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ rustdoc-args = ["--cfg", "docsrs"]

[workspace.dependencies]
# Alloy
op-alloy-rpc-client = { version = "0.1.5", path = "crates/rpc-client" }
op-alloy-rpc-types = { version = "0.1.5", path = "crates/rpc-types" }
op-alloy-consensus = { version = "0.1.5", path = "crates/consensus" }

Expand All @@ -49,7 +50,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }

# rpc
jsonrpsee = "0.24"
jsonrpsee = { version = "0.24", features = ["macros", "jsonrpsee-core"] }
jsonrpsee-types = "0.24"

# misc
Expand Down
4 changes: 4 additions & 0 deletions crates/rpc-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ repository.workspace = true
exclude.workspace = true

[dependencies]
# Alloy
op-alloy-rpc-types.workspace = true
alloy-eips.workspace = true

# rpc
jsonrpsee.workspace = true
jsonrpsee-types.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions crates/rpc-client/src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! Rollup Node

use jsonrpsee::{core::RpcResult, proc_macros::rpc};
use alloy_eips::BlockNumberOrTag;
use op_alloy_rpc_types::sync::{OutputResponse, RollupConfig, SyncStatus};

/// Optimism specified rpc interface.
/// https://docs.optimism.io/builders/node-operators/json-rpc
Expand Down

0 comments on commit 506aa0d

Please sign in to comment.