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

protos(view): add a subaccount filter to the OwnedPositionIds rpc #4985

Closed

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Jan 14, 2025

Describe your changes

This PR:

  • adds an AddressIndex field to the OwnedPositionIds rpc request and response
  • regenerate the codegen protobufs

It doesn't seem important to do the extra work to support filtering in the rust view server. The natural consumers of that information are web interfaces. Market makers using the rust implementation would probably simply integrate it in their own OMS rather than relying on the view service RPC.

One question I have is whether the buf publish action will be able to pickup the change to the protos.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • 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:

    view service changes

@erwanor erwanor changed the title protos(view): add subaccount to OwnedPositionIds rpc protos(view): add a subaccount filter to the OwnedPositionIds rpc Jan 14, 2025
Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

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

These changes look solid.

One question I have is whether the buf publish action will be able to pickup the change to the protos.

Yes, these changes will get published to BSR automatically, however this PR should target the main branch so that upon merge the workflow will run. Requesting changes:

  1. Rebase PR against main
  2. Regen protos after rebase
  3. Re-target PR to main

Then we should be good to go. I'll handle the point release mechanics in #4988.

@erwanor erwanor closed this Jan 16, 2025
conorsch added a commit that referenced this pull request Jan 17, 2025
…4992)

## Describe your changes

This PR resubmits the unmerged changes from
#4985, targeting `main`
branch. Below is the original submission text for 4985, which is still
accurate here.

This PR:
- adds an `AddressIndex` field to the `OwnedPositionIds` rpc request and
response
- regenerate the codegen protobufs

It doesn't seem important to do the extra work to support filtering in
the rust view server. The natural consumers of that information are web
interfaces. Market makers using the rust implementation would probably
simply integrate it in their own OMS rather than relying on the view
service RPC.

One question I have is whether the buf publish action will be able to
pickup the change to the protos.

## Checklist before requesting a review

- [x] I have added guiding text to explain how a reviewer should test
these changes.

- [x] 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:

  > view service changes

---------

Signed-off-by: Erwan Or <erwan.ounn.84@gmail.com>
Co-authored-by: Erwan Or <erwanor@penumbralabs.xyz>
Co-authored-by: Erwan Or <erwan.ounn.84@gmail.com>
Co-authored-by: Lúcás Meier <lucas@cronokirby.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants