@ensnode/datasources 0.0.0-next-20260524213631 → 0.0.0-next-20260525092046

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -23,7 +23,7 @@ import { getDatasource } from "@ensnode/datasources";
23
23
  import { namehashInterpretedName, asInterpretedName } from "enssdk";
24
24
 
25
25
  // access the address and abi for the ens root Registry in the canonical mainnet ENS namespace
26
- const registryConfig = getDatasource('mainnet', 'ensroot').contracts.Registry;
26
+ const registryConfig = getDatasource("mainnet", "ensroot").contracts.Registry;
27
27
 
28
28
  // for example, querying the Registry with viem...
29
29
  const vitaliksResolverAddress = await publicClient.readContract({
@@ -43,19 +43,20 @@ const vitaliksResolverAddress = await publicClient.readContract({
43
43
  The primary export of `@ensnode/datasources` is `getDatasource` which returns a selected `Datasource` within the selected ENS namespace.
44
44
 
45
45
  ```ts
46
- import { getDatasource } from '@ensnode/datasources';
46
+ import { getDatasource } from "@ensnode/datasources";
47
47
 
48
48
  // get ensroot datasource relative to mainnet ENS namespace
49
- const { chain, contracts } = getDatasource('mainnet', 'ensroot');
49
+ const { chain, contracts } = getDatasource("mainnet", "ensroot");
50
50
 
51
51
  // get ensroot datasource relative to sepolia ENS namespace
52
- const { chain, contracts } = getDatasource('sepolia', 'ensroot');
52
+ const { chain, contracts } = getDatasource("sepolia", "ensroot");
53
53
 
54
54
  // get threedns-base datasource relative to mainnet ENS namespace
55
- const { chain, contracts } = getDatasource('mainnet', 'threedns-base');
55
+ const { chain, contracts } = getDatasource("mainnet", "threedns-base");
56
56
  ```
57
57
 
58
58
  The available `ENSNamespaceId`s are:
59
+
59
60
  - `mainnet`
60
61
  - `sepolia`
61
62
  - `ens-test-env` — Represents a local testing namespace running on an Anvil chain (chain id 1337) with deterministic configurations that deliberately start at block zero for rapid testing and development. See [ens-test-env](https://github.com/ensdomains/ens-test-env) for additional context.
@@ -65,6 +66,7 @@ The available `ENSNamespaceId`s are:
65
66
  Each ENS namespace my provide **Datasource** entries for any of the possible **DatasourceName**s:
66
67
 
67
68
  The available `DatasourceName`s are:
69
+
68
70
  - `ensroot` — ENS Root Contracts, guaranteed to exist
69
71
  - `basenames` — Basenames, optional
70
72
  - `lineanames` — Linea Names, optional
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensnode/datasources",
3
- "version": "0.0.0-next-20260524213631",
3
+ "version": "0.0.0-next-20260525092046",
4
4
  "type": "module",
5
5
  "description": "Catalog of ENSNode-related datasources including chain, contract addresses, start blocks, and event filters.",
6
6
  "license": "MIT",
@@ -40,11 +40,11 @@
40
40
  "typescript": "^5.7.3",
41
41
  "viem": "^2.50.3",
42
42
  "vitest": "^4.0.2",
43
- "@ensnode/shared-configs": "0.0.0-next-20260524213631"
43
+ "@ensnode/shared-configs": "0.0.0-next-20260525092046"
44
44
  },
45
45
  "dependencies": {
46
46
  "@ponder/utils": "^0.2.18",
47
- "enssdk": "0.0.0-next-20260524213631"
47
+ "enssdk": "0.0.0-next-20260525092046"
48
48
  },
49
49
  "scripts": {
50
50
  "prepublish": "tsup",