Trait multiversx_chain_vm::scenario::model::StepHandler
source · pub trait StepHandler: TypedScCallExecutor + TypedScDeployExecutor + TypedScQueryExecutor {
Show 16 methods
// Required methods
fn set_state_step(&mut self, step: SetStateStep) -> &mut Self;
fn sc_call_step(&mut self, step: ScCallStep) -> &mut Self;
fn sc_query_step(&mut self, step: ScQueryStep) -> &mut Self;
fn sc_deploy_step(&mut self, step: ScDeployStep) -> &mut Self;
fn transfer_step(&mut self, step: TransferStep) -> &mut Self;
fn validator_reward_step(&mut self, step: ValidatorRewardStep) -> &mut Self;
fn check_state_step(&mut self, step: CheckStateStep) -> &mut Self;
fn dump_state_step(&mut self) -> &mut Self;
// Provided methods
fn mandos_set_state(&mut self, step: SetStateStep) -> &mut Self { ... }
fn mandos_sc_call(&mut self, step: ScCallStep) -> &mut Self { ... }
fn mandos_sc_query(&mut self, step: ScQueryStep) -> &mut Self { ... }
fn mandos_sc_deploy(&mut self, step: ScDeployStep) -> &mut Self { ... }
fn mandos_transfer(&mut self, step: TransferStep) -> &mut Self { ... }
fn mandos_validator_reward(
&mut self,
step: ValidatorRewardStep
) -> &mut Self { ... }
fn mandos_check_state(&mut self, step: CheckStateStep) -> &mut Self { ... }
fn mandos_dump_state(&mut self) -> &mut Self { ... }
}Expand description
Allows caller to construct a scenario and do something with it on the fly.
Abstracts away implementation, can be
- a simulation using any executor,
- calls to a blockchain,
- collecting/exporting the scenario,
- something else.
Required Methods§
sourcefn set_state_step(&mut self, step: SetStateStep) -> &mut Self
fn set_state_step(&mut self, step: SetStateStep) -> &mut Self
Adds a SC call step, then executes it.
sourcefn sc_call_step(&mut self, step: ScCallStep) -> &mut Self
fn sc_call_step(&mut self, step: ScCallStep) -> &mut Self
Adds a SC call step, then executes it.
sourcefn sc_query_step(&mut self, step: ScQueryStep) -> &mut Self
fn sc_query_step(&mut self, step: ScQueryStep) -> &mut Self
Adds a SC query step, then executes it.
sourcefn sc_deploy_step(&mut self, step: ScDeployStep) -> &mut Self
fn sc_deploy_step(&mut self, step: ScDeployStep) -> &mut Self
Adds a SC deploy step, then executes it.
sourcefn transfer_step(&mut self, step: TransferStep) -> &mut Self
fn transfer_step(&mut self, step: TransferStep) -> &mut Self
Adds a simple transfer step, then executes it.
sourcefn validator_reward_step(&mut self, step: ValidatorRewardStep) -> &mut Self
fn validator_reward_step(&mut self, step: ValidatorRewardStep) -> &mut Self
Adds a validator reward step, then executes it.
sourcefn check_state_step(&mut self, step: CheckStateStep) -> &mut Self
fn check_state_step(&mut self, step: CheckStateStep) -> &mut Self
Adds a check state step, then executes it.
sourcefn dump_state_step(&mut self) -> &mut Self
fn dump_state_step(&mut self) -> &mut Self
Adds a dump state step, then executes it.
Provided Methods§
sourcefn mandos_set_state(&mut self, step: SetStateStep) -> &mut Self
fn mandos_set_state(&mut self, step: SetStateStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
set_state_step instead.sourcefn mandos_sc_call(&mut self, step: ScCallStep) -> &mut Self
fn mandos_sc_call(&mut self, step: ScCallStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
sc_call_step instead.sourcefn mandos_sc_query(&mut self, step: ScQueryStep) -> &mut Self
fn mandos_sc_query(&mut self, step: ScQueryStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
sc_query_step instead.sourcefn mandos_sc_deploy(&mut self, step: ScDeployStep) -> &mut Self
fn mandos_sc_deploy(&mut self, step: ScDeployStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
sc_deploy_step instead.sourcefn mandos_transfer(&mut self, step: TransferStep) -> &mut Self
fn mandos_transfer(&mut self, step: TransferStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
transfer_step instead.sourcefn mandos_validator_reward(&mut self, step: ValidatorRewardStep) -> &mut Self
fn mandos_validator_reward(&mut self, step: ValidatorRewardStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
validator_reward_step instead.sourcefn mandos_check_state(&mut self, step: CheckStateStep) -> &mut Self
fn mandos_check_state(&mut self, step: CheckStateStep) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
check_state_step instead.sourcefn mandos_dump_state(&mut self) -> &mut Self
fn mandos_dump_state(&mut self) -> &mut Self
👎Deprecated since 0.39.0: Renamed, use
dump_state_step instead.