HydroBlockchain / community-brainstorming

A place for the Hydro Community to discuss ideas for the HCDP
1 stars 0 forks source link

HCDP Rewarding DApp for Snowflake - DApp for rewarding HCPD contributions #30

Open jzafrap opened 5 years ago

jzafrap commented 5 years ago

What about making a DApp for Snowflake Dashboard, when admins (DAs) could reward HDCP tasks already finished by thei developers?

The Issue is:

AnuragHydro commented 5 years ago

@jzafrap This is really cool, and definitely a direction I'd like to move the HCDP eventually; I don't think Snowflake is quite there yet; we'd need to select a good "identity application" framework to use to differentiate Admins. I'd LOVE to see this built though - if you want to write specifications for this, I'd be glad to help you. Generally, we'd need to:

1) select a way to differentiate admins; a simple approach would be to have an owner address that can define admins, and make a function to upgrade these permissions for defining admins in the future. The Resolver would need to check the admin status and treat the user accordingly.

2) Allow creation of task descriptions, etc; I'm not sure what the best approach for this would be, but maybe 3Box could be helpful here; need to create the tasks off-chain, but render them trustlessly appropriately. Probably don't just want to store the tasks themselves in the smart contract.

3) Allow creation of payments gateways; this opens an allowance from an account controlled by the admin that deposits HYDRO into the developer's EIN as task requirements are met. You can define different rules for different types of tasks - I'd probably work with @HarshRajat and @mitdralla to try to figure out what types of tasks you want to allow for. For example, bug bounties are a little more complex than direct payments. Snowflake's payments functionality should provide you the necessary tools to create these functions.

4) Enable verification of completion of tasks; I'd say it's best to have admins make these determinations, at least in the short run; control over this function could be made upgradeable to use different logic in the future; for instance, an oracle.

I'm sure the DAs would gladly make an HCDP task for the creation of this Resolver once the requirements are clearly defined - not 100 percent sure Snowflake is ready for this yet, but theoretically, there's nothing holding back its development besides specifications :)

jzafrap commented 5 years ago

Thanks for your feedback, I Agree there is a long way to go until deploy and mature of Snowflake dashboard,, but we can work on REQs and specs until then.