use crate::test_utils::VMContextBuilder;
use crate::{test_vm_config, testing_env, AccountId};
pub fn alice() -> AccountId {
"alice.unc".parse().unwrap()
}
pub fn bob() -> AccountId {
"bob.unc".parse().unwrap()
}
pub fn carol() -> AccountId {
"carol.unc".parse().unwrap()
}
#[deprecated(
since = "2.0.0",
note = "Use `testing_env!` macro to initialize with specific VMConfig"
)]
pub fn setup_with_config(vm_config: unc_parameters::vm::Config) {
testing_env!(VMContextBuilder::new().build(), vm_config)
}
#[deprecated(
since = "2.0.0",
note = "Mocked blockchain is now setup by default, use `testing_env!`"
)]
pub fn setup() {
testing_env!(VMContextBuilder::new().build());
}
pub fn setup_free() {
let mut config = test_vm_config();
config.make_free();
crate::testing_env!(VMContextBuilder::new().build(), config)
}