chore: use execution-types instead of provider where possible (#8971)

This commit is contained in:
Dan Cline
2024-06-19 18:42:25 -04:00
committed by GitHub
parent da49358483
commit e2b8254a3d
38 changed files with 77 additions and 46 deletions

View File

@ -11,6 +11,7 @@ reth-exex.workspace = true
reth-node-api.workspace = true
reth-node-ethereum.workspace = true
reth-tracing.workspace = true
reth-execution-types.workspace = true
eyre.workspace = true

View File

@ -1,6 +1,6 @@
#![warn(unused_crate_dependencies)]
use reth::providers::ExecutionOutcome;
use reth_execution_types::ExecutionOutcome;
use reth_exex::{ExExContext, ExExEvent, ExExNotification};
use reth_node_api::FullNodeComponents;
use reth_node_ethereum::EthereumNode;
@ -73,14 +73,11 @@ fn main() -> eyre::Result<()> {
#[cfg(test)]
mod tests {
use std::pin::pin;
use reth::{
providers::{Chain, ExecutionOutcome},
revm::db::BundleState,
};
use reth::revm::db::BundleState;
use reth_execution_types::{Chain, ExecutionOutcome};
use reth_exex_test_utils::{test_exex_context, PollOnce};
use reth_testing_utils::generators::{self, random_block, random_receipt};
use std::pin::pin;
#[tokio::test]
async fn test_exex() -> eyre::Result<()> {

View File

@ -11,6 +11,7 @@ reth-exex.workspace = true
reth-node-api.workspace = true
reth-node-ethereum.workspace = true
reth-tracing.workspace = true
reth-execution-types.workspace = true
eyre.workspace = true
futures.workspace = true

View File

@ -54,7 +54,7 @@ fn main() -> eyre::Result<()> {
#[cfg(test)]
mod tests {
use reth::providers::{Chain, ExecutionOutcome};
use reth_execution_types::{Chain, ExecutionOutcome};
use reth_exex_test_utils::{test_exex_context, PollOnce};
use std::pin::pin;

View File

@ -11,7 +11,7 @@ reth-exex.workspace = true
reth-node-api.workspace = true
reth-node-ethereum.workspace = true
reth-primitives.workspace = true
reth-provider.workspace = true
reth-execution-types.workspace = true
reth-tracing.workspace = true
eyre.workspace = true

View File

@ -1,10 +1,10 @@
use alloy_sol_types::{sol, SolEventInterface};
use futures::Future;
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, Log, SealedBlockWithSenders, TransactionSigned};
use reth_provider::Chain;
use reth_tracing::tracing::info;
use rusqlite::Connection;
@ -259,12 +259,12 @@ mod tests {
use alloy_sol_types::SolEvent;
use reth::revm::db::BundleState;
use reth_execution_types::{Chain, ExecutionOutcome};
use reth_exex_test_utils::{test_exex_context, PollOnce};
use reth_primitives::{
Address, Block, Header, Log, Receipt, Transaction, TransactionSigned, TxKind, TxLegacy,
TxType, U256,
};
use reth_provider::{Chain, ExecutionOutcome};
use reth_testing_utils::generators::sign_tx_with_random_key_pair;
use rusqlite::Connection;

View File

@ -14,6 +14,7 @@ reth-node-api.workspace = true
reth-node-ethereum.workspace = true
reth-primitives.workspace = true
reth-execution-errors.workspace = true
reth-execution-types.workspace = true
reth-provider.workspace = true
reth-revm.workspace = true
reth-tracing.workspace = true

View File

@ -9,11 +9,11 @@ use db::Database;
use execution::execute_block;
use once_cell::sync::Lazy;
use reth_chainspec::{ChainSpec, ChainSpecBuilder};
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_provider::Chain;
use reth_tracing::tracing::{error, info};
use rusqlite::Connection;
use std::sync::Arc;