diff --git a/.env b/.env index 901c2ed..c97f02c 100644 --- a/.env +++ b/.env @@ -52,3 +52,6 @@ REACT_APP_WEB3_FALLBACK_SEPOLIA_HTTPS_URL='https://eth-sepolia.g.alchemy.com/v2/ REACT_APP_WEB3_FALLBACK_POLYGON_HTTPS_URL='https://polygon-mainnet.g.alchemy.com/v2/Y2IRJuoY0G-LAkHTqyXdVetLFm4R2NZT' REACT_APP_WEB3_FALLBACK_MUMBAI_HTTPS_URL='https://polygon-mumbai.g.alchemy.com/v2/demo' + +REACT_APP_SUBGRAPH_MAINNET_DISPLAY='https://api.studio.thegraph.com/query/61738/kleros-display-mainnet/version/latest' +REACT_APP_SUBGRAPH_GNOSIS_DISPLAY='https://api.studio.thegraph.com/query/61738/kleros-display-gnosis/version/latest' diff --git a/src/bootstrap/subgraph.js b/src/bootstrap/subgraph.js index 0e00f50..515e642 100644 --- a/src/bootstrap/subgraph.js +++ b/src/bootstrap/subgraph.js @@ -1,7 +1,7 @@ export const displaySubgraph = { - 1: "https://api.studio.thegraph.com/query/61738/kleros-display-mainnet/version/latest", + 1: process.env.REACT_APP_SUBGRAPH_MAINNET_DISPLAY, 5: "https://api.thegraph.com/subgraphs/name/andreimvp/kleros-display-goerli", - 100: "https://api.studio.thegraph.com/query/61738/kleros-display-gnosis/version/latest", + 100: process.env.REACT_APP_SUBGRAPH_GNOSIS_DISPLAY, 10200: "https://api.studio.thegraph.com/query/61738/kleros-display-chiado/version/latest", 11155111: "https://api.studio.thegraph.com/query/61738/kleros-display-sepolia/version/latest", };