Skip to content

Commit

Permalink
Merge pull request #111 from ensdomains/decentralised-graph2
Browse files Browse the repository at this point in the history
decentralised-graph
  • Loading branch information
LeonmanRolls authored May 31, 2024
2 parents 4a1aa6b + 8e751d4 commit 3f566a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ const typePolicies = {
},
};

const ENS_GRAPH_API_KEY = '13ef776c0372f7c14eb7c019a0f80272'

const getGraphqlUri = (operation) => {
const { operationName } = operation;
if (operationName === "Votes") {
return "https://hub.snapshot.org/graphql";
}
return "https://api.thegraph.com/subgraphs/name/ensdomains/ens";
return `https://gateway-arbitrum.network.thegraph.com/api/${ENS_GRAPH_API_KEY}/subgraphs/id/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH`;
};

export const initApolloClient = () => {
Expand Down

0 comments on commit 3f566a8

Please sign in to comment.