Skip to main content

Module deps

Module deps 

Source

Structsยง

BytecodeDependency ๐Ÿ”’
Represents a single bytecode dependency.
BytecodeDependencyCollector ๐Ÿ”’
Walks over contract HIR and collects BytecodeDependencys and referenced contracts.
PreprocessorDependencies ๐Ÿ”’
Holds data about referenced source contracts and bytecode dependencies.

Enumsยง

BytecodeDependencyKind ๐Ÿ”’
Represents a bytecode dependency kind.

Functionsยง

can_rewrite ๐Ÿ”’
Returns whether generated helper and artifact references preserve the source-unit identity.
handle_call_expr ๐Ÿ”’
Helper function to analyze and extract bytecode dependency from a given call expression.
is_path_in_dir ๐Ÿ”’
Returns whether path resolves within dir, accepting relative, absolute, and symlinked paths.
named_arg ๐Ÿ”’
Helper function to extract value of a given named arg.
remapping_applies ๐Ÿ”’
Returns whether a generated import would be redirected by remapping.
remapping_matches_path ๐Ÿ”’
Returns whether path has the string prefix selected by remapping.
remove_bytecode_dependencies ๐Ÿ”’
Goes over all test/script files and replaces bytecode dependencies with cheatcode invocations.