Skip to main content

Module vm

Module vm 

Source
Expand description

Cheatcode ABIs for trace decoding.

Vm is declared without #[sol(abi)], which would generate a Function literal for each cheatcode at compile time. The functions are built here from the cheatcode spec instead.

Re-exportsยง

use alloy_json_abi::Function; ๐Ÿ”’
use alloy_json_abi::Param; ๐Ÿ”’
use foundry_cheatcodes_spec::Cheatcodes; ๐Ÿ”’
use foundry_cheatcodes_spec::Enum; ๐Ÿ”’
use foundry_cheatcodes_spec::Struct; ๐Ÿ”’

Functionsยง

functions ๐Ÿ”’
Returns the ABI of every cheatcode, in spec order.
resolve ๐Ÿ”’
Replaces spec struct and enum types in param with their ABI types: structs become tuples and enums become uint8.