> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ambichain.org/llms.txt
> Use this file to discover all available pages before exploring further.

# VerifierRegistry

> The on-chain list of approved inboxes, each pinned to its code hash.

`src/VerifierRegistry.sol`. Inherits `Ownable2Step`.

**approve(address verifier, string route)** `owner`

Approves `verifier` under a route label (for example `base`) and pins its current code hash. Reverts with `InvalidVerifier` if it has no code or the label is empty. Emits `VerifierApproved(verifier, codeHash, route)`.

**disable(address verifier)** `owner`

Stops new listings against `verifier`. Orders already listed keep working: each stores its own pinned hash. Emits `VerifierDisabled(verifier)`.

**requireApproved(address verifier) view → bytes32 codeHash** `view`

Returns the pinned hash, or reverts with `VerifierUnavailable` if the verifier isn't enabled or its code changed. The market calls this in `list`.

**approvals(address) view → (bytes32 codeHash, string route, bool enabled)** `view`

The stored approval.

> [!WARNING]
>
> A code hash can't prove a contract is immutable: a proxy's own code never changes. The registry owner must reject proxies and any verifier with mutable configuration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.