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

Replace AWS by Chainstack's #20

Merged
merged 8 commits into from
Jun 23, 2023

Conversation

brunomenezes
Copy link
Collaborator

@brunomenezes brunomenezes commented Jun 22, 2023

Summary

Code changes to remove all AWS and code related to the extended API (i.e. Endpoints for Postgraphile).

  1. Removed all the aws subgraph and extended aws configurations for the Apollo client.
  2. Add new endpoints to access Chainstack for Goerli and mainnet [production, preview]
  3. Update the graphQL models and fix tests using the wrong types.
  4. New hooks added to support reading performance data for a specific pool.
  5. The feature flag for new-performance-enabled has been removed since Postgraphile was removed.
  6. Quick update in the ISR logic under the staticGeneration.ts file.
  7. Added a new CSP configuration to work with the safe wallet easier while in localhost

closes #15

Adjust the static-generation logic and log messages, also add Chainstack info to be used with apollo-clients when needed. Replace the apollo-client link configuration with uri, that eliminate the zombie polling happening after dynamically switching the graphQL endpoint.
Fix some wrong type used in the test setup.
Performance is always coming from subgraph backend from now on.
@brunomenezes brunomenezes added staking Changes targeted to the Staking platform type:feature new feature or improvement over an existing feature labels Jun 22, 2023
@brunomenezes brunomenezes linked an issue Jun 22, 2023 that may be closed by this pull request
8 tasks
@vercel
Copy link

vercel bot commented Jun 22, 2023

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

Name Status Preview Comments Updated (UTC)
rollups ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2023 9:00am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2023 9:00am

@coveralls
Copy link

coveralls commented Jun 22, 2023

Pull Request Test Coverage Report for Build 5343593688

  • 7 of 13 (53.85%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 72.757%

Changes Missing Coverage Covered Lines Changed/Added Lines %
apps/staking/src/graphql/hooks/useStakingPoolPerformance.ts 1 2 50.0%
apps/staking/src/utils/staticGeneration.ts 0 1 0.0%
apps/staking/src/services/apollo.ts 1 5 20.0%
Totals Coverage Status
Change from base Build 5342173159: 0.2%
Covered Lines: 2549
Relevant Lines: 3338

💛 - Coveralls

@brunomenezes brunomenezes merged commit f8a71b0 into main Jun 23, 2023
4 checks passed
@brunomenezes brunomenezes deleted the feature/15-replace-aws-subgraph-with-chainstacks branch June 23, 2023 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staking Changes targeted to the Staking platform type:feature new feature or improvement over an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace AWS subgraph with Chainstack's
3 participants