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

ENG-5293 feat(launchpad,1ui,graphql): bring protocol points query into graphql and basic scaffolding of points route #1013

Conversation

Vitalsine85
Copy link
Member

Affected Packages

Apps

  • data populator
  • portal
  • template
  • launchpad

Packages

  • 1ui
  • api
  • graphql
  • protocol
  • sdk

Tools

  • tools

Overview

Brings the protocol points query into the graphql package. Basic scaffolding of the points route with updated aggregated metrics component. Query for relic points on points route.

Note: Tried setting up api package in launchpad so that we could query for the other points, but realized that we'd have to set up privy for auth. Will pick this back up after talking with the rest of the team.

Screen Captures

If applicable, add screenshots or screen captures of your changes.

Declaration

  • I hereby declare that I have abided by the rules and regulations as outlined in the CONTRIBUTING.md

Copy link

linear bot commented Jan 2, 2025

@github-actions github-actions bot added the feat Feature label Jan 2, 2025
Copy link
Member

@jonathanprozzi jonathanprozzi left a comment

Choose a reason for hiding this comment

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

A few questions for us all to talk through but great job scaffolding this!

packages/graphql/src/utils/points.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,27 @@
query GetFeeTransfers($address: String!, $cutoff_timestamp: bigint) {
Copy link
Member

Choose a reason for hiding this comment

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

Nice! Do you think it makes more sense to name this GetFeeTransfersAggregate or do you think that fee transfers will always just be the aggregate?

I guess the question would be if we ever see this query having more than just the aggregate values.

Nice job!

Copy link
Member Author

Choose a reason for hiding this comment

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

I imagine it'll always be an aggregate. Maybe just leave it as is for now and we can modify it in the future, if there is ever a need.

Copy link
Member

@jonathanprozzi jonathanprozzi left a comment

Choose a reason for hiding this comment

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

Great! Thanks for the quick changes!

…ol-points-query-into-graphql-package

Signed-off-by: Vital <[email protected]>
@Vitalsine85 Vitalsine85 merged commit d91c44c into feature/launchpad Jan 3, 2025
2 checks passed
@Vitalsine85 Vitalsine85 deleted the vital/eng-5293-bring-raw-protocol-points-query-into-graphql-package branch January 3, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants