-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize ens-deployments package #192
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
0b939f4
to
d380bfa
Compare
I've made a bunch of changes as per the above. personally in favor of keeping 'plugin' terminology on the ponder side just because it's already there and makes a lot of sense in the context of ponder. and while changing the subregistry names to @lightwalker-eth back to you to review my wording and follow up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrugs Hey super updates! This package is so cool!
Reviewed and shared some suggestions with feedback 👍
"exports": "./src/index.ts" | ||
"exports": "./src/index.ts", | ||
"dependencies": { | ||
"@ponder/utils": "^0.2.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this dependency is a little bit of a bummer. Ok to keep it, but ideally not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's for the mergeAbis
helper which while not necessary is definitely helpful and i think this specific dependency is acceptable since it's their utils package and not the whole ponder package
@@ -0,0 +1,46 @@ | |||
--- | |||
title: Mainnet-Registered Subnames of Subregistries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super! Thanks!
I need to review this file 1 more time before we merge the PR. It's currently past 5am here though and quite tired. Better come back to review this file while fresh 👍
@lightwalker-eth ready for re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrugs PR looks awesome 🚀 Just a small point of feedback. GitHub won't let me approve this PR because I was the one who originally created it. You're welcome to take the lead on merging this PR after following up on the suggestion 👍
packages/ens-deployments/README.md
Outdated
// access the address and abi for the NameWrapper on mainnet | ||
const nameWrapperConfig = DeploymentConfigs.mainnet.contracts.NameWrapper; | ||
|
||
// for example, querying the NameWrapper with viem... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this updated example. Pretty cool!
Maybe I'm doing something wrong, but my understanding is that this would actually return a zero address since vitalik.eth is not wrapped by the namewrapper?
A few quick ideas:
- Change this example to something where the value returned is a bit interesting. Ex: ask the ENS Registry for the owner of the node associated with
vitalik.eth
(instead of asking the NameWrapper). I expect this should then return something like: 0x220866B1A2219f40e72f5c628B65D54268cA3A9D. - Could we add a comment at the end of this example with a description of the expected value that would be returned?
i merged my main branch (which for some reason had the docker-related changes i was making) into this branch to bring it up to date so this branch now has a bunch of changes from #224 included, which is not ideal. will take time to fix that later today. please ignore any changes related to that for the purposes of reviewing |
This reverts commit 6bf5d48.
diff has been fixed |
Fixes #190
Related ideas: #87
Goals
ens-deployments
package for publishing on NPM (in some future PR) for broader use by the ENS community.Subtasks
@lightwalker-eth has proposed a starting point for this PR. Additional work remains, including:
ens-deployments
packageens-deployments
.ens-deployments
SubregistryContractConfig
.ContractConfig#filter
README.md
file that provides a simple introduce to the package. Suggest lifting content fromsrc/index.ts
as relevant.package.json
description
field. Ex: "Catalog of ENS deployments, including key contract addresses and other attributes."ponder
dependency.viem
dependency so that it falls underpeerDependencies
.SubregistryName
enum values as follows:base
->base.eth
linea
->linea.eth
ens-deployments
?ensnode
app to make use of the newens-deployments
package structureensnode
app are all side effects of proposed renamings withinens-deployments
. Perhapsensnode
retains the concept of a "plugin" but it will need to "translate" from the generic "subregistry" definitions inens-deployments
as necessary.After the above items are actioned, please feel welcome to ask @lightwalker-eth to take the lead on the following:
base.eth
andlinea.eth
subregistries are not identical to theeth
subregistry.docs/ensnode/src/content/docs/reference/mainnet-registered-subnames-of-subregistries.mdx