Skip to content

Make the payout process easier #601

Description

@phutchins

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

Metadata

Metadata

Labels

internalChanges to the build tools or dependenciespayouts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions