Skip to main content

Module tempo

Module tempo 

Source
Expand description

Cheatcodes that delegate to the imported Tempo precompile crates.

Re-exportsยง

use std::str::FromStr; ๐Ÿ”’
use alloy_sol_types::SolValue; ๐Ÿ”’
use foundry_evm_core::evm::FoundryEvmNetwork; ๐Ÿ”’
use spec::Vm::assumeImplicitApprovalCall; ๐Ÿ”’
use spec::Vm::isImplicitlyApprovedCall; ๐Ÿ”’
use tempo_hardfork::TempoHardfork; ๐Ÿ”’
use tempo_precompiles::address_registry; ๐Ÿ”’
use crate::Cheatcode; ๐Ÿ”’
use crate::CheatsCtxt; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use foundry_config::ExecutionSpec; ๐Ÿ”’
use foundry_evm_core::constants::MAGIC_ASSUME; ๐Ÿ”’

Functionsยง

active_tempo_hardfork ๐Ÿ”’
Resolves the active Tempo hardfork from the cheatcode-visible spec, or None on non-Tempo networks. Goes through the specโ€™s stable string name because the context is generic over the network type.