-
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
Paginate supply and balances methods #8761
Comments
There's an item "Paginate GetAllBalances", but afaict it's already implemented. Can you confirm @sahith-narahari ? |
The question is do we want to paginate It's used across various modules and maybe we should imo. cosmos-sdk/x/bank/keeper/view.go Line 61 in ef9968d
|
I'm not sure I understand. Both RPC methods take a PaginationRequest param. |
I'm referring to the keeper methods, ref: #8517 (comment) |
I don't see much difference in using it without pagination though |
OK, the gRPC handler correctly handles pagination. Only the keeper method doesn't. I'm fine with it as-is, you're probably right @sahith-narahari the "huge denom list" problem should be smaller on individual balances. Unless if you want/started work on this, then feel free to continue! |
I didn't start yet and agree with you. I propose to leave it as-is and get back to it if we see any problem in the future |
Summary
Ref: #8517
To have a better support for multiple tokens, we need to paginate
GetTotalSupply
andGetAllBalances
which is being used across multiple modulesGetTotalSupply
GetAllBalances
For Admin Use
The text was updated successfully, but these errors were encountered: