-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from threshold-network/update-subgraph-servic…
…e-querying-implementation Refactor query implementation for the Graph's service migration ## Description Refactor the querying implementation in response to The Graph's recent transition from the hosted-service to the Studio service. Key changes include: Updated query format to be compatible with The Graph Studio services. Introduced requirements for a subgraph ID and a subgraph API key secret to authenticate queries. These changes are necessary to maintain our application's connectivity with The Graph's services and ensure seamless data querying. - [x] [update subgraph service querying implementation](e9e18c4) ## Notice - [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/shapeshift/web/pulls) for the same update/change? ## Pull Request Type - [x] New Feature (Breaking/Non-breaking Change) Fixes #121 ## Testing Please outline all testing steps 1. Clone the repo - git clone https://github.com/threshold-network/website.git 2. Install dependencies - yarn install 3. Build the app - yarn build 4. Run the app - yarn start
- Loading branch information
Showing
6 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export const T_NETWORK_SUBGRAPH_URL = | ||
"https://api.studio.thegraph.com/query/24143/threshold/0.0.4" | ||
|
||
export const TBTC_SUBGRAPH_URL = | ||
"https://api.thegraph.com/subgraphs/name/suntzu93/threshold-tbtc" | ||
export const T_NETWORK_SUBGRAPH_ID = | ||
"5TJAMbsRwm1avUTV4CofaLT4apfQoAiNcysEit9BWr6R" | ||
|
||
export const TBTC_SUBGRAPH_URL = `https://gateway-arbitrum.network.thegraph.com/api/${process.env.SUBGRAPH_API_KEY}/subgraphs/id/DETCX5Xm6tJfctRcZAxhQB9q3aK8P4BXLbujHmzEBXYV` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters