Skip to main content Module deps Copy item path Source BytecodeDependency ๐ Represents a single bytecode dependency. BytecodeDependencyCollector ๐ Walks over contract HIR and collects BytecodeDependency s 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. BytecodeDependencyKind ๐ Represents a bytecode dependency kind. 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.