@ensnode/ensnode-schema 0.34.0 → 0.35.0

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.
@@ -13,9 +13,41 @@ function monkeypatchCollate(col, collation) {
13
13
  var domain = onchainTable("domains", (t) => ({
14
14
  // The namehash of the name
15
15
  id: t.hex().primaryKey(),
16
- // The human readable name, if known. Unknown portions replaced with hash in square brackets (eg, foo.[1234].eth)
16
+ /**
17
+ * The human readable name that this Domain represents.
18
+ *
19
+ * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Name, which is either:
20
+ * a) a normalized Name, or
21
+ * b) a Name entirely consisting of Interpreted Labels.
22
+ *
23
+ * Note that the type of the column will remain string | null, for legacy subgraph compatibility,
24
+ * but in practice will never be null. The Root node's name will be '' (empty string).
25
+ *
26
+ * @see https://ensnode.io/docs/reference/terminology#interpreted-name
27
+ *
28
+ * If REPLACE_UNNORMALIZED is false, this value may contain:
29
+ * a) null (in the case of the root node), or
30
+ * b) a Literal Name that may or may not be normalized and may or may not contain Encoded LabelHashes.
31
+ *
32
+ * @see https://ensnode.io/docs/reference/terminology#literal-name
33
+ */
17
34
  name: t.text(),
18
- // The human readable label name (imported from CSV), if known
35
+ /**
36
+ * The Label associated with the Domain.
37
+ *
38
+ * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Label which is either:
39
+ * a) null, exclusively in the case of the root Node,
40
+ * b) a normalized Label, or
41
+ * c) an Encoded LabelHash of the Literal Label value found onchain.
42
+ *
43
+ * @see https://ensnode.io/docs/reference/terminology#interpreted-label
44
+ *
45
+ * If REPLACE_UNNORMALIZED is false, this value my contain:
46
+ * a) null, exclusively in the case of the root Node, or
47
+ * b) a Literal Label that may or may not be normalized and may or may not be an Encoded LabelHash.
48
+ *
49
+ * @see https://ensnode.io/docs/reference/terminology#literal-label
50
+ */
19
51
  labelName: t.text(),
20
52
  // keccak256(labelName)
21
53
  labelhash: t.hex(),
@@ -110,9 +142,19 @@ var resolver = onchainTable(
110
142
  // The set of observed SLIP-44 coin types for this resolver
111
143
  // NOTE: we avoid .notNull.default([]) to match subgraph behavior
112
144
  coinTypes: t.bigint().array(),
113
- // NOTE(resolver-records): include the value of the reverse-resolution name() record
114
- // https://docs.ens.domains/ensip/3
115
- // NOTE: this is the sanitized name record value with (see @/lib/sanitize-name-record)
145
+ /**
146
+ * Represents the value of the reverse-resolution (ENSIP-3) name() record.
147
+ *
148
+ * The emitted record values are interpreted according to `interpretNameRecordValue` — unnormalized
149
+ * names and empty string values are interpreted as a deletion of the associated record (represented
150
+ * here as `null`).
151
+ *
152
+ * If set, the value of this field is guaranteed to be a non-empty-string normalized ENS name
153
+ * (see `interpretNameRecordValue` for guarantees).
154
+ *
155
+ * Note that this is an extension to the original subgraph schema and legacy subgraph compatibility
156
+ * is not relevant.
157
+ */
116
158
  name: t.text()
117
159
  }),
118
160
  (t) => ({
@@ -149,7 +191,25 @@ var registration = onchainTable(
149
191
  cost: t.bigint(),
150
192
  // The account that registered the domain
151
193
  registrantId: t.hex().notNull(),
152
- // The human-readable label name associated with the domain registration
194
+ /**
195
+ * The Label associated with the domain registration.
196
+ *
197
+ * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Label which is either:
198
+ * a) a normalized Label, or
199
+ * b) an Encoded LabelHash of the Literal Label value found onchain.
200
+ *
201
+ * Note that the type of the column will remain string | null, for legacy subgraph compatibility.
202
+ * In practice however, when REPLACE_UNNORMALIZED is true, because there is no Registration entity
203
+ * for the root Node—the only Node with a null labelName—this field will never be null.
204
+ *
205
+ * @see https://ensnode.io/docs/reference/terminology#interpreted-label
206
+ *
207
+ * If REPLACE_UNNORMALIZED is false, this value may contain:
208
+ * a) null, or
209
+ * b) a Literal Label that may or may not be normalized and may or may not be an Encoded LabelHash.
210
+ *
211
+ * @see https://ensnode.io/docs/reference/terminology#literal-label
212
+ */
153
213
  labelName: t.text()
154
214
  }),
155
215
  (t) => ({
@@ -183,7 +243,24 @@ var wrappedDomain = onchainTable(
183
243
  fuses: t.integer().notNull(),
184
244
  // The account that owns this WrappedDomain
185
245
  ownerId: t.hex().notNull(),
186
- // The name of the wrapped domain
246
+ /**
247
+ * The Name that this WrappedDomain represents.
248
+ *
249
+ * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Name, which is either:
250
+ * a) a normalized Name, or
251
+ * b) a Name entirely consisting of Interpreted Labels.
252
+ *
253
+ * Note that the type of the column will remain string | null, for legacy subgraph compatibility,
254
+ * but in practice will never be null.
255
+ *
256
+ * @see https://ensnode.io/docs/reference/terminology#interpreted-name
257
+ *
258
+ * If REPLACE_UNNORMALIZED is false, this value may contain:
259
+ * a) null (in the case of the root node or invalid Name), or
260
+ * b) a Literal Name that may or may not be normalized and may or may not contain Encoded LabelHashes.
261
+ *
262
+ * @see https://ensnode.io/docs/reference/terminology#literal-name
263
+ */
187
264
  name: t.text()
188
265
  }),
189
266
  (t) => ({
@@ -635,7 +712,7 @@ var ext_resolverTextRecordsRelations = relations2(
635
712
 
636
713
  // src/tokenscope.schema.ts
637
714
  import { index as index2, onchainTable as onchainTable3 } from "ponder";
638
- var nameSales = onchainTable3(
715
+ var ext_nameSales = onchainTable3(
639
716
  "ext_name_sales",
640
717
  (t) => ({
641
718
  /**
@@ -671,9 +748,9 @@ var nameSales = onchainTable3(
671
748
  /**
672
749
  * The tokenId managed by contractAddress that was sold.
673
750
  *
674
- * Interpretation depends on 'assetNamespace':
675
- * - erc721: Unique token within contract
676
- * - erc1155: Token type identifier (multiple copies may exist)
751
+ * In a general context (outside of TokenScope) ERC1155 NFTs may have
752
+ * multiple copies, however TokenScope guarantees that all indexed NFTs
753
+ * never have an amount / balance > 1.
677
754
  */
678
755
  tokenId: t.bigint().notNull(),
679
756
  /**
@@ -690,7 +767,7 @@ var nameSales = onchainTable3(
690
767
  */
691
768
  assetId: t.text().notNull(),
692
769
  /**
693
- * The namehash of the ENS domain that was sold.
770
+ * The namehash (Node) of the ENS domain that was sold.
694
771
  */
695
772
  domainId: t.hex().notNull(),
696
773
  /**
@@ -731,6 +808,90 @@ var nameSales = onchainTable3(
731
808
  idx_timestamp: index2().on(t.timestamp)
732
809
  })
733
810
  );
811
+ var ext_nameTokens = onchainTable3(
812
+ "ext_name_tokens",
813
+ (t) => ({
814
+ /**
815
+ * The CAIP-19 Asset ID of the token.
816
+ *
817
+ * This is a globally unique reference to the token.
818
+ *
819
+ * @see https://chainagnostic.org/CAIPs/caip-19
820
+ */
821
+ id: t.text().primaryKey(),
822
+ /**
823
+ * The namehash (Node) of the ENS name associated with the token.
824
+ *
825
+ * Note: An ENS name may have more than one distinct token across time. It is
826
+ * also possible for multiple distinct tokens for an ENS name to have
827
+ * a mintStatus of `minted` at the same time. For example:
828
+ * - When a direct subname of .eth is wrapped by the NameWrapper. This state
829
+ * has one minted token for the name managed by the BaseRegistrar (this
830
+ * token will be owned by the NameWrapper) and another minted token for
831
+ * the name managed by the NameWrapper (owned by the effective owner of
832
+ * the name).
833
+ * - When a direct subname of .eth is wrapped by the NameWrapper and then
834
+ * unwrapped. This state has one minted token (managed by the BaseRegistrar)
835
+ * and another burned token (managed by the NameWrapper).
836
+ */
837
+ domainId: t.hex().notNull(),
838
+ /**
839
+ * The chain that manages the token.
840
+ */
841
+ chainId: t.integer().notNull(),
842
+ /**
843
+ * The address of the contract on chainId that manages the token.
844
+ */
845
+ contractAddress: t.hex().notNull(),
846
+ /**
847
+ * The tokenId of the token managed by contractAddress.
848
+ *
849
+ * In a general context (outside of TokenScope) ERC1155 NFTs may have
850
+ * multiple copies, however TokenScope guarantees that all indexed NFTs
851
+ * never have an amount / balance > 1.
852
+ */
853
+ tokenId: t.bigint().notNull(),
854
+ /**
855
+ * The CAIP-19 Asset Namespace of the token. Either `erc721` or `erc1155`.
856
+ *
857
+ * @see https://chainagnostic.org/CAIPs/caip-19
858
+ */
859
+ assetNamespace: t.text().notNull(),
860
+ /**
861
+ * The account that owns the token.
862
+ *
863
+ * Value is zeroAddress if and only if mintStatus is `burned`.
864
+ *
865
+ * Note: The owner of the token for a given domainId may differ from the
866
+ * owner of the associated node in the registry. For example:
867
+ * - Consider the case where address X owns the ENS name `foo.eth` in
868
+ * both the BaseRegistrar and the Registry. If X sends a request directly
869
+ * to the Registry to transfer ownership to Y, ownership of `foo.eth` will
870
+ * be transferred to Y in the Registry but not in the BaseRegistrar.
871
+ * - ... for the case above, the BaseRegistrar implements a `reclaim`
872
+ * allowing the owner of the name in the BaseRegistrar to reclaim ownership
873
+ * of the name in the Registry.
874
+ *
875
+ * Note: When a name is wrapped by the NameWrapper, the owner of the token
876
+ * in the BaseRegistrar is the NameWrapper, while a new token for the name is
877
+ * minted by the NameWrapper and owned by the effective owner of the name.
878
+ */
879
+ owner: t.hex().notNull(),
880
+ /**
881
+ * The mint status of the token. Either `minted` or `burned`.
882
+ *
883
+ * After we index a NFT we never delete it from our index. Instead, when an
884
+ * indexed NFT is burned onchain we retain its record and update its mint
885
+ * status as `burned`. If a NFT is minted again after it is burned its mint
886
+ * status is updated to `minted`.
887
+ */
888
+ mintStatus: t.text().notNull()
889
+ }),
890
+ (t) => ({
891
+ idx_domainId: index2().on(t.domainId),
892
+ idx_owner: index2().on(t.owner)
893
+ })
894
+ );
734
895
 
735
896
  // src/resolver-relations.schema.ts
736
897
  import { onchainTable as onchainTable4, relations as relations3, uniqueIndex as uniqueIndex2 } from "ponder";
@@ -889,7 +1050,11 @@ var ext_primaryName = onchainTable6(
889
1050
  id: t.text().primaryKey(),
890
1051
  address: t.hex().notNull(),
891
1052
  coinType: t.bigint().notNull(),
892
- // NOTE: this is the sanitized name record value (see @/lib/sanitize-name-record)
1053
+ /**
1054
+ * Represents the ENSIP-19 Primary Name value for a given (address, coinType).
1055
+ *
1056
+ * The value of this field is guaranteed to be a non-empty-string normalized ENS name.
1057
+ */
893
1058
  name: t.text().notNull()
894
1059
  }),
895
1060
  (t) => ({
@@ -920,6 +1085,8 @@ export {
920
1085
  expiryExtendedRelations,
921
1086
  ext_domainResolverRelation,
922
1087
  ext_domainResolverRelationsRelations,
1088
+ ext_nameSales,
1089
+ ext_nameTokens,
923
1090
  ext_primaryName,
924
1091
  ext_primaryNameRelations,
925
1092
  ext_primaryNames_domain_relations,
@@ -949,7 +1116,6 @@ export {
949
1116
  nameRegisteredRelations,
950
1117
  nameRenewed,
951
1118
  nameRenewedRelations,
952
- nameSales,
953
1119
  nameTransferred,
954
1120
  nameTransferredRelations,
955
1121
  nameUnwrapped,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/subgraph.schema.ts","../src/collate.ts","../src/resolver-records.schema.ts","../src/tokenscope.schema.ts","../src/resolver-relations.schema.ts","../src/referrals.schema.ts","../src/primary-names.schema.ts"],"sourcesContent":["import { index, onchainTable, relations } from \"ponder\";\nimport type { Address } from \"viem\";\nimport { monkeypatchCollate } from \"./collate\";\n\n/**\n * Domain\n */\n\nexport const domain = onchainTable(\"domains\", (t) => ({\n // The namehash of the name\n id: t.hex().primaryKey(),\n // The human readable name, if known. Unknown portions replaced with hash in square brackets (eg, foo.[1234].eth)\n name: t.text(),\n // The human readable label name (imported from CSV), if known\n labelName: t.text(),\n // keccak256(labelName)\n labelhash: t.hex(),\n // The namehash (id) of the parent name\n parentId: t.hex(),\n\n // The number of subdomains\n subdomainCount: t.integer().notNull().default(0),\n\n // Address logged from current resolver, if any\n resolvedAddressId: t.hex(),\n\n // The resolver that controls the domain's settings\n resolverId: t.text(),\n\n // The time-to-live (TTL) value of the domain's records\n ttl: t.bigint(),\n\n // Indicates whether the domain has been migrated to a new registrar\n isMigrated: t.boolean().notNull().default(false),\n // The time when the domain was created\n createdAt: t.bigint().notNull(),\n\n // The account that owns the domain\n ownerId: t.hex().notNull(),\n // The account that owns the ERC721 NFT for the domain\n registrantId: t.hex(),\n // The account that owns the wrapped domain\n wrappedOwnerId: t.hex(),\n\n // The expiry date for the domain, from either the registration, or the wrapped domain if PCC is burned\n expiryDate: t.bigint(),\n}));\n\n// monkeypatch drizzle's column (necessary to match graph-node default collation \"C\")\n// https://github.com/drizzle-team/drizzle-orm/issues/638\nmonkeypatchCollate(domain.name, '\"C\"');\nmonkeypatchCollate(domain.labelName, '\"C\"');\n\nexport const domainRelations = relations(domain, ({ one, many }) => ({\n resolvedAddress: one(account, {\n fields: [domain.resolvedAddressId],\n references: [account.id],\n }),\n owner: one(account, { fields: [domain.ownerId], references: [account.id] }),\n parent: one(domain, { fields: [domain.parentId], references: [domain.id] }),\n resolver: one(resolver, {\n fields: [domain.resolverId],\n references: [resolver.id],\n }),\n subdomains: many(domain, { relationName: \"parent\" }),\n registrant: one(account, {\n fields: [domain.registrantId],\n references: [account.id],\n }),\n wrappedOwner: one(account, {\n fields: [domain.wrappedOwnerId],\n references: [account.id],\n }),\n wrappedDomain: one(wrappedDomain, {\n fields: [domain.id],\n references: [wrappedDomain.domainId],\n }),\n registration: one(registration, {\n fields: [domain.id],\n references: [registration.domainId],\n }),\n\n // event relations\n transfers: many(transfer),\n newOwners: many(newOwner),\n newResolvers: many(newResolver),\n newTTLs: many(newTTL),\n wrappedTransfers: many(wrappedTransfer),\n nameWrappeds: many(nameWrapped),\n nameUnwrappeds: many(nameUnwrapped),\n fusesSets: many(fusesSet),\n expiryExtendeds: many(expiryExtended),\n}));\n\n/**\n * Account\n */\n\nexport const account = onchainTable(\"accounts\", (t) => ({\n id: t.hex().primaryKey(),\n}));\n\nexport const accountRelations = relations(account, ({ many }) => ({\n domains: many(domain),\n wrappedDomains: many(wrappedDomain),\n registrations: many(registration),\n}));\n\n/**\n * Resolver\n */\n\nexport const resolver = onchainTable(\n \"resolvers\",\n (t) => ({\n // The unique identifier for this resolver, which is a concatenation of the domain namehash and the resolver address\n id: t.text().primaryKey(),\n // The domain that this resolver is associated with\n domainId: t.hex().notNull(),\n // The address of the resolver contract\n address: t.hex().notNull().$type<Address>(),\n\n // The current value of the 'addr' record for this resolver, as determined by the associated events\n addrId: t.hex(),\n // The content hash for this resolver, in binary format\n contentHash: t.text(),\n // The set of observed text record keys for this resolver\n // NOTE: we avoid .notNull.default([]) to match subgraph behavior\n texts: t.text().array(),\n // The set of observed SLIP-44 coin types for this resolver\n // NOTE: we avoid .notNull.default([]) to match subgraph behavior\n coinTypes: t.bigint().array(),\n\n // NOTE(resolver-records): include the value of the reverse-resolution name() record\n // https://docs.ens.domains/ensip/3\n // NOTE: this is the sanitized name record value with (see @/lib/sanitize-name-record)\n name: t.text(),\n }),\n (t) => ({\n idx: index().on(t.domainId),\n }),\n);\n\nexport const resolverRelations = relations(resolver, ({ one, many }) => ({\n addr: one(account, { fields: [resolver.addrId], references: [account.id] }),\n domain: one(domain, { fields: [resolver.domainId], references: [domain.id] }),\n\n // event relations\n addrChangeds: many(addrChanged),\n multicoinAddrChangeds: many(multicoinAddrChanged),\n nameChangeds: many(nameChanged),\n abiChangeds: many(abiChanged),\n pubkeyChangeds: many(pubkeyChanged),\n textChangeds: many(textChanged),\n contenthashChangeds: many(contenthashChanged),\n interfaceChangeds: many(interfaceChanged),\n authorisationChangeds: many(authorisationChanged),\n versionChangeds: many(versionChanged),\n}));\n\n/**\n * Registration\n */\n\nexport const registration = onchainTable(\n \"registrations\",\n (t) => ({\n // The unique identifier of the registration\n id: t.hex().primaryKey(),\n // The domain name associated with the registration\n domainId: t.hex().notNull(),\n // The registration date of the domain\n registrationDate: t.bigint().notNull(),\n // The expiry date of the domain\n expiryDate: t.bigint().notNull(),\n // The cost associated with the domain registration\n cost: t.bigint(),\n // The account that registered the domain\n registrantId: t.hex().notNull(),\n // The human-readable label name associated with the domain registration\n labelName: t.text(),\n }),\n (t) => ({\n idx: index().on(t.domainId),\n }),\n);\n\nexport const registrationRelations = relations(registration, ({ one, many }) => ({\n domain: one(domain, {\n fields: [registration.domainId],\n references: [domain.id],\n }),\n registrant: one(account, {\n fields: [registration.registrantId],\n references: [account.id],\n }),\n\n // event relations\n nameRegistereds: many(nameRegistered),\n nameReneweds: many(nameRenewed),\n nameTransferreds: many(nameTransferred),\n}));\n\n/**\n * Wrapped Domain\n */\n\nexport const wrappedDomain = onchainTable(\n \"wrapped_domains\",\n (t) => ({\n // The unique identifier for each instance of the WrappedDomain entity\n id: t.hex().primaryKey(),\n // The domain that is wrapped by this WrappedDomain\n domainId: t.hex().notNull(),\n // The expiry date of the wrapped domain\n expiryDate: t.bigint().notNull(),\n // The number of fuses remaining on the wrapped domain\n fuses: t.integer().notNull(),\n // The account that owns this WrappedDomain\n ownerId: t.hex().notNull(),\n // The name of the wrapped domain\n name: t.text(),\n }),\n (t) => ({\n idx: index().on(t.domainId),\n }),\n);\n\nexport const wrappedDomainRelations = relations(wrappedDomain, ({ one }) => ({\n domain: one(domain, {\n fields: [wrappedDomain.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [wrappedDomain.ownerId],\n references: [account.id],\n }),\n}));\n\n/**\n * Events\n */\n\nconst sharedEventColumns = (t: any) => ({\n id: t.text().primaryKey(),\n blockNumber: t.integer().notNull(),\n transactionID: t.hex().notNull(),\n});\n\nconst domainEvent = (t: any) => ({\n ...sharedEventColumns(t),\n domainId: t.hex().notNull(),\n});\n\nconst domainEventIndex = (t: any) => ({\n // primary reverse lookup\n idx: index().on(t.domainId),\n // sorting index\n idx_compound: index().on(t.domainId, t.id),\n});\n\n// Domain Event Entities\n\nexport const transfer = onchainTable(\n \"transfers\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const newOwner = onchainTable(\n \"new_owners\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n parentDomainId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const newResolver = onchainTable(\n \"new_resolvers\",\n (t) => ({\n ...domainEvent(t),\n resolverId: t.text().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const newTTL = onchainTable(\n \"new_ttls\",\n (t) => ({\n ...domainEvent(t),\n ttl: t.bigint().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const wrappedTransfer = onchainTable(\n \"wrapped_transfers\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const nameWrapped = onchainTable(\n \"name_wrapped\",\n (t) => ({\n ...domainEvent(t),\n name: t.text(),\n fuses: t.integer().notNull(),\n ownerId: t.hex().notNull(),\n expiryDate: t.bigint().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const nameUnwrapped = onchainTable(\n \"name_unwrapped\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const fusesSet = onchainTable(\n \"fuses_set\",\n (t) => ({\n ...domainEvent(t),\n fuses: t.integer().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const expiryExtended = onchainTable(\n \"expiry_extended\",\n (t) => ({\n ...domainEvent(t),\n expiryDate: t.bigint().notNull(),\n }),\n domainEventIndex,\n);\n\n// Registration Event Entities\n\nconst registrationEvent = (t: any) => ({\n ...sharedEventColumns(t),\n registrationId: t.hex().notNull(),\n});\n\nconst registrationEventIndex = (t: any) => ({\n // primary reverse lookup\n idx: index().on(t.registrationId),\n // sorting index\n idx_compound: index().on(t.registrationId, t.id),\n});\n\nexport const nameRegistered = onchainTable(\n \"name_registered\",\n (t) => ({\n ...registrationEvent(t),\n registrantId: t.hex().notNull(),\n expiryDate: t.bigint().notNull(),\n }),\n registrationEventIndex,\n);\n\nexport const nameRenewed = onchainTable(\n \"name_renewed\",\n (t) => ({\n ...registrationEvent(t),\n expiryDate: t.bigint().notNull(),\n }),\n registrationEventIndex,\n);\n\nexport const nameTransferred = onchainTable(\n \"name_transferred\",\n (t) => ({\n ...registrationEvent(t),\n newOwnerId: t.hex().notNull(),\n }),\n registrationEventIndex,\n);\n\n// Resolver Event Entities\n\nconst resolverEvent = (t: any) => ({\n ...sharedEventColumns(t),\n resolverId: t.text().notNull(),\n});\n\nconst resolverEventIndex = (t: any) => ({\n // primary reverse lookup\n idx: index().on(t.resolverId),\n // sorting index\n idx_compound: index().on(t.resolverId, t.id),\n});\n\nexport const addrChanged = onchainTable(\n \"addr_changed\",\n (t) => ({\n ...resolverEvent(t),\n addrId: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const multicoinAddrChanged = onchainTable(\n \"multicoin_addr_changed\",\n (t) => ({\n ...resolverEvent(t),\n coinType: t.bigint().notNull(),\n addr: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const nameChanged = onchainTable(\n \"name_changed\",\n (t) => ({\n ...resolverEvent(t),\n name: t.text().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const abiChanged = onchainTable(\n \"abi_changed\",\n (t) => ({\n ...resolverEvent(t),\n contentType: t.bigint().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const pubkeyChanged = onchainTable(\n \"pubkey_changed\",\n (t) => ({\n ...resolverEvent(t),\n x: t.hex().notNull(),\n y: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const textChanged = onchainTable(\n \"text_changed\",\n (t) => ({\n ...resolverEvent(t),\n key: t.text().notNull(),\n value: t.text(),\n }),\n resolverEventIndex,\n);\n\nexport const contenthashChanged = onchainTable(\n \"contenthash_changed\",\n (t) => ({\n ...resolverEvent(t),\n hash: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const interfaceChanged = onchainTable(\n \"interface_changed\",\n (t) => ({\n ...resolverEvent(t),\n interfaceID: t.hex().notNull(),\n implementer: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const authorisationChanged = onchainTable(\n \"authorisation_changed\",\n (t) => ({\n ...resolverEvent(t),\n owner: t.hex().notNull(),\n target: t.hex().notNull(),\n isAuthorized: t.boolean().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const versionChanged = onchainTable(\n \"version_changed\",\n (t) => ({\n ...resolverEvent(t),\n version: t.bigint().notNull(),\n }),\n resolverEventIndex,\n);\n\n/**\n * Event Relations\n */\n\n// Domain Event Relations\n\nexport const transferRelations = relations(transfer, ({ one }) => ({\n domain: one(domain, { fields: [transfer.domainId], references: [domain.id] }),\n owner: one(account, { fields: [transfer.ownerId], references: [account.id] }),\n}));\n\nexport const newOwnerRelations = relations(newOwner, ({ one }) => ({\n domain: one(domain, { fields: [newOwner.domainId], references: [domain.id] }),\n owner: one(account, { fields: [newOwner.ownerId], references: [account.id] }),\n parentDomain: one(domain, {\n fields: [newOwner.parentDomainId],\n references: [domain.id],\n }),\n}));\n\nexport const newResolverRelations = relations(newResolver, ({ one }) => ({\n domain: one(domain, {\n fields: [newResolver.domainId],\n references: [domain.id],\n }),\n resolver: one(resolver, {\n fields: [newResolver.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const newTTLRelations = relations(newTTL, ({ one }) => ({\n domain: one(domain, { fields: [newTTL.domainId], references: [domain.id] }),\n}));\n\nexport const wrappedTransferRelations = relations(wrappedTransfer, ({ one }) => ({\n domain: one(domain, {\n fields: [wrappedTransfer.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [wrappedTransfer.ownerId],\n references: [account.id],\n }),\n}));\n\nexport const nameWrappedRelations = relations(nameWrapped, ({ one }) => ({\n domain: one(domain, {\n fields: [nameWrapped.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [nameWrapped.ownerId],\n references: [account.id],\n }),\n}));\n\nexport const nameUnwrappedRelations = relations(nameUnwrapped, ({ one }) => ({\n domain: one(domain, {\n fields: [nameUnwrapped.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [nameUnwrapped.ownerId],\n references: [account.id],\n }),\n}));\n\nexport const fusesSetRelations = relations(fusesSet, ({ one }) => ({\n domain: one(domain, { fields: [fusesSet.domainId], references: [domain.id] }),\n}));\n\nexport const expiryExtendedRelations = relations(expiryExtended, ({ one }) => ({\n domain: one(domain, {\n fields: [expiryExtended.domainId],\n references: [domain.id],\n }),\n}));\n\n// Registration Event Relations\n\nexport const nameRegisteredRelations = relations(nameRegistered, ({ one }) => ({\n registration: one(registration, {\n fields: [nameRegistered.registrationId],\n references: [registration.id],\n }),\n registrant: one(account, {\n fields: [nameRegistered.registrantId],\n references: [account.id],\n }),\n}));\n\nexport const nameRenewedRelations = relations(nameRenewed, ({ one }) => ({\n registration: one(registration, {\n fields: [nameRenewed.registrationId],\n references: [registration.id],\n }),\n}));\n\nexport const nameTransferredRelations = relations(nameTransferred, ({ one }) => ({\n registration: one(registration, {\n fields: [nameTransferred.registrationId],\n references: [registration.id],\n }),\n newOwner: one(account, {\n fields: [nameTransferred.newOwnerId],\n references: [account.id],\n }),\n}));\n\n// Resolver Event Relations\n\nexport const addrChangedRelations = relations(addrChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [addrChanged.resolverId],\n references: [resolver.id],\n }),\n addr: one(account, {\n fields: [addrChanged.addrId],\n references: [account.id],\n }),\n}));\n\nexport const multicoinAddrChangedRelations = relations(multicoinAddrChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [multicoinAddrChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const nameChangedRelations = relations(nameChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [nameChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const abiChangedRelations = relations(abiChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [abiChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const pubkeyChangedRelations = relations(pubkeyChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [pubkeyChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const textChangedRelations = relations(textChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [textChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const contenthashChangedRelations = relations(contenthashChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [contenthashChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const interfaceChangedRelations = relations(interfaceChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [interfaceChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const authorisationChangedRelations = relations(authorisationChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [authorisationChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const versionChangedRelations = relations(versionChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [versionChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n","// https://github.com/drizzle-team/drizzle-orm/issues/638\nexport function monkeypatchCollate(col: any, collation: string) {\n col.getSQLType = function (this: any) {\n return Object.getPrototypeOf(this).getSQLType.call(this) + \" COLLATE \" + collation;\n };\n return col;\n}\n","/**\n * Schema Definitions for optional tracking of additional Resolver record values\n *\n * Some background context: In the ENSv1 protocol, any number of Resolver contracts may exist on mainnet,\n * each of which can manage any number of records for any number of Nodes. That is, there is a\n * many-to-many relationship between Resolver contracts and Nodes: a Resolver manages records for\n * any number of Nodes and Nodes may have records managed by many Resolver contracts.\n *\n * During resolution, ENSIP-10 is followed to identify a single 'active' Resolver contract for a Node,\n * and it is only that Resolver that is queried in order to resolve the 'active' records for the given Node.\n *\n * A Resolver _contract_ in ENS represents the following:\n * Resolver Contract\n * - has many records for many Nodes\n * - has one `addr` record for a Node (see ENSIP-1)\n * - has one `name` record for a Node (see ENSIP-3)\n * - has one `abi` record for a Node (see ENSIP-4)\n * - has one `contenthash` record for a Node (see ENSIP-7)\n * - has one `pubkey` record for a Node (see PubkeyResolver.sol)\n * - has one `version` record for a Node (see IVersionableResolver.sol)\n * - has many address records for a Node (by coinType) (see ENSIP-9)\n * - has many text records for a Node (by key) (see ENSIP-5)\n * - has many interface records for a Node (by interfaceID) (see ENSIP-8)\n * - ...etc\n *\n * In the Subgraph schema, however, a Resolver _entity_ in the database does NOT represent a\n * Resolver _contract_: it represents the pairwise relationship between a Resolver contract and a\n * Node and is unique by ([chainId], Resolver contract address, Node). That is, it represents\n * \"a Node's relationship to an on-chain Resolver contract\".\n *\n * Naturally, this discrepancy may be confusing, but throughout this codebase a Resolver _entity_\n * refers to that _relationship_ between a Resolver and Node, _not_ the unique Resolver contract itself.\n *\n * The Subgraph describes the following datamodel instead:\n * Resolver (the Resolver-Node relationship)\n * - has one `addr` record for a Node\n * - has one `contenthash` record for a Node\n * - has one set of `coinTypes` storing the keys of all ENSIP-9 address records emitted for a Node\n * - NOTE(subgraph-compat): does _not_ track the implicit coinType of 60 for the `addr` record, if set\n * - has one set of `texts` storing the keys of all ENSIP-5 text records emitted for a Node\n *\n * In this file, we extend the subgraph's Resolver _entity_ with the following _additional_ records:\n * Resolver (the Resolver-Node relationship)\n * + has one `name` record for a Node (see ENSIP-3)\n * - see 'NOTE(resolver-records)' in subgraph.schema.ts\n * + has many `addressRecords` for a Node (by coinType) (see ENSIP-9)\n * - see ResolverAddressRecord below\n * - NOTE: _does_ represent the implicit coinType of 60 for the `addr` record, if set\n * + has many `textRecords` for a Node (by key) (see ENSIP-5)\n * - see ResolverTextRecord below\n *\n * Terminology Note:\n * - 'Subgraph Indexed Record Values' — `addr`, `contenthash`\n * - 'Additionally Indexed Record Values' — `name`, `addressRecords`, `textRecords`\n * - 'Active Resolver Record Values' — the actual record values retrieved by following the ENS protocol\n * specifications for forward resolutuon, including ENSIP-10 and CCIP-Read.\n *\n * NOTE: These additionally indexed record values still do NOT allow the caller to confidently resolve\n * records for names without following Forward Resolution according to the ENS protocol: a direct query\n * for the indexed values of a names's Resolver and retrieval of its values from the database is not\n * ENSIP-10 nor CCIP-Read compliant.\n */\n\nimport { onchainTable, relations, uniqueIndex } from \"ponder\";\nimport { resolver } from \"./subgraph.schema\";\n\n// add the additional `Resolver.records` relationship to subgraph's Resolver entity\nexport const ext_resolverRecords_resolver_relations = relations(resolver, ({ one, many }) => ({\n // resolver has many address records\n addressRecords: many(ext_resolverAddressRecords),\n\n // resolver has many text records\n // NOTE: can't use `texts` because Resolver.texts is used by subgraph schema\n textRecords: many(ext_resolverTextRecords),\n}));\n\nexport const ext_resolverAddressRecords = onchainTable(\n \"ext_resolver_address_records\",\n (t) => ({\n // keyed by (resolverId, coinType)\n id: t.text().primaryKey(),\n resolverId: t.text().notNull(),\n coinType: t.bigint().notNull(),\n\n address: t.text().notNull(),\n }),\n (t) => ({\n byResolverIdAndCoinType: uniqueIndex().on(t.resolverId, t.coinType),\n }),\n);\n\nexport const ext_resolverAddressRecordsRelations = relations(\n ext_resolverAddressRecords,\n ({ one, many }) => ({\n // belongs to resolver\n resolver: one(resolver, {\n fields: [ext_resolverAddressRecords.resolverId],\n references: [resolver.id],\n }),\n }),\n);\n\nexport const ext_resolverTextRecords = onchainTable(\n \"ext_resolver_text_records\",\n (t) => ({\n // keyed by (resolverId, key)\n id: t.text().primaryKey(),\n resolverId: t.text().notNull(),\n key: t.text().notNull(),\n\n value: t.text().notNull(),\n }),\n (t) => ({\n byResolverIdAndKey: uniqueIndex().on(t.resolverId, t.key),\n }),\n);\n\nexport const ext_resolverTextRecordsRelations = relations(\n ext_resolverTextRecords,\n ({ one, many }) => ({\n // belongs to resolver\n resolver: one(resolver, {\n fields: [ext_resolverTextRecords.resolverId],\n references: [resolver.id],\n }),\n }),\n);\n","import { index, onchainTable } from \"ponder\";\n\nexport const nameSales = onchainTable(\n \"ext_name_sales\",\n (t) => ({\n /**\n * Unique and deterministic identifier of the onchain event associated with the sale.\n *\n * Composite key format: \"{chainId}-{blockNumber}-{logIndex}\" (e.g., \"1-1234567-5\")\n */\n id: t.text().primaryKey(),\n\n /**\n * The chain where the sale occurred.\n */\n chainId: t.integer().notNull(),\n\n /**\n * The block number on chainId where the sale occurred.\n */\n blockNumber: t.bigint().notNull(),\n\n /**\n * The log index position of the sale event within blockNumber.\n */\n logIndex: t.integer().notNull(),\n\n /**\n * The EVM transaction hash on chainId associated with the sale.\n */\n transactionHash: t.hex().notNull(),\n\n /**\n * The Seaport order hash.\n */\n orderHash: t.hex().notNull(),\n\n /**\n * The address of the contract on chainId that manages tokenId.\n */\n contractAddress: t.hex().notNull(),\n\n /**\n * The tokenId managed by contractAddress that was sold.\n *\n * Interpretation depends on 'assetNamespace':\n * - erc721: Unique token within contract\n * - erc1155: Token type identifier (multiple copies may exist)\n */\n tokenId: t.bigint().notNull(),\n\n /**\n * The CAIP-19 Asset Namespace of the token that was sold. Either `erc721` or `erc1155`.\n *\n * @see https://chainagnostic.org/CAIPs/caip-19\n */\n assetNamespace: t.text().notNull(),\n\n /**\n * The CAIP-19 Asset ID of token that was sold. This is a globally unique reference to the\n * specific asset in question.\n *\n * @see https://chainagnostic.org/CAIPs/caip-19\n */\n assetId: t.text().notNull(),\n\n /**\n * The namehash of the ENS domain that was sold.\n */\n domainId: t.hex().notNull(),\n\n /**\n * The account that bought the token controlling ownership of domainId from\n * the seller for the amount of currency associated with the sale.\n */\n buyer: t.hex().notNull(),\n\n /**\n * The account that sold the token controlling ownership of domainId to\n * buyer for the amount of currency associated with the sale.\n */\n seller: t.hex().notNull(),\n\n /**\n * Currency of the payment (ETH, USDC or DAI) from buyer to seller in exchange for tokenId.\n */\n currency: t.text().notNull(),\n\n /**\n * The amount of currency paid from buyer to seller in exchange for tokenId.\n *\n * Denominated in the smallest unit of currency.\n *\n * Amount interpretation depends on currency:\n * - ETH/WETH: Amount in wei (1 ETH = 10^18 wei)\n * - USDC: Amount in micro-units (1 USDC = 10^6 units)\n * - DAI: Amount in wei-equivalent (1 DAI = 10^18 units)\n */\n amount: t.bigint().notNull(),\n\n /**\n * Unix timestamp of the block timestamp when the sale occurred.\n */\n timestamp: t.bigint().notNull(),\n }),\n (t) => ({\n idx_domainId: index().on(t.domainId),\n idx_assetId: index().on(t.assetId),\n idx_buyer: index().on(t.buyer),\n idx_seller: index().on(t.seller),\n idx_timestamp: index().on(t.timestamp),\n }),\n);\n","/**\n * Schema Definitions for an extension of the subgraph schema to track Domain<->Resolver\n * connections by chainId. The subgraph never expected to track Resolvers across multiple chains,\n * but since we now index multiple chains, it becomes necessary to store the information encoding\n * \"to which Resolver on a specific chain does this Domain delegate\".\n */\n\nimport { onchainTable, relations, uniqueIndex } from \"ponder\";\nimport { domain, resolver } from \"./subgraph.schema\";\n\n// add the additional relationships to subgraph's Domain entity\nexport const ext_resolverRelations_domain_relations = relations(domain, ({ one, many }) => ({\n // domain has many resolver relations (i.e. one per chain, see above)\n resolverRelations: many(ext_domainResolverRelation),\n}));\n\n// add the additional relationships to subgraph's Resolver entity\nexport const ext_resolverRelations_resolver_relations = relations(resolver, ({ one, many }) => ({\n // resolver has many domain relations\n domainRelations: many(ext_domainResolverRelation),\n}));\n\n// tracks Domain-Resolver relationships by chainId (see above)\nexport const ext_domainResolverRelation = onchainTable(\n \"ext_domain_resolver_relations\",\n (t) => ({\n // keyed by (chainId, domainId)\n id: t.text().primaryKey(),\n chainId: t.integer().notNull(),\n domainId: t.text().notNull(),\n\n resolverId: t.text().notNull(),\n }),\n (t) => ({\n byChainIdAndDomain: uniqueIndex().on(t.chainId, t.domainId),\n }),\n);\n\nexport const ext_domainResolverRelationsRelations = relations(\n ext_domainResolverRelation,\n ({ one, many }) => ({\n // belongs to domain\n domain: one(domain, {\n fields: [ext_domainResolverRelation.domainId],\n references: [domain.id],\n }),\n // belongs to resolver\n resolver: one(resolver, {\n fields: [ext_domainResolverRelation.resolverId],\n references: [resolver.id],\n }),\n }),\n);\n","/**\n * Schema Definitions for tracking of ENS referrals.\n */\n\nimport { index, onchainTable, relations } from \"ponder\";\nimport { domain, account } from \"./subgraph.schema\";\n\n/**\n * A RegistrationReferral tracks individual occurences of referrals for ENS name registrations.\n */\nexport const ext_registrationReferral = onchainTable(\n \"ext_registration_referral\",\n (t) => ({\n // keyed by any arbitrary unique id, usually `event.id`\n id: t.text().primaryKey(),\n\n referrerId: t.hex().notNull(),\n domainId: t.text().notNull(),\n refereeId: t.hex().notNull(),\n baseCost: t.bigint().notNull(),\n premium: t.bigint().notNull(),\n total: t.bigint().notNull(),\n\n // chainId the transaction occurred on\n chainId: t.integer().notNull(),\n // transaction's hash\n transactionHash: t.hex().notNull(),\n // block's Unix timestamp in seconds\n timestamp: t.bigint().notNull(),\n }),\n (t) => ({\n byRefereeId: index().on(t.refereeId),\n byReferrerId: index().on(t.referrerId),\n }),\n);\n\nexport const ext_registrationReferral_relations = relations(\n ext_registrationReferral,\n ({ one, many }) => ({\n // RegistrationReferral references one Referrer\n referrer: one(ext_referrer, {\n fields: [ext_registrationReferral.referrerId],\n references: [ext_referrer.id],\n }),\n // RegistrationReferral references one Account (as referee)\n referee: one(account, {\n fields: [ext_registrationReferral.refereeId],\n references: [account.id],\n }),\n // RegistrationReferral references one Domain\n domain: one(domain, {\n fields: [ext_registrationReferral.domainId],\n references: [domain.id],\n }),\n }),\n);\n\n/**\n * A RenewalReferral tracks individual occurences of referrals for ENS name renewals.\n */\nexport const ext_renewalReferral = onchainTable(\n \"ext_renewal_referral\",\n (t) => ({\n // keyed by any arbitrary unique id, usually `event.id`\n id: t.text().primaryKey(),\n\n referrerId: t.hex().notNull(),\n refereeId: t.hex().notNull(),\n domainId: t.text().notNull(),\n cost: t.bigint().notNull(),\n\n // chainId the transaction occurred on\n chainId: t.integer().notNull(),\n // transaction's hash\n transactionHash: t.hex().notNull(),\n // Block's Unix timestamp in seconds\n timestamp: t.bigint().notNull(),\n }),\n (t) => ({\n byRefereeId: index().on(t.refereeId),\n byReferrerId: index().on(t.referrerId),\n }),\n);\n\nexport const ext_renewalReferral_relations = relations(ext_renewalReferral, ({ one, many }) => ({\n // RenewalReferral references one Referrer\n referrer: one(ext_referrer, {\n fields: [ext_renewalReferral.referrerId],\n references: [ext_referrer.id],\n }),\n // RenewalReferral references one Account (as referee)\n referee: one(account, {\n fields: [ext_renewalReferral.refereeId],\n references: [account.id],\n }),\n // RenewalReferral references one Domain\n domain: one(domain, {\n fields: [ext_renewalReferral.domainId],\n references: [domain.id],\n }),\n}));\n\n// add Domain relations\nexport const ext_referrals_domain_relations = relations(domain, ({ one, many }) => ({\n // Domain has many RegistrationReferrals\n registrationReferrals: many(ext_registrationReferral),\n\n // Domain has many RenewalReferrals\n renewalReferrals: many(ext_renewalReferral),\n}));\n\n/**\n * Referrer represents an individual referrer, keyed by their onchain address. It holds aggregate\n * statistics about referrals, namely the total value (in wei) they've referred to the ENS protocol.\n */\nexport const ext_referrer = onchainTable(\n \"ext_referral_totals\",\n (t) => ({\n // keyed by Referrer's id (bytes32 hex)\n id: t.hex().primaryKey(),\n valueWei: t.bigint().notNull(),\n }),\n (t) => ({}),\n);\n\nexport const ext_referrer_relations = relations(ext_referrer, ({ one, many }) => ({\n // Referrer has many RegistrationReferrals\n registrationReferrals: many(ext_registrationReferral),\n\n // Referrer has many RenewalReferrals\n renewalReferrals: many(ext_renewalReferral),\n}));\n","/**\n * Schema Definitions for tracking an Account's ENSIP-19 Primary Name(s) by CoinType.\n */\n\nimport { onchainTable, relations, uniqueIndex } from \"ponder\";\nimport { account } from \"./subgraph.schema\";\n\n// add the additional relationships to subgraph's Account entity\nexport const ext_primaryNames_domain_relations = relations(account, ({ one, many }) => ({\n // account has many primary names\n primaryNames: many(ext_primaryName),\n}));\n\n/**\n * Tracks an Account's ENSIP-19 Primary Name by CoinType.\n *\n * NOTE: this is NOT a cohesive, materialized index of ALL of an account's names, it is ONLY the\n * materialized index of its ENSIP-19 Primary Names backed by a StandaloneReverseRegistrar:\n * - default.reverse\n * - [coinType].reverse\n * - NOT *.addr.reverse\n *\n * So these records CANNOT be queried directly and used as a source of truth — you MUST perform\n * Forward Resolution to resolve a consistent set of an Account's ENSIP-19 Primary Names. These records\n * are used to power Protocol Acceleration for those ReverseResolvers backed by a StandloneReverseRegistrar.\n */\nexport const ext_primaryName = onchainTable(\n \"ext_primary_names\",\n (t) => ({\n // keyed by (address, coinType)\n id: t.text().primaryKey(),\n address: t.hex().notNull(),\n coinType: t.bigint().notNull(),\n\n // NOTE: this is the sanitized name record value (see @/lib/sanitize-name-record)\n name: t.text().notNull(),\n }),\n (t) => ({\n byAddressAndCoinType: uniqueIndex().on(t.address, t.coinType),\n }),\n);\n\nexport const ext_primaryNameRelations = relations(ext_primaryName, ({ one, many }) => ({\n // belongs to account\n account: one(account, {\n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,EACA,CAAC,OAAO;AAAA;AAAA,IAEN,IAAI,EAAE,IAAI,EAAE,WAAW;AAAA,IACvB,UAAU,EAAE,OAAO,EAAE,QAAQ;AAAA,EAC/B;AAAA,EACA,CAAC,OAAO,CAAC;AACX;AAEO,IAAM,yBAAyBE,WAAU,cAAc,CAAC,EAAE,KAAK,KAAK,OAAO;AAAA;AAAA,EAEhF,uBAAuB,KAAK,wBAAwB;AAAA;AAAA,EAGpD,kBAAkB,KAAK,mBAAmB;AAC5C,EAAE;;;AC/HF,SAAS,gBAAAC,eAAc,aAAAC,YAAW,eAAAC,oBAAmB;AAI9C,IAAM,oCAAoCC,WAAU,SAAS,CAAC,EAAE,KAAK,KAAK,OAAO;AAAA;AAAA,EAEtF,cAAc,KAAK,eAAe;AACpC,EAAE;AAeK,IAAM,kBAAkBC;AAAA,EAC7B;AAAA,EACA,CAAC,OAAO;AAAA;AAAA,IAEN,IAAI,EAAE,KAAK,EAAE,WAAW;AAAA,IACxB,SAAS,EAAE,IAAI,EAAE,QAAQ;AAAA,IACzB,UAAU,EAAE,OAAO,EAAE,QAAQ;AAAA;AAAA,IAG7B,MAAM,EAAE,KAAK,EAAE,QAAQ;AAAA,EACzB;AAAA,EACA,CAAC,OAAO;AAAA,IACN,sBAAsBC,aAAY,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ;AAAA,EAC9D;AACF;AAEO,IAAM,2BAA2BF,WAAU,iBAAiB,CAAC,EAAE,KAAK,KAAK,OAAO;AAAA;AAAA,EAErF,SAAS,IAAI,SAAS;AAAA,IACpB,QAAQ,CAAC,gBAAgB,OAAO;AAAA,IAChC,YAAY,CAAC,QAAQ,EAAE;AAAA,EACzB,CAAC;AACH,EAAE;","names":["onchainTable","relations","relations","onchainTable","index","onchainTable","onchainTable","relations","uniqueIndex","relations","onchainTable","uniqueIndex","index","onchainTable","relations","onchainTable","index","relations","onchainTable","relations","uniqueIndex","relations","onchainTable","uniqueIndex"]}
1
+ {"version":3,"sources":["../src/subgraph.schema.ts","../src/collate.ts","../src/resolver-records.schema.ts","../src/tokenscope.schema.ts","../src/resolver-relations.schema.ts","../src/referrals.schema.ts","../src/primary-names.schema.ts"],"sourcesContent":["import { index, onchainTable, relations } from \"ponder\";\nimport type { Address } from \"viem\";\nimport { monkeypatchCollate } from \"./collate\";\n\n/**\n * Domain\n */\n\nexport const domain = onchainTable(\"domains\", (t) => ({\n // The namehash of the name\n id: t.hex().primaryKey(),\n\n /**\n * The human readable name that this Domain represents.\n *\n * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Name, which is either:\n * a) a normalized Name, or\n * b) a Name entirely consisting of Interpreted Labels.\n *\n * Note that the type of the column will remain string | null, for legacy subgraph compatibility,\n * but in practice will never be null. The Root node's name will be '' (empty string).\n *\n * @see https://ensnode.io/docs/reference/terminology#interpreted-name\n *\n * If REPLACE_UNNORMALIZED is false, this value may contain:\n * a) null (in the case of the root node), or\n * b) a Literal Name that may or may not be normalized and may or may not contain Encoded LabelHashes.\n *\n * @see https://ensnode.io/docs/reference/terminology#literal-name\n */\n name: t.text(),\n\n /**\n * The Label associated with the Domain.\n *\n * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Label which is either:\n * a) null, exclusively in the case of the root Node,\n * b) a normalized Label, or\n * c) an Encoded LabelHash of the Literal Label value found onchain.\n *\n * @see https://ensnode.io/docs/reference/terminology#interpreted-label\n *\n * If REPLACE_UNNORMALIZED is false, this value my contain:\n * a) null, exclusively in the case of the root Node, or\n * b) a Literal Label that may or may not be normalized and may or may not be an Encoded LabelHash.\n *\n * @see https://ensnode.io/docs/reference/terminology#literal-label\n */\n labelName: t.text(),\n\n // keccak256(labelName)\n labelhash: t.hex(),\n // The namehash (id) of the parent name\n parentId: t.hex(),\n\n // The number of subdomains\n subdomainCount: t.integer().notNull().default(0),\n\n // Address logged from current resolver, if any\n resolvedAddressId: t.hex(),\n\n // The resolver that controls the domain's settings\n resolverId: t.text(),\n\n // The time-to-live (TTL) value of the domain's records\n ttl: t.bigint(),\n\n // Indicates whether the domain has been migrated to a new registrar\n isMigrated: t.boolean().notNull().default(false),\n // The time when the domain was created\n createdAt: t.bigint().notNull(),\n\n // The account that owns the domain\n ownerId: t.hex().notNull(),\n // The account that owns the ERC721 NFT for the domain\n registrantId: t.hex(),\n // The account that owns the wrapped domain\n wrappedOwnerId: t.hex(),\n\n // The expiry date for the domain, from either the registration, or the wrapped domain if PCC is burned\n expiryDate: t.bigint(),\n}));\n\n// monkeypatch drizzle's column (necessary to match graph-node default collation \"C\")\n// https://github.com/drizzle-team/drizzle-orm/issues/638\nmonkeypatchCollate(domain.name, '\"C\"');\nmonkeypatchCollate(domain.labelName, '\"C\"');\n\nexport const domainRelations = relations(domain, ({ one, many }) => ({\n resolvedAddress: one(account, {\n fields: [domain.resolvedAddressId],\n references: [account.id],\n }),\n owner: one(account, { fields: [domain.ownerId], references: [account.id] }),\n parent: one(domain, { fields: [domain.parentId], references: [domain.id] }),\n resolver: one(resolver, {\n fields: [domain.resolverId],\n references: [resolver.id],\n }),\n subdomains: many(domain, { relationName: \"parent\" }),\n registrant: one(account, {\n fields: [domain.registrantId],\n references: [account.id],\n }),\n wrappedOwner: one(account, {\n fields: [domain.wrappedOwnerId],\n references: [account.id],\n }),\n wrappedDomain: one(wrappedDomain, {\n fields: [domain.id],\n references: [wrappedDomain.domainId],\n }),\n registration: one(registration, {\n fields: [domain.id],\n references: [registration.domainId],\n }),\n\n // event relations\n transfers: many(transfer),\n newOwners: many(newOwner),\n newResolvers: many(newResolver),\n newTTLs: many(newTTL),\n wrappedTransfers: many(wrappedTransfer),\n nameWrappeds: many(nameWrapped),\n nameUnwrappeds: many(nameUnwrapped),\n fusesSets: many(fusesSet),\n expiryExtendeds: many(expiryExtended),\n}));\n\n/**\n * Account\n */\n\nexport const account = onchainTable(\"accounts\", (t) => ({\n id: t.hex().primaryKey(),\n}));\n\nexport const accountRelations = relations(account, ({ many }) => ({\n domains: many(domain),\n wrappedDomains: many(wrappedDomain),\n registrations: many(registration),\n}));\n\n/**\n * Resolver\n */\n\nexport const resolver = onchainTable(\n \"resolvers\",\n (t) => ({\n // The unique identifier for this resolver, which is a concatenation of the domain namehash and the resolver address\n id: t.text().primaryKey(),\n // The domain that this resolver is associated with\n domainId: t.hex().notNull(),\n // The address of the resolver contract\n address: t.hex().notNull().$type<Address>(),\n\n // The current value of the 'addr' record for this resolver, as determined by the associated events\n addrId: t.hex(),\n // The content hash for this resolver, in binary format\n contentHash: t.text(),\n // The set of observed text record keys for this resolver\n // NOTE: we avoid .notNull.default([]) to match subgraph behavior\n texts: t.text().array(),\n // The set of observed SLIP-44 coin types for this resolver\n // NOTE: we avoid .notNull.default([]) to match subgraph behavior\n coinTypes: t.bigint().array(),\n\n /**\n * Represents the value of the reverse-resolution (ENSIP-3) name() record.\n *\n * The emitted record values are interpreted according to `interpretNameRecordValue` — unnormalized\n * names and empty string values are interpreted as a deletion of the associated record (represented\n * here as `null`).\n *\n * If set, the value of this field is guaranteed to be a non-empty-string normalized ENS name\n * (see `interpretNameRecordValue` for guarantees).\n *\n * Note that this is an extension to the original subgraph schema and legacy subgraph compatibility\n * is not relevant.\n */\n name: t.text(),\n }),\n (t) => ({\n idx: index().on(t.domainId),\n }),\n);\n\nexport const resolverRelations = relations(resolver, ({ one, many }) => ({\n addr: one(account, { fields: [resolver.addrId], references: [account.id] }),\n domain: one(domain, { fields: [resolver.domainId], references: [domain.id] }),\n\n // event relations\n addrChangeds: many(addrChanged),\n multicoinAddrChangeds: many(multicoinAddrChanged),\n nameChangeds: many(nameChanged),\n abiChangeds: many(abiChanged),\n pubkeyChangeds: many(pubkeyChanged),\n textChangeds: many(textChanged),\n contenthashChangeds: many(contenthashChanged),\n interfaceChangeds: many(interfaceChanged),\n authorisationChangeds: many(authorisationChanged),\n versionChangeds: many(versionChanged),\n}));\n\n/**\n * Registration\n */\n\nexport const registration = onchainTable(\n \"registrations\",\n (t) => ({\n // The unique identifier of the registration\n id: t.hex().primaryKey(),\n // The domain name associated with the registration\n domainId: t.hex().notNull(),\n // The registration date of the domain\n registrationDate: t.bigint().notNull(),\n // The expiry date of the domain\n expiryDate: t.bigint().notNull(),\n // The cost associated with the domain registration\n cost: t.bigint(),\n // The account that registered the domain\n registrantId: t.hex().notNull(),\n /**\n * The Label associated with the domain registration.\n *\n * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Label which is either:\n * a) a normalized Label, or\n * b) an Encoded LabelHash of the Literal Label value found onchain.\n *\n * Note that the type of the column will remain string | null, for legacy subgraph compatibility.\n * In practice however, when REPLACE_UNNORMALIZED is true, because there is no Registration entity\n * for the root Node—the only Node with a null labelName—this field will never be null.\n *\n * @see https://ensnode.io/docs/reference/terminology#interpreted-label\n *\n * If REPLACE_UNNORMALIZED is false, this value may contain:\n * a) null, or\n * b) a Literal Label that may or may not be normalized and may or may not be an Encoded LabelHash.\n *\n * @see https://ensnode.io/docs/reference/terminology#literal-label\n */\n labelName: t.text(),\n }),\n (t) => ({\n idx: index().on(t.domainId),\n }),\n);\n\nexport const registrationRelations = relations(registration, ({ one, many }) => ({\n domain: one(domain, {\n fields: [registration.domainId],\n references: [domain.id],\n }),\n registrant: one(account, {\n fields: [registration.registrantId],\n references: [account.id],\n }),\n\n // event relations\n nameRegistereds: many(nameRegistered),\n nameReneweds: many(nameRenewed),\n nameTransferreds: many(nameTransferred),\n}));\n\n/**\n * Wrapped Domain\n */\n\nexport const wrappedDomain = onchainTable(\n \"wrapped_domains\",\n (t) => ({\n // The unique identifier for each instance of the WrappedDomain entity\n id: t.hex().primaryKey(),\n // The domain that is wrapped by this WrappedDomain\n domainId: t.hex().notNull(),\n // The expiry date of the wrapped domain\n expiryDate: t.bigint().notNull(),\n // The number of fuses remaining on the wrapped domain\n fuses: t.integer().notNull(),\n // The account that owns this WrappedDomain\n ownerId: t.hex().notNull(),\n /**\n * The Name that this WrappedDomain represents.\n *\n * If REPLACE_UNNORMALIZED is true, this value is guaranteed to be an Interpreted Name, which is either:\n * a) a normalized Name, or\n * b) a Name entirely consisting of Interpreted Labels.\n *\n * Note that the type of the column will remain string | null, for legacy subgraph compatibility,\n * but in practice will never be null.\n *\n * @see https://ensnode.io/docs/reference/terminology#interpreted-name\n *\n * If REPLACE_UNNORMALIZED is false, this value may contain:\n * a) null (in the case of the root node or invalid Name), or\n * b) a Literal Name that may or may not be normalized and may or may not contain Encoded LabelHashes.\n *\n * @see https://ensnode.io/docs/reference/terminology#literal-name\n */\n name: t.text(),\n }),\n (t) => ({\n idx: index().on(t.domainId),\n }),\n);\n\nexport const wrappedDomainRelations = relations(wrappedDomain, ({ one }) => ({\n domain: one(domain, {\n fields: [wrappedDomain.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [wrappedDomain.ownerId],\n references: [account.id],\n }),\n}));\n\n/**\n * Events\n */\n\nconst sharedEventColumns = (t: any) => ({\n id: t.text().primaryKey(),\n blockNumber: t.integer().notNull(),\n transactionID: t.hex().notNull(),\n});\n\nconst domainEvent = (t: any) => ({\n ...sharedEventColumns(t),\n domainId: t.hex().notNull(),\n});\n\nconst domainEventIndex = (t: any) => ({\n // primary reverse lookup\n idx: index().on(t.domainId),\n // sorting index\n idx_compound: index().on(t.domainId, t.id),\n});\n\n// Domain Event Entities\n\nexport const transfer = onchainTable(\n \"transfers\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const newOwner = onchainTable(\n \"new_owners\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n parentDomainId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const newResolver = onchainTable(\n \"new_resolvers\",\n (t) => ({\n ...domainEvent(t),\n resolverId: t.text().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const newTTL = onchainTable(\n \"new_ttls\",\n (t) => ({\n ...domainEvent(t),\n ttl: t.bigint().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const wrappedTransfer = onchainTable(\n \"wrapped_transfers\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const nameWrapped = onchainTable(\n \"name_wrapped\",\n (t) => ({\n ...domainEvent(t),\n name: t.text(),\n fuses: t.integer().notNull(),\n ownerId: t.hex().notNull(),\n expiryDate: t.bigint().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const nameUnwrapped = onchainTable(\n \"name_unwrapped\",\n (t) => ({\n ...domainEvent(t),\n ownerId: t.hex().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const fusesSet = onchainTable(\n \"fuses_set\",\n (t) => ({\n ...domainEvent(t),\n fuses: t.integer().notNull(),\n }),\n domainEventIndex,\n);\n\nexport const expiryExtended = onchainTable(\n \"expiry_extended\",\n (t) => ({\n ...domainEvent(t),\n expiryDate: t.bigint().notNull(),\n }),\n domainEventIndex,\n);\n\n// Registration Event Entities\n\nconst registrationEvent = (t: any) => ({\n ...sharedEventColumns(t),\n registrationId: t.hex().notNull(),\n});\n\nconst registrationEventIndex = (t: any) => ({\n // primary reverse lookup\n idx: index().on(t.registrationId),\n // sorting index\n idx_compound: index().on(t.registrationId, t.id),\n});\n\nexport const nameRegistered = onchainTable(\n \"name_registered\",\n (t) => ({\n ...registrationEvent(t),\n registrantId: t.hex().notNull(),\n expiryDate: t.bigint().notNull(),\n }),\n registrationEventIndex,\n);\n\nexport const nameRenewed = onchainTable(\n \"name_renewed\",\n (t) => ({\n ...registrationEvent(t),\n expiryDate: t.bigint().notNull(),\n }),\n registrationEventIndex,\n);\n\nexport const nameTransferred = onchainTable(\n \"name_transferred\",\n (t) => ({\n ...registrationEvent(t),\n newOwnerId: t.hex().notNull(),\n }),\n registrationEventIndex,\n);\n\n// Resolver Event Entities\n\nconst resolverEvent = (t: any) => ({\n ...sharedEventColumns(t),\n resolverId: t.text().notNull(),\n});\n\nconst resolverEventIndex = (t: any) => ({\n // primary reverse lookup\n idx: index().on(t.resolverId),\n // sorting index\n idx_compound: index().on(t.resolverId, t.id),\n});\n\nexport const addrChanged = onchainTable(\n \"addr_changed\",\n (t) => ({\n ...resolverEvent(t),\n addrId: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const multicoinAddrChanged = onchainTable(\n \"multicoin_addr_changed\",\n (t) => ({\n ...resolverEvent(t),\n coinType: t.bigint().notNull(),\n addr: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const nameChanged = onchainTable(\n \"name_changed\",\n (t) => ({\n ...resolverEvent(t),\n name: t.text().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const abiChanged = onchainTable(\n \"abi_changed\",\n (t) => ({\n ...resolverEvent(t),\n contentType: t.bigint().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const pubkeyChanged = onchainTable(\n \"pubkey_changed\",\n (t) => ({\n ...resolverEvent(t),\n x: t.hex().notNull(),\n y: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const textChanged = onchainTable(\n \"text_changed\",\n (t) => ({\n ...resolverEvent(t),\n key: t.text().notNull(),\n value: t.text(),\n }),\n resolverEventIndex,\n);\n\nexport const contenthashChanged = onchainTable(\n \"contenthash_changed\",\n (t) => ({\n ...resolverEvent(t),\n hash: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const interfaceChanged = onchainTable(\n \"interface_changed\",\n (t) => ({\n ...resolverEvent(t),\n interfaceID: t.hex().notNull(),\n implementer: t.hex().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const authorisationChanged = onchainTable(\n \"authorisation_changed\",\n (t) => ({\n ...resolverEvent(t),\n owner: t.hex().notNull(),\n target: t.hex().notNull(),\n isAuthorized: t.boolean().notNull(),\n }),\n resolverEventIndex,\n);\n\nexport const versionChanged = onchainTable(\n \"version_changed\",\n (t) => ({\n ...resolverEvent(t),\n version: t.bigint().notNull(),\n }),\n resolverEventIndex,\n);\n\n/**\n * Event Relations\n */\n\n// Domain Event Relations\n\nexport const transferRelations = relations(transfer, ({ one }) => ({\n domain: one(domain, { fields: [transfer.domainId], references: [domain.id] }),\n owner: one(account, { fields: [transfer.ownerId], references: [account.id] }),\n}));\n\nexport const newOwnerRelations = relations(newOwner, ({ one }) => ({\n domain: one(domain, { fields: [newOwner.domainId], references: [domain.id] }),\n owner: one(account, { fields: [newOwner.ownerId], references: [account.id] }),\n parentDomain: one(domain, {\n fields: [newOwner.parentDomainId],\n references: [domain.id],\n }),\n}));\n\nexport const newResolverRelations = relations(newResolver, ({ one }) => ({\n domain: one(domain, {\n fields: [newResolver.domainId],\n references: [domain.id],\n }),\n resolver: one(resolver, {\n fields: [newResolver.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const newTTLRelations = relations(newTTL, ({ one }) => ({\n domain: one(domain, { fields: [newTTL.domainId], references: [domain.id] }),\n}));\n\nexport const wrappedTransferRelations = relations(wrappedTransfer, ({ one }) => ({\n domain: one(domain, {\n fields: [wrappedTransfer.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [wrappedTransfer.ownerId],\n references: [account.id],\n }),\n}));\n\nexport const nameWrappedRelations = relations(nameWrapped, ({ one }) => ({\n domain: one(domain, {\n fields: [nameWrapped.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [nameWrapped.ownerId],\n references: [account.id],\n }),\n}));\n\nexport const nameUnwrappedRelations = relations(nameUnwrapped, ({ one }) => ({\n domain: one(domain, {\n fields: [nameUnwrapped.domainId],\n references: [domain.id],\n }),\n owner: one(account, {\n fields: [nameUnwrapped.ownerId],\n references: [account.id],\n }),\n}));\n\nexport const fusesSetRelations = relations(fusesSet, ({ one }) => ({\n domain: one(domain, { fields: [fusesSet.domainId], references: [domain.id] }),\n}));\n\nexport const expiryExtendedRelations = relations(expiryExtended, ({ one }) => ({\n domain: one(domain, {\n fields: [expiryExtended.domainId],\n references: [domain.id],\n }),\n}));\n\n// Registration Event Relations\n\nexport const nameRegisteredRelations = relations(nameRegistered, ({ one }) => ({\n registration: one(registration, {\n fields: [nameRegistered.registrationId],\n references: [registration.id],\n }),\n registrant: one(account, {\n fields: [nameRegistered.registrantId],\n references: [account.id],\n }),\n}));\n\nexport const nameRenewedRelations = relations(nameRenewed, ({ one }) => ({\n registration: one(registration, {\n fields: [nameRenewed.registrationId],\n references: [registration.id],\n }),\n}));\n\nexport const nameTransferredRelations = relations(nameTransferred, ({ one }) => ({\n registration: one(registration, {\n fields: [nameTransferred.registrationId],\n references: [registration.id],\n }),\n newOwner: one(account, {\n fields: [nameTransferred.newOwnerId],\n references: [account.id],\n }),\n}));\n\n// Resolver Event Relations\n\nexport const addrChangedRelations = relations(addrChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [addrChanged.resolverId],\n references: [resolver.id],\n }),\n addr: one(account, {\n fields: [addrChanged.addrId],\n references: [account.id],\n }),\n}));\n\nexport const multicoinAddrChangedRelations = relations(multicoinAddrChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [multicoinAddrChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const nameChangedRelations = relations(nameChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [nameChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const abiChangedRelations = relations(abiChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [abiChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const pubkeyChangedRelations = relations(pubkeyChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [pubkeyChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const textChangedRelations = relations(textChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [textChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const contenthashChangedRelations = relations(contenthashChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [contenthashChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const interfaceChangedRelations = relations(interfaceChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [interfaceChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const authorisationChangedRelations = relations(authorisationChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [authorisationChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n\nexport const versionChangedRelations = relations(versionChanged, ({ one }) => ({\n resolver: one(resolver, {\n fields: [versionChanged.resolverId],\n references: [resolver.id],\n }),\n}));\n","// https://github.com/drizzle-team/drizzle-orm/issues/638\nexport function monkeypatchCollate(col: any, collation: string) {\n col.getSQLType = function (this: any) {\n return Object.getPrototypeOf(this).getSQLType.call(this) + \" COLLATE \" + collation;\n };\n return col;\n}\n","/**\n * Schema Definitions for optional tracking of additional Resolver record values\n *\n * Some background context: In the ENSv1 protocol, any number of Resolver contracts may exist on mainnet,\n * each of which can manage any number of records for any number of Nodes. That is, there is a\n * many-to-many relationship between Resolver contracts and Nodes: a Resolver manages records for\n * any number of Nodes and Nodes may have records managed by many Resolver contracts.\n *\n * During resolution, ENSIP-10 is followed to identify a single 'active' Resolver contract for a Node,\n * and it is only that Resolver that is queried in order to resolve the 'active' records for the given Node.\n *\n * A Resolver _contract_ in ENS represents the following:\n * Resolver Contract\n * - has many records for many Nodes\n * - has one `addr` record for a Node (see ENSIP-1)\n * - has one `name` record for a Node (see ENSIP-3)\n * - has one `abi` record for a Node (see ENSIP-4)\n * - has one `contenthash` record for a Node (see ENSIP-7)\n * - has one `pubkey` record for a Node (see PubkeyResolver.sol)\n * - has one `version` record for a Node (see IVersionableResolver.sol)\n * - has many address records for a Node (by coinType) (see ENSIP-9)\n * - has many text records for a Node (by key) (see ENSIP-5)\n * - has many interface records for a Node (by interfaceID) (see ENSIP-8)\n * - ...etc\n *\n * In the Subgraph schema, however, a Resolver _entity_ in the database does NOT represent a\n * Resolver _contract_: it represents the pairwise relationship between a Resolver contract and a\n * Node and is unique by ([chainId], Resolver contract address, Node). That is, it represents\n * \"a Node's relationship to an on-chain Resolver contract\".\n *\n * Naturally, this discrepancy may be confusing, but throughout this codebase a Resolver _entity_\n * refers to that _relationship_ between a Resolver and Node, _not_ the unique Resolver contract itself.\n *\n * The Subgraph describes the following datamodel instead:\n * Resolver (the Resolver-Node relationship)\n * - has one `addr` record for a Node\n * - has one `contenthash` record for a Node\n * - has one set of `coinTypes` storing the keys of all ENSIP-9 address records emitted for a Node\n * - NOTE(subgraph-compat): does _not_ track the implicit coinType of 60 for the `addr` record, if set\n * - has one set of `texts` storing the keys of all ENSIP-5 text records emitted for a Node\n *\n * In this file, we extend the subgraph's Resolver _entity_ with the following _additional_ records:\n * Resolver (the Resolver-Node relationship)\n * + has one `name` record for a Node (see ENSIP-3)\n * - see 'NOTE(resolver-records)' in subgraph.schema.ts\n * + has many `addressRecords` for a Node (by coinType) (see ENSIP-9)\n * - see ResolverAddressRecord below\n * - NOTE: _does_ represent the implicit coinType of 60 for the `addr` record, if set\n * + has many `textRecords` for a Node (by key) (see ENSIP-5)\n * - see ResolverTextRecord below\n *\n * Terminology Note:\n * - 'Subgraph Indexed Record Values' — `addr`, `contenthash`\n * - 'Additionally Indexed Record Values' — `name`, `addressRecords`, `textRecords`\n * - 'Active Resolver Record Values' — the actual record values retrieved by following the ENS protocol\n * specifications for forward resolutuon, including ENSIP-10 and CCIP-Read.\n *\n * NOTE: These additionally indexed record values still do NOT allow the caller to confidently resolve\n * records for names without following Forward Resolution according to the ENS protocol: a direct query\n * for the indexed values of a names's Resolver and retrieval of its values from the database is not\n * ENSIP-10 nor CCIP-Read compliant.\n */\n\nimport { onchainTable, relations, uniqueIndex } from \"ponder\";\nimport { resolver } from \"./subgraph.schema\";\n\n// add the additional `Resolver.records` relationship to subgraph's Resolver entity\nexport const ext_resolverRecords_resolver_relations = relations(resolver, ({ one, many }) => ({\n // resolver has many address records\n addressRecords: many(ext_resolverAddressRecords),\n\n // resolver has many text records\n // NOTE: can't use `texts` because Resolver.texts is used by subgraph schema\n textRecords: many(ext_resolverTextRecords),\n}));\n\nexport const ext_resolverAddressRecords = onchainTable(\n \"ext_resolver_address_records\",\n (t) => ({\n // keyed by (resolverId, coinType)\n id: t.text().primaryKey(),\n resolverId: t.text().notNull(),\n coinType: t.bigint().notNull(),\n\n address: t.text().notNull(),\n }),\n (t) => ({\n byResolverIdAndCoinType: uniqueIndex().on(t.resolverId, t.coinType),\n }),\n);\n\nexport const ext_resolverAddressRecordsRelations = relations(\n ext_resolverAddressRecords,\n ({ one, many }) => ({\n // belongs to resolver\n resolver: one(resolver, {\n fields: [ext_resolverAddressRecords.resolverId],\n references: [resolver.id],\n }),\n }),\n);\n\nexport const ext_resolverTextRecords = onchainTable(\n \"ext_resolver_text_records\",\n (t) => ({\n // keyed by (resolverId, key)\n id: t.text().primaryKey(),\n resolverId: t.text().notNull(),\n key: t.text().notNull(),\n\n value: t.text().notNull(),\n }),\n (t) => ({\n byResolverIdAndKey: uniqueIndex().on(t.resolverId, t.key),\n }),\n);\n\nexport const ext_resolverTextRecordsRelations = relations(\n ext_resolverTextRecords,\n ({ one, many }) => ({\n // belongs to resolver\n resolver: one(resolver, {\n fields: [ext_resolverTextRecords.resolverId],\n references: [resolver.id],\n }),\n }),\n);\n","import { index, onchainTable } from \"ponder\";\n\nexport const ext_nameSales = onchainTable(\n \"ext_name_sales\",\n (t) => ({\n /**\n * Unique and deterministic identifier of the onchain event associated with the sale.\n *\n * Composite key format: \"{chainId}-{blockNumber}-{logIndex}\" (e.g., \"1-1234567-5\")\n */\n id: t.text().primaryKey(),\n\n /**\n * The chain where the sale occurred.\n */\n chainId: t.integer().notNull(),\n\n /**\n * The block number on chainId where the sale occurred.\n */\n blockNumber: t.bigint().notNull(),\n\n /**\n * The log index position of the sale event within blockNumber.\n */\n logIndex: t.integer().notNull(),\n\n /**\n * The EVM transaction hash on chainId associated with the sale.\n */\n transactionHash: t.hex().notNull(),\n\n /**\n * The Seaport order hash.\n */\n orderHash: t.hex().notNull(),\n\n /**\n * The address of the contract on chainId that manages tokenId.\n */\n contractAddress: t.hex().notNull(),\n\n /**\n * The tokenId managed by contractAddress that was sold.\n *\n * In a general context (outside of TokenScope) ERC1155 NFTs may have\n * multiple copies, however TokenScope guarantees that all indexed NFTs\n * never have an amount / balance > 1.\n */\n tokenId: t.bigint().notNull(),\n\n /**\n * The CAIP-19 Asset Namespace of the token that was sold. Either `erc721` or `erc1155`.\n *\n * @see https://chainagnostic.org/CAIPs/caip-19\n */\n assetNamespace: t.text().notNull(),\n\n /**\n * The CAIP-19 Asset ID of token that was sold. This is a globally unique reference to the\n * specific asset in question.\n *\n * @see https://chainagnostic.org/CAIPs/caip-19\n */\n assetId: t.text().notNull(),\n\n /**\n * The namehash (Node) of the ENS domain that was sold.\n */\n domainId: t.hex().notNull(),\n\n /**\n * The account that bought the token controlling ownership of domainId from\n * the seller for the amount of currency associated with the sale.\n */\n buyer: t.hex().notNull(),\n\n /**\n * The account that sold the token controlling ownership of domainId to\n * buyer for the amount of currency associated with the sale.\n */\n seller: t.hex().notNull(),\n\n /**\n * Currency of the payment (ETH, USDC or DAI) from buyer to seller in exchange for tokenId.\n */\n currency: t.text().notNull(),\n\n /**\n * The amount of currency paid from buyer to seller in exchange for tokenId.\n *\n * Denominated in the smallest unit of currency.\n *\n * Amount interpretation depends on currency:\n * - ETH/WETH: Amount in wei (1 ETH = 10^18 wei)\n * - USDC: Amount in micro-units (1 USDC = 10^6 units)\n * - DAI: Amount in wei-equivalent (1 DAI = 10^18 units)\n */\n amount: t.bigint().notNull(),\n\n /**\n * Unix timestamp of the block timestamp when the sale occurred.\n */\n timestamp: t.bigint().notNull(),\n }),\n (t) => ({\n idx_domainId: index().on(t.domainId),\n idx_assetId: index().on(t.assetId),\n idx_buyer: index().on(t.buyer),\n idx_seller: index().on(t.seller),\n idx_timestamp: index().on(t.timestamp),\n }),\n);\n\nexport const ext_nameTokens = onchainTable(\n \"ext_name_tokens\",\n (t) => ({\n /**\n * The CAIP-19 Asset ID of the token.\n *\n * This is a globally unique reference to the token.\n *\n * @see https://chainagnostic.org/CAIPs/caip-19\n */\n id: t.text().primaryKey(),\n\n /**\n * The namehash (Node) of the ENS name associated with the token.\n *\n * Note: An ENS name may have more than one distinct token across time. It is\n * also possible for multiple distinct tokens for an ENS name to have\n * a mintStatus of `minted` at the same time. For example:\n * - When a direct subname of .eth is wrapped by the NameWrapper. This state\n * has one minted token for the name managed by the BaseRegistrar (this\n * token will be owned by the NameWrapper) and another minted token for\n * the name managed by the NameWrapper (owned by the effective owner of\n * the name).\n * - When a direct subname of .eth is wrapped by the NameWrapper and then\n * unwrapped. This state has one minted token (managed by the BaseRegistrar)\n * and another burned token (managed by the NameWrapper).\n */\n domainId: t.hex().notNull(),\n\n /**\n * The chain that manages the token.\n */\n chainId: t.integer().notNull(),\n\n /**\n * The address of the contract on chainId that manages the token.\n */\n contractAddress: t.hex().notNull(),\n\n /**\n * The tokenId of the token managed by contractAddress.\n *\n * In a general context (outside of TokenScope) ERC1155 NFTs may have\n * multiple copies, however TokenScope guarantees that all indexed NFTs\n * never have an amount / balance > 1.\n */\n tokenId: t.bigint().notNull(),\n\n /**\n * The CAIP-19 Asset Namespace of the token. Either `erc721` or `erc1155`.\n *\n * @see https://chainagnostic.org/CAIPs/caip-19\n */\n assetNamespace: t.text().notNull(),\n\n /**\n * The account that owns the token.\n *\n * Value is zeroAddress if and only if mintStatus is `burned`.\n *\n * Note: The owner of the token for a given domainId may differ from the\n * owner of the associated node in the registry. For example:\n * - Consider the case where address X owns the ENS name `foo.eth` in\n * both the BaseRegistrar and the Registry. If X sends a request directly\n * to the Registry to transfer ownership to Y, ownership of `foo.eth` will\n * be transferred to Y in the Registry but not in the BaseRegistrar.\n * - ... for the case above, the BaseRegistrar implements a `reclaim`\n * allowing the owner of the name in the BaseRegistrar to reclaim ownership\n * of the name in the Registry.\n *\n * Note: When a name is wrapped by the NameWrapper, the owner of the token\n * in the BaseRegistrar is the NameWrapper, while a new token for the name is\n * minted by the NameWrapper and owned by the effective owner of the name.\n */\n owner: t.hex().notNull(),\n\n /**\n * The mint status of the token. Either `minted` or `burned`.\n *\n * After we index a NFT we never delete it from our index. Instead, when an\n * indexed NFT is burned onchain we retain its record and update its mint\n * status as `burned`. If a NFT is minted again after it is burned its mint\n * status is updated to `minted`.\n */\n mintStatus: t.text().notNull(),\n }),\n (t) => ({\n idx_domainId: index().on(t.domainId),\n idx_owner: index().on(t.owner),\n }),\n);\n","/**\n * Schema Definitions for an extension of the subgraph schema to track Domain<->Resolver\n * connections by chainId. The subgraph never expected to track Resolvers across multiple chains,\n * but since we now index multiple chains, it becomes necessary to store the information encoding\n * \"to which Resolver on a specific chain does this Domain delegate\".\n */\n\nimport { onchainTable, relations, uniqueIndex } from \"ponder\";\nimport { domain, resolver } from \"./subgraph.schema\";\n\n// add the additional relationships to subgraph's Domain entity\nexport const ext_resolverRelations_domain_relations = relations(domain, ({ one, many }) => ({\n // domain has many resolver relations (i.e. one per chain, see above)\n resolverRelations: many(ext_domainResolverRelation),\n}));\n\n// add the additional relationships to subgraph's Resolver entity\nexport const ext_resolverRelations_resolver_relations = relations(resolver, ({ one, many }) => ({\n // resolver has many domain relations\n domainRelations: many(ext_domainResolverRelation),\n}));\n\n// tracks Domain-Resolver relationships by chainId (see above)\nexport const ext_domainResolverRelation = onchainTable(\n \"ext_domain_resolver_relations\",\n (t) => ({\n // keyed by (chainId, domainId)\n id: t.text().primaryKey(),\n chainId: t.integer().notNull(),\n domainId: t.text().notNull(),\n\n resolverId: t.text().notNull(),\n }),\n (t) => ({\n byChainIdAndDomain: uniqueIndex().on(t.chainId, t.domainId),\n }),\n);\n\nexport const ext_domainResolverRelationsRelations = relations(\n ext_domainResolverRelation,\n ({ one, many }) => ({\n // belongs to domain\n domain: one(domain, {\n fields: [ext_domainResolverRelation.domainId],\n references: [domain.id],\n }),\n // belongs to resolver\n resolver: one(resolver, {\n fields: [ext_domainResolverRelation.resolverId],\n references: [resolver.id],\n }),\n }),\n);\n","/**\n * Schema Definitions for tracking of ENS referrals.\n */\n\nimport { index, onchainTable, relations } from \"ponder\";\nimport { domain, account } from \"./subgraph.schema\";\n\n/**\n * A RegistrationReferral tracks individual occurences of referrals for ENS name registrations.\n */\nexport const ext_registrationReferral = onchainTable(\n \"ext_registration_referral\",\n (t) => ({\n // keyed by any arbitrary unique id, usually `event.id`\n id: t.text().primaryKey(),\n\n referrerId: t.hex().notNull(),\n domainId: t.text().notNull(),\n refereeId: t.hex().notNull(),\n baseCost: t.bigint().notNull(),\n premium: t.bigint().notNull(),\n total: t.bigint().notNull(),\n\n // chainId the transaction occurred on\n chainId: t.integer().notNull(),\n // transaction's hash\n transactionHash: t.hex().notNull(),\n // block's Unix timestamp in seconds\n timestamp: t.bigint().notNull(),\n }),\n (t) => ({\n byRefereeId: index().on(t.refereeId),\n byReferrerId: index().on(t.referrerId),\n }),\n);\n\nexport const ext_registrationReferral_relations = relations(\n ext_registrationReferral,\n ({ one, many }) => ({\n // RegistrationReferral references one Referrer\n referrer: one(ext_referrer, {\n fields: [ext_registrationReferral.referrerId],\n references: [ext_referrer.id],\n }),\n // RegistrationReferral references one Account (as referee)\n referee: one(account, {\n fields: [ext_registrationReferral.refereeId],\n references: [account.id],\n }),\n // RegistrationReferral references one Domain\n domain: one(domain, {\n fields: [ext_registrationReferral.domainId],\n references: [domain.id],\n }),\n }),\n);\n\n/**\n * A RenewalReferral tracks individual occurences of referrals for ENS name renewals.\n */\nexport const ext_renewalReferral = onchainTable(\n \"ext_renewal_referral\",\n (t) => ({\n // keyed by any arbitrary unique id, usually `event.id`\n id: t.text().primaryKey(),\n\n referrerId: t.hex().notNull(),\n refereeId: t.hex().notNull(),\n domainId: t.text().notNull(),\n cost: t.bigint().notNull(),\n\n // chainId the transaction occurred on\n chainId: t.integer().notNull(),\n // transaction's hash\n transactionHash: t.hex().notNull(),\n // Block's Unix timestamp in seconds\n timestamp: t.bigint().notNull(),\n }),\n (t) => ({\n byRefereeId: index().on(t.refereeId),\n byReferrerId: index().on(t.referrerId),\n }),\n);\n\nexport const ext_renewalReferral_relations = relations(ext_renewalReferral, ({ one, many }) => ({\n // RenewalReferral references one Referrer\n referrer: one(ext_referrer, {\n fields: [ext_renewalReferral.referrerId],\n references: [ext_referrer.id],\n }),\n // RenewalReferral references one Account (as referee)\n referee: one(account, {\n fields: [ext_renewalReferral.refereeId],\n references: [account.id],\n }),\n // RenewalReferral references one Domain\n domain: one(domain, {\n fields: [ext_renewalReferral.domainId],\n references: [domain.id],\n }),\n}));\n\n// add Domain relations\nexport const ext_referrals_domain_relations = relations(domain, ({ one, many }) => ({\n // Domain has many RegistrationReferrals\n registrationReferrals: many(ext_registrationReferral),\n\n // Domain has many RenewalReferrals\n renewalReferrals: many(ext_renewalReferral),\n}));\n\n/**\n * Referrer represents an individual referrer, keyed by their onchain address. It holds aggregate\n * statistics about referrals, namely the total value (in wei) they've referred to the ENS protocol.\n */\nexport const ext_referrer = onchainTable(\n \"ext_referral_totals\",\n (t) => ({\n // keyed by Referrer's id (bytes32 hex)\n id: t.hex().primaryKey(),\n valueWei: t.bigint().notNull(),\n }),\n (t) => ({}),\n);\n\nexport const ext_referrer_relations = relations(ext_referrer, ({ one, many }) => ({\n // Referrer has many RegistrationReferrals\n registrationReferrals: many(ext_registrationReferral),\n\n // Referrer has many RenewalReferrals\n renewalReferrals: many(ext_renewalReferral),\n}));\n","/**\n * Schema Definitions for tracking an Account's ENSIP-19 Primary Name(s) by CoinType.\n */\n\nimport { onchainTable, relations, uniqueIndex } from \"ponder\";\nimport { account } from \"./subgraph.schema\";\n\n// add the additional relationships to subgraph's Account entity\nexport const ext_primaryNames_domain_relations = relations(account, ({ one, many }) => ({\n // account has many primary names\n primaryNames: many(ext_primaryName),\n}));\n\n/**\n * Tracks an Account's ENSIP-19 Primary Name by CoinType.\n *\n * NOTE: this is NOT a cohesive, materialized index of ALL of an account's names, it is ONLY the\n * materialized index of its ENSIP-19 Primary Names backed by a StandaloneReverseRegistrar:\n * - default.reverse\n * - [coinType].reverse\n * - NOT *.addr.reverse\n *\n * So these records CANNOT be queried directly and used as a source of truth — you MUST perform\n * Forward Resolution to resolve a consistent set of an Account's ENSIP-19 Primary Names. These records\n * are used to power Protocol Acceleration for those ReverseResolvers backed by a StandloneReverseRegistrar.\n *\n * The emitted record values are interpreted according to `interpretNameRecordValue` — unnormalized\n * names and empty string values are interpreted as a deletion of the associated Primary Name entity.\n *\n * Note that this is an extension to the original subgraph schema and legacy subgraph compatibility\n * is not relevant.\n */\nexport const ext_primaryName = onchainTable(\n \"ext_primary_names\",\n (t) => ({\n // keyed by (address, coinType)\n id: t.text().primaryKey(),\n address: t.hex().notNull(),\n coinType: t.bigint().notNull(),\n\n /**\n * Represents the ENSIP-19 Primary Name value for a given (address, coinType).\n *\n * The value of this field is guaranteed to be a non-empty-string normalized ENS name.\n */\n name: t.text().notNull(),\n }),\n (t) => ({\n byAddressAndCoinType: uniqueIndex().on(t.address, t.coinType),\n }),\n);\n\nexport const ext_primaryNameRelations = relations(ext_primaryName, ({ one, many }) => ({\n // belongs to account\n account: one(account, {\n fields: [ext_primaryName.address],\n references: [account.id],\n }),\n}));\n"],"mappings":";AAAA,SAAS,OAAO,cAAc,iBAAiB;;;ACCxC,SAAS,mBAAmB,KAAU,WAAmB;AAC9D,MAAI,aAAa,WAAqB;AACpC,WAAO,OAAO,eAAe,IAAI,EAAE,WAAW,KAAK,IAAI,IAAI,cAAc;AAAA,EAC3E;AACA,SAAO;AACT;;;ADEO,IAAM,SAAS,aAAa,WAAW,CAAC,OAAO;AAAA;AAAA,EAEpD,IAAI,EAAE,IAAI,EAAE,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBvB,MAAM,EAAE,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBb,WAAW,EAAE,KAAK;AAAA;AAAA,EAGlB,WAAW,EAAE,IAAI;AAAA;AAAA,EAEjB,UAAU,EAAE,IAAI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cAAc,KAAK,eAAe;AACpC,EAAE;AAqBK,IAAM,kBAAkBC;AAAA,EAC7B;AAAA,EACA,CAAC,OAAO;AAAA;AAAA,IAEN,IAAI,EAAE,KAAK,EAAE,WAAW;AAAA,IACxB,SAAS,EAAE,IAAI,EAAE,QAAQ;AAAA,IACzB,UAAU,EAAE,OAAO,EAAE,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAO7B,MAAM,EAAE,KAAK,EAAE,QAAQ;AAAA,EACzB;AAAA,EACA,CAAC,OAAO;AAAA,IACN,sBAAsBC,aAAY,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ;AAAA,EAC9D;AACF;AAEO,IAAM,2BAA2BF,WAAU,iBAAiB,CAAC,EAAE,KAAK,KAAK,OAAO;AAAA;AAAA,EAErF,SAAS,IAAI,SAAS;AAAA,IACpB,QAAQ,CAAC,gBAAgB,OAAO;AAAA,IAChC,YAAY,CAAC,QAAQ,EAAE;AAAA,EACzB,CAAC;AACH,EAAE;","names":["onchainTable","relations","relations","onchainTable","index","onchainTable","onchainTable","relations","uniqueIndex","relations","onchainTable","uniqueIndex","index","onchainTable","relations","onchainTable","index","relations","onchainTable","relations","uniqueIndex","relations","onchainTable","uniqueIndex"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensnode/ensnode-schema",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "type": "module",
5
5
  "description": "The ponder schema for ENSNode",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "@biomejs/biome": "^1.9.4",
34
34
  "tsup": "^8.3.6",
35
35
  "typescript": "^5.7.3",
36
- "@ensnode/shared-configs": "0.34.0"
36
+ "@ensnode/shared-configs": "0.35.0"
37
37
  },
38
38
  "scripts": {
39
39
  "prepublish": "tsup",