Adds functionality to query the database to retrieve the past month's worth payouts for each Filecoin address. Additionally, automatically compiles the Cassini member payouts under the payout factory address.
Adds the ability to automatically query payouts and spin up a PayoutFactory contract instantly as part of the new-payout cli command.
Add a new cli command generate-monthly-payouts that generate the CSVs for the monthly payouts. It generates three CSVs:
A Finance specific file that that parses payouts such that the last column is the address of the PayoutFactory smart contract and represents the sum of all the Cassini member earnings.
A Global payout file that represents the payouts of each invidividual filecoin address. This will be used for record keeping.
A Cassini specific file that represents the payouts of each cassini member. This will be used to deploy a PaymentSplitter contract.
Some todo's:
[x] Add cassini members to the nodes table so we can test the flow including cassini members.
Changes:
new-payout
cli command.generate-monthly-payouts
that generate the CSVs for the monthly payouts. It generates three CSVs:Finance
specific file that that parses payouts such that the last column is the address of thePayoutFactory
smart contract and represents the sum of all the Cassini member earnings.Global
payout file that represents the payouts of each invidividual filecoin address. This will be used for record keeping.Cassini
specific file that represents the payouts of each cassini member. This will be used to deploy a PaymentSplitter contract.Some todo's: