medibloc / panacea-java

Panacea Java SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support pagination

youngjoon-lee opened this issue · comments

The Cosmos gRPC already supports pagination using PageRequest and PageResponse messages. But, panacea-java doesn’t use it.

There are functions which return multiple elements, such as getTxsByHeight, getTxResponsesByHeight, and so on.

We need to override those functions, add a parameter: PageRequest pagination, and put a PageResponse into the return value.