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

Add ID filtering to AuctionsRequest; add local_seq to AuctionsResponse #4472

Merged
merged 5 commits into from
May 24, 2024

Conversation

jessepinho
Copy link
Contributor

@jessepinho jessepinho commented May 24, 2024

Describe your changes

This PR makes two changes:

  1. Add an auction_ids_filter to AuctionsRequest, so that clients can make requests (e.g., with queryLatestState) for just specific auctions rather than all auctions at once.
  2. Add a local_seq property to AuctionsResponse to indicate the local view service's own knowledge of the sequence number for an auction. (See pcli: auction end-all, withdraw-all #4385 (comment).)

Relevant changes are to the protobuf here, plus a couple TODO items here and here.

Issue ticket number and link

penumbra-zone/web#1059 and #4385 (comment)

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:

    Only touches Auctions RPC methods.

//
// Dutch auctions move from:
// 0 (opened) => 1 (closed) => n (withdrawn)
uint64 local_seq = 5;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note_record above uses 4, which is why this field uses 5

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh strange, could you move it so that they're ordered 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@hdevalence hdevalence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hdevalence hdevalence merged commit fcb50c2 into main May 24, 2024
13 checks passed
@hdevalence hdevalence deleted the jessepinho/auctions-rpc branch May 24, 2024 21:01
@cratelyn cratelyn added protobuf-changes Makes changes to the protobuf definitions. A-auction Area: Relates to the auction component labels May 24, 2024
@TalDerei
Copy link
Collaborator

did async review post merge and LGTM!

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