-
Notifications
You must be signed in to change notification settings - Fork 15
Split ENSApi and ENSIndexer #1716
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
base: main
Are you sure you want to change the base?
Changes from all commits
b3ac81b
63a6f30
09c7ae4
2abc626
39eb1ec
705ceb8
b0edcb7
e6eedab
6b6f23c
3ad279d
3784c8a
2ab4196
eb329fc
a8d11e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "ensapi": minor | ||
| --- | ||
|
|
||
| Refactored HTTP handlers for Indexing Status API and Config API to rely solely on ENSDb Client for data. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@ensnode/ensnode-sdk": minor | ||
| --- | ||
|
|
||
| Added `validateEnsApiPublicConfig` function. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,9 +12,18 @@ ENSINDEXER_URL=http://localhost:42069 | |
| # It should be in the format of `postgresql://<username>:<password>@<host>:<port>/<database>` | ||
| # | ||
| # See https://ensnode.io/ensindexer/usage/configuration/ for additional information. | ||
| # NOTE that ENSApi does NOT need to define DATABASE_SCHEMA, as it is inferred from the connected ENSIndexer's Config. | ||
| DATABASE_URL=postgresql://dbuser:abcd1234@localhost:5432/my_database | ||
|
|
||
| # ENSDb: schema name | ||
tk-o marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Required. This is a namespace for the tables that the ENSDbClient for ENSApi will apply to read ENSDb data. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggest avoiding the use of the word "namespace" here -- it's overloading terminology too much with ENS namespace. |
||
| # Must be set to an existing namespace in the connected ENSDb at DATABASE_URL. | ||
| DATABASE_SCHEMA=public | ||
|
|
||
| # ENS Namespace Configuration | ||
| # Required. Must be an ENS namespace's Identifier such as mainnet, sepolia, or ens-test-env. | ||
| # (see `@ensnode/datasources` for available options). | ||
| NAMESPACE=mainnet | ||
|
|
||
| # ENSApi: RPC Configuration | ||
| # Required. ENSApi requires an HTTP RPC to the connected ENSIndexer's ENS Root Chain, which depends | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please invest time in carefully crafting a refinement to how this idea is documented. We need our language here to be precisely aligned with the new architecture refinements. |
||
| # on ENSIndexer's NAMESPACE (ex: mainnet, sepolia, ens-test-env). This ENS Root Chain RPC | ||
|
|
||
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.
Several lines above there's still an
ENSINDEXER_URLdefined. Shouldn't that be getting removed now?