erc7730.convert.resolved.values module

erc7730.convert.resolved.values.encode_value(value: str | int | bool | float, abi_type: ABIDataType, out: OutputAdder) validate, json_schema_input_type=PydanticUndefined)] | None[source]View on GitHub
erc7730.convert.resolved.values.resolve_field_value(prefix: DataPath, input_field: InputFieldBase, input_field_format: FieldFormat | None, constants: ConstantProvider, out: OutputAdder) Annotated[ResolvedValuePath | ResolvedValueConstant, Discriminator(discriminator=type, custom_error_type=None, custom_error_message=None, custom_error_context=None)] | None[source]View on GitHub

Resolve value, as a data path or constant value, for a field or reference.

Parameters:
  • prefix – current path prefix

  • input_field – field description or definition

  • input_field_format – input field format

  • constants – descriptor paths constants resolver

  • out – error handler

Returns:

resolved value or None if error

erc7730.convert.resolved.values.resolve_path_or_constant_value(prefix: DataPath, input_path: DescriptorPath | DataPath | ContainerPath | None, input_value: DescriptorPath | str | int | bool | float | None, abi_type: ABIDataType, constants: ConstantProvider, out: OutputAdder) Annotated[ResolvedValuePath | ResolvedValueConstant, Discriminator(discriminator=type, custom_error_type=None, custom_error_message=None, custom_error_context=None)] | None[source]View on GitHub

Resolve value, as a data path or constant value.

Parameters:
  • prefix – current path prefix

  • input_path – input data path, if provided

  • input_value – input constant value, if provided

  • abi_type – expected encoded value data type

  • constants – descriptor paths constants resolver

  • out – error handler

Returns:

resolved value or None if error or value resolves to None