erc7730.model.calldata.v1.eip712 module

Data model for the EIP712_SCHEMA calldata descriptor struct and its nested structs.

These model classes represent the exact same data fields that are serialized into TLV structs. Referred to as “EIP712 v2” in the Ethereum app specifications (https://github.com/LedgerHQ/app-ethereum), but part of the calldata (generic parser) v1 descriptor format.

pydantic model erc7730.model.calldata.v1.eip712.CalldataDescriptorEIP712FieldV1[source]View on GitHub

Bases: Model

Descriptor for the EIP712_FIELD struct (one field of an EIP-712 struct type).

Fields:
Validators:
  • _validate_field » all fields

field array_dimensions: list[int | None] [Optional]

One entry per array dimension, innermost first. None means dynamic dimension, an integer means the fixed dimension size.

Validated by:
  • _validate_field

field name: str [Required]

Field name (ASCII)

Constraints:
  • min_length = 1

Validated by:
  • _validate_field

field sol_type: CalldataDescriptorEIP712SolType [Required]

Solidity base type of the field

Validated by:
  • _validate_field

field struct_name: str | None = None

Referenced struct name, only set if the type is STRUCT.

Validated by:
  • _validate_field

field type_size: int | None = None

Size in bytes, for INT/UINT/BYTES_FIX (1..32).

Constraints:
  • ge = 1

  • le = 32

Validated by:
  • _validate_field

class erc7730.model.calldata.v1.eip712.CalldataDescriptorEIP712SolType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]View on GitHub

Bases: IntEnum

Solidity base type of an EIP-712 struct field (EIP712_FIELD TYPE / SolType enum).

ADDRESS = 3
BOOL = 4
BYTES_DYN = 7
BYTES_FIX = 6
INT = 1
STRING = 5
STRUCT = 0
UINT = 2
pydantic model erc7730.model.calldata.v1.eip712.CalldataDescriptorEIP712StructV1[source]View on GitHub

Bases: Model

Descriptor for the EIP712_STRUCT struct (one EIP-712 struct type declaration).

Fields:
Validators:
  • _validate_struct » all fields

field fields: list[CalldataDescriptorEIP712FieldV1] [Required]

One entry per declared field, in declaration order.

Validated by:
  • _validate_struct

field name: str [Required]

Struct name (ASCII). ‘EIP712Domain’ identifies the domain struct.

Constraints:
  • min_length = 1

Validated by:
  • _validate_struct

pydantic model erc7730.model.calldata.v1.eip712.CalldataDescriptorInstructionEIP712SchemaV1[source]View on GitHub

Bases: CalldataDescriptorInstructionBaseV1

Instruction descriptor for the EIP712_SCHEMA struct (whole schema, all struct types nested).

Fields:
Validators:
  • _validate_schema » all fields

field structs: list[CalldataDescriptorEIP712StructV1] [Required]

One entry per declared struct type.

Constraints:
  • min_length = 1

Validated by:
  • _validate_schema

field version: Literal[1] = 1

Version of the EIP712_SCHEMA struct

Validated by:
  • _validate_schema

property descriptor: ', metadata=[MinLen(min_length=8), MaxLen(max_length=32768)])]View on GitHub