Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter test daos from explorer #144

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;