chain-state: replace primitive imports with alloy-eips (#11038)

This commit is contained in:
Håvard Anda Estensen
2024-09-19 15:54:07 +02:00
committed by GitHub
parent 668807802b
commit 8ba95a1667
4 changed files with 8 additions and 4 deletions

1
Cargo.lock generated
View File

@@ -6424,6 +6424,7 @@ dependencies = [
name = "reth-chain-state"
version = "1.0.7"
dependencies = [
"alloy-eips",
"alloy-primitives",
"alloy-signer",
"alloy-signer-local",

View File

@@ -21,7 +21,8 @@ reth-primitives.workspace = true
reth-storage-api.workspace = true
reth-trie.workspace = true
# alloy
# ethereum
alloy-eips.workspace = true
alloy-primitives.workspace = true
# async

View File

@@ -1,7 +1,8 @@
use alloy_eips::BlockNumHash;
use alloy_primitives::BlockNumber;
use parking_lot::RwLock;
use reth_chainspec::ChainInfo;
use reth_primitives::{BlockNumHash, SealedHeader};
use reth_primitives::SealedHeader;
use std::{
sync::{
atomic::{AtomicU64, Ordering},

View File

@@ -4,14 +4,15 @@ use crate::{
CanonStateNotification, CanonStateNotificationSender, CanonStateNotifications,
ChainInfoTracker, MemoryOverlayStateProvider,
};
use alloy_eips::BlockNumHash;
use alloy_primitives::{Address, TxHash, B256};
use parking_lot::RwLock;
use reth_chainspec::ChainInfo;
use reth_execution_types::{Chain, ExecutionOutcome};
use reth_metrics::{metrics::Gauge, Metrics};
use reth_primitives::{
BlockNumHash, Header, Receipt, Receipts, SealedBlock, SealedBlockWithSenders, SealedHeader,
TransactionMeta, TransactionSigned,
Header, Receipt, Receipts, SealedBlock, SealedBlockWithSenders, SealedHeader, TransactionMeta,
TransactionSigned,
};
use reth_storage_api::StateProviderBox;
use reth_trie::{updates::TrieUpdates, HashedPostState};