erc7730.convert.ledger.eip712.convert_eip712_to_erc7730 module
- final class erc7730.convert.ledger.eip712.convert_eip712_to_erc7730.EIP712toERC7730Converter[source]View on GitHub
Bases:
ERC7730Converter
[ResolvedEIP712DAppDescriptor
,InputERC7730Descriptor
]Converts Ledger legacy EIP-712 descriptor to ERC-7730 descriptor.
Generates 1 output ERC-7730 descriptor per contract, as ERC-7730 descriptors only represent 1 contract.
- convert(descriptor: ResolvedEIP712DAppDescriptor, out: OutputAdder) dict[str, InputERC7730Descriptor] | 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