oceanprotocol-archive / oceandao-proposal-portal

OceanDao proposal portal
0 stars 1 forks source link

Add `/state/:projectId` endpoint #134

Closed trizin closed 2 years ago

trizin commented 2 years ago

Response example:

{
  "level": "New Project",
  "ceiling": 3000,
  "projectCategory": "build",
  "grantsProposed": 1,
  "grantsReceived": 0,
  "grantsCompleted": 0,
  "availableEarmaks": [
    "newproject",
    "coretech",
    "general",
    "outreach"
  ]
}
KatunaNorbert commented 2 years ago

I think we could squeeze the changes for the new earmark(#132) in here, looks like this endpoint will dictate the earmark logic

KatunaNorbert commented 2 years ago

And we could also remove the earmark logic from create proposal: https://github.com/oceanprotocol/oceandao-proposal-portal/blob/main/backend/routes/project.js#L80