erc7730.lint.v2.lint_validate_display_fields module
V2 linter that validates display fields against reference ABIs fetched from Etherscan.
- In v2, ABI and EIP-712 schemas are NOT embedded in the descriptor. Instead:
For contract context: fetch ABI from Etherscan, validate display field paths match ABI params, and check selector exhaustiveness.
For EIP-712 context: no schema to validate against (no-op).
- final class erc7730.lint.v2.lint_validate_display_fields.ValidateDisplayFieldsLinter[source]View on GitHub
Bases:
ERC7730LinterValidates display fields against reference ABIs fetched from Etherscan.
- For contract context:
Fetches ABI from Etherscan for each deployment
Validates that display field paths exist in the ABI
Validates that all ABI function params have display fields
Checks that all selectors in the ABI have corresponding display formats
- For EIP-712 context:
No schema available in v2 resolved model, so no validation is performed
- lint(descriptor: ResolvedERC7730Descriptor, out: OutputAdder) None[source]View on GitHub