diff --git a/daostar-website/src/App.js b/daostar-website/src/App.js index bd48df67..208a538a 100644 --- a/daostar-website/src/App.js +++ b/daostar-website/src/App.js @@ -165,8 +165,21 @@ function App() { arbitrumGoerliData?.registrationNetwork?.registrations || []; const chapelRegistrations = chapelData?.registrationNetwork?.registrations || []; + +// This object clones and modifies the mainnetV0 registration instances to change the network ID to "mainnetV0" +// So that when we click on an old registration instance card we are able to view and edit its proprties +// this allows to query mainnetV0 subgraph link + + const allMainnetV0Registrations = mainnetv0Registrations.map(instance => ({ + ...instance, + registrationNetwork: { + ...instance.registrationNetwork, + id: "mainnetV0" + } + })); + const allRegistrationInstances = mainnetRegistrations.concat( - mainnetv0Registrations, + allMainnetV0Registrations, goerliRegistrations, gnosisRegistrations, optimismGoerliRegistrations, diff --git a/daostar-website/src/index.js b/daostar-website/src/index.js index 83265970..bfc54d19 100644 --- a/daostar-website/src/index.js +++ b/daostar-website/src/index.js @@ -36,6 +36,8 @@ const client = new ApolloClient({ arbitrumGoerli: `https://api.thegraph.com/subgraphs/name/rashmi-278/daostar-arbitrum-goerli`, chapel:`https://api.thegraph.com/subgraphs/name/rashmi-278/daostar-bnb-bruno`, optimism: `https://api.thegraph.com/subgraphs/name/rashmi-278/daostar-optimism`, + mainnetV0: "https://api.thegraph.com/subgraphs/name/rashmi-278/daostar-ethereum-mainnet-v0", + }, //defaultEndpoint: 'https://api.thegraph.com/subgraphs/name/ipatka/daostar',