Skip to content
New issue

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

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

Already on GitHub? # to your account

Replace Nearblocks dependency in the indexer #1026

Open
Tguntenaar opened this issue Feb 26, 2025 · 2 comments · May be fixed by NEAR-DevHub/neardevhub-api-rs#18
Open

Replace Nearblocks dependency in the indexer #1026

Tguntenaar opened this issue Feb 26, 2025 · 2 comments · May be fixed by NEAR-DevHub/neardevhub-api-rs#18
Assignees
Labels
enhancement New feature or request

Comments

@Tguntenaar
Copy link
Collaborator

Tguntenaar commented Feb 26, 2025

Is your feature request related to a problem? Please describe.

Some proposals and proposal updates do not appear on the dashboard.

Our indexer relies on the Nearblocks API to track new transactions. However, since it depends on a specific Nearblocks endpoint, our dashboards went down when Nearblocks experienced issues.

According to the Nearblocks API documentation, the endpoint we are using is no longer recommended.

Describe the solution you'd like

We can track contract state changes for proposals and RFPs by implementing a FIFO queue-style changelog. This would allow our indexer to bypass Nearblocks and retrieve data directly from the contract.

Describe alternatives you've considered

We initially used Nearblocks as the source of truth, but it has proven unreliable.

Steps to take:

  1. Deploy a new version of the contract
  2. Deploy a new version of the indexer
  3. Test if has all the proposals
@Tguntenaar Tguntenaar added the enhancement New feature or request label Feb 26, 2025
@Tguntenaar Tguntenaar self-assigned this Feb 26, 2025
@Tguntenaar Tguntenaar moved this to 🏗 In progress in 🚀 DevHub Products Feb 26, 2025
@ori-near
Copy link
Collaborator

@Tguntenaar I believe this is not an issue within NEAR Treasury. If so, can we move it to the appropriate repo and project?

@Tguntenaar
Copy link
Collaborator Author

Update

Today we hit the nearblocks API rate limit of 20.000 calls a day. The tests of PR #18 aren't functional anymore for today. I will replace the api key so the tests can succeed and we can merge.

@ori-near ori-near moved this from 🏗 In progress to ❌ Blocked in 🚀 DevHub Products Mar 12, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
Status: ❌ Blocked
Development

Successfully merging a pull request may close this issue.

3 participants