chore(rpc): move OpEthApi traits into reth-optimism-rpc (#9581)

This commit is contained in:
Emilia Hane
2024-07-17 15:05:24 +02:00
committed by GitHub
parent 89d0281ce3
commit 0630621329
7 changed files with 14 additions and 5 deletions

3
Cargo.lock generated
View File

@ -7911,6 +7911,8 @@ dependencies = [
"reth-tasks",
"reth-transaction-pool",
"revm",
"serde",
"serde_json",
"thiserror",
"tokio",
]
@ -8211,7 +8213,6 @@ dependencies = [
"reth-primitives",
"reth-rpc-eth-api",
"reth-rpc-types",
"serde",
"serde_json",
]

View File

@ -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",

View File

@ -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};

View File

@ -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
@ -32,4 +31,3 @@ client = [
"jsonrpsee/async-client",
"reth-rpc-eth-api/client"
]
optimism = ["reth-rpc-eth-api/optimism"]

View File

@ -22,7 +22,6 @@ mod ganache;
mod hardhat;
mod mev;
mod net;
mod optimism;
mod otterscan;
mod reth;
mod rpc;

View File

@ -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",