Skip to content

Commit

Permalink
chore(rpc): move OpEthApi traits into reth-optimism-rpc (#9581)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Jul 17, 2024
1 parent 89d0281 commit 0630621
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions crates/optimism/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,18 @@ jsonrpsee.workspace = true

# misc
thiserror.workspace = true
serde = { workspace = true, features = ["derive"] }

[dev-dependencies]
serde_json.workspace = true

[features]
client = [
"jsonrpsee/client",
"jsonrpsee/async-client",
"reth-rpc-eth-api/client"
]

optimism = [
"reth-chainspec/optimism",
"reth-evm-optimism/optimism",
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions crates/optimism/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
// The `optimism` feature must be enabled to use this crate.
#![cfg(feature = "optimism")]

pub mod api;
pub mod error;
pub mod eth;

pub use api::OpEthApiServer;
pub use error::OpEthApiError;
pub use eth::{receipt::op_receipt_fields, transaction::OptimismTxMeta, OpEthApi};
2 changes: 0 additions & 2 deletions crates/rpc/rpc-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ reth-network-peers.workspace = true

# misc
jsonrpsee = { workspace = true, features = ["server", "macros"] }
serde = { workspace = true, features = ["derive"] }

[dev-dependencies]
serde_json.workspace = true
Expand All @@ -32,4 +31,3 @@ client = [
"jsonrpsee/async-client",
"reth-rpc-eth-api/client"
]
optimism = ["reth-rpc-eth-api/optimism"]
1 change: 0 additions & 1 deletion crates/rpc/rpc-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mod ganache;
mod hardhat;
mod mev;
mod net;
mod optimism;
mod otterscan;
mod reth;
mod rpc;
Expand Down
1 change: 0 additions & 1 deletion crates/rpc/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ optimism = [
"reth-primitives/optimism",
"reth-rpc-types-compat/optimism",
"reth-provider/optimism",
"reth-rpc-api/optimism",
"reth-rpc-eth-api/optimism",
"reth-revm/optimism",
"jsonrpsee-types",
Expand Down

0 comments on commit 0630621

Please sign in to comment.