erc7730.convert.resolved.convert_erc7730_input_to_resolved module
- final class erc7730.convert.resolved.convert_erc7730_input_to_resolved.ERC7730InputToResolved[source]View on GitHub
Bases:
ERC7730Converter
[InputERC7730Descriptor
,ResolvedERC7730Descriptor
]Converts ERC-7730 descriptor input to resolved form.
- After conversion, the descriptor is in resolved form:
URLs have been fetched
Contract addresses have been normalized to lowercase
References have been inlined
Constants have been inlined
Field definitions have been inlined
Nested fields have been flattened where possible
Selectors have been converted to 4 bytes form
- convert(descriptor: InputERC7730Descriptor, out: OutputAdder) ResolvedERC7730Descriptor | None [source]View on GitHub
Convert a descriptor from/to ERC-7730.
Conversion may fail partially, in which case it should emit errors with WARNING level, or totally, in which case it should emit errors with ERROR level.
Conversion can return a single descriptor, or multiple ones, in the form of a dictionary with unique identifiers.
- Parameters:
descriptor – input descriptor to convert
out – output sink
- Returns:
converted descriptor, or None if conversion failed