Source code for erc7730.model.context

from eip712.model.schema import EIP712SchemaField, EIP712Type
from pydantic import Field

from erc7730.model.base import Model

# ruff: noqa: N815 - camel case field names are tolerated to match schema


[docs] class EIP712Schema(Model): """ EIP-712 message schema. """ primaryType: EIP712Type = Field(title="Primary Type", description="The identifier of the schema primary type.") types: dict[EIP712Type, list[EIP712SchemaField]] = Field( title="Types", description="The schema types reachable from primary type." )