build_curator_metadata_json

Documentation for eth_defi.vault.curator.build_curator_metadata_json function.

build_curator_metadata_json(yaml_path, public_url='')

Build a CuratorMetadata dict from a curator YAML file.

Twitter handles are expanded to full https://x.com/{handle} URLs. LinkedIn company identifiers are expanded to full https://www.linkedin.com/company/{id} URLs.

Parameters
  • yaml_path (pathlib.Path) – Path to a curator YAML file.

  • public_url (str) – Public base URL for constructing logo URLs.

Returns

Metadata dict ready for JSON serialisation.

Return type

eth_defi.vault.curator.CuratorMetadata