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Β§

LargeArraySerdeAttrs πŸ”’
MultiSolMacroGen
SolMacroGen

ConstantsΒ§

SERDE_ARRAY_IMPL_MAX_LEN πŸ”’
SERDE_WITH_DEP πŸ”’

FunctionsΒ§

add_large_array_serde_attrs πŸ”’
Adds serde_with adapters where Serde’s built-in array implementations stop.
large_array_serde_adapter πŸ”’
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 πŸ”’