Giveth / DeVouch-BE

DeVouch - Decentralized Vouching via Attestations
GNU General Public License v3.0
22 stars 2 forks source link

Fetch Retro Funding project information via API #102

Open divine-comedian opened 4 weeks ago

divine-comedian commented 4 weeks ago

Currently we use a JSON list published by retrolist to get the list of projects and their related information for retrofunding rounds.

We should instead use an API provided by Agora to programatically fetch the latest list of included projects (exluding rejected applications) and the latest information.

API endpoint is here https://vote.optimism.io/api_v1 however it requires an API key. I have it and will share privately.

I checked the Agora API response and it uses the same projectId as retrolist does, so we should have no problem in replacing this method and testing it out on Retro Funding 4 projects.

divine-comedian commented 3 weeks ago

Can update and test it with round 4, when we get projects from round 5 we can test it as well.

if a project is remove from the round we don't show it anymore on DeVouch.

create a new source for Retro Funding 5

rf5-{projectId}

we can also hide them as applications are removed or disqualified instead of deleting them

divine-comedian commented 2 weeks ago

@MohammadPCh worked on this so we can now fetch projects from round 4 & 5 using Agora API - this is now on staging.

divine-comedian commented 2 weeks ago

The API for getting round 5 projects is returning empty data, will need to check with Agora team what is up

divine-comedian commented 1 week ago

We fetched the info from retrolist and Cherik found a way to refetch from their JSON list every hour

Retrolist app is also refreshing their JSON periodically so this should be able to let us update applications in near real time

Agora API for RF5 won't be delivered until Sept 20 so this needed to be our alternative approach.

Deprioritising this until Agora improves the delivery and timeliness of their round specific API