-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add data request incentives #83
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
08f44e3
feat(core): add request fee
mariocao 02f13a0
refactor(core): use struct for request details
mariocao 3c8e538
feat(core): update interfaces to support fees
mariocao 4498b70
test(core): add tests for result fee
mariocao f8b5863
feat(core): add request fee without gas refund
mariocao d09bdaf
feat(core): add request fee refunds based on used gas
mariocao 058b49d
test(core): add test for fee management
mariocao ec98667
chore(coverage): skip mocks, interfaces and libs
mariocao a3519ac
feat(prover): add batch sender to mapping
mariocao 7e6118e
test(prover): add tests for batch sender
mariocao 2058fb2
feat(core): add fee distribution
mariocao d0d2c02
test(core): test fee distribution logic
mariocao 6d846b6
test(core): check events for fee distributions
mariocao 881fbf9
refactor(core): check if submitter fee is positive
mariocao 3398571
test: simplify core tests
mariocao 9293806
feat(core): add increase fees function
mariocao e2a5962
test(core): add increase fee tests
mariocao e0774a1
chore: improve code comments
mariocao 8f87d98
feat(core, prover): add pausable support
mariocao d029083
test(core, prover): check functions while paused
mariocao 7a0be6a
feat(core): extend PendingRequest struct with fee info
mariocao e4b48a0
test(core): update tests using pending requests
mariocao 31a4b49
chore: bump solhint
mariocao 64d6519
refactor(core): update getPendingRequests pause behavior
mariocao 4a84692
chore(mocks): fix wrong comment for increaseFees
mariocao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nothing to fix here but we should really have a wrapper or something to simplify the 3 fees and the rest of the inputs properties. (even if the user is overpaying, they'll get it refunded.)