pub trait ScenarioRunner: Send + Sync {
// Required methods
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);
// Provided method
fn run_scenario(&mut self, scenario: &Scenario) { ... }
}
Expand description
Allows caller to process a single scenario step, no matter what this means concretely.
Abstracts away implementation, can be
- a simulation using any executor,
- calls to a blockchain,
- collecting/exporting the scenario,
- something else.
Required Methods§
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)
Provided Methods§
Sourcefn run_scenario(&mut self, scenario: &Scenario)
fn run_scenario(&mut self, scenario: &Scenario)
Utility method for running all steps in a scenario.