Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the payout process easier #601

Open
phutchins opened this issue Jan 12, 2022 · 0 comments
Open

Make the payout process easier #601

phutchins opened this issue Jan 12, 2022 · 0 comments
Assignees
Labels
internal Changes to the build tools or dependencies payouts

Comments

@phutchins
Copy link
Contributor

phutchins commented Jan 12, 2022

Scope: Make payouts easy enough for someone outside of the dGitcoin workstream to run via command line.

UX
$ yarn payouts:generate-payout-data
(ask for necessary data to generate payout data) (current steps are documented here:
https://github.com/dcgtc/dgrants/blob/main/contracts/tasks/payout-data/poc.data.ts)

Gotchas

  • The current code that generates the payout data can only be used in the frontend and the payout data is to be copied from the console logs
  • The first time you run the payout generation script, you need to copy the merkle root out of the console.log then copy that back into the poc.data.ts, then run again to verify payouts
  • In order to get the console logs to show up you will potentially have to clear the indexdb in your browser and hard reload
  • You must have the DEPLOY_PRIVATE_KEY configured in the contracts/.env file and it must be the private key that was used to deploy the grant round in order to execute payouts
@phutchins phutchins added enhancement New feature or request internal Changes to the build tools or dependencies labels Jan 12, 2022
@phutchins phutchins added payouts and removed enhancement New feature or request labels Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes to the build tools or dependencies payouts
Projects
None yet
Development

No branches or pull requests

2 participants