ExocoreNetwork / exocore

Omnichain Restaking
7 stars 9 forks source link

[R4R] feat(oracle) #24

Closed leonz789 closed 5 months ago

leonz789 commented 6 months ago

Description

Oracle module is used to collect external prices from sources(offchain/onchain) outside of exocorechain. And the prices access served by oracle module will be used by other modules like operator for voting power calculation. Supersedes #6 , reconstruct the commits for easy to review.

commits:

  1. proto file definition and some ignite scalffold dependencies
  2. mainly generated files from proto definition
  3. implement keeper for state
  4. add tests for keeper
  5. add cache serves as memory storage for price collection across blocks
  6. add aggregator, this implements the main logic for price aggregation Screenshot 2024-04-03 at 03 48 43
MaxMustermann2 commented 6 months ago

Can you please fix the failing workflows?

leonz789 commented 5 months ago

Merging with the original branch introduced confusion due to too many commits. I will reconstruct it to create a cleaner version. Apologies for the mess. (will follow this 6-commit structure for easy review)

leonz789 commented 5 months ago

I will close this pr, and #30 will take place for the oracle module feature pr.