> For the complete documentation index, see [llms.txt](https://igra-labs.gitbook.io/igralabs-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://igra-labs.gitbook.io/igralabs-docs/for-developers/incident-registry.md). Agents can also search and read this documentation through its [MCP server](https://igra-labs.gitbook.io/igralabs-docs/~gitbook/mcp).

# Incident Registry

On-chain list of addresses associated with security incidents, on Igra Mainnet (chain ID 38833). It records listing and release decisions. It does not freeze tokens or hold funds — each application decides how to use it. Igra's Hyperlane token routes check it on every outbound transfer and reject listed senders — see [Hyperlane Bridge Security](https://igra-labs.gitbook.io/igralabs-docs/for-developers/hyperlane-bridge-security.md).

A listing is not proof that the address belongs to an attacker.

## Contracts

| Contract                  | Description                                    | Address                                                                                                                                       |
| ------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Incident Registry (proxy) | All calls go here                              | [`0x72fcA5313745442dfA3670EaDd5bB28dbB2321fC`](https://explorer.igralabs.com/address/0x72fcA5313745442dfA3670EaDd5bB28dbB2321fC)              |
| Implementation            | Verified source; UUPS-upgradeable by the owner | [`0x54aCF9160F62e0C5C54324c93B0f4a894F5E1017`](https://explorer.igralabs.com/address/0x54aCF9160F62e0C5C54324c93B0f4a894F5E1017?tab=contract) |

Call the proxy, not the implementation. The implementation address changes on upgrade.

## Read the registry

```solidity
interface IIncidentRegistry {
    struct AccountStatus {
        bool listed;
        uint64 revision;
    }

    function isListed(address account) external view returns (bool);
    function accountStatus(address account) external view returns (AccountStatus memory);

    event AccountStatusChanged(
        address indexed account,
        bool listed,
        uint256 revision,
        bytes32 indexed reason,
        address indexed actor
    );
}
```

* `isListed` — current status.
* `accountStatus` — status plus `revision`. Every listing, re-listing, and release of an account increments its revision. A release must name the current revision, so it reverts if the account was re-listed after the release was decided.
* No reason text or URL is stored on-chain. Each change emits `AccountStatusChanged` with a non-zero 32-byte `reason` that identifies an off-chain evidence record.

```bash
cast call 0x72fcA5313745442dfA3670EaDd5bB28dbB2321fC "isListed(address)(bool)" <address> \
  --rpc-url https://rpc.igralabs.com:8545
```

### Handle read failures

A failed read means the status is unknown, not that the address is unlisted. Decide what your application does when the registry can't be read — the bridge hook reverts the transfer.

```javascript
import { ethers } from "ethers";

const REGISTRY = "0x72fcA5313745442dfA3670EaDd5bB28dbB2321fC"; // proxy, Igra Mainnet (38833)
const provider = new ethers.JsonRpcProvider("https://rpc.igralabs.com:8545", 38833, { staticNetwork: true });
const registry = new ethers.Contract(REGISTRY, ["function isListed(address) view returns (bool)"], provider);

// true / false, or null if the registry could not be read
async function isListed(account) {
  try {
    const chainId = BigInt(await provider.send("eth_chainId", []));
    if (chainId !== 38833n) throw new Error(`wrong chain: ${chainId}`);
    return await registry.isListed(account);
  } catch {
    return null; // unknown, never "not listed"
  }
}
```

## Index listings

The registry has no method that returns all listed addresses. Build the list from `AccountStatusChanged` events on the proxy:

* Start at block 18,666,231 (proxy deployment).
* Apply events in `(blockNumber, transactionIndex, logIndex)` order. The latest event for an account is its current status.
* Drop events from reorged blocks.
* Query in chunks — the public RPC rejects very large log ranges (100,000 blocks works).
* Check `accountStatus` before acting on an indexed result.

## Roles

| Role              | Permissions                                                                                              |
| ----------------- | -------------------------------------------------------------------------------------------------------- |
| Owner             | Upgrade the implementation (`upgradeToAndCall`); transfer ownership (two-step)                           |
| Governor          | Add and remove listing admins; nominate and remove release authorities; transfer governorship (two-step) |
| Listing admin     | List accounts                                                                                            |
| Release authority | Release accounts                                                                                         |

* Owner and governor cannot list or release on their own.
* A release authority is added in two steps: the governor nominates one candidate at a time, and the candidate calls `acceptReleaseAuthority()`. Accepting adds an authority; it does not replace existing ones.

## Write methods

| Method                                                              | Caller                  | Effect                                                                                |
| ------------------------------------------------------------------- | ----------------------- | ------------------------------------------------------------------------------------- |
| `listAccount(address, bytes32 reason)`                              | Listing admin           | Lists the account, or re-lists an already listed one; increments its revision         |
| `listAccounts(address[], bytes32 reason)`                           | Listing admin           | Same for a batch, with one shared reason                                              |
| `releaseAccount(address, uint256 expectedRevision, bytes32 reason)` | Release authority       | Releases a listed account; reverts with `StaleRevision` if the revision doesn't match |
| `releaseAccounts(address[], uint256[], bytes32 reason)`             | Release authority       | Batch release, one shared reason; any failing item reverts the whole batch            |
| `addAdmin` / `addAdmins` / `removeAdmin` / `removeAdmins`           | Governor                | Manage listing admins                                                                 |
| `nominateReleaseAuthority(address)`                                 | Governor                | Nominate a release authority                                                          |
| `acceptReleaseAuthority()`                                          | Nominee                 | Accept the nomination                                                                 |
| `removeReleaseAuthority(address)`                                   | Governor                | Remove a release authority                                                            |
| `transferGovernorship(address)` / `acceptGovernorship()`            | Governor / new governor | Two-step governor transfer                                                            |
| `transferOwnership(address)` / `acceptOwnership()`                  | Owner / new owner       | Two-step ownership transfer                                                           |
| `upgradeToAndCall(address, bytes)`                                  | Owner                   | Upgrade the implementation (UUPS — there is no separate ProxyAdmin)                   |

`reason` must be non-zero. Full ABI: [verified implementation](https://explorer.igralabs.com/address/0x54aCF9160F62e0C5C54324c93B0f4a894F5E1017?tab=contract).

## Listing, evidence, and appeals

The registry is governed by Igra DAO under [Proposal #17](https://governance.igralabs.com/proposal/0x6e739bbffa17bc6ea30c44feea9f89167e867e93ad2875748250dcf68cc425d1). A DAO-appointed analyst maintains it:

* Addresses are listed when a hack, exploit, or comparable incident occurs.
* Listings are removed when funds are returned or an appeal is upheld.
* Each listing and removal records a reason referring to publicly available evidence.

To appeal a listing, post evidence on [Discord](https://discord.gg/igralabs). The analyst responds within 7 days. If the appeal is rejected, any DAO member may put the listing to a vote. An appeal does not change on-chain status — only a release by a release authority does.

To request the evidence behind a listing, contact:

* Email: <team@igralabs.com>
* Discord: [discord.gg/igralabs](https://discord.gg/igralabs)
* Telegram: [t.me/IgraCommunity](https://t.me/IgraCommunity)

## Migrating from the previous registry

The previous registry, `0x77c622bdaDAc3B1840e55E07808A30EdB3eaAB50`, is deprecated. The current registry is a separate deployment with its own state, events, and revisions.

* Replace `isBlocked` with `isListed`, `holdRevision` with `accountStatus(...).revision`, and `AddressStatusChanged` with `AccountStatusChanged`.
* Don't merge the two event histories or reuse revisions from the previous registry.
