-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add challenge DF tables, routes, parsers #57
Conversation
SELECT predictoor_addr AS LP_addr, 0 AS passive, 0 AS curating, OCEAN_amt FROM predictoor_rewards WHERE round = ? | ||
) AS foo GROUP BY LP_addr`, | ||
[round, round, round, round] | ||
INSERT INTO rewards_summary(LP_addr, passive_amt, curating_amt, predictoor_amt, challenge_amt, round) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
round INT NOT NULL, | ||
PRIMARY KEY(winner_addr, round) | ||
)` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
expect(parseCsv).toHaveBeenCalledTimes(14) | ||
expect(crypto.createHash).toHaveBeenCalledTimes(14) | ||
expect(mockHash.update).toHaveBeenCalledTimes(14) | ||
expect(mockHash.digest).toHaveBeenCalledTimes(14) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Fixes #55
Changes proposed in this PR: