Closed lucemans closed 2 months ago
This PR introduces the basic foundations for react hooks within ensjs They are packaged under @ensdomains/ensjs-react (credit #85)
@ensdomains/ensjs-react
Wagmi already comes packed with the powerful:
useEnsAddress
useEnsAvatar
useEnsName
useEnsResolver
useEnsText
However @ensdomains/ensjs-react introduces:
useEnsAvailable
getAvailable
useEnsExpiry
getExpiry
useEnsResolverInterfaces
getSupportedInterfaces
useNamesForAddress
getNamesForAddress
useDecodedName
getDecodedName
useEnsRecordsWrite
setRecords
useEnsCredentials
getTextRecord
This PR relies on peer-dependencies
@tanstack/react-query
Issues 4 New issues 0 Accepted issues
Measures 0 Security Hotspots 0.0% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarCloud
This PR introduces the basic foundations for react hooks within ensjs They are packaged under
@ensdomains/ensjs-react
(credit #85)Wagmi already comes packed with the powerful:
useEnsAddress
useEnsAvatar
useEnsName
useEnsResolver
useEnsText
However
@ensdomains/ensjs-react
introduces:useEnsAvailable
- checks availability (usesgetAvailable
)useEnsExpiry
- returns expiry of a name (usesgetExpiry
)useEnsResolverInterfaces
- check supportsInterface on resolver (usesgetSupportedInterfaces
)useNamesForAddress
- lists names from subgraph (usesgetNamesForAddress
)useDecodedName
- decodes name using subgraph (usesgetDecodedName
)useEnsRecordsWrite
- writes records to a name (usessetRecords
) (wip)useEnsCredentials
- returns credentials from a name (usesgetTextRecord
) (lite)This PR relies on peer-dependencies
@tanstack/react-query
(which wagmi does too)