rpc: replace reth-primitive imports with alloy-eips (#10834)

This commit is contained in:
Håvard Anda Estensen
2024-09-11 13:25:07 +02:00
committed by GitHub
parent a5be445ef9
commit 5b3c115704
7 changed files with 10 additions and 6 deletions

2
Cargo.lock generated
View File

@ -8241,6 +8241,7 @@ name = "reth-rpc"
version = "1.0.6"
dependencies = [
"alloy-dyn-abi",
"alloy-eips",
"alloy-genesis",
"alloy-network",
"alloy-primitives",
@ -8298,6 +8299,7 @@ dependencies = [
name = "reth-rpc-api"
version = "1.0.6"
dependencies = [
"alloy-eips",
"alloy-json-rpc",
"alloy-primitives",
"jsonrpsee",

View File

@ -21,6 +21,7 @@ reth-network-peers.workspace = true
# ethereum
alloy-json-rpc.workspace = true
alloy-eips.workspace = true
alloy-primitives.workspace = true
# misc

View File

@ -1,6 +1,6 @@
use alloy_eips::{BlockId, BlockNumberOrTag};
use alloy_primitives::{Address, Bytes, B256};
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
use reth_primitives::{BlockId, BlockNumberOrTag};
use reth_rpc_types::{
debug::ExecutionWitness,
trace::geth::{

View File

@ -3,11 +3,11 @@
//! This contains the `engine_` namespace and the subset of the `eth_` namespace that is exposed to
//! the consensus client.
use alloy_eips::{BlockId, BlockNumberOrTag};
use alloy_json_rpc::RpcObject;
use alloy_primitives::{Address, BlockHash, Bytes, B256, U256, U64};
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
use reth_engine_primitives::EngineTypes;
use reth_primitives::{BlockId, BlockNumberOrTag};
use reth_rpc_types::{
engine::{
ClientVersionV1, ExecutionPayloadBodiesV1, ExecutionPayloadBodiesV2,

View File

@ -38,10 +38,11 @@ reth-trie.workspace = true
# ethereum
alloy-dyn-abi.workspace = true
alloy-rlp.workspace = true
alloy-primitives.workspace = true
alloy-eips.workspace = true
alloy-genesis.workspace = true
alloy-network.workspace = true
alloy-primitives.workspace = true
alloy-rlp.workspace = true
revm = { workspace = true, features = [
"optional_block_gas_limit",
"optional_eip3607",

View File

@ -1,7 +1,7 @@
use alloy_eips::{BlockId, BlockNumberOrTag};
use alloy_network::Network;
use alloy_primitives::{Address, Bytes, B256, U256, U64};
use jsonrpsee::core::RpcResult as Result;
use reth_primitives::{BlockId, BlockNumberOrTag};
use reth_rpc_api::{EngineEthApiServer, EthApiServer, EthFilterApiServer};
/// Re-export for convenience
pub use reth_rpc_engine_api::EngineApi;

View File

@ -1,8 +1,8 @@
use alloy_eips::{BlockId, BlockNumberOrTag};
use alloy_network::Network;
use alloy_primitives::{Address, Bytes, TxHash, B256, U256};
use async_trait::async_trait;
use jsonrpsee::{core::RpcResult, types::ErrorObjectOwned};
use reth_primitives::{BlockId, BlockNumberOrTag};
use reth_rpc_api::{EthApiServer, OtterscanServer};
use reth_rpc_eth_api::{
helpers::{EthTransactions, TraceExt},