chore: use reth-primitives-traits-directly (#13386)

This commit is contained in:
Matthias Seitz
2024-12-13 16:13:33 +01:00
committed by GitHub
parent b67e5a262c
commit e89d171fc8
7 changed files with 7 additions and 8 deletions

View File

@ -1,7 +1,7 @@
use alloy_primitives::{Address, BlockNumber};
use auto_impl::auto_impl;
use reth_db_models::AccountBeforeTx;
use reth_primitives::Account;
use reth_primitives_traits::Account;
use reth_storage_errors::provider::ProviderResult;
use std::{
collections::{BTreeMap, BTreeSet},

View File

@ -1,5 +1,5 @@
use alloy_rpc_types_engine::ForkchoiceState;
use reth_primitives::SealedHeader;
use reth_primitives_traits::SealedHeader;
use std::time::Instant;
/// A type that can track updates related to fork choice updates.

View File

@ -1,7 +1,6 @@
use alloy_eips::BlockHashOrNumber;
use alloy_primitives::{BlockHash, BlockNumber, U256};
use reth_primitives::SealedHeader;
use reth_primitives_traits::BlockHeader;
use reth_primitives_traits::{BlockHeader, SealedHeader};
use reth_storage_errors::provider::ProviderResult;
use std::ops::RangeBounds;

View File

@ -1,7 +1,7 @@
use alloy_primitives::{Address, BlockNumber, B256};
use auto_impl::auto_impl;
use reth_db::models::{AccountBeforeTx, BlockNumberAddress};
use reth_primitives::StorageEntry;
use reth_primitives_traits::StorageEntry;
use reth_storage_errors::provider::ProviderResult;
use std::ops::{RangeBounds, RangeInclusive};

View File

@ -1,4 +1,4 @@
use reth_primitives::NodePrimitives;
use reth_primitives_traits::NodePrimitives;
/// Provider implementation that knows configured [`NodePrimitives`].
#[auto_impl::auto_impl(&, Arc, Box)]

View File

@ -6,7 +6,7 @@ use alloy_consensus::constants::KECCAK_EMPTY;
use alloy_eips::{BlockId, BlockNumberOrTag};
use alloy_primitives::{Address, BlockHash, BlockNumber, StorageKey, StorageValue, B256, U256};
use auto_impl::auto_impl;
use reth_primitives::Bytecode;
use reth_primitives_traits::Bytecode;
use reth_storage_errors::provider::ProviderResult;
use reth_trie::HashedPostState;
use reth_trie_db::StateCommitment;

View File

@ -1,6 +1,6 @@
use alloy_primitives::{Address, BlockNumber, B256};
use reth_db_api::models::BlockNumberAddress;
use reth_primitives::StorageEntry;
use reth_primitives_traits::StorageEntry;
use reth_storage_errors::provider::ProviderResult;
use std::{
collections::{BTreeMap, BTreeSet},