mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm reth_primitives from reth_revm (#14317)
This commit is contained in:
@ -13,7 +13,8 @@ workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
reth-primitives-traits.workspace = true
|
||||
reth-ethereum-primitives.workspace = true
|
||||
reth-storage-errors.workspace = true
|
||||
reth-storage-api.workspace = true
|
||||
reth-trie = { workspace = true, optional = true }
|
||||
@ -34,19 +35,21 @@ alloy-consensus.workspace = true
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"reth-primitives/std",
|
||||
"reth-primitives-traits/std",
|
||||
"alloy-primitives/std",
|
||||
"revm/std",
|
||||
"alloy-eips/std",
|
||||
"alloy-consensus/std",
|
||||
"reth-ethereum-forks/std",
|
||||
"reth-ethereum-primitives/std",
|
||||
]
|
||||
witness = ["dep:reth-trie"]
|
||||
test-utils = [
|
||||
"dep:reth-trie",
|
||||
"reth-primitives/test-utils",
|
||||
"reth-primitives-traits/test-utils",
|
||||
"reth-trie?/test-utils",
|
||||
"revm/test-utils",
|
||||
"reth-ethereum-primitives/test-utils",
|
||||
]
|
||||
serde = [
|
||||
"revm/serde",
|
||||
@ -55,4 +58,5 @@ serde = [
|
||||
"alloy-consensus/serde",
|
||||
"reth-trie?/serde",
|
||||
"reth-ethereum-forks/serde",
|
||||
"reth-primitives-traits/serde",
|
||||
]
|
||||
|
||||
@ -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