1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
mod facade;
mod scenario_go_runner;
mod scenario_rs_runner;
pub mod whitebox;
use std::path::Path;
pub use whitebox as testing_framework;
pub use multiversx_chain_vm::{
self, bech32, multiversx_sc, num_bigint, scenario_format, ContractInfo, DebugApi,
};
pub use multiversx_chain_vm::scenario::model as scenario_model;
pub use multiversx_chain_vm::scenario as mandos_system;
pub use facade::ScenarioWorld;
pub use scenario_go_runner::run_go;
pub use scenario_rs_runner::run_rs;
#[deprecated(
since = "0.39.0",
note = "Alias provided for backwards compatibility. Do replace `BlockchainMock` with `ScenarioWorld` after upgrading, though."
)]
pub type BlockchainMock = ScenarioWorld;
#[deprecated(
since = "0.39.0",
note = "The old scenario testing method. Rename to `run_go`."
)]
pub fn mandos_go<P: AsRef<Path>>(relative_path: P) {
run_go(relative_path);
}
#[deprecated(
since = "0.39.0",
note = "The old scenario testing method. Rename to `run_rs`."
)]
pub fn mandos_rs<P: AsRef<Path>>(relative_path: P, world: ScenarioWorld) {
run_rs(relative_path, world);
}