We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40198a commit 7730916Copy full SHA for 7730916
crates/evm/src/debug.rs
@@ -1,8 +1,6 @@
1
use crate::{abi::HEVM_ABI, CallKind};
2
-use revm::{
3
- interpreter::{Memory, OpCode},
4
- primitives::{Address, U256},
5
-};
+use alloy_primitives::{Address, U256};
+use revm::interpreter::{Memory, OpCode};
6
use serde::{Deserialize, Serialize};
7
use std::fmt::Display;
8
crates/evm/src/executor/backend/fuzz.rs
@@ -7,9 +7,10 @@ use crate::executor::{
fork::{CreateFork, ForkId},
inspector::cheatcodes::Cheatcodes,
9
};
10
+use alloy_primitives::{Address, B256, U256};
11
use revm::{
12
db::DatabaseRef,
- primitives::{AccountInfo, Address, Bytecode, Env, ResultAndState, B256, U256},
13
+ primitives::{AccountInfo, Bytecode, Env, ResultAndState},
14
Database, Inspector, JournaledState,
15
16
use std::borrow::Cow;
crates/evm/src/executor/backend/in_memory_db.rs
@@ -1,8 +1,9 @@
//! The in memory DB
use crate::executor::backend::error::DatabaseError;
db::{CacheDB, DatabaseRef, EmptyDB},
- primitives::{Account, AccountInfo, Address, Bytecode, HashMap as Map, B256, U256},
+ primitives::{Account, AccountInfo, Bytecode, HashMap as Map},
Database, DatabaseCommit,
crates/evm/src/executor/backend/mod.rs
@@ -11,7 +11,7 @@ use crate::{
utils::{b256_to_h256, h160_to_b160, h256_to_b256, ru256_to_u256, u256_to_ru256, u64_to_ru64},
CALLER, TEST_CONTRACT_ADDRESS,
-use alloy_primitives::{b256, U256, U64};
+use alloy_primitives::{b256, Address, B256, U256, U64};
use ethers::{
prelude::Block,
17
types::{BlockNumber, Transaction},
@@ -22,8 +22,8 @@ use revm::{
22
db::{CacheDB, DatabaseRef},
23
precompile::{Precompiles, SpecId},
24
primitives::{
25
- Account, AccountInfo, Address, Bytecode, CreateScheme, Env, HashMap as Map, Log,
26
- ResultAndState, TransactTo, B256, KECCAK_EMPTY,
+ Account, AccountInfo, Bytecode, CreateScheme, Env, HashMap as Map, Log, ResultAndState,
+ TransactTo, KECCAK_EMPTY,
27
},
28
Database, DatabaseCommit, Inspector, JournaledState, EVM,
29
crates/evm/src/executor/backend/snapshot.rs
@@ -1,5 +1,6 @@
- primitives::{AccountInfo, Address, Env, HashMap as Map, B256, U256},
+ primitives::{AccountInfo, Env, HashMap as Map},
JournaledState,
crates/evm/src/executor/builder.rs
@@ -1,6 +1,7 @@
use super::{inspector::InspectorStackBuilder, Executor};
use crate::executor::backend::Backend;
-use revm::primitives::{Env, SpecId, U256};
+use alloy_primitives::U256;
+use revm::primitives::{Env, SpecId};
/// The builder that allows to configure an evm [`Executor`] which a stack of optional
/// [`revm::Inspector`]s, such as [`Cheatcodes`].
crates/evm/src/executor/fork/backend.rs
@@ -6,6 +6,7 @@ use crate::{
utils::{b160_to_h160, b256_to_h256, h256_to_b256, u256_to_ru256},
+use alloy_primitives::{Address, Bytes, B256, U256};
core::abi::ethereum_types::BigEndianHash,
providers::Middleware,
@@ -21,7 +22,7 @@ use futures::{
21
- primitives::{AccountInfo, Address, Bytecode, Bytes, B256, KECCAK_EMPTY, U256},
+ primitives::{AccountInfo, Bytecode, KECCAK_EMPTY},
use std::{
collections::{hash_map::Entry, HashMap, VecDeque},
crates/evm/src/executor/fork/cache.rs
@@ -1,10 +1,9 @@
//! Cache related abstraction
use crate::executor::backend::snapshot::StateSnapshot;
use parking_lot::RwLock;
- primitives::{
- Account, AccountInfo, AccountStatus, Address, HashMap as Map, B256, KECCAK_EMPTY, U256,
- },
+ primitives::{Account, AccountInfo, AccountStatus, HashMap as Map, KECCAK_EMPTY},
DatabaseCommit,
use serde::{ser::SerializeMap, Deserialize, Deserializer, Serialize, Serializer};
crates/evm/src/executor/fork/database.rs
@@ -8,11 +8,12 @@ use crate::{
revm::db::CacheDB,
use ethers::types::BlockId;
use parking_lot::Mutex;
18
19
use std::sync::Arc;
crates/evm/src/executor/inspector/access_list.rs
@@ -1,8 +1,8 @@
+use alloy_primitives::{Address, B256};
use ethers::types::transaction::eip2930::{AccessList, AccessListItem};
use hashbrown::{HashMap, HashSet};
interpreter::{opcode, InstructionResult, Interpreter},
- primitives::{Address, B256},
Database, EVMData, Inspector,
0 commit comments