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

Build Oracle Monitoring Tool #1

Closed
jppade opened this issue Apr 3, 2023 · 0 comments · Fixed by #3
Closed

Build Oracle Monitoring Tool #1

jppade opened this issue Apr 3, 2023 · 0 comments · Fixed by #3

Comments

@jppade
Copy link
Contributor

jppade commented Apr 3, 2023

We are looking for an experienced Go developer who is interested in writing a service which monitors DIA oracles performance metrics.

The service should take these parameters as input:

  1. Oracle address
  2. Chain ID
  3. RPC node

Given these input parameters, it should connect to the respective blockchain via RPC node and scan for oracle update events.
More precisely, the the following output quantities should be written into a database:

  1. Oracle creation date
  2. Oracle funding wallet address
  3. Transaction hash
  4. Block number
  5. Timestamp of block inclusion
  6. Asset which got updated
  7. Asset value
  8. Timestamp of data inside (part of the update)
  9. Gas usage
  10. Gas cost
  11. Total transaction cost
  12. Remaining gas funds in oracle funding wallet
  13. TX sender

As there is no straightforward way to get the Oracle creation date/block/hash please proceed as follows:
Check for the latest transaction in the DB. If there is no entry, iterate backwards in history and fetch all transactions until you hit the contract creation. If there is an entry, continue from this block until now.

Furthermore, please:

  • Write the service in Go
  • Use timescaleDB as database
  • Allow to input more than one contract address per blockchain and run the service on multiple blockchains in parallel
  • Develop comprehensive unit tests to ensure functionality and robustness of the oracle monitoring service
  • Deliver a docker container with entire functionality
  • Provide documentation for setting up the service and running tests

Resources:
Documentation for DIA oracles architecture
Demo oracles

If you have questions don't hesitate to ask. Ideally we can connect on our Discord server in order to discuss if necessary.

@jppade jppade changed the title Build Monitoring Tool Build Oracle Monitoring Tool Apr 3, 2023
@nch7 nch7 mentioned this issue May 5, 2023
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

Successfully merging a pull request may close this issue.

1 participant