duality-labs / hapi-indexer

A Node.js based indexer for the Duality Cosmos chain
1 stars 0 forks source link

feat: make block_range related query params more consistent #64

Open dib542 opened 10 months ago

dib542 commented 10 months ago

This PR changes the query parameters:

This also reorganizes these query parameters from "pagination" limits to "block_range" limits, and only includes them as pagination limits to generate the expected "next_key" in pagination response properties.

The PR also refactors much logic of resolving block range timestamp limits into block range heights more consistently and reliably.