erc7730.list.list module

erc7730.list.list.get_erc7730_files(*paths: Path, out: OutputAdder) Generator[Path, None, None][source]View on GitHub

List all ERC-7730 descriptor files at given paths.

Paths can be files or directories, in which case all descriptor files in the directory are recursively listed.

Parameters:
  • paths – paths to search for descriptor files

  • out – error handler

erc7730.list.list.is_erc7730_file(path: Path) bool[source]View on GitHub

Check if a file is an ERC-7730 descriptor file.

Parameters:

path – file path

Returns:

true if the file is an ERC-7730 descriptor file

erc7730.list.list.list_all(paths: list[Path]) bool[source]View on GitHub

List all ERC-7730 descriptor files at given paths.

Paths can be files or directories, in which case all descriptor files in the directory are recursively listed.

Parameters:

paths – paths to search for descriptor files

Returns:

true if no error occurred