Skip to content

Commit

Permalink
primitives: rm alloy_eips::eip1559::calc_next_block_base_fee reexpo…
Browse files Browse the repository at this point in the history
…rt (#11177)
  • Loading branch information
tcoratger authored Sep 24, 2024
1 parent ae3d279 commit c434e52
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

5 changes: 0 additions & 5 deletions crates/primitives/src/basefee.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ extern crate alloc;

#[cfg(feature = "alloy-compat")]
mod alloy_compat;
pub mod basefee;
mod block;
#[cfg(feature = "reth-codec")]
mod compression;
Expand Down
1 change: 1 addition & 0 deletions crates/rpc/rpc-eth-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ alloy-primitives.workspace = true
alloy-rpc-types-eth.workspace = true
alloy-rpc-types.workspace = true
alloy-rpc-types-mev.workspace = true
alloy-eips.workspace = true

# rpc
jsonrpsee = { workspace = true, features = ["server", "macros"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/rpc-eth-api/src/helpers/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use crate::{
AsEthApiError, FromEthApiError, FromEvmError, FullEthApiTypes, IntoEthApiError, RpcBlock,
};
use alloy_eips::eip1559::calc_next_block_base_fee;
use alloy_primitives::{Bytes, TxKind, B256, U256};
use alloy_rpc_types::{
simulate::{SimBlock, SimulatePayload, SimulatedBlock},
Expand All @@ -15,7 +16,6 @@ use futures::Future;
use reth_chainspec::{EthChainSpec, MIN_TRANSACTION_GAS};
use reth_evm::{ConfigureEvm, ConfigureEvmEnv};
use reth_primitives::{
basefee::calc_next_block_base_fee,
revm_primitives::{
BlockEnv, CfgEnvWithHandlerCfg, EnvWithHandlerCfg, ExecutionResult, HaltReason,
ResultAndState, TransactTo, TxEnv,
Expand Down
1 change: 1 addition & 0 deletions crates/rpc/rpc-eth-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ revm-inspectors.workspace = true
revm-primitives = { workspace = true, features = ["dev"] }
alloy-rpc-types.workspace = true
alloy-serde.workspace = true
alloy-eips.workspace = true

# rpc
jsonrpsee-core.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/rpc-eth-types/src/fee_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::{
sync::{atomic::Ordering::SeqCst, Arc},
};

use alloy_eips::eip1559::calc_next_block_base_fee;
use alloy_primitives::B256;
use alloy_rpc_types::TxGasAndReward;
use futures::{
Expand All @@ -16,7 +17,6 @@ use metrics::atomics::AtomicU64;
use reth_chain_state::CanonStateNotification;
use reth_chainspec::{ChainSpecProvider, EthChainSpec};
use reth_primitives::{
basefee::calc_next_block_base_fee,
eip4844::{calc_blob_gasprice, calculate_excess_blob_gas},
Receipt, SealedBlock, TransactionSigned,
};
Expand Down

0 comments on commit c434e52

Please sign in to comment.