#![allow(clippy::type_complexity)]
#![feature(exhaustive_patterns)]
pub mod api;
pub mod bech32;
pub mod debug_executor;
pub mod display_util;
mod facade;
pub mod managed_test_util;
pub mod scenario;
mod scenario_macros;
pub mod standalone;
pub mod test_wallets;
mod vm_go_tool;
#[deprecated(
since = "0.42.0",
note = "Use the blackbox testing framework instead. If needed, it also supports whitebox calls."
)]
pub mod whitebox_legacy;
#[allow(deprecated)]
pub use whitebox_legacy as testing_framework;
pub use api::DebugApi;
pub use multiversx_chain_vm;
pub use num_bigint;
pub use multiversx_sc;
pub use multiversx_sc_meta as meta;
pub use crate::scenario::model as scenario_model;
pub use crate::scenario as mandos_system;
pub use multiversx_chain_scenario_format as scenario_format;
pub use facade::{ContractInfo, ScenarioWorld, WhiteboxContract};
use std::path::Path;
#[deprecated(
since = "0.42.0",
note = "Call `sc-meta test-gen` in the project folder to automatically upgrade all scenario tests."
)]
pub fn run_go<P: AsRef<Path>>(relative_path: P) {
ScenarioWorld::vm_go().run(relative_path);
}
#[deprecated(
since = "0.39.0",
note = "Call `sc-meta test-gen` in the project folder to automatically upgrade all scenario tests."
)]
pub fn mandos_go<P: AsRef<Path>>(relative_path: P) {
ScenarioWorld::vm_go().run(relative_path);
}
#[deprecated(
since = "0.42.0",
note = "Call `sc-meta test-gen` in the project folder to automatically upgrade all scenario tests."
)]
pub fn run_rs<P: AsRef<Path>>(relative_path: P, world: ScenarioWorld) {
world.run(relative_path);
}
#[deprecated(
since = "0.39.0",
note = "Call `sc-meta test-gen` in the project folder to automatically upgrade all scenario tests."
)]
pub fn mandos_rs<P: AsRef<Path>>(relative_path: P, world: ScenarioWorld) {
world.run(relative_path);
}
#[deprecated(
since = "0.39.0",
note = "Alias provided for backwards compatibility. Do replace `BlockchainMock` with `ScenarioWorld` after upgrading, though."
)]
pub type BlockchainMock = ScenarioWorld;