-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Migrate AccountRetriever to proto #6985
Comments
Why wouldn't it return an account (interface)? I can't recall exactly why, but the notion of a |
We do but it returns an |
Yes, I agree. Let's have a seperate service for retrieving account info |
Started to take a look at this and I'm not quite sure the rationale for updating the interface. In the PR body, you state use the gRPC query service, which is defined on the |
But it can't be converted to |
See my PR @aaronc -- I don't see how you get this info w/o actually querying for an account, which means you might as well keep the current interface. |
Your PR makes sense. Maybe we're talking about different things. I'm not suggesting the |
I see. So extending the existing gRPC service? We can certainly do that, but under the hood, they'll virtually do the same thing (i.e. get an account and return seq or acc num). |
Right more or less, but I think it should be a different service. One that isn't tied to the auth module. Maybe it goes in the |
AccountRetriever
still uses the amino JSON legacy queriers.We can migrate it to use the
cosmos.auth.Query
service.Or even, better how about a generic
AccountRetriever
service that doesn't depend on a specificAccount
type:The text was updated successfully, but these errors were encountered: