From aea891917e1e509607407569082da36350c1f5b6 Mon Sep 17 00:00:00 2001 From: Enrique Ortiz Date: Tue, 1 Sep 2020 09:02:01 -0400 Subject: [PATCH] Change the graph URL to use the self-hosted A1 subgraph --- src/hooks/useOrgHooks.js | 8 ++++---- src/networks.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks/useOrgHooks.js b/src/hooks/useOrgHooks.js index 1e3b913..8cf60f9 100644 --- a/src/hooks/useOrgHooks.js +++ b/src/hooks/useOrgHooks.js @@ -81,10 +81,10 @@ export function useAppData(organization) { addressesEqual(appAddress, convictionApp.address) ) - const convictionVoting = await ConvictionVoting( - convictionApp, - defaultSubgraphUrl - ) + const convictionVoting = await ConvictionVoting(convictionApp, [ + 'thegraph', + { subgraphUrl: defaultSubgraphUrl }, + ]) if (!cancelled) { setAppData(appData => ({ diff --git a/src/networks.js b/src/networks.js index 8205ef8..0a29cee 100644 --- a/src/networks.js +++ b/src/networks.js @@ -7,7 +7,7 @@ const networks = { ensRegistry: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', defaultEthNode: 'wss://mainnet.eth.aragon.network/ws', defaultSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/1hive/aragon-conviction-voting-mainnet', + 'https://graph.backend.aragon.org/subgraphs/name/1hive/aragon-conviction-voting-mainnet', name: 'Mainnet', orgAddress: '0xaAf56C0D604dDB88bBe451ae0db4580Ca3D49c0A', type: 'mainnet',