Skip to content
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

Ranged Pagination #8

Open
0xMochan opened this issue Mar 3, 2023 · 0 comments
Open

Ranged Pagination #8

0xMochan opened this issue Mar 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@0xMochan
Copy link
Collaborator

0xMochan commented Mar 3, 2023

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

swaps = uniswapV2.Query.swaps(
  orderBy=uniswapV2.Swap.timestamp,
  orderDirection='desc',
  where=[
    uniswapV2.Swap.timestamp >= 1641013200
  ]
)
@0xMochan 0xMochan added the enhancement New feature or request label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant