Crate foundry_common

Source
Expand description

§foundry-common

Common utilities for building and using foundry’s tools.

Re-exports§

Modules§

  • ABI related helper functions.
  • Commonly used calculations.
  • Support for compiling [foundry_compilers::Project]
  • Commonly used constants.
  • Commonly used contract types and functions.
  • ENS Name resolving utilities.
  • Commonly used errors
  • CLI arguments for configuring the EVM settings.
  • Contains various std::fs wrapper functions that also contain the target path in their errors
  • Utilities for working with standard input, output, and error.
  • Provider-related instantiation and usage utilities.
  • Retry utilities.
  • Support for handling/identifying selectors.
  • Misc Serde helpers for foundry crates.
  • terminal utils
  • Commonly used traits.
  • Wrappers for transactions.
  • utils 🔒
    Uncategorised utilities.

Macros§

  • Prints a message to stdout and reads a line from stdin into a String.
  • Prints a raw formatted message to stderr.
  • Prints a raw formatted message to stderr, with a trailing newline.
  • Prints a formatted error to stderr.
  • Prints a raw formatted message to stdout.
  • Prints a raw formatted message to stdout, with a trailing newline.
  • Prints a formatted warning to stderr.

Functions§

  • Block on a future using the current tokio runtime on the current thread.
  • Block on a future using the current tokio runtime on the current thread with the given handle.
  • Computes the storage slot as specified by ERC-7201, using the erc7201 formula ID.