Skip to main content

Module evm

Module evm 

Source

Re-exportsยง

use alloy_sol_types::Panic; ๐Ÿ”’
use alloy_sol_types::PanicKind; ๐Ÿ”’
use alloy_sol_types::Revert; ๐Ÿ”’
use alloy_sol_types::SolError; ๐Ÿ”’
use alloy_sol_types::abi::AbiDecoderConfig; ๐Ÿ”’
use alloy_sol_types::abi::decode_with_config; ๐Ÿ”’
use alloy_sol_types::abi::token::PackedSeqToken; ๐Ÿ”’
use foundry_evm::core::decode::ASSERTION_FAILED_PREFIX; ๐Ÿ”’
use super::*; ๐Ÿ”’

Functionsยง

assertion_message_condition ๐Ÿ”’
Returns the condition under which symbolic revert data is an Error(string) whose message contains the assertion prefix, validated like is_revert_assertion_failure: the encoded length must be concrete and within the data, the concrete bytes must decode as UTF-8 and contain the prefix on their own, and every symbolic byte must be ASCII so the message stays valid UTF-8.
assertion_revert_condition ๐Ÿ”’
Returns the condition under which symbolic revert data is an assertion failure: a Panic(0x01) or an Error(string) whose message contains the assertion prefix.
byte_expr ๐Ÿ”’
Returns the byte extraction expression for a symbolic word.
byte_word ๐Ÿ”’
byte_word_dynamic ๐Ÿ”’
cheatcode_error_revert_condition ๐Ÿ”’
clz_word ๐Ÿ”’
Returns the number of leading zero bits in value, or 256 when it is zero.
exp_expr_for_concrete_exponent ๐Ÿ”’
is_assertion_revert ๐Ÿ”’
is_revert_assertion_failure ๐Ÿ”’
shift_left ๐Ÿ”’
signextend ๐Ÿ”’
signextend_word ๐Ÿ”’
signextend_word_dynamic ๐Ÿ”’