pub struct ScenarioTrace {
pub scenario_trace: Scenario,
pub addr_to_pretty_string_map: HashMap<Address, String>,
}
Fields§
§scenario_trace: Scenario
§addr_to_pretty_string_map: HashMap<Address, String>
Implementations§
Source§impl ScenarioTrace
impl ScenarioTrace
pub fn add_addr_scenario_string(&mut self, address: Address)
Source§impl ScenarioTrace
impl ScenarioTrace
pub fn write_scenario_trace<P: AsRef<Path>>(&mut self, file_path: P)
pub fn load_scenario_trace<P: AsRef<Path>>(&mut self, file_path: P)
Trait Implementations§
Source§impl Debug for ScenarioTrace
impl Debug for ScenarioTrace
Source§impl Default for ScenarioTrace
impl Default for ScenarioTrace
Source§fn default() -> ScenarioTrace
fn default() -> ScenarioTrace
Returns the “default value” for a type. Read more
Source§impl ScenarioRunner for ScenarioTrace
impl ScenarioRunner for ScenarioTrace
fn run_external_steps(&mut self, step: &ExternalStepsStep)
fn run_set_state_step(&mut self, step: &SetStateStep)
fn run_sc_call_step(&mut self, step: &mut ScCallStep)
fn run_multi_sc_call_step(&mut self, steps: &mut [ScCallStep])
fn run_multi_sc_deploy_step(&mut self, steps: &mut [ScDeployStep])
fn run_sc_query_step(&mut self, step: &mut ScQueryStep)
fn run_sc_deploy_step(&mut self, step: &mut ScDeployStep)
fn run_transfer_step(&mut self, step: &TransferStep)
fn run_validator_reward_step(&mut self, step: &ValidatorRewardStep)
fn run_check_state_step(&mut self, step: &CheckStateStep)
fn run_dump_state_step(&mut self)
Source§fn run_scenario(&mut self, scenario: &Scenario)
fn run_scenario(&mut self, scenario: &Scenario)
Utility method for running all steps in a scenario.
Auto Trait Implementations§
impl Freeze for ScenarioTrace
impl RefUnwindSafe for ScenarioTrace
impl Send for ScenarioTrace
impl Sync for ScenarioTrace
impl Unpin for ScenarioTrace
impl UnwindSafe for ScenarioTrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more