mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
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:
@ -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",
|
||||
]
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user