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

feat: subgraph handling #78

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

feat: subgraph handling #78

wants to merge 29 commits into from

Conversation

marcomariscal
Copy link
Collaborator

@marcomariscal marcomariscal commented Jul 18, 2024

Description

Adds support for fetching announcements via a subgraph.

async function getAnnouncementsUsingSubgraph({
subgraphUrl,
filter = '',
pageSize = 1000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe alchemy supports page size of 10k.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But maybe it's better to just leave it at 1K, and just make a note of it. Because other subgraph providers usually only support 1k.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool updated with docs:

b29c692

entity: string;
lastId?: string;
}): AsyncGenerator<T[], void, unknown> {
const variables: { first: number; id_lt?: string } = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More documentation in this file would really help

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.

support subgraph announcement fetching
2 participants