FeederAlias

Documentation for eth_defi.feed.sources.FeederAlias Python class.

class FeederAlias

Bases: object

A feeder YAML that delegates feed sources to another feeder.

Alias files contain only identity metadata (feeder-id, name, role) and a canonical-feeder-id pointing to the feeder whose feed sources should be collected. They produce no TrackedPostSource entries.

Attributes summary

feeder_id

Feeder-id of the alias file.

canonical_feeder_id

Feeder-id of the canonical source-bearing feeder.

role

Role declared in the alias file (may differ from the canonical feeder's role).

name

Human-readable name from the alias file.

mapping_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
Return type

None