Skip to content
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

view(proto): remove reserves from auction withdrawal TransactionPlannerRequest #4270

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Apr 25, 2024

Describe your changes

Accidentally defined the TransactionPlannerRequest auction withdraw submessage to specify the user reserves in Amount. But we need those to compute a balance commitment, and this requires the asset id.

@hdevalence noticed that we can defer populating this data to the view service (which is where we would have gotten it from in the first place!)

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    This is proto-breaking.

@erwanor erwanor added protobuf-breaking-changes Makes breaking changes to the protobuf definitions. A-auction Area: Relates to the auction component labels Apr 25, 2024
@erwanor erwanor self-assigned this Apr 25, 2024
@erwanor erwanor requested review from TalDerei and hdevalence April 25, 2024 18:01
@erwanor
Copy link
Member Author

erwanor commented Apr 25, 2024

This is a protobuf breaking change, so I will want a +1 and ACK before I go on to override the lint and merge.

@hdevalence
Copy link
Member

Backing up a bit, why does the caller need to specify these in the request at all? Certainly they need to be known to plan the transaction, but should it be the caller's responsibility to supply the correct values, or should that be the responsibility of the view service that's processing the request?

@erwanor erwanor added protobuf-changes Makes changes to the protobuf definitions. and removed protobuf-breaking-changes Makes breaking changes to the protobuf definitions. labels Apr 25, 2024
@hdevalence
Copy link
Member

Let's remove the fields entirely, per @cronokirby's suggestion in discord

@hdevalence hdevalence changed the title view(proto): change auction reserves to Values view(proto): remove reserves from auction withdrawal TransactionPlannerRequest Apr 25, 2024
@hdevalence hdevalence merged commit e9ed47f into main Apr 25, 2024
7 of 8 checks passed
@hdevalence hdevalence deleted the erwan/fix_planner_req branch April 25, 2024 20:23
@cratelyn cratelyn added this to the Sprint 5 milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-auction Area: Relates to the auction component protobuf-changes Makes changes to the protobuf definitions.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants