fudgebucket27 / Lexplorer

Loopring explorer alternative
14 stars 10 forks source link

New ENSCacheService for ENS lookup and reverse lookup #229

Closed modersohn closed 1 year ago

modersohn commented 1 year ago

Closes #219

  1. Added to account details page
  2. if a lookup is made during a search, the search term and the resulting address are added to the cache
  3. reverse lookup is done using https://thegraph.com/hosted-service/subgraph/ensdomains/ens
  4. since some *.loopring.eth ENS only store a hash instead of the labelName, they cannot be properly looked up in reverse
  5. this might result in the same ENS appearing twice - hence the icons depicting the origin of the ENS: image
  6. the correct ENS name here is only shown because I previously searched for it
  7. with this approach, we're open for potentially adding the Loopring API as a 3rd source for ENS lookups
  8. Reverse lookup is also possible for a list of addresses with a single ENS query
  9. Added ENS names to token holders page - showing some addresses with multiple ENS names: image
fudgebucket27 commented 1 year ago

This is excellent. Much better than the method I tried months back with nethereum! Makes much more sense to use the subgraph.

It picks up everything! See bubblecum.eth which is a good test user: image

Great work as usual mate! Will merge into dev