{
    "Function": "_addItem",
    "File": "contracts/oracles/registries/TokenRegistry.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/GSN/Context.sol",
        "contracts/interfaces/registries/ITokenRegistry.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _addItem(uint256 itemCategoryIndex, uint256 estimatorCategoryIndex, address token) internal {\n        require(address(estimators[estimatorCategoryIndex]) != address(0), \"Invalid category\");\n        itemCategories[token] = itemCategoryIndex;\n        estimatorCategories[token] = estimatorCategoryIndex;\n        emit ItemAdded(token, itemCategoryIndex, estimatorCategoryIndex);\n    }"
}