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

Subgraphs integration #198

Merged
merged 27 commits into from Feb 9, 2022
Merged

Subgraphs integration #198

merged 27 commits into from Feb 9, 2022

Conversation

r-marques
Copy link
Member

@r-marques r-marques commented Jan 29, 2022

Description

  • Added interfaces for NeverminedEvents
  • unit tests passing

Is this PR related with an open issue?

Related to Issue #

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Follows the code style of this project.
  • Tests Cover Changes
  • Documentation

Funny gif

Put a link of a funny gif inside the parenthesis-->

- Added interfaces for NeverminedEvents
- unit tests passing
@r-marques r-marques changed the title Further refactor of the events: Subgraphs integration Jan 29, 2022
@r-marques r-marques marked this pull request as ready for review February 7, 2022 17:05
@r-marques r-marques requested review from a team as code owners February 7, 2022 17:05
@aaitor aaitor linked an issue Feb 8, 2022 that may be closed by this pull request
@r-marques r-marques requested a review from Elod23 February 8, 2022 13:24
Copy link
Contributor

@Elod23 Elod23 left a comment

Choose a reason for hiding this comment

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

Minor suggestions, but nice integration, thanks 👍

integration/config.ts Outdated Show resolved Hide resolved
) {
// Check if the event already happened and return that instead
// before subscribing
const events = await this.getPastEvents(options)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 will be of great use

Copy link
Member Author

Choose a reason for hiding this comment

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

yes. Although you should always prefer once to getPastEvents because it works differently with the graph because the indexer node always lags behind a bit

@r-marques r-marques merged commit 2ef46be into master Feb 9, 2022
@r-marques r-marques deleted the feature/subgraphs branch February 9, 2022 18:15
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.

Add new graph events api support in the javascript sdk
2 participants