From 8e751d4c2ed2088a4bd7f07e369e5cb262724c36 Mon Sep 17 00:00:00 2001 From: Leon Talbert Date: Fri, 31 May 2024 18:30:28 +0800 Subject: [PATCH] decentralised-graph --- src/apollo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apollo.js b/src/apollo.js index 42cc5ca..9737876 100644 --- a/src/apollo.js +++ b/src/apollo.js @@ -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 = () => {