Layr-Labs / sidecar

EigenLayer Node Indexer
Other
1 stars 0 forks source link

Feature Request: ABI Parsing and Dynamic Event Data Handling at Block Height #11

Open jac18281828 opened 2 weeks ago

jac18281828 commented 2 weeks ago

Description

We need to enhance our system by implementing the following functionality:

  1. Script to Track Upgrades and ABI Changes:

    • Develop a script that, given a table of proxy addresses, can:
      • Identify all block heights associated with upgrades and implementation ABI changes.
      • Use the Etherscan API to retrieve the ABI data for each implementation associated with these block heights.
  2. Dynamic Loading and Event Parsing:

    • Implement functionality to dynamically load the ABI data (in JSON format) at runtime.
    • Use this dynamically loaded ABI data to parse events on-the-fly while the sidecar is recovering.
    • Ensure that the sidecar can continue to listen for and process events seamlessly after catching up.

Acceptance Criteria

Additional Notes

ypatil12 commented 2 weeks ago

How do we handle the edge case of a contract ABI not being verified when we upgrade? Would we have to backfill?

jac18281828 commented 2 weeks ago

How do we handle the edge case of a contract ABI not being verified when we upgrade? Would we have to backfill?

This will not be automatic. Upgrade will be manually confirmed. Verified ABI will be required for releases.