mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-14 08:55:01 -05:00
chore: rm reth_primitives from reth_revm (#14317)
This commit is contained in:
@@ -10,7 +10,7 @@ use alloy_primitives::BlockNumber;
|
||||
/// - pruning receipts according to the pruning configuration.
|
||||
/// - batch range if known
|
||||
#[derive(Debug)]
|
||||
pub struct BlockBatchRecord<T = reth_primitives::Receipt> {
|
||||
pub struct BlockBatchRecord<T = reth_ethereum_primitives::Receipt> {
|
||||
/// The collection of receipts.
|
||||
/// Outer vector stores receipts for each block sequentially.
|
||||
/// The inner vector stores receipts ordered by transaction number.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::primitives::alloy_primitives::{BlockNumber, StorageKey, StorageValue};
|
||||
use alloy_primitives::{Address, B256, U256};
|
||||
use core::ops::{Deref, DerefMut};
|
||||
use reth_primitives::Account;
|
||||
use reth_primitives_traits::Account;
|
||||
use reth_storage_api::{AccountReader, BlockHashReader, StateProvider};
|
||||
use reth_storage_errors::provider::{ProviderError, ProviderResult};
|
||||
use revm::{
|
||||
@@ -27,7 +27,7 @@ pub trait EvmStateProvider: Send + Sync {
|
||||
fn bytecode_by_hash(
|
||||
&self,
|
||||
code_hash: &B256,
|
||||
) -> ProviderResult<Option<reth_primitives::Bytecode>>;
|
||||
) -> ProviderResult<Option<reth_primitives_traits::Bytecode>>;
|
||||
|
||||
/// Get storage of the given account.
|
||||
fn storage(
|
||||
@@ -50,7 +50,7 @@ impl<T: StateProvider> EvmStateProvider for T {
|
||||
fn bytecode_by_hash(
|
||||
&self,
|
||||
code_hash: &B256,
|
||||
) -> ProviderResult<Option<reth_primitives::Bytecode>> {
|
||||
) -> ProviderResult<Option<reth_primitives_traits::Bytecode>> {
|
||||
<T as StateProvider>::bytecode_by_hash(self, code_hash)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ use alloy_primitives::{
|
||||
map::{B256HashMap, HashMap},
|
||||
Address, BlockNumber, Bytes, StorageKey, B256, U256,
|
||||
};
|
||||
use reth_primitives::{Account, Bytecode};
|
||||
use reth_primitives_traits::{Account, Bytecode};
|
||||
use reth_storage_api::{
|
||||
AccountReader, BlockHashReader, HashedPostStateProvider, StateProofProvider, StateProvider,
|
||||
StateRootProvider, StorageRootProvider,
|
||||
|
||||
Reference in New Issue
Block a user