ensdomains / ensjs

ENS javascript library for contract interaction
MIT License
113 stars 46 forks source link

Question: getNames -> type parameter #95

Closed appleseed-iii closed 5 months ago

appleseed-iii commented 1 year ago

in getNames there is a "type" parameter with acceptable values: "owner" | "wrappedOwner" | "registrant" | "all"; https://github.com/ensdomains/ensjs-v3/blob/9ecedcd1e17e3689af88b1bf0a8db234dbb54998/packages/ensjs/src/functions/getNames.ts#L99-L108

Is there any documentation that explains each of these values? I've seen this https://docs.ens.domains/terminology, but I'm wondering is it possible for the Controller to be different from the "owner", "wrappedOwner", or "registrant"?

TateB commented 1 year ago

those docs are a bit outdated, essentially our user facing and dev facing terms are a bit different, to clarify which contract they are coming from. owner: ENS registry owner value - effectively equivalent to Controller wrappedOwner: NameWrapper owner value registrant: Registrar owner value