Skip to content

Commit

Permalink
Merge pull request #144 from metagov/add-more-testnets
Browse files Browse the repository at this point in the history
Filter test daos from explorer
  • Loading branch information
Rashmi-278 authored Sep 4, 2023
2 parents 9f54688 + 93fcbf6 commit 0af9918
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 6 additions & 2 deletions daostar-website/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ExplorePage from "./components/ExplorePage/ExplorePage";
import { WagmiConfig, createClient } from "wagmi";
import { ConnectKitProvider, getDefaultClient } from "connectkit";
import { useQuery } from "@apollo/client";
import registrationIdsToFilter from "./components/FilterRegistrations/Filter_Registrations_By_Id";

import queries from "./components/ExplorePage/queries/registrations";

Expand Down Expand Up @@ -97,16 +98,19 @@ function App() {
arbitrumGoerliData?.registrationNetwork?.registrations || [];
const chapelRegistrations =
chapelData?.registrationNetwork?.registrations || [];
const registrationInstances = mainnetRegistrations.concat(
const allRegistrationInstances = mainnetRegistrations.concat(
goerliRegistrations,
gnosisRegistrations,
optimismGoerliRegistrations,
arbitrumGoerliRegistrations,
chapelRegistrations,
);

const registrationInstances = allRegistrationInstances.filter((instance) =>
!registrationIdsToFilter.includes(instance.id)
)


console.log({ registrationInstances });

return (
<WagmiConfig client={client}>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const registrationIdsToFilter = [

'0x170b1eb094571c154ff822145b8cdb3afb852b4c', // Testnet bnb bruno
'0x4e656b8859548075cd4d922809129bfda9920b8e', // Testnet arb goerli
'0xfe0c8cfa51eed09259eb4926df24ba26dda6230d', // Lyra demo without issuer uri
'0xdad5df58927e1743a6f88ec280d6b3fb264b05d5', // Kiwi dao demo without issuer uri
'0xa5aa339314402edb5db68c7e3d3a526cf0245bf9', // Kiwi dao
'0xdeddc6cdd12d9a514b7af9d51df9a3e46be2ddef', // Test dao

];

export default registrationIdsToFilter;

0 comments on commit 0af9918

Please sign in to comment.