mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(rpc): move OpEthApi traits into reth-optimism-rpc (#9581)
This commit is contained in:
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -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",
|
||||
]
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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};
|
||||
|
||||
@ -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"]
|
||||
@ -22,7 +22,6 @@ mod ganache;
|
||||
mod hardhat;
|
||||
mod mev;
|
||||
mod net;
|
||||
mod optimism;
|
||||
mod otterscan;
|
||||
mod reth;
|
||||
mod rpc;
|
||||
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user