FeederAlias
Documentation for eth_defi.feed.sources.FeederAlias Python class.
- class FeederAlias
Bases:
objectA feeder YAML that delegates feed sources to another feeder.
Alias files contain only identity metadata (feeder-id, name, role) and a
canonical-feeder-idpointing to the feeder whose feed sources should be collected. They produce noTrackedPostSourceentries.Attributes summary
Feeder-id of the alias file.
Feeder-id of the canonical source-bearing feeder.
Role declared in the alias file (may differ from the canonical feeder's role).
Human-readable name from the alias file.
Path to the alias YAML file.
Methods summary
__init__(feeder_id, canonical_feeder_id, ...)- feeder_id: str
Feeder-id of the alias file.
- canonical_feeder_id: str
Feeder-id of the canonical source-bearing feeder.
- role: str
Role declared in the alias file (may differ from the canonical feeder’s role).
- name: str
Human-readable name from the alias file.
- mapping_file: pathlib.Path
Path to the alias YAML file.
- __init__(feeder_id, canonical_feeder_id, role, name, mapping_file)
- Parameters
feeder_id (str) –
canonical_feeder_id (str) –
role (str) –
name (str) –
mapping_file (pathlib.Path) –
- Return type
None