diff --git a/daostar-website/src/App.js b/daostar-website/src/App.js index 0dbe2bba..13eedf08 100644 --- a/daostar-website/src/App.js +++ b/daostar-website/src/App.js @@ -278,11 +278,11 @@ function App() { context: { apiName: "ensTextRecords" }, variables: { "where": { - "value_not": null, - "key_starts_with_nocase": "daouri", - "key_ends_with_nocase": "daouri" + "resolver_": { + "texts_contains_nocase": ["daouri"] + } }, - "first": 5 + "first": null }, }); const { @@ -348,7 +348,7 @@ function App() { EASOptimismData?.attestations || []; const ENSTextRecords = - ENSQueryResData?.textChangeds || []; + ENSQueryResData?.domains|| []; // This object clones and modifies the mainnetV0 registration instances to change the network ID to "ethereum" // 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 diff --git a/daostar-website/src/components/ENSCard/ENSCard.js b/daostar-website/src/components/ENSCard/ENSCard.js index 8f070118..3d4b6720 100644 --- a/daostar-website/src/components/ENSCard/ENSCard.js +++ b/daostar-website/src/components/ENSCard/ENSCard.js @@ -3,14 +3,12 @@ import { Card, Divider } from '@blueprintjs/core'; import '../AttestationCard/AttestationCard.css'; const DisplayENSTextRecord = ({ - id, - key, - value, - resolver + name, + resolvedAddress }) => { - const daoName = resolver?.domain?.name ?? "Unknown DAO"; - const daoAddress = resolver?.domain?.resolvedAddress?.id ?? "Unknown DAO"; - const daoURI = value ? value : "https://daostar.org/registration"; + const daoName = name ?? "Unknown DAO"; + const daoAddress = resolvedAddress?.id ?? "Unknown DAO"; + // const daoURI = value ? value : "https://daostar.org/registration"; return ( @@ -20,16 +18,16 @@ const DisplayENSTextRecord = ({

ENS ID: - {id} + {daoName}

DAO Address: {daoAddress}

-

+ {/*

DAO URI: {daoURI} -

+

*/}
diff --git a/daostar-website/src/components/ExplorePage/queries/registrations.js b/daostar-website/src/components/ExplorePage/queries/registrations.js index b64dd7b8..4cb20537 100644 --- a/daostar-website/src/components/ExplorePage/queries/registrations.js +++ b/daostar-website/src/components/ExplorePage/queries/registrations.js @@ -105,20 +105,13 @@ const ATTESTATIONS_BY_SCHEMA = gql` const ENS_QUERY = gql ` -query TextChangeds($where: TextChanged_filter, $first: Int) @api(contextKey: "apiName"){ - textChangeds(where: $where, first: $first) { - id - key - value - resolver { - domain { - name - resolvedAddress { - id - } +query Domains($where: Domain_filter, $first: Int) @api(contextKey: "apiName"){ + domains(where: $where, first: $first) { + name + resolvedAddress { + id } } - } } `; export default { REGISTRATIONS, REGISTRATION, REGISTRATIONSOLD, ATTESTATIONS_BY_SCHEMA, ENS_QUERY }