Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle improvements #112

Open
2 of 16 tasks
sergiimk opened this issue Aug 7, 2024 · 0 comments
Open
2 of 16 tasks

Oracle improvements #112

sergiimk opened this issue Aug 7, 2024 · 0 comments

Comments

@sergiimk
Copy link
Member

sergiimk commented Aug 7, 2024

An idea dump for oracle improvements:

  • Scan limited range of blocks on startup (e.g. last N days), not from the very beginning
  • Debug info for lines in release build
  • Oracle is killed by liveness checks when Infura goes down before logging anything
  • Single request that results in API 500 error can DOS the oracle (retry death loop)
  • Upgradeability proxy
    • Consider foundry upgrades [1] [2]
    • Consider eternal storage pattern
  • Add emergency stop
  • Add simple payments
    • fallback function?
    • treasury / transfer-all-ETH-to admin function
    • emergency withdraw
  • Arbitrary metadata with request (e.g. to associate request with contract data)
  • Support SQL parametrization $var
  • Ability to self-deliver signed responses (reconcile with commitment RFC)
  • Handle limits
  • Pagination support
  • Streaming internal architecture
  • Websocket subscriptions instead of polling
  • Use latest/safe/finalized aliases?
  • Handle reorgs
@sergiimk sergiimk changed the title Oracle provider improvements Oracle improvements Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant