mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-22 10:17:56 +00:00
98b62d705f
* Generate schema for the metadata file * Groundwork for dyn traits * Make the ethereum node trait object compatible * Allow for compilers to be created in the dyn trait * Add more identifiers to the platform * Implement the dyn compiler trait for compilers * Support the dyn compiler in the builder pattern * Introduce a geth platform * Provide a common node implementation for substrate chains * Add all of the platforms that we support * Add a way to convert platform identifier into a platform * Replace infra with the dyn infra * Remoe all references to leader and follower * Remove the old traits * Remove an un-needed dependency * Update the default values for the platforms * Final set of renames * Update the default values of the cli * Update tests
26 lines
705 B
Rust
26 lines
705 B
Rust
//! This crate implements the testing nodes.
|
|
|
|
use alloy::genesis::Genesis;
|
|
use revive_dt_node_interaction::EthereumNode;
|
|
|
|
pub mod common;
|
|
pub mod constants;
|
|
pub mod geth;
|
|
pub mod substrate;
|
|
|
|
/// An abstract interface for testing nodes.
|
|
pub trait Node: EthereumNode {
|
|
/// Spawns a node configured according to the genesis json.
|
|
///
|
|
/// Blocking until it's ready to accept transactions.
|
|
fn spawn(&mut self, genesis: Genesis) -> anyhow::Result<()>;
|
|
|
|
/// Prune the node instance and related data.
|
|
///
|
|
/// Blocking until it's completely stopped.
|
|
fn shutdown(&mut self) -> anyhow::Result<()>;
|
|
|
|
/// Returns the node version.
|
|
fn version(&self) -> anyhow::Result<String>;
|
|
}
|