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ยง
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