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 subgraph for all delegate data instead of spock #895

Open
wants to merge 67 commits into
base: develop
Choose a base branch
from

Conversation

tyler17
Copy link
Collaborator

@tyler17 tyler17 commented Jun 7, 2024

TODO: add summary

@tyler17 tyler17 added the WIP label Jun 7, 2024
Copy link

vercel bot commented Jun 7, 2024

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

Name Status Preview Comments Updated (UTC)
governance-portal-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2025 2:00am

Copy link

what-the-diff bot commented Jun 19, 2024

PR Summary

  • Updated Connection Settings
    The README.md file and several configuration files were updated to connect to the subgraph privately and use a different GraphQL schema URL. New environment variables and links were introduced where necessary.

  • Refactoring Files For Improved Integration With Subgraph
    In order to optimize data acquisition and management, various files were refactored to use subgraph queries and a new structure for handling delegate information.

  • Obsolete Query Removal and Data Type Modification
    Outdated queries were removed and replaced with subgraph queries. Data types were also modified to provide more accurate data representation, for example, changing totalMKRDelegated to a number format.

  • Introduced New Files For Metrics and GraphQL Queries
    A new file has been created specifically for fetching delegation metrics from subgraph. Furthermore, new GraphQL query files have been added to fetch details about delegations, delegation history for multiple delegates, and delegation history of a specific delegator.

  • Updated Network Settings
    The chain ID for TENDERLY in chainID.ts was updated. Other network constant modifications include the addition of TENDERLY subgraph URL and its integration into chain information.

  • Integration with TENDERLY Network
    Replaced getMainnetSdk with getTenderlySdk for the TENDERLY network in getContracts.ts and getReadOnlyContracts.ts.

  • Improved Etherscan Link Generation
    The feature to generate Etherscan links was updated to include a specific URL format for transactions on TENDERLY.

  • Data Type Modification and Suppression of Effects in delegates/index.tsx
    The data type for totalMKRDelegated was modified from string to number. Also, two useEffect hooks related to fetching events and addresses have been temporarily disabled.

@tyler17 tyler17 changed the title remove spock use subgraph for all delegate data instead of spock Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants