mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(trie-db): remove reth-primitives dep (#14079)
This commit is contained in:
@ -13,7 +13,7 @@ workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives.workspace = true
|
||||
reth-primitives-traits.workspace = true
|
||||
reth-execution-errors.workspace = true
|
||||
reth-db.workspace = true
|
||||
reth-db-api.workspace = true
|
||||
@ -45,7 +45,7 @@ serde = { workspace = true, optional = true }
|
||||
[dev-dependencies]
|
||||
# reth
|
||||
reth-chainspec.workspace = true
|
||||
reth-primitives = { workspace = true, features = ["test-utils", "arbitrary"] }
|
||||
reth-primitives-traits = { workspace = true, features = ["test-utils", "arbitrary"] }
|
||||
reth-db = { workspace = true, features = ["test-utils"] }
|
||||
reth-provider = { workspace = true, features = ["test-utils"] }
|
||||
reth-storage-errors.workspace = true
|
||||
@ -74,13 +74,14 @@ serde = [
|
||||
"reth-trie/serde",
|
||||
"reth-trie-common/serde",
|
||||
"reth-provider/serde",
|
||||
"reth-primitives-traits/serde",
|
||||
]
|
||||
test-utils = [
|
||||
"triehash",
|
||||
"revm/test-utils",
|
||||
"reth-trie-common/test-utils",
|
||||
"reth-primitives-traits/test-utils",
|
||||
"reth-chainspec/test-utils",
|
||||
"reth-primitives/test-utils",
|
||||
"reth-db/test-utils",
|
||||
"reth-db-api/test-utils",
|
||||
"reth-provider/test-utils",
|
||||
|
||||
@ -4,7 +4,7 @@ use reth_db_api::{
|
||||
cursor::{DbCursorRO, DbDupCursorRO},
|
||||
transaction::DbTx,
|
||||
};
|
||||
use reth_primitives::Account;
|
||||
use reth_primitives_traits::Account;
|
||||
use reth_trie::hashed_cursor::{HashedCursor, HashedCursorFactory, HashedStorageCursor};
|
||||
|
||||
/// A struct wrapping database transaction that implements [`HashedCursorFactory`].
|
||||
|
||||
@ -11,7 +11,7 @@ use reth_db_api::{
|
||||
transaction::DbTx,
|
||||
DatabaseError,
|
||||
};
|
||||
use reth_primitives::StorageEntry;
|
||||
use reth_primitives_traits::StorageEntry;
|
||||
use reth_trie::{
|
||||
prefix_set::{PrefixSetMut, TriePrefixSets},
|
||||
KeyHasher, Nibbles,
|
||||
|
||||
@ -80,7 +80,7 @@ pub trait DatabaseStateRoot<'a, TX>: Sized {
|
||||
/// use alloy_primitives::U256;
|
||||
/// use reth_db::test_utils::create_test_rw_db;
|
||||
/// use reth_db_api::database::Database;
|
||||
/// use reth_primitives::Account;
|
||||
/// use reth_primitives_traits::Account;
|
||||
/// use reth_trie::{updates::TrieUpdates, HashedPostState, StateRoot};
|
||||
/// use reth_trie_db::DatabaseStateRoot;
|
||||
///
|
||||
|
||||
@ -7,7 +7,7 @@ use reth_db::{
|
||||
tables,
|
||||
transaction::DbTxMut,
|
||||
};
|
||||
use reth_primitives::{Account, StorageEntry};
|
||||
use reth_primitives_traits::{Account, StorageEntry};
|
||||
use reth_provider::test_utils::create_test_provider_factory;
|
||||
use reth_trie::{
|
||||
test_utils::{state_root_prehashed, storage_root_prehashed},
|
||||
|
||||
@ -5,7 +5,7 @@ use proptest::prelude::*;
|
||||
use proptest_arbitrary_interop::arb;
|
||||
use reth_db::{tables, test_utils::create_test_rw_db};
|
||||
use reth_db_api::{database::Database, transaction::DbTxMut};
|
||||
use reth_primitives::{Account, StorageEntry};
|
||||
use reth_primitives_traits::{Account, StorageEntry};
|
||||
use reth_trie::{
|
||||
hashed_cursor::{
|
||||
HashedCursor, HashedCursorFactory, HashedPostStateCursorFactory, HashedStorageCursor,
|
||||
|
||||
@ -4,7 +4,7 @@ use alloy_consensus::EMPTY_ROOT_HASH;
|
||||
use alloy_primitives::{keccak256, Address, Bytes, B256, U256};
|
||||
use alloy_rlp::EMPTY_STRING_CODE;
|
||||
use reth_chainspec::{Chain, ChainSpec, HOLESKY, MAINNET};
|
||||
use reth_primitives::Account;
|
||||
use reth_primitives_traits::Account;
|
||||
use reth_provider::test_utils::{create_test_provider_factory, insert_genesis};
|
||||
use reth_trie::{proof::Proof, AccountProof, Nibbles, StorageProof};
|
||||
use reth_trie_db::DatabaseProof;
|
||||
|
||||
@ -10,7 +10,7 @@ use reth_db_api::{
|
||||
cursor::{DbCursorRO, DbCursorRW, DbDupCursorRO},
|
||||
transaction::{DbTx, DbTxMut},
|
||||
};
|
||||
use reth_primitives::{Account, StorageEntry};
|
||||
use reth_primitives_traits::{Account, StorageEntry};
|
||||
use reth_provider::{
|
||||
providers::ProviderNodeTypes, test_utils::create_test_provider_factory, DatabaseProviderRW,
|
||||
StorageTrieWriter, TrieWriter,
|
||||
|
||||
@ -9,7 +9,7 @@ use alloy_primitives::{
|
||||
use alloy_rlp::EMPTY_STRING_CODE;
|
||||
use reth_db::{cursor::DbCursorRW, tables};
|
||||
use reth_db_api::transaction::DbTxMut;
|
||||
use reth_primitives::{Account, StorageEntry};
|
||||
use reth_primitives_traits::{Account, StorageEntry};
|
||||
use reth_provider::{test_utils::create_test_provider_factory, HashingWriter};
|
||||
use reth_trie::{proof::Proof, witness::TrieWitness, HashedPostState, HashedStorage, StateRoot};
|
||||
use reth_trie_db::{DatabaseProof, DatabaseStateRoot, DatabaseTrieWitness};
|
||||
|
||||
Reference in New Issue
Block a user