erc7730.convert.calldata.v1.eip712_path module
Conversion of ERC-7730 v2 EIP-712 data paths to calldata descriptor EIP712_PATH binary paths.
Unlike DATA_PATH (which navigates serialized calldata by byte offsets using the ABI), EIP712_PATH navigates the EIP-712 value tree by struct field index and array slices, using the reconstructed schema. Referred to as “EIP712 v2” in the Ethereum app specifications.
- erc7730.convert.calldata.v1.eip712_path.convert_eip712_data_path(data_path: DataPath, primary_type: str, types: dict[str, list[tuple[str, str]]], out: OutputAdder) CalldataDescriptorValuePathV1 | None[source]View on GitHub
Convert an EIP-712 data path to a calldata descriptor EIP712_PATH value.
- Parameters:
data_path – resolved data path (referencing the EIP-712 value tree)
primary_type – the message primary type (root struct the path starts from)
types – struct name -> ordered list of (type string, field name)
out – error handler
- Returns:
calldata value, or None on error