0xPlaygrounds / 0xPlaygrounds/subgrounds

Ranged Pagination

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
73
Forks
12
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
## Description
Subgrounds should be able to paginate based on a condition (e.g.: get all Uniswap V2 swaps between time `t0` and time `t1`, get all Aave V2 USDC borrows larger than `amount`).

**Describe the solution you'd like**
The following subgrounds fieldpath implies the use of pagination even though no `first` argument is present

```python
swaps = uniswapV2.Query.swaps(
orderBy=uniswapV2.Swap.timestamp,
orderDirection='desc',
where=[
uniswapV2.Swap.timestamp >= 1641013200
]
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.