mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-22 06:47:56 +00:00
c590fa7bfd
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> Signed-off-by: xermicus <bigcyrill@hotmail.com>
22 lines
730 B
Rust
22 lines
730 B
Rust
//! This crate implements all node interactions.
|
|
|
|
use alloy::rpc::types::trace::geth::GethTrace;
|
|
use alloy::rpc::types::{TransactionReceipt, TransactionRequest};
|
|
use tokio_runtime::TO_TOKIO;
|
|
|
|
mod tokio_runtime;
|
|
pub mod trace;
|
|
pub mod transaction;
|
|
|
|
/// An interface for all interactions with Ethereum compatible nodes.
|
|
pub trait EthereumNode {
|
|
/// Execute the [TransactionRequest] and return a [TransactionReceipt].
|
|
fn execute_transaction(
|
|
&self,
|
|
transaction: TransactionRequest,
|
|
) -> anyhow::Result<TransactionReceipt>;
|
|
|
|
/// Trace the transaction in the [TransactionReceipt] and return a [GethTrace].
|
|
fn trace_transaction(&self, transaction: TransactionReceipt) -> anyhow::Result<GethTrace>;
|
|
}
|