erc7730.model.paths.path_schemas module
- class erc7730.model.paths.path_schemas.FormatPaths(*, data_paths: set[erc7730.model.paths.DataPath], container_paths: set[erc7730.model.paths.ContainerPath])[source]View on GitHub
Bases:
object
- container_paths: set[ContainerPath]
- erc7730.model.paths.path_schemas.compute_abi_schema_paths(abi: Function) set[DataPath] [source]View on GitHub
Compute the sets of valid schema paths for an ABI function.
- Parameters:
abi – Solidity ABI function
- Returns:
valid schema paths
- erc7730.model.paths.path_schemas.compute_eip712_schema_paths(schema: EIP712Schema) set[DataPath] [source]View on GitHub
Compute the sets of valid schema paths for an EIP-712 schema.
- Parameters:
schema – EIP-712 schema
- Returns:
valid schema paths
- erc7730.model.paths.path_schemas.compute_format_schema_paths(format: ResolvedFormat) FormatPaths [source]View on GitHub
Compute the sets of schema paths referred in an ERC7730 Format section.
- Parameters:
format – resolved $.display.format section
- Returns:
schema paths used by field formats
- erc7730.model.paths.path_schemas.data_path_to_schema_path(path: DataPath) DataPath [source]View on GitHub
Convert a data path to a schema path.
Example: #.foo.[].[-2].[1:5].bar -> #.foo.[].[].[].bar
- Parameters:
path – data path
- Returns:
schema path