Expand description
Helper functions for EVM-specific operations.
This module provides utility functions for working with EVM-specific data types and formatting, including address and hash conversions, signature normalization, and token value formatting.
Functions§
- are_
same_ address - Compares two addresses for equality, ignoring case and “0x” prefixes.
- are_
same_ signature - Compares two function signatures for equality, ignoring case and whitespace.
- b256_
to_ string - Converts an B256 hash to its hexadecimal string representation.
- format_
token_ value - Formats an ethabi Token into a consistent string representation.
- h160_
to_ string - Converts an H160 address to its hexadecimal string representation.
- h256_
to_ string - Converts an H256 hash to its hexadecimal string representation.
- normalize_
address - Normalizes an address string by removing “0x” prefix, spaces, and converting to lowercase.
- normalize_
signature - Normalizes a function signature by removing spaces and converting to lowercase.
- string_
to_ h256 - Converts a hexadecimal string to an H256 hash.
- string_
to_ i256 - Converts a string to an I256 value.
- string_
to_ u256 - Converts a string to a U256 value.