-
Notifications
You must be signed in to change notification settings - Fork 5
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
Payer API Refactor #223
Payer API Refactor #223
Conversation
@@ -159,9 +102,9 @@ service ReplicationApi { | |||
} | |||
|
|||
// Publish envelope | |||
rpc PublishEnvelopes(PublishEnvelopesRequest) returns (PublishEnvelopesResponse) { | |||
rpc PublishPaidEnvelopes(PublishPaidEnvelopesRequest) returns (PublishPaidEnvelopesResponse) { |
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.
I didn't want to have two APIs named PublishEnvelopes
that expect different request/response types. That feels like a footgun.
This is the best name I could come up with.
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.
I'm wondering if PublishPayerEnvelopes
and PublishClientEnvelopes
would be more consistent?
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.
looks straight forward enough!
@@ -159,9 +102,9 @@ service ReplicationApi { | |||
} | |||
|
|||
// Publish envelope | |||
rpc PublishEnvelopes(PublishEnvelopesRequest) returns (PublishEnvelopesResponse) { | |||
rpc PublishPaidEnvelopes(PublishPaidEnvelopesRequest) returns (PublishPaidEnvelopesResponse) { |
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.
I'm wondering if PublishPayerEnvelopes
and PublishClientEnvelopes
would be more consistent?
That was my #2 choice, but I don't really have a strong preference. Happy to switch it over. |
## tl;dr - Companion PR to xmtp/proto#223 which updates everything to the new format
🎉 This PR is included in version 3.72.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
tl;dr
PublishEnvelopes
toPublishPaidEnvelopes
and adds a newPublishUnpaidEnvelopes
API