Skip to main content

Module sol_macro_gen

Module sol_macro_gen 

Source
Expand description

SolMacroGen and MultiSolMacroGen

This type encapsulates the logic for expansion of a Rust TokenStream from Solidity tokens. It uses the expand method from alloy_sol_macro_expander underneath.

It holds info such as path to the ABI file, name of the file and the rust binding being generated, and lastly the expansion itself, i.e the Rust binding for the provided ABI.

It contains methods to read the json abi, generate rust bindings from the abi and ultimately write the bindings to a crate or modules.

Structsยง

MultiSolMacroGen
SolMacroGen

Functionsยง

public_enum_names ๐Ÿ”’
qualify_shadowed_sibling_module_paths ๐Ÿ”’
Qualifies paths to sibling binding modules when a generated item in the current module shadows that module name.
qualify_unqualified_module_paths ๐Ÿ”’
top_level_module_names ๐Ÿ”’
write_mod_name ๐Ÿ”’