-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: add the api for querying next account number #1011
feat: add the api for querying next account number #1011
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release/v0.47.x #1011 +/- ##
==================================================
Coverage ? 62.01%
==================================================
Files ? 656
Lines ? 78918
Branches ? 0
==================================================
Hits ? 48939
Misses ? 27292
Partials ? 2687 |
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.
LGTM
Sadly, this change will affect our plans to catch up with the upstream.
So, I added |
* feat: add `NextAccountNumber` query api in cosmos.auth.v1beta1.query proto * feat: implement query account number in x/auth module * chore: update changelog. * fix: line error * fix: proto function typo (cherry picked from commit 94b5a52)
…1026) * feat: add the api for querying next account number (#1011) * feat: add `NextAccountNumber` query api in cosmos.auth.v1beta1.query proto * feat: implement query account number in x/auth module * chore: update changelog. * fix: line error * fix: proto function typo (cherry picked from commit 94b5a52) * chore: update changelog * Update CHANGELOG.md Co-authored-by: Youngtaek Yoon <noreply@yoon.anonaddy.me> --------- Co-authored-by: Youngtaek Yoon <noreply@yoon.anonaddy.me>
* feat: add `NextAccountNumber` query api in cosmos.auth.v1beta1.query proto * feat: implement query account number in x/auth module * chore: update changelog. * fix: line error * fix: proto function typo (cherry picked from commit 94b5a52)
Description
closes: #1001
Add the query api that can query next account number.
This api is temporary api. So I added deprecated annotation.
And the
GetNextAccountNumber
function of bank keeper return the next global account number and increments the number, so I added another similar function asQueryNextAccountNumber
.QueryNextAccountNumber
function is equals with some parts ofGetNextAccountNumber
function. But I just copy and paste this part, because this is temporary function.I want to use the function name as
NextAccountIndex
, but the inside codes almost useNextAccountNumber
. So I useNextAccountNumber
. Please don't confuse this is not a query api for querying the number of accounts.Added part
NextAccountNumber
query api incosmos.bank.v1beta1.query
protoGetNextAccountNumber
function in bank keeperNextAccountNumber
and test.Motivation and context
How has this been tested?
Screenshots (if appropriate):
Checklist:
CHANGELOG.md
client/docs/swagger-ui/swagger.yaml