Skip to main content

Module fs

Module fs 

Source
Expand description

Implementations of Filesystem cheatcodes.

Structsยง

ParsedArtifactPath ๐Ÿ”’
Parsed artifact path components.

Enumsยง

ArtifactSource ๐Ÿ”’
Resolved location of an artifact referenced by a cheatcode path argument.

Functionsยง

deploy_code ๐Ÿ”’
Helper function to deploy contract from artifact code. Uses CREATE2 scheme if salt specified.
ffi ๐Ÿ”’
get_artifact_code ๐Ÿ”’
Returns the bytecode from a JSON artifact file.
get_artifact_source ๐Ÿ”’
Resolves a cheatcode artifact reference to its source.
latest_broadcast ๐Ÿ”’
map_broadcast_tx_type ๐Ÿ”’
parse_artifact_path ๐Ÿ”’
Parses an artifact path string into its components.
parse_broadcast_results ๐Ÿ”’
prompt ๐Ÿ”’
prompt_input ๐Ÿ”’
prompt_password ๐Ÿ”’
read_artifact_file ๐Ÿ”’
Reads an artifact JSON file, mapping I/O errors to a helpful message when the lookup fell through the in-memory artifacts list.
read_dir ๐Ÿ”’
write_file ๐Ÿ”’