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.
ConstructorContext ๐Ÿ”’
Compiler and source context whose validation would be lost by rewriting construction.
PreprocessorDependencies ๐Ÿ”’
Holds data about referenced source contracts and bytecode dependencies.
ReturnDataObserver ๐Ÿ”’
Finds return-buffer observations in a contract and the helpers it can call internally.

Enumsยง

BytecodeDependencyKind ๐Ÿ”’
Represents a bytecode dependency kind.

Functionsยง

add_native_dependencies ๐Ÿ”’
Adds exact dependency paths unless the source is already classified conservatively.
can_rewrite ๐Ÿ”’
Returns whether generated helper and artifact references preserve the source-unit identity.
constructor_uses_private_constants ๐Ÿ”’
Returns whether constructor parameter types reference private constants.
handle_call_expr ๐Ÿ”’
Helper function to analyze and extract bytecode dependency from a given call expression.
import_alias ๐Ÿ”’
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.
unique_identifier ๐Ÿ”’
Returns an identifier that cannot collide with text in the original source.
using_dependency_sources ๐Ÿ”’
Returns sources whose code can be embedded through the given using for directives.
valid_constructor_call ๐Ÿ”’
Checks constraints that disappear when new is replaced by a cheatcode call. The generated argument struct retains type checks, but not source ABI-coder restrictions. Keep parameterized ABI-coder-v1 calls native rather than duplicating Solc ABI validation.