ethereum / clrfund

Eth2 CLR project built on clr.fund

Home Page:https://eth2clrfund.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generalize the round criteria

samajammin opened this issue · comments

Currently our recipient round criteria (https://eth2clrfund.netlify.app/#/join) is built specifically for the Eth2 round - we should generalize the functionality for any clr.fund instance:

image

What's the best approach here? Should this feed from the deployer application somehow? Should this data live on the FundingRound smart contract? Or should any instance/fork just add their own criteria via HTML? Maybe we reference some IPFS hash from the registry contract?

Here's the current code: https://github.com/ethereum/clrfund/blob/develop/vue-app/src/components/CriteriaModal.vue

@daodesigner @auryn-macmillan keen to get your thoughts on approach here. Perhaps there's already a plan with the deployer to solve these kind of instance-specific content? Thanks in advance 😄

Ideal case, this should be configurable in the deployer or in some admin view in the app.

There is a metadata field built in to the deployer subgraph in proxy factory, need to identify all the areas this applies to to see if it's reasonable to store it all on chain events and pull from the subgraph to feed the UI.

Ok sounds good @daodesigner - please keep us posted.

In the meantime @wackerow isolated the round criteria into a standalone file, so at least it's easy for a project to fork & customize for their needs: https://github.com/ethereum/clrfund/blob/develop/vue-app/src/plugins/round/criteria.ts

Marking as solved in #443 - at least now we have a simple criteria file that can easily be edited: https://github.com/ethereum/clrfund/blob/develop/vue-app/src/plugins/round/criteria.ts