# User Registry

Complete ABI for the User Registry contract.

## Import

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

## Usage

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

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

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

## Exports

| Export              | Description                                             |
| ------------------- | ------------------------------------------------------- |
| `userRegistryV2Abi` | 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 the complete ABI when one integration needs several unrelated functions or event families from
this contract. For a single SDK action, prefer the corresponding focused fragment to minimize
bundled ABI data.

## 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 userRegistryV2Abi;
```
