-
Notifications
You must be signed in to change notification settings - Fork 168
BM-1933: Additional Order Fulfillment Checks #1329
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
Open
austinabell
wants to merge
17
commits into
main
Choose a base branch
from
mintybasil/add-fulfill-order-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
011eea2
Add check for PaymentRequirementsFulfilled
mintybasil 0327b75
Add fulfillment check before proving
mintybasil 6fb0842
Merge branch 'main' into mintybasil/add-fulfill-order-checks
mintybasil 687aef7
Skip fulfilled order, fmt
mintybasil 6d1bfde
Merge branch 'main' into mintybasil/add-fulfill-order-checks
austinabell a0ec6cb
Merge branch 'main' into mintybasil/add-fulfill-order-checks
austinabell 8970a6c
fmt
austinabell 6b01a29
Merge branch 'main' into mintybasil/add-fulfill-order-checks
austinabell 9e3f1a2
remove re-added backup file
austinabell db22e9d
include raw error message in error message
austinabell 8320cca
add sanity check for fulfillment status before finishing proving
austinabell 108cbb4
Merge branch 'main' into mintybasil/add-fulfill-order-checks
austinabell abec7b6
fix to only cancel submitting if secondary fulfilling
austinabell 212ef69
add comment to give context about fulfillment check
austinabell cbdaba5
update e2e test
austinabell 2bd1fc8
Merge branch 'main' into mintybasil/add-fulfill-order-checks
austinabell 0533e00
update to warn log on payment error event instead of erroring for the…
austinabell 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Second guessing this change. Is perhaps a bit misleading to throw an error if only one of the fulfillments failed, especially since the tx didn't fail. Perhaps the sanity checks to avoid submitting if the order is fulfilled is sufficient? @mintybasil was there a strong reason why you wanted this, or just for a better error message? Wondering if okay to just warn log in these cases?
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.
Definitely agree this could be handled more gracefully if there are multiple fulfillments. I am a bit biased since I rarely submit batches > 1.
Im on mobile right now, but IIRC this was also to address the successful submission log that specifies the reward amounts, since that is no longer accurate.
Warn level log seems very reasonable, that makes the issue visible to operators which is all that really matters.