Skip to content

Refine Terminology Use / Refactor Naming#532

Merged
shrugs merged 60 commits intomainfrom
refactor/naming
Apr 14, 2025
Merged

Refine Terminology Use / Refactor Naming#532
shrugs merged 60 commits intomainfrom
refactor/naming

Conversation

@shrugs
Copy link
Collaborator

@shrugs shrugs commented Apr 7, 2025

closes #138, closes #87, closes #86, closes #491, closes #115

  • removes OwnedName in favor of RegistrarManagedName for plugins that use the shared handlers
  • split OwnedName responsibilities into PluginName and EventIdPrefix
  • added semantic types for some popular types & updated all references (Node, LabelHash, Label, Name)
  • renamed original event arguments where they differ from ENSNode terminology
  • renamed & replaced all code-based references to plugins (eth = root, base = basenames, linea = lineanames)
  • restructured ens-deployments to be "ENSDeployment per chain, specifies Datasources which each specify a source chain and contract configs"
  • plugins still map 1:1 with datasources (comments indicating implicit assumptions have been added for possible future refactor)
  • also mocks fetch for ensrainbow-sdk client tests because testing against the prod deployment doesn't make any sense
  • does NOT update any documentation/readme files — this should be handled in a future PR Docs: Update Terminology References #547

tk-o and others added 24 commits March 10, 2025 20:31
Uses reverse registry records to heal label from transaction sender address
Only the eth plugin uses the env-based feature flag, while other plugins have reverse addresses healing turned off
Simplify indexing handlers code and move extra complexity to config file for each plugin.
Co-authored-by: lightwalker.eth <126201998+lightwalker-eth@users.noreply.github.com>
…hub.com:namehash/ensnode into feat/204-reverse-registry-subnames-auto-healing
`Registrar.ts` is only for the registrars for direct subnames of .eth, linea.eth, or base.eth. It can never be a reverse registrar.
Returns `null` if healing fails. Also, all relevant tests were simplified.
Co-authored-by: kwrobel.eth <djstrong@gmail.com>
@vercel
Copy link
Contributor

vercel bot commented Apr 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
admin.ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 6:50pm
ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 6:50pm
ensrainbow.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 6:50pm

Copy link
Member

@lightwalker-eth lightwalker-eth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shrugs Huge updates and improvements here! Very happy! 🚀 Reviewed and shared some suggestions. Appreciate your advice. Thanks 🙌

import * as lineaEthPlugin from "@/plugins/linea/ponder.plugin";
import * as basenamesPlugin from "@/plugins/basenames/basenames.plugin";
import * as lineaNamesPlugin from "@/plugins/lineanames/lineanames.plugin";
import * as rootPlugin from "@/plugins/root/root.plugin";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on your thoughts on the other comment suggesting to rename this to the "subgraph" plugin, there would be some other items to rename, including various files / directories. Advice appreciated.

Copy link
Member

@lightwalker-eth lightwalker-eth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shrugs Super updates 🚀 Thank you! Shared a few more little suggestions. Please merge when ready! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants