BuidlGuidl / onchain-impact-dashboard

Show projects ongoing impact based on past retroactive funding rounds voting metric weightings
https://onchain-impact-dashboard.vercel.app
MIT License
1 stars 8 forks source link

Use Agora API instead of /api/stub/projects #61

Open escottalexander opened 1 month ago

escottalexander commented 1 month ago

This issue is for swapping out the any place we are calling our stubbed projects API for the Agora API.

https://vote.optimism.io/api_v1/projects. Reach out if you need the API key for testing but obviously we don't want it hardcoded anywhere. Also keep in mind that this endpoint returns projects that we do not need to show. The authority on whther we need to show a project or not is the mapping returned by our api/stub/mapping endpoint.

swellander commented 1 month ago

I don't think we currently use the api/stub/projects endpoint anywhere in our codebase. Once the project data is initially seeded into our db, I think we'll only need to hit the Agora API when we add new projects. So this ticket will have a lot of overlap with #63

escottalexander commented 1 month ago

Ah, yes. That makes sense. I am adding a phase 2 label to these two issues.

swellander commented 1 month ago

It looks like the Agora API doesn't expose a project detail /projects/{ID} endpoint for some reason. So when the time comes to add new projects to our db, I guess we'll need loop over every project returned from /projects