feat: alloy-evm and new revm integration (#14021)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: rakita <rakita@users.noreply.github.com>
This commit is contained in:
Arsenii Kulikov
2025-02-17 23:59:23 +04:00
committed by GitHub
parent bb6dec7ceb
commit 336c3d1fac
142 changed files with 1841 additions and 1929 deletions

View File

@ -26,7 +26,8 @@ reth-trie.workspace = true
alloy-eips.workspace = true
alloy-primitives.workspace = true
alloy-consensus.workspace = true
revm.workspace = true
revm-database.workspace = true
revm-state = { workspace = true, optional = true }
# async
tokio = { workspace = true, default-features = false, features = ["sync", "macros"] }
@ -59,9 +60,9 @@ test-utils = [
"alloy-signer",
"alloy-signer-local",
"rand",
"revm-state",
"reth-chainspec/test-utils",
"reth-primitives/test-utils",
"reth-primitives-traits/test-utils",
"reth-trie/test-utils",
"revm/test-utils",
]

View File

@ -1049,7 +1049,7 @@ mod tests {
}
impl HashedPostStateProvider for MockStateProvider {
fn hashed_post_state(&self, _bundle_state: &revm::db::BundleState) -> HashedPostState {
fn hashed_post_state(&self, _bundle_state: &revm_database::BundleState) -> HashedPostState {
HashedPostState::default()
}
}

View File

@ -13,7 +13,7 @@ use reth_trie::{
updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof,
MultiProofTargets, StorageMultiProof, TrieInput,
};
use revm::db::BundleState;
use revm_database::BundleState;
use std::sync::OnceLock;
/// A state provider that stores references to in-memory blocks along with their state as well as a

View File

@ -27,7 +27,8 @@ use reth_primitives_traits::{
};
use reth_storage_api::NodePrimitivesProvider;
use reth_trie::{root::state_root_unhashed, updates::TrieUpdates, HashedPostState};
use revm::{db::BundleState, primitives::AccountInfo};
use revm_database::BundleState;
use revm_state::AccountInfo;
use std::{
collections::HashMap,
ops::Range,