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:
ModelDescriptor 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
- 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:
IntEnumSolidity base type of an EIP-712 struct field (EIP712_FIELD TYPE / SolType enum).
- pydantic model erc7730.model.calldata.v1.eip712.CalldataDescriptorEIP712StructV1[source]View on GitHub
Bases:
ModelDescriptor 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:
CalldataDescriptorInstructionBaseV1Instruction 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