diff --git a/apps/dapp/src/constants/env/local.tsx b/apps/dapp/src/constants/env/local.tsx index 5dae08a8a..a68991c61 100644 --- a/apps/dapp/src/constants/env/local.tsx +++ b/apps/dapp/src/constants/env/local.tsx @@ -55,16 +55,17 @@ const env: Environment = { // TODO: These need updated to the templedao organization subgraphs once they are deployed templeCore: 'http://localhost:8000/subgraphs/name/templedao-core', protocolMetrics: - 'https://api.thegraph.com/subgraphs/name/medariox/temple-metrics', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-metrics/api', protocolMetricsArbitrum: - 'https://api.thegraph.com/subgraphs/name/medariox/temple-metrics-arbitrum', + 'https://api.studio.thegraph.com/query/76011/temple-metrics-arbitrum/version/latest', + // TODO: This is not used anymore and should be removed balancerV2: 'https://api.thegraph.com/subgraphs/name/templedao/templedao-balancer-v2', // TODO: Will be deprecated - ramos: 'https://api.thegraph.com/subgraphs/name/templedao/templedao-ramos', + ramos: 'https://api.studio.thegraph.com/query/76011/temple-ramos/version/latest', // templeV2: 'https://api.studio.thegraph.com/query/520/v2-sepolia/version/latest', templeV2: - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-v2-mainnet', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-v2-mainnet/api', templeV2Balances: 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-v2-balances/api', diff --git a/apps/dapp/src/constants/env/preview.tsx b/apps/dapp/src/constants/env/preview.tsx index 3a3254f77..cc5d36c83 100644 --- a/apps/dapp/src/constants/env/preview.tsx +++ b/apps/dapp/src/constants/env/preview.tsx @@ -51,17 +51,18 @@ const env: Environment = { subgraph: { // TODO: These need updated to the templedao organization subgraphs once they are deployed templeCore: - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-core', + 'https://api.studio.thegraph.com/query/76011/temple-core/version/latest', protocolMetrics: - 'https://api.thegraph.com/subgraphs/name/medariox/temple-metrics', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-metrics/api', protocolMetricsArbitrum: - 'https://api.thegraph.com/subgraphs/name/medariox/temple-metrics-arbitrum', + 'https://api.studio.thegraph.com/query/76011/temple-metrics-arbitrum/version/latest', + // TODO: This is not used anymore and should be removed balancerV2: 'https://api.thegraph.com/subgraphs/name/templedao/templedao-balancer-v2', // TODO: Will be deprecated - ramos: 'https://api.thegraph.com/subgraphs/name/templedao/templedao-ramos', + ramos: 'https://api.studio.thegraph.com/query/76011/temple-ramos/version/latest', templeV2: - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-v2-mainnet', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-v2-mainnet/api', templeV2Balances: 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-v2-balances/api', // Original Balancer Subgraph diff --git a/apps/dapp/src/constants/env/production.tsx b/apps/dapp/src/constants/env/production.tsx index e8d71f186..c7eb3344a 100644 --- a/apps/dapp/src/constants/env/production.tsx +++ b/apps/dapp/src/constants/env/production.tsx @@ -236,17 +236,18 @@ const env: Environment = { subgraph: { // TODO: These need updated to the templedao organization subgraphs once they are deployed templeCore: - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-core', + 'https://api.studio.thegraph.com/query/76011/temple-core/version/latest', protocolMetrics: - 'https://api.thegraph.com/subgraphs/name/medariox/temple-metrics', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-metrics/api', protocolMetricsArbitrum: - 'https://api.thegraph.com/subgraphs/name/medariox/temple-metrics-arbitrum', + 'https://api.studio.thegraph.com/query/76011/temple-metrics-arbitrum/version/latest', + // TODO: This is not used anymore and should be removed balancerV2: 'https://api.thegraph.com/subgraphs/name/templedao/templedao-balancer-v2', // TODO: Will be deprecated - ramos: 'https://api.thegraph.com/subgraphs/name/templedao/templedao-ramos', + ramos: 'https://api.studio.thegraph.com/query/76011/temple-ramos/version/latest', templeV2: - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-v2-mainnet', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-v2-mainnet/api', templeV2Balances: 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-v2-balances/api', // Original Balancer Subgraph diff --git a/apps/dapp/src/hooks/use-refreshable-price-metrics.tsx b/apps/dapp/src/hooks/use-refreshable-price-metrics.tsx index 8e5f7df50..edd67b5b4 100644 --- a/apps/dapp/src/hooks/use-refreshable-price-metrics.tsx +++ b/apps/dapp/src/hooks/use-refreshable-price-metrics.tsx @@ -19,7 +19,7 @@ export default function useRefreshablePriceMetrics(intervalMinutes = 20) { async function refreshMetrics() { const hourlyRequest = await fetch( - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-metrics', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-metrics/api', { method: 'POST', headers: { @@ -40,7 +40,7 @@ export default function useRefreshablePriceMetrics(intervalMinutes = 20) { ); const dailyRequest = await fetch( - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-metrics', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-metrics/api', { method: 'POST', headers: { diff --git a/apps/dapp/src/utils/subgraph.ts b/apps/dapp/src/utils/subgraph.ts index a546398e9..58f88e2ec 100644 --- a/apps/dapp/src/utils/subgraph.ts +++ b/apps/dapp/src/utils/subgraph.ts @@ -12,7 +12,7 @@ export const fetchSubgraph = async >( query: string ) => { return fetchGenericSubgraph( - 'https://api.thegraph.com/subgraphs/name/templedao/templedao-metrics', + 'https://subgraph.satsuma-prod.com/a912521dd162/templedao/temple-metrics/api', query ); };