Skip to content

Commit

Permalink
Merge pull request #177 from metagov/fix-oldSCIndex-routing
Browse files Browse the repository at this point in the history
Fix MainnetV0 Registration Cards
  • Loading branch information
Rashmi-278 authored Nov 22, 2023
2 parents 4fd9432 + 6319128 commit dffbfff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion daostar-website/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions daostar-website/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit dffbfff

Please sign in to comment.