mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use execution-types instead of provider where possible (#8971)
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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<()> {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user