erc7730.lint.lint_transaction_type_classifier module
- final class erc7730.lint.lint_transaction_type_classifier.ClassifyTransactionTypeLinter[source]View on GitHub
Bases:
ERC7730Linter
given schema/ABI, classify the transaction type
if class found, check descriptor display fields against predefined ruleset
possible class (swap, staking withdraw, staking deposit)
- lint(descriptor: ResolvedERC7730Descriptor, out: OutputAdder) None [source]View on GitHub
- class erc7730.lint.lint_transaction_type_classifier.DisplayFormatChecker(tx_class: TxClass, display: ResolvedDisplay)[source]View on GitHub
Bases:
object
Given a transaction class and a display formats, check if all the required fields of a given transaction class are being displayed. If a field is missing emit an error.
- check(out: OutputAdder) None [source]View on GitHub