chore: use alloy-genesis imports for Genesis (#8973)

This commit is contained in:
Dan Cline
2024-06-19 19:14:25 -04:00
committed by GitHub
parent bf9cac7571
commit 8b6ca877d6
24 changed files with 52 additions and 21 deletions

View File

@ -17,6 +17,7 @@ reth-basic-payload-builder.workspace = true
reth-ethereum-payload-builder.workspace = true
reth-node-ethereum.workspace = true
reth-tracing.workspace = true
alloy-genesis.workspace = true
eyre.workspace = true
tokio.workspace = true

View File

@ -22,6 +22,7 @@ use std::convert::Infallible;
use serde::{Deserialize, Serialize};
use thiserror::Error;
use alloy_genesis::Genesis;
use reth::{
api::PayloadTypes,
builder::{
@ -51,7 +52,7 @@ use reth_payload_builder::{
error::PayloadBuilderError, EthBuiltPayload, EthPayloadBuilderAttributes, PayloadBuilderHandle,
PayloadBuilderService,
};
use reth_primitives::{Address, Genesis, Header, Withdrawals, B256};
use reth_primitives::{Address, Header, Withdrawals, B256};
use reth_rpc_types::{
engine::{
ExecutionPayloadEnvelopeV2, ExecutionPayloadEnvelopeV3, ExecutionPayloadEnvelopeV4,

View File

@ -13,6 +13,7 @@ reth-node-core.workspace = true
reth-primitives.workspace = true
reth-node-ethereum.workspace = true
reth-tracing.workspace = true
alloy-genesis.workspace = true
eyre.workspace = true
tokio.workspace = true

View File

@ -2,6 +2,7 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use alloy_genesis::Genesis;
use reth::{
builder::{components::ExecutorBuilder, BuilderContext, NodeBuilder},
primitives::{
@ -21,7 +22,7 @@ use reth_chainspec::{Chain, ChainSpec};
use reth_node_api::{ConfigureEvm, ConfigureEvmEnv, FullNodeTypes};
use reth_node_core::{args::RpcServerArgs, node_config::NodeConfig};
use reth_node_ethereum::{EthEvmConfig, EthExecutorProvider, EthereumNode};
use reth_primitives::{Genesis, Header, TransactionSigned};
use reth_primitives::{Header, TransactionSigned};
use reth_tracing::{RethTracer, Tracer};
use std::sync::Arc;

View File

@ -24,6 +24,7 @@ tokio.workspace = true
# misc
alloy-consensus = { workspace = true, features = ["kzg"] }
alloy-genesis.workspace = true
alloy-rlp.workspace = true
alloy-sol-types = { workspace = true, features = ["json"] }
eyre.workspace = true

View File

@ -4,6 +4,7 @@
//! The rollup contract accepts blocks of transactions and deposits of ETH and is deployed on
//! Holesky at [ROLLUP_CONTRACT_ADDRESS], see <https://github.com/init4tech/zenith/blob/e0481e930947513166881a83e276b316c2f38502/src/Zenith.sol>.
use alloy_genesis::Genesis;
use alloy_sol_types::{sol, SolEventInterface, SolInterface};
use db::Database;
use execution::execute_block;
@ -13,7 +14,7 @@ use reth_execution_types::Chain;
use reth_exex::{ExExContext, ExExEvent};
use reth_node_api::FullNodeComponents;
use reth_node_ethereum::EthereumNode;
use reth_primitives::{address, Address, Genesis, SealedBlockWithSenders, TransactionSigned, U256};
use reth_primitives::{address, Address, SealedBlockWithSenders, TransactionSigned, U256};
use reth_tracing::tracing::{error, info};
use rusqlite::Connection;
use std::sync::Arc;

View File

@ -13,6 +13,7 @@ reth-node-core.workspace = true
reth-primitives.workspace = true
reth-node-ethereum.workspace = true
reth-tracing.workspace = true
alloy-genesis.workspace = true
eyre.workspace = true
parking_lot.workspace = true

View File

@ -2,6 +2,7 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use alloy_genesis::Genesis;
use parking_lot::RwLock;
use reth::{
builder::{components::ExecutorBuilder, BuilderContext, NodeBuilder},
@ -23,7 +24,7 @@ use reth_node_core::{args::RpcServerArgs, node_config::NodeConfig};
use reth_node_ethereum::{EthEvmConfig, EthExecutorProvider, EthereumNode};
use reth_primitives::{
revm_primitives::{SpecId, StatefulPrecompileMut},
Genesis, Header, TransactionSigned,
Header, TransactionSigned,
};
use reth_tracing::{RethTracer, Tracer};
use schnellru::{ByLength, LruMap};