erc7730.lint.classifier package

Submodules

Module contents

class erc7730.lint.classifier.Classifier[source]View on GitHub

Bases: ABC, Generic[Schema]

Given a schema (which is an EIP712 schema or an ABI schema), classify the transaction type with some predefined ruleset.

abstractmethod classify(schema: Schema) TxClass | None[source]View on GitHub
class erc7730.lint.classifier.TxClass(*values)[source]View on GitHub

Bases: StrEnum

PERMIT = 'permit'
STAKE = 'stake'
SWAP = 'swap'
WITHDRAW = 'withdraw'