> For the complete documentation index, see [llms.txt](https://elacity.gitbook.io/elacity-sdks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elacity.gitbook.io/elacity-sdks/protocol/v2.0/references/storage/factorytracker.md).

# FactoryTracker

Keeps the operative factory address associated with each operative type id.

## InvalidAddress

```solidity
error InvalidAddress(address needle)
```

Thrown when a zero-address factory is provided.

## factories

```solidity
mapping(uint16 => address) factories
```

Operative type id => factory contract address.

## setOperativeFactory

```solidity
function setOperativeFactory(uint16 opType, address factoryAddr) external
```

Sets the factory address for a specific operative type.

### Parameters

| Name        | Type    | Description               |
| ----------- | ------- | ------------------------- |
| opType      | uint16  | Operative type id.        |
| factoryAddr | address | Factory contract address. |
