Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforgeContracts

ABIs

Look up every ENS contract ABI in @ensforge/contracts, by protocol version, as typed const arrays you can pass straight to viem.

Abis holds every ENS contract ABI as a const array, so viem infers function names, arguments and results. ENSv1 ABIs are in Abis.v1, ENSv2 ABIs in Abis.v2, and resolver profiles, token standards, errors and events shared by both in Abis.shared. See Use ABIs with viem.

Abis.shared

ABIFunctionsEventsErrorsDescription
Abis.shared.abiResolver110ENSIP-4 contract ABI resolver profile.
Abis.shared.addrResolver110Legacy ETH-only address resolver profile.
Abis.shared.addressResolver110ENSIP-9 multicoin address resolver profile.
Abis.shared.contenthashResolver110ENSIP-7 content hash resolver profile.
Abis.shared.dataResolver110ENSIP-24 arbitrary data resolver profile.
Abis.shared.dnsRecordResolver220DNS record resolver profile for wire-format DNS records.
Abis.shared.dnsZoneResolver110DNS zone hash resolver profile.
Abis.shared.dnssecGateway100Off-chain DNSSEC gateway interface (IDNSGateway, ENSIP-17): returns the signed RRSets that prove a DNS record, in the shape DNSRegistrar.proveAndClaim and DNSSEC oracles accept.
Abis.shared.erc1155847ERC-1155 Multi Token Standard
Abis.shared.erc165100ERC-165 interface detection.
Abis.shared.erc20920ERC-20 Token Standard
Abis.shared.erc7211530ERC-721 Non-Fungible Token Standard
Abis.shared.errors00170Every custom error of the ENS contracts in this package (ENSv1 ens-contracts v1.7.0 and ENSv2 contracts-v2 v1.0.1, with mainnet's UserRegistry from post-audit-2), plus the OpenZeppelin IERC20Errors that ERC-20 payment tokens raise, the verifiable proxy's InvalidUpgradeTarget, the HCA's NoNFTAllowed (raised when a name token is sent to a Hosted Contract Account), the errors with which resolvers that keep their records elsewhere refuse on-chain writes (ERC-5559 StorageHandledBy…, ERC-7884 OperationHandled…) and the verifier and fetcher errors of unruggable gateways, which the L2 reverse resolvers raise for a proof that does not verify.
Abis.shared.events0560The ENS events indexers consume, across ENSv1 and ENSv2: registry, registrar, NameWrapper, resolver, reverse and DNS registrar events, following the ENSv2 indexing guide.
Abis.shared.extendedDnsResolver100Extended DNS resolution profile with caller-provided context.
Abis.shared.extendedResolver100ENSIP-10 wildcard resolution profile.
Abis.shared.hasAddressResolver100Optional address-presence capability used by current ENS resolvers.
Abis.shared.interfaceResolver110ERC-165 interface implementer resolver profile.
Abis.shared.multicallResolver100Resolver-native batching used for resolving multiple records for one name.
Abis.shared.nameResolver110ENSIP-3 reverse name resolver profile.
Abis.shared.pubkeyResolver110SECP256k1 public key resolver profile.
Abis.shared.textResolver110ENSIP-5 text record resolver profile.
Abis.shared.universalResolverFindResolver100Resolver discovery shared by ENSv1 and ENSv2 Universal Resolvers.
Abis.shared.versionableResolver110Resolver profile that clears all records by bumping a version.

Abis.v1

ABIFunctionsEventsErrorsDescription
Abis.v1.baseRegistrar2790Complete BaseRegistrarImplementation ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.bulkRenewal400Complete BulkRenewal ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.defaultReverseRegistrar1033Complete DefaultReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.dnsRegistrar1126Complete DNSRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.dnssecOracle9211Complete DNSSECImpl ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.ensRegistry1350Complete ENSRegistry ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.ethRegistrarController21311Complete ETHRegistrarController ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.exponentialPremiumPriceOracle1010Complete ExponentialPremiumPriceOracle ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.l2ReverseRegistrar716Complete L2ReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.l2ReverseRegistrarWithMigration1128Complete L2ReverseRegistrarWithMigration ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.linearPremiumPriceOracle1210Complete LinearPremiumPriceOracle ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.nameWrapper481110Complete NameWrapper ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.nameWrapperUpgrade100Migration receiver used when upgrading a wrapped V1 name.
Abis.v1.offchainDnsResolver604Complete OffchainDNSResolver ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.priceOracle100Complete IPriceOracle ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.publicResolver33152Complete PublicResolver ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.reverseRegistrar1440Complete ReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.stablePriceOracle910Complete StablePriceOracle ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.standaloneReverseRegistrar210Complete StandaloneReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.staticBulkRenewal300Complete StaticBulkRenewal ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.universalResolver19012Complete UniversalResolver ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.wrappedEthRegistrarController2039Complete WrappedETHRegistrarController ABI from @ensdomains/ens-contracts v1.7.0.

Abis.v1.interfaces

ABIFunctionsEventsErrorsDescription
Abis.v1.interfaces.bulkRenewal200Complete IBulkRenewal ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.defaultReverseRegistrar300Complete IDefaultReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.dnsRegistrar200Complete IDNSRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.dnssecOracle320Complete DNSSEC ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.ethRegistrarController600Complete IETHRegistrarController ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.l2ReverseRegistrar400Complete IL2ReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.linearPremiumPriceOracle100Complete ILinearPremiumPriceOracle ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.reverseRegistrar700Complete IReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.
Abis.v1.interfaces.standaloneReverseRegistrar110Complete IStandaloneReverseRegistrar ABI from @ensdomains/ens-contracts v1.7.0.

Abis.v2

ABIFunctionsEventsErrorsDescription
Abis.v2.batchRegistrar513Batch registration helper, deployed as BatchRegistrar (.eth) and RootBatchRegistrar (root).
Abis.v2.boxedEnsUriRenderer722Token URI renderer for names held in boxed (wrapped) registries.
Abis.v2.contractNamer9510Upgradeable contract that sets reverse names for ENSv2 contracts (proxy plus implementation ABI).
Abis.v2.defaultReverseRegistrarAdapter703Adapter that sets the default (chain-independent) primary name for an account.
Abis.v2.dnsAliasResolver14010Resolver that maps a DNS name onto an ENS name through a TXT alias record.
Abis.v2.dnsTldResolver24110Resolver for DNS top-level domains that reads names imported via DNSSEC or TXT records.
Abis.v2.dnsTxtResolver504Resolver that answers ENS records from ENS1 DNS TXT records.
Abis.v2.dnssecGatewayProvider512Gateway provider listing the CCIP-Read gateways that serve DNSSEC proofs.
Abis.v2.ensUriRenderer812Static token URI renderer for registry tokens.
Abis.v2.ensV1Resolver1406Resolver that forwards resolution of unmigrated names to the ENSv1 registry.
Abis.v2.ensV2Resolver1508Resolver that resolves names through the ENSv2 registry tree.
Abis.v2.ethRegistrar24511Commit-reveal registrar for second-level .eth names.
Abis.v2.ethRenewerV12135Renewal controller that extends unmigrated ENSv1 .eth names.
Abis.v2.graveyard803Holder of ENSv1 tokens retired by migration.
Abis.v2.labelStore512Store mapping label hashes to their plaintext labels.
Abis.v2.lockedMigrationController1926Migration controller for locked (fuse-burned) NameWrapper names.
Abis.v2.migrationHelper805Helper that batches ENSv1 to ENSv2 migrations.
Abis.v2.permissionedAddressSet1628Role-managed address set, deployed as PublicResolverSet, RegistryUpgradeSet and HCAUpgradeSet.
Abis.v2.permissionedRegistry471623Role-based registry, deployed as RootRegistry (top-level names) and ETHRegistry (.eth names).
Abis.v2.permissionedResolver361421Implementation of the role-based ENSv2 resolver, deployed per user through the VerifiableFactory.
Abis.v2.publicResolver38154Shared public resolver for ENSv2 names.
Abis.v2.reverseRegistrarAdapter703Adapter that sets the Ethereum primary name for an account.
Abis.v2.standardRentPriceOracle33213Rent price oracle for .eth registrations and renewals.
Abis.v2.temporaryDnsRegistrar1115Temporary registrar that claims DNS names into ENSv2 (mainnet only).
Abis.v2.universalHelper1204Read helper for batched ENSv2 lookups (registries, resolvers, names).
Abis.v2.universalResolver28019Universal Resolver implementation that resolves through ENSv2 with ENSv1 fallback.
Abis.v2.universalResolverProxy435Upgradeable Universal Resolver proxy, deployed as the public 0xeeee…eeee proxy and the ENS-managed proxy behind it.
Abis.v2.universalResolverV127018Universal Resolver implementation that resolves through the ENSv1 registry only (mainnet only).
Abis.v2.unlockedMigrationController1006Migration controller for unlocked ENSv1 names.
Abis.v2.userRegistry541834Implementation of user-owned subname registries, deployed per name through the VerifiableFactory.
Abis.v2.verifiableFactory411Factory that deploys verifiable proxies for user registries and resolvers.
Abis.v2.wrapperRegistry671840Implementation of registries for migrated NameWrapper names.

Abis.v2.interfaces

ABIFunctionsEventsErrorsDescription
Abis.v2.interfaces.addressSet100IAddressSet interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.contractName100IContractName interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.contractNamer100IContractNamer interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.enhancedAccessControl1218IEnhancedAccessControl interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.erc1155Singleton840IERC1155Singleton interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.ethRegistrar1236IETHRegistrar interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.ethRenewer612IETHRenewer interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.l2ReverseRegistrar600IL2ReverseRegistrar interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.labelStore210ILabelStore interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.ownedRegistry4100IOwnedRegistry interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.permissionedRegistry451616IPermissionedRegistry interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.permissionedResolver281212IPermissionedResolver interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.registry3100IRegistry interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.registryEvents0100IRegistryEvents interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.registryUriRenderer100IRegistryURIRenderer interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.rentPriceOracle302IRentPriceOracle interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.standardRegistry21144IStandardRegistry interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.temporalRegistry4100ITemporalRegistry interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.tokenizedRegistry13140ITokenizedRegistry interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.universalResolver706IUniversalResolverExtended ABI from the pinned ENSv2 snapshot.
Abis.v2.interfaces.universalSignatureValidator100IUniversalSignatureValidator interface ABI at contracts-v2 v1.0.1.
Abis.v2.interfaces.wrapperRegistry471617IWrapperRegistry interface ABI at contracts-v2 v1.0.1.

Was this page helpful?