Expand description
Utility functions
Enums§
- Numeric
- Helper type to parse both
u64
andU256
Functions§
- deserialize_
stringified_ 🔒percent - Deserialize stringified percent. The value must be between 0 and 100 inclusive.
- deserialize_
u64_ 🔒or_ max - Deserialize a
u64
or “max” foru64::MAX
. - deserialize_
usize_ 🔒or_ max - Deserialize a
usize
or “max” forusize::MAX
. - evm_
spec_ id - Returns the [SpecId] derived from [EvmVersion]
- find_
git_ root - Returns the path of the top-level directory of the working git tree.
- find_
project_ root - Returns the root path to set for the project root.
- foundry_
toml_ dirs - Returns a list of unique paths to all folders under
root
that contain afoundry.toml
file - get_
dir_ 🔒remapping - Returns a remapping for the given dir
- load_
config - Loads the config for the current project workspace.
- load_
config_ with_ root - Loads the config for the current project workspace or the provided root path.
- remappings_
from_ env_ var - Returns the remappings from the given var
- remappings_
from_ newline - Returns all [
Remapping
]s contained in theremappings
str separated by newlines - to_
array_ value - Converts the
val
into afigment::Value::Array