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 API trait #647

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Add API trait #647

merged 1 commit into from
Apr 11, 2024

Conversation

neekolas
Copy link
Contributor

@neekolas neekolas commented Apr 10, 2024

tl;dr

  • Adds new trait for the Identity API methods
  • Adds implementation for those methods to the grpc_api_client

TODO

The backend for this doesn't exist, so we can't really write any tests yet. Just putting this in so that we're ready.

Copy link
Contributor Author

neekolas commented Apr 10, 2024

@neekolas neekolas marked this pull request as ready for review April 10, 2024 22:41
@neekolas neekolas requested a review from a team as a code owner April 10, 2024 22:41
request: PublishIdentityUpdateRequest,
) -> Result<PublishIdentityUpdateResponse, Error>;

async fn get_identity_updates_v2(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to make this a v2 since we already have a get_identity_updates method on the client for the old endpoint.

Copy link
Contributor

Choose a reason for hiding this comment

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

To clarify, get_identity_updates_v2 is getting xmtp v3 identities right?

@neekolas neekolas requested a review from richardhuaaa April 10, 2024 22:47
Base automatically changed from 04-07-identityupdate_serialization to main April 11, 2024 00:47
@neekolas neekolas force-pushed the 04-10-add_api_trait branch from 40f2a3b to 2b4ba2f Compare April 11, 2024 00:48
Copy link
Contributor Author

neekolas commented Apr 11, 2024

Merge activity

  • Apr 10, 8:49 PM EDT: Graphite rebased this pull request as part of a merge.
  • Apr 10, 8:55 PM EDT: @neekolas merged this pull request with Graphite.

@neekolas neekolas merged commit c2e2145 into main Apr 11, 2024
7 checks passed
@neekolas neekolas deleted the 04-10-add_api_trait branch April 11, 2024 00:55
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.

3 participants