MidasRegistryProduct
Documentation for eth_defi.midas.registry.MidasRegistryProduct Python class.
- class MidasRegistryProduct
Bases:
objectScanner-friendly Midas product entry.
Attributes summary
Midas Hardhat network key from the upstream registry.
EVM chain id.
Midas product symbol, e.g.
mToken address.
Midas
IDataFeedcontract exposinggetDataInBase18().Chainlink-compatible public product feed, when present.
Preferred deposit vault address, when present.
Preferred redemption vault address, when present.
First block where the product token bytecode exists, when scanned.
Timestamp of
first_seen_at_blockas naive UTC datetime, when scanned.Raw product dictionary from
MIDAS_ADDRESSES_PER_NETWORK.Can this product be promoted to the shared vault scanner adapter.
Can this product be read with the Midas historical datafeed scanner.
Get the local JSON-RPC environment variable for this product chain.
Methods summary
__init__(network, chain_id, symbol, token, ...)- network: str
Midas Hardhat network key from the upstream registry.
- chain_id: int
EVM chain id.
- symbol: str
Midas product symbol, e.g.
mTBILL.
- token: Optional[str]
mToken address.
Nonefor incomplete or bridge-only entries.
- data_feed: Optional[str]
Midas
IDataFeedcontract exposinggetDataInBase18().
- custom_feed: Optional[str]
Chainlink-compatible public product feed, when present.
- deposit_vault: Optional[str]
Preferred deposit vault address, when present.
- redemption_vault: Optional[str]
Preferred redemption vault address, when present.
- first_seen_at_block: Optional[int]
First block where the product token bytecode exists, when scanned.
- first_seen_at: Optional[datetime.datetime]
Timestamp of
first_seen_at_blockas naive UTC datetime, when scanned.
- property rpc_env_var: Optional[str]
Get the local JSON-RPC environment variable for this product chain.
- property has_required_historical_contracts: bool
Can this product be read with the Midas historical datafeed scanner.
- property has_required_adapter_data: bool
Can this product be promoted to the shared vault scanner adapter.
- __init__(network, chain_id, symbol, token, data_feed, custom_feed, deposit_vault, redemption_vault, first_seen_at_block, first_seen_at, raw)
- Parameters
network (str) –
chain_id (int) –
symbol (str) –
first_seen_at (Optional[datetime.datetime]) –
- Return type
None