# Wrapper Registry

ENSv2 interface definitions for Wrapper Registry.

## Import

```ts
import { wrapperRegistryV2InterfaceAbi } from "@ensforge/contracts/v2";
```

## Usage

:::code-group
```ts [contract.ts]
import { getContract } from "viem";

const contract = getContract({
  address,
  abi: wrapperRegistryV2InterfaceAbi,
  client: publicClient,
});
```

```ts [client.ts]
// [!include ~/snippets/contracts/client.ts]
```
:::

## Exports

| Export                          | Description                                             |
| ------------------------------- | ------------------------------------------------------- |
| `wrapperRegistryV2InterfaceAbi` | Immutable ABI value with viem-compatible literal types. |

## Entrypoint

`@ensforge/contracts/v2`

Exports are immutable and can be passed directly to viem contract, log, encoding, and decoding
utilities.

## When to use

Use these constants for ERC-165 capability detection and protocol routing. They describe interface support; they are not contract deployment addresses.

## Type Safety

Exports retain literal TypeScript types, so viem can infer valid function names, arguments, return
values, and event fields without a manual cast.

```ts
type Export = typeof wrapperRegistryV2InterfaceAbi;
```
