Implement the platform driver

This commit is contained in:
Omar Abdulla
2025-09-29 21:10:37 +03:00
parent ca7d8e2ba4
commit c3c7203af8
3 changed files with 913 additions and 175 deletions
File diff suppressed because it is too large Load Diff
@@ -7,6 +7,7 @@ use alloy::{
use revive_dt_format::metadata::{ContractIdent, ContractInstance};
#[derive(Clone)]
/// The state associated with the test execution of one of the tests.
pub struct ExecutionState {
/// The compiled contracts, these contracts have been compiled and have had the libraries linked
@@ -17,7 +18,7 @@ pub struct ExecutionState {
pub deployed_contracts: HashMap<ContractInstance, (ContractIdent, Address, JsonAbi)>,
/// This map stores the variables used for each one of the cases contained in the metadata file.
variables: HashMap<String, U256>,
pub variables: HashMap<String, U256>,
}
impl ExecutionState {
+1 -4
View File
@@ -3,10 +3,7 @@ use serde::{Deserialize, Serialize};
use revive_dt_common::{macros::define_wrapper_type, types::Mode};
use crate::{
mode::ParsedMode,
steps::{Expected, RepeatStep, Step},
};
use crate::{mode::ParsedMode, steps::*};
#[derive(Debug, Default, Serialize, Deserialize, Clone, Eq, PartialEq, JsonSchema)]
pub struct Case {