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

use BG Ponder Indexer for fetching data #6

Merged
merged 6 commits into from
Jan 18, 2024
Merged

use BG Ponder Indexer for fetching data #6

merged 6 commits into from
Jan 18, 2024

Conversation

technophile-04
Copy link
Member

Description :

Completed :

  • Fetching withdraw events data on /projects page
  • Fetching withdraw events data on /members page

TODO :

  • Fetch builders data

Copy link

vercel bot commented Jan 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sand-garden ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 18, 2024 9:35am

@technophile-04
Copy link
Member Author

@carletex , it seems that while fetching events for old contract 0x2eA63c9C9C114ae85b1027697A906420a23e8572 it only fetches 9 events where as total events are 32, here is the query I am running :

query Withdrawls {
  cohortWithdrawals(
    where: {cohortContractAddress: "0x2eA63c9C9C114ae85b1027697A906420a23e8572"}
    orderBy: "timestamp"
    orderDirection: "desc"
  ) {
    reason
    builder
    amount
    timestamp
    cohortContractAddress
    builder
    id
  }
}

is it something to do with indexing? or maybe I am is there a field while making query that we can add to get all data?

@carletex
Copy link
Contributor

We ended up recreating the Database, as suggested here: ponder-sh/ponder#580 (comment)

Everything seems to be working now.

Merging! Great job @technophile-04

@carletex carletex merged commit fec7919 into main Jan 18, 2024
2 of 3 checks passed
@carletex carletex deleted the ponder-sh-query branch January 18, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants