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.

abstract classify(schema: Schema) TxClass | None[source]View on GitHub
class erc7730.lint.classifier.TxClass(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]View on GitHub

Bases: StrEnum

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