openzeppelin_monitor::services::filter

Module evm_helpers

Source
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§

  • Compares two addresses for equality, ignoring case and “0x” prefixes.
  • Compares two function signatures for equality, ignoring case and whitespace.
  • Converts an B256 hash to its hexadecimal string representation.
  • Formats an ethabi Token into a consistent string representation.
  • Converts an H160 address to its hexadecimal string representation.
  • Converts an H256 hash to its hexadecimal string representation.
  • Normalizes an address string by removing “0x” prefix, spaces, and converting to lowercase.
  • Normalizes a function signature by removing spaces and converting to lowercase.
  • Converts a hexadecimal string to an H160 address.
  • Converts a hexadecimal string to an H256 hash.