#[soroban_sdk::contractimpl]
#[contractimpl]
impl SomeTrait for Contract {
fn should_return_contract_error(
env: &Env,
arg: String,
) -> Result<u32, ContractError> {
stellar_axelar_std::ttl::extend_instance_ttl(&env);
if stellar_axelar_std::interfaces::is_migrating(&env) {
return Err(ContractError::MigrationInProgress);
}
Ok(3)
}
fn should_panic(env: &Env, arg: String) {
stellar_axelar_std::ttl::extend_instance_ttl(&env);
if stellar_axelar_std::interfaces::is_migrating(&env) {
panic!("contract migration in progress");
}
}
fn should_have_no_check_because_not_stateful() {}
fn is_allowed_during_migration(env: &Env, arg: String) {
stellar_axelar_std::ttl::extend_instance_ttl(&env);
}
}